@developer_tribe/react-builder 1.2.28 → 1.2.29
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/dist/index.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.web.cjs.js +1 -1
- package/dist/index.web.cjs.js.map +1 -1
- package/dist/index.web.esm.js +1 -1
- package/dist/index.web.esm.js.map +1 -1
- package/dist/product-base/index.d.ts +24 -0
- package/package.json +1 -1
- package/src/assets/meta.json +1 -1
- package/src/index.ts +2 -0
- package/src/modals/ProductPresetsModal.tsx +2 -2
- package/src/product-base/index.ts +36 -0
- package/src/utils/replaceLocalizationParams.ts +1 -1
package/dist/index.web.esm.js
CHANGED
|
@@ -29,5 +29,5 @@ import{jsx,jsxs,Fragment}from"react/jsx-runtime";import React,{useState,useRef,u
|
|
|
29
29
|
//! moment.js
|
|
30
30
|
i.version="2.30.1",o(Yr),i.fn=cn,i.min=Xr,i.max=Qr,i.now=ei,i.utc=g,i.unix=dn,i.months=yn,i.isDate=p,i.locale=gr,i.invalid=b,i.duration=Mi,i.isMoment=w,i.weekdays=Cn,i.parseZone=pn,i.localeData=yr,i.isDuration=ai,i.monthsShort=bn,i.weekdaysMin=xn,i.defineLocale=mr,i.updateLocale=fr,i.locales=br,i.weekdaysShort=vn,i.normalizeUnits=re,i.relativeTimeRounding=oa,i.relativeTimeThreshold=na,i.calendarFormat=Fi,i.prototype=cn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()),moment$2.exports;var e}var momentExports=requireMoment(),moment=getDefaultExportFromCjs(momentExports);function formatCountdownTime(e,t,r=Date.now()){const i=Math.max(0,e-r);return moment(i).format(t)}const PaywallContext=createContext(void 0);function usePaywallContext(){return useContext(PaywallContext)??{products:[],setSelectedProductId:()=>{},onCounterDown:()=>{},isBackAllowed:!0}}const DEFAULT_FORMAT="m : s";function CountDown({node:e}){useLogRender("CountDown"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"CountDown",i=e.key??t,{previewMode:o,selectedKey:n}=useBuilderParams(),{onCounterDown:a}=usePaywallContext(),s=useRef(a),l=useMergedStyle(useExtractTextStyle$1(e),isNodeSelected({previewMode:!!o,current:n?{key:n}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),c=e.attributes?.count,d="number"==typeof c&&Number.isFinite(c)?Math.max(0,c):0,[p,h]=useState("");useEffect(()=>{s.current=a},[a]),useEffect(()=>{const e=Date.now()+d;if(h(formatCountdownTime(e,DEFAULT_FORMAT)),d<=0)return;const t=setInterval(()=>{const r=Date.now(),i=e-r;h(formatCountdownTime(e,DEFAULT_FORMAT,r)),i<=0&&(clearInterval(t),s.current?.())},950);return()=>{clearInterval(t)}},[d]);const u=5*("number"==typeof l?.fontSize?l.fontSize:"string"==typeof l?.fontSize?parseFloat(l.fontSize):16)*.6+4*("number"==typeof l?.letterSpacing?l.letterSpacing:"string"==typeof l?.letterSpacing?parseFloat(l.letterSpacing):0);return jsx("p",{"attribute-name":r,"attribute-key":i,style:{...l,width:u,textAlign:"left",alignItems:"left",alignSelf:"center"},children:p})}function extractImageStyle(e,t={}){const r=e.attributes,i={};if(!r)return i;const o=getStyleBag(r),n=o?.resizeMode;return"cover"===n?i.objectFit="cover":"contain"===n?i.objectFit="contain":"stretch"===n?i.objectFit="fill":"center"===n&&(i.objectFit="none"),{...extractViewStyle(e,t),...i}}function extractImageStyleNative(e,t={}){const r=e.attributes;if(!r)return{};const i=getStyleBag(r),o=i?.resizeMode,n={};return o&&(n.resizeMode=o),{...extractViewStyleNative(e,t),...n}}function useExtractImageStyle$1(e){const{theme:t,projectColors:r}=useBuilderParams();return useMemo(()=>extractImageStyle(e,{theme:t,projectColors:r}),[e,t,r])}function Image$1({node:e}){useLogRender("Image"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"image",i=e.key??t,{previewMode:o,selectedKey:n}=useBuilderParams(),a=useExtractImageStyle$1(e),s=e.attributes?.src,l=useMergedStyle(a,isNodeSelected({previewMode:!!o,current:n?{key:n}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);return jsx("img",{"attribute-name":r,"attribute-key":i,src:resolveImageSrc(s),style:{...l,width:"auto",maxWidth:"100%"},alt:""},e.key+(s??"-"))}var Image$2=React.memo(Image$1);function addInset(e,t){return t?void 0===e?t:"number"==typeof e?e+t:"string"==typeof e&&e.trim()?`calc(${e.trim()} + ${t}px)`:t:e}function subtractInset(e,t){return t?void 0===e?`calc(100% - ${t}px)`:"number"==typeof e?Math.max(0,e-t):"string"==typeof e&&e.trim()?`calc(${e.trim()} - ${t}px)`:`calc(100% - ${t}px)`:e}function useSafeAreaViewStyle(e,t,r){return useMemo(()=>{if(!t)return e;const[r,i,,o]=[0,0,0,0],n=r||0,a=i??0,s=o??0,l=s+a,c=n+0;return{...e,marginTop:addInset(e.marginTop,n),marginRight:addInset(e.marginRight,a),marginBottom:addInset(e.marginBottom,0),marginLeft:addInset(e.marginLeft,s),width:subtractInset(e.width??"100%",l),height:subtractInset(e.height??"100%",c)}},[t,e,r])}function Main({node:e}){useLogRender("Main"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"Main",i=e.key??t,{previewMode:o,selectedKey:n}=useBuilderParams(),a=useMergedStyle(useSafeAreaViewStyle(useExtractViewStyle$1(e),e.attributes?.useSafeAreaView??!0),isNodeSelected({previewMode:!!o,current:n?{key:n}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);return jsx("div",{"attribute-name":r,"attribute-key":i,style:a,children:jsx(RenderNode$1,{node:e.children})})}var Main$1=React.memo(Main);function NavigationBarColor({node:e}){useLogRender("NavigationBarColor"),e=useNode(e);const{theme:t,projectColors:r}=useBuilderParams(),i=useRenderStore(e=>e.setNavBarOverrideColor),o=getStyleBag(e.attributes)?.backgroundColor,n=parseColor(o,{projectColors:r,theme:t});return useEffect(()=>(n&&i(n),()=>{i(null)}),[n,i]),null}var NavigationBarColor$1=React.memo(NavigationBarColor);function Onboard({node:e}){useLogRender("Onboard");const t=(e=useNode(e)).type??"Onboard";return jsx(Carousel$1,{node:{...e,type:"carousel",sourceType:t}})}var Onboard$1=React.memo(Onboard);function OnboardButton({node:e}){useLogRender("OnboardButton");const t=(e=useNode(e)).sourceType??e.type??"OnboardButton",{emblaApi:r}=useContext(onboardContext)??{},{theme:i,projectColors:o,appConfig:n}=useBuilderParams(),a=useMockOSContext(),s=useMockPermission(a),l=useRef([]),c=useId(),d=e.key??c,p=e.attributes,h=toAttributeRecord(p),u=getStyleBag(p),g=p?.labelKey??"",m=useLocalize({appConfig:n})(g),f=h.flex??u?.flex??1,y=h.button_text_color??u?.button_text_color,b=h.button_background_color??u?.button_background_color,C=parseColor(y,{projectColors:o,theme:i})??"#FFFFFF",v=parseColor(b,{projectColors:o,theme:i})??"#0066FF",x=useExtractViewStyle$1(e);return jsx("button",{"attribute-name":t,"attribute-key":d,onClick:()=>{const e=p?.events??[];for(const t of e)if(!l.current.includes(t))if("Permission"===t.type){const e=t.permission??"camera";s.requestPermission(e),l.current.push(t)}else if("Navigate"===t.type){const e=t.targetIndex;if("number"==typeof e)r?.scrollTo(e),l.current.push(t);else if(t.navigate_to){const e=t.navigate_to;"string"==typeof e&&(l.current.push(t),a?a.navigation(e):alert("Mock OS context not available for navigation."))}}},style:{...x,flex:f,color:C,backgroundColor:v,border:"none",display:"flex",justifyContent:"center",cursor:"pointer"},children:m})}var OnboardButton$1=React.memo(OnboardButton);function OnboardButtons({node:e}){useLogRender("OnboardButtons");const t=(e=useNode(e)).sourceType??e.type??"OnboardButtons",{previewMode:r,selectedKey:i}=useBuilderParams(),o=useContext(onboardContext)??{},[n,a]=useState(o.selectedIndex??0);useEffect(()=>{"number"==typeof o.selectedIndex&&a(o.selectedIndex)},[o.selectedIndex]);const s=toAttributeRecord(e.attributes),l=getStyleBag(e.attributes),c=useMemo(()=>{const t=e.children;return Array.isArray(t)?t:[t]},[e.children]),d=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!r,current:i?{key:i}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),p=useId(),h=s.condition??l?.condition,u=s.conditionVariable??l?.conditionVariable;return"carousel-index"===h&&"number"==typeof u&&u!==n?null:jsx("div",{"attribute-name":t,"attribute-key":e.key??p,style:{...d,boxSizing:"border-box"},children:c.map((e,t)=>jsx(RenderNode$1,{node:e},e?.key??t))})}var OnboardButtons$1=React.memo(OnboardButtons);function OnboardDot({node:e}){useLogRender("OnboardDot"),e=useNode(e);const t=useId(),r=e.type??"OnboardDot",i=e.key??t,o=e.attributes,n=toAttributeRecord(o),a=getStyleBag(o),s=a?.dotType??n.dotType??"normal_dot",{previewMode:l,selectedKey:c,theme:d,projectColors:p}=useBuilderParams(),h="dark"===d?"#E4E5E7":"#F7F7F9",u=a?.inactive_dot_opacity??n.inactive_dot_opacity??.3,g=a?.inactive_dot_color??n.inactive_dot_color,m=a?.active_dot_color??n.active_dot_color,f=useMemo(()=>parseColor(m,{theme:d,projectColors:p}),[m,d,p]),y=useMemo(()=>parseColor(g,{theme:d,projectColors:p})??h,[h,g,d,p]),b=useExtractViewStyle$1(e),C=useMergedStyle(useMemo(()=>{const{flexDirection:e,...t}=b;return t},[b]),isNodeSelected({previewMode:!!l,current:c?{key:c}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),v=a?.dot_thickness??n.dot_thickness,x=useMemo(()=>{const e=parseSize(v);return void 0===e?"10px":"number"==typeof e?`${e}px`:"string"==typeof e&&e.trim()?e:"10px"},[v]),S=useMemo(()=>{const e="string"==typeof x&&x.trim().endsWith("px")?Number.parseFloat(x):Number.NaN,t=Number.isFinite(e)?e:10;return`${Math.max(0,t/3)}px`},[x]),w=useMergedStyle(C,{display:"flex",flexWrap:"wrap",gap:C.gap??S,alignItems:"center"}),_=useContext(onboardContext),k=_?.emblaApi,[T,M]=useState(0),[P,O]=useState([]);return useEffect(()=>{if(!k)return;const e=k.scrollSnapList(),t=k.selectedScrollSnap();O(e),M(t);const r=()=>{const e=k.selectedScrollSnap();M(e)};return k.on("select",r),()=>{k&&k.off&&k.off("select",r)}},[k]),jsx("div",{"attribute-name":r,"attribute-key":i,className:`embla__dots embla__dots--${s}`,style:w,children:P.map((e,t)=>{const r=T===t;return jsx("button",{className:"embla__dot",style:{width:x,height:x,backgroundColor:(r&&f?f:y)??"#007AFF",opacity:r?1:u,borderRadius:"9999px",border:0,padding:0,margin:0,display:"inline-block",cursor:"pointer",boxSizing:"border-box"},"aria-label":`Go to slide ${t+1}`,"aria-current":r?"true":void 0},t)})})}var OnboardDot$1=React.memo(OnboardDot);function escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function buildSegments(e,t){const r=[];for(const i of t){if(!i.value)continue;const t=new RegExp(escapeRegExp(i.value),"gi");for(const o of e.matchAll(t)){if(null==o.index)continue;const e=o[0];e&&r.push({start:o.index,end:o.index+e.length,value:e,color:i.color,page:i.page})}}if(0===r.length)return{segments:[{type:"text",value:e}],matchCount:0};r.sort((e,t)=>{if(e.start!==t.start)return e.start-t.start;const r=e.end-e.start;return t.end-t.start-r});const i=[];let o=-1;for(const e of r)e.start>=o&&(i.push(e),o=e.end);const n=[];let a=0;for(const{start:t,end:r,value:o,color:s,page:l}of i)t>a&&n.push({type:"text",value:e.slice(a,t)}),n.push({type:"match",value:o,color:s,page:l}),a=r;return a<e.length&&n.push({type:"text",value:e.slice(a)}),{segments:n,matchCount:i.length}}function OnboardFooter({node:e}){useLogRender("OnboardFooter");const t=(e=useNode(e)).sourceType??e.type??"OnboardFooter",{appConfig:r,theme:i,defaultLanguage:o,previewMode:n,selectedKey:a,projectColors:s}=useBuilderParams(),l=r??defaultAppConfig,c=s,{localication:d}=l,p=o??"en",h=e=>e?d?.[p]?.[e]??e:"",u=e?.attributes,g=toAttributeRecord(u),m=getStyleBag(u),f=h(u?.textLocalizationKey),y=useExtractTextStyle$1(e,!0),b=useExtractViewStyle$1(e),C=g.linkedWordFirstColor??m?.linkedWordFirstColor,v=g.linkedWordSecondColor??m?.linkedWordSecondColor,x=useMemo(()=>parseColor(C,{projectColors:c,theme:i}),[C,c,i]),S=useMemo(()=>parseColor(v,{projectColors:c,theme:i}),[v,c,i]),w=useMergedStyle(y,{cursor:"pointer"}),_=useMergedStyle(b,isNodeSelected({previewMode:!!n,current:a?{key:a}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),k=useId(),T=e.key??k;return jsx("div",{"attribute-name":t,"attribute-key":T,style:_,children:!!f&&(()=>{const e=h(u?.linkedWordFirstLocalizationKey),t=h(u?.linkedWordSecondLocalizationKey),{segments:r,matchCount:i}=buildSegments(f,[{value:e,color:x,page:u?.linkedWordFirstPage},{value:t,color:S,page:u?.linkedWordSecondPage}]);return jsxs(Fragment,{children:[r.map((e,t)=>"text"===e.type?jsx("span",{style:w,children:e.value},t):jsx("span",{style:{...w,color:e.color},onClick:()=>{e.page},children:e.value},t)),0===i&&jsxs("div",{children:[u?.linkedWordFirstLocalizationKey&&jsx("span",{style:{...w,color:x},onClick:()=>{},children:e}),u?.linkedWordSecondLocalizationKey&&jsx("span",{style:{...w,color:S},onClick:()=>{},children:t})]})]})})()})}var OnboardFooter$1=React.memo(OnboardFooter),lottie$2={exports:{}},lottie$1=lottie$2.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,function(module,exports){var factory;"undefined"!=typeof document&&"undefined"!=typeof navigator&&(factory=function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,i,o=e.length;for(r=0;r<o;r+=1)for(var n in i=e[r].prototype)Object.prototype.hasOwnProperty.call(i,n)&&(t.prototype[n]=i[n])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var r,i=0,o=[];switch(e){case"int16":case"uint8c":r=1;break;default:r=1.1}for(i=0;i<t;i+=1)o.push(r);return o}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,r){return"float32"===t?new Float32Array(r):"int16"===t?new Int16Array(r):"uint8c"===t?new Uint8ClampedArray(r):e(t,r)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=t.length;for(e=0;e<r;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,r=createSizedArray(e.length),i=e.length;for(t=0;t<i;t+=1)r[t]=Math.abs(e[t]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,i){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,i){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,r){var i,o,n,a,s,l,c,d;switch(l=r*(1-t),c=r*(1-(s=6*e-(a=Math.floor(6*e)))*t),d=r*(1-(1-s)*t),a%6){case 0:i=r,o=d,n=l;break;case 1:i=c,o=r,n=l;break;case 2:i=l,o=r,n=d;break;case 3:i=l,o=c,n=r;break;case 4:i=d,o=l,n=r;break;case 5:i=r,o=l,n=c}return[i,o,n]}function RGBtoHSV(e,t,r){var i,o=Math.max(e,t,r),n=Math.min(e,t,r),a=o-n,s=0===o?0:a/o,l=o/255;switch(o){case n:i=0;break;case e:i=t-r+a*(t<r?6:0),i/=6*a;break;case t:i=r-e+2*a,i/=6*a;break;case r:i=e-t+4*a,i/=6*a}return[i,s,l]}function addSaturationToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var e,t,r=[];for(e=0;e<256;e+=1)t=e.toString(16),r[e]=1===t.length?"0"+t:t;return function(e,t,i){return e<0&&(e=0),t<0&&(t=0),i<0&&(i=0),"#"+r[e]+r[t]+r[i]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(e)}var dataManager=function(){var e,t,r=1,i=[],o={onmessage:function(){},postMessage:function(t){e({data:t})}},n={postMessage:function(e){o.onmessage({data:e})}};function a(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),i=URL.createObjectURL(r);return new Worker(i)}return e=t,o}(function(e){if(n.dataManager||(n.dataManager=function(){function e(o,n){var a,s,l,c,d,h,u=o.length;for(s=0;s<u;s+=1)if("ks"in(a=o[s])&&!a.completed){if(a.completed=!0,a.hasMask){var g=a.masksProperties;for(c=g.length,l=0;l<c;l+=1)if(g[l].pt.k.i)i(g[l].pt.k);else for(h=g[l].pt.k.length,d=0;d<h;d+=1)g[l].pt.k[d].s&&i(g[l].pt.k[d].s[0]),g[l].pt.k[d].e&&i(g[l].pt.k[d].e[0])}0===a.ty?(a.layers=t(a.refId,n),e(a.layers,n)):4===a.ty?r(a.shapes):5===a.ty&&p(a)}}function t(e,t){var r=function(e,t){for(var r=0,i=t.length;r<i;){if(t[r].id===e)return t[r];r+=1}return null}(e,t);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(e){var t,o,n;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)i(e[t].ks.k);else for(n=e[t].ks.k.length,o=0;o<n;o+=1)e[t].ks.k[o].s&&i(e[t].ks.k[o].s[0]),e[t].ks.k[o].e&&i(e[t].ks.k[o].e[0]);else"gr"===e[t].ty&&r(e[t].it)}function i(e){var t,r=e.i.length;for(t=0;t<r;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function o(e,t){var r=t?t.split("."):[100,100,100];return e[0]>r[0]||!(r[0]>e[0])&&(e[1]>r[1]||!(r[1]>e[1])&&(e[2]>r[2]||!(r[2]>e[2])&&null))}var n,a=function(){var e=[4,4,14];function t(e){var t=e.t.d;e.t.d={k:[{s:t,t:0}]}}function r(e){var r,i=e.length;for(r=0;r<i;r+=1)5===e[r].ty&&t(e[r])}return function(t){if(o(e,t.v)&&(r(t.layers),t.assets)){var i,n=t.assets.length;for(i=0;i<n;i+=1)t.assets[i].layers&&r(t.assets[i].layers)}}}(),s=(n=[4,7,99],function(e){if(e.chars&&!o(n,e.v)){var t,i=e.chars.length;for(t=0;t<i;t+=1){var a=e.chars[t];a.data&&a.data.shapes&&(r(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(a.data.shapes.push({ty:"no"}),a.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var e=[5,7,15];function t(e){var t=e.t.p;"number"==typeof t.a&&(t.a={a:0,k:t.a}),"number"==typeof t.p&&(t.p={a:0,k:t.p}),"number"==typeof t.r&&(t.r={a:0,k:t.r})}function r(e){var r,i=e.length;for(r=0;r<i;r+=1)5===e[r].ty&&t(e[r])}return function(t){if(o(e,t.v)&&(r(t.layers),t.assets)){var i,n=t.assets.length;for(i=0;i<n;i+=1)t.assets[i].layers&&r(t.assets[i].layers)}}}(),c=function(){var e=[4,1,9];function t(e){var r,i,o,n=e.length;for(r=0;r<n;r+=1)if("gr"===e[r].ty)t(e[r].it);else if("fl"===e[r].ty||"st"===e[r].ty)if(e[r].c.k&&e[r].c.k[0].i)for(o=e[r].c.k.length,i=0;i<o;i+=1)e[r].c.k[i].s&&(e[r].c.k[i].s[0]/=255,e[r].c.k[i].s[1]/=255,e[r].c.k[i].s[2]/=255,e[r].c.k[i].s[3]/=255),e[r].c.k[i].e&&(e[r].c.k[i].e[0]/=255,e[r].c.k[i].e[1]/=255,e[r].c.k[i].e[2]/=255,e[r].c.k[i].e[3]/=255);else e[r].c.k[0]/=255,e[r].c.k[1]/=255,e[r].c.k[2]/=255,e[r].c.k[3]/=255}function r(e){var r,i=e.length;for(r=0;r<i;r+=1)4===e[r].ty&&t(e[r].shapes)}return function(t){if(o(e,t.v)&&(r(t.layers),t.assets)){var i,n=t.assets.length;for(i=0;i<n;i+=1)t.assets[i].layers&&r(t.assets[i].layers)}}}(),d=function(){var e=[4,4,18];function t(e){var r,i,o;for(r=e.length-1;r>=0;r-=1)if("sh"===e[r].ty)if(e[r].ks.k.i)e[r].ks.k.c=e[r].closed;else for(o=e[r].ks.k.length,i=0;i<o;i+=1)e[r].ks.k[i].s&&(e[r].ks.k[i].s[0].c=e[r].closed),e[r].ks.k[i].e&&(e[r].ks.k[i].e[0].c=e[r].closed);else"gr"===e[r].ty&&t(e[r].it)}function r(e){var r,i,o,n,a,s,l=e.length;for(i=0;i<l;i+=1){if((r=e[i]).hasMask){var c=r.masksProperties;for(n=c.length,o=0;o<n;o+=1)if(c[o].pt.k.i)c[o].pt.k.c=c[o].cl;else for(s=c[o].pt.k.length,a=0;a<s;a+=1)c[o].pt.k[a].s&&(c[o].pt.k[a].s[0].c=c[o].cl),c[o].pt.k[a].e&&(c[o].pt.k[a].e[0].c=c[o].cl)}4===r.ty&&t(r.shapes)}}return function(t){if(o(e,t.v)&&(r(t.layers),t.assets)){var i,n=t.assets.length;for(i=0;i<n;i+=1)t.assets[i].layers&&r(t.assets[i].layers)}}}();function p(e){0===e.t.a.length&&e.t.p}var h={completeData:function(r){r.__complete||(c(r),a(r),s(r),l(r),d(r),e(r.layers,r.assets),function(r,i){if(r){var o=0,n=r.length;for(o=0;o<n;o+=1)1===r[o].t&&(r[o].data.layers=t(r[o].data.refId,i),e(r[o].data.layers,i))}}(r.chars,r.assets),r.__complete=!0)}};return h.checkColors=c,h.checkChars=s,h.checkPathProperties=l,h.checkShapes=d,h.completeLayers=e,h}()),n.assetLoader||(n.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,r,i,o){var n,a=new XMLHttpRequest;try{a.responseType="json"}catch(e){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)n=e(a),i(n);else try{n=e(a),i(n)}catch(e){o&&o(e)}};try{a.open(["G","E","T"].join(""),t,!0)}catch(e){a.open(["G","E","T"].join(""),r+"/"+t,!0)}a.send()}}}()),"loadAnimation"===e.data.type)n.assetLoader.load(e.data.path,e.data.fullPath,function(t){n.dataManager.completeData(t),n.postMessage({id:e.data.id,payload:t,status:"success"})},function(){n.postMessage({id:e.data.id,status:"error"})});else if("complete"===e.data.type){var t=e.data.animation;n.dataManager.completeData(t),n.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&n.assetLoader.load(e.data.path,e.data.fullPath,function(t){n.postMessage({id:e.data.id,payload:t,status:"success"})},function(){n.postMessage({id:e.data.id,status:"error"})})}),t.onmessage=function(e){var t=e.data,r=t.id,o=i[r];i[r]=null,"success"===t.status?o.onComplete(t.payload):o.onError&&o.onError()})}function s(e,t){var o="processId_"+(r+=1);return i[o]={onComplete:e,onError:t},o}return{loadAnimation:function(e,r,i){a();var o=s(r,i);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:o})},loadData:function(e,r,i){a();var o=s(r,i);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:o})},completeAnimation:function(e,r,i){a();var o=s(r,i);t.postMessage({type:"complete",animation:e,id:o})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(e,t,r){var i="";if(e.e)i=e.p;else if(t){var o=e.p;-1!==o.indexOf("images/")&&(o=o.split("/")[1]),i=t+o}else i=r,i+=e.u?e.u:"",i+=e.p;return i}function o(e){var t=0,r=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(r)),t+=1}.bind(this),50)}function n(e){var t={assetData:e},r=i(e,this.assetsPath,this.path);return dataManager.loadData(r,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function a(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=o.bind(this),this.createFootageData=n.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(e,t){var r;this.imagesLoadedCb=t;var i=e.length;for(r=0;r<i;r+=1)e[r].layers||(e[r].t&&"seq"!==e[r].t?3===e[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[r]))):(this.totalImages+=1,this.images.push(this._createImageData(e[r]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,r=this.images.length;t<r;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var r=i(t,this.assetsPath,this.path),o=createTag("img");o.crossOrigin="anonymous",o.addEventListener("load",this._imageLoaded,!1),o.addEventListener("error",function(){n.img=e,this._imageLoaded()}.bind(this),!1),o.src=r;var n={img:o,assetData:t};return n},createImageData:function(t){var r=i(t,this.assetsPath,this.path),o=createNS("image");isSafari?this.testImageLoaded(o):o.addEventListener("load",this._imageLoaded,!1),o.addEventListener("error",function(){n.img=e,this._imageLoaded()}.bind(this),!1),o.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(o):this._elementHelper.appendChild(o);var n={img:o,assetData:t};return n},imageLoaded:t,footageLoaded:r,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var r=this._cbs[e],i=0;i<r.length;i+=1)r[i](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var r=0,i=this._cbs[e].length;r<i;)this._cbs[e][r]===t&&(this._cbs[e].splice(r,1),r-=1,i-=1),r+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,r=e.split("\r\n"),i={},o=0,n=0;n<r.length;n+=1)2===(t=r[n].split(":")).length&&(i[t[0]]=t[1].trim(),o+=1);if(0===o)throw new Error;return i}return function(t){for(var r=[],i=0;i<t.length;i+=1){var o=t[i],n={time:o.tm,duration:o.dr};try{n.payload=JSON.parse(t[i].cm)}catch(r){try{n.payload=e(t[i].cm)}catch(e){n.payload={name:t[i].cm}}}r.push(n)}return r}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,r=this.compositions.length;t<r;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},i=e.attributes;r.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",r.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var o=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";"false"===o?r.loop=!1:"true"===o?r.loop=!0:""!==o&&(r.loop=parseInt(o,10));var n=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:!i.getNamedItem("bm-autoplay")||i.getNamedItem("bm-autoplay").value;r.autoplay="false"!==n,r.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"","false"===(i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,r,i=this.animationData.layers,o=i.length,n=e.layers,a=n.length;for(r=0;r<a;r+=1)for(t=0;t<o;){if(i[t].id===n[r].id){i[t]=n[r];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(o=e.assets.length,t=0;t<o;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r="number"==typeof e?e:void 0,i="number"==typeof t?t:void 0;this.renderer.updateContainerSize(r,i)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if((t=this.markers[r]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!r||this.name===r){var i=Number(e);if(isNaN(i)){var o=this.getMarkerData(e);o&&this.goToAndStop(o.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!r||this.name===r){var i=Number(e);if(isNaN(i)){var o=this.getMarkerData(e);o&&(o.duration?this.playSegments([o.time,o.time+o.duration],!0):this.goToAndStop(o.time,!0))}else this.goToAndStop(i,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var r,i=e.length;for(r=0;r<i;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{this.renderer.getElementByPath(e).updateDocumentData(t,r)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],r=0,i=0,o=0,n=!0,a=!1;function s(e){for(var r=0,o=e.target;r<i;)t[r].animation===o&&(t.splice(r,1),r-=1,i-=1,o.isPaused||d()),r+=1}function l(e,r){if(!e)return null;for(var o=0;o<i;){if(t[o].elem===e&&null!==t[o].elem)return t[o].animation;o+=1}var n=new AnimationItem;return p(n,e),n.setData(e,r),n}function c(){o+=1,g()}function d(){o-=1}function p(e,r){e.addEventListener("destroy",s),e.addEventListener("_active",c),e.addEventListener("_idle",d),t.push({elem:r,animation:e}),i+=1}function h(e){var s,l=e-r;for(s=0;s<i;s+=1)t[s].animation.advanceTime(l);r=e,o&&!a?window.requestAnimationFrame(h):n=!0}function u(e){r=e,window.requestAnimationFrame(h)}function g(){!a&&o&&n&&(window.requestAnimationFrame(u),n=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return p(t,null),t.setParams(e),t},e.setSpeed=function(e,r){var o;for(o=0;o<i;o+=1)t[o].animation.setSpeed(e,r)},e.setDirection=function(e,r){var o;for(o=0;o<i;o+=1)t[o].animation.setDirection(e,r)},e.play=function(e){var r;for(r=0;r<i;r+=1)t[r].animation.play(e)},e.pause=function(e){var r;for(r=0;r<i;r+=1)t[r].animation.pause(e)},e.stop=function(e){var r;for(r=0;r<i;r+=1)t[r].animation.stop(e)},e.togglePause=function(e){var r;for(r=0;r<i;r+=1)t[r].animation.togglePause(e)},e.searchAnimations=function(e,t,r){var i,o=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),n=o.length;for(i=0;i<n;i+=1)r&&o[i].setAttribute("data-bm-type",r),l(o[i],e);if(t&&0===n){r||(r="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var s=createTag("div");s.style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",r),a.appendChild(s),l(s,e)}},e.resize=function(){var e;for(e=0;e<i;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,r,o){var n;for(n=0;n<i;n+=1)t[n].animation.goToAndStop(e,r,o)},e.destroy=function(e){var r;for(r=i-1;r>=0;r-=1)t[r].animation.destroy(e)},e.freeze=function(){a=!0},e.unfreeze=function(){a=!1,g()},e.setVolume=function(e,r){var o;for(o=0;o<i;o+=1)t[o].animation.setVolume(e,r)},e.mute=function(e){var r;for(r=0;r<i;r+=1)t[r].animation.mute(e)},e.unmute=function(e){var r;for(r=0;r<i;r+=1)t[r].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,r=t.length,i=[];for(e=0;e<r;e+=1)i.push(t[e].animation);return i},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,r,i,o,n){var a=n||("bez_"+e+"_"+r+"_"+i+"_"+o).replace(/\./g,"p");if(t[a])return t[a];var s=new d([e,r,i,o]);return t[a]=s,s}},t={},r=11,i=1/(r-1),o="function"==typeof Float32Array;function n(e,t){return 1-3*t+3*e}function a(e,t){return 3*t-6*e}function s(e){return 3*e}function l(e,t,r){return((n(t,r)*e+a(t,r))*e+s(t))*e}function c(e,t,r){return 3*n(t,r)*e*e+2*a(t,r)*e+s(t)}function d(e){this._p=e,this._mSampleValues=o?new Float32Array(r):new Array(r),this._precomputed=!1,this.get=this.get.bind(this)}return d.prototype={get:function(e){var t=this._p[0],r=this._p[1],i=this._p[2],o=this._p[3];return this._precomputed||this._precompute(),t===r&&i===o?e:0===e?0:1===e?1:l(this._getTForX(e),r,o)},_precompute:function(){var e=this._p[0],t=this._p[1],r=this._p[2],i=this._p[3];this._precomputed=!0,e===t&&r===i||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],o=0;o<r;++o)this._mSampleValues[o]=l(o*i,e,t)},_getTForX:function(e){for(var t=this._p[0],o=this._p[2],n=this._mSampleValues,a=0,s=1,d=r-1;s!==d&&n[s]<=e;++s)a+=i;var p=a+(e-n[--s])/(n[s+1]-n[s])*i,h=c(p,t,o);return h>=.001?function(e,t,r,i){for(var o=0;o<4;++o){var n=c(t,r,i);if(0===n)return t;t-=(l(t,r,i)-e)/n}return t}(e,p,t,o):0===h?p:function(e,t,r,i,o){var n,a,s=0;do{(n=l(a=t+(r-t)/2,i,o)-e)>0?r=a:t=a}while(Math.abs(n)>1e-7&&++s<10);return a}(e,a,a+i,t,o)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,r){var i=0,o=e,n=createSizedArray(o);return{newElement:function(){return i?n[i-=1]:t()},release:function(e){i===o&&(n=pooling.double(n),o*=2),r&&r(e),n[i]=e,i+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(e){var t,r=e.lengths.length;for(t=0;t<r;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0});function bezFunction(){var e=Math;function t(e,t,r,i,o,n){var a=e*i+t*o+r*n-o*i-n*e-r*t;return a>-.001&&a<.001}var r=function(e,t,r,i){var o,n,a,s,l,c,d=getDefaultCurveSegments(),p=0,h=[],u=[],g=bezierLengthPool.newElement();for(a=r.length,o=0;o<d;o+=1){for(l=o/(d-1),c=0,n=0;n<a;n+=1)s=bmPow(1-l,3)*e[n]+3*bmPow(1-l,2)*l*r[n]+3*(1-l)*bmPow(l,2)*i[n]+bmPow(l,3)*t[n],h[n]=s,null!==u[n]&&(c+=bmPow(h[n]-u[n],2)),u[n]=h[n];c&&(p+=c=bmSqrt(c)),g.percents[o]=l,g.lengths[o]=p}return g.addedLength=p,g};function i(e){this.segmentLength=0,this.points=new Array(e)}function o(e,t){this.partialLength=e,this.point=t}var n,a=(n={},function(e,r,a,s){var l=(e[0]+"_"+e[1]+"_"+r[0]+"_"+r[1]+"_"+a[0]+"_"+a[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!n[l]){var c,d,p,h,u,g,m,f=getDefaultCurveSegments(),y=0,b=null;2===e.length&&(e[0]!==r[0]||e[1]!==r[1])&&t(e[0],e[1],r[0],r[1],e[0]+a[0],e[1]+a[1])&&t(e[0],e[1],r[0],r[1],r[0]+s[0],r[1]+s[1])&&(f=2);var C=new i(f);for(p=a.length,c=0;c<f;c+=1){for(m=createSizedArray(p),u=c/(f-1),g=0,d=0;d<p;d+=1)h=bmPow(1-u,3)*e[d]+3*bmPow(1-u,2)*u*(e[d]+a[d])+3*(1-u)*bmPow(u,2)*(r[d]+s[d])+bmPow(u,3)*r[d],m[d]=h,null!==b&&(g+=bmPow(m[d]-b[d],2));y+=g=bmSqrt(g),C.points[c]=new o(g,m),b=m}C.segmentLength=y,n[l]=C}return n[l]});function s(e,t){var r=t.percents,i=t.lengths,o=r.length,n=bmFloor((o-1)*e),a=e*t.addedLength,s=0;if(n===o-1||0===n||a===i[n])return r[n];for(var l=i[n]>a?-1:1,c=!0;c;)if(i[n]<=a&&i[n+1]>a?(s=(a-i[n])/(i[n+1]-i[n]),c=!1):n+=l,n<0||n>=o-1){if(n===o-1)return r[n];c=!1}return r[n]+(r[n+1]-r[n])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,i=segmentsLengthPool.newElement(),o=e.c,n=e.v,a=e.o,s=e.i,l=e._length,c=i.lengths,d=0;for(t=0;t<l-1;t+=1)c[t]=r(n[t],n[t+1],a[t],s[t+1]),d+=c[t].addedLength;return o&&l&&(c[t]=r(n[t],n[0],a[t],s[0]),d+=c[t].addedLength),i.totalLength=d,i},getNewSegment:function(t,r,i,o,n,a,c){n<0?n=0:n>1&&(n=1);var d,p=s(n,c),h=s(a=a>1?1:a,c),u=t.length,g=1-p,m=1-h,f=g*g*g,y=p*g*g*3,b=p*p*g*3,C=p*p*p,v=g*g*m,x=p*g*m+g*p*m+g*g*h,S=p*p*m+g*p*h+p*g*h,w=p*p*h,_=g*m*m,k=p*m*m+g*h*m+g*m*h,T=p*h*m+g*h*h+p*m*h,M=p*h*h,P=m*m*m,O=h*m*m+m*h*m+m*m*h,E=h*h*m+m*h*h+h*m*h,L=h*h*h;for(d=0;d<u;d+=1)l[4*d]=e.round(1e3*(f*t[d]+y*i[d]+b*o[d]+C*r[d]))/1e3,l[4*d+1]=e.round(1e3*(v*t[d]+x*i[d]+S*o[d]+w*r[d]))/1e3,l[4*d+2]=e.round(1e3*(_*t[d]+k*i[d]+T*o[d]+M*r[d]))/1e3,l[4*d+3]=e.round(1e3*(P*t[d]+O*i[d]+E*o[d]+L*r[d]))/1e3;return l},getPointInSegment:function(t,r,i,o,n,a){var l=s(n,a),c=1-l;return[e.round(1e3*(c*c*c*t[0]+(l*c*c+c*l*c+c*c*l)*i[0]+(l*l*c+c*l*l+l*c*l)*o[0]+l*l*l*r[0]))/1e3,e.round(1e3*(c*c*c*t[1]+(l*c*c+c*l*c+c*c*l)*i[1]+(l*l*c+c*l*l+l*c*l)*o[1]+l*l*l*r[1]))/1e3]},buildBezierData:a,pointOnLine2D:t,pointOnLine3D:function(r,i,o,n,a,s,l,c,d){if(0===o&&0===s&&0===d)return t(r,i,n,a,l,c);var p,h=e.sqrt(e.pow(n-r,2)+e.pow(a-i,2)+e.pow(s-o,2)),u=e.sqrt(e.pow(l-r,2)+e.pow(c-i,2)+e.pow(d-o,2)),g=e.sqrt(e.pow(l-n,2)+e.pow(c-a,2)+e.pow(d-s,2));return(p=h>u?h>g?h-u-g:g-u-h:g>u?g-u-h:u-h-g)>-1e-4&&p<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r,i=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var o,n,a,s,l,c,d,p,h,u=t.lastIndex,g=u,m=this.keyframes.length-1,f=!0;f;){if(o=this.keyframes[g],n=this.keyframes[g+1],g===m-1&&e>=n.t-i){o.h&&(o=n),u=0;break}if(n.t-i>e){u=g;break}g<m-1?g+=1:(u=0,f=!1)}a=this.keyframesMetadata[g]||{};var y,b=n.t-i,C=o.t-i;if(o.to){a.bezierData||(a.bezierData=bez.buildBezierData(o.s,n.s||o.e,o.to,o.ti));var v=a.bezierData;if(e>=b||e<C){var x=e>=b?v.points.length-1:0;for(l=v.points[x].point.length,s=0;s<l;s+=1)r[s]=v.points[x].point[s]}else{a.__fnct?h=a.__fnct:(h=BezierFactory.getBezierEasing(o.o.x,o.o.y,o.i.x,o.i.y,o.n).get,a.__fnct=h),c=h((e-C)/(b-C));var S,w=v.segmentLength*c,_=t.lastFrame<e&&t._lastKeyframeIndex===g?t._lastAddedLength:0;for(p=t.lastFrame<e&&t._lastKeyframeIndex===g?t._lastPoint:0,f=!0,d=v.points.length;f;){if(_+=v.points[p].partialLength,0===w||0===c||p===v.points.length-1){for(l=v.points[p].point.length,s=0;s<l;s+=1)r[s]=v.points[p].point[s];break}if(w>=_&&w<_+v.points[p+1].partialLength){for(S=(w-_)/v.points[p+1].partialLength,l=v.points[p].point.length,s=0;s<l;s+=1)r[s]=v.points[p].point[s]+(v.points[p+1].point[s]-v.points[p].point[s])*S;break}p<d-1?p+=1:f=!1}t._lastPoint=p,t._lastAddedLength=_-v.points[p].partialLength,t._lastKeyframeIndex=g}}else{var k,T,M,P,O;if(m=o.s.length,y=n.s||o.e,this.sh&&1!==o.h)e>=b?(r[0]=y[0],r[1]=y[1],r[2]=y[2]):e<=C?(r[0]=o.s[0],r[1]=o.s[1],r[2]=o.s[2]):quaternionToEuler(r,slerp(createQuaternion(o.s),createQuaternion(y),(e-C)/(b-C)));else for(g=0;g<m;g+=1)1!==o.h&&(e>=b?c=1:e<C?c=0:(o.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[g]?h=a.__fnct[g]:(k=void 0===o.o.x[g]?o.o.x[0]:o.o.x[g],T=void 0===o.o.y[g]?o.o.y[0]:o.o.y[g],M=void 0===o.i.x[g]?o.i.x[0]:o.i.x[g],P=void 0===o.i.y[g]?o.i.y[0]:o.i.y[g],h=BezierFactory.getBezierEasing(k,T,M,P).get,a.__fnct[g]=h)):a.__fnct?h=a.__fnct:(k=o.o.x,T=o.o.y,M=o.i.x,P=o.i.y,h=BezierFactory.getBezierEasing(k,T,M,P).get,o.keyframeMetadata=h),c=h((e-C)/(b-C)))),y=n.s||o.e,O=1===o.h?o.s[g]:o.s[g]+(y[g]-o.s[g])*c,"multidimensional"===this.propType?r[g]=O:r=O}return t.lastIndex=u,r}function slerp(e,t,r){var i,o,n,a,s,l=[],c=e[0],d=e[1],p=e[2],h=e[3],u=t[0],g=t[1],m=t[2],f=t[3];return(o=c*u+d*g+p*m+h*f)<0&&(o=-o,u=-u,g=-g,m=-m,f=-f),1-o>1e-6?(i=Math.acos(o),n=Math.sin(i),a=Math.sin((1-r)*i)/n,s=Math.sin(r*i)/n):(a=1-r,s=r),l[0]=a*c+s*u,l[1]=a*d+s*g,l[2]=a*p+s*m,l[3]=a*h+s*f,l}function quaternionToEuler(e,t){var r=t[0],i=t[1],o=t[2],n=t[3],a=Math.atan2(2*i*n-2*r*o,1-2*i*i-2*o*o),s=Math.asin(2*r*i+2*o*n),l=Math.atan2(2*r*n-2*i*o,1-2*r*r-2*o*o);e[0]=a/degToRads,e[1]=s/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,i=e[2]*degToRads,o=Math.cos(t/2),n=Math.cos(r/2),a=Math.cos(i/2),s=Math.sin(t/2),l=Math.sin(r/2),c=Math.sin(i/2);return[s*l*a+o*n*c,s*n*a+o*l*c,o*l*a-s*n*c,o*n*a-s*l*c]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,i){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,r,i){var o;this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var n=t.k.length;for(this.v=createTypedArray("float32",n),this.pv=createTypedArray("float32",n),this.vel=createTypedArray("float32",n),o=0;o<n;o+=1)this.v[o]=t.k[o]*this.mult,this.pv[o]=t.k[o];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,i){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,r,i){var o;this.propType="multidimensional";var n,a,s,l,c=t.k.length;for(o=0;o<c-1;o+=1)t.k[o].to&&t.k[o].s&&t.k[o+1]&&t.k[o+1].s&&(n=t.k[o].s,a=t.k[o+1].s,s=t.k[o].to,l=t.k[o].ti,(2===n.length&&(n[0]!==a[0]||n[1]!==a[1])&&bez.pointOnLine2D(n[0],n[1],a[0],a[1],n[0]+s[0],n[1]+s[1])&&bez.pointOnLine2D(n[0],n[1],a[0],a[1],a[0]+l[0],a[1]+l[1])||3===n.length&&(n[0]!==a[0]||n[1]!==a[1]||n[2]!==a[2])&&bez.pointOnLine3D(n[0],n[1],n[2],a[0],a[1],a[2],n[0]+s[0],n[1]+s[1],n[2]+s[2])&&bez.pointOnLine3D(n[0],n[1],n[2],a[0],a[1],a[2],a[0]+l[0],a[1]+l[1],a[2]+l[2]))&&(t.k[o].to=null,t.k[o].ti=null),n[0]===a[0]&&n[1]===a[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===n.length||n[2]===a[2]&&0===s[2]&&0===l[2])&&(t.k[o].to=null,t.k[o].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var d=t.k[0].s.length;for(this.v=createTypedArray("float32",d),this.pv=createTypedArray("float32",d),o=0;o<d;o+=1)this.v[o]=initFrame,this.pv[o]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",d)},this.addEffect=addEffect}var PropertyFactory=(ob={getProp:function(e,t,r,i,o){var n;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])n=new MultiDimensionalProperty(e,t,i,o);else switch(r){case 0:n=new KeyframedValueProperty(e,t,i,o);break;case 1:n=new KeyframedMultidimensionalProperty(e,t,i,o)}else n=new ValueProperty(e,t,i,o);return n.effectsSequence.length&&o.addDynamicProperty(n),n}},ob),ob;function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,r,i,o){var n;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":n=this.v;break;case"i":n=this.i;break;case"o":n=this.o;break;default:n=[]}(!n[i]||n[i]&&!o)&&(n[i]=pointPool.newElement()),n[i][0]=e,n[i][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,i,o,n,a,s){this.setXYAt(e,t,"v",a,s),this.setXYAt(r,i,"o",a,s),this.setXYAt(o,n,"i",a,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,i=this.i,o=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),o=1);var n,a=this._length-1,s=this._length;for(n=o;n<s;n+=1)e.setTripleAt(t[a][0],t[a][1],i[a][0],i[a][1],r[a][0],r[a][1],n,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(e){var t,r=e._length;for(t=0;t<r;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1}),factory.clone=function(e){var t,r=factory.newElement(),i=void 0===e._length?e.v.length:e._length;for(r.setLength(i),r.c=e.c,t=0;t<i;t+=1)r.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=function(){var e={newShapeCollection:function(){return t?i[t-=1]:new ShapeCollection},release:function(e){var o,n=e._length;for(o=0;o<n;o+=1)shapePool.release(e.shapes[o]);e._length=0,t===r&&(i=pooling.double(i),r*=2),i[t]=e,t+=1}},t=0,r=4,i=createSizedArray(r);return e}(),ShapePropertyFactory=function(){var e=-999999;function t(e,t,r){var i,o,n,a,s,l,c,d,p,h=r.lastIndex,u=this.keyframes;if(e<u[0].t-this.offsetTime)i=u[0].s[0],n=!0,h=0;else if(e>=u[u.length-1].t-this.offsetTime)i=u[u.length-1].s?u[u.length-1].s[0]:u[u.length-2].e[0],n=!0;else{for(var g,m,f,y=h,b=u.length-1,C=!0;C&&(g=u[y],!((m=u[y+1]).t-this.offsetTime>e));)y<b-1?y+=1:C=!1;if(f=this.keyframesMetadata[y]||{},h=y,!(n=1===g.h)){if(e>=m.t-this.offsetTime)d=1;else if(e<g.t-this.offsetTime)d=0;else{var v;f.__fnct?v=f.__fnct:(v=BezierFactory.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y).get,f.__fnct=v),d=v((e-(g.t-this.offsetTime))/(m.t-this.offsetTime-(g.t-this.offsetTime)))}o=m.s?m.s[0]:g.e[0]}i=g.s[0]}for(l=t._length,c=i.i[0].length,r.lastIndex=h,a=0;a<l;a+=1)for(s=0;s<c;s+=1)p=n?i.i[a][s]:i.i[a][s]+(o.i[a][s]-i.i[a][s])*d,t.i[a][s]=p,p=n?i.o[a][s]:i.o[a][s]+(o.o[a][s]-i.o[a][s])*d,t.o[a][s]=p,p=n?i.v[a][s]:i.v[a][s]+(o.v[a][s]-i.v[a][s])*d,t.v[a][s]=p}function r(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime,o=this._caching.lastFrame;return o!==e&&(o<r&&t<r||o>i&&t>i)||(this._caching.lastIndex=o<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function i(){this.paths=this.localShapeCollection}function o(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var r,i=e._length;for(r=0;r<i;r+=1)if(e.v[r][0]!==t.v[r][0]||e.v[r][1]!==t.v[r][1]||e.o[r][0]!==t.o[r][0]||e.o[r][1]!==t.o[r][1]||e.i[r][0]!==t.i[r][0]||e.i[r][1]!==t.i[r][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function n(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(t=0;t<r;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function a(e,t,r){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var o=3===r?t.pt.k:t.ks.k;this.v=shapePool.clone(o),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,o,n){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===n?o.pt.k:o.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=i,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=n,a.prototype.setVValue=o,a.prototype.addEffect=s,l.prototype.getValue=n,l.prototype.interpolateShape=t,l.prototype.setVValue=o,l.prototype.addEffect=s;var c=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],r=this.p.v[1],i=this.s.v[0]/2,o=this.s.v[1]/2,n=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=r-o,a.v[1][0]=n?t+i:t-i,a.v[1][1]=r,a.v[2][0]=t,a.v[2][1]=r+o,a.v[3][0]=n?t-i:t+i,a.v[3][1]=r,a.i[0][0]=n?t-i*e:t+i*e,a.i[0][1]=r-o,a.i[1][0]=n?t+i:t-i,a.i[1][1]=r-o*e,a.i[2][0]=n?t+i*e:t-i*e,a.i[2][1]=r+o,a.i[3][0]=n?t-i:t+i,a.i[3][1]=r+o*e,a.o[0][0]=n?t+i*e:t-i*e,a.o[0][1]=r-o,a.o[1][0]=n?t+i:t-i,a.o[1][1]=r+o*e,a.o[2][0]=n?t-i*e:t+i*e,a.o[2][1]=r+o,a.o[3][0]=n?t-i:t+i,a.o[3][1]=r-o*e}},extendPrototype([DynamicPropertyContainer],t),t}(),d=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,r,i,o=2*Math.floor(this.pt.v),n=2*Math.PI/o,a=!0,s=this.or.v,l=this.ir.v,c=this.os.v,d=this.is.v,p=2*Math.PI*s/(2*o),h=2*Math.PI*l/(2*o),u=-Math.PI/2;u+=this.r.v;var g=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<o;e+=1){r=a?c:d,i=a?p:h;var m=(t=a?s:l)*Math.cos(u),f=t*Math.sin(u),y=0===m&&0===f?0:f/Math.sqrt(m*m+f*f),b=0===m&&0===f?0:-m/Math.sqrt(m*m+f*f);m+=+this.p.v[0],f+=+this.p.v[1],this.v.setTripleAt(m,f,m-y*i*r*g,f-b*i*r*g,m+y*i*r*g,f+b*i*r*g,e,!0),a=!a,u+=n*g}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),r=2*Math.PI/t,i=this.or.v,o=this.os.v,n=2*Math.PI*i/(4*t),a=.5*-Math.PI,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=i*Math.cos(a),c=i*Math.sin(a),d=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),p=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-d*n*o*s,c-p*n*o*s,l+d*n*o*s,c+p*n*o*s,e,!0),a+=r*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),p=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,o=bmMin(r,i,this.r.v),n=o*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+r,t-i+o,e+r,t-i+o,e+r,t-i+n,0,!0),this.v.setTripleAt(e+r,t+i-o,e+r,t+i-n,e+r,t+i-o,1,!0),0!==o?(this.v.setTripleAt(e+r-o,t+i,e+r-o,t+i,e+r-n,t+i,2,!0),this.v.setTripleAt(e-r+o,t+i,e-r+n,t+i,e-r+o,t+i,3,!0),this.v.setTripleAt(e-r,t+i-o,e-r,t+i-o,e-r,t+i-n,4,!0),this.v.setTripleAt(e-r,t-i+o,e-r,t-i+n,e-r,t-i+o,5,!0),this.v.setTripleAt(e-r+o,t-i,e-r+o,t-i,e-r+n,t-i,6,!0),this.v.setTripleAt(e+r-o,t-i,e+r-n,t-i,e+r-o,t-i,7,!0)):(this.v.setTripleAt(e-r,t+i,e-r+n,t+i,e-r,t+i,2),this.v.setTripleAt(e-r,t-i,e-r,t-i+n,e-r,t-i,3))):(this.v.setTripleAt(e+r,t-i+o,e+r,t-i+n,e+r,t-i+o,0,!0),0!==o?(this.v.setTripleAt(e+r-o,t-i,e+r-o,t-i,e+r-n,t-i,1,!0),this.v.setTripleAt(e-r+o,t-i,e-r+n,t-i,e-r+o,t-i,2,!0),this.v.setTripleAt(e-r,t-i+o,e-r,t-i+o,e-r,t-i+n,3,!0),this.v.setTripleAt(e-r,t+i-o,e-r,t+i-n,e-r,t+i-o,4,!0),this.v.setTripleAt(e-r+o,t+i,e-r+o,t+i,e-r+n,t+i,5,!0),this.v.setTripleAt(e+r-o,t+i,e+r-n,t+i,e+r-o,t+i,6,!0),this.v.setTripleAt(e+r,t+i-o,e+r,t+i-o,e+r,t+i-n,7,!0)):(this.v.setTripleAt(e-r,t-i,e-r+n,t-i,e-r,t-i,1,!0),this.v.setTripleAt(e-r,t+i,e-r,t+i-n,e-r,t+i,2,!0),this.v.setTripleAt(e+r,t+i,e+r-n,t+i,e+r,t+i,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],e),e}(),h={getShapeProp:function(e,t,r){var i;return 3===r||4===r?i=(3===r?t.pt:t.ks).k.length?new l(e,t,r):new a(e,t,r):5===r?i=new p(e,t):6===r?i=new c(e,t):7===r&&(i=new d(e,t)),i.k&&e.addDynamicProperty(i),i},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return h}(),Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,i=Math.round;function o(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function n(r){if(0===r)return this;var i=e(r),o=t(r);return this._t(i,-o,0,0,o,i,0,0,0,0,1,0,0,0,0,1)}function a(r){if(0===r)return this;var i=e(r),o=t(r);return this._t(1,0,0,0,0,i,-o,0,0,o,i,0,0,0,0,1)}function s(r){if(0===r)return this;var i=e(r),o=t(r);return this._t(i,0,o,0,0,1,0,0,-o,0,i,0,0,0,0,1)}function l(r){if(0===r)return this;var i=e(r),o=t(r);return this._t(i,-o,0,0,o,i,0,0,0,0,1,0,0,0,0,1)}function c(e,t){return this._t(1,t,e,1,0,0)}function d(e,t){return this.shear(r(e),r(t))}function p(i,o){var n=e(o),a=t(o);return this._t(n,a,0,0,-a,n,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(i),1,0,0,0,0,1,0,0,0,0,1)._t(n,-a,0,0,a,n,0,0,0,0,1,0,0,0,0,1)}function h(e,t,r){return r||0===r||(r=1),1===e&&1===t&&1===r?this:this._t(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1)}function u(e,t,r,i,o,n,a,s,l,c,d,p,h,u,g,m){return this.props[0]=e,this.props[1]=t,this.props[2]=r,this.props[3]=i,this.props[4]=o,this.props[5]=n,this.props[6]=a,this.props[7]=s,this.props[8]=l,this.props[9]=c,this.props[10]=d,this.props[11]=p,this.props[12]=h,this.props[13]=u,this.props[14]=g,this.props[15]=m,this}function g(e,t,r){return r=r||0,0!==e||0!==t||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1):this}function m(e,t,r,i,o,n,a,s,l,c,d,p,h,u,g,m){var f=this.props;if(1===e&&0===t&&0===r&&0===i&&0===o&&1===n&&0===a&&0===s&&0===l&&0===c&&1===d&&0===p)return f[12]=f[12]*e+f[15]*h,f[13]=f[13]*n+f[15]*u,f[14]=f[14]*d+f[15]*g,f[15]*=m,this._identityCalculated=!1,this;var y=f[0],b=f[1],C=f[2],v=f[3],x=f[4],S=f[5],w=f[6],_=f[7],k=f[8],T=f[9],M=f[10],P=f[11],O=f[12],E=f[13],L=f[14],A=f[15];return f[0]=y*e+b*o+C*l+v*h,f[1]=y*t+b*n+C*c+v*u,f[2]=y*r+b*a+C*d+v*g,f[3]=y*i+b*s+C*p+v*m,f[4]=x*e+S*o+w*l+_*h,f[5]=x*t+S*n+w*c+_*u,f[6]=x*r+S*a+w*d+_*g,f[7]=x*i+S*s+w*p+_*m,f[8]=k*e+T*o+M*l+P*h,f[9]=k*t+T*n+M*c+P*u,f[10]=k*r+T*a+M*d+P*g,f[11]=k*i+T*s+M*p+P*m,f[12]=O*e+E*o+L*l+A*h,f[13]=O*t+E*n+L*c+A*u,f[14]=O*r+E*a+L*d+A*g,f[15]=O*i+E*s+L*p+A*m,this._identityCalculated=!1,this}function f(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function b(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function C(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function v(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function x(e,t,r){return{x:e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}}function S(e,t,r){return e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12]}function w(e,t,r){return e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13]}function _(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function k(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,r=-this.props[1]/e,i=-this.props[4]/e,o=this.props[0]/e,n=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,s=new Matrix;return s.props[0]=t,s.props[1]=r,s.props[4]=i,s.props[5]=o,s.props[12]=n,s.props[13]=a,s}function T(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function M(e){var t,r=e.length,i=[];for(t=0;t<r;t+=1)i[t]=T(e[t]);return i}function P(e,t,r){var i=createTypedArray("float32",6);if(this.isIdentity())i[0]=e[0],i[1]=e[1],i[2]=t[0],i[3]=t[1],i[4]=r[0],i[5]=r[1];else{var o=this.props[0],n=this.props[1],a=this.props[4],s=this.props[5],l=this.props[12],c=this.props[13];i[0]=e[0]*o+e[1]*a+l,i[1]=e[0]*n+e[1]*s+c,i[2]=t[0]*o+t[1]*a+l,i[3]=t[0]*n+t[1]*s+c,i[4]=r[0]*o+r[1]*a+l,i[5]=r[0]*n+r[1]*s+c}return i}function O(e,t,r){return this.isIdentity()?[e,t,r]:[e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]]}function E(e,t){if(this.isIdentity())return e+","+t;var r=this.props;return Math.round(100*(e*r[0]+t*r[4]+r[12]))/100+","+Math.round(100*(e*r[1]+t*r[5]+r[13]))/100}function L(){for(var e=0,t=this.props,r="matrix3d(";e<16;)r+=i(1e4*t[e])/1e4,r+=15===e?")":",",e+=1;return r}function A(e){return e<1e-6&&e>0||e>-1e-6&&e<0?i(1e4*e)/1e4:e}function B(){var e=this.props;return"matrix("+A(e[0])+","+A(e[1])+","+A(e[4])+","+A(e[5])+","+A(e[12])+","+A(e[13])+")"}return function(){this.reset=o,this.rotate=n,this.rotateX=a,this.rotateY=s,this.rotateZ=l,this.skew=d,this.skewFromAxis=p,this.shear=c,this.scale=h,this.setTransform=u,this.translate=g,this.transform=m,this.multiply=f,this.applyToPoint=x,this.applyToX=S,this.applyToY=w,this.applyToZ=_,this.applyToPointArray=O,this.applyToTriplePoints=P,this.applyToPointStringified=E,this.toCSS=L,this.to2dCSS=B,this.clone=C,this.cloneFromProps=v,this.equals=b,this.inversePoints=M,this.inversePoint=T,this.getInverseMatrix=k,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var i=t[r].split("=");if(decodeURIComponent(i[0])==e)return decodeURIComponent(i[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";var queryString="",scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer");var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,r){t[e]||(t[e]=r)},e.getModifier=function(e,r,i){return new t[e](r,i)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,i,o){var n=[];t<=1?n.push({s:e,e:t}):e>=1?n.push({s:e-1,e:t-1}):(n.push({s:e,e:1}),n.push({s:0,e:t-1}));var a,s,l=[],c=n.length;for(a=0;a<c;a+=1){var d,p;(s=n[a]).e*o<i||s.s*o>i+r||(d=s.s*o<=i?0:(s.s*o-i)/r,p=s.e*o>=i+r?1:(s.e*o-i)/r,l.push([d,p]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r,i,o;if(this._mdf||e){var n=this.o.v%360/360;if(n<0&&(n+=1),(t=this.s.v>1?1+n:this.s.v<0?0+n:this.s.v+n)>(r=this.e.v>1?1+n:this.e.v<0?0+n:this.e.v+n)){var a=t;t=r,r=a}t=1e-4*Math.round(1e4*t),r=1e-4*Math.round(1e4*r),this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var s,l,c,d,p,h=this.shapes.length,u=0;if(r===t)for(o=0;o<h;o+=1)this.shapes[o].localShapeCollection.releaseShapes(),this.shapes[o].shape._mdf=!0,this.shapes[o].shape.paths=this.shapes[o].localShapeCollection,this._mdf&&(this.shapes[o].pathsData.length=0);else if(1===r&&0===t||0===r&&1===t){if(this._mdf)for(o=0;o<h;o+=1)this.shapes[o].pathsData.length=0,this.shapes[o].shape._mdf=!0}else{var g,m,f=[];for(o=0;o<h;o+=1)if((g=this.shapes[o]).shape._mdf||this._mdf||e||2===this.m){if(l=(i=g.shape.paths)._length,p=0,!g.shape._mdf&&g.pathsData.length)p=g.totalShapeLength;else{for(c=this.releasePathsData(g.pathsData),s=0;s<l;s+=1)d=bez.getSegmentsLength(i.shapes[s]),c.push(d),p+=d.totalLength;g.totalShapeLength=p,g.pathsData=c}u+=p,g.shape._mdf=!0}else g.shape.paths=g.localShapeCollection;var y,b=t,C=r,v=0;for(o=h-1;o>=0;o-=1)if((g=this.shapes[o]).shape._mdf){for((m=g.localShapeCollection).releaseShapes(),2===this.m&&h>1?(y=this.calculateShapeEdges(t,r,g.totalShapeLength,v,u),v+=g.totalShapeLength):y=[[b,C]],l=y.length,s=0;s<l;s+=1){b=y[s][0],C=y[s][1],f.length=0,C<=1?f.push({s:g.totalShapeLength*b,e:g.totalShapeLength*C}):b>=1?f.push({s:g.totalShapeLength*(b-1),e:g.totalShapeLength*(C-1)}):(f.push({s:g.totalShapeLength*b,e:g.totalShapeLength}),f.push({s:0,e:g.totalShapeLength*(C-1)}));var x=this.addShapes(g,f[0]);if(f[0].s!==f[0].e){if(f.length>1)if(g.shape.paths.shapes[g.shape.paths._length-1].c){var S=x.pop();this.addPaths(x,m),x=this.addShapes(g,f[1],S)}else this.addPaths(x,m),x=this.addShapes(g,f[1]);this.addPaths(x,m)}}g.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,i,o,n,a){o.setXYAt(t[0],t[1],"o",n),o.setXYAt(r[0],r[1],"i",n+1),a&&o.setXYAt(e[0],e[1],"v",n),o.setXYAt(i[0],i[1],"v",n+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,i){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),i&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var i,o,n,a,s,l,c,d,p=e.pathsData,h=e.shape.paths.shapes,u=e.shape.paths._length,g=0,m=[],f=!0;for(r?(s=r._length,d=r._length):(r=shapePool.newElement(),s=0,d=0),m.push(r),i=0;i<u;i+=1){for(l=p[i].lengths,r.c=h[i].c,n=h[i].c?l.length:l.length+1,o=1;o<n;o+=1)if(g+(a=l[o-1]).addedLength<t.s)g+=a.addedLength,r.c=!1;else{if(g>t.e){r.c=!1;break}t.s<=g&&t.e>=g+a.addedLength?(this.addSegment(h[i].v[o-1],h[i].o[o-1],h[i].i[o],h[i].v[o],r,s,f),f=!1):(c=bez.getNewSegment(h[i].v[o-1],h[i].v[o],h[i].o[o-1],h[i].i[o],(t.s-g)/a.addedLength,(t.e-g)/a.addedLength,l[o-1]),this.addSegmentFromArray(c,r,s,f),f=!1,r.c=!1),g+=a.addedLength,s+=1}if(h[i].c&&l.length){if(a=l[o-1],g<=t.e){var y=l[o-1].addedLength;t.s<=g&&t.e>=g+y?(this.addSegment(h[i].v[o-1],h[i].o[o-1],h[i].i[0],h[i].v[0],r,s,f),f=!1):(c=bez.getNewSegment(h[i].v[o-1],h[i].v[0],h[i].o[o-1],h[i].i[0],(t.s-g)/y,(t.e-g)/y,l[o-1]),this.addSegmentFromArray(c,r,s,f),f=!1,r.c=!1)}else r.c=!1;g+=a.addedLength,s+=1}if(r._length&&(r.setXYAt(r.v[d][0],r.v[d][1],"i",d),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),g>t.e)break;i<u-1&&(r=shapePool.newElement(),f=!0,m.push(r),s=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,i=[0,0],o=e._length,n=0;for(n=0;n<o;n+=1)i[0]+=e.v[n][0],i[1]+=e.v[n][1];i[0]/=o,i[1]/=o;var a,s,l,c,d,p,h=shapePool.newElement();for(h.c=e.c,n=0;n<o;n+=1)a=e.v[n][0]+(i[0]-e.v[n][0])*r,s=e.v[n][1]+(i[1]-e.v[n][1])*r,l=e.o[n][0]+(i[0]-e.o[n][0])*-r,c=e.o[n][1]+(i[1]-e.o[n][1])*-r,d=e.i[n][0]+(i[0]-e.i[n][0])*-r,p=e.i[n][1]+(i[1]-e.i[n][1])*-r,h.setTripleAt(a,s,l,c,d,p,n);return h},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,i,o,n,a,s=this.shapes.length,l=this.amount.v;if(0!==l)for(r=0;r<s;r+=1){if(a=(n=this.shapes[r]).localShapeCollection,n.shape._mdf||this._mdf||e)for(a.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,o=n.shape.paths._length,i=0;i<o;i+=1)a.addShape(this.processPath(t[i],l));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,r){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var i,o=t.or.k.length;for(i=0;i<o;i+=1)t.or.k[i].to=null,t.or.k[i].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var r;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var i,o;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(i=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),o=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),o=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(i=this.p.pv,o=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],o=[];var n=this.px,a=this.py;n._caching.lastFrame+n.offsetTime<=n.keyframes[0].t?(i[0]=n.getValueAtTime((n.keyframes[0].t+.01)/r,0),i[1]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),o[0]=n.getValueAtTime(n.keyframes[0].t/r,0),o[1]=a.getValueAtTime(a.keyframes[0].t/r,0)):n._caching.lastFrame+n.offsetTime>=n.keyframes[n.keyframes.length-1].t?(i[0]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/r,0),i[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),o[0]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/r,0),o[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0)):(i=[n.pv,a.pv],o[0]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/r,n.offsetTime),o[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime))}else i=o=e;this.v.rotate(-Math.atan2(i[1]-o[1],i[0]-o[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,r,i){return new t(e,r,i)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(0===e)return[];var i=t*t-4*e*r;if(i<0)return[];var o=-t/(2*e);if(0===i)return[o];var n=Math.sqrt(i)/(2*e);return[o-n,o+n]}function polynomialCoefficients(e,t,r,i){return[3*t-e-3*r+i,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,i,o){o&&pointEqual(e,t)&&(t=lerpPoint(e,i,1/3)),o&&pointEqual(r,i)&&(r=lerpPoint(e,i,2/3));var n=polynomialCoefficients(e[0],t[0],r[0],i[0]),a=polynomialCoefficients(e[1],t[1],r[1],i[1]);this.a=[n[0],a[0]],this.b=[n[1],a[1]],this.c=[n[2],a[2]],this.d=[n[3],a[3]],this.points=[e,t,r,i]}function extrema(e,t){var r=e.points[0][t],i=e.points[e.points.length-1][t];if(r>i){var o=i;i=r,r=o}for(var n=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<n.length;a+=1)if(n[a]>0&&n[a]<1){var s=e.point(n[a])[t];s<r?r=s:s>i&&(i=s)}return{min:r,max:i}}function intersectData(e,t,r){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,r,i,o,n){if(boxIntersect(e,t))if(r>=n||e.width<=i&&e.height<=i&&t.width<=i&&t.height<=i)o.push([e.t,t.t]);else{var a=splitData(e),s=splitData(t);intersectsImpl(a[0],s[0],r+1,i,o,n),intersectsImpl(a[0],s[1],r+1,i,o,n),intersectsImpl(a[1],s[0],r+1,i,o,n),intersectsImpl(a[1],s[1],r+1,i,o,n)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,i){var o=[e[0],e[1],1],n=[t[0],t[1],1],a=[r[0],r[1],1],s=[i[0],i[1],1],l=crossProduct(crossProduct(o,n),crossProduct(a,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,r,i,o,n,a){var s=r-Math.PI/2,l=r+Math.PI/2,c=t[0]+Math.cos(r)*i*o,d=t[1]-Math.sin(r)*i*o;e.setTripleAt(c,d,c+Math.cos(s)*n,d-Math.sin(s)*n,c+Math.cos(l)*a,d-Math.sin(l)*a,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],i=.5*-Math.PI;return[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]]}function getProjectingAngle(e,t){var r=0===t?e.length()-1:t-1,i=(t+1)%e.length(),o=getPerpendicularVector(e.v[r],e.v[i]);return Math.atan2(0,1)-Math.atan2(o[1],o[0])}function zigZagCorner(e,t,r,i,o,n,a){var s=getProjectingAngle(t,r),l=t.v[r%t._length],c=t.v[0===r?t._length-1:r-1],d=t.v[(r+1)%t._length],p=2===n?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,h=2===n?Math.sqrt(Math.pow(l[0]-d[0],2)+Math.pow(l[1]-d[1],2)):0;setPoint(e,t.v[r%t._length],s,a,i,h/(2*(o+1)),p/(2*(o+1)))}function zigZagSegment(e,t,r,i,o,n){for(var a=0;a<i;a+=1){var s=(a+1)/(i+1),l=2===o?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,c=t.normalAngle(s);setPoint(e,t.point(s),c,n,r,l/(2*(i+1)),l/(2*(i+1))),n=-n}return n}function linearOffset(e,t,r){var i=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,i,r),polarOffset(t,i,r)]}function offsetSegment(e,t){var r,i,o,n,a,s,l;r=(l=linearOffset(e.points[0],e.points[1],t))[0],i=l[1],o=(l=linearOffset(e.points[1],e.points[2],t))[0],n=l[1],a=(l=linearOffset(e.points[2],e.points[3],t))[0],s=l[1];var c=lineIntersection(r,i,o,n);null===c&&(c=i);var d=lineIntersection(a,s,o,n);return null===d&&(d=a),new PolynomialBezier(r,c,d,s)}function joinLines(e,t,r,i,o){var n=t.points[3],a=r.points[0];if(3===i)return n;if(pointEqual(n,a))return n;if(2===i){var s=-t.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,c=lineIntersection(n,polarOffset(n,s+Math.PI/2,100),a,polarOffset(a,s+Math.PI/2,100)),d=c?pointDistance(c,n):pointDistance(n,a)/2,p=polarOffset(n,s,2*d*roundCorner);return e.setXYAt(p[0],p[1],"o",e.length()-1),p=polarOffset(a,l,2*d*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],p[0],p[1],e.length()),a}var h=lineIntersection(pointEqual(n,t.points[2])?t.points[0]:t.points[2],n,a,pointEqual(a,r.points[1])?r.points[3]:r.points[1]);return h&&pointDistance(h,n)<o?(e.setTripleAt(h[0],h[1],h[0],h[1],h[0],h[1],e.length()),h):n}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),i=t.slice(),o=getIntersection(e[e.length-1],t[0]);return o&&(r[e.length-1]=e[e.length-1].split(o[0])[0],i[0]=t[0].split(o[1])[1]),e.length>1&&t.length>1&&(o=getIntersection(e[0],t[t.length-1]))?[[e[0].split(o[0])[0]],[t[t.length-1].split(o[1])[1]]]:[r,i]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r,i,o,n,a=e.inflectionPoints();if(0===a.length)return[offsetSegment(e,t)];if(1===a.length||floatEqual(a[1],1))return r=(o=e.split(a[0]))[0],i=o[1],[offsetSegment(r,t),offsetSegment(i,t)];r=(o=e.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return n=(o=o[1].split(s))[0],i=o[1],[offsetSegment(r,t),offsetSegment(n,t),offsetSegment(i,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",i="normal",o=t.length,n=0;n<o;n+=1)switch(t[n].toLowerCase()){case"italic":i="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:i,weight:e.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,r,i,o,n){var a=n?-1:1,s=i.s.v[0]+(1-i.s.v[0])*(1-o),l=i.s.v[1]+(1-i.s.v[1])*(1-o);e.translate(i.p.v[0]*a*o,i.p.v[1]*a*o,i.p.v[2]),t.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),t.rotate(-i.r.v*a*o),t.translate(i.a.v[0],i.a.v[1],i.a.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.scale(n?1/s:s,n?1/l:l),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,i){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)e[r]._render=t,"gr"===e[r].ty&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,i,o,n,a=!1;if(this._mdf||e){var s,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(n=0,i=0;i<=this._groups.length-1;i+=1){if(s=n<l,this._groups[i]._render=s,this.changeGroupRender(this._groups[i].it,s),!s){var d=this.elemsData[i].it,p=d[d.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}n+=1}this._currentCopies=l;var h=this.o.v,u=h%1,g=h>0?Math.floor(h):Math.ceil(h),m=this.pMatrix.props,f=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var b,C,v=0;if(h>0){for(;v<g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),v+=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,u,!1),v+=u)}else if(h<0){for(;v>g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),v-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),v-=u)}for(i=1===this.data.m?0:this._currentCopies-1,o=1===this.data.m?1:-1,n=this._currentCopies;n;){if(C=(r=(t=this.elemsData[i].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!==v){for((0!==i&&1===o||i!==this._currentCopies-1&&-1===o)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),b=0;b<C;b+=1)r[b]=this.matrix.props[b];this.matrix.reset()}else for(this.matrix.reset(),b=0;b<C;b+=1)r[b]=this.matrix.props[b];v+=1,n-=1,i+=o}}else for(n=this._currentCopies,i=0,o=1;n;)r=(t=this.elemsData[i].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,n-=1,i+=o;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r,i=shapePool.newElement();i.c=e.c;var o,n,a,s,l,c,d,p,h,u,g,m,f=e._length,y=0;for(r=0;r<f;r+=1)o=e.v[r],a=e.o[r],n=e.i[r],o[0]===a[0]&&o[1]===a[1]&&o[0]===n[0]&&o[1]===n[1]?0!==r&&r!==f-1||e.c?(s=0===r?e.v[f-1]:e.v[r-1],c=(l=Math.sqrt(Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)))?Math.min(l/2,t)/l:0,d=g=o[0]+(s[0]-o[0])*c,p=m=o[1]-(o[1]-s[1])*c,h=d-(d-o[0])*roundCorner,u=p-(p-o[1])*roundCorner,i.setTripleAt(d,p,h,u,g,m,y),y+=1,s=r===f-1?e.v[0]:e.v[r+1],c=(l=Math.sqrt(Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)))?Math.min(l/2,t)/l:0,d=h=o[0]+(s[0]-o[0])*c,p=u=o[1]+(s[1]-o[1])*c,g=d-(d-o[0])*roundCorner,m=p-(p-o[1])*roundCorner,i.setTripleAt(d,p,h,u,g,m,y),y+=1):(i.setTripleAt(o[0],o[1],a[0],a[1],n[0],n[1],y),y+=1):(i.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],y),y+=1);return i},RoundCornersModifier.prototype.processShapes=function(e){var t,r,i,o,n,a,s=this.shapes.length,l=this.rd.v;if(0!==l)for(r=0;r<s;r+=1){if(a=(n=this.shapes[r]).localShapeCollection,n.shape._mdf||this._mdf||e)for(a.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,o=n.shape.paths._length,i=0;i<o;i+=1)a.addShape(this.processPath(t[i],l));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var i=Math.sqrt(r);return floatZero(i)?i>0&&i<1?[t]:[]:[t-i,t+i].filter(function(e){return e>0&&e<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),o=lerpPoint(t,r,e),n=lerpPoint(r,i,e),a=lerpPoint(o,n,e);return[new PolynomialBezier(this.points[0],t,o,a,!0),new PolynomialBezier(a,n,i,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,r){void 0===t&&(t=2),void 0===r&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,i,r),i},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,r,i){var o=e._length,n=shapePool.newElement();if(n.c=e.c,e.c||(o-=1),0===o)return n;var a=-1,s=PolynomialBezier.shapeSegment(e,0);zigZagCorner(n,e,0,t,r,i,a);for(var l=0;l<o;l+=1)a=zigZagSegment(n,s,t,r,i,-a),s=l!==o-1||e.c?PolynomialBezier.shapeSegment(e,(l+1)%o):null,zigZagCorner(n,e,l+1,t,r,i,a);return n},ZigZagModifier.prototype.processShapes=function(e){var t,r,i,o,n,a,s=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),d=this.pointsType.v;if(0!==l)for(r=0;r<s;r+=1){if(a=(n=this.shapes[r]).localShapeCollection,n.shape._mdf||this._mdf||e)for(a.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,o=n.shape.paths._length,i=0;i<o;i+=1)a.addShape(this.processPath(t[i],l,c,d));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,r,i){var o=shapePool.newElement();o.c=e.c;var n,a,s,l=e.length();e.c||(l-=1);var c=[];for(n=0;n<l;n+=1)s=PolynomialBezier.shapeSegment(e,n),c.push(offsetSegmentSplit(s,t));if(!e.c)for(n=l-1;n>=0;n-=1)s=PolynomialBezier.shapeSegmentInverted(e,n),c.push(offsetSegmentSplit(s,t));c=pruneIntersections(c);var d=null,p=null;for(n=0;n<c.length;n+=1){var h=c[n];for(p&&(d=joinLines(o,p,h[0],r,i)),p=h[h.length-1],a=0;a<h.length;a+=1)s=h[a],d&&pointEqual(s.points[0],d)?o.setXYAt(s.points[1][0],s.points[1][1],"o",o.length()-1):o.setTripleAt(s.points[0][0],s.points[0][1],s.points[1][0],s.points[1][1],s.points[0][0],s.points[0][1],o.length()),o.setTripleAt(s.points[3][0],s.points[3][1],s.points[3][0],s.points[3][1],s.points[2][0],s.points[2][1],o.length()),d=s.points[3]}return c.length&&joinLines(o,p,c[0][0],r,i),o},OffsetPathModifier.prototype.processShapes=function(e){var t,r,i,o,n,a,s=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,d=this.lineJoin;if(0!==l)for(r=0;r<s;r+=1){if(a=(n=this.shapes[r]).localShapeCollection,n.shape._mdf||this._mdf||e)for(a.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,o=n.shape.paths._length,i=0;i<o;i+=1)a.addShape(this.processPath(t[i],l,d,c));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988,i=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function o(e,t){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=t;var i=createTag("span");i.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(i),document.body.appendChild(r);var o=i.offsetWidth;return i.style.fontFamily=function(e){var t,r=e.split(","),i=r.length,o=[];for(t=0;t<i;t+=1)"sans-serif"!==r[t]&&"monospace"!==r[t]&&o.push(r[t]);return o.join(",")}(e)+", "+t,{node:i,w:o,parent:r}}function n(e,t){var r,i=document.body&&t?"svg":"canvas",o=getFontProperties(e);if("svg"===i){var n=createNS("text");n.style.fontSize="100px",n.setAttribute("font-family",e.fFamily),n.setAttribute("font-style",o.style),n.setAttribute("font-weight",o.weight),n.textContent="1",e.fClass?(n.style.fontFamily="inherit",n.setAttribute("class",e.fClass)):n.style.fontFamily=e.fFamily,t.appendChild(n),r=n}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=o.style+" "+o.weight+" 100px "+e.fFamily,r=a}return{measureText:function(e){return"svg"===i?(r.textContent=e,r.getComputedTextLength()):r.measureText(e).width}}}function a(e){var t=0,r=e.charCodeAt(0);if(r>=55296&&r<=56319){var i=e.charCodeAt(1);i>=56320&&i<=57343&&(t=1024*(r-55296)+i-56320+65536)}return t}function s(e){var t=a(e);return t>=127462&&t<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};l.isModifier=function(e,t){var r=e.toString(16)+t.toString(16);return-1!==i.indexOf(r)},l.isZeroWidthJoiner=function(e){return 8205===e},l.isFlagEmoji=function(e){return s(e.substr(0,2))&&s(e.substr(2,2))},l.isRegionalCode=s,l.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},l.isRegionalFlag=function(e,t){var i=a(e.substr(t,2));if(i!==r)return!1;var o=0;for(t+=2;o<5;){if((i=a(e.substr(t,2)))<917601||i>917626)return!1;o+=1,t+=2}return 917631===a(e.substr(t,2))},l.isVariationSelector=function(e){return 65039===e},l.BLACK_FLAG_CODE_POINT=r;var c={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var r,i,o=e.length,n=this.chars.length;for(t=0;t<o;t+=1){for(r=0,i=!1;r<n;)this.chars[r].style===e[t].style&&this.chars[r].fFamily===e[t].fFamily&&this.chars[r].ch===e[t].ch&&(i=!0),r+=1;i||(this.chars.push(e[t]),n+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach(function(e){e.helper=n(e),e.cache={}}),void(this.fonts=e.list);var r,i=e.list,a=i.length,s=a;for(r=0;r<a;r+=1){var l,c,d=!0;if(i[r].loaded=!1,i[r].monoCase=o(i[r].fFamily,"monospace"),i[r].sansCase=o(i[r].fFamily,"sans-serif"),i[r].fPath){if("p"===i[r].fOrigin||3===i[r].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+i[r].fFamily+'"], style[f-origin="3"][f-family="'+i[r].fFamily+'"]')).length>0&&(d=!1),d){var p=createTag("style");p.setAttribute("f-forigin",i[r].fOrigin),p.setAttribute("f-origin",i[r].origin),p.setAttribute("f-family",i[r].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+i[r].fFamily+"; font-style: normal; src: url('"+i[r].fPath+"');}",t.appendChild(p)}}else if("g"===i[r].fOrigin||1===i[r].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<l.length;c+=1)-1!==l[c].href.indexOf(i[r].fPath)&&(d=!1);if(d){var h=createTag("link");h.setAttribute("f-forigin",i[r].fOrigin),h.setAttribute("f-origin",i[r].origin),h.type="text/css",h.rel="stylesheet",h.href=i[r].fPath,document.body.appendChild(h)}}else if("t"===i[r].fOrigin||2===i[r].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c+=1)i[r].fPath===l[c].src&&(d=!1);if(d){var u=createTag("link");u.setAttribute("f-forigin",i[r].fOrigin),u.setAttribute("f-origin",i[r].origin),u.setAttribute("rel","stylesheet"),u.setAttribute("href",i[r].fPath),t.appendChild(u)}}}else i[r].loaded=!0,s-=1;i[r].helper=n(i[r],t),i[r].cache={},this.fonts.push(i[r])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,r,i){for(var o=0,n=this.chars.length;o<n;){if(this.chars[o].ch===t&&this.chars[o].style===r&&this.chars[o].fFamily===i)return this.chars[o];o+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,r,i)),e},getFontByName:function(e){for(var t=0,r=this.fonts.length;t<r;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,r){var i=this.getFontByName(t),o=e;if(!i.cache[o]){var n=i.helper;if(" "===e){var a=n.measureText("|"+e+"|"),s=n.measureText("||");i.cache[o]=(a-s)/100}else i.cache[o]=n.measureText(e)/100}return i.cache[o]*r},checkLoadedFonts:function(){var e,t,r,i=this.fonts.length,o=i;for(e=0;e<i;e+=1)this.fonts[e].loaded?o-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,r=this.fonts[e].monoCase.w,t.offsetWidth!==r?(o-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,r=this.fonts[e].sansCase.w,t.offsetWidth!==r&&(o-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==o&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return l.prototype=c,l}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r,i=e.ef||[];this.effectElements=[];var o,n=i.length;for(r=0;r<n;r+=1)o=new GroupEffect(i[r],t),this.effectElements.push(o)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,r),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var r;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var i,o=this.data.ef.length,n=this.data.ef;for(r=0;r<o;r+=1){switch(i=null,n[r].ty){case 0:i=new SliderEffect(n[r],t,this);break;case 1:i=new AngleEffect(n[r],t,this);break;case 2:i=new ColorEffect(n[r],t,this);break;case 3:i=new PointEffect(n[r],t,this);break;case 4:case 7:i=new CheckboxEffect(n[r],t,this);break;case 10:i=new LayerIndexEffect(n[r],t,this);break;case 11:i=new MaskIndexEffect(n[r],t,this);break;case 5:i=new EffectsManager(n[r],t);break;default:i=new NoValueEffect(n[r])}i&&this.effectElements.push(i)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),r=e("effects"),i=e("shape"),o=e("text"),n=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=n(this):4===this.data.ty?(this.layerInterface.shapeInterface=i(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=o(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,r){this.globalData=t,this.comp=r,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)(t||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,r,i=this.layers.length;for(this.completeLayers=!0,t=i-1;t>=0;t-=1)this.elements[t]||(r=this.layers[t]).ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var r,i=e.length,o=this.layers.length;for(t=0;t<i;t+=1)for(r=0;r<o;){if(this.layers[r].id===e[t].id){this.layers[r]=e[t];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var i=this.elements,o=this.layers,n=0,a=o.length;n<a;)o[n].ind==t&&(i[n]&&!0!==i[n]?(r.push(i[n]),i[n].setAsParent(),void 0!==o[n].parent?this.buildElementParenting(e,o[n].parent,r):e.setHierarchy(r)):(this.buildItem(n),this.addPendingElement(e))),n+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,r=e.shift();if("number"==typeof r)t=this.elements[r];else{var i,o=this.elements.length;for(i=0;i<o;i+=1)if(this.elements[i].data.nm===r){t=this.elements[i];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,o,n=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var s,l,c,d,p,h,u=this.masksProperties,g=0,m=[],f=createElementID(),y="clipPath",b="clip-path";for(i=0;i<a;i+=1)if(("a"!==u[i].mode&&"n"!==u[i].mode||u[i].inv||100!==u[i].o.k||u[i].o.x)&&(y="mask",b="mask"),"s"!==u[i].mode&&"i"!==u[i].mode||0!==g?c=null:((c=createNS("rect")).setAttribute("fill","#ffffff"),c.setAttribute("width",this.element.comp.data.w||0),c.setAttribute("height",this.element.comp.data.h||0),m.push(c)),o=createNS("path"),"n"===u[i].mode)this.viewData[i]={op:PropertyFactory.getProp(this.element,u[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[i],3),elem:o,lastPath:""},n.appendChild(o);else{var C;if(g+=1,o.setAttribute("fill","s"===u[i].mode?"#000000":"#ffffff"),o.setAttribute("clip-rule","nonzero"),0!==u[i].x.k?(y="mask",b="mask",h=PropertyFactory.getProp(this.element,u[i].x,0,null,this.element),C=createElementID(),(d=createNS("filter")).setAttribute("id",C),(p=createNS("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),d.appendChild(p),n.appendChild(d),o.setAttribute("stroke","s"===u[i].mode?"#000000":"#ffffff")):(p=null,h=null),this.storedData[i]={elem:o,x:h,expan:p,lastPath:"",lastOperator:"",filterId:C,lastRadius:0},"i"===u[i].mode){l=m.length;var v=createNS("g");for(s=0;s<l;s+=1)v.appendChild(m[s]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",f+"_"+g),x.appendChild(o),n.appendChild(x),v.setAttribute("mask","url("+getLocationHref()+"#"+f+"_"+g+")"),m.length=0,m.push(v)}else m.push(o);u[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:o,lastPath:"",op:PropertyFactory.getProp(this.element,u[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[i],3),invRect:c},this.viewData[i].prop.k||this.drawPath(u[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=createNS(y),a=m.length,i=0;i<a;i+=1)this.maskElement.appendChild(m[i]);g>0&&(this.maskElement.setAttribute("id",f),this.element.maskedElement.setAttribute(b,"url("+getLocationHref()+"#"+f+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,r=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<i;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),r=0;r<i;r+=1)t.multiply(this.hierarchy[r].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var r=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(r),e=1;e<t;e+=1){var i=this.localTransforms[e].matrix;r.multiply(i)}r.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var o=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)o*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=o}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,r=e.length;for(t=0;t<r;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var r,i=!0,o=this.comp;i;)o.finalTransform?(o.data.hasMask&&t.splice(0,0,o.finalTransform),o=o.comp):i=!1;var n,a=t.length;for(r=0;r<a;r+=1)n=t[r].mat.applyToPointArray(0,0,0),e=[e[0]-n[0],e[1]-n[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,r=this.element.finalTransform.mat,i=this.masksProperties.length;for(t=0;t<i;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var o=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),o.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,r){var i,o,n=" M"+t.v[0][0]+","+t.v[0][1];for(o=t._length,i=1;i<o;i+=1)n+=" C"+t.o[i-1][0]+","+t.o[i-1][1]+" "+t.i[i][0]+","+t.i[i][1]+" "+t.v[i][0]+","+t.v[i][1];if(t.c&&o>1&&(n+=" C"+t.o[i-1][0]+","+t.o[i-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==n){var a="";r.elem&&(t.c&&(a=e.inv?this.solidPath+n:n),r.elem.setAttribute("d",a)),r.lastPath=n}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var r=createNS("filter");return r.setAttribute("id",e),!0!==t&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r,i="SourceGraphic",o=e.data.ef?e.data.ef.length:0,n=createElementID(),a=filtersFactory.createFilter(n,!0),s=0;for(this.filters=[],t=0;t<o;t+=1){r=null;var l=e.data.ef[t].ty;registeredEffects$1[l]&&(r=new(0,registeredEffects$1[l].effect)(a,e.effectsManager.effectElements[t],e,idPrefix+s,i),i=idPrefix+s,registeredEffects$1[l].countsAsEffect&&(s+=1)),r&&this.filters.push(r)}s&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+n+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,i=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var r=createNS("clipPath"),i=createNS("path");i.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var o=createElementID();if(r.setAttribute("id",o),r.appendChild(i),this.globalData.defs.appendChild(r),this.checkMasks()){var n=createNS("g");n.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),n.appendChild(this.layerElement),this.transformedElement=n,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,r,i,o,n=this.layerId+"_"+e;if(1===e||3===e){var a=createNS("mask");a.setAttribute("id",n),a.setAttribute("mask-type",3===e?"luminance":"alpha"),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(i),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==e||(a.setAttribute("mask-type","luminance"),t=createElementID(),r=filtersFactory.createFilter(t),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(o=createNS("g")).appendChild(i),a.appendChild(o),o.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var s=createNS("mask");s.setAttribute("id",n),s.setAttribute("mask-type","alpha");var l=createNS("g");s.appendChild(l),t=createElementID(),r=filtersFactory.createFilter(t);var c=createNS("feComponentTransfer");c.setAttribute("in","SourceGraphic"),r.appendChild(c);var d=createNS("feFuncA");d.setAttribute("type","table"),d.setAttribute("tableValues","1.0 0.0"),c.appendChild(d),this.globalData.defs.appendChild(r);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),l.appendChild(p),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(i),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),l.appendChild(p),o.appendChild(this.layerElement),l.appendChild(o)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=n}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,r=this.shapeModifiers.length;for(t=0;t<r;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,r=0,i=t.length;r<i;){if(t[r].elem===e)return t[r].pos;r+=1}return 0},addProcessedElement:function(e,t){for(var r=this.processedElements,i=r.length;i;)if(r[i-=1].elem===e)return void(r[i].pos=t);r.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var i=0,o=e.length;i<o;){if(e[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,r,i){var o;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var n,a=t.length||0;for(o=0;o<a;o+=1)n=PropertyFactory.getProp(e,t[o].v,0,0,this),this.k=n.k||this.k,this.dataProps[o]={n:t[o].n,p:n};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var i=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<r;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,i=this.o.length/2;r<i;){if(Math.abs(e[4*r]-e[4*t+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r,i,o=4*this.data.p;for(t=0;t<o;t+=1)r=t%4==0?100:255,i=Math.round(this.prop.v[t]*r),this.c[t]!==i&&(this.c[t]=i,this._cmdf=!e);if(this.o.length)for(o=this.prop.v.length,t=4*this.data.p;t<o;t+=1)r=t%2==0?100:1,i=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==i&&(this.o[t-4*this.data.p]=i,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),i=createNS(1===t.t?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var o,n,a,s=[];for(a=4*t.g.p,n=0;n<a;n+=4)o=createNS("stop"),i.appendChild(o),s.push(o);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,o,n=createNS("mask"),a=createNS("path");n.appendChild(a);var s=createElementID(),l=createElementID();n.setAttribute("id",l);var c=createNS(1===e.t?"linearGradient":"radialGradient");c.setAttribute("id",s),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),o=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var d=this.stops;for(i=4*e.g.p;i<o;i+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(r),d.push(r);a.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),"gs"===e.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=n,this.ost=d,this.maskId=l,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,r,i){if(0===t)return"";var o,n=e.o,a=e.i,s=e.v,l=" M"+i.applyToPointStringified(s[0][0],s[0][1]);for(o=1;o<t;o+=1)l+=" C"+i.applyToPointStringified(n[o-1][0],n[o-1][1])+" "+i.applyToPointStringified(a[o][0],a[o][1])+" "+i.applyToPointStringified(s[o][0],s[o][1]);return r&&t&&(l+=" C"+i.applyToPointStringified(n[o-1][0],n[o-1][1])+" "+i.applyToPointStringified(a[0][0],a[0][1])+" "+i.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix,r={createRenderFunction:function(e){switch(e.ty){case"fl":return a;case"gf":return l;case"gs":return s;case"st":return c;case"sh":case"el":case"rc":case"sr":return n;case"tr":return i;case"no":return o;default:return null}}};function i(e,t,r){(r||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(r||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function o(){}function n(r,i,o){var n,a,s,l,c,d,p,h,u,g,m=i.styles.length,f=i.lvl;for(d=0;d<m;d+=1){if(l=i.sh._mdf||o,i.styles[d].lvl<f){for(h=t.reset(),u=f-i.styles[d].lvl,g=i.transformers.length-1;!l&&u>0;)l=i.transformers[g].mProps._mdf||l,u-=1,g-=1;if(l)for(u=f-i.styles[d].lvl,g=i.transformers.length-1;u>0;)h.multiply(i.transformers[g].mProps.v),u-=1,g-=1}else h=e;if(a=(p=i.sh.paths)._length,l){for(s="",n=0;n<a;n+=1)(c=p.shapes[n])&&c._length&&(s+=buildShapeString(c,c._length,c.c,h));i.caches[d]=s}else s=i.caches[d];i.styles[d].d+=!0===r.hd?"":s,i.styles[d]._mdf=l||i.styles[d]._mdf}}function a(e,t,r){var i=t.style;(t.c._mdf||r)&&i.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&i.pElem.setAttribute("fill-opacity",t.o.v)}function s(e,t,r){l(e,t,r),c(0,t,r)}function l(e,t,r){var i,o,n,a,s,l=t.gf,c=t.g._hasOpacity,d=t.s.v,p=t.e.v;if(t.o._mdf||r){var h="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(h,t.o.v)}if(t.s._mdf||r){var u=1===e.t?"x1":"cx",g="x1"===u?"y1":"cy";l.setAttribute(u,d[0]),l.setAttribute(g,d[1]),c&&!t.g._collapsable&&(t.of.setAttribute(u,d[0]),t.of.setAttribute(g,d[1]))}if(t.g._cmdf||r){i=t.cst;var m=t.g.c;for(n=i.length,o=0;o<n;o+=1)(a=i[o]).setAttribute("offset",m[4*o]+"%"),a.setAttribute("stop-color","rgb("+m[4*o+1]+","+m[4*o+2]+","+m[4*o+3]+")")}if(c&&(t.g._omdf||r)){var f=t.g.o;for(n=(i=t.g._collapsable?t.cst:t.ost).length,o=0;o<n;o+=1)a=i[o],t.g._collapsable||a.setAttribute("offset",f[2*o]+"%"),a.setAttribute("stop-opacity",f[2*o+1])}if(1===e.t)(t.e._mdf||r)&&(l.setAttribute("x2",p[0]),l.setAttribute("y2",p[1]),c&&!t.g._collapsable&&(t.of.setAttribute("x2",p[0]),t.of.setAttribute("y2",p[1])));else if((t.s._mdf||t.e._mdf||r)&&(s=Math.sqrt(Math.pow(d[0]-p[0],2)+Math.pow(d[1]-p[1],2)),l.setAttribute("r",s),c&&!t.g._collapsable&&t.of.setAttribute("r",s)),t.s._mdf||t.e._mdf||t.h._mdf||t.a._mdf||r){s||(s=Math.sqrt(Math.pow(d[0]-p[0],2)+Math.pow(d[1]-p[1],2)));var y=Math.atan2(p[1]-d[1],p[0]-d[0]),b=t.h.v;b>=1?b=.99:b<=-1&&(b=-.99);var C=s*b,v=Math.cos(y+t.a.v)*C+d[0],x=Math.sin(y+t.a.v)*C+d[1];l.setAttribute("fx",v),l.setAttribute("fy",x),c&&!t.g._collapsable&&(t.of.setAttribute("fx",v),t.of.setAttribute("fy",x))}}function c(e,t,r){var i=t.style,o=t.d;o&&(o._mdf||r)&&o.dashStr&&(i.pElem.setAttribute("stroke-dasharray",o.dashStr),i.pElem.setAttribute("stroke-dashoffset",o.dashoffset[0])),t.c&&(t.c._mdf||r)&&i.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&i.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||r)&&(i.pElem.setAttribute("stroke-width",t.w.v),i.msElem&&i.msElem.setAttribute("stroke-width",t.w.v))}return r}();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}function LetterProps(e,t,r,i,o,n){this.o=e,this.sw=t,this.sc=r,this.fc=i,this.m=o,this.p=n,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!i,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,r,i,o=this.shapes.length,n=this.stylesList.length,a=[],s=!1;for(r=0;r<n;r+=1){for(i=this.stylesList[r],s=!1,a.length=0,e=0;e<o;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(i)&&(a.push(t),s=t._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,i=new SVGStyleData(e,t),o=i.pElem;return"st"===e.ty?r=new SVGStrokeStyleData(this,e,i):"fl"===e.ty?r=new SVGFillStyleData(this,e,i):"gf"===e.ty||"gs"===e.ty?(r=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),o.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===e.ty&&(r=new SVGNoStyleData(this,e,i)),"st"!==e.ty&&"gs"!==e.ty||(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),o.setAttribute("fill-opacity","0"),1===e.lj&&o.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&o.setAttribute("fill-rule","evenodd"),e.ln&&o.setAttribute("id",e.ln),e.cl&&o.setAttribute("class",e.cl),e.bm&&(o.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var i=4;"rc"===e.ty?i=5:"el"===e.ty?i=6:"sr"===e.ty&&(i=7);var o=new SVGShapeData(t,r,ShapePropertyFactory.getShapeProp(this,e,i,this));return this.shapes.push(o),this.addShapeToModifiers(o),this.addToAnimatedContents(e,o),o},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,r=e.styles,i=this.stylesList.length;for(t=0;t<i;t+=1)-1!==r.indexOf(this.stylesList[t])||this.stylesList[t].closed||r.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,i,o,n,a){var s,l,c,d,p,h,u=[].concat(n),g=e.length-1,m=[],f=[];for(s=g;s>=0;s-=1){if((h=this.searchProcessedElement(e[s]))?t[s]=r[h-1]:e[s]._render=a,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)h?t[s].style.closed=e[s].hd:t[s]=this.createStyleElement(e[s],o),e[s]._render&&t[s].style.pElem.parentNode!==i&&i.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(h)for(c=t[s].it.length,l=0;l<c;l+=1)t[s].prevViewData[l]=t[s].it[l];else t[s]=this.createGroupElement(e[s]);this.searchShapes(e[s].it,t[s].it,t[s].prevViewData,t[s].gr,o+1,u,a),e[s]._render&&t[s].gr.parentNode!==i&&i.appendChild(t[s].gr)}else"tr"===e[s].ty?(h||(t[s]=this.createTransformElement(e[s],i)),d=t[s].transform,u.push(d)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(h||(t[s]=this.createShapeElement(e[s],u,o)),this.setElementStyles(t[s])):"tm"===e[s].ty||"rd"===e[s].ty||"ms"===e[s].ty||"pb"===e[s].ty||"zz"===e[s].ty||"op"===e[s].ty?(h?(p=t[s]).closed=!1:((p=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=p,this.shapeModifiers.push(p)),f.push(p)):"rp"===e[s].ty&&(h?(p=t[s]).closed=!0:(p=ShapeModifiers.getModifier(e[s].ty),t[s]=p,p.init(this,e,s,t),this.shapeModifiers.push(p),a=!1),f.push(p));this.addProcessedElement(e[s],s+1)}for(g=m.length,s=0;s<g;s+=1)m[s].closed=!0;for(g=f.length,s=0;s<g;s+=1)f[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,r=this.animatedContents.length;for(e=0;e<r;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,r,i,o,n){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,a=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,a=!0),this.m!==o&&(this.m=o,this._mdf.m=!0,a=!0),!n.length||this.p[0]===n[0]&&this.p[1]===n[1]&&this.p[4]===n[4]&&this.p[5]===n[5]&&this.p[12]===n[12]&&this.p[13]===n[13]||(this.p=n,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var o=this.effectsSequence.length,n=e||this.data.d.k[this.keysIndex].s;for(i=0;i<o;i+=1)n=r!==this.keysIndex?this.effectsSequence[i](n,n.t):this.effectsSequence[i](this.currentData,n.t);t!==n&&this.setCurrentData(n),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,i=e.length;r<=i-1&&!(r===i-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,r,i=[],o=0,n=e.length,a=!1,s=!1,l="";o<n;)a=s,s=!1,t=e.charCodeAt(o),l=e.charAt(o),FontManager.isCombinedCharacter(t)?a=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,o)?l=e.substr(o,14):(r=e.charCodeAt(o+1))>=56320&&r<=57343&&(FontManager.isModifier(t,r)?(l=e.substr(o,2),a=!0):l=FontManager.isFlagEmoji(e.substr(o,4))?e.substr(o,4):e.substr(o,2)):t>56319?(r=e.charCodeAt(o+1),FontManager.isVariationSelector(t)&&(a=!0)):FontManager.isZeroWidthJoiner(t)&&(a=!0,s=!0),a?(i[i.length-1]+=l,a=!1):i.push(l),o+=l.length;return i},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,r,i,o,n,a,s,l=this.elem.globalData.fontManager,c=this.data,d=[],p=0,h=c.m.g,u=0,g=0,m=0,f=[],y=0,b=0,C=l.getFontByName(e.f),v=0,x=getFontProperties(C);e.fWeight=x.weight,e.fStyle=x.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),r=e.finalText.length,e.finalLineHeight=e.lh;var S,w=e.tr/1e3*e.finalSize;if(e.sz)for(var _,k,T=!0,M=e.sz[0],P=e.sz[1];T;){_=0,y=0,r=(k=this.buildFinalText(e.t)).length,w=e.tr/1e3*e.finalSize;var O=-1;for(t=0;t<r;t+=1)S=k[t].charCodeAt(0),i=!1," "===k[t]?O=t:13!==S&&3!==S||(y=0,i=!0,_+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(k[t],C.fStyle,C.fFamily),v=i?0:s.w*e.finalSize/100):v=l.measureText(k[t],e.f,e.finalSize),y+v>M&&" "!==k[t]?(-1===O?r+=1:t=O,_+=e.finalLineHeight||1.2*e.finalSize,k.splice(t,O===t?1:0,"\r"),O=-1,y=0):(y+=v,y+=w);_+=C.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&P<_?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=k,r=e.finalText.length,T=!1)}y=-w,v=0;var E,L=0;for(t=0;t<r;t+=1)if(i=!1,13===(S=(E=e.finalText[t]).charCodeAt(0))||3===S?(L=0,f.push(y),b=y>b?y:b,y=-2*w,o="",i=!0,m+=1):o=E,l.chars?(s=l.getCharData(E,C.fStyle,l.getFontByName(e.f).fFamily),v=i?0:s.w*e.finalSize/100):v=l.measureText(o,e.f,e.finalSize)," "===E?L+=v+w:(y+=v+w+L,L=0),d.push({l:v,an:v,add:u,n:i,anIndexes:[],val:o,line:m,animatorJustifyOffset:0}),2==h){if(u+=v,""===o||" "===o||t===r-1){for(""!==o&&" "!==o||(u-=v);g<=t;)d[g].an=u,d[g].ind=p,d[g].extra=v,g+=1;p+=1,u=0}}else if(3==h){if(u+=v,""===o||t===r-1){for(""===o&&(u-=v);g<=t;)d[g].an=u,d[g].ind=p,d[g].extra=v,g+=1;u=0,p+=1}}else d[p].ind=p,d[p].extra=0,p+=1;if(e.l=d,b=y>b?y:b,f.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=b,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=f;var A,B,z,I,R=c.a;a=R.length;var V=[];for(n=0;n<a;n+=1){for((A=R[n]).a.sc&&(e.strokeColorAnim=!0),A.a.sw&&(e.strokeWidthAnim=!0),(A.a.fc||A.a.fh||A.a.fs||A.a.fb)&&(e.fillColorAnim=!0),I=0,z=A.s.b,t=0;t<r;t+=1)(B=d[t]).anIndexes[n]=I,(1==z&&""!==B.val||2==z&&""!==B.val&&" "!==B.val||3==z&&(B.n||" "==B.val||t==r-1)||4==z&&(B.n||t==r-1))&&(1===A.s.rn&&V.push(I),I+=1);c.a[n].s.totalChars=I;var D,N=-1;if(1===A.s.rn)for(t=0;t<r;t+=1)N!=(B=d[t]).anIndexes[n]&&(N=B.anIndexes[n],D=V.splice(Math.floor(Math.random()*V.length),1)[0]),B.anIndexes[n]=D}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=C.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,r=Math.floor;function i(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return i.prototype={getMult:function(i){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var o=0,n=0,a=1,s=1;this.ne.v>0?o=this.ne.v/100:n=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(o,n,a,s).get,c=0,d=this.finalS,p=this.finalE,h=this.data.sh;if(2===h)c=l(c=p===d?i>=p?1:0:e(0,t(.5/(p-d)+(i-d)/(p-d),1)));else if(3===h)c=l(c=p===d?i>=p?0:1:1-e(0,t(.5/(p-d)+(i-d)/(p-d),1)));else if(4===h)p===d?c=0:(c=e(0,t(.5/(p-d)+(i-d)/(p-d),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===h){if(p===d)c=0;else{var u=p-d,g=-u/2+(i=t(e(0,i+.5-d),p-d)),m=u/2;c=Math.sqrt(1-g*g/(m*m))}c=l(c)}else 6===h?(p===d?c=0:(i=t(e(0,i+.5-d),p-d),c=(1+Math.cos(Math.PI+2*Math.PI*i/(p-d)))/2),c=l(c)):(i>=r(d)&&(c=e(0,t(i-d<0?t(p,1)-(d-i):p-i,1))),c=l(c));if(100!==this.sm.v){var f=.01*this.sm.v;0===f&&(f=1e-8);var y=.5-.5*f;c<y?c=0:(c=(c-y)/f)>1&&(c=1)}return c*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/t,i=this.s.v/t+r,o=this.e.v/t+r;if(i>o){var n=i;i=o,o=n}this.finalS=i,this.finalE=o}},extendPrototype([DynamicPropertyContainer],i),{getTextSelectorProp:function(e,t,r){return new i(e,t)}}}();function TextAnimatorDataProperty(e,t,r){var i={propType:!1},o=PropertyFactory.getProp,n=t.a;this.a={r:n.r?o(e,n.r,0,degToRads,r):i,rx:n.rx?o(e,n.rx,0,degToRads,r):i,ry:n.ry?o(e,n.ry,0,degToRads,r):i,sk:n.sk?o(e,n.sk,0,degToRads,r):i,sa:n.sa?o(e,n.sa,0,degToRads,r):i,s:n.s?o(e,n.s,1,.01,r):i,a:n.a?o(e,n.a,1,0,r):i,o:n.o?o(e,n.o,0,.01,r):i,p:n.p?o(e,n.p,1,0,r):i,sw:n.sw?o(e,n.sw,0,0,r):i,sc:n.sc?o(e,n.sc,1,0,r):i,fc:n.fc?o(e,n.fc,1,0,r):i,fh:n.fh?o(e,n.fh,0,0,r):i,fs:n.fs?o(e,n.fs,0,.01,r):i,fb:n.fb?o(e,n.fb,0,.01,r):i,t:n.t?o(e,n.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,r=this._textData.a.length,i=PropertyFactory.getProp;for(e=0;e<r;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,i,o,n,a,s,l,c,d,p,h,u,g,m,f,y,b,C,v,x=this._moreOptions.alignment.v,S=this._animatorsData,w=this._textData,_=this.mHelper,k=this._renderType,T=this.renderedLetters.length,M=e.l;if(this._hasMaskedPath){if(v=this._pathData.m,!this._pathData.n||this._pathData._mdf){var P,O=v.v;for(this._pathData.r.v&&(O=O.reverse()),a={tLength:0,segments:[]},n=O._length-1,y=0,o=0;o<n;o+=1)P=bez.buildBezierData(O.v[o],O.v[o+1],[O.o[o][0]-O.v[o][0],O.o[o][1]-O.v[o][1]],[O.i[o+1][0]-O.v[o+1][0],O.i[o+1][1]-O.v[o+1][1]]),a.tLength+=P.segmentLength,a.segments.push(P),y+=P.segmentLength;o=n,v.v.c&&(P=bez.buildBezierData(O.v[o],O.v[0],[O.o[o][0]-O.v[o][0],O.o[o][1]-O.v[o][1]],[O.i[0][0]-O.v[0][0],O.i[0][1]-O.v[0][1]]),a.tLength+=P.segmentLength,a.segments.push(P),y+=P.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,h=0,p=1,c=0,d=!0,m=a.segments,s<0&&v.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),p=(g=m[h=m.length-1].points).length-1;s<0;)s+=g[p].partialLength,(p-=1)<0&&(p=(g=m[h-=1].points).length-1);u=(g=m[h].points)[p-1],f=(l=g[p]).partialLength}n=M.length,r=0,i=0;var E,L,A,B,z,I=1.2*e.finalSize*.714,R=!0;A=S.length;var V,D,N,F,j,H,W,$,G,U,Z,Y,K=-1,q=s,J=h,X=p,Q=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var re=0,ie=0,oe=2===e.j?-.5:-1,ne=0,ae=!0;for(o=0;o<n;o+=1)if(M[o].n){for(re&&(re+=ie);ne<o;)M[ne].animatorJustifyOffset=re,ne+=1;re=0,ae=!0}else{for(L=0;L<A;L+=1)(E=S[L].a).t.propType&&(ae&&2===e.j&&(ie+=E.t.v*oe),(z=S[L].s.getMult(M[o].anIndexes[L],w.a[L].s.totalChars)).length?re+=E.t.v*z[0]*oe:re+=E.t.v*z*oe);ae=!1}for(re&&(re+=ie);ne<o;)M[ne].animatorJustifyOffset=re,ne+=1}for(o=0;o<n;o+=1){if(_.reset(),F=1,M[o].n)r=0,i+=e.yOffset,i+=R?1:0,s=q,R=!1,this._hasMaskedPath&&(p=X,u=(g=m[h=J].points)[p-1],f=(l=g[p]).partialLength,c=0),ee="",Z="",G="",Y="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==M[o].line){switch(e.j){case 1:s+=y-e.lineWidths[M[o].line];break;case 2:s+=(y-e.lineWidths[M[o].line])/2}Q=M[o].line}K!==M[o].ind&&(M[K]&&(s+=M[K].extra),s+=M[o].an/2,K=M[o].ind),s+=x[0]*M[o].an*.005;var se=0;for(L=0;L<A;L+=1)(E=S[L].a).p.propType&&((z=S[L].s.getMult(M[o].anIndexes[L],w.a[L].s.totalChars)).length?se+=E.p.v[0]*z[0]:se+=E.p.v[0]*z),E.a.propType&&((z=S[L].s.getMult(M[o].anIndexes[L],w.a[L].s.totalChars)).length?se+=E.a.v[0]*z[0]:se+=E.a.v[0]*z);for(d=!0,this._pathData.a.v&&(s=.5*M[0].an+(y-this._pathData.f.v-.5*M[0].an-.5*M[M.length-1].an)*K/(n-1),s+=this._pathData.f.v);d;)c+f>=s+se||!g?(b=(s+se-c)/l.partialLength,D=u.point[0]+(l.point[0]-u.point[0])*b,N=u.point[1]+(l.point[1]-u.point[1])*b,_.translate(-x[0]*M[o].an*.005,-x[1]*I*.01),d=!1):g&&(c+=l.partialLength,(p+=1)>=g.length&&(p=0,m[h+=1]?g=m[h].points:v.v.c?(p=0,g=m[h=0].points):(c-=l.partialLength,g=null)),g&&(u=l,f=(l=g[p]).partialLength));V=M[o].an/2-M[o].add,_.translate(-V,0,0)}else V=M[o].an/2-M[o].add,_.translate(-V,0,0),_.translate(-x[0]*M[o].an*.005,-x[1]*I*.01,0);for(L=0;L<A;L+=1)(E=S[L].a).t.propType&&(z=S[L].s.getMult(M[o].anIndexes[L],w.a[L].s.totalChars),0===r&&0===e.j||(this._hasMaskedPath?z.length?s+=E.t.v*z[0]:s+=E.t.v*z:z.length?r+=E.t.v*z[0]:r+=E.t.v*z));for(e.strokeWidthAnim&&(H=e.sw||0),e.strokeColorAnim&&(j=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(W=[e.fc[0],e.fc[1],e.fc[2]]),L=0;L<A;L+=1)(E=S[L].a).a.propType&&((z=S[L].s.getMult(M[o].anIndexes[L],w.a[L].s.totalChars)).length?_.translate(-E.a.v[0]*z[0],-E.a.v[1]*z[1],E.a.v[2]*z[2]):_.translate(-E.a.v[0]*z,-E.a.v[1]*z,E.a.v[2]*z));for(L=0;L<A;L+=1)(E=S[L].a).s.propType&&((z=S[L].s.getMult(M[o].anIndexes[L],w.a[L].s.totalChars)).length?_.scale(1+(E.s.v[0]-1)*z[0],1+(E.s.v[1]-1)*z[1],1):_.scale(1+(E.s.v[0]-1)*z,1+(E.s.v[1]-1)*z,1));for(L=0;L<A;L+=1){if(E=S[L].a,z=S[L].s.getMult(M[o].anIndexes[L],w.a[L].s.totalChars),E.sk.propType&&(z.length?_.skewFromAxis(-E.sk.v*z[0],E.sa.v*z[1]):_.skewFromAxis(-E.sk.v*z,E.sa.v*z)),E.r.propType&&(z.length?_.rotateZ(-E.r.v*z[2]):_.rotateZ(-E.r.v*z)),E.ry.propType&&(z.length?_.rotateY(E.ry.v*z[1]):_.rotateY(E.ry.v*z)),E.rx.propType&&(z.length?_.rotateX(E.rx.v*z[0]):_.rotateX(E.rx.v*z)),E.o.propType&&(z.length?F+=(E.o.v*z[0]-F)*z[0]:F+=(E.o.v*z-F)*z),e.strokeWidthAnim&&E.sw.propType&&(z.length?H+=E.sw.v*z[0]:H+=E.sw.v*z),e.strokeColorAnim&&E.sc.propType)for($=0;$<3;$+=1)z.length?j[$]+=(E.sc.v[$]-j[$])*z[0]:j[$]+=(E.sc.v[$]-j[$])*z;if(e.fillColorAnim&&e.fc){if(E.fc.propType)for($=0;$<3;$+=1)z.length?W[$]+=(E.fc.v[$]-W[$])*z[0]:W[$]+=(E.fc.v[$]-W[$])*z;E.fh.propType&&(W=z.length?addHueToRGB(W,E.fh.v*z[0]):addHueToRGB(W,E.fh.v*z)),E.fs.propType&&(W=z.length?addSaturationToRGB(W,E.fs.v*z[0]):addSaturationToRGB(W,E.fs.v*z)),E.fb.propType&&(W=z.length?addBrightnessToRGB(W,E.fb.v*z[0]):addBrightnessToRGB(W,E.fb.v*z))}}for(L=0;L<A;L+=1)(E=S[L].a).p.propType&&(z=S[L].s.getMult(M[o].anIndexes[L],w.a[L].s.totalChars),this._hasMaskedPath?z.length?_.translate(0,E.p.v[1]*z[0],-E.p.v[2]*z[1]):_.translate(0,E.p.v[1]*z,-E.p.v[2]*z):z.length?_.translate(E.p.v[0]*z[0],E.p.v[1]*z[1],-E.p.v[2]*z[2]):_.translate(E.p.v[0]*z,E.p.v[1]*z,-E.p.v[2]*z));if(e.strokeWidthAnim&&(G=H<0?0:H),e.strokeColorAnim&&(U="rgb("+Math.round(255*j[0])+","+Math.round(255*j[1])+","+Math.round(255*j[2])+")"),e.fillColorAnim&&e.fc&&(Z="rgb("+Math.round(255*W[0])+","+Math.round(255*W[1])+","+Math.round(255*W[2])+")"),this._hasMaskedPath){if(_.translate(0,-e.ls),_.translate(0,x[1]*I*.01+i,0),this._pathData.p.v){C=(l.point[1]-u.point[1])/(l.point[0]-u.point[0]);var le=180*Math.atan(C)/Math.PI;l.point[0]<u.point[0]&&(le+=180),_.rotate(-le*Math.PI/180)}_.translate(D,N,0),s-=x[0]*M[o].an*.005,M[o+1]&&K!==M[o+1].ind&&(s+=M[o].an/2,s+=.001*e.tr*e.finalSize)}else{switch(_.translate(r,i,0),e.ps&&_.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:_.translate(M[o].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[M[o].line]),0,0);break;case 2:_.translate(M[o].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[M[o].line])/2,0,0)}_.translate(0,-e.ls),_.translate(V,0,0),_.translate(x[0]*M[o].an*.005,x[1]*I*.01,0),r+=M[o].l+.001*e.tr*e.finalSize}"html"===k?ee=_.toCSS():"svg"===k?ee=_.to2dCSS():te=[_.props[0],_.props[1],_.props[2],_.props[3],_.props[4],_.props[5],_.props[6],_.props[7],_.props[8],_.props[9],_.props[10],_.props[11],_.props[12],_.props[13],_.props[14],_.props[15]],Y=F}T<=o?(B=new LetterProps(Y,G,U,Z,ee,te),this.renderedLetters.push(B),T+=1,this.lettersChangedFlag=!0):(B=this.renderedLetters[o],this.lettersChangedFlag=B.update(Y,G,U,Z,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var r,i,o=t.length,n="";for(r=0;r<o;r+=1)"sh"===t[r].ty&&(i=t[r].ks.k,n+=buildShapeString(i,i.i.length,!0,e));return n},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,i,o){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0)}t.translate(i,o,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}function ISolidElement(e,t,r){this.initElement(e,t,r)}function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var i=createNS("title"),o=createElementID();i.setAttribute("id",o),i.textContent=t.title,this.svgElement.appendChild(i),r+=o}if(t&&t.description){var n=createNS("desc"),a=createElementID();n.setAttribute("id",a),n.textContent=t.description,this.svgElement.appendChild(n),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,r=e.length,i=[],o="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(i.push(o),o=""):o+=e[t],t+=1;return i.push(o),i},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var i=r.it[r.it.length-1];i.s&&(i.s.k[0]=t,i.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var i=this.globalData.fontManager.getFontByName(r.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var o=r.fWeight,n=r.fStyle;this.layerElement.setAttribute("font-style",n),this.layerElement.setAttribute("font-weight",o)}this.layerElement.setAttribute("aria-label",r.t);var a,s=r.l||[],l=!!this.globalData.fontManager.chars;t=s.length;var c=this.mHelper,d=this.data.singleShape,p=0,h=0,u=!0,g=.001*r.tr*r.finalSize;if(!d||l||r.sz){var m,f=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!d||0===e){if(a=f>e?this.textSpans[e].span:createNS(l?"g":"text"),f<=e){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=a,l){var y=createNS("g");a.appendChild(y),this.textSpans[e].childSpan=y}this.textSpans[e].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(c.reset(),d&&(s[e].n&&(p=-g,h+=r.yOffset,h+=u?1:0,u=!1),this.applyTextPropertiesToMatrix(r,c,s[e].line,p,h),p+=s[e].l||0,p+=g),l){var b;if(1===(m=this.globalData.fontManager.getCharData(r.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)b=new SVGCompElement(m.data,this.globalData,this);else{var C=emptyShapeData;m.data&&m.data.shapes&&(C=this.buildShapeData(m.data,r.finalSize)),b=new SVGShapeElement(C,this.globalData,this)}if(this.textSpans[e].glyph){var v=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(v.layerElement),v.destroy()}this.textSpans[e].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[e].childSpan.appendChild(b.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else d&&a.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),a.textContent=s[e].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}d&&a&&a.setAttribute("d","")}else{var x=this.textContainer,S="start";switch(r.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}x.setAttribute("text-anchor",S),x.setAttribute("letter-spacing",g);var w=this.buildTextContents(r.finalText);for(t=w.length,h=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)(a=this.textSpans[e].span||createNS("tspan")).textContent=w[e],a.setAttribute("x",0),a.setAttribute("y",h),a.style.display="inherit",x.appendChild(a),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=a,h+=r.finalLineHeight;this.layerElement.appendChild(x)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var r,i,o,n=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(t=a.length,e=0;e<t;e+=1)a[e].n||(r=n[e],i=this.textSpans[e].span,(o=this.textSpans[e].glyph)&&o.renderFrame(),r._mdf.m&&i.setAttribute("transform",r.m),r._mdf.o&&i.setAttribute("opacity",r.o),r._mdf.sw&&i.setAttribute("stroke-width",r.sw),r._mdf.sc&&i.setAttribute("stroke",r.sc),r._mdf.fc&&i.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",e.w),i.setAttribute("height",e.h),i.setAttribute("x",0),i.setAttribute("y",0);var o=createElementID();r.setAttribute("id",o),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var i="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===i)return;if(this.elements[i]&&!0!==this.elements[i]){var o=t[i].getMatte(this.layers[e].tt);r.setMatte(o)}else this.buildItem(i),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,o=this.elements[i].getMatte(this.layers[t].tt);e.setMatte(o);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var i,o=0;o<t;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement()&&(i=this.elements[o].getBaseElement()),o+=1;i?this.layerElement.insertBefore(r,i):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var r,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,r=e.length,i="_";for(t=0;t<r;t+=1)i+=e[t].transform.key+"_";var o=this.sequences[i];return o||(o={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=o,this.sequenceList.push(o)),o},processSequence:function(e,t){for(var r=0,i=e.transforms.length,o=t;r<i&&!t;){if(e.transforms[r].transform.mProps._mdf){o=!0;break}r+=1}if(o)for(e.finalTransform.reset(),r=i-1;r>=0;r-=1)e.finalTransform.multiply(e.transforms[r].transform.mProps.v);e._mdf=o},processSequences:function(e){var t,r=this.sequenceList.length;for(t=0;t<r;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,r=null,i=null;function o(){var o,n,a;t||(o=createNS("svg"),n=createNS("filter"),a=createNS("feColorMatrix"),n.setAttribute("id",e),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),n.appendChild(a),o.appendChild(n),o.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(o.style.display="none"),i=o,document.body.appendChild(i),t=createTag("canvas"),(r=t.getContext("2d")).filter="url(#"+e+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}return{load:o,get:function(i){return t||o(),t.width=i.width,t.height=i.height,r.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas},registeredEffects={};function CVEffects(e){var t,r,i=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<i;t+=1){r=null;var o=e.data.ef[t].ty;registeredEffects[o]&&(r=new(0,registeredEffects[o].effect)(e.effectsManager.effectElements[t],e)),r&&this.filters.push(r)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var r;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i=this.masksProperties.length,o=!1;for(r=0;r<i;r+=1)"n"!==this.masksProperties[r].mode&&(o=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=o,o&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,i=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,r,i,o=this.element.finalTransform.mat,n=this.element.canvasContext,a=this.masksProperties.length;for(n.beginPath(),e=0;e<a;e+=1)if("n"!==this.masksProperties[e].mode){var s;this.masksProperties[e].inv&&(n.moveTo(0,0),n.lineTo(this.element.globalData.compSize.w,0),n.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),n.lineTo(0,this.element.globalData.compSize.h),n.lineTo(0,0)),i=this.viewData[e].v,t=o.applyToPointArray(i.v[0][0],i.v[0][1],0),n.moveTo(t[0],t[1]);var l=i._length;for(s=1;s<l;s+=1)r=o.applyToTriplePoints(i.o[s-1],i.i[s],i.v[s]),n.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=o.applyToTriplePoints(i.o[s-1],i.i[0],i.v[0]),n.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),n.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var o,n=4;"rc"===t.ty?n=5:"el"===t.ty?n=6:"sr"===t.ty&&(n=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,n,e);var a,s=r.length;for(o=0;o<s;o+=1)r[o].closed||(a={transforms:i.addTransformSequence(r[o].transforms),trNodes:[]},this.styledShapes.push(a),r[o].elements.push(a))}function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}function CVTextElement(e,t,r){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,r)}function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}function CVSolidElement(e,t,r){this.initElement(e,t,r)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,r){this.initElement(e,t,r)}function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,e.pe,0,0,this),e.ks.p.s?(this.px=i(this,e.ks.p.x,1,0,this),this.py=i(this,e.ks.p.y,1,0,this),this.pz=i(this,e.ks.p.z,1,0,this)):this.p=i(this,e.ks.p,1,0,this),e.ks.a&&(this.a=i(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var o,n=e.ks.or.k.length;for(o=0;o<n;o+=1)e.ks.or.k[o].to=null,e.ks.or.k[o].ti=null}this.or=i(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,e.ks.rx,0,degToRads,this),this.ry=i(this,e.ks.ry,0,degToRads,this),this.rz=i(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas);r.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},i={};if("fl"===e.ty||"st"===e.ty?(i.c=PropertyFactory.getProp(this,e.c,1,255,this),i.c.k||(r.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(i.s=PropertyFactory.getProp(this,e.s,1,null,this),i.e=PropertyFactory.getProp(this,e.e,1,null,this),i.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,e.g,this)),i.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],1==e.lj&&(r.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(r.wi=i.w.v),e.d){var o=new DashProperty(this,e.d,"canvas",this);i.d=o,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0])}}else r.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,i,o){var n,a,s,l,c,d,p=e.length-1,h=[],u=[],g=[].concat(o);for(n=p;n>=0;n-=1){if((l=this.searchProcessedElement(e[n]))?t[n]=r[l-1]:e[n]._shouldRender=i,"fl"===e[n].ty||"st"===e[n].ty||"gf"===e[n].ty||"gs"===e[n].ty)l?t[n].style.closed=!1:t[n]=this.createStyleElement(e[n],g),h.push(t[n].style);else if("gr"===e[n].ty){if(l)for(s=t[n].it.length,a=0;a<s;a+=1)t[n].prevViewData[a]=t[n].it[a];else t[n]=this.createGroupElement(e[n]);this.searchShapes(e[n].it,t[n].it,t[n].prevViewData,i,g)}else"tr"===e[n].ty?(l||(d=this.createTransformElement(e[n]),t[n]=d),g.push(t[n]),this.addTransformToStyleList(t[n])):"sh"===e[n].ty||"rc"===e[n].ty||"el"===e[n].ty||"sr"===e[n].ty?l||(t[n]=this.createShapeElement(e[n])):"tm"===e[n].ty||"rd"===e[n].ty||"pb"===e[n].ty||"zz"===e[n].ty||"op"===e[n].ty?(l?(c=t[n]).closed=!1:((c=ShapeModifiers.getModifier(e[n].ty)).init(this,e[n]),t[n]=c,this.shapeModifiers.push(c)),u.push(c)):"rp"===e[n].ty&&(l?(c=t[n]).closed=!0:(c=ShapeModifiers.getModifier(e[n].ty),t[n]=c,c.init(this,e,n,t),this.shapeModifiers.push(c),i=!1),u.push(c));this.addProcessedElement(e[n],n+1)}for(this.removeTransformFromStyleList(),this.closeStyles(h),p=u.length,n=0;n<p;n+=1)u[n].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,r,i,o,n,a,s,l,c=this.stylesList.length,d=this.globalData.renderer,p=this.globalData.canvasContext;for(e=0;e<c;e+=1)if(("st"!==(s=(l=this.stylesList[e]).type)&&"gs"!==s||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(d.save(),n=l.elements,"st"===s||"gs"===s?(d.ctxStrokeStyle("st"===s?l.co:l.grd),d.ctxLineWidth(l.wi),d.ctxLineCap(l.lc),d.ctxLineJoin(l.lj),d.ctxMiterLimit(l.ml||0)):d.ctxFillStyle("fl"===s?l.co:l.grd),d.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&p.beginPath(),d.ctxTransform(l.preTransforms.finalTransform.props),r=n.length,t=0;t<r;t+=1){for("st"!==s&&"gs"!==s||(p.beginPath(),l.da&&(p.setLineDash(l.da),p.lineDashOffset=l.do)),o=(a=n[t].trNodes).length,i=0;i<o;i+=1)"m"===a[i].t?p.moveTo(a[i].p[0],a[i].p[1]):"c"===a[i].t?p.bezierCurveTo(a[i].pts[0],a[i].pts[1],a[i].pts[2],a[i].pts[3],a[i].pts[4],a[i].pts[5]):p.closePath();"st"!==s&&"gs"!==s||(d.ctxStroke(),l.da&&p.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(l.r),d.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,i){var o,n;for(n=e,o=t.length-1;o>=0;o-=1)"tr"===t[o].ty?(n=r[o].transform,this.renderShapeTransform(e,n)):"sh"===t[o].ty||"el"===t[o].ty||"rc"===t[o].ty||"sr"===t[o].ty?this.renderPath(t[o],r[o]):"fl"===t[o].ty?this.renderFill(t[o],r[o],n):"st"===t[o].ty?this.renderStroke(t[o],r[o],n):"gf"===t[o].ty||"gs"===t[o].ty?this.renderGradientFill(t[o],r[o],n):"gr"===t[o].ty?this.renderShape(n,t[o].it,r[o].it):t[o].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r,i,o,n=e.trNodes,a=t.paths,s=a._length;n.length=0;var l=e.transforms.finalTransform;for(o=0;o<s;o+=1){var c=a.shapes[o];if(c&&c.v){for(i=c._length,r=1;r<i;r+=1)1===r&&n.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),n.push({t:"c",pts:l.applyToTriplePoints(c.o[r-1],c.i[r],c.v[r])});1===i&&n.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&i&&(n.push({t:"c",pts:l.applyToTriplePoints(c.o[r-1],c.i[0],c.v[0])}),n.push({t:"z"}))}}e.trNodes=n}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var r,i=t.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var i=t.style;(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var i,o=t.style;if(!o.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var n,a=this.globalData.canvasContext,s=t.s.v,l=t.e.v;if(1===e.t)i=a.createLinearGradient(s[0],s[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)),d=Math.atan2(l[1]-s[1],l[0]-s[0]),p=t.h.v;p>=1?p=.99:p<=-1&&(p=-.99);var h=c*p,u=Math.cos(d+t.a.v)*h+s[0],g=Math.sin(d+t.a.v)*h+s[1];i=a.createRadialGradient(u,g,0,s[0],s[1],c)}var m=e.g.p,f=t.g.c,y=1;for(n=0;n<m;n+=1)t.g._hasOpacity&&t.g._collapsable&&(y=t.g.o[2*n+1]),i.addColorStop(f[4*n]/100,"rgba("+f[4*n+1]+","+f[4*n+2]+","+f[4*n+3]+","+y+")");o.grd=i}o.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var i=t.style,o=t.d;o&&(o._mdf||this._isFirstFrame)&&(i.da=o.dashArray,i.do=o.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(i.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var i,o,n,a,s,l,c,d,p,h,u,g,m=this.globalData.fontManager.getFontByName(e.f),f=e.l,y=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,o=e.finalText.length;var b=this.data.singleShape,C=.001*e.tr*e.finalSize,v=0,x=0,S=!0,w=0;for(i=0;i<o;i+=1){a=(n=this.globalData.fontManager.getCharData(e.finalText[i],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&n.data||{},y.reset(),b&&f[i].n&&(v=-C,x+=e.yOffset,x+=S?1:0,S=!1),p=(c=a.shapes?a.shapes[0].it:[]).length,y.scale(e.finalSize/100,e.finalSize/100),b&&this.applyTextPropertiesToMatrix(e,y,f[i].line,v,x),u=createSizedArray(p-1);var _=0;for(d=0;d<p;d+=1)if("sh"===c[d].ty){for(l=c[d].ks.k.i.length,h=c[d].ks.k,g=[],s=1;s<l;s+=1)1===s&&g.push(y.applyToX(h.v[0][0],h.v[0][1],0),y.applyToY(h.v[0][0],h.v[0][1],0)),g.push(y.applyToX(h.o[s-1][0],h.o[s-1][1],0),y.applyToY(h.o[s-1][0],h.o[s-1][1],0),y.applyToX(h.i[s][0],h.i[s][1],0),y.applyToY(h.i[s][0],h.i[s][1],0),y.applyToX(h.v[s][0],h.v[s][1],0),y.applyToY(h.v[s][0],h.v[s][1],0));g.push(y.applyToX(h.o[s-1][0],h.o[s-1][1],0),y.applyToY(h.o[s-1][0],h.o[s-1][1],0),y.applyToX(h.i[0][0],h.i[0][1],0),y.applyToY(h.i[0][0],h.i[0][1],0),y.applyToX(h.v[0][0],h.v[0][1],0),y.applyToY(h.v[0][0],h.v[0][1],0)),u[_]=g,_+=1}b&&(v+=f[i].l,v+=C),this.textSpans[w]?this.textSpans[w].elem=u:this.textSpans[w]={elem:u},w+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,r,i,o,n;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var a,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;t=l.length;var c,d,p=null,h=null,u=null,g=this.globalData.renderer;for(e=0;e<t;e+=1)if(!l[e].n){if((a=s[e])&&(g.save(),g.ctxTransform(a.p),g.ctxOpacity(a.o)),this.fill){for(a&&a.fc?p!==a.fc&&(g.ctxFillStyle(a.fc),p=a.fc):p!==this.values.fill&&(p=this.values.fill,g.ctxFillStyle(this.values.fill)),i=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(n=(d=c[r]).length,this.globalData.canvasContext.moveTo(d[0],d[1]),o=2;o<n;o+=6)this.globalData.canvasContext.bezierCurveTo(d[o],d[o+1],d[o+2],d[o+3],d[o+4],d[o+5]);this.globalData.canvasContext.closePath(),g.ctxFill()}if(this.stroke){for(a&&a.sw?u!==a.sw&&(u=a.sw,g.ctxLineWidth(a.sw)):u!==this.values.sWidth&&(u=this.values.sWidth,g.ctxLineWidth(this.values.sWidth)),a&&a.sc?h!==a.sc&&(h=a.sc,g.ctxStrokeStyle(a.sc)):h!==this.values.stroke&&(h=this.values.stroke,g.ctxStrokeStyle(this.values.stroke)),i=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(n=(d=c[r]).length,this.globalData.canvasContext.moveTo(d[0],d[1]),o=2;o<n;o+=6)this.globalData.canvasContext.bezierCurveTo(d[o],d[o+1],d[o+2],d[o+3],d[o+4],d[o+5]);this.globalData.canvasContext.closePath(),g.ctxStroke()}a&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,r,i=e.getContext("2d"),o=this.img.width,n=this.img.height,a=o/n,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>s&&"xMidYMid slice"===l||a<s&&"xMidYMid slice"!==l?t=(r=n)*s:r=(t=o)/s,i.drawImage(this.img,(o-t)/2,(n-r)/2,t,r,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,i){this.canvasContext.fillRect(e,t,r,i)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var r,i,o,n;if(this.reset(),e?(r=e,i=t,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var a=this.renderConfig.preserveAspectRatio.split(" "),s=a[1]||"meet",l=a[0]||"xMidYMid",c=l.substr(0,4),d=l.substr(4);o=r/i,(n=this.transformCanvas.w/this.transformCanvas.h)>o&&"meet"===s||n<o&&"slice"===s?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===c&&(n<o&&"meet"===s||n>o&&"slice"===s)?(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===c&&(n<o&&"meet"===s||n>o&&"slice"===s)?(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===d&&(n>o&&"meet"===s||n<o&&"slice"===s)?(i-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===d&&(n>o&&"meet"===s||n<o&&"slice"===s)?(i-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var r;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var i=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,r=this.stack[this.cArrPos],i=r.transform,o=this.cTr.props;for(t=0;t<16;t+=1)o[t]=i[t];if(e){this.nativeContext.restore();var n=this.stack[this.cArrPos+1];this.appliedFillStyle=n.fillStyle,this.appliedStrokeStyle=n.strokeStyle,this.appliedLineWidth=n.lineWidth,this.appliedLineCap=n.lineCap,this.appliedLineJoin=n.lineJoin,this.appliedMiterLimit=n.miterLimit}this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13]),(e||-1!==r.opacity&&this.currentOpacity!==r.opacity)&&(this.nativeContext.globalAlpha=r.opacity,this.currentOpacity=r.opacity),this.currentFillStyle=r.fillStyle,this.currentStrokeStyle=r.strokeStyle,this.currentLineWidth=r.lineWidth,this.currentLineCap=r.lineCap,this.currentLineJoin=r.lineJoin,this.currentMiterLimit=r.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r,i=this.stack[this.cArrPos];for(r=0;r<16;r+=1)i.transform[r]=t[r];this.cArrPos+=1;var o=this.stack[this.cArrPos];o.opacity=i.opacity,o.fillStyle=i.fillStyle,o.strokeStyle=i.strokeStyle,o.lineWidth=i.lineWidth,o.lineCap=i.lineCap,o.lineJoin=i.lineJoin,o.miterLimit=i.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,i)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r,i,o,n,a,s=e.sh.v,l=e.transformers,c=s._length;if(!(c<=1)){for(r=0;r<c-1;r+=1)i=this.getTransformedPoint(l,s.v[r]),o=this.getTransformedPoint(l,s.o[r]),n=this.getTransformedPoint(l,s.i[r+1]),a=this.getTransformedPoint(l,s.v[r+1]),this.checkBounds(i,o,n,a,t);s.c&&(i=this.getTransformedPoint(l,s.v[r]),o=this.getTransformedPoint(l,s.o[r]),n=this.getTransformedPoint(l,s.i[0]),a=this.getTransformedPoint(l,s.v[0]),this.checkBounds(i,o,n,a,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,i,o){this.getBoundsOfCurve(e,t,r,i);var n=this.shapeBoundingBox;o.x=bmMin(n.left,o.x),o.xMax=bmMax(n.right,o.xMax),o.y=bmMin(n.top,o.y),o.yMax=bmMax(n.bottom,o.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,r,i){for(var o,n,a,s,l,c,d,p=[[e[0],i[0]],[e[1],i[1]]],h=0;h<2;++h)n=6*e[h]-12*t[h]+6*r[h],o=-3*e[h]+9*t[h]-9*r[h]+3*i[h],a=3*t[h]-3*e[h],n|=0,a|=0,0==(o|=0)&&0===n||(0===o?(s=-a/n)>0&&s<1&&p[h].push(this.calculateF(s,e,t,r,i,h)):(l=n*n-4*a*o)>=0&&((c=(-n+bmSqrt(l))/(2*o))>0&&c<1&&p[h].push(this.calculateF(c,e,t,r,i,h)),(d=(-n-bmSqrt(l))/(2*o))>0&&d<1&&p[h].push(this.calculateF(d,e,t,r,i,h))));this.shapeBoundingBox.left=bmMin.apply(null,p[0]),this.shapeBoundingBox.top=bmMin.apply(null,p[1]),this.shapeBoundingBox.right=bmMax.apply(null,p[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,p[1])},HShapeElement.prototype.calculateF=function(e,t,r,i,o,n){return bmPow(1-e,3)*t[n]+3*bmPow(1-e,2)*e*r[n]+3*(1-e)*bmPow(e,2)*i[n]+bmPow(e,3)*o[n]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var o=e.keyframes[i].s;o>r&&(r=o)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,o="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=o,i.webkitTransform=o}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var i,o,n=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",n.fClass)this.innerElem.className=n.fClass;else{t.fontFamily=n.fFamily;var a=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=a}var l,c,d,p=e.l;o=p.length;var h,u=this.mHelper,g="",m=0;for(i=0;i<o;i+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?l=this.textPaths[m]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?d=(c=this.textSpans[m]).children[0]:((c=createTag("div")).style.lineHeight=0,(d=createNS("svg")).appendChild(l),styleDiv(c)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(c=this.textSpans[m],l=this.textPaths[m]):(styleDiv(c=createTag("span")),styleDiv(l=createTag("span")),c.appendChild(l)),this.globalData.fontManager.chars){var f,y=this.globalData.fontManager.getCharData(e.finalText[i],n.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(f=y?y.data:null,u.reset(),f&&f.shapes&&f.shapes.length&&(h=f.shapes[0].it,u.scale(e.finalSize/100,e.finalSize/100),g=this.createPathShape(u,h),l.setAttribute("d",g)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(c),f&&f.shapes){document.body.appendChild(d);var b=d.getBBox();d.setAttribute("width",b.width+2),d.setAttribute("height",b.height+2),d.setAttribute("viewBox",b.x-1+" "+(b.y-1)+" "+(b.width+2)+" "+(b.height+2));var C=d.style,v="translate("+(b.x-1)+"px,"+(b.y-1)+"px)";C.transform=v,C.webkitTransform=v,p[i].yOffset=b.y-1}else d.setAttribute("width",1),d.setAttribute("height",1);c.appendChild(d)}}else if(l.textContent=p[i].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(c);var x=l.style,S="translate3d(0,"+-e.finalSize/1.2+"px,0)";x.transform=S,x.webkitTransform=S}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=c,this.textSpans[m].style.display="block",this.textPaths[m]=l,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,i,o,n,a,s=0,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;for(i=c.length,r=0;r<i;r+=1)c[r].n?s+=1:(n=this.textSpans[r],a=this.textPaths[r],o=l[s],s+=1,o._mdf.m&&(this.isMasked?n.setAttribute("transform",o.m):(n.style.webkitTransform=o.m,n.style.transform=o.m)),n.style.opacity=o.o,o.sw&&o._mdf.sw&&a.setAttribute("stroke-width",o.sw),o.sc&&o._mdf.sc&&a.setAttribute("stroke",o.sc),o.fc&&o._mdf.fc&&(a.setAttribute("fill",o.fc),a.style.color=o.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var d=this.innerElem.getBBox();if(this.currentBBox.w!==d.width&&(this.currentBBox.w=d.width,this.svgElement.setAttribute("width",d.width)),this.currentBBox.h!==d.height&&(this.currentBBox.h=d.height,this.svgElement.setAttribute("height",d.height)),this.currentBBox.w!==d.width+2||this.currentBBox.h!==d.height+2||this.currentBBox.x!==d.x-1||this.currentBBox.y!==d.y-1){this.currentBBox.w=d.width+2,this.currentBBox.h=d.height+2,this.currentBBox.x=d.x-1,this.currentBBox.y=d.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=p,e.webkitTransform=p}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,r,i,o=this.comp.threeDElements.length;for(e=0;e<o;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){r=t.perspectiveElem.style,i=t.container.style;var n=this.pe.v+"px",a="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=n,r.webkitPerspective=n,i.transformOrigin=a,i.mozTransformOrigin=a,i.webkitTransformOrigin=a,r.transform=s,r.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,r=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)r=this.hierarchy[e].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var i=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var o;o=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var n=Math.sqrt(Math.pow(o[0],2)+Math.pow(o[1],2)+Math.pow(o[2],2)),a=[o[0]/n,o[1]/n,o[2]/n],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],s),c=Math.atan2(a[0],-a[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var d=!this._prevMat.equals(this.mat);if((d||this.pe._mdf)&&this.comp.threeDElements){var p,h,u;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(p=this.comp.threeDElements[e]).type){if(d){var g=this.mat.toCSS();(u=p.container.style).transform=g,u.webkitTransform=g}this.pe._mdf&&((h=p.perspectiveElem.style).perspective=this.pe.v+"px",h.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var i=this.layers[t];if(i.ddd&&this.supports3d)this.addTo3dContainer(r,t);else if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var o,n,a=0;a<t;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(n=this.elements[a],o=(this.layers[a].ddd?this.getThreeDContainerByPos(a):n.getBaseElement())||o),a+=1;o?i.ddd&&this.supports3d||this.layerElement.insertBefore(r,o):i.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r,i,o=createTag("div");styleDiv(o);var n=createTag("div");if(styleDiv(n),"3d"===t){(r=o.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var a="50% 50%";r.webkitTransformOrigin=a,r.mozTransformOrigin=a,r.transformOrigin=a;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(i=n.style).transform=s,i.webkitTransform=s}o.appendChild(n);var l={container:n,perspectiveElem:o,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,r=this.layers.length,i="";for(e=0;e<r;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==i&&(i="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==i&&(i="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(r=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,i=this.threeDElements.length;r<i;){if(t<=this.threeDElements[r].endPos){for(var o,n=this.threeDElements[r].startPos;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(o=this.elements[n].getBaseElement()),n+=1;o?this.threeDElements[r].container.insertBefore(e,o):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,i=t.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=t,styleDiv(t),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),i.overflow="hidden";var o=createNS("svg");o.setAttribute("width","1"),o.setAttribute("height","1"),styleDiv(o),this.resizerElem.appendChild(o);var n=createNS("defs");o.appendChild(n),this.data=e,this.setupGlobalData(e,o),this.globalData.defs=n,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,r,i,o=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight,a=o/n;this.globalData.compSize.w/this.globalData.compSize.h>a?(e=o/this.globalData.compSize.w,t=o/this.globalData.compSize.w,r=0,i=(n-this.globalData.compSize.h*(o/this.globalData.compSize.w))/2):(e=n/this.globalData.compSize.h,t=n/this.globalData.compSize.h,r=(o-this.globalData.compSize.w*(n/this.globalData.compSize.h))/2,i=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+r+","+i+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,r=this.globalData.compSize.h,i=this.threeDElements.length;for(e=0;e<i;e+=1){var o=this.threeDElements[e].perspectiveElem.style;o.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(r,2))+"px",o.perspective=o.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,i=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var o=this.createComp(e[t],i,this.globalData.comp,null);o.initExpressions(),this.globalData.projectInterface.registerComposition(o)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var r,i=0;i<t;)this.elements[i]&&this.elements[i].getBaseElement&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(t){for(var r=0,i=e.layers.length;r<i;){if(e.layers[r].nm===t||e.layers[r].ind===t)return e.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(e)}function seedRandom(e,t){var r=this,i=256,o="random",n=t.pow(i,6),a=t.pow(2,52),s=2*a,l=255;function c(e){var t,r=e.length,o=this,n=0,a=o.i=o.j=0,s=o.S=[];for(r||(e=[r++]);n<i;)s[n]=n++;for(n=0;n<i;n++)s[n]=s[a=l&a+e[n%r]+(t=s[n])],s[a]=t;o.g=function(e){for(var t,r=0,n=o.i,a=o.j,s=o.S;e--;)t=s[n=l&n+1],r=r*i+s[l&(s[n]=s[a=l&a+t])+(s[a]=t)];return o.i=n,o.j=a,r}}function d(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function p(e,t){var r,i=[],o=_typeof$2(e);if(t&&"object"==o)for(r in e)try{i.push(p(e[r],t-1))}catch(e){}return i.length?i:"string"==o?e:e+"\0"}function h(e,t){for(var r,i=e+"",o=0;o<i.length;)t[l&o]=l&(r^=19*t[l&o])+i.charCodeAt(o++);return u(t)}function u(e){return String.fromCharCode.apply(0,e)}t["seed"+o]=function(l,g,m){var f=[],y=h(p((g=!0===g?{entropy:!0}:g||{}).entropy?[l,u(e)]:null===l?function(){try{var t=new Uint8Array(i);return(r.crypto||r.msCrypto).getRandomValues(t),u(t)}catch(t){var o=r.navigator,n=o&&o.plugins;return[+new Date,r,n,r.screen,u(e)]}}():l,3),f),b=new c(f),C=function(){for(var e=b.g(6),t=n,r=0;e<a;)e=(e+r)*i,t*=i,r=b.g(1);for(;e>=s;)e/=2,t/=2,r>>>=1;return(e+r)/t};return C.int32=function(){return 0|b.g(4)},C.quick=function(){return b.g(4)/4294967296},C.double=C,h(u(b.S),e),(g.pass||m||function(e,r,i,n){return n&&(n.S&&d(n,b),e.state=function(){return d(b,{})}),i?(t[o]=e,r):e})(C,y,"global"in g?g.global:this==t,g.state)},h(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var r,i=e.length,o=[];for(r=0;r<i;r+=1)o[r]=-e[r];return o}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof$1(e),i=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(i,t)||"string"===r||"string"===i)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var o=0,n=e.length,a=t.length,s=[];o<n||o<a;)("number"==typeof e[o]||e[o]instanceof Number)&&("number"==typeof t[o]||t[o]instanceof Number)?s[o]=e[o]+t[o]:s[o]=void 0===t[o]?e[o]:e[o]||t[o],o+=1;return s}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),i=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(i,t))return"string"===r&&(e=parseInt(e,10)),"string"===i&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var o=0,n=e.length,a=t.length,s=[];o<n||o<a;)("number"==typeof e[o]||e[o]instanceof Number)&&("number"==typeof t[o]||t[o]instanceof Number)?s[o]=e[o]-t[o]:s[o]=void 0===t[o]?e[o]:e[o]||t[o],o+=1;return s}return 0}function mul(e,t){var r,i,o,n=_typeof$1(e),a=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(a,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(o=e.length,r=createTypedArray("float32",o),i=0;i<o;i+=1)r[i]=e[i]*t;return r}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,r=createTypedArray("float32",o),i=0;i<o;i+=1)r[i]=e*t[i];return r}return 0}function div(e,t){var r,i,o,n=_typeof$1(e),a=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(a,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(o=e.length,r=createTypedArray("float32",o),i=0;i<o;i+=1)r[i]=e[i]/t;return r}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,r=createTypedArray("float32",o),i=0;i<o;i+=1)r[i]=e/t[i];return r}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var i=r;r=t,t=i}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var r;t||(t=helperLengthArray);var i=Math.min(e.length,t.length),o=0;for(r=0;r<i;r+=1)o+=Math.pow(t[r]-e[r],2);return Math.sqrt(o)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,r,i=e[0],o=e[1],n=e[2],a=Math.max(i,o,n),s=Math.min(i,o,n),l=(a+s)/2;if(a===s)t=0,r=0;else{var c=a-s;switch(r=l>.5?c/(2-a-s):c/(a+s),a){case i:t=(o-n)/c+(o<n?6:0);break;case o:t=(n-i)/c+2;break;case n:t=(i-o)/c+4}t/=6}return[t,r,l,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t,r,i,o=e[0],n=e[1],a=e[2];if(0===n)t=a,i=a,r=a;else{var s=a<.5?a*(1+n):a+n-a*n,l=2*a-s;t=hue2rgb(l,s,o+1/3),r=hue2rgb(l,s,o),i=hue2rgb(l,s,o-1/3)}return[t,r,i,e[3]]}function linear(e,t,r,i,o){if(void 0!==i&&void 0!==o||(i=t,o=r,t=0,r=1),r<t){var n=r;r=t,t=n}if(e<=t)return i;if(e>=r)return o;var a,s=r===t?0:(e-t)/(r-t);if(!i.length)return i+(o-i)*s;var l=i.length,c=createTypedArray("float32",l);for(a=0;a<l;a+=1)c[a]=i[a]+(o[a]-i[a])*s;return c}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var r,i=t.length;e||(e=createTypedArray("float32",i));var o=createTypedArray("float32",i),n=BMMath.random();for(r=0;r<i;r+=1)o[r]=e[r]+n*(t[r]-e[r]);return o}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,r,i){var o,n=e.length,a=shapePool.newElement();a.setPathData(!!i,n);var s,l,c=[0,0];for(o=0;o<n;o+=1)s=t&&t[o]?t[o]:c,l=r&&r[o]?r[o]:c,a.setTripleAt(e[o][0],e[o][1],l[0]+e[o][0],l[1]+e[o][1],s[0]+e[o][0],s[1]+e[o][1],o,!0);return a}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var r,i,o=this.pv.length?this.pv.length:1,n=createTypedArray("float32",o),a=Math.floor(5*time);for(r=0,i=0;r<a;){for(i=0;i<o;i+=1)n[i]+=-t+2*t*BMMath.random();r+=1}var s=5*time,l=s-Math.floor(s),c=createTypedArray("float32",o);if(o>1){for(i=0;i<o;i+=1)c[i]=this.pv[i]+n[i]+(-t+2*t*BMMath.random())*l;return c}return this.pv+n[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,i,0]}function easeOut(e,t,r,i,o){return applyEase(easeOutBez,e,t,r,i,o)}function easeIn(e,t,r,i,o){return applyEase(easeInBez,e,t,r,i,o)}function ease(e,t,r,i,o){return applyEase(easeInOutBez,e,t,r,i,o)}function applyEase(e,t,r,i,o,n){void 0===o?(o=r,n=i):t=(t-r)/(i-r),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(o)){var s,l=o.length,c=createTypedArray("float32",l);for(s=0;s<l;s+=1)c[s]=(n[s]-o[s])*a+o[s];return c}return(n-o)*a+o}function nearestKey(e){var t,r,i,o=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,i=data.k[0].t;else{for(t=0;t<o-1;t+=1){if(e===data.k[t].t){r=t+1,i=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(r=t+2,i=data.k[t+1].t):(r=t+1,i=data.k[t].t);break}}-1===r&&(r=t+1,i=data.k[t].t)}else r=0,i=0;var n={};return n.index=r,n.time=i/elem.comp.globalData.frameRate,n}function key(e){var t,r,i;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var o=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=o.length,r=0;r<i;r+=1)t[r]=o[r],t.value[r]=o[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={initExpressions:function(e){var t=0,r=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=r.length;for(e=0;e<t;e+=1)r[e].release();r.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===r.indexOf(e)&&r.push(e)}}};return e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var r,i=createSizedArray(t.viewData.length),o=t.viewData.length;for(r=0;r<o;r+=1)i[r]=new e(t.viewData[r],t.masksProperties[r]);return function(e){for(r=0;r<o;){if(t.masksProperties[r].nm===e)return i[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(e,t,r){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(i){if(!e.numKeys)return 0;var o="";o="s"in t.keyframes[i-1]?t.keyframes[i-1].s:"e"in t.keyframes[i-2]?t.keyframes[i-2].e:t.keyframes[i-2].s;var n="unidimensional"===r?new Number(o):Object.assign({},o);return n.time=t.keyframes[i-1].t/t.elem.comp.globalData.frameRate,n.value="unidimensional"===r?o[0]:o,n},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function i(){return e}return function(o){return o?"unidimensional"===o.propType?function(t){t&&"pv"in t||(t=e);var i=1/t.mult,o=t.pv*i,n=new Number(o);return n.value=o,r(n,t,"unidimensional"),function(){return t.k&&t.getValue(),o=t.v*i,n.value!==o&&((n=new Number(o)).value=o,n[0]=o,r(n,t,"unidimensional")),n}}(o):function(e){e&&"pv"in e||(e=t);var i=1/e.mult,o=e.data&&e.data.l||e.pv.length,n=createTypedArray("float32",o),a=createTypedArray("float32",o);return n.value=a,r(n,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<o;t+=1)a[t]=e.v[t]*i,n[t]=a[t];return n}}(o):i}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var r,i,o,n;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?n=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(o=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?n():[r(),i(),o?o():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,e)}function r(e,t){var r=this.getMatrix(t);return this.applyPoint(r,e)}function i(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,e)}function o(e,t){var r=this.getMatrix(t);return this.invertPoint(r,e)}function n(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function s(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(c){var d;function p(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return p.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return d;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return p.effect;case"ADBE Text Properties":return p.textInterface;default:return null}}p.getMatrix=e,p.invertPoint=a,p.applyPoint=n,p.toWorld=r,p.toWorldVec=t,p.fromWorld=o,p.fromWorldVec=i,p.toComp=r,p.fromComp=s,p.sampleImage=l,p.sourceRectAtTime=c.sourceRectAtTime.bind(c),p._elem=c;var h=getDescriptor(d=TransformExpressionInterface(c.finalTransform.mProp),"anchorPoint");return Object.defineProperties(p,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(d,"rotation"),scale:getDescriptor(d,"scale"),position:getDescriptor(d,"position"),opacity:getDescriptor(d,"opacity"),anchorPoint:h,anchor_point:h,transform:{get:function(){return d}},active:{get:function(){return c.isInRange}}}),p.startTime=c.data.st,p.index=c.data.ind,p.source=c.data.refId,p.height=0===c.data.ty?c.data.h:100,p.width=0===c.data.ty?c.data.w:100,p.inPoint=c.data.ip/c.comp.globalData.frameRate,p.outPoint=c.data.op/c.comp.globalData.frameRate,p._name=c.data.nm,p.registerMaskInterface=function(e){p.mask=new MaskManagerInterface(e,c)},p.registerEffectsInterface=function(e){p.effect=e},p}}(),propertyGroupFactory=function(e,t){return function(r){return(r=void 0===r?1:r)<=0?e:t(r-1)}},PropertyInterface=function(e,t){var r={_name:e};return function(e){return(e=void 0===e?1:e)<=0?r:t(e-1)}},EffectsExpressionInterface=function(){var e={createEffectsInterface:function(e,r){if(e.effectsManager){var i,o=[],n=e.data.ef,a=e.effectsManager.effectElements.length;for(i=0;i<a;i+=1)o.push(t(n[i],e.effectsManager.effectElements[i],r,e));var s=e.data.ef||[],l=function(e){for(i=0,a=s.length;i<a;){if(e===s[i].nm||e===s[i].mn||e===s[i].ix)return o[i];i+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}};function t(e,i,o,n){function a(t){for(var r=e.ef,i=0,o=r.length;i<o;){if(t===r[i].nm||t===r[i].mn||t===r[i].ix)return 5===r[i].ty?c[i]:c[i]();i+=1}throw new Error}var s,l=propertyGroupFactory(a,o),c=[],d=e.ef.length;for(s=0;s<d;s+=1)5===e.ef[s].ty?c.push(t(e.ef[s],i.effectElements[s],i.effectElements[s].propertyGroup,n)):c.push(r(i.effectElements[s],e.ef[s].ty,n,l));return"ADBE Color Control"===e.mn&&Object.defineProperty(a,"color",{get:function(){return c[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return e.np}},_name:{value:e.nm},propertyGroup:{value:l}}),a.enabled=0!==e.en,a.active=a.enabled,a}function r(e,t,r,i){var o=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",i)),function(){return 10===t?r.comp.compInterface(e.p.v):o()}}return e}(),ShapePathInterface=function(e,t,r){var i=t.sh;function o(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?o.path:null}var n=propertyGroupFactory(o,r);return i.setGroupProperty(PropertyInterface("Path",n)),Object.defineProperties(o,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:r}}),o},ShapeExpressionInterface=function(){function e(e,s,u){var g,m=[],f=e?e.length:0;for(g=0;g<f;g+=1)"gr"===e[g].ty?m.push(t(e[g],s[g],u)):"fl"===e[g].ty?m.push(r(e[g],s[g],u)):"st"===e[g].ty?m.push(n(e[g],s[g],u)):"tm"===e[g].ty?m.push(a(e[g],s[g],u)):"tr"===e[g].ty||("el"===e[g].ty?m.push(l(e[g],s[g],u)):"sr"===e[g].ty?m.push(c(e[g],s[g],u)):"sh"===e[g].ty?m.push(ShapePathInterface(e[g],s[g],u)):"rc"===e[g].ty?m.push(d(e[g],s[g],u)):"rd"===e[g].ty?m.push(p(e[g],s[g],u)):"rp"===e[g].ty?m.push(h(e[g],s[g],u)):"gf"===e[g].ty?m.push(i(e[g],s[g],u)):m.push(o(e[g],s[g])));return m}function t(t,r,i){var o=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return o.content;default:return o.transform}};o.propertyGroup=propertyGroupFactory(o,i);var n=function(t,r,i){var o,n=function(e){for(var t=0,r=o.length;t<r;){if(o[t]._name===e||o[t].mn===e||o[t].propertyIndex===e||o[t].ix===e||o[t].ind===e)return o[t];t+=1}return"number"==typeof e?o[e-1]:null};n.propertyGroup=propertyGroupFactory(n,i),o=e(t.it,r.it,n.propertyGroup),n.numProperties=o.length;var a=s(t.it[t.it.length-1],r.it[r.it.length-1],n.propertyGroup);return n.transform=a,n.propertyIndex=t.cix,n._name=t.nm,n}(t,r,o.propertyGroup),a=s(t.it[t.it.length-1],r.it[r.it.length-1],o.propertyGroup);return o.content=n,o.transform=a,Object.defineProperty(o,"_name",{get:function(){return t.nm}}),o.numProperties=t.np,o.propertyIndex=t.ix,o.nm=t.nm,o.mn=t.mn,o}function r(e,t,r){function i(e){return"Color"===e||"color"===e?i.color:"Opacity"===e||"opacity"===e?i.opacity:null}return Object.defineProperties(i,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),i}function i(e,t,r){function i(e){return"Start Point"===e||"start point"===e?i.startPoint:"End Point"===e||"end point"===e?i.endPoint:"Opacity"===e||"opacity"===e?i.opacity:null}return Object.defineProperties(i,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",r)),t.e.setGroupProperty(PropertyInterface("End Point",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),i}function o(){return function(){return null}}function n(e,t,r){var i,o=propertyGroupFactory(c,r),n=propertyGroupFactory(l,o);function a(r){Object.defineProperty(l,e.d[r].nm,{get:ExpressionPropertyInterface(t.d.dataProps[r].p)})}var s=e.d?e.d.length:0,l={};for(i=0;i<s;i+=1)a(i),t.d.dataProps[i].p.setGroupProperty(n);function c(e){return"Color"===e||"color"===e?c.color:"Opacity"===e||"opacity"===e?c.opacity:"Stroke Width"===e||"stroke width"===e?c.strokeWidth:null}return Object.defineProperties(c,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",o)),t.o.setGroupProperty(PropertyInterface("Opacity",o)),t.w.setGroupProperty(PropertyInterface("Stroke Width",o)),c}function a(e,t,r){function i(t){return t===e.e.ix||"End"===t||"end"===t?i.end:t===e.s.ix?i.start:t===e.o.ix?i.offset:null}var o=propertyGroupFactory(i,r);return i.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",o)),t.e.setGroupProperty(PropertyInterface("End",o)),t.o.setGroupProperty(PropertyInterface("Offset",o)),i.propertyIndex=e.ix,i.propertyGroup=r,Object.defineProperties(i,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),i.mn=e.mn,i}function s(e,t,r){function i(t){return e.a.ix===t||"Anchor Point"===t?i.anchorPoint:e.o.ix===t||"Opacity"===t?i.opacity:e.p.ix===t||"Position"===t?i.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?i.rotation:e.s.ix===t||"Scale"===t?i.scale:e.sk&&e.sk.ix===t||"Skew"===t?i.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?i.skewAxis:null}var o=propertyGroupFactory(i,r);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",o)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",o)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",o)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",o)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",o)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",o)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",o))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",o)),Object.defineProperties(i,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),i.ty="tr",i.mn=e.mn,i.propertyGroup=r,i}function l(e,t,r){function i(t){return e.p.ix===t?i.position:e.s.ix===t?i.size:null}var o=propertyGroupFactory(i,r);i.propertyIndex=e.ix;var n="tm"===t.sh.ty?t.sh.prop:t.sh;return n.s.setGroupProperty(PropertyInterface("Size",o)),n.p.setGroupProperty(PropertyInterface("Position",o)),Object.defineProperties(i,{size:{get:ExpressionPropertyInterface(n.s)},position:{get:ExpressionPropertyInterface(n.p)},_name:{value:e.nm}}),i.mn=e.mn,i}function c(e,t,r){function i(t){return e.p.ix===t?i.position:e.r.ix===t?i.rotation:e.pt.ix===t?i.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?i.outerRadius:e.os.ix===t?i.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?i.innerRoundness:null:i.innerRadius}var o=propertyGroupFactory(i,r),n="tm"===t.sh.ty?t.sh.prop:t.sh;return i.propertyIndex=e.ix,n.or.setGroupProperty(PropertyInterface("Outer Radius",o)),n.os.setGroupProperty(PropertyInterface("Outer Roundness",o)),n.pt.setGroupProperty(PropertyInterface("Points",o)),n.p.setGroupProperty(PropertyInterface("Position",o)),n.r.setGroupProperty(PropertyInterface("Rotation",o)),e.ir&&(n.ir.setGroupProperty(PropertyInterface("Inner Radius",o)),n.is.setGroupProperty(PropertyInterface("Inner Roundness",o))),Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(n.p)},rotation:{get:ExpressionPropertyInterface(n.r)},points:{get:ExpressionPropertyInterface(n.pt)},outerRadius:{get:ExpressionPropertyInterface(n.or)},outerRoundness:{get:ExpressionPropertyInterface(n.os)},innerRadius:{get:ExpressionPropertyInterface(n.ir)},innerRoundness:{get:ExpressionPropertyInterface(n.is)},_name:{value:e.nm}}),i.mn=e.mn,i}function d(e,t,r){function i(t){return e.p.ix===t?i.position:e.r.ix===t?i.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?i.size:null}var o=propertyGroupFactory(i,r),n="tm"===t.sh.ty?t.sh.prop:t.sh;return i.propertyIndex=e.ix,n.p.setGroupProperty(PropertyInterface("Position",o)),n.s.setGroupProperty(PropertyInterface("Size",o)),n.r.setGroupProperty(PropertyInterface("Rotation",o)),Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(n.p)},roundness:{get:ExpressionPropertyInterface(n.r)},size:{get:ExpressionPropertyInterface(n.s)},_name:{value:e.nm}}),i.mn=e.mn,i}function p(e,t,r){function i(t){return e.r.ix===t||"Round Corners 1"===t?i.radius:null}var o=propertyGroupFactory(i,r),n=t;return i.propertyIndex=e.ix,n.rd.setGroupProperty(PropertyInterface("Radius",o)),Object.defineProperties(i,{radius:{get:ExpressionPropertyInterface(n.rd)},_name:{value:e.nm}}),i.mn=e.mn,i}function h(e,t,r){function i(t){return e.c.ix===t||"Copies"===t?i.copies:e.o.ix===t||"Offset"===t?i.offset:null}var o=propertyGroupFactory(i,r),n=t;return i.propertyIndex=e.ix,n.c.setGroupProperty(PropertyInterface("Copies",o)),n.o.setGroupProperty(PropertyInterface("Offset",o)),Object.defineProperties(i,{copies:{get:ExpressionPropertyInterface(n.c)},offset:{get:ExpressionPropertyInterface(n.o)},_name:{value:e.nm}}),i.mn=e.mn,i}return function(t,r,i){var o;function n(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?i:o[e-1];for(var t=0,r=o.length;t<r;){if(o[t]._name===e)return o[t];t+=1}return null}return n.propertyGroup=propertyGroupFactory(n,function(){return i}),o=e(t,r,n.propertyGroup),n.numProperties=o.length,n._name="Contents",n}}(),TextExpressionInterface=function(e){var t;function r(e){return"ADBE Text Document"===e?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var r=e.textProperty.currentData.t;return t&&r===t.value||((t=new String(r)).value=r||new String(r),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r};function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",r=e.getFootageData();function i(e){if(r[e])return t=e,"object"===_typeof(r=r[e])?i:r;var o=e.indexOf(t);if(-1!==o){var n=parseInt(e.substr(o+t.length),10);return"object"===_typeof(r=r[n])?i:r}return""}return function(){return t="",r=e.getFootageData(),i}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,r){t.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(e,t,r).bind(r)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),r=this.getValueAtTime(e+-.01),i=0;if(t.length){var o;for(o=0;o<t.length;o+=1)i+=Math.pow(r[o]-t[o],2);i=100*Math.sqrt(i)}else i=0;return i},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,r,i=-.001,o=this.getValueAtTime(e),n=this.getValueAtTime(e+i);if(o.length)for(t=createTypedArray("float32",o.length),r=0;r<o.length;r+=1)t[r]=(n[r]-o[r])/i;else t=(n-o)/i;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,r){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var i,o,n,a,s,l=this.comp.renderedFrame,c=this.keyframes,d=c[c.length-1].t;if(l<=d)return this.pv;if(r?o=d-(i=t?Math.abs(d-this.elem.comp.globalData.frameRate*t):Math.max(0,d-this.elem.data.ip)):((!t||t>c.length-1)&&(t=c.length-1),i=d-(o=c[c.length-1-t].t)),"pingpong"===e){if(Math.floor((l-o)/i)%2!=0)return this.getValueAtTime((i-(l-o)%i+o)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(o/this.comp.globalData.frameRate,0),h=this.getValueAtTime(d/this.comp.globalData.frameRate,0),u=this.getValueAtTime(((l-o)%i+o)/this.comp.globalData.frameRate,0),g=Math.floor((l-o)/i);if(this.pv.length){for(a=(s=new Array(p.length)).length,n=0;n<a;n+=1)s[n]=(h[n]-p[n])*g+u[n];return s}return(h-p)*g+u}if("continue"===e){var m=this.getValueAtTime(d/this.comp.globalData.frameRate,0),f=this.getValueAtTime((d-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,n=0;n<a;n+=1)s[n]=m[n]+(m[n]-f[n])*((l-d)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-d)/.001*(m-f)}}return this.getValueAtTime(((l-o)%i+o)/this.comp.globalData.frameRate,0)}function t(e,t,r){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var i,o,n,a,s,l=this.comp.renderedFrame,c=this.keyframes,d=c[0].t;if(l>=d)return this.pv;if(r?o=d+(i=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-d)):((!t||t>c.length-1)&&(t=c.length-1),i=(o=c[t].t)-d),"pingpong"===e){if(Math.floor((d-l)/i)%2==0)return this.getValueAtTime(((d-l)%i+d)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(d/this.comp.globalData.frameRate,0),h=this.getValueAtTime(o/this.comp.globalData.frameRate,0),u=this.getValueAtTime((i-(d-l)%i+d)/this.comp.globalData.frameRate,0),g=Math.floor((d-l)/i)+1;if(this.pv.length){for(a=(s=new Array(p.length)).length,n=0;n<a;n+=1)s[n]=u[n]-(h[n]-p[n])*g;return s}return u-(h-p)*g}if("continue"===e){var m=this.getValueAtTime(d/this.comp.globalData.frameRate,0),f=this.getValueAtTime((d+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(s=new Array(m.length)).length,n=0;n<a;n+=1)s[n]=m[n]+(m[n]-f[n])*(d-l)/.001;return s}return m+(m-f)*(d-l)/.001}}return this.getValueAtTime((i-((d-l)%i+d))/this.comp.globalData.frameRate,0)}function r(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var r,i,o=this.comp.renderedFrame/this.comp.globalData.frameRate,n=o-e,a=t>1?(o+e-n)/(t-1):1,s=0,l=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(i=this.getValueAtTime(n+s*a),this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]+=i[l];else r+=i;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]/=t;else r/=t;return r}function i(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(e);t.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var i=this.s.getValueAtTime(e);t.scale(i[0]*this.s.mult,i[1]*this.s.mult,i[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var o=this.sk.getValueAtTime(e),n=this.sa.getValueAtTime(e);t.skewFromAxis(-o*this.sk.mult,n*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(e);t.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var s=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),c=this.rx.getValueAtTime(e),d=this.or.getValueAtTime(e);t.rotateZ(-s*this.rz.mult).rotateY(l*this.ry.mult).rotateX(c*this.rx.mult).rotateZ(-d[2]*this.or.mult).rotateY(d[1]*this.or.mult).rotateX(d[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var p=this.px.getValueAtTime(e),h=this.py.getValueAtTime(e);if(this.data.p.z){var u=this.pz.getValueAtTime(e);t.translate(p*this.px.mult,h*this.py.mult,-u*this.pz.mult)}else t.translate(p*this.px.mult,h*this.py.mult,0)}else{var g=this.p.getValueAtTime(e);t.translate(g[0]*this.p.mult,g[1]*this.p.mult,-g[2]*this.p.mult)}return t}function o(){return this.v.clone(new Matrix)}var n=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,r){var a=n(e,t,r);return a.dynamicProperties.length?a.getValueAtTime=i.bind(a):a.getValueAtTime=o.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(i,o,n,s,l){var c=a(i,o,n,s,l);c.kf?c.getValueAtTime=expressionHelpers.getValueAtTime.bind(c):c.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(c),c.setGroupProperty=expressionHelpers.setGroupProperty,c.loopOut=e,c.loopIn=t,c.smooth=r,c.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(c),c.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(c),c.numKeys=1===o.a?o.k.length:0,c.propertyIndex=o.ix;var d=0;return 0!==n&&(d=createTypedArray("float32",1===o.a?o.k[0].s.length:o.k.length)),c._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:d},expressionHelpers.searchExpressions(i,o,c),c.k&&l.addDynamicProperty(c),c};var s=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function c(){}c.prototype={vertices:function(e,t){this.k&&this.getValue();var r,i=this.v;void 0!==t&&(i=this.getValueAtTime(t,0));var o=i._length,n=i[e],a=i.v,s=createSizedArray(o);for(r=0;r<o;r+=1)s[r]="i"===e||"o"===e?[n[r][0]-a[r][0],n[r][1]-a[r][1]]:[n[r][0],n[r][1]];return s},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var i,o=this._segmentsLength,n=o.lengths,a=o.totalLength*e,s=0,l=n.length,c=0;s<l;){if(c+n[s].addedLength>a){var d=s,p=r.c&&s===l-1?0:s+1,h=(a-c)/n[s].addedLength;i=bez.getPointInSegment(r.v[d],r.v[p],r.o[d],r.i[p],h,n[s]);break}c+=n[s].addedLength,s+=1}return i||(i=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),i},vectorOnPath:function(e,t,r){1==e?e=this.v.c:0==e&&(e=.999);var i=this.pointOnPath(e,t),o=this.pointOnPath(e+.001,t),n=o[0]-i[0],a=o[1]-i[1],s=Math.sqrt(Math.pow(n,2)+Math.pow(a,2));return 0===s?[0,0]:"tangent"===r?[n/s,a/s]:[-a/s,n/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],s),extendPrototype([c],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var d=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,r,i,o){var n=d(e,t,r,i,o);return n.propertyIndex=t.ix,n.lock=!1,3===r?expressionHelpers.searchExpressions(e,t.pt,n):4===r&&expressionHelpers.searchExpressions(e,t.ks,n),n.k&&e.addDynamicProperty(n),n}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var r=this.calculateExpression(t);if(e.t!==r){var i={};return this.copyData(i,e),i.t=r.toString(),i.__complete=!1,i}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var r,i,o=createNS("feMerge");for(o.setAttribute("result",e),i=0;i<t.length;i+=1)(r=createNS("feMergeNode")).setAttribute("in",t[i]),o.appendChild(r),o.appendChild(r);return o}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,r,i,o){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=n,n.setAttribute("result",i+"_tint_1"),e.appendChild(n),(n=createNS("feColorMatrix")).setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",i+"_tint_2"),e.appendChild(n),this.matrixFilter=n;var a=this.createMergeNode(i,[o,i+"_tint_1",i+"_tint_2"]);e.appendChild(a)}function SVGFillFilter(e,t,r,i){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",i),e.appendChild(o),this.matrixFilter=o}function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}function SVGTritoneFilter(e,t,r,i){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(o);var n=createNS("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",i),this.matrixFilter=n;var a=createNS("feFuncR");a.setAttribute("type","table"),n.appendChild(a),this.feFuncR=a;var s=createNS("feFuncG");s.setAttribute("type","table"),n.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),n.appendChild(l),this.feFuncB=l,e.appendChild(n)}function SVGProLevelsFilter(e,t,r,i){this.filterManager=t;var o=this.filterManager.effectElements,n=createNS("feComponentTransfer");(o[10].p.k||0!==o[10].p.v||o[11].p.k||1!==o[11].p.v||o[12].p.k||1!==o[12].p.v||o[13].p.k||0!==o[13].p.v||o[14].p.k||1!==o[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",n)),(o[17].p.k||0!==o[17].p.v||o[18].p.k||1!==o[18].p.v||o[19].p.k||1!==o[19].p.v||o[20].p.k||0!==o[20].p.v||o[21].p.k||1!==o[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",n)),(o[24].p.k||0!==o[24].p.v||o[25].p.k||1!==o[25].p.v||o[26].p.k||1!==o[26].p.v||o[27].p.k||0!==o[27].p.v||o[28].p.k||1!==o[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",n)),(o[31].p.k||0!==o[31].p.v||o[32].p.k||1!==o[32].p.v||o[33].p.k||1!==o[33].p.v||o[34].p.k||0!==o[34].p.v||o[35].p.k||1!==o[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",n)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(n.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(n)),(o[3].p.k||0!==o[3].p.v||o[4].p.k||1!==o[4].p.v||o[5].p.k||1!==o[5].p.v||o[6].p.k||0!==o[6].p.v||o[7].p.k||1!==o[7].p.v)&&((n=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",i),e.appendChild(n),this.feFuncRComposed=this.createFeFunc("feFuncR",n),this.feFuncGComposed=this.createFeFunc("feFuncG",n),this.feFuncBComposed=this.createFeFunc("feFuncB",n))}function SVGDropShadowEffect(e,t,r,i,o){var n=t.container.globalData.renderConfig.filterSize,a=t.data.fs||n;e.setAttribute("x",a.x||n.x),e.setAttribute("y",a.y||n.y),e.setAttribute("width",a.width||n.width),e.setAttribute("height",a.height||n.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",i+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,e.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",i+"_drop_shadow_1"),l.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var d=createNS("feComposite");d.setAttribute("in",i+"_drop_shadow_3"),d.setAttribute("in2",i+"_drop_shadow_2"),d.setAttribute("operator","in"),d.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(d);var p=this.createMergeNode(i,[i+"_drop_shadow_4",o]);e.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,r,i,o=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(i=this.elem.maskManager.masksProperties.length,r=0):i=1+(r=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);r<i;r+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:r});if(3===this.filterManager.effectElements[10].p.v){var n=createNS("mask"),a=createElementID();n.setAttribute("id",a),n.setAttribute("mask-type","alpha"),n.appendChild(t),this.elem.globalData.defs.appendChild(n);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+a+")");o[0];)s.appendChild(o[0]);this.elem.layerElement.appendChild(s),this.masker=n,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(o=this.elem.layerElement.children||this.elem.layerElement.childNodes;o.length;)this.elem.layerElement.removeChild(o[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var r,i,o=this.paths.length;for(t=0;t<o;t+=1)if(-1!==this.paths[t].m&&(r=this.elem.maskManager.viewData[this.paths[t].m],i=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&i.setAttribute("d",r.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var n;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),s=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=i.getTotalLength();n="0 0 0 "+l*a+" ";var c,d=l*(s-a),p=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,h=Math.floor(d/p);for(c=0;c<h;c+=1)n+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";n+="0 "+10*l+" 0 0"}else n="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;i.setAttribute("stroke-dasharray",n)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var u=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*u[0])+","+bmFloor(255*u[1])+","+bmFloor(255*u[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,o=i[0]+" "+r[0]+" "+t[0],n=i[1]+" "+r[1]+" "+t[1],a=i[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",o),this.feFuncG.setAttribute("tableValues",n),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,i,o){for(var n,a,s=0,l=Math.min(e,t),c=Math.max(e,t),d=Array.call(null,{length:256}),p=0,h=o-i,u=t-e;s<=256;)a=(n=s/256)<=l?u<0?o:i:n>=c?u<0?i:o:i+h*Math.pow((n-e)/u,1/r),d[p]=a,p+=1,s+=256/255;return d.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,o=r*Math.cos(i),n=r*Math.sin(i);this.feOffset.setAttribute("dx",o),this.feOffset.setAttribute("dy",n)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(e,t,r,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var o=createNS("feGaussianBlur");o.setAttribute("result",i),e.appendChild(o),this.feGaussianBlur=o}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var i,o=r.children,n=0,a=o.length;n<a&&o[n]!==e.layerElement;)n+=1;n<=a-2&&(i=o[n+1]);var s=createNS("use");s.setAttribute("href","#"+t),i?r.insertBefore(s,i):r.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",t.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var o=e.globalData.defs;o.appendChild(i);var n=createNS("symbol");n.setAttribute("id",r),this.replaceInParent(t,r),n.appendChild(t.layerElement),o.appendChild(n);var a=createNS("use");a.setAttribute("href","#"+r),i.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,i=t.length;r<i;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=3==r?0:t,o=2==r?0:t;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+o);var n=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",n)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,i=t[1].p.v,o=1===t[2].p.v,n=t[3].p.v,a=o?n:t[4].p.v,s=t[5].p.v,l=t[6].p.v,c=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(.01*a,.01*n,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())}(lottie$2,lottie$2.exports)),lottie$2.exports}var lottieExports=requireLottie(),lottie=getDefaultExportFromCjs(lottieExports);function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,o,n,a,s=[],l=!0,c=!1;try{if(n=(r=r.call(e)).next,0===t);else for(;!(l=(i=n.call(r)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _objectWithoutProperties(e,t){if(null==e)return{};var r,i,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)r=n[i],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;r[i]=e[i]}return r}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}var _excluded$1=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],useLottie=function(e,t){var r=e.animationData,i=e.loop,o=e.autoplay,n=e.initialSegment,a=e.onComplete,s=e.onLoopComplete,l=e.onEnterFrame,c=e.onSegmentStart,d=e.onConfigReady,p=e.onDataReady,h=e.onDataFailed,u=e.onLoadedImages,g=e.onDOMLoaded,m=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var f=_objectWithoutProperties(e,_excluded$1),y=_slicedToArray(useState(!1),2),b=y[0],C=y[1],v=useRef(),x=useRef(null);return useEffect(function(){var t=function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(x.current){null===(t=v.current)||void 0===t||t.destroy();var i=_objectSpread2(_objectSpread2(_objectSpread2({},e),r),{},{container:x.current});return v.current=lottie.loadAnimation(i),C(!!v.current),function(){var e;null===(e=v.current)||void 0===e||e.destroy(),v.current=void 0}}}();return function(){return null==t?void 0:t()}},[r,i]),useEffect(function(){v.current&&(v.current.autoplay=!!o)},[o]),useEffect(function(){v.current&&(n?Array.isArray(n)&&n.length&&((v.current.currentRawFrame<n[0]||v.current.currentRawFrame>n[1])&&(v.current.currentRawFrame=n[0]),v.current.setSegment(n[0],n[1])):v.current.resetSegments(!0))},[n]),useEffect(function(){var e=[{name:"complete",handler:a},{name:"loopComplete",handler:s},{name:"enterFrame",handler:l},{name:"segmentStart",handler:c},{name:"config_ready",handler:d},{name:"data_ready",handler:p},{name:"data_failed",handler:h},{name:"loaded_images",handler:u},{name:"DOMLoaded",handler:g},{name:"destroy",handler:m}].filter(function(e){return null!=e.handler});if(e.length){var t=e.map(function(e){var t;return null===(t=v.current)||void 0===t||t.addEventListener(e.name,e.handler),function(){var t;null===(t=v.current)||void 0===t||t.removeEventListener(e.name,e.handler)}});return function(){t.forEach(function(e){return e()})}}},[a,s,l,c,d,p,h,u,g,m]),{View:React.createElement("div",_objectSpread2({style:t,ref:x},f)),play:function(){var e;null===(e=v.current)||void 0===e||e.play()},stop:function(){var e;null===(e=v.current)||void 0===e||e.stop()},pause:function(){var e;null===(e=v.current)||void 0===e||e.pause()},setSpeed:function(e){var t;null===(t=v.current)||void 0===t||t.setSpeed(e)},goToAndStop:function(e,t){var r;null===(r=v.current)||void 0===r||r.goToAndStop(e,t)},goToAndPlay:function(e,t){var r;null===(r=v.current)||void 0===r||r.goToAndPlay(e,t)},setDirection:function(e){var t;null===(t=v.current)||void 0===t||t.setDirection(e)},playSegments:function(e,t){var r;null===(r=v.current)||void 0===r||r.playSegments(e,t)},setSubframe:function(e){var t;null===(t=v.current)||void 0===t||t.setSubframe(e)},getDuration:function(e){var t;return null===(t=v.current)||void 0===t?void 0:t.getDuration(e)},destroy:function(){var e;null===(e=v.current)||void 0===e||e.destroy(),v.current=void 0},animationContainerRef:x,animationLoaded:b,animationItem:v.current}};function getContainerVisibility(e){var t=e.getBoundingClientRect(),r=t.top,i=t.height;return(window.innerHeight-r)/(window.innerHeight+i)}function getContainerCursorPosition(e,t,r){var i=e.getBoundingClientRect(),o=i.top;return{x:(t-i.left)/i.width,y:(r-o)/i.height}}var useInitInteractivity=function(e){var t=e.wrapperRef,r=e.animationItem,i=e.mode,o=e.actions;useEffect(function(){var e=t.current;if(e&&r&&o.length){r.stop();var n,a,s,l,c;switch(i){case"scroll":return l=null,c=function(){var t=getContainerVisibility(e),i=o.find(function(e){var r=e.visibility;return r&&t>=r[0]&&t<=r[1]});if(i){if("seek"===i.type&&i.visibility&&2===i.frames.length){var n=i.frames[0]+Math.ceil((t-i.visibility[0])/(i.visibility[1]-i.visibility[0])*i.frames[1]);
|
|
31
31
|
//! goToAndStop must be relative to the start of the current segment
|
|
32
|
-
r.goToAndStop(n-r.firstFrame-1,!0)}"loop"===i.type&&(null===l||l!==i.frames||r.isPaused)&&(r.playSegments(i.frames,!0),l=i.frames),"play"===i.type&&r.isPaused&&(r.resetSegments(!0),r.play()),"stop"===i.type&&r.goToAndStop(i.frames[0]-r.firstFrame-1,!0)}},document.addEventListener("scroll",c),function(){document.removeEventListener("scroll",c)};case"cursor":return n=function(t,i){var n=t,a=i;if(-1!==n&&-1!==a){var s=getContainerCursorPosition(e,n,a);n=s.x,a=s.y}var l=o.find(function(e){var t=e.position;return t&&Array.isArray(t.x)&&Array.isArray(t.y)?n>=t.x[0]&&n<=t.x[1]&&a>=t.y[0]&&a<=t.y[1]:!(!t||Number.isNaN(t.x)||Number.isNaN(t.y))&&n===t.x&&a===t.y});if(l){if("seek"===l.type&&l.position&&Array.isArray(l.position.x)&&Array.isArray(l.position.y)&&2===l.frames.length){var c=(n-l.position.x[0])/(l.position.x[1]-l.position.x[0]),d=(a-l.position.y[0])/(l.position.y[1]-l.position.y[0]);r.playSegments(l.frames,!0),r.goToAndStop(Math.ceil((c+d)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&r.playSegments(l.frames,!0),"play"===l.type&&(r.isPaused&&r.resetSegments(!1),r.playSegments(l.frames)),"stop"===l.type&&r.goToAndStop(l.frames[0],!0)}},a=function(e){n(e.clientX,e.clientY)},s=function(){n(-1,-1)},e.addEventListener("mousemove",a),e.addEventListener("mouseout",s),function(){e.removeEventListener("mousemove",a),e.removeEventListener("mouseout",s)}}}},[i,r])},useLottieInteractivity=function(e){var t=e.actions,r=e.mode,i=e.lottieObj,o=i.animationItem,n=i.View,a=i.animationContainerRef;return useInitInteractivity({actions:t,animationItem:o,mode:r,wrapperRef:a}),n},_excluded=["style","interactivity"],Lottie=function(e){var t,r,i,o=e.style,n=e.interactivity,a=_objectWithoutProperties(e,_excluded),s=useLottie(a,o),l=s.View,c=s.play,d=s.stop,p=s.pause,h=s.setSpeed,u=s.goToAndStop,g=s.goToAndPlay,m=s.setDirection,f=s.playSegments,y=s.setSubframe,b=s.getDuration,C=s.destroy,v=s.animationContainerRef,x=s.animationLoaded,S=s.animationItem;return useEffect(function(){e.lottieRef&&(e.lottieRef.current={play:c,stop:d,pause:p,setSpeed:h,goToAndPlay:g,goToAndStop:u,setDirection:m,playSegments:f,setSubframe:y,getDuration:b,destroy:C,animationContainerRef:v,animationLoaded:x,animationItem:S})},[null===(t=e.lottieRef)||void 0===t?void 0:t.current]),useLottieInteractivity({lottieObj:{View:l,play:c,stop:d,pause:p,setSpeed:h,goToAndStop:u,goToAndPlay:g,setDirection:m,playSegments:f,setSubframe:y,getDuration:b,destroy:C,animationContainerRef:v,animationLoaded:x,animationItem:S},actions:null!==(r=null==n?void 0:n.actions)&&void 0!==r?r:[],mode:null!==(i=null==n?void 0:n.mode)&&void 0!==i?i:"scroll"})};function OnboardImage({node:e}){useLogRender("OnboardImage"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"OnboardImage",i=e.key??t,[o,n]=useState(null),a=useExtractViewStyle$1(e),s=e.attributes;return useEffect(()=>{s?.lottie&&fetch(s?.lottie).then(e=>e.json()).then(e=>n(e))},[s?.lottie]),s?.video_url?jsx("video",{"attribute-name":r,"attribute-key":i,autoPlay:!0,muted:!0,loop:!0,src:s?.video_url,style:a}):s?.lottie?jsx("div",o?{"attribute-name":r,"attribute-key":i,style:a,children:jsx(Lottie,{animationData:o})}:{"attribute-name":r,"attribute-key":i,style:a,children:"Loading..."}):jsx(Image$2,{node:{...e,type:"image",sourceType:r}})}var OnboardImage$1=React.memo(OnboardImage);function OnboardItem({node:e}){useLogRender("OnboardItem"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"OnboardItem",i=e.key??t,o=useExtractViewStyle$1(e);return jsx("div",{"attribute-name":r,"attribute-key":i,className:"embla__slide",style:o,children:e.children&&jsx(RenderNode$1,{node:e.children})})}var OnboardItem$1=React.memo(OnboardItem);function Text({node:e}){useLogRender("Text");const t=(e=useNode(e)).sourceType??e.type??"text",r=e.key,i=useRef(null),[o,n]=useState(null),{appConfig:a,previewMode:s,selectedKey:l}=useBuilderParams(),c=e.children,d=useExtractTextStyle$1(e),p=isNodeSelected({previewMode:!!s,current:l?{key:l}:void 0,node:e}),h=useLocalize({appConfig:a}),u=e.attributes?.translateCounter,g=useMemo(()=>{let e=h(c);const t=u??1;for(let r=1;r<t;r++)e=h(e);return e},[h,c,u]),m=e.attributes?.style,f=m?.adjustsFontSizeToFit??!1,y=m?.showEllipsis??!1;useLayoutEffect(()=>{if(!f)return void n(null);const e=i.current;if(!e)return;const t=()=>{const t=e.clientWidth,r=e.clientHeight,i=g?.length??0;if(!t||!r||!i)return void n(null);const o=Math.sqrt(t*r/i),a=Number.parseFloat(window.getComputedStyle(e).fontSize),s=Number.isFinite(a)?a:void 0,l=Math.max(8,s?Math.min(o,s):o);n(Number.isFinite(l)?l:null)};t();let r=null;return"undefined"!=typeof ResizeObserver?(r=new ResizeObserver(()=>t()),r.observe(e)):window.addEventListener("resize",t),()=>{r?.disconnect(),window.removeEventListener("resize",t)}},[f,g]);const b=useMergedStyle(useMergedStyle(d,useMemo(()=>{let e;return y&&(e={...e??{},overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),null!==o&&(e={...e??{},fontSize:`${o}px`}),e},[y,o])),p?SELECTED_OUTLINE_STYLE:void 0);return jsx("p",{ref:i,"attribute-name":t,"attribute-key":r,style:b,children:g})}var Text$1=React.memo(Text);function OnboardSubtitle({node:e}){return useLogRender("OnboardSubtitle"),e=useNode(e),jsx(Text$1,{node:e})}var OnboardSubtitle$1=React.memo(OnboardSubtitle);function OnboardTitle({node:e}){return useLogRender("OnboardTitle"),e=useNode(e),jsx(Text$1,{node:e})}var OnboardTitle$1=React.memo(OnboardTitle);function PaywallBackground({node:e}){return useLogRender("PaywallBackground"),jsx(BackgroundImage$1,{node:e})}var PaywallBackground$1=React.memo(PaywallBackground);function PaywallCloseButton({node:e}){useLogRender("PaywallCloseButton"),e=useNode(e);const{onClose:t,isBackAllowed:r}=usePaywallContext(),i=useId(),o=e.sourceType??e.type??"PaywallCloseButton",n=e.key??i,{previewMode:a,selectedKey:s}=useBuilderParams(),l=useExtractViewStyle$1(e),c=useExtractTextStyle$1(e),d=useMergedStyle(l,isNodeSelected({previewMode:!!a,current:s?{key:s}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);if(!r)return null;const p=e.attributes,h=p?.style,u=p?.iconType??"close",g=p?.size??c.fontSize??24,m=c.color??h?.color;return jsx("a",{"attribute-name":o,"attribute-key":n,href:"#",onClick:e=>{e.preventDefault(),t?.()},"aria-label":"Close",style:{...d,cursor:"pointer",textDecoration:"none"},children:jsx(Icon,{iconType:u,size:g,color:m,alt:""})})}var PaywallCloseButton$1=React.memo(PaywallCloseButton);function PaywallOptionButton({product:e,onPress:t,node:r}){const i=useId(),o=(e.productId??"").trim(),{previewMode:n,selectedKey:a}=useBuilderParams(),s=useMergedStyle(useExtractViewStyle$1(r),isNodeSelected({previewMode:!!n,current:a?{key:a}:void 0,node:r})?SELECTED_OUTLINE_STYLE:void 0),l=r.sourceType??r.type??"text",c=r.key??i;return jsx("div",{"attribute-name":l,"attribute-key":o?`${c}:${o}`:c,role:"button",tabIndex:0,onClick:()=>t(o),style:{...s,cursor:"pointer"},children:jsx(RenderNode$1,{node:r.children})})}function extractPrice(e){return e?e.replace(/[^0-9.]/g,""):""}function calculateDiscount(e,t){if(!t||!e)return"";const r=parseFloat(e),i=parseFloat(t);if(isNaN(r)||isNaN(i)||r<=0)return"";const o=Math.round((r-i)/r*100);return String(Math.max(0,o))}function calculatePricePerMonth(e,t){return isNaN(e)?"":"month"===t?e.toFixed(2):"year"===t?(e/12).toFixed(2):"week"===t?(52*e/12).toFixed(2):"day"===t?(365*e/12).toFixed(2):e.toFixed(2)}function calculatePricePerYear(e,t){return isNaN(e)?"":"year"===t?e.toFixed(2):"month"===t?(12*e).toFixed(2):"week"===t?(52*e).toFixed(2):"day"===t?(365*e).toFixed(2):e.toFixed(2)}const PERIOD_LOCALIZATION_KEYS={monthly:"base.builder.paywall.period.monthly",annual:"base.builder.paywall.period.annual",weekly:"base.builder.paywall.period.weekly",daily:"base.builder.paywall.period.daily",monthlyPromo:"base.builder.paywall.period.monthlyPromo",annualPromo:"base.builder.paywall.period.annualPromo"},PAYWALL_TEXT_KEYS={pricingDefault:"base.builder.paywall.pricing.default.text",pricingFreeTrial:"base.builder.paywall.pricing.freeTrial.text",pricingRegular:"base.builder.paywall.pricing.regular.text",promoDefault:"base.builder.paywall.promo.default.text",promoFreeTrial:"base.builder.paywall.promo.freeTrial.text",promoRegular:"base.builder.paywall.promo.regular.text"};function getPeriodLocalizationKey(e,t){switch(e){case"month":return t?PERIOD_LOCALIZATION_KEYS.monthlyPromo:PERIOD_LOCALIZATION_KEYS.monthly;case"year":return t?PERIOD_LOCALIZATION_KEYS.annualPromo:PERIOD_LOCALIZATION_KEYS.annual;case"week":return PERIOD_LOCALIZATION_KEYS.weekly;case"day":return PERIOD_LOCALIZATION_KEYS.daily;default:return PERIOD_LOCALIZATION_KEYS.monthly}}function parseBillingPeriod(e){const t=e.match(/P(\d+)([DWMY])/);if(!t||!t[1]||!t[2])return{value:1,unit:"month"};const r=parseInt(t[1],10),i={D:"day",W:"week",M:"month",Y:"year"}[t[2]];return i?{value:r,unit:i}:{value:1,unit:"month"}}function convertIOSPeriodUnit(e){if(!e)return"month";return{DAY:"day",WEEK:"week",MONTH:"month",YEAR:"year"}[e.toUpperCase()]||"month"}function noop(){}const iapLogger={error(e,t,r,i){console.error(`[iap] ${t}`,r)},warn(e,t,r,i){console.warn(`[iap] ${t}`,r)},info(e,t,r,i){console.info(`[iap] ${t}`,r)},debug:noop};function findOffer(e,t){return e.find(e=>e.id===t||e.basePlanIdAndroid===t)}function extractAndroidParams(e,t){try{const r=e.subscriptionOffers??[];let i=r[0];if(t&&r.length>0){const o=findOffer(r,t);o?i=o:iapLogger.error(["extractAndroidParams"],"Requested offer not found, using default",{productId:e.id||e.productId,requestedOfferId:t,availableOffers:r.map(e=>e.id)},{remote:!0})}if(!i)return iapLogger.warn(["extractAndroidParams"],"No offers found in product",{productId:e.id||e.productId}),getEmptyParams$1();const o=i.pricingPhasesAndroid?.pricingPhaseList??[];if(0===o.length)return iapLogger.warn(["extractAndroidParams"],"No pricing phases found",{productId:e.id||e.productId,offerId:i.id}),getEmptyParams$1();const n=o.find(e=>"0"===e.priceAmountMicros),a=o.find(e=>2===e.recurrenceMode&&"0"!==e.priceAmountMicros),s=o.find(e=>1===e.recurrenceMode)??o[o.length-1];if(!s)return iapLogger.error(["extractAndroidParams"],"No regular phase found",{productId:e.id||e.productId,pricingPhasesCount:o.length},{remote:!0}),getEmptyParams$1();const l=parseBillingPeriod(s.billingPeriod),c=`${l.value} ${l.unit}${l.value>1?"s":""}`,d=extractPrice(s.formattedPrice),p=s.priceCurrencyCode||"",h=s.formattedPrice||"";let u="",g="",m="",f="";if(a){u=extractPrice(a.formattedPrice);const e=a.billingCycleCount||0,t=parseBillingPeriod(a.billingPeriod),r=e*t.value;g=`${r} ${t.unit}${r>1?"s":""}`,m=String(e),f=t.unit}let y="false",b="",C="";if(n){y="true";const e=parseBillingPeriod(n.billingPeriod);b=String(e.value),C=e.unit}const v=calculateDiscount(d,u),x=parseFloat(d),S=calculatePricePerMonth(x,l.unit),w=calculatePricePerYear(x,l.unit);return{price:d,promoPrice:u,currency:p,localizedPrice:h,period:l.unit,periodValue:String(l.value),periodType:c,promoPeriod:g,promoCycles:m,promoPeriodUnit:f,hasTrial:y,trialPeriod:b,trialPeriodUnit:C,discountPercentage:v,pricePerMonth:S,pricePerYear:w}}catch(t){return iapLogger.error(["extractAndroidParams"],"Failed to extract Android params",{productId:e?.id||e?.productId,error:t instanceof Error?t.message:String(t)},{remote:!0}),getEmptyParams$1()}}function getEmptyParams$1(){return{price:"",promoPrice:"",currency:"",localizedPrice:"",period:"month",periodValue:"1",periodType:"1 month",promoPeriod:"",promoCycles:"",promoPeriodUnit:"",hasTrial:"false",trialPeriod:"",trialPeriodUnit:"",discountPercentage:"",pricePerMonth:"",pricePerYear:""}}function isFreeTrialIntro(e){return"free_trial"===e.type||0===parseFloat(e.price||e.priceIOS||"0")}function extractPromoCyclesAndPeriod(e,t){return{promoPeriod:`${e} ${t}${e>1?"s":""}`,promoCycles:String(e),promoPeriodUnit:t}}function extractIOSParams(e,t){try{const r=String(e.price||e.localizedPrice||"").replace(/[^0-9.]/g,""),i=e.currency||e.currencyCode||"",o=e.localizedPrice||"",n=convertIOSPeriodUnit(e.subscriptionPeriodUnitIOS||"MONTH"),a=String(e.subscriptionPeriodNumberIOS||1),s=`${a} ${n}${parseInt(a,10)>1?"s":""}`,l=e.introductoryPrice||e.introductoryPriceIOS,c=!!l,d=c&&isFreeTrialIntro(l);let p="false",h="",u="",g="",m="",f="",y="";if(d)p="true",h=String(l.subscriptionPeriodNumberIOS||l.numberOfPeriods||7),u=convertIOSPeriodUnit(l.subscriptionPeriodUnitIOS||l.subscriptionPeriod||"DAY");else if(c){g=String(l.price||l.priceIOS||"").replace(/[^0-9.]/g,"");const e=l.numberOfPeriods||1,t=extractPromoCyclesAndPeriod(e,convertIOSPeriodUnit(l.subscriptionPeriodUnitIOS||l.subscriptionPeriod||"MONTH"));m=t.promoPeriod,f=t.promoCycles,y=t.promoPeriodUnit}if(t&&e.discounts){const r=e.discounts.find(e=>e.identifier===t);if(r){g=String(r.price||"").replace(/[^0-9.]/g,"");const e=r.numberOfPeriods||1,t=extractPromoCyclesAndPeriod(e,convertIOSPeriodUnit(r.subscriptionPeriod||"MONTH"));m=t.promoPeriod,f=t.promoCycles,y=t.promoPeriodUnit}else iapLogger.error(["extractIOSParams"],"Requested offer not found in discounts",{productId:e.id||e.productId,requestedOfferId:t,availableDiscounts:e.discounts.map(e=>e.identifier)},{remote:!0})}const b=calculateDiscount(r,g),C=parseFloat(r),v=calculatePricePerMonth(C,n);return{price:r,promoPrice:g,currency:i,localizedPrice:o,period:n,periodValue:a,periodType:s,promoPeriod:m,promoCycles:f,promoPeriodUnit:y,hasTrial:p,trialPeriod:h,trialPeriodUnit:u,discountPercentage:b,pricePerMonth:v,pricePerYear:calculatePricePerYear(C,n)}}catch(t){return iapLogger.error(["extractIOSParams"],"Failed to extract iOS params",{productId:e?.id||e?.productId,error:t instanceof Error?t.message:String(t)},{remote:!0}),getEmptyParams()}}function getEmptyParams(){return{price:"",promoPrice:"",currency:"",localizedPrice:"",period:"month",periodValue:"1",periodType:"1 month",promoPeriod:"",promoCycles:"",promoPeriodUnit:"",hasTrial:"false",trialPeriod:"",trialPeriodUnit:"",discountPercentage:"",pricePerMonth:"",pricePerYear:""}}function buildPaywallLocalizationParams(e,t,r,i){const o=i??(e=>e),n="android"===t?extractAndroidParams(e,r):extractIOSParams(e,r),a=n.period||"month",s=!!n.promoPrice,l="true"===n.hasTrial,c=getPeriodLocalizationKey(a,!1),d=s?getPeriodLocalizationKey(a,!0):"",p=s?`${n.promoPrice} ${n.currency}`.trim():"",h=o(c),u=s?o(d):"",g=p||n.localizedPrice,m=u||h;let f,y;return s?(f=PAYWALL_TEXT_KEYS.pricingDefault,y=PAYWALL_TEXT_KEYS.promoDefault):l?(f=PAYWALL_TEXT_KEYS.pricingFreeTrial,y=PAYWALL_TEXT_KEYS.promoFreeTrial):(f=PAYWALL_TEXT_KEYS.pricingRegular,y=PAYWALL_TEXT_KEYS.promoRegular),{price:n.price,promoPrice:n.promoPrice,currency:n.currency,localizedPrice:n.localizedPrice,period:n.period,promoPeriod:n.promoPeriod,promoPeriodUnit:n.promoPeriodUnit,hasTrial:n.hasTrial,trialPeriod:n.trialPeriod,trialPeriodUnit:n.trialPeriodUnit,discountPercentage:n.discountPercentage,localizedPeriod:h,localizedPromoPeriod:u,localizedPromoPrice:p,localizedCalculatedPrice:g,localizedCalculatedPeriod:m,baseLocalizedPricingText:o(f),baseLocalizedPromoText:o(y),productTitle:String(e.title??""),productDescription:String(e.description??""),productCurreny:n.currency,productId:String(e.productId??""),productSelected:"true"}}function usePaywallLocalizationParams(e,t,r){return useMemo(()=>{if(!e||!r?.platform)return{};try{const i=r.builderProducts?.find(e=>e.store_package_id===t),o=i?.offer_id;return buildPaywallLocalizationParams(e,r.platform,o,r.localize)}catch(e){return console.error("[usePaywallLocalizationParams] Error:",e),{}}},[e,t,r])}function usePaywallOptionParamsFactory(){const{localizationParams:e,otherParams:t}=useParams(),r=useRenderStore(e=>e.device),i=useLocalize(),o="ios"===r.platform?"ios":"android";return useCallback((r,{isSelected:n})=>{const a=buildPaywallLocalizationParams(r,o,void 0,i);return{localizationParams:{...e,...a,productSelected:n?"true":"false"},otherParams:{...t,singleProductIsSelected:n}}},[e,t,o,i])}function parseNumberLike$1(e){if(null==e)return;if("number"==typeof e&&Number.isFinite(e))return e;if("string"!=typeof e)return;const t=e.trim();if(!t)return;const r=t.replace(",","."),i=Number.parseFloat(r);return Number.isFinite(i)?i:void 0}function compareProducts(e,t,r,i){const o=parseNumberLike$1(e.price),n=parseNumberLike$1(t.price);if(void 0!==o&&void 0!==n&&o!==n)return o-n;const a=(e.title??"").trim(),s=(t.title??"").trim();if(a&&s&&a!==s)return a.localeCompare(s);if(a&&!s)return-1;if(!a&&s)return 1;const l=(e.productId??"").trim(),c=(t.productId??"").trim();return l!==c?l.localeCompare(c):r-i}function PaywallOptions({node:e}){useLogRender("PaywallOptions"),e=useNode(e);const{mockProducts:t}=useBuilderParams(),{selectedProduct:r,setSelectedProductId:i}=usePaywallContext(),o=usePaywallOptionParamsFactory(),n=useMemo(()=>(Array.isArray(t)?t:[]).map((e,t)=>({p:e,idx:t})).sort((e,t)=>compareProducts(e.p,t.p,e.idx,t.idx)).map(({p:e})=>e),[t]);return jsx(Fragment,{children:n.map((t,n)=>{const a=t.productId||`${n}`,s=r?.productId===a,{localizationParams:l,otherParams:c}=o(t,{isSelected:s});return jsx(ParamsProvider,{localizationParams:l,otherParams:c,children:jsx(PaywallOptionButton,{node:e,product:t,selected:s,onPress:i})},a)})})}var PaywallOptions$1=React.memo(PaywallOptions);function LocalizationParamsProvider({params:e,children:t}){return jsx(ParamsProvider,{localizationParams:e,nestedLocalizationParams:{},children:t})}function useChangeDelayByPaywall(e,t){const r=useMemo(()=>e?.attributes?.delay?parseInt(String(e?.attributes?.delay),10):1e3,[e?.attributes?.delay]);useEffect(()=>{if(!r||r<=0)return void t(!0);const e=setTimeout(()=>{t(!0)},r);return()=>clearTimeout(e)},[r,t])}function useMockOSBackHandler(e){useEffect(()=>registerMockOSBackHandler(()=>e),[e])}function PaywallProvider({node:e}){useLogRender("PaywallProvider"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"PaywallProvider",i=e.key??t,{mockBenefits:o,mockProducts:n,onPaywallSubscribe:a,previewMode:s,selectedKey:l}=useBuilderParams(),c=useMockOSContext(),d=useMemo(()=>{const e=o&&"object"==typeof o&&!Array.isArray(o)?o:{},t=Object.entries(e).filter(([e])=>e.trim().length>0),r=Object.fromEntries(t.map(([e,t])=>[e.trim(),String(t)]));for(let e=0;e<t.length;e+=1){const[,i]=t[e],o=String(i);r[`benefit${e+1}`]=o}return r},[o]),p=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!s,current:l?{key:l}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),[h,u]=useState(""),[g,m]=useState(!1);useChangeDelayByPaywall(e,m),useMockOSBackHandler(g),useEffect(()=>{const e=Array.isArray(n)?n:[];if(0===e.length)return void(h&&u(""));const t=e.some(e=>e?.productId===h);h&&t||u(e[0]?.productId??"")},[n,h]);const f=useMemo(()=>{const e=Array.isArray(n)?n:[];return e.find(e=>e?.productId===h)??(e.length>0?e[0]:void 0)},[n,h]),y=useRenderStore(e=>e.device),b=useLocalize(),C="ios"===y.platform?"ios":"android",v=usePaywallLocalizationParams(f,h,{platform:C,localize:b});console.log("[PaywallProvider] extraction debug",{platform:C,selectedProductId:h,hasSubscriptionOffers:!!f?.subscriptionOffers?.length,subscriptionOffersCount:f?.subscriptionOffers?.length??0,detailedProductParams:v,selectedProduct:f});const x=useCallback(()=>{if(g&&c?.isEnabled){c.goBack()||c.navigation("launchscreen")}},[c,g]),S=useCallback(async e=>{if(a){const t=a(e),r=t instanceof Promise?await t:!0===t;return r&&c?.isEnabled&&c.goBack?.(),r}const t=e?.productId;if(c?.isEnabled&&t&&c.requestSubscriptionPurchase){const e=await c.requestSubscriptionPurchase(t);return e&&c.goBack?.(),e}return!1},[c,a]),w=useCallback(()=>{if(g&&c?.isEnabled){c.goBack()||c.navigation("launchscreen")}},[g,c]),_=useMemo(()=>({products:Array.isArray(n)?n:[],setSelectedProductId:u,selectedProduct:f,onClose:x,onSubscribe:S,onCounterDown:w,isBackAllowed:g}),[n,f,x,S,w,g]);return jsx("div",{"attribute-name":r,"attribute-key":i,style:p,children:jsx(PaywallContext.Provider,{value:_,children:jsx(LocalizationParamsProvider,{params:{...d,...v,platform:C},children:jsx(RenderNode$1,{node:e.children})})})})}var PaywallProvider$1=React.memo(PaywallProvider);function PaywallSubscribeButton({node:e}){useLogRender("PaywallSubscribeButton"),e=useNode(e);const{onSubscribe:t,selectedProduct:r}=usePaywallContext(),i=useId(),o=e.sourceType??e.type??"PaywallSubscribeButton",n=e.key??i,{previewMode:a,selectedKey:s,appConfig:l}=useBuilderParams(),c=useMergedStyle(useExtractTextStyle$1(e),isNodeSelected({previewMode:!!a,current:s?{key:s}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),d=useLocalize({appConfig:l}),p="string"==typeof e.children&&e.children.trim().length>0?e.children:"Subscribe";return jsx("a",{type:"button","attribute-name":o,"attribute-key":n,href:"#",onClick:e=>{e.preventDefault(),t?.(r)},style:{...c,cursor:"pointer"},children:d(p)})}var PaywallSubscribeButton$1=React.memo(PaywallSubscribeButton);function PriceTag({node:e}){useLogRender("PriceTag"),e=useNode(e);const t=useLocalizationParams(),r=!!t?.promoPrice;return(e.attributes?.hideIfItsNotDiscount??!1)&&!r?null:jsx(Text$1,{node:e})}var PriceTag$1=React.memo(PriceTag);function Pricing({node:e}){return useLogRender("Pricing"),e=useNode(e),jsx(Text$1,{node:e})}var Pricing$1=React.memo(Pricing);function Promo({node:e}){return useLogRender("Promo"),e=useNode(e),jsx(Text$1,{node:e})}var Promo$1=React.memo(Promo);function parseNumberLike(e){if(null==e)return;if("number"==typeof e&&Number.isFinite(e))return e;if("string"!=typeof e)return;const t=e.trim();if(!t)return;const r=t.replace(",","."),i=Number.parseFloat(r);return Number.isFinite(i)?i:void 0}function RadioButtonBase({selected:e,color:t="#A6A6A6",size:r=24}){const i=Math.round(.1*r),o=Math.round(.5*r),n=useContext(ParamsContext),{singleProductIsSelected:a}=n?.otherParams??{};return jsx("div",{style:{marginLeft:8,marginRight:16},children:jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",borderWidth:i,borderStyle:"solid",borderColor:t,width:r,height:r,borderRadius:o,boxSizing:"border-box",flex:"0 0 auto"},children:jsx("div",a??e?{style:{width:o,height:o,borderRadius:2*o,backgroundColor:t}}:{style:{width:r,height:r,borderRadius:o}})})})}function RadioButton({node:e}){useLogRender("RadioButton"),e=useNode(e);const t=useId(),r=e.type??"RadioButton",i=e.key??t,{previewMode:o,selectedKey:n}=useBuilderParams(),a=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!o,current:n?{key:n}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),s=e.attributes,l=Boolean(s?.selected),c=s?.color,d=parseNumberLike(s?.size);return jsx("div",{"attribute-name":r,"attribute-key":i,style:a,children:jsx(RadioButtonBase,{selected:l,color:c,size:d})})}var RadioButton$1=React.memo(RadioButton);function Separator({node:e}){useLogRender("Separator"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"Separator",i=e.key??t,{previewMode:o,selectedKey:n}=useBuilderParams(),a=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!o,current:n?{key:n}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);return jsx("div",{"attribute-name":r,"attribute-key":i,style:a})}var Separator$1=React.memo(Separator);function StatusBarColor({node:e}){useLogRender("StatusBarColor"),e=useNode(e);const{theme:t,projectColors:r}=useBuilderParams(),i=useRenderStore(e=>e.setStatusBarOverrideColor),o=getStyleBag(e.attributes)?.backgroundColor,n=parseColor(o,{projectColors:r,theme:t});return useEffect(()=>(n&&i(n),()=>{i(null)}),[n,i]),null}var StatusBarColor$1=React.memo(StatusBarColor);function View({node:e}){useLogRender("View"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"View",i=e.key??t,{previewMode:o,selectedKey:n}=useBuilderParams(),a=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!o,current:n?{key:n}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);return jsx("div",{"attribute-name":r,"attribute-key":i,style:a,children:e.children&&jsx(RenderNode$1,{node:e.children})})}var View$1=React.memo(View);function RenderNode({node:e}){if(isNodeNullOrUndefined(e))return null;if(isNodeString(e))return jsx(Text$1,{node:{children:e,type:"Text"}});if(isNodeArray(e))return jsx(Fragment,{children:e.map((e,t)=>jsx(RenderNode,{node:e},t))});const t="string"==typeof e?.type?e.type:"unknown",r=normalizeComponentType(t)??t,i={...e,type:r};switch(i.type){case"BIcon":return jsx(BIcon$1,{node:i});case"BackgroundImage":return jsx(BackgroundImage$1,{node:i});case"Button":return jsx(Button$1,{node:i});case"Carousel":return jsx(Carousel$1,{node:i});case"CarouselButtons":return jsx(CarouselButtons$1,{node:i});case"CarouselDots":return jsx(CarouselDots$1,{node:i});case"CarouselItem":return jsx(CarouselItem,{node:i});case"CarouselProvider":return jsx(CarouselProvider$1,{node:i});case"CountDown":return jsx(CountDown,{node:i});case"Image":return jsx(Image$2,{node:i});case"Main":return jsx(Main$1,{node:i});case"NavigationBarColor":return jsx(NavigationBarColor$1,{node:i});case"Onboard":return jsx(Onboard$1,{node:i});case"OnboardButton":return jsx(OnboardButton$1,{node:i});case"OnboardButtons":return jsx(OnboardButtons$1,{node:i});case"OnboardDot":return jsx(OnboardDot$1,{node:i});case"OnboardFooter":return jsx(OnboardFooter$1,{node:i});case"OnboardImage":return jsx(OnboardImage$1,{node:i});case"OnboardItem":return jsx(OnboardItem$1,{node:i});case"OnboardProvider":return jsx(OnboardProvider$1,{node:i});case"OnboardSubtitle":return jsx(OnboardSubtitle$1,{node:i});case"OnboardTitle":return jsx(OnboardTitle$1,{node:i});case"PaywallBackground":return jsx(PaywallBackground$1,{node:i});case"PaywallCloseButton":return jsx(PaywallCloseButton$1,{node:i});case"PaywallOptions":return jsx(PaywallOptions$1,{node:i});case"PaywallProvider":return jsx(PaywallProvider$1,{node:i});case"PaywallSubscribeButton":return jsx(PaywallSubscribeButton$1,{node:i});case"PriceTag":return jsx(PriceTag$1,{node:i});case"Pricing":return jsx(Pricing$1,{node:i});case"Promo":return jsx(Promo$1,{node:i});case"RadioButton":return jsx(RadioButton$1,{node:i});case"Separator":return jsx(Separator$1,{node:i});case"StatusBarColor":return jsx(StatusBarColor$1,{node:i});case"Text":return jsx(Text$1,{node:i});case"View":return jsx(View$1,{node:i});default:return other(t,e)}}var RenderNode$1=React.memo(RenderNode);const allcomponentNames=["BIcon","BackgroundImage","Button","Carousel","CarouselButtons","CarouselDots","CarouselItem","CarouselProvider","CountDown","Image","Main","NavigationBarColor","Onboard","OnboardButton","OnboardButtons","OnboardDot","OnboardFooter","OnboardImage","OnboardItem","OnboardProvider","OnboardSubtitle","OnboardTitle","PaywallBackground","PaywallCloseButton","PaywallOptions","PaywallProvider","PaywallSubscribeButton","PriceTag","Pricing","Promo","RadioButton","Separator","StatusBarColor","Text","View"];function findNodeByKeyNested(e,t){if(null==e)return null;if("string"==typeof e)return null;if(Array.isArray(e)){for(const r of e){const e=findNodeByKeyNested(r,t);if(e)return e}return null}const r=e;return r.key===t?r:r.children?findNodeByKeyNested(r.children,t):null}class RenderErrorBoundary extends React.Component{constructor(){super(...arguments),this.state={error:null,errorStack:void 0,componentStack:void 0,copied:!1,copyError:null},this.copyDetails=async()=>{const e=this.buildDetails();try{if("undefined"!=typeof navigator&&navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),this.setState({copied:!0,copyError:null}),void window.setTimeout(()=>this.setState({copied:!1}),900)}catch{}try{if("undefined"==typeof document)return void this.setState({copied:!1,copyError:"Copy failed"});const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly","true"),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();const r=document.execCommand("copy");if(document.body.removeChild(t),!r)return void this.setState({copied:!1,copyError:"Copy failed"});this.setState({copied:!0,copyError:null}),window.setTimeout(()=>this.setState({copied:!1}),900)}catch(e){this.setState({copied:!1,copyError:e instanceof Error?e.message:"Copy failed"})}},this.reset=()=>{this.setState({error:null,errorStack:void 0,componentStack:void 0,copied:!1,copyError:null})}}static getDerivedStateFromError(e){return{error:e,errorStack:e?.stack,copied:!1,copyError:null}}componentDidCatch(e,t){const r=t.componentStack??void 0;this.setState({error:e,errorStack:e?.stack,componentStack:r}),this.props.onError?.(e,r)}buildDetails(){const{error:e,errorStack:t,componentStack:r}=this.state;return[`Error: ${e?.message??""}`,"",t?`Stack:\n${t}`:"Stack: (missing)","",r?`React component stack:\n${r}`:"React component stack: (missing)"].join("\n")}render(){const{error:e,copied:t,copyError:r}=this.state;if(!e)return this.props.children;const i=this.buildDetails();return jsxs("div",{role:"alert",style:{padding:16,borderRadius:12,background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",color:"hsl(var(--card-foreground, var(--rb-card-foreground, 220.9 39.3% 11%)))",border:"1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)) / 0.9)"},children:[jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("div",{style:{fontWeight:700},children:"Preview crashed"}),this.props.subtitle&&jsxs("div",{style:{opacity:.8,fontSize:12},children:["(",this.props.subtitle,")"]}),jsxs("div",{style:{marginLeft:"auto",display:"flex",gap:8},children:[jsx("button",{type:"button",className:"editor-button",onClick:this.copyDetails,children:t?"Copied":"Copy details"}),jsx("button",{type:"button",className:"editor-button",onClick:this.reset,children:"Try again"})]})]}),r&&jsx("div",{style:{marginTop:8,color:"hsl(var(--destructive, var(--rb-destructive, 0 84.2% 60.2%)))",fontSize:12},children:r}),jsx("pre",{style:{marginTop:12,whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,lineHeight:1.4,background:"hsl(var(--muted, var(--rb-muted, 220 14.3% 95.9%)))",padding:12,borderRadius:10,overflow:"auto",maxHeight:360},children:i})]})}}function isNullish(e){return null==e}function RenderPage({data:e,name:t,onSelectNode:r,params:i}){useLogRender("RenderPage");const{previewMode:o,forceRender:n,setCurrent:a,appFont:s}=useRenderStore(e=>({previewMode:e.previewMode,forceRender:e.forceRender,setCurrent:e.setCurrent,appFont:e.appFont})),l=useRef(null),c=isNullish(e);return useEffect(()=>{if(!o)return;const t=l.current;if(!t)return;const i=t=>{const i=t.target;if(!i)return;if(i.closest(".embla__dot"))return;let o=i.closest("[attribute-key]");for(;o;){const t=o.getAttribute("attribute-key");if(t){const i=findNodeByKeyNested(e,t);if(i)return a(i),void r?.(i)}o=o.parentElement?.closest("[attribute-key]")??null}};return t.addEventListener("click",i),()=>{t.removeEventListener("click",i)}},[o,e,r,a,n]),jsx(RenderErrorBoundary,{subtitle:"caught by RenderPage",children:jsx(BuilderProvider,{params:i,children:jsx(DeviceMockFrame,{appName:t,children:jsxs("div",{className:"screen-preview",ref:l,style:{fontFamily:s?`"${s}"`:void 0},children:[isNullish(e)?null:jsx(RenderNode$1,{node:e}),c&&jsx("div",{className:"rb-empty-preview","aria-hidden":"true",children:jsxs("div",{className:"rb-empty-preview__card",children:[jsx("div",{className:"rb-empty-preview__title",children:"Empty screen"}),jsx("div",{className:"rb-empty-preview__hint",children:"Add a component to start"})]})})]})})})})}function copyNode(e){const{setCopiedNode:t}=useRenderStore.getState();t(e)}function isNodeDataLike(e){if("object"!=typeof e||null===e||Array.isArray(e))return!1;return"type"in e&&"children"in e}function normalizeKey(e){if("string"!=typeof e)return;const t=e.trim();return t.length>0?t:void 0}function collectNodeKeysInto(e,t){if(null==e)return;if("string"==typeof e)return;if(Array.isArray(e))return void e.forEach(e=>collectNodeKeysInto(e,t));if(!isNodeDataLike(e))return;const r=normalizeKey(e.key);r&&t.add(r),collectNodeKeysInto(e.children,t)}function collectNodeKeys(e){const t=new Set;return collectNodeKeysInto(e,t),t}function generateUniqueKey(e,t){let r="";do{r=generateRandomKeyForNode(e||"Node")}while(t.has(r));return r}function repairNodeKeys(e,t=new Set){if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let r=!1;const i=e.map(e=>{const i=repairNodeKeys(e,t);return i!==e&&(r=!0),i});return r?i:e}if(!isNodeDataLike(e))return e;const r=e,i=normalizeKey(r.key),o=!i||t.has(i)?generateUniqueKey(r.type,t):i;t.add(o);const n=r.children,a=repairNodeKeys(n,t);return o!==i||a!==n?{...r,key:o,children:a}:e}const platformIcons={android:getImage(TribeAssetName.Android),ios:getImage(TribeAssetName.Apple)};function DeviceButton({device:e,selectedDevice:t,onSelect:r}){const i=platformIcons[e.platform],o=e.aspect??(()=>{const t=e.height/e.width;return t>=2.05?"tall":t<=1.75?"wide":"regular"})();return jsxs("button",{type:"button",className:"editor-device-button"+(t===e?" editor-device-button--selected":""),onClick:()=>r(e),children:[e.name," ",jsx("br",{}),e.width,"×",e.height," (",o,")",i&&jsx("span",{children:jsx("img",{src:i,alt:"","aria-hidden":"true"})})]})}function Modal({onClose:e,ariaLabelledBy:t,children:r,className:i,contentClassName:o,closeOnOverlayClick:n=!0,closeOnEsc:a=!0}){useEffect(()=>{if(!a)return;if("undefined"==typeof window)return;const t=t=>{"Escape"===t.key&&e()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[a,e]);const s=jsxs("div",{className:"modal"+(i?` ${i}`:""),role:"dialog","aria-modal":"true","aria-labelledby":t,children:[jsx("div",{className:"modal__overlay",onClick:n?e:void 0}),jsx("div",{className:"modal__content"+(o?` ${o}`:""),role:"document",children:r})]});return"undefined"==typeof document?s:createPortal(s,document.body)}function DeviceSelectorModal({devices:e,selectedDevice:t,onSelect:r,onClose:i}){const o=e=>{r(e),i()};return jsxs(Modal,{onClose:i,ariaLabelledBy:"device-selector-title",contentClassName:"device-selector-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"device-selector-title",className:"modal__title",children:"Select a device"}),jsx("button",{type:"button",className:"editor-button","aria-label":"Close device selector",onClick:i,children:"Close"})]}),jsx("div",{className:"device-selector-modal__grid",role:"list",children:e.map(e=>jsx(DeviceButton,{device:e,selectedDevice:t,onSelect:o},e.name))})]})}var name$k="hello-world",version$k="1.1.2",type$k="other",data$k={type:"View",attributes:{scrollable:!0,description:"View element 1 in sample.",title:"View 1",styles:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:16,backgroundColor:"#F5F7FA"}},children:[{type:"Text",children:"hello-world",attributes:{description:"Text element 1 in sample.",title:"Text 1",styles:{color:"#111827",fontSize:24,fontWeight:"600"}}},{type:"Text",children:"Welcome to react-native-builder",attributes:{description:"Text element 2 in sample.",title:"Text 2",styles:{color:"#6B7280",fontSize:14,fontWeight:"400"}}}]},simple1={name:name$k,version:version$k,type:type$k,data:data$k},name$j="hello-world-2-advanced",version$j="1.1.2",type$j="other",data$j={type:"view",attributes:{scrollable:!0,description:"view element 1 in sample.",title:"view 1",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",gap:16,padding:16,backgroundColor:"#F3F4F6"}},children:[{type:"view",attributes:{description:"view element 2 in sample.",title:"view 2",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#111827",borderRadius:12}},children:[{type:"text",children:"Dashboard",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{color:"#FFFFFF",fontSize:20,fontWeight:"600"}}},{type:"view",attributes:{description:"view element 3 in sample.",title:"view 3",styles:{flexDirection:"row",gap:8}},children:[{type:"text",children:"Help",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{color:"#D1D5DB",fontSize:14}}},{type:"text",children:"Profile",attributes:{description:"text element 3 in sample.",title:"text 3",styles:{color:"#D1D5DB",fontSize:14}}}]}]},{type:"image",attributes:{src:"https://picsum.photos/720/320",description:"image element 1 in sample.",title:"image 1",styles:{width:358,height:160,borderRadius:12}},children:null},{type:"view",attributes:{description:"view element 4 in sample.",title:"view 4",styles:{flexDirection:"column",gap:8,padding:12,backgroundColor:"#FFFFFF",borderRadius:12}},children:[{type:"text",children:"Welcome back!",attributes:{description:"text element 4 in sample.",title:"text 4",styles:{color:"#111827",fontSize:18,fontWeight:"600"}}},{type:"text",children:"Here's what's new today.",attributes:{description:"text element 5 in sample.",title:"text 5",styles:{color:"#6B7280",fontSize:14}}}]},{type:"view",attributes:{description:"view element 5 in sample.",title:"view 5",styles:{flexDirection:"column",gap:12}},children:[{type:"view",attributes:{description:"view element 6 in sample.",title:"view 6",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8}},children:[{type:"text",children:"Task 1",attributes:{description:"text element 6 in sample.",title:"text 6",styles:{color:"#111827",fontSize:16,fontWeight:"500"}}},{type:"text",children:"Due today",attributes:{description:"text element 7 in sample.",title:"text 7",styles:{color:"#059669",fontSize:12,fontWeight:"600"}}}]},{type:"view",attributes:{description:"view element 7 in sample.",title:"view 7",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8}},children:[{type:"text",children:"Task 2",attributes:{description:"text element 8 in sample.",title:"text 8",styles:{color:"#111827",fontSize:16,fontWeight:"500"}}},{type:"text",children:"2 days left",attributes:{description:"text element 9 in sample.",title:"text 9",styles:{color:"#D97706",fontSize:12,fontWeight:"600"}}}]},{type:"view",attributes:{description:"view element 8 in sample.",title:"view 8",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8}},children:[{type:"text",children:"Task 3",attributes:{description:"text element 10 in sample.",title:"text 10",styles:{color:"#111827",fontSize:16,fontWeight:"500"}}},{type:"text",children:"Completed",attributes:{description:"text element 11 in sample.",title:"text 11",styles:{color:"#6B7280",fontSize:12,fontWeight:"600"}}}]}]},{type:"view",attributes:{description:"view element 9 in sample.",title:"view 9",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-around",padding:12,backgroundColor:"#111827",borderRadius:12}},children:[{type:"text",children:"Home",attributes:{description:"text element 12 in sample.",title:"text 12",styles:{color:"#FFFFFF",fontSize:14}}},{type:"text",children:"Search",attributes:{description:"text element 13 in sample.",title:"text 13",styles:{color:"#9CA3AF",fontSize:14}}},{type:"text",children:"Settings",attributes:{description:"text element 14 in sample.",title:"text 14",styles:{color:"#9CA3AF",fontSize:14}}}]}]},simple2={name:name$j,version:version$j,type:type$j,data:data$j},name$i="carousel-sample",version$i="1.1.2",type$i="other",data$i={type:"Main",isMain:!0,attributes:{styles:{backgroundColor:"#f8fafc",minHeight:"100vh",padding:"24px"}},children:{type:"carouselProvider",children:[{type:"carousel",attributes:{loop:!0,align:"center",dragFree:!0,description:"carousel element 1 in sample.",title:"carousel 1"},children:[{type:"carouselItem",attributes:{description:"carouselItem element 1 in sample.",title:"carouselItem 1",styles:{minWidth:0}},children:{type:"view",attributes:{description:"view element 1 in sample.",title:"view 1",styles:{padding:"22px",borderRadius:18,backgroundImage:"linear-gradient(135deg, #eef2ff 0%, #ffffff 55%, #ecfeff 100%)",boxShadow:"0 10px 30px rgba(15, 23, 42, 0.10)",gap:14,height:"100%"}},children:[{type:"image",attributes:{src:"https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",styles:{width:"auto",maxWidth:"100%",borderRadius:14}},key:"image-49ojfyhl4d7"},{type:"text",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{fontSize:28,fontWeight:"700",textAlign:"center",color:"#0f172a"}},children:"Welcome aboard",key:"text-3ougfj4mxnh"},{type:"text",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{fontSize:16,textAlign:"center",color:"#334155",paddingHorizontal:8}},children:"Swipe through a beautiful, validated carousel sample with images.",key:"text-2dol8grshke"}],key:"view-a8hfkdvfy7"},key:"carouselItem-5bw9x33s7ie"},{type:"carouselItem",attributes:{description:"carouselItem element 2 in sample.",title:"carouselItem 2",styles:{minWidth:0}},children:{type:"view",attributes:{description:"view element 2 in sample.",title:"view 2",styles:{padding:"22px",borderRadius:18,backgroundImage:"linear-gradient(135deg, #f0fdf4 0%, #ffffff 55%, #eff6ff 100%)",boxShadow:"0 10px 30px rgba(15, 23, 42, 0.10)",gap:14,height:"100%"}},children:[{type:"image",attributes:{src:"https://images.unsplash.com/photo-1553877522-43269d4ea984?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",styles:{width:"auto",maxWidth:"100%",borderRadius:14}},key:"image-riwntk91k9"},{type:"text",attributes:{description:"text element 3 in sample.",title:"text 3",styles:{fontSize:28,fontWeight:"700",textAlign:"center",color:"#0f172a"}},children:"Discover features",key:"text-hmuk6f7ml4v"},{type:"text",attributes:{description:"text element 4 in sample.",title:"text 4",styles:{fontSize:16,textAlign:"center",color:"#334155",paddingHorizontal:8}},children:"Dots + buttons are included, and slide sizing comes from the carousel CSS.",key:"text-dnhhoqiiri"}],key:"view-9hyw3wys30w"},key:"carouselItem-lyq2hr0qh8h"},{type:"carouselItem",attributes:{description:"carouselItem element 3 in sample.",title:"carouselItem 3",styles:{minWidth:0}},children:{type:"view",attributes:{description:"view element 3 in sample.",title:"view 3",styles:{padding:"22px",borderRadius:18,backgroundImage:"linear-gradient(135deg, #fff7ed 0%, #ffffff 55%, #f5f3ff 100%)",boxShadow:"0 10px 30px rgba(15, 23, 42, 0.10)",gap:14,height:"100%"}},children:[{type:"image",attributes:{src:"https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",styles:{width:"auto",maxWidth:"100%",borderRadius:14}},key:"image-j9ru3r8g7km"},{type:"text",attributes:{description:"text element 5 in sample.",title:"text 5",styles:{fontSize:28,fontWeight:"700",textAlign:"center",color:"#0f172a"}},children:"Get started",key:"text-01u3fwwtkd8p"},{type:"text",attributes:{description:"text element 6 in sample.",title:"text 6",styles:{fontSize:16,textAlign:"center",color:"#334155",paddingHorizontal:8}},children:"This sample stays within validation rules (no string flex shorthand).",key:"text-w8rwg9y1hj"}],key:"view-tsjfbzn8kdj"},key:"carouselItem-6r53yswjyee"}],key:"carousel-2qa4gn0ms32"},{type:"view",attributes:{title:"Carousel Controls",description:"carousel controls view element in sample.",styles:{flex:1,gap:24,alignItems:"center",paddingTop:32}},children:[{type:"carouselDots",attributes:{dotType:"expanding_dot"},key:"carouselDots-r5ji67uoxxg"},{type:"view",attributes:{title:"Nav Buttons",description:"navigation buttons wrapper",styles:{flexDirection:"row",gap:12,alignItems:"center",justifyContent:"center"}},children:[{type:"carouselButtons",attributes:{buttonType:["previous_button"],styles:{backgroundColor:"#6366f1",borderRadius:12,padding:"12px 24px",minWidth:100}},key:"carouselButtons-prev"},{type:"carouselButtons",attributes:{buttonType:["next_button"],styles:{backgroundColor:"#8b5cf6",borderRadius:12,padding:"12px 24px",minWidth:100}},key:"carouselButtons-next"}],key:"view-nav-buttons"}],key:"view-controls-wrapper"}],attributes:{description:"carouselProvider element 1 in sample.",title:"carouselProvider 1",styles:{backgroundColor:"#ffffff",borderRadius:24,padding:"32px",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.08)",maxWidth:"600px",margin:"0 auto"}},key:"carouselProvider-152n4dkqvam"},key:"Main-u1cavjag9sr"},carouselSample={name:name$i,version:version$i,type:type$i,data:data$i},name$h="unvalidated-builder1",version$h="1.1.2",type$h="other",data$h={type:"view",attributes:{foo:1,scrollable:!0,description:"view element 1 in sample.",title:"view 1",styles:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:24,backgroundColor:"#F5F7FA"}},children:[{type:"text",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{fontSize:22,fontWeight:"700",color:"#111827",textAlign:"center"}},children:"Intentionally unvalidated sample"},{type:"text",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{fontSize:14,color:"#6B7280",textAlign:"center",paddingHorizontal:8}},children:"This project should fail validation (unknown attribute: foo). In the UI, choose “Continue without validation” to load it anyway."}]},unvalidatedBuilder1={name:name$h,version:version$h,type:type$h,data:data$h},name$g="unvalidated-crash1",version$g="1.1.2",type$g="other",data$g={type:"OnboardFooter",attributes:{textLocalizationKey:123,description:"OnboardFooter element 1 in sample.",title:"OnboardFooter 1",styles:{paddingHorizontal:24,paddingVertical:16}},children:null},unvalidatedCrash1={name:name$g,version:version$g,type:type$g,data:data$g},name$f="unvalidated-crashcomponent1",version$f="1.1.2",type$f="other",data$f={type:"CrashComponent",attributes:{reason:"Intentional crash for GUI testing",note:"This component is not in the Add Component modal; it only exists via JSON.",description:"CrashComponent element 1 in sample.",title:"CrashComponent 1"},children:null},unvalidatedCrashComponent1={name:name$f,version:version$f,type:type$f,data:data$f},name$e="unmigrated-builder1",version$e="1.0.0",type$e="other",data$e={type:"view",attributes:{scrollable:!0,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:24,backgroundColor:"#F5F7FA",description:"view element 1 in sample.",title:"view 1"},children:[{type:"text",attributes:{fontSize:22,fontWeight:"700",color:"#111827",textAlign:"center",description:"text element 1 in sample.",title:"text 1"},children:"Intentionally unmigrated sample"},{type:"text",attributes:{fontSize:14,color:"#6B7280",textAlign:"center",paddingHorizontal:8,description:"text element 2 in sample.",title:"text 2"},children:"This project has version 1.0.0 so the Migration page should appear. Click “Migrate now” to normalize legacy flat style keys into attributes.style and move misplaced props out of style (combined 1.1.2)."}]},unmigratedBuilder1={name:name$e,version:version$e,type:type$e,data:data$e},name$d="unmigrated-builder-1.1.1",version$d="1.1.1",type$d="other",data$d={type:"view",attributes:{scrollable:!0,description:"view element 1 in sample.",title:"view 1",styles:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:24,backgroundColor:"#F5F7FA"}},children:[{type:"text",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{fontSize:22,fontWeight:"700",color:"#111827",textAlign:"center"}},children:"Intentionally unmigrated sample (for combined 1.1.2)"},{type:"text",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{fontSize:14,color:"#6B7280",textAlign:"center",paddingHorizontal:8}},children:"This project has version 1.1.1 so the Migration page should appear. Click “Migrate now” to move component props and non-style flags out of attributes.style (combined 1.1.2)."},{type:"view",attributes:{description:"view element 2 in sample.",title:"view 2",styles:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:12,marginTop:16}},children:[{type:"BIcon",attributes:{description:"BIcon element 1 in sample.",title:"BIcon 1",styles:{iconType:"check",strokeWidth:3,color:"#22c55e",fontSize:"18"}},children:null},{type:"image",attributes:{src:"https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=80",width:48,height:48,description:"image element 1 in sample.",title:"image 1",styles:{resizeMode:"contain",borderRadius:12}},children:null}]}]},unmigratedBuilder1_1_1={name:name$d,version:version$d,type:type$d,data:data$d},name$c="Simple Paywall",version$c="1.1.2",type$c="paywall",data$c={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall ana sağlayıcısı. (#1)",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",title:"Paywall Background",attributes:{src:"https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",description:"Paywall arka planı. (#1)",title:"Paywall Background"},children:null},{type:"View",title:"Paywall Inner",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:12,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#2)",title:"Benefits",styles:{flexDirection:"column",gap:0,marginTop:"4%"}},children:[{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#3)",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"İkon öğesi. (#1)",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#1)",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#4)",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"İkon öğesi. (#2)",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#2)",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#5)",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"İkon öğesi. (#3)",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#3)",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Abonelik seçenekleri alanı. (#1)",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Seçim satırı öğesi. (#1)",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#4)",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription"},{type:"View",attributes:{title:"Price Column",styles:{flexDirection:"column",flex:1,alignItems:"flex-end"}},children:[{type:"PriceTag",attributes:{title:"Promo Price",styles:{textAlign:"right",fontWeight:"700"}},children:"@localizedCalculatedPrice"},{type:"PriceTag",attributes:{title:"Original Price",hideIfItsNotDiscount:!0,styles:{textAlign:"right",textDecorationLine:"line-through",fontSize:"12@fs",fontWeight:"400",color:"#999999"}},children:"@localizedPrice"}]},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"İkon öğesi. (#4)",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"View",attributes:{description:"Subscription butonu kapsayıcısı. (#1)",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",gap:8,paddingBottom:"50px"}},children:[{type:"Pricing",attributes:{description:"Pricing breakdown for promo/trial.",title:"Pricing Detail"},children:"@baseLocalizedPricingText"},{type:"Text",attributes:{description:"Trial detayı.",title:"Trial Full",styles:{textAlign:"center",fontSize:12,color:"rgba(255,255,255,0.6)"}},children:"@trialPeriod days free, then @price/@period"},{type:"PaywallSubscribeButton",children:"Subscribe",attributes:{description:"Abonelik onay butonu. (#1)",title:"Subscribe"}},{type:"Promo",attributes:{description:"Discount badge / promo text.",title:"Promo Badge"},children:"@baseLocalizedPromoText"}]}]}]}]},paywall1={name:name$c,version:version$c,type:type$c,data:data$c},name$b="Paywall With Counter",version$b="1.1.2",type$b="paywall",data$b={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for Paywall 2.",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1482192596544-9eb780fc7f66?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",description:"Paywall background.",title:"Paywall Background"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"}},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"Text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"Text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"}},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe Now",attributes:{description:"Subscription confirm button.",title:"Subscribe"}}]}]}]}]},paywall2={name:name$b,version:version$b,type:type$b,data:data$b},name$a="Paywall Back Offer",version$a="1.1.2",type$a="paywall",data$a={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for Back Offer.",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1470770903676-69b98201ea1c?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"}},children:"Back Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"}},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"}},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe Now",attributes:{description:"Subscription confirm button.",title:"Subscribe"}}]}]}]}]},paywallBackOffer={name:name$a,version:version$a,type:type$a,data:data$a},name$9="Paywall Notification Offer",version$9="1.1.2",type$9="paywall",data$9={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for Notification Offer.",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"}},children:"Notification Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"}},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"}},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe Now",attributes:{description:"Subscription confirm button.",title:"Subscribe"}}]}]}]}]},paywallNotificationOffer={name:name$9,version:version$9,type:type$9,data:data$9},name$8="Paywall App Open Offer",version$8="1.1.2",type$8="paywall",data$8={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for App Open Offer.",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"}},children:"App Open Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"}},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"}},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe Now",attributes:{description:"Subscription confirm button.",title:"Subscribe"}}]}]}]}]},paywallAppOpenOffer={name:name$8,version:version$8,type:type$8,data:data$8},name$7="Paywall App Delete Offer",version$7="1.1.2",type$7="paywall",data$7={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for App Delete Offer.",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1496307042754-b4aa456c4a2d?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"}},children:"App Delete Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"}},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"}},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe Now",attributes:{description:"Subscription confirm button.",title:"Subscribe"}}]}]}]}]},paywallAppDeleteOffer={name:name$7,version:version$7,type:type$7,data:data$7},name$6="vpn-onboard-1",version$6="1.1.2",type$6="onboard",appConfig$2={localication:{ar:{"onboard.title.one-page":"أمّن اتصالك","onboard.title.two-page":"وصول إلى المحتوى حول العالم","onboard.title.three-page":"سرعة واعتمادية","onboard.title.four-page":"إشعارات وحماية دائمة","onboard.subtitle.one-page":"قم بتشفير حركة المرور وحماية خصوصيتك على شبكات Wi‑Fi العامة.","onboard.subtitle.two-page":"اتصل بخوادم عالية السرعة في بلدان متعددة بضغطة واحدة.","onboard.subtitle.three-page":"يتصل التطبيق تلقائياً بأفضل خادم لسرعة وثبات أعلى.","onboard.subtitle.four-page":"فعّل الإشعارات لمعرفة حالة الاتصال والحصول على نصائح الأمان.","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة، فإنك توافق على","view.onboarding.btnPrivacy":"سياسة الخصوصية","view.onboarding.btnTerms":"شروط الخدمة"}}},data$6={type:"Main",isMain:!0,key:"c92tR8J5wbTb3fav",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.one-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/6c89e0da17a2d6fe2997e97a2b8a00a1.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.two-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/497a627b30ab4a0daaafa3d648a26b07.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.three-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/6e2bc370d38695f6845007fd302034c2.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.four-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/b6e978fe3362e857212163486c22cc7c.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard1={name:name$6,version:version$6,type:type$6,appConfig:appConfig$2,data:data$6},name$5="vpn-onboard-2",version$5="1.1.2",type$5="onboard",appConfig$1={localication:{ar:{"onboard.title.one-page":" العربية","onboard.title.two-page":" العربية","onboard.title.three-page":" العربية","onboard.title.four-page":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.four-page":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}}},data$5={type:"Main",isMain:!0,key:"ckcw0WXRY8sNR2SF",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.one-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/0c65cbe8e0c2e1242146e15dfd50a486.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.two-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/e8bbdde825cd23bdc44a9b2b32af22dc.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.three-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/3f312b38faf844746250cd54f27f91da.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.four-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/f4db2a32a43239c3bbbe742cb0f18b61.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",animation:"line-animation",animation_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",animation:"simple-animation",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"light",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard2={name:name$5,version:version$5,type:type$5,appConfig:appConfig$1,data:data$5},name$4="vpn-onboard-3",version$4="1.1.2",type$4="onboard",appConfig={localication:{ar:{"onboard.title.one-page":" العربية","onboard.title.one-page2":" العربية","onboard.title.two-page":" العربية","onboard.title.two-page2":" العربية","onboard.title.three-page":" العربية","onboard.title.three-page2":" العربية","onboard.title.four-page":" العربية","onboard.title.four-page2":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.one-page2":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.two-page2":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.three-page2":" العربية","onboard.subtitle.four-page":" العربية","onboard.subtitle.four-page2":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}}},data$4={type:"Main",isMain:!0,key:"ckcw0WXRY8sNR2SF",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.one-page2"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/c68cca84580d6920c883c220e57346c0.jpg",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.one-page2"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.two-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.three-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.three-page2"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.four-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.four-page2"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"light",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard3={name:name$4,version:version$4,type:type$4,appConfig:appConfig,data:data$4},name$3="vpn-onboard-4",version$3="1.1.2",type$3="onboard",data$3={type:"Main",isMain:!0,key:"c92tR8J5wbTb3fav",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.one-page2"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/aadf6191a8f1091831647b3a01e1a1aa.jpg",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.one-page2"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.two-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.two-page2"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.three-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.three-page2"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.four-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.four-page2"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard4={name:name$3,version:version$3,type:type$3,data:data$3},name$2="vpn-onboard-5",version$2="1.1.2",type$2="onboard",data$2={type:"Main",isMain:!0,key:"cJVVSS7q9Qe1trnb",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/d237d6cde8bc9126cee7b47e30cd19f0.png",resizeMode:"contain",lottie:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/lottie/0be045f9fe44c790a4525a1a6bc4b837.json",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.one-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/820dc32b8252555058e7014a7fd1652f.png",resizeMode:"contain",video_url:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/video/440346112d02e65be3767c39b96cd7c0.mp4",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.two-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/fbb8677cd23cba79eef0ebef181e3b57.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.three-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/18cdd5cc478389df8ff362f95b7173ea.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.five-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.five-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}},{type:"OnboardItem",key:"app_onboard-page6",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/3c1225f83f5a5c934926fab3cb0e65d5.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#5)",title:"OnboardTitle 5",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.six-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#5)",title:"OnboardSubtitle 5",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.six-page"}],attributes:{description:"Onboarding sayfası. (#5)",title:"OnboardItem 5"}},{type:"OnboardItem",key:"app_onboard-page5",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ff07e162b2a63d38f07909e87848d46f.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#6)",title:"OnboardTitle 6",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.four-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#6)",title:"OnboardSubtitle 6",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#6)",title:"OnboardItem 6"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.LINE",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.LINE",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.LINE",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.five-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.LINE",events:[{type:"Navigate",navigate_to:null,targetIndex:4}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.five-page",button_text_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_TEXT",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"GDPR"},{type:"Navigate",navigate_to:null,targetIndex:4}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:4,description:"Sayfa buton grubu. (#5)",title:"OnboardButtons 5",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.five-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.LINE",events:[{type:"Navigate",navigate_to:null,targetIndex:5}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.five-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:5}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:5,description:"Sayfa buton grubu. (#6)",title:"OnboardButtons 6",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"subscriptions"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"all",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard5={name:name$2,version:version$2,type:type$2,data:data$2},name$1="vpn-onboard-6",version$1="1.1.2",type$1="onboard",data$1={type:"Main",isMain:!0,key:"cJVVSS7q9Qe1trnb",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/9cb1d668b3724655f93a91e5eee771c5.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.one-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/f8d0c64bf89cc5f2f14126d0544ba174.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.two-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ad823809885c1a2a8e4632039f35a94e.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.three-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ede1705c51f3434ae9053ed5f29bf5dd.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.four-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.TEXT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.TEXT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.TEXT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"subscriptions"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard6={name:name$1,version:version$1,type:type$1,data:data$1},name="vpn-onboard-7",version="1.1.2",type="onboard",data={type:"Main",isMain:!0,key:"c92tR8J5wbTb3fav",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null,key:"StatusBarColor-sxj19suwkrn"},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null,key:"NavigationBarColor-rhzn570dc5o"},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40,fontSize:"28@fs"}},children:"onboard.title.one-page",key:"OnboardTitle-5t0p86nj13m"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/6c89e0da17a2d6fe2997e97a2b8a00a1.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center",paddingTop:"30@vs"}},children:"onboard.subtitle.one-page",key:"OnboardSubtitle-0max8wno7l5b"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40,fontSize:"28@fs"}},children:"onboard.title.two-page",key:"OnboardTitle-ne9iihu925k"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/497a627b30ab4a0daaafa3d648a26b07.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center",paddingTop:"30@vs"}},children:"onboard.subtitle.two-page",key:"OnboardSubtitle-jq9469r7c2"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40,fontSize:"28@fs"}},children:"onboard.title.three-page",key:"OnboardTitle-hczvlbg7gqj"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/6e2bc370d38695f6845007fd302034c2.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center",paddingTop:"30@vs"}},children:"onboard.subtitle.three-page",key:"OnboardSubtitle-rufjwid9yug"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40,fontSize:"28@fs"}},children:"onboard.title.four-page",key:"OnboardTitle-f2ekfc0wcbl"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/b6e978fe3362e857212163486c22cc7c.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center",paddingTop:"30@vs"}},children:"onboard.subtitle.four-page",key:"OnboardSubtitle-qkw2jn84xem"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}},key:"Onboard-dg1zmwdawmg"},{type:"OnboardDot",attributes:{dotType:"expanding_dot",inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12,dot_thickness:"10@s"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0,paddingBottom:"5@s"}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}],key:"OnboardButtons-92fw2wn62h"},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0,paddingBottom:"5@s"}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}],key:"OnboardButtons-mu7r8a5qx4"},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0,paddingBottom:"5@s"}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}],key:"OnboardButtons-rulfu6b5w5"},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0,paddingBottom:"5@s"}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1}}}],key:"OnboardButtons-yru5emc0zcs"},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT",fontSize:"12@fs"}}}],key:"View-c5vb7865vto"}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"},key:"OnboardProvider-pvc5b6o5gu"}]},vpnOnboard7={name:name,version:version,type:type,data:data};function normalizeSample(e){return{...e,appConfig:{...defaultAppConfig,...e.appConfig}}}function getSamples(){return[simple1,simple2,carouselSample,unvalidatedBuilder1,unvalidatedCrash1,unvalidatedCrashComponent1,unmigratedBuilder1,unmigratedBuilder1_1_1,paywall1,paywall2,paywallBackOffer,paywallNotificationOffer,paywallAppOpenOffer,paywallAppDeleteOffer,vpnOnboard1,vpnOnboard2,vpnOnboard3,vpnOnboard4,vpnOnboard5,vpnOnboard6,vpnOnboard7].map(normalizeSample)}const devices=getDevices();function EditorHeader({onSaveProject:e,onRestoreProject:t,current:r,editorData:i,setEditorData:o}){useLogRender("EditorHeader");const[n,a]=useState(!1),[s,l]=useState(!1),c=useRef(null),d=useRenderStore(e=>e.copiedNode),{device:p,setDevice:h,setCurrent:u,setAppConfig:g,setProjectColors:m}=useRenderStore(e=>({device:e.device,setDevice:e.setDevice,setCurrent:e.setCurrent,setAppConfig:e.setAppConfig,setProjectColors:e.setProjectColors})),f=useMemo(()=>{const e=e=>"paywall"===e?0:"onboard"===e?1:2;return getSamples().slice().sort((t,r)=>{const i=e(t.type)-e(r.type);return 0!==i?i:t.name.localeCompare(r.name)})},[]),b=useMemo(()=>`editor-actions-menu-${Math.random().toString(36).slice(2,9)}`,[]);function C(e,t,r){if(e===t)return r;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let i=!1;const o=e.map(e=>{const o=C(e,t,r);return o!==e&&(i=!0),o});return i?o:e}const i=e;if("children"in i){const e=i.children,o=Array.isArray(e)?e.map(e=>C(e,t,r)):C(e,t,r);if(o!==e)return{...i,children:o}}return e}useEffect(()=>{if(!s)return;const e=e=>{const t=c.current;t&&(e.target instanceof Element&&t.contains(e.target)||l(!1))},t=e=>{"Escape"===e.key&&l(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("keydown",t)}},[s]);const v=e=>JSON.parse(JSON.stringify(e)),x=e=>{if(!r||!i||!o)return;const t=v(e.data),n=collectNodeKeys(i),a=e=>(e=>"object"==typeof e&&null!==e&&!Array.isArray(e))(e)&&"type"in e&&"children"in e;if(!a(r))return void y.error("Select a component node to paste into");const s=r.children,l=(e=>{if(a(e)){if("main"===e.type||!0===e.isMain){const t=e.children;return t?Array.isArray(t)?t:[t]:[]}}return[e]})(t);if(0===l.length)return void y.error("Sample has no children to paste");const c=l.map(e=>repairNodeKeys(e,n));let d;d=s?Array.isArray(s)?[...s,...c]:[s,...c]:1===c.length?c[0]:c;const p={...r,children:d},h=C(i,r,p);o(h),u(p),y.success(`Pasted from "${e.name}"`)},S=()=>l(!1),w=!!r,_=!!(r&&i&&o&&d);return jsxs("div",{className:"editor-header",role:"region","aria-label":"Editor utility header",children:[jsxs("div",{className:"editor-header__devices",children:[devices.slice(0,5).map(e=>jsx(DeviceButton,{selectedDevice:p,onSelect:h,device:e},e.name)),jsx("button",{className:"editor-device-button","aria-label":"More devices",onClick:()=>a(!0),children:"More devices"})]}),jsx("div",{className:"editor-header__actions",children:jsxs("div",{className:"editor-actions-dropdown",ref:c,children:[jsxs("button",{className:"editor-button editor-actions-dropdown__trigger","aria-label":"Open actions menu","aria-haspopup":"menu","aria-expanded":s,"aria-controls":b,onClick:()=>l(e=>!e),children:["Actions",jsx("span",{className:"editor-actions-dropdown__caret","aria-hidden":"true",children:"▾"})]}),s&&jsxs("ul",{id:b,className:"editor-actions-dropdown__menu",role:"menu","aria-label":"Editor actions",children:[jsxs("li",{role:"none",className:"editor-actions-dropdown__submenu-root",children:[jsxs("button",{className:"editor-actions-dropdown__item",role:"menuitem","aria-haspopup":"menu","aria-label":"Replace from samples",onClick:e=>e.preventDefault(),children:["Replace from samples",jsx("span",{className:"editor-actions-dropdown__submenu-caret","aria-hidden":"true",children:"◂"})]}),jsx("ul",{className:"editor-actions-dropdown__submenu",role:"menu","aria-label":"Replace from sample",children:f.map(e=>jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item editor-actions-dropdown__item--compact",role:"menuitem",onClick:()=>{(e=>{if(!o)return;const t=repairNodeKeys(v(e.data));o(t),u(t),e.appConfig&&g(e.appConfig),m(e.projectColors),y.success(`Replaced with "${e.name}"`)})(e),S()},children:e.name})},`replace-${e.name}`))})]}),jsxs("li",{role:"none",className:"editor-actions-dropdown__submenu-root",children:[jsxs("button",{className:"editor-actions-dropdown__item",role:"menuitem","aria-haspopup":"menu","aria-label":"Paste from samples",onClick:e=>e.preventDefault(),disabled:!r,title:r?void 0:"Select a node first",children:["Paste from samples",jsx("span",{className:"editor-actions-dropdown__submenu-caret","aria-hidden":"true",children:"◂"})]}),jsx("ul",{className:"editor-actions-dropdown__submenu",role:"menu","aria-label":"Paste from sample",children:f.map(e=>jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item editor-actions-dropdown__item--compact",role:"menuitem",onClick:()=>{x(e),S()},disabled:!r,children:e.name})},`paste-${e.name}`))})]}),jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item editor-save-button",role:"menuitem",onClick:()=>{e?.(),S()},disabled:!e,children:"Save"})}),t&&jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item editor-save-previewconfig-button",role:"menuitem",onClick:()=>{try{t?.(),y.info("Restored")}catch{y.error("Restore failed")}finally{S()}},children:"Restore"})}),jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item",role:"menuitem",onClick:()=>{w&&(r&©Node(r),y.info("Copied"),S())},disabled:!w,children:"Copy"})}),jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item",role:"menuitem",onClick:()=>{_&&((()=>{if(!r||!i||!o)return;if(!d)return;const e=repairNodeKeys(JSON.parse(JSON.stringify(d)),collectNodeKeys(i)),t=C(i,r,e);useRenderStore.setState({copiedNode:null}),o(t),u(e)})(),y.success("Pasted"),S())},disabled:!_,children:"Paste"})})]})]})}),n&&jsx(DeviceSelectorModal,{devices:devices,selectedDevice:p,onSelect:h,onClose:()=>a(!1)})]})}const SAVED_COLORS_KEY="attributes-editor-saved-colors",formatTokenLabel$1=e=>e.split(/[_-]/g).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" "),mapTokensToOptions=(e,t)=>{if(!e)return[];const r=t?.groupKey??"group";return Object.entries(e).filter(([,e])=>"string"==typeof e&&e.trim().length>0).map(([e,i])=>{const o=i.trim(),n=t?.tokenLabelPrefix?`${t.tokenLabelPrefix}.${e}`:void 0;return{id:`${r}-${e}`,label:formatTokenLabel$1(e),value:o,tokenLabel:n}})},readSavedColors=()=>{if("undefined"==typeof window)return[];try{const e=window.localStorage.getItem(SAVED_COLORS_KEY);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(e=>"string"==typeof e).map(e=>e.trim().toLowerCase()).filter(Boolean):[]}catch{return[]}},persistSavedColors=e=>{if("undefined"!=typeof window)try{window.localStorage.setItem(SAVED_COLORS_KEY,JSON.stringify(e))}catch{}},STATIC_PREFIX="STATIC_COLORS.",THEME_PREFIX="THEME_COLORS.",resolveProjectColorValue=(e,t)=>{if(!e||"string"!=typeof e||!t)return;const r=e.trim();if(r){if(r.startsWith(STATIC_PREFIX)){const e=r.slice(STATIC_PREFIX.length),i=t.STATIC_COLORS?.[e];return"string"==typeof i&&i.trim()?i.trim():void 0}if(r.startsWith(THEME_PREFIX)){const e=r.slice(THEME_PREFIX.length);if(!e)return;const i=e.split(".");if(1===i.length){const e=i[0],r=t.THEME_COLORS;if(!r)return;for(const t of Object.values(r)){const r=t?.[e];if("string"==typeof r&&r.trim())return r.trim()}return}const[o,...n]=i,a=n.join(".");if(!o||!a)return;const s=t.THEME_COLORS?.[o],l=s?.[a];return"string"==typeof l&&l.trim()?l.trim():void 0}}};function ColorModal({value:e,projectColors:t,onSelect:r,onClose:i,onClear:o}){const[n,a]=useState(()=>readSavedColors()),[s,l]=useState(!0),c=useRef(null),d=useId(),p=useId(),h=useMemo(()=>resolveProjectColorValue(e,t)??e,[e,t]),u=useMemo(()=>{if(!t)return[];const e=[],r=mapTokensToOptions(t.STATIC_COLORS,{groupKey:"static",tokenLabelPrefix:"STATIC_COLORS"});r.length&&e.push({title:"Static colors",options:r,emptyMessage:"No static colors defined."});const i=t.THEME_COLORS??{};return Object.entries(i).forEach(([t,r])=>{const i=mapTokensToOptions(r,{groupKey:`theme-${t||"default"}`,tokenLabelPrefix:"THEME_COLORS"});if(!i.length)return;const o=t?.trim()?formatTokenLabel$1(t):"Theme";e.push({title:`Theme: ${o}`,options:i,emptyMessage:`No colors defined for ${o}.`})}),e},[t]),g=useMemo(()=>n.map((e,t)=>({id:`saved-${t}-${e}`,label:e,value:e})),[n]),m=e=>{const t=e?.trim().toLowerCase();t&&(a(e=>{if(e.includes(t))return e;const r=[...e,t];return persistSavedColors(r),r}),r(t),i())},f=()=>{const e=c.current,t=e?e.showPicker:void 0;if(e&&"function"==typeof t){try{e.focus({preventScroll:!0})}catch{}t.call(e)}else(()=>{if("undefined"==typeof document)return;const e=document.createElement("input");e.type="color",e.value=h?.toString()||"#000000",e.style.position="fixed",e.style.left="-1000px",e.style.top="0",e.style.width="40px",e.style.height="40px",e.style.opacity="0";const t=()=>{e.removeEventListener("change",r),e.removeEventListener("input",r),e.removeEventListener("blur",t),e.remove()},r=()=>{m(e.value),t()};e.addEventListener("change",r),e.addEventListener("input",r),e.addEventListener("blur",t),document.body.appendChild(e);try{e.focus({preventScroll:!0})}catch{}requestAnimationFrame(()=>e.click())})()},y=e=>{m(e.target.value),e.target.value="#000000"},b=e=>{const t=s&&e.tokenLabel?e.tokenLabel:e.value;r(t),i()};return jsxs(Modal,{onClose:i,ariaLabelledBy:"color-picker-title",contentClassName:"color-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"color-picker-title",className:"modal__title",children:"Pick a color"}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxs("div",{className:"color-modal__selected",children:[jsxs("div",{className:"color-modal__selected-info",children:[jsx("label",{htmlFor:p,role:"button","aria-label":"Open color picker",tabIndex:0,title:"Pick a color",className:"color-modal__selected-preview",style:{background:h??"transparent"},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f())}}),jsxs("div",{children:[jsx("p",{className:"color-modal__selected-label",children:"Selected color"}),jsx("p",{className:"color-modal__selected-value",children:e??"None"})]})]}),e?jsx("button",{type:"button",className:"color-modal__link-button",onClick:o,children:"Clear"}):null]}),jsxs("div",{className:"color-modal__toggle",children:[jsxs("label",{htmlFor:d,className:"color-modal__toggle-label",children:[jsx("input",{id:d,type:"checkbox",className:"color-modal__toggle-input",checked:s,onChange:e=>l(e.target.checked)}),"Use color names"]}),jsx("p",{className:"color-modal__toggle-description",children:"Output tokens like STATIC_COLORS.PRIMARY instead of raw values."})]}),u.length?u.map(t=>jsx(ColorSection,{title:t.title,options:t.options,emptyMessage:t.emptyMessage,activeValue:e,onSelect:b},t.title)):jsx(ColorSection,{title:"Project colors",options:[],emptyMessage:"No project colors detected yet.",activeValue:e,onSelect:b}),jsx(ColorSection,{title:"Saved colors",options:g,emptyMessage:"Add colors you use often for quick access.",action:jsxs("span",{className:"color-modal__link-button color-modal__add-color",children:["Add color",jsx("input",{type:"color",className:"color-modal__add-color-input",onChange:y,defaultValue:"#000000","aria-label":"Add color"})]}),activeValue:e,onSelect:b}),jsx("input",{ref:c,id:p,type:"color",className:"color-modal__input",onChange:y,defaultValue:"#000000",tabIndex:-1})]})}function ColorSection({title:e,options:t,emptyMessage:r,action:i,activeValue:o,onSelect:n}){return jsxs("section",{className:"color-section",children:[jsxs("div",{className:"color-section__header",children:[jsx("p",{className:"color-section__title",children:e}),i]}),t.length?jsx("div",{className:"color-section__swatches",children:t.map(e=>jsx(ColorSwatch,{option:e,isActive:e.tokenLabel&&e.tokenLabel===o||e.value===o,onSelect:()=>n(e)},e.id))}):jsx("p",{className:"color-section__empty",children:r??"No colors available."})]})}function ColorSwatch({option:e,isActive:t,onSelect:r}){const i="#ffffff"===e.value?.trim().toLowerCase()||"#fff"===e.value?.trim().toLowerCase();return jsxs("button",{type:"button",onClick:r,className:"color-modal__swatch"+(t?" color-modal__swatch--active":""),children:[jsx("span",{"aria-hidden":!0,className:"color-modal__swatch-preview"+(i?" color-modal__swatch-preview--light":""),style:{background:e.value??"transparent"}}),jsx("span",{className:"color-modal__swatch-label",children:e.label??e.value}),jsx("span",{className:"color-modal__swatch-value",children:e.tokenLabel?`${e.tokenLabel} - ${e.value}`:e.value})]})}const Checkbox=React.forwardRef(({label:e,helperText:t,className:r,inputClassName:i,onChange:o,id:n,disabled:a,...s},l)=>{const c=useId(),d=n??c,p=t?`${d}-helper`:void 0,h=["builder-checkbox",a?"builder-checkbox--disabled":void 0,r].filter(Boolean).join(" "),u=["builder-checkbox__native",i].filter(Boolean).join(" ");return jsxs("div",{className:h,children:[jsxs("label",{htmlFor:d,className:"builder-checkbox__label",children:[jsx("input",{...s,ref:l,id:d,type:"checkbox",className:u,onChange:e=>{o?.(e.target.checked,e)},disabled:a,"aria-describedby":p}),jsx("span",{className:"builder-checkbox__control","aria-hidden":"true"}),e?jsx("span",{className:"builder-checkbox__text",children:e}):null]}),t?jsx("span",{id:p,className:"builder-checkbox__helper",children:t}):null]})});function LayoutPreviewPicker({mode:e,options:t,value:r,onChange:i,layoutContext:o,viewAttributes:n}){if(!t.length)return null;const a="string"==typeof r?r:o?.[e];return jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6,paddingBottom:2},children:t.map(t=>{const r=a===t;return jsxs("button",{type:"button",onClick:()=>i(t),style:{borderRadius:8,padding:5,width:110,flex:"0 0 auto",border:r?"2px solid #222":"1px solid #d5d5d5",background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",textAlign:"left",display:"flex",flexDirection:"column",gap:3,cursor:"pointer",boxShadow:r?"0 2px 4px rgba(0,0,0,0.08)":"none"},children:[jsx(LayoutPreview,{mode:e,option:t,isActive:r,layoutContext:o,viewAttributes:n}),jsx("span",{style:{fontWeight:600,fontSize:11},children:formatLayoutLabel(t)})]},t)})})}function LayoutPreview({mode:e,option:t,isActive:r,layoutContext:i,viewAttributes:o}){const n=resolvePreviewContext(e,t,i),a=n.flexDirection?.startsWith("column"),s=o?.style?.backgroundColor??(r?"hsl(var(--muted, var(--rb-muted, 220 14.3% 95.9%)) / 0.55)":"hsl(var(--muted, var(--rb-muted, 220 14.3% 95.9%)))"),l=parseNumeric(o?.style?.gap)??3,c=parseNumeric(o?.style?.borderRadius)??4,d="stretch"===n.alignItems?a?{width:"100%"}:{height:"100%"}:void 0;return jsx("div",{style:{borderRadius:c,border:"1px dashed rgba(0,0,0,0.2)",padding:5,background:s},children:jsx("div",{style:{display:"flex",flexDirection:n.flexDirection??"row",justifyContent:n.justifyContent??"flex-start",alignItems:n.alignItems??"stretch",gap:l,width:"100%",minHeight:a?52:40,transition:"all 0.2s ease"},children:Array.from({length:3}).map((t,r)=>jsx("span",{style:{width:a?22:10,height:10,borderRadius:2.5,background:"#f7a500",border:"1px solid rgba(0,0,0,0.1)",flex:"justifyContent"===e?"0 0 auto":void 0,...d??{}}},r))})})}function resolvePreviewContext(e,t,r){const i={flexDirection:r?.flexDirection??"row",alignItems:r?.alignItems??"center",justifyContent:r?.justifyContent??"flex-start"};switch(e){case"flexDirection":return{flexDirection:t,alignItems:i.alignItems,justifyContent:i.justifyContent};case"alignItems":return{flexDirection:i.flexDirection,alignItems:t,justifyContent:i.justifyContent};case"justifyContent":return{flexDirection:i.flexDirection,alignItems:i.alignItems,justifyContent:t};default:return i}}function parseNumeric(e){if(null==e)return;if("number"==typeof e)return e;const t=Number.parseFloat(e);return Number.isNaN(t)?void 0:t}function formatLayoutLabel(e){return e.replace(/[-_]/g," ").replace(/\s+/g," ").replace(/^\w|\s\w/g,e=>e.toUpperCase())}function toPreferredScale(e){if("vs"===e||"s"===e||"f"===e||"%"===e)return e;if("string"!=typeof e)return;const t=e.trim().toLowerCase();return"vs"===t||"s"===t||"f"===t||"%"===t?t:void 0}function parseSizeValue(e){const t={amount:"",unit:""};if("number"==typeof e&&Number.isFinite(e))return{amount:String(e),unit:""};if("string"!=typeof e)return t;const r=e.trim();if(!r)return t;if(r.endsWith("%"))return{amount:r.slice(0,-1),unit:"%"};const i=r.toLowerCase();return i.endsWith("@vs")?{amount:r.slice(0,-3),unit:"vs"}:i.endsWith("vs")?{amount:r.slice(0,-2),unit:"vs"}:i.endsWith("@fs")?{amount:r.slice(0,-3),unit:"f"}:i.endsWith("@f")||i.endsWith("fs")?{amount:r.slice(0,-2),unit:"f"}:i.endsWith("f")?{amount:r.slice(0,-1),unit:"f"}:i.endsWith("@s")?{amount:r.slice(0,-2),unit:"s"}:i.endsWith("s")?{amount:r.slice(0,-1),unit:"s"}:i.endsWith("px")?{amount:r.slice(0,-2),unit:""}:{amount:r,unit:""}}function composeSizeValue(e,t){const r=e.trim();if("%"===t)return`${r}%`;if(""===t){const e=Number(r);return Number.isFinite(e)?e:r}return"f"===t?`${r}@fs`:`${r}@${t}`}function normalizePreferredScale(e,t){const r=t.trim().toLowerCase(),i=r.includes("height")||r.includes("top")||r.includes("vertical")?"vs":"s";return e??i}function SizeField({value:e,onChange:t,preferredScale:r,fieldName:i}){const o=useMemo(()=>parseSizeValue(e),[e]),n=useMemo(()=>normalizePreferredScale(r,i),[r,i]),[a,s]=useState(o.amount),[l,c]=useState(()=>o.unit&&o.unit!==n?o.unit:"auto");useEffect(()=>{s(o.amount);const e=o.unit&&o.unit!==n?o.unit:"auto";c(e)},[o.amount,o.unit,n]);const d=useCallback(e=>"auto"===e?n:e,[n]),p=useCallback((e,r)=>{const i=e.trim();t(i?composeSizeValue(i,d(r)):void 0)},[t,d]),h=[{value:"auto",label:"auto"},...[n,...["vs","s","f","%"].filter(e=>e!==n)].map(e=>({value:e,label:e===n?`${e} (preferred)`:e}))];return jsxs("div",{className:"attributes-editor__size-field",children:[jsx("input",{type:"number",className:"input attributes-editor__size-field-input",value:a,onChange:e=>{const r=e.target.value;s(r),r.trim()?p(r,l):t(void 0)}}),jsx("select",{className:"input attributes-editor__size-field-select",value:l,onChange:e=>{const t=e.target.value;c(t),a.trim()&&p(a,t)},children:h.map(e=>jsx("option",{value:e.value,children:e.label},e.value))})]})}Checkbox.displayName="Checkbox";const BOOLEAN_ALIASES=new Set(["bool","boolean"]);function isBooleanFieldType(e){if(Array.isArray(e))return!1;if("string"!=typeof e)return!1;const t=e.trim().toLowerCase();return BOOLEAN_ALIASES.has(t)}const layoutFieldNames=["flexDirection","alignItems","justifyContent"];function isLayoutField(e){return layoutFieldNames.includes(e)}function Field({name:e,type:t,value:r,onChange:i,componentType:o,projectColors:n,layoutContext:a,viewAttributes:s,label:l,preferredScale:c}){if(Array.isArray(t)){if(isLayoutField(e)){const o=t.filter(e=>"string"==typeof e&&e.length>0);return jsx(LayoutPreviewPicker,{mode:e,options:o,value:"string"==typeof r?r:void 0,onChange:i,layoutContext:a,viewAttributes:s})}return jsxs("select",{value:r??"",onChange:e=>i(e.target.value),className:"input",children:[jsx("option",{value:"",children:"(none)"}),t.map(e=>jsx("option",{value:e,children:e},e))]})}const d="string"==typeof t?getArrayItemType(t):null;if(d){const t=Array.isArray(r)?r:[];if(isPrimitiveType(d)){const r=(r,o)=>{switch(d){case"number":return jsx("input",{type:"number",value:r??"",onChange:e=>{const r=[...t];r[o]=""===e.target.value?void 0:Number(e.target.value),i(r)},className:"input",style:{flex:1}});case"boolean":case"bool":return jsx(Checkbox,{checked:Boolean(r),onChange:e=>{const r=[...t];r[o]=e,i(r)},name:`${e}-${o}`});case"string":case"description":return jsx("input",{type:"text",value:r??"",onChange:e=>{const r=[...t];r[o]=""===e.target.value?void 0:e.target.value,i(r)},className:"input",style:{flex:1}});case"title":return jsx("input",{type:"text",value:r??"",maxLength:20,onChange:e=>{const r=[...t];r[o]=""===e.target.value?void 0:e.target.value,i(r)},className:"input",style:{flex:1}});case"color":return jsx(ColorPickerButton,{value:"string"==typeof r?r:void 0,onChange:e=>{const r=[...t];r[o]=e,i(r)},projectColors:n});default:return jsx("p",{children:"---not-implemented----"})}};return jsxs("div",{style:{display:"grid",gap:8},children:[t.map((e,o)=>jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[r(e,o),jsx("button",{type:"button",onClick:()=>{const e=t.filter((e,t)=>t!==o);i(e.length?e:void 0)},children:"remove"})]},o)),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const e=[...t,"boolean"!==d&&("number"===d?0:"")];i(e)},children:"add"})})]})}const l=getTypeSchema(o,d)??{};return jsxs("div",{style:{display:"grid",gap:8},children:[t.map((e,r)=>{const c=e??{};return jsxs("div",{style:{border:"1px solid #ddd",borderRadius:6,padding:8},children:[jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:Object.entries(l).map(([e,l])=>isBooleanFieldType(l)?jsx("div",{style:{gridColumn:"1 / -1"},children:jsx(Field,{name:e,type:l,value:c?.[e],onChange:o=>{const n=[...t],a={...c??{},[e]:o};n[r]=a,i(n)},componentType:o,projectColors:n,layoutContext:a,viewAttributes:s,label:e})},e):jsxs(React.Fragment,{children:[jsx("div",{style:{alignSelf:"center"},children:e}),jsx(Field,{name:e,type:l,value:c?.[e],onChange:o=>{const n=[...t],a={...c??{},[e]:o};n[r]=a,i(n)},componentType:o,projectColors:n,layoutContext:a,viewAttributes:s})]},e))}),jsxs("div",{style:{marginTop:8,display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[jsxs("div",{style:{display:"flex",gap:4},children:[jsx("button",{type:"button",onClick:e=>{if(e.stopPropagation(),r<=0)return;const o=[...t],n=o[r-1];o[r-1]=o[r],o[r]=n,i(o)},disabled:r<=0,"aria-label":"Move up",children:"↑"}),jsx("button",{type:"button",onClick:e=>{if(e.stopPropagation(),r>=t.length-1)return;const o=[...t],n=o[r+1];o[r+1]=o[r],o[r]=n,i(o)},disabled:r>=t.length-1,"aria-label":"Move down",children:"↓"})]}),jsx("button",{type:"button",onClick:e=>{e.stopPropagation();const o=t.filter((e,t)=>t!==r);i(o.length?o:void 0)},children:"remove"})]})]},r)}),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const e=[...t,{}];i(e)},children:"add"})})]})}if("string"==typeof t&&!isPrimitiveType(t)){const e=getTypeSchema(o,t);if(e){const t=r??{};return jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:Object.entries(e).map(([e,r])=>isBooleanFieldType(r)?jsx("div",{style:{gridColumn:"1 / -1"},children:jsx(Field,{name:e,type:r,value:t?.[e],onChange:r=>{const o={...t??{},[e]:r};i(o)},componentType:o,projectColors:n,layoutContext:a,viewAttributes:s,label:e})},e):jsxs(React.Fragment,{children:[jsx("div",{style:{alignSelf:"center"},children:e}),jsx(Field,{name:e,type:r,value:t?.[e],onChange:r=>{const o={...t??{},[e]:r};i(o)},componentType:o,projectColors:n,layoutContext:a,viewAttributes:s})]},e))})}}if("string[]"===t){const e=Array.isArray(r)?r:[];return jsxs("div",{style:{display:"grid",gap:8},children:[e.map((t,r)=>jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("input",{type:"text",value:t??"",onChange:t=>{const o=[...e];o[r]=t.target.value,i(o)},className:"input",style:{flex:1}}),jsx("button",{type:"button",onClick:()=>{const t=e.filter((e,t)=>t!==r);i(t.length?t:void 0)},children:"remove"})]},r)),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const t=[...e,""];i(t)},children:"add"})})]})}if("string"!=typeof t)return jsx("p",{children:"---not-implemented----"});switch(t){case"size":return jsx(SizeField,{value:r,onChange:i,preferredScale:c,fieldName:e});case"fontWeight":{const e=normalizeFontWeight(r);return jsxs("select",{value:e??"",onChange:e=>i(e.target.value||void 0),className:"input",children:[jsx("option",{value:"",children:"(none)"}),FONT_WEIGHT_OPTIONS.map(e=>jsx("option",{value:e,children:e},e))]})}case"number":return jsx("input",{type:"number",value:r??"",onChange:e=>i(""===e.target.value?void 0:Number(e.target.value)),className:"input"});case"boolean":case"bool":return jsx(Checkbox,{label:l??e,checked:Boolean(r),onChange:e=>i(e),name:e});case"string":case"description":return jsx("input",{type:"text",value:r??"",onChange:e=>i(""===e.target.value?void 0:e.target.value),className:"input"});case"title":return jsx("input",{type:"text",value:r??"",maxLength:20,onChange:e=>i(""===e.target.value?void 0:e.target.value),className:"input"});case"color":return jsx(ColorPickerButton,{value:"string"==typeof r?r:void 0,onChange:e=>i(e),projectColors:n});default:return jsx("p",{children:"---not-implemented----"})}}function ColorPickerButton({value:e,onChange:t,projectColors:r}){const[i,o]=useState(!1),n="string"==typeof e?e:void 0,a=useMemo(()=>resolveProjectColorValue(n,r)??n,[n,r]);return jsxs(Fragment,{children:[jsxs("button",{type:"button",onClick:()=>o(!0),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,borderRadius:6,border:"1px solid #ddd",padding:"8px 10px",background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",cursor:"pointer"},children:[jsx("span",{"aria-hidden":!0,style:{width:32,height:32,borderRadius:6,border:"1px solid rgba(0,0,0,0.1)",background:a??"transparent"}}),jsx("span",{style:{flex:1,textAlign:"left",fontWeight:500},children:n??"Select color"}),jsx("span",{style:{fontSize:12,color:"#666"},children:"Open"})]}),i?jsx(ColorModal,{value:n,projectColors:r,onSelect:e=>{t(e),o(!1)},onClose:()=>o(!1),onClear:()=>{t(void 0),o(!1)}}):null]})}function FieldInfoTooltip({description:e,children:t}){const[r,i]=useState(!1);if(!e||!e.trim())return jsx(Fragment,{children:t});const o=["field-info-tooltip__bubble",r?"field-info-tooltip__bubble--visible":""].filter(Boolean).join(" "),n=()=>i(!0),a=()=>i(!1);return jsxs("div",{className:"field-info-tooltip",children:[t,jsxs("button",{className:"field-info-tooltip__trigger",onMouseEnter:n,onMouseLeave:a,onFocus:n,onBlur:a,type:"button",children:["Show info",jsx("span",{className:o,role:"tooltip","aria-hidden":!r,children:e})]})]})}const FIELD_SLOT_MATCHERS={top:/(^|[-_])(top)$/i,bottom:/(^|[-_])(bottom)$/i,left:/(^|[-_])(left)$/i,right:/(^|[-_])(right)$/i};function SpecialCategorySection({category:e,entries:t,attributeMeta:r,getAttributeValue:i,onAttributeChange:o,componentType:n,projectColors:a,layoutContext:s,viewAttributes:l,meta:c}){const[d,p]=useState(!1),h=c?.label&&c.label.trim().length>0?c.label:e&&e.length>0?e.charAt(0).toUpperCase()+e.slice(1):"Special",u=c?.description,g="padding"===e||"margin"===e||"offset"===e,m=g,f=e=>{if(!m)return;const t=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase();return Object.keys(FIELD_SLOT_MATCHERS).find(e=>FIELD_SLOT_MATCHERS[e].test(t))},y=t.filter(e=>!f(e.name)),b=g&&y.length>0;return jsxs("section",{className:"special-category-section",children:[jsxs("div",{className:"special-category-section__header",children:[jsx("p",{className:"special-category-section__title",children:h}),b?jsx("button",{type:"button",onClick:()=>p(e=>!e),className:"special-category-section__toggle","data-active":d,children:d?"Show less":"Show more"}):null]}),u?jsx("p",{className:"special-category-section__description",children:u}):null,(()=>{if(!t.length)return jsx("p",{className:"special-category-section__placeholder",children:"-- not defined --"});if(!g)return(()=>{if(!t.length)return jsx("p",{className:"special-category-section__placeholder",children:"-- not defined --"});const e=["special-category-section__fields",m?"special-category-section__fields--box":""].filter(Boolean).join(" ");return jsx("div",{className:e,children:t.map(({name:e,type:t})=>{const c=r?.[e]?.label??e,d=r?.[e]?.description,p=toPreferredScale(r?.[e]?.preferedScale),h=i(e),u=isBooleanFieldType(t),g=f(e),m=["attributes-editor__field-wrapper","special-category-section__field",u?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:d,children:jsxs("div",{className:m,"data-field-slot":g,children:[u?null:jsx("p",{className:"attributes-editor__field-label",children:c}),jsx(Field,{name:e,type:t,value:h,onChange:t=>o(e,t),componentType:n,projectColors:a,layoutContext:s,viewAttributes:l,label:u?c:void 0,preferredScale:p})]})},e)})})})();const e=t.filter(e=>f(e.name)).sort((e,t)=>{const r=["top","left","right","bottom"],i=f(e.name),o=f(t.name);return(i?r.indexOf(i):999)-(o?r.indexOf(o):999)}),c=t.filter(e=>!f(e.name));if(0===e.length)return jsx("p",{className:"special-category-section__placeholder",children:"-- not defined --"});const p=jsx("div",{className:"special-category-section__fields special-category-section__fields--box",children:e.map(({name:e,type:t})=>{const c=r?.[e]?.label??e,d=r?.[e]?.description,p=toPreferredScale(r?.[e]?.preferedScale),h=i(e),u=isBooleanFieldType(t),g=f(e),m=["attributes-editor__field-wrapper","special-category-section__field",u?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:d,children:jsxs("div",{className:m,"data-field-slot":g,children:[u?null:jsx("p",{className:"attributes-editor__field-label",children:c}),jsx(Field,{name:e,type:t,value:h,onChange:t=>o(e,t),componentType:n,projectColors:a,layoutContext:s,viewAttributes:l,label:u?c:void 0,preferredScale:p})]})},e)})}),h=d&&c.length>0?jsx("div",{className:"special-category-section__fields",children:c.map(({name:e,type:t})=>{const c=r?.[e]?.label??e,d=r?.[e]?.description,p=toPreferredScale(r?.[e]?.preferedScale),h=i(e),u=isBooleanFieldType(t),g=["attributes-editor__field-wrapper","special-category-section__field",u?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:d,children:jsxs("div",{className:g,children:[u?null:jsx("p",{className:"attributes-editor__field-label",children:c}),jsx(Field,{name:e,type:t,value:h,onChange:t=>o(e,t),componentType:n,projectColors:a,layoutContext:s,viewAttributes:l,label:u?c:void 0,preferredScale:p})]})},e)})}):null;return jsxs(Fragment,{children:[p,h]})})()]})}const FALLBACK_PARENT="all",EXCLUDE_PREFIX="!=";function normalizeDesiredParents(e){return Array.isArray(e)&&0!==e.length?e:[FALLBACK_PARENT]}function matchesDesiredChildToken(e,t){return e.startsWith("=")||e.startsWith(">")?e.slice(1)===t:e===t}function filterOptionsByDesiredChildren(e,t){if(!Array.isArray(t)||0===t.length)return e;const r=t.map(e=>e.trim()).filter(e=>e.length>0);return 0===r.length?e:e.filter(({type:e})=>{let t=!1,i=!1;for(const o of r)if(o.startsWith(EXCLUDE_PREFIX)){if(e===o.slice(EXCLUDE_PREFIX.length))return!1}else o!==FALLBACK_PARENT&&(t=!0,matchesDesiredChildToken(o,e)&&(i=!0));return!t||i})}function formatTokenLabel(e){return"all"===e?"Anywhere":"root"===e?"Root only":e.startsWith("!=")?`Not under ${e.slice(2)}`:e.startsWith("=")?`Direct child of ${e.slice(1)}`:e.startsWith(">")?`Inside ${e.slice(1)}`:e}function tokenMatchesParent(e,t){return"all"===e||(t&&0!==t.length?!e.startsWith("!=")&&(e.startsWith("=")||e.startsWith(">")?e.slice(1)===t:e===t):"root"===e)}function buildGroups(e,t){const r=new Map;return e.forEach(e=>{e.desiredParents.forEach(i=>{if(t&&!t(i,e))return;const o=r.get(i);o?o.some(t=>t.type===e.type)||o.push(e):r.set(i,[e])})}),Array.from(r.entries()).map(([e,t])=>({token:e,displayLabel:formatTokenLabel(e),options:t.sort((e,t)=>e.label.localeCompare(t.label))})).sort((e,t)=>e.displayLabel.localeCompare(t.displayLabel))}function AddComponentModal({allowedChildTypes:e,parentType:t,onSelect:r,onClose:i}){const[o,n]=useState(!1),a=useMemo(()=>Array.from(new Set(e)).map(e=>{const t=getPatternByType(e);return{type:e,label:t?.meta?.label?.trim()||e,desiredParents:normalizeDesiredParents(t?.meta?.desiredParent)}}).sort((e,t)=>e.label.localeCompare(t.label)),[e]),s=useMemo(()=>{if(!t)return;const e=getPatternByType(t)?.meta?.desiredChildren;return Array.isArray(e)&&0!==e.length?e.map(e=>e.trim()).filter(e=>e.length>0):void 0},[t]),l=useMemo(()=>filterOptionsByDesiredChildren(a,s),[a,s]),c=!s?.length;useEffect(()=>{c||n(!1)},[c]);const d=useMemo(()=>buildGroups(l,e=>tokenMatchesParent(e,t)),[l,t]),p=useMemo(()=>buildGroups(l),[l]),h=e=>jsxs("button",{type:"button",className:"add-component-modal__card",onClick:()=>(e=>{r(e)})(e.type),role:"listitem",children:[jsx("div",{className:"add-component-modal__thumbnail","aria-hidden":"true",children:jsx("span",{children:"Preview"})}),jsx("span",{className:"add-component-modal__title",children:e.label})]},e.type),u=e=>e.map(e=>jsxs("div",{className:"add-component-modal__group",children:[jsx("h5",{className:"add-component-modal__group-title",children:e.displayLabel}),jsx("div",{className:"add-component-modal__grid",role:"list",children:e.options.map(h)})]},e.token)),g=d.length>0,m=l.length>0;return jsxs(Modal,{onClose:i,ariaLabelledBy:"add-component-title",contentClassName:"add-component-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"add-component-title",className:"modal__title",children:"Add component"}),jsx("button",{type:"button",className:"editor-button","aria-label":"Close add component modal",onClick:i,children:"Close"})]}),jsxs("div",{className:"add-component-modal__body",children:[jsxs("section",{className:"add-component-modal__section",children:[jsx("h4",{className:"add-component-modal__section-title",children:"Recommended Components"}),g?u(d):jsx("p",{className:"add-component-modal__empty",children:m?"No direct recommendations for this parent.":"No components available for this node."})]}),c&&jsxs("label",{className:"add-component-modal__toggle",children:[jsx("input",{type:"checkbox",checked:o,onChange:e=>n(e.target.checked)}),jsx("span",{children:"Show rest (All Components)"})]}),c&&o&&jsxs("section",{className:"add-component-modal__section","aria-live":"polite",id:"add-component-modal-all",children:[jsx("h4",{className:"add-component-modal__section-title",children:"All Components"}),p.length?u(p):jsx("p",{className:"add-component-modal__empty",children:"No components available."})]}),!o&&!g&&jsx("p",{className:"add-component-modal__empty",children:c?"Nothing to suggest yet—toggle “Show rest” to browse all components.":"Nothing to suggest yet for this parent."})]})]})}const Icons=["activity","activity-heart","alert-circle","alert-triangle","anchor","archive","arrow-down","arrow-left","arrow-narrow-down-left","arrow-narrow-up-right","arrow-right","arrow-right-smooth","asterisk-01","asterisk-02","at-sign","award","battery-charging","bell-01","bell-02","bell-ringing-02","bookmark","bookmark-add","bookmark-check","bookmark-minus","bookmark-x","bubble","building-01","building-02","building-03","building-04","building-05","building-06","building-07","building-08","building-09","camera","camera-01","camera-steel","check","check-circle","check-circle-bold","check-circle-broken","check-done-01","check-done-02","check-heart","check-square","check-square-broken","check-verified-01","check-verified-02","check-verified-03","checkbox","checkv","chevron-down","chevron-down2","chevron-left","chevron-left-2","chevron-right","chevron-right-empty","chevron-right-smooth","chevron-up","circle","clock","clock-fast-forward","close","close-circle","cloud-01","cloud-blank-01","cloud-blank-02","coin","coins-02","colors","copy-01","copy-02","copy-03","copy-04","copy-05","copy-06","copy-07","corner-down-right","crypto-bold","delete-icon","diamond","dice-3","divide-01","divide-02","divide-03","document-check-bold","dots-circle","dots-grid","dots-horizontal","dots-vertical","download-01","download-02","download-03","edit-03","edit-04","edit-05","element-3","ellipse-127","exclaimation-circle","eye-off-line","face-smile","file-04","file-05","file-check-02","file-plus-01","file-shield-02","filter-funnel-01","flag-03","flash","folder","folder-plus","gallery","globe-01","globe-04","globe-bold","guard","headphones-01","headphones-02","headset-bold","heart","heart-bold","help-circle","home-2","home-line","hourglass-02","image","image-01","image-03","inbox-01","inbox-arrow-down","info-circle","keyboard-line","lamp-charge","layer","light","like-dislike","lock-03","logout","magicpen","mail","mail-01","marker","medal-star","menu","menu-04","message-circle-01","message-plus-circle","message-question-circle","message-text-circle-01","message-text-square-02","message-x-square","microphone-02","microphone-slash","mirror","moon-01","moon-bold","mouse-circle","move","notification","notification-fill","notification-text","pdf-01","pencil-01","phone","phone-01","phone-arrow-down-left","phone-arrow-up-right","phone-hang-up","phone-hangup2","phone-incoming-01","phone-outgoing-01","phone-plus","phone-x","plus","plus-circle","printer","question-mark-circle","refresh-ccw-01","refresh-cw-01","refresh-cw-04","refresh-right-square-bold","remove-circle","repeat-04","repeat-bold","ruler-pen","search","search-lg","search-md","search-refraction","send-01","send-02","send-diagonal","setting-2","settings","settings-02","settings-04","settings-2","settings-cog","share-01","share-03","share-04","share-05","share-06","share-bold","shield-01","shield-bold","solar-check","speaker","speaker-wave","speedometer-03","star","star-rounded","sun","target-03","text-input","translate","trash","trash-02","trash-03","trash-04","trush-square-bold","unlimited","user-circle","user-jogging","user-plus-01","user-square","user-x-01","user-x-02","user2","users-02","users-speaker","verify","voice-cricle","x-circle","x-close","x-sm","zap"];function IconPickerModal({value:e,onSelect:t,onClose:r,onClear:i}){const[o,n]=useState(""),a=useMemo(()=>{const e=o.trim().toLowerCase();return e?Icons.filter(t=>t.toLowerCase().includes(e)):Icons},[o]);return jsx(Modal,{onClose:r,ariaLabelledBy:"icon-picker-title",children:jsxs("div",{style:{display:"grid",gap:12},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[jsx("p",{id:"icon-picker-title",style:{margin:0,fontWeight:700},children:"Select Icon"}),jsx("div",{style:{flex:1}}),i?jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Clear"}):null,jsx("button",{type:"button",className:"editor-button",onClick:r,children:"Close"})]}),jsx("input",{type:"text",className:"input",placeholder:"Search icons...",value:o,onChange:e=>n(e.target.value),autoFocus:!0}),jsxs("div",{style:{fontSize:12,color:"#666"},children:[a.length," / ",Icons.length,e?` • Selected: ${e}`:""]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(120px, 1fr))",gap:8,maxHeight:"60vh",overflow:"auto",paddingRight:4},children:a.map(r=>{const i=e===r;return jsxs("button",{type:"button",onClick:()=>t(r),style:{display:"flex",alignItems:"center",gap:8,borderRadius:8,border:i?"2px solid #222":"1px solid #ddd",padding:"8px 10px",background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",cursor:"pointer"},"aria-label":`Select icon ${r}`,children:[jsx(Icon,{iconType:r,size:18}),jsx("span",{style:{fontSize:12,fontWeight:i?700:500,textAlign:"left",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:r,children:r})]},r)})})]})})}function isRecord(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function isNodeData$1(e){return isRecord(e)&&"string"==typeof e.type&&"children"in e}function isMainLike(e){const t=e.type;return"Main"===t||"main"===t}function stripNestedIsMain(e,t){if(null==e||"string"==typeof e)return e;if(Array.isArray(e)){let t=!1;const r=e.map(e=>{const r=stripNestedIsMain(e,!1);return r!==e&&(t=!0),r});return t?r:e}if(!isNodeData$1(e))return e;const r=e.children,i=stripNestedIsMain(r,!1),o=!0===e.isMain&&!t;return o||i!==r?{...e,...o?{isMain:!1}:null,children:i}:e}function wrapNodeInMain(e){if(isNodeData$1(e)&&isMainLike(e)){const t=stripNestedIsMain(e,!0);return!0!==t.isMain?{...t,isMain:!0}:t}const t=stripNestedIsMain(e,!1);return{type:"Main",isMain:!0,attributes:{},children:null==e?[]:t}}function safeStringify$1(e){try{return JSON.stringify(e,null,2)??""}catch{return String(e??"")}}function JsonTextEditor({value:e,onChange:t,rootName:r,readOnly:i=!1,className:o}){const n=useMemo(()=>safeStringify$1(e),[e]),[a,s]=useState(n),[l,c]=useState(null),[d,p]=useState(null),[h,u]=useState(e);useEffect(()=>{s(n),c(null),p(null),u(e)},[n,e]);return jsxs("div",{className:o,style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",gap:10},children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,flexWrap:"wrap"},children:[jsx("div",{style:{fontSize:12,opacity:.75},children:r?`${r}.json`:"data.json"}),jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("button",{type:"button",className:"editor-button",onClick:async()=>{try{await navigator.clipboard.writeText(a)}catch{}},children:"Copy"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>{try{const e=JSON.parse(a);s(JSON.stringify(e,null,2)),c(null),p(null),u(e)}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},children:"Format"}),!i&&jsx("button",{type:"button",className:"editor-button",onClick:()=>{try{const e=JSON.parse(a),t=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),r=t(e)&&"data"in e?{...e,data:wrapNodeInMain(e.data)}:wrapNodeInMain(e);s(JSON.stringify(r,null,2)),c(null),p(null),u(r)}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},disabled:!t,title:t?"Wrap root in Main and apply":"Read only",children:"Wrap in Main"}),!i&&jsx("button",{type:"button",className:"editor-button",onClick:()=>{if(t)try{const e=JSON.parse(a);c(null),p(null),u(e);try{t(e)}catch(e){p(e instanceof Error?e.message:"Failed to apply JSON")}}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},disabled:!t,title:t?"Apply JSON changes":"Read only",children:"Apply"})]})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr)",gap:10,flex:1,minHeight:0},children:jsx("textarea",{value:a,onChange:e=>{const t=e.target.value;if(s(t),p(null),!i)try{const e=JSON.parse(t);c(null),u(e)}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},readOnly:i,spellCheck:!1,style:{width:"100%",height:"100%",minHeight:320,resize:"none",border:"1px solid rgba(0,0,0,0.12)",borderRadius:10,padding:12,fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontSize:12,lineHeight:1.5,background:"transparent",outline:"none"}})}),jsxs("div",l?{style:{fontSize:12,color:"#d12f2f"},children:["Invalid JSON: ",l]}:d?{style:{fontSize:12,color:"#d12f2f"},children:["Could not apply: ",d]}:{style:{fontSize:12,opacity:.7},children:["Valid JSON (",safeStringify$1(h).length.toLocaleString()," ","chars)"]})]})}function LocalicationModal({data:e,onChange:t,onClose:r}){const i=e??{};return jsxs(Modal,{onClose:r,ariaLabelledBy:"localication-modal-title",className:"modal--large modal--scrollable localication-modal",contentClassName:"localication-modal__content",children:[jsxs("div",{className:"modal__header localication-modal__header",children:[jsxs("div",{className:"localication-modal__header-main",children:[jsx("h3",{id:"localication-modal-title",className:"modal__title",children:"Localization data"}),jsx("p",{className:"localication-modal__description",children:"Manage your translations directly from the JSON structure."})]}),jsx("button",{type:"button",className:"editor-button",onClick:r,children:"Close"})]}),jsx("div",{className:"localication-modal__body",children:jsx("div",{className:"localication-modal__editor",children:jsx(JsonTextEditor,{rootName:"localication",value:i,onChange:e=>t(e),className:"localication-modal__json-editor"})})})]})}function randomInt(e,t){return Math.floor(Math.random()*(t-e+1))+e}function randomChoice(e){return e[randomInt(0,e.length-1)]}function randomSku(){return`com.app.${randomChoice(["premium","pro","plus","gold","starter"])}.${randomChoice(["weekly","monthly","yearly","lifetime"])}`}function randomPrice(){const e=randomChoice(["USD","EUR","GBP","TRY"]),t=`${randomChoice([1,2,3,4,5,7,9,12,19,29,49,99])}.${randomChoice([0,49,99]).toString().padStart(2,"0")}`;return{price:t,localizedPrice:`${"USD"===e?"$":"EUR"===e?"€":"GBP"===e?"£":"₺"}${t}`,currency:e}}function ProductEditModal({product:e,index:t,onSave:r,onClose:i}){const o=useMemo(()=>({productId:e?.productId??"",title:e?.title??"",description:e?.description??"",localizedPrice:e?.localizedPrice??"",price:e?.price??"",currency:e?.currency??""}),[e]),[n,a]=useState(o),s=n.productId.trim().length>0;return jsxs(Modal,{onClose:i,ariaLabelledBy:"product-edit-modal-title",contentClassName:"product-edit-modal",children:[jsxs("div",{className:"modal__header",children:[jsxs("h3",{id:"product-edit-modal-title",className:"modal__title",children:["Edit product #",t+1]}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxs("div",{className:"product-edit-modal__body",children:[jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"productId",children:"productId"}),jsx("input",{id:"productId",className:"input",value:n.productId,onChange:e=>a(t=>({...t,productId:e.target.value})),placeholder:"com.app.subscription.monthly"})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"title",children:"title"}),jsx("input",{id:"title",className:"input",value:n.title,onChange:e=>a(t=>({...t,title:e.target.value})),placeholder:"Monthly Premium"})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"description",children:"description"}),jsx("textarea",{id:"description",className:"input product-edit-modal__textarea",value:n.description,onChange:e=>a(t=>({...t,description:e.target.value})),placeholder:"Full access to all features..."})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"localizedPrice",children:"localizedPrice"}),jsx("input",{id:"localizedPrice",className:"input",value:n.localizedPrice,onChange:e=>a(t=>({...t,localizedPrice:e.target.value})),placeholder:"$4.99"})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"price",children:"price"}),jsx("input",{id:"price",className:"input",value:n.price,onChange:e=>a(t=>({...t,price:e.target.value})),placeholder:"4.99"})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"currency",children:"currency"}),jsx("input",{id:"currency",className:"input",value:n.currency,onChange:e=>a(t=>({...t,currency:e.target.value})),placeholder:"USD"})]}),jsxs("div",{className:"form-actions",children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>{const e=randomPrice(),t=randomChoice(["Premium","Pro","Plus","Gold","Starter","Unlimited"]),r=randomChoice(["Weekly","Monthly","Yearly","Lifetime"]);a({productId:randomSku(),title:`${t} ${r}`,description:randomChoice(["Unlock all features.","Full access to premium content.","Remove ads and get more features.","Best value for power users."]),localizedPrice:e.localizedPrice,price:e.price,currency:e.currency})},title:"Fill with random values",children:"Random"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>r(n),disabled:!s,title:s?"Save":"productId is required",children:"Save"}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Cancel"})]})]})]})}var presetsJson$1={"preset-1":[{productId:"com.app.monthly",id:"com.app.monthly",title:"Monthly",description:"Unlock all features for a month.",type:"subs",displayName:"Monthly Subscription",displayPrice:"$4.99",localizedPrice:"$4.99",currency:"USD",price:"4.99",platform:"android",subscriptionOffers:[{id:"monthly-trial-offer",displayPrice:"Free → $4.99",price:0,type:"promotional",currency:"USD",basePlanIdAndroid:"monthly-base",offerTokenAndroid:"mock_token_monthly_trial",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P3D",formattedPrice:"Free",priceAmountMicros:"0",priceCurrencyCode:"USD",recurrenceMode:3},{billingCycleCount:0,billingPeriod:"P1M",formattedPrice:"$4.99",priceAmountMicros:"4990000",priceCurrencyCode:"USD",recurrenceMode:1}]}}],introductoryPrice:{price:"0.00",priceIOS:"0.00",type:"free_trial",numberOfPeriods:3,subscriptionPeriod:"DAY",subscriptionPeriodUnitIOS:"DAY",subscriptionPeriodNumberIOS:3},subscriptionPeriodUnitIOS:"MONTH",subscriptionPeriodNumberIOS:1},{productId:"com.app.yearly",id:"com.app.yearly",title:"Yearly (Save 33%)",description:"Best value: full access for a year.",type:"subs",displayName:"Yearly Subscription",displayPrice:"$29.99",localizedPrice:"$29.99",currency:"USD",price:"29.99",platform:"android",subscriptionOffers:[{id:"yearly-promo-offer",displayPrice:"$19.99",price:19.99,type:"promotional",currency:"USD",basePlanIdAndroid:"yearly-base",offerTokenAndroid:"mock_token_yearly_promo",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P1Y",formattedPrice:"$19.99",priceAmountMicros:"19990000",priceCurrencyCode:"USD",recurrenceMode:2},{billingCycleCount:0,billingPeriod:"P1Y",formattedPrice:"$29.99",priceAmountMicros:"29990000",priceCurrencyCode:"USD",recurrenceMode:1}]}}],introductoryPrice:{price:"19.99",priceIOS:"19.99",type:"pay_as_you_go",numberOfPeriods:1,subscriptionPeriod:"YEAR",subscriptionPeriodUnitIOS:"YEAR",subscriptionPeriodNumberIOS:1},discounts:[{identifier:"yearly-promo-offer",price:"19.99",numberOfPeriods:1,subscriptionPeriod:"YEAR"}],subscriptionPeriodUnitIOS:"YEAR",subscriptionPeriodNumberIOS:1},{productId:"com.app.weekly",id:"com.app.weekly",title:"Weekly",description:"Try with a flexible weekly plan.",type:"subs",displayName:"Weekly Subscription",displayPrice:"$1.99",localizedPrice:"$1.99",currency:"USD",price:"1.99",platform:"android",subscriptionOffers:[{id:"weekly-base",displayPrice:"$0.99",price:.99,type:"promotional",currency:"USD",basePlanIdAndroid:"weekly-base",offerTokenAndroid:"mock_token_weekly_promo",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:4,billingPeriod:"P1W",formattedPrice:"$0.99",priceAmountMicros:"990000",priceCurrencyCode:"USD",recurrenceMode:2},{billingCycleCount:0,billingPeriod:"P1W",formattedPrice:"$1.99",priceAmountMicros:"1990000",priceCurrencyCode:"USD",recurrenceMode:1}]}}],introductoryPrice:{price:"0.99",priceIOS:"0.99",type:"pay_as_you_go",numberOfPeriods:4,subscriptionPeriod:"WEEK",subscriptionPeriodUnitIOS:"WEEK",subscriptionPeriodNumberIOS:1},subscriptionPeriodUnitIOS:"WEEK",subscriptionPeriodNumberIOS:1}],"preset-2":[{productId:"com.app.premium.monthly",id:"com.app.premium.monthly",title:"Premium Monthly",description:"Premium tier with all features.",type:"subs",displayName:"Premium Monthly",displayPrice:"$9.99",localizedPrice:"$9.99",currency:"USD",price:"9.99",platform:"android",subscriptionOffers:[{id:"premium-monthly-trial-offer",displayPrice:"Free → $9.99",price:0,type:"promotional",currency:"USD",basePlanIdAndroid:"premium-monthly-base",offerTokenAndroid:"mock_token_premium_monthly_trial",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P7D",formattedPrice:"Free",priceAmountMicros:"0",priceCurrencyCode:"USD",recurrenceMode:3},{billingCycleCount:0,billingPeriod:"P1M",formattedPrice:"$9.99",priceAmountMicros:"9990000",priceCurrencyCode:"USD",recurrenceMode:1}]}}],introductoryPrice:{price:"0.00",priceIOS:"0.00",type:"free_trial",numberOfPeriods:7,subscriptionPeriod:"DAY",subscriptionPeriodUnitIOS:"DAY",subscriptionPeriodNumberIOS:7},subscriptionPeriodUnitIOS:"MONTH",subscriptionPeriodNumberIOS:1},{productId:"com.app.premium.yearly",id:"com.app.premium.yearly",title:"Premium Yearly (Save 50%)",description:"7-day free trial, then $29.99 first year, $59.99/yr after.",type:"subs",displayName:"Premium Yearly",displayPrice:"$59.99",localizedPrice:"$59.99",currency:"USD",price:"59.99",platform:"android",subscriptionOffers:[{id:"premium-yearly-full-offer",displayPrice:"$29.99",price:29.99,type:"promotional",currency:"USD",basePlanIdAndroid:"premium-yearly-base",offerTokenAndroid:"mock_token_premium_yearly_promo",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P7D",formattedPrice:"Free",priceAmountMicros:"0",priceCurrencyCode:"USD",recurrenceMode:3},{billingCycleCount:1,billingPeriod:"P1Y",formattedPrice:"$29.99",priceAmountMicros:"29990000",priceCurrencyCode:"USD",recurrenceMode:2},{billingCycleCount:0,billingPeriod:"P1Y",formattedPrice:"$59.99",priceAmountMicros:"59990000",priceCurrencyCode:"USD",recurrenceMode:1}]}}],introductoryPrice:{price:"0.00",priceIOS:"0.00",type:"free_trial",numberOfPeriods:7,subscriptionPeriod:"DAY",subscriptionPeriodUnitIOS:"DAY",subscriptionPeriodNumberIOS:7},discounts:[{identifier:"premium-yearly-full-offer",price:"29.99",numberOfPeriods:1,subscriptionPeriod:"YEAR"}],subscriptionPeriodUnitIOS:"YEAR",subscriptionPeriodNumberIOS:1},{productId:"com.app.lifetime",id:"com.app.lifetime",title:"Lifetime",description:"One-time purchase for lifetime access.",type:"in-app",displayName:"Lifetime Access",displayPrice:"$99.99",localizedPrice:"$99.99",currency:"USD",price:"99.99",platform:"android",subscriptionOffers:[]}],"preset-3":[{productId:"com.app.budget.weekly",id:"com.app.budget.weekly",title:"Budget Weekly",description:"Affordable weekly plan.",type:"subs",displayName:"Budget Weekly",displayPrice:"€2.99",localizedPrice:"€2.99",currency:"EUR",price:"2.99",currencyCode:"EUR",platform:"android",subscriptionOffers:[{id:"budget-weekly-trial-offer",displayPrice:"Free → €2.99",price:0,type:"promotional",currency:"EUR",basePlanIdAndroid:"budget-weekly-base",offerTokenAndroid:"mock_token_budget_weekly_trial",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P3D",formattedPrice:"Free",priceAmountMicros:"0",priceCurrencyCode:"EUR",recurrenceMode:3},{billingCycleCount:0,billingPeriod:"P1W",formattedPrice:"€2.99",priceAmountMicros:"2990000",priceCurrencyCode:"EUR",recurrenceMode:1}]}}],introductoryPrice:{price:"0.00",priceIOS:"0.00",type:"free_trial",numberOfPeriods:3,subscriptionPeriod:"DAY",subscriptionPeriodUnitIOS:"DAY",subscriptionPeriodNumberIOS:3},subscriptionPeriodUnitIOS:"WEEK",subscriptionPeriodNumberIOS:1},{productId:"com.app.monthly.promo",id:"com.app.monthly.promo",title:"Monthly (70% off first 3 months)",description:"€2.99/mo for 3 months, then €9.99/mo.",type:"subs",displayName:"Monthly with Promo",displayPrice:"€9.99",localizedPrice:"€9.99",currency:"EUR",price:"9.99",currencyCode:"EUR",platform:"android",subscriptionOffers:[{id:"monthly-promo-offer",displayPrice:"€2.99",price:2.99,type:"promotional",currency:"EUR",basePlanIdAndroid:"monthly-promo",offerTokenAndroid:"mock_token_monthly_promo",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:3,billingPeriod:"P1M",formattedPrice:"€2.99",priceAmountMicros:"2990000",priceCurrencyCode:"EUR",recurrenceMode:2},{billingCycleCount:0,billingPeriod:"P1M",formattedPrice:"€9.99",priceAmountMicros:"9990000",priceCurrencyCode:"EUR",recurrenceMode:1}]}}],introductoryPrice:{price:"2.99",priceIOS:"2.99",type:"pay_as_you_go",numberOfPeriods:3,subscriptionPeriod:"MONTH",subscriptionPeriodUnitIOS:"MONTH",subscriptionPeriodNumberIOS:1},subscriptionPeriodUnitIOS:"MONTH",subscriptionPeriodNumberIOS:1},{productId:"com.app.yearly.trial",id:"com.app.yearly.trial",title:"Yearly (14-day free trial)",description:"Try free for 14 days, then €29.99/yr.",type:"subs",displayName:"Yearly with Trial",displayPrice:"€29.99",localizedPrice:"€29.99",currency:"EUR",price:"29.99",currencyCode:"EUR",platform:"android",subscriptionOffers:[{id:"yearly-trial-offer",displayPrice:"Free → €29.99",price:0,type:"promotional",currency:"EUR",basePlanIdAndroid:"yearly-trial",offerTokenAndroid:"mock_token_yearly_trial",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P14D",formattedPrice:"Free",priceAmountMicros:"0",priceCurrencyCode:"EUR",recurrenceMode:3},{billingCycleCount:0,billingPeriod:"P1Y",formattedPrice:"€29.99",priceAmountMicros:"29990000",priceCurrencyCode:"EUR",recurrenceMode:1}]}}],introductoryPrice:{price:"0.00",priceIOS:"0.00",type:"free_trial",numberOfPeriods:14,subscriptionPeriod:"DAY",subscriptionPeriodUnitIOS:"DAY",subscriptionPeriodNumberIOS:14},subscriptionPeriodUnitIOS:"YEAR",subscriptionPeriodNumberIOS:1}]};const DEFAULT_PRESET_KEY$1="preset-1";function ensureProductId(e){return{...e,productId:e?.productId??""}}function getPresetMap$1(){const e=presetsJson$1,t={};return Object.entries(e??{}).forEach(([e,r])=>{e&&"string"==typeof e&&Array.isArray(r)&&(t[e]=r.filter(Boolean).map(e=>ensureProductId(e)).filter(e=>"string"==typeof e.productId&&e.productId.length>0))}),t}function ProductPresetsModal({current:e,onReplace:t,onAppend:r,onClose:i}){const o=useMemo(()=>getPresetMap$1(),[]),n=useMemo(()=>Object.entries(o).sort((e,t)=>{const r=e[0],i=t[0];return r===DEFAULT_PRESET_KEY$1&&i!==DEFAULT_PRESET_KEY$1?-1:i===DEFAULT_PRESET_KEY$1&&r!==DEFAULT_PRESET_KEY$1?1:r.localeCompare(i)}),[o]);return jsxs(Modal,{onClose:i,ariaLabelledBy:"product-presets-modal-title",contentClassName:"product-presets-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"product-presets-modal-title",className:"modal__title",children:"Product presets"}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxs("div",{className:"product-presets-modal__body",children:[jsxs("section",{className:"product-presets-modal__section",children:[jsxs("p",{className:"product-presets-modal__section-title",children:["Current (",Array.isArray(e)?e.length:0,")"]}),jsx("p",{className:"product-presets-modal__muted",children:"Pick a preset below to replace or append to the current list."})]}),jsxs("section",{className:"product-presets-modal__section",children:[jsx("p",{className:"product-presets-modal__section-title",children:"Presets"}),n.length?jsx("div",{className:"product-presets-modal__grid",children:n.map(([e,o])=>jsxs("div",{className:"product-presets-modal__card",children:[jsxs("div",{className:"product-presets-modal__card-header",children:[jsx("p",{className:"product-presets-modal__card-title",children:e}),jsxs("p",{className:"product-presets-modal__card-count",children:[o.length," products"]})]}),jsxs("ul",{className:"product-presets-modal__card-list",children:[o.slice(0,3).map(e=>jsx("li",{className:"product-presets-modal__card-item",children:e.productId},e.productId)),o.length>3?jsxs("li",{className:"product-presets-modal__card-item product-presets-modal__muted",children:["+",o.length-3," more…"]}):null]}),jsxs("div",{className:"product-presets-modal__actions",children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>{t(o),i()},children:"Replace"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>{r(o),i()},children:"Append"})]})]},e))}):jsx("p",{className:"product-presets-modal__muted",children:"No presets found."})]})]})]})}function detectKind(e){return"number"==typeof e?"number":"boolean"==typeof e?"boolean":"string"}function parseValue(e,t,r){if("boolean"===e)return"true"===t;if("number"===e){const e=t.trim();if(!e)return r;const i=e.replace(",","."),o=Number.parseFloat(i);return Number.isFinite(o)?o:r}return t}function BenefitEditModal({benefitKey:e,benefitValue:t,index:r,onSave:i,onClose:o}){const n=useMemo(()=>{const r=(e??"").toString(),i=detectKind(t);return{key:r,kind:i,raw:"boolean"===i?t?"true":"false":"number"===i?`${t??""}`:(t??"").toString()}},[e,t]),[a,s]=useState(n),l=a.key.trim().length>0;return jsxs(Modal,{onClose:o,ariaLabelledBy:"benefit-edit-modal-title",contentClassName:"benefit-edit-modal",children:[jsxs("div",{className:"modal__header",children:[jsxs("h3",{id:"benefit-edit-modal-title",className:"modal__title",children:["Edit benefit #",r+1]}),jsx("button",{type:"button",className:"editor-button",onClick:o,children:"Close"})]}),jsxs("div",{className:"benefit-edit-modal__body",children:[jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"benefitKey",children:"key"}),jsx("input",{id:"benefitKey",className:"input",value:a.key,onChange:e=>s(t=>({...t,key:e.target.value})),placeholder:"unlimited_access"})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"benefitType",children:"type"}),jsxs("select",{id:"benefitType",className:"input",value:a.kind,onChange:e=>s(t=>({...t,kind:e.target.value})),children:[jsx("option",{value:"string",children:"string"}),jsx("option",{value:"number",children:"number"}),jsx("option",{value:"boolean",children:"boolean"})]})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"benefitValue",children:"value"}),"boolean"===a.kind?jsxs("select",{id:"benefitValue",className:"input",value:a.raw,onChange:e=>s(t=>({...t,raw:e.target.value})),children:[jsx("option",{value:"true",children:"true"}),jsx("option",{value:"false",children:"false"})]}):jsx("input",{id:"benefitValue",className:"input",value:a.raw,onChange:e=>s(t=>({...t,raw:e.target.value})),placeholder:"number"===a.kind?"7":"Unlock everything"})]}),jsxs("div",{className:"form-actions",children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>i({key:a.key,value:parseValue(a.kind,a.raw,t)}),disabled:!l,title:l?"Save":"key is required",children:"Save"}),jsx("button",{type:"button",className:"editor-button",onClick:o,children:"Cancel"})]})]})]})}var basic={unlimited_access:!0,trial_days:7,headline:"Unlock everything"},vpn={secure_connection:!0,no_logs:!0,locations:120,headline:"Private & fast VPN"},pro={remove_ads:!0,priority_support:!0,devices:5,headline:"Go Pro"},presetsJson={"Embeded Paywall":{unlimited_access:!0,trial_days:7,headline:"Unlock everything"},basic:basic,vpn:vpn,pro:pro};const DEFAULT_PRESET_KEY="Embeded Paywall";function normalizeBenefits(e){if(!e||"object"!=typeof e||Array.isArray(e))return{};const t={};return Object.entries(e).forEach(([e,r])=>{const i="string"==typeof e?e.trim():"";i&&("string"!=typeof r&&"number"!=typeof r&&"boolean"!=typeof r||(t[i]=r))}),t}function getPresetMap(){const e=presetsJson,t={};return Object.entries(e??{}).forEach(([e,r])=>{const i="string"==typeof e?e.trim():"";i&&(t[i]=normalizeBenefits(r))}),t}function countBenefits(e){return e&&"object"==typeof e?Object.keys(e).length:0}function BenefitPresetsModal({current:e,onReplace:t,onMerge:r,onClose:i}){const o=useMemo(()=>getPresetMap(),[]),n=useMemo(()=>Object.entries(o).sort((e,t)=>{const r=e[0],i=t[0];return r===DEFAULT_PRESET_KEY&&i!==DEFAULT_PRESET_KEY?-1:i===DEFAULT_PRESET_KEY&&r!==DEFAULT_PRESET_KEY?1:r.localeCompare(i)}),[o]);return jsxs(Modal,{onClose:i,ariaLabelledBy:"benefit-presets-modal-title",contentClassName:"benefit-presets-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"benefit-presets-modal-title",className:"modal__title",children:"Benefit presets"}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxs("div",{className:"benefit-presets-modal__body",children:[jsxs("section",{className:"benefit-presets-modal__section",children:[jsxs("p",{className:"benefit-presets-modal__section-title",children:["Current (",countBenefits(e),")"]}),jsx("p",{className:"benefit-presets-modal__muted",children:"Pick a preset below to replace or merge into the current map."})]}),jsxs("section",{className:"benefit-presets-modal__section",children:[jsx("p",{className:"benefit-presets-modal__section-title",children:"Presets"}),n.length?jsx("div",{className:"benefit-presets-modal__grid",children:n.map(([e,o])=>{const n=Object.entries(o);return jsxs("div",{className:"benefit-presets-modal__card",children:[jsxs("div",{className:"benefit-presets-modal__card-header",children:[jsx("p",{className:"benefit-presets-modal__card-title",children:e}),jsxs("p",{className:"benefit-presets-modal__card-count",children:[n.length," benefits"]})]}),jsxs("ul",{className:"benefit-presets-modal__card-list",children:[n.slice(0,3).map(([e,t])=>jsxs("li",{className:"benefit-presets-modal__card-item",children:[e,": ",String(t)]},e)),n.length>3?jsxs("li",{className:"benefit-presets-modal__card-item benefit-presets-modal__muted",children:["+",n.length-3," more…"]}):null]}),jsxs("div",{className:"benefit-presets-modal__actions",children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>{t(o),i()},children:"Replace"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>{r(o),i()},title:"Merges preset into current (preset values overwrite existing keys)",children:"Merge"})]})]},e)})}):jsx("p",{className:"benefit-presets-modal__muted",children:"No presets found."})]})]})]})}function MockableFeatureModal({featureKey:e,onClose:t}){const{products:r,addProduct:i,removeProduct:o,updateProduct:n,setProducts:a,clearProducts:s,benefits:l,setBenefits:c,clearBenefits:d,upsertBenefit:p,removeBenefit:h,renameBenefit:u}=useRenderStore(e=>({products:e.products,addProduct:e.addProduct,removeProduct:e.removeProduct,updateProduct:e.updateProduct,setProducts:e.setProducts,clearProducts:e.clearProducts,benefits:e.benefits,setBenefits:e.setBenefits,clearBenefits:e.clearBenefits,upsertBenefit:e.upsertBenefit,removeBenefit:e.removeBenefit,renameBenefit:e.renameBenefit})),[g,m]=useState(null),[f,y]=useState(!1),[b,C]=useState(null),[v,x]=useState(!1),S=Object.entries(l&&"object"==typeof l&&!Array.isArray(l)?l:{});return jsxs(Fragment,{children:[jsxs(Modal,{onClose:t,ariaLabelledBy:"mockable-feature-modal-title",contentClassName:"mockable-feature-modal",children:[jsxs("div",{className:"modal__header",children:[jsxs("h3",{id:"mockable-feature-modal-title",className:"modal__title",children:["Mockable: ",e]}),jsx("button",{type:"button",className:"editor-button",onClick:t,children:"Close"})]}),jsx("div",{className:"mockable-feature-modal__body",children:"products"===e?jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Add product"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>y(!0),children:"Presets"}),jsx("button",{type:"button",className:"editor-button",onClick:s,disabled:0===r.length,children:"Clear"})]}),jsx("div",{style:{marginTop:12},children:r.length?jsx("ul",{style:{margin:0,paddingLeft:18},children:r.map((e,t)=>jsxs("li",{style:{display:"flex",gap:8,marginBottom:8,alignItems:"center"},children:[jsx("span",{style:{flex:1},children:e?.productId?.trim()?e.productId:"(empty productId)"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>m(t),children:"Edit"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>o(t),children:"Remove"})]},`${t}-${e?.productId??""}`))}):jsx("p",{style:{margin:0,opacity:.7},children:"No products yet."})})]}):"benefits"===e?jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>{const e="benefit",t=new Set(S.map(([e])=>e));let r=`${e}_1`,i=1;for(;t.has(r);)i+=1,r=`${e}_${i}`;p(r,!0),C(r)},children:"Add benefit"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>x(!0),children:"Presets"}),jsx("button",{type:"button",className:"editor-button",onClick:d,disabled:0===S.length,children:"Clear"})]}),jsx("div",{style:{marginTop:12},children:S.length?jsx("ul",{style:{margin:0,paddingLeft:18},children:S.map(([e,t],r)=>jsxs("li",{style:{display:"flex",gap:8,marginBottom:8,alignItems:"center"},children:[jsxs("span",{style:{flex:1,wordBreak:"break-word"},children:[e,": ",String(t)]}),jsx("button",{type:"button",className:"editor-button",onClick:()=>C(e),children:"Edit"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>h(e),children:"Remove"})]},`${r}-${e}`))}):jsx("p",{style:{margin:0,opacity:.7},children:"No benefits yet."})})]}):jsxs("p",{style:{margin:0,opacity:.7},children:["No mock UI yet for “",e,"”."]})})]}),"products"===e&&null!==g?jsx(ProductEditModal,{index:g,product:r[g],onClose:()=>m(null),onSave:e=>{n(g,e),m(null)}}):null,"products"===e&&f?jsx(ProductPresetsModal,{current:r,onClose:()=>y(!1),onReplace:e=>a(e),onAppend:e=>a([...r??[],...e??[]])}):null,"benefits"===e&&null!==b?jsx(BenefitEditModal,{index:Math.max(0,S.findIndex(([e])=>e===b)),benefitKey:b,benefitValue:l?.[b]??"",onClose:()=>C(null),onSave:({key:e,value:t})=>{const r=e.trim();b!==r&&u(b,r),p(r,t),C(null)}}):null,"benefits"===e&&v?jsx(BenefitPresetsModal,{current:l,onClose:()=>x(!1),onReplace:e=>c(e),onMerge:e=>c({...l??{},...e??{}})}):null]})}function InspectModal({onClose:e}){const[t,r]=useState("localizations"),{appConfig:i,projectColors:o,theme:n,defaultLanguage:a}=useRenderStore(e=>({appConfig:e.appConfig,projectColors:e.projectColors,theme:e.theme,defaultLanguage:e.defaultLanguage})),s=useMemo(()=>getLastParamsSnapshot(),[]);return jsxs(Modal,{onClose:e,ariaLabelledBy:"inspect-modal-title",className:"modal--large modal--scrollable",contentClassName:"inspect-modal__content",children:[jsxs("div",{className:"modal__header inspect-modal__header",children:[jsx("h3",{id:"inspect-modal-title",className:"modal__title",children:"Inspect"}),jsx("button",{type:"button",className:"editor-button",onClick:e,children:"Close"})]}),jsxs("div",{className:"inspect-modal__tabs",children:[jsx("button",{type:"button",className:"inspect-modal__tab"+("localizations"===t?" is-active":""),onClick:()=>r("localizations"),children:"Localizations"}),jsx("button",{type:"button",className:"inspect-modal__tab"+("params"===t?" is-active":""),onClick:()=>r("params"),children:"Params"}),jsx("button",{type:"button",className:"inspect-modal__tab"+("colors"===t?" is-active":""),onClick:()=>r("colors"),children:"Colors"})]}),jsxs("div",{className:"inspect-modal__body",children:["localizations"===t&&jsx(LocalizationsTab,{localication:i.localication??{},language:a}),"params"===t&&jsx(ParamsTab,{localizationParams:s.localizationParams,nestedLocalizationParams:s.nestedLocalizationParams}),"colors"===t&&jsx(ColorsTab,{projectColors:o,theme:n})]})]})}function LocalizationsTab({localication:e,language:t}){const r=e[t]??{},i=defaultLocalization[t]??defaultLocalization.en??{},o=Object.entries(r);return 0===o.length?jsxs("p",{className:"inspect-modal__empty",children:['No localization keys found for "',t,'".']}):jsx("div",{className:"inspect-modal__table-wrap",children:jsxs("table",{className:"inspect-modal__table",children:[jsx("thead",{children:jsxs("tr",{children:[jsx("th",{children:"Key"}),jsx("th",{children:"Value"}),jsx("th",{children:"Source"})]})}),jsx("tbody",{children:o.map(([e,t])=>{const r=i[e]===t;return jsxs("tr",{children:[jsx("td",{className:"inspect-modal__cell-key",children:e}),jsx("td",{className:"inspect-modal__cell-value",children:t}),jsx("td",{children:jsx("span",{className:"inspect-modal__badge"+(r?" inspect-modal__badge--default":" inspect-modal__badge--custom"),children:r?"default":"custom"})})]},e)})})]})})}function ParamsTab({localizationParams:e,nestedLocalizationParams:t}){const r=Object.entries(e),i=Object.entries(t);return r.length>0||i.length>0?jsx("div",{className:"inspect-modal__table-wrap",children:jsxs("table",{className:"inspect-modal__table",children:[jsx("thead",{children:jsxs("tr",{children:[jsx("th",{children:"Param"}),jsx("th",{children:"Value"})]})}),jsxs("tbody",{children:[r.map(([e,t])=>jsxs("tr",{children:[jsx("td",{className:"inspect-modal__cell-key",children:e}),jsx("td",{className:"inspect-modal__cell-value",children:formatValue(t)})]},e)),i.length>0&&jsxs(Fragment,{children:[jsx("tr",{className:"inspect-modal__separator-row",children:jsx("td",{colSpan:2,children:"Nested (per-product)"})}),i.map(([e,t])=>jsxs("tr",{children:[jsxs("td",{className:"inspect-modal__cell-key inspect-modal__cell-key--nested",children:["- ",e]}),jsx("td",{className:"inspect-modal__cell-value",children:formatValue(t)})]},`nested-${e}`))]})]})]})}):jsx("p",{className:"inspect-modal__empty",children:"No params available. Params are populated inside a PaywallProvider."})}function ColorsTab({projectColors:e,theme:t}){const r=e?.STATIC_COLORS??{},i=e?.THEME_COLORS?.[t]??{},o=defaultProjectColors.STATIC_COLORS??{},n=defaultProjectColors.THEME_COLORS?.[t]??{},a=Object.entries(r),s=Object.entries(i);return 0===a.length&&0===s.length?jsx("p",{className:"inspect-modal__empty",children:"No project colors defined."}):jsxs("div",{className:"inspect-modal__table-wrap",children:[a.length>0&&jsxs(Fragment,{children:[jsx("h4",{className:"inspect-modal__section-title",children:"Static Colors"}),jsxs("table",{className:"inspect-modal__table",children:[jsx("thead",{children:jsxs("tr",{children:[jsx("th",{children:"Token"}),jsx("th",{children:"Value"}),jsx("th",{children:"Source"})]})}),jsx("tbody",{children:a.map(([e,t])=>{const r=o[e]===t;return jsxs("tr",{children:[jsx("td",{className:"inspect-modal__cell-key",children:e}),jsxs("td",{className:"inspect-modal__cell-value",children:[jsx("span",{className:"inspect-modal__color-swatch",style:{backgroundColor:t}}),t]}),jsx("td",{children:jsx("span",{className:"inspect-modal__badge"+(r?" inspect-modal__badge--default":" inspect-modal__badge--custom"),children:r?"default":"custom"})})]},e)})})]})]}),s.length>0&&jsxs(Fragment,{children:[jsxs("h4",{className:"inspect-modal__section-title",children:["Theme Colors (",t,")"]}),jsxs("table",{className:"inspect-modal__table",children:[jsx("thead",{children:jsxs("tr",{children:[jsx("th",{children:"Token"}),jsx("th",{children:"Value"}),jsx("th",{children:"Source"})]})}),jsx("tbody",{children:s.map(([e,t])=>{const r=n[e]===t;return jsxs("tr",{children:[jsx("td",{className:"inspect-modal__cell-key",children:e}),jsxs("td",{className:"inspect-modal__cell-value",children:[jsx("span",{className:"inspect-modal__color-swatch",style:{backgroundColor:t}}),t]}),jsx("td",{children:jsx("span",{className:"inspect-modal__badge"+(r?" inspect-modal__badge--default":" inspect-modal__badge--custom"),children:r?"default":"custom"})})]},e)})})]})]})]})}function formatValue(e){return void 0===e?"—":null===e?"null":"string"==typeof e?e:"number"==typeof e||"boolean"==typeof e?String(e):JSON.stringify(e)}function IconTypePickerField({value:e,onChange:t}){const[r,i]=useState(!1),o="string"==typeof e?e:void 0;return jsxs(Fragment,{children:[jsxs("button",{type:"button",onClick:()=>i(!0),className:"attributes-editor__picker-button",children:[jsxs("span",{className:"attributes-editor__picker-button-left",children:[o?jsx(Icon,{iconType:o,size:18}):null,jsx("span",{className:"attributes-editor__picker-button-label",children:o??"Select icon"})]}),jsx("span",{className:"attributes-editor__picker-button-open",children:"Open"})]}),r?jsx(IconPickerModal,{value:o,onSelect:e=>{t(e),i(!1)},onClose:()=>i(!1),onClear:()=>{t(void 0),i(!1)}}):null]})}function FontFamilyPickerField({name:e,value:t,onChange:r,fonts:i,loadedFonts:o,markFontLoaded:n,addError:a}){const[s,l]=useState(!1),[c,d]=useState(!1),[p,h]=useState(null),u="string"==typeof t&&t.trim().length>0?t.trim():void 0,g=Array.isArray(i)?i:[],m=Array.isArray(o)?o:[],f=useMemo(()=>`${g.length} fonts`,[g.length]);return jsxs(Fragment,{children:[jsxs("button",{type:"button",onClick:()=>{h(null),l(!0)},className:"attributes-editor__picker-button",children:[jsx("span",{className:"attributes-editor__picker-button-label attributes-editor__picker-button-label--fill",children:u??"Select font"}),jsx("span",{className:"attributes-editor__picker-button-open",children:"Open"})]}),s?jsx(Modal,{ariaLabelledBy:"font-family-picker-title",onClose:()=>{c||l(!1)},closeOnOverlayClick:!c,closeOnEsc:!c,children:jsxs("div",{className:"attributes-editor__font-modal",children:[jsxs("div",{className:"attributes-editor__font-modal-header",children:[jsx("p",{id:"font-family-picker-title",className:"attributes-editor__font-modal-title",children:"Select Font"}),jsx("div",{className:"attributes-editor__font-modal-spacer"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>{r(void 0),h(null),l(!1)},disabled:c,children:"Clear"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>l(!1),disabled:c,children:"Close"})]}),c?jsx("div",{className:"attributes-editor__font-modal-note",children:"Loading font…"}):null,p?jsx("div",{className:"attributes-editor__font-modal-error",children:p}):null,jsx("div",{className:"attributes-editor__font-modal-note",children:f}),jsx("div",{className:"attributes-editor__font-grid",children:g.map(e=>{const t=e?.name;if("string"!=typeof t||!t.trim())return null;const i=t.trim(),o=u===i,s=m.includes(i),l=["attributes-editor__font-option",o?"attributes-editor__font-option--active":""].filter(Boolean).join(" ");return jsxs("button",{type:"button",disabled:c,onClick:async()=>{if(h(null),r(i),!s){d(!0);try{fontsDebug.info("AttributesEditor: loadFontFamily start",{familyName:i}),await loadFontFamily(g,i,{forceFetch:!0}),n(i),fontsDebug.info("AttributesEditor: loadFontFamily success",{familyName:i})}catch(e){const t=e instanceof Error?e.message:String(e);h(`Failed to load "${i}": ${t}`),a(`Failed to load font "${i}": ${t}`)}finally{d(!1)}}},className:l,"aria-label":`Select font ${i}`,children:[jsx("span",{className:"attributes-editor__font-option-name",title:i,children:i}),jsx("span",{className:"attributes-editor__font-option-status",children:s?"Loaded":"Not loaded"})]},i)})})]})}):null]})}function getPreferredOrderedSizeEntries(e){const t=["width","height","minWidth","minHeight","maxWidth","maxHeight"];return[...e].sort((e,r)=>{const i=t.indexOf(e.name),o=t.indexOf(r.name),n=-1===i?Number.MAX_SAFE_INTEGER:i,a=-1===o?Number.MAX_SAFE_INTEGER:o;return n!==a?n-a:e.name.localeCompare(r.name)})}function getSpecialSectionTitle(e){const t=e.key,r=e.meta;return{title:r?.label&&r.label.trim().length>0?r.label:t.charAt(0).toUpperCase()+t.slice(1),description:r?.description}}function AttributesEditorView(e){const{isInvalidNode:t,componentTitle:r,componentDescription:i,mockableFeatureKeys:o,activeMockableFeature:n,setActiveMockableFeature:a,tabs:s,tabContentInfo:l,activeTab:c,setActiveTab:d,firstAvailableTab:p,activeEntries:h,activeSpecialSections:u,hasTitleField:g,hasDescriptionField:m,hasStringChildren:f,childrenValue:y,handleChildrenChange:b,attributeMeta:C,data:v,getAttributeValue:x,handleAttributeChange:S,projectColorsForPicker:w,layoutContext:_,viewAttributes:k,attributes:T,projectFonts:M,loadedFonts:P,markFontLoaded:O,addError:E}=e,L=jsxs("div",{className:"attributes-editor__component-meta",children:[jsx("p",{className:"attributes-editor__component-title",children:r}),i?jsx("p",{className:"attributes-editor__component-description",children:i}):null]}),A=x("title"),B=x("description"),z=!t&&(g||m)?jsxs("section",{className:"attributes-editor__top-fields",children:[g?jsxs("div",{className:"attributes-editor__field-wrapper",children:[jsx("label",{className:"attributes-editor__field-label",htmlFor:"title",children:"Title (max 20 characters for display purposes)"}),jsx("input",{id:"title",className:"input",type:"text",maxLength:20,value:"string"==typeof A?A:"",onChange:e=>S("title",e.target.value)})]}):null,m?jsxs("div",{className:"attributes-editor__field-wrapper",children:[jsx("label",{className:"attributes-editor__field-label",htmlFor:"description",children:"Description (for display purposes)"}),jsx("input",{id:"description",className:"input",type:"text",value:"string"==typeof B?B:"",onChange:e=>S("description",e.target.value)})]}):null]}):null,I=o.length>0?jsxs("section",{className:"attributes-editor__mockable",children:[jsx("p",{className:"attributes-editor__mockable-title",children:"Mockable"}),jsx("table",{className:"attributes-editor__mockable-table",children:jsx("tbody",{children:o.map(e=>jsxs("tr",{className:"attributes-editor__mockable-row",children:[jsx("td",{className:"attributes-editor__mockable-name",children:e}),jsx("td",{className:"attributes-editor__mockable-action",children:jsx("button",{type:"button",className:"editor-button",onClick:()=>a(e),children:e})})]},e))})})]}):null,R=jsx("div",{className:"attributes-editor__tabs",children:s.map(e=>{const t=e.id===c,r=l[e.id],i=r.baseCount+r.specialCount,o=0===i,n=["attributes-editor__tab-button",t?"attributes-editor__tab-button--active":""].filter(Boolean).join(" ");return jsxs("button",{type:"button",onClick:()=>!o&&d(e.id),disabled:o,className:n,children:[e.label,i>0?` (${i})`:""]},e.id)})}),V=f?jsxs("div",{className:"attributes-editor__field-wrapper attributes-editor__field-wrapper--children",children:[jsx("p",{className:"attributes-editor__field-label",children:"Text"}),jsx("input",{type:"text",className:"attributes-editor__text-input",value:y,onChange:e=>b(e.target.value)})]}):null,D=useMemo(()=>{const e=l[p];return(e?.baseCount??0)+(e?.specialCount??0)>0||f&&void 0!==y},[y,p,f,l]);return t?null:jsxs("div",{className:"attributes-editor",children:[L,z,I,R,V,u.map(function(e){if("size"===e.key){const{title:t,description:r}=getSpecialSectionTitle(e),i=getPreferredOrderedSizeEntries(e.entries);return jsxs("section",{className:"special-category-section",children:[jsx("div",{className:"special-category-section__header",children:jsx("p",{className:"special-category-section__title",children:t})}),r?jsx("p",{className:"special-category-section__description",children:r}):null,jsx("div",{className:"attributes-editor__size-grid",children:i.map(e=>{const t=C?.[e.name]?.label??e.name,r=C?.[e.name]?.description,i=toPreferredScale(C?.[e.name]?.preferedScale),o=x(e.name),n=isBooleanFieldType(e.type),a=["attributes-editor__field-wrapper",n?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:r,children:jsxs("div",{className:`${a} attributes-editor__size-grid-item`,children:[n?null:jsx("p",{className:"attributes-editor__field-label",children:t}),"iconType"===e.type?jsx(IconTypePickerField,{name:e.name,value:o,onChange:t=>S(e.name,t)}):"fontFamily"===e.type?jsx(FontFamilyPickerField,{name:e.name,value:o,onChange:t=>S(e.name,t),fonts:M,loadedFonts:P,markFontLoaded:O,addError:E}):jsx(Field,{name:e.name,type:e.type,value:o,onChange:t=>S(e.name,t),componentType:v?.type,projectColors:w,layoutContext:_,viewAttributes:k,label:n?t:void 0,preferredScale:i})]})},e.name)})})]},e.key)}return jsx(SpecialCategorySection,{category:e.key,entries:e.entries,attributeMeta:C,attributes:T,getAttributeValue:x,onAttributeChange:S,componentType:v?.type,projectColors:w,layoutContext:_,viewAttributes:k,meta:e.meta},e.key)}),h.map(function(e){const t=e.name,r=e.type,i=C?.[t]?.label??t,o=C?.[t]?.description,n=toPreferredScale(C?.[t]?.preferredScale??C?.[t]?.preferedScale),a=isBooleanFieldType(r),s=["attributes-editor__field-wrapper",a?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" "),l=x(t);return jsx(FieldInfoTooltip,{description:o,children:jsxs("div",{className:s,children:[a?null:jsx("p",{className:"attributes-editor__field-label",children:i}),"iconType"===r?jsx(IconTypePickerField,{name:t,value:l,onChange:e=>S(t,e)}):"fontFamily"===r?jsx(FontFamilyPickerField,{name:t,value:l,onChange:e=>S(t,e),fonts:M,loadedFonts:P,markFontLoaded:O,addError:E}):jsx(Field,{name:t,type:r,value:l,onChange:e=>S(t,e),componentType:v?.type,projectColors:w,layoutContext:_,viewAttributes:k,label:a?i:void 0,preferredScale:n})]})},t)}),D?null:jsx("div",{className:"attributes-editor__empty-state",children:"No editable attributes"}),n?jsx(MockableFeatureModal,{featureKey:n,onClose:()=>a(null)}):null]})}function isPlainObject$2(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function getStyleBagSourceAndValue(e){const t=e??{},r=t.styles;if(isPlainObject$2(r))return{source:"styles",styleBag:r};const i=t.style;return isPlainObject$2(i)?{source:"style",styleBag:i}:{source:"none",styleBag:void 0}}function isAttributeTypeSpec(e){return"string"==typeof e||Array.isArray(e)}function getNestedStyleSchema(e){const t=e.styles??e.style;if(!isPlainObject$2(t))return;const r={};for(const[e,i]of Object.entries(t))isAttributeTypeSpec(i)&&(r[e]=i);return Object.keys(r).length?r:void 0}function buildAttributesEditorEntries(e,t){const r=getNestedStyleSchema(e),i=Object.keys(t??{}),o=Object.keys(e).filter(e=>"style"!==e&&"styles"!==e),n=Object.keys(r??{}),a=new Set([...i,...o,...n]),s=Array.from(a).filter(e=>"style"!==e&&"styles"!==e),l=[];return s.forEach(t=>{const i=e[t],o=r?.[t],n=isAttributeTypeSpec(i)?i:o;n&&l.push({name:t,type:n})}),l}function isValidStyleBagValue(e){const t=e,r=t?.styles,i=t?.style;return!(null!=r&&!isPlainObject$2(r)||null!=i&&!isPlainObject$2(i))}function findLegacyFlatStyleKeys(e,t){return isPlainObject$2(e)?Object.keys(e).filter(e=>"style"!==e&&"styles"!==e&&t(e)):[]}function isPlainObject$1(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function useAttributesEditorModel({node:e,onChange:t,projectColors:r}){const i=!e||isNodeString(e),o=useMemo(()=>i?{type:"View",children:null,attributes:{}}:e,[i,e]),n=useNode(o),{appConfig:a,fonts:s,loadedFonts:l,markFontLoaded:c,addError:d}=useRenderStore(e=>({appConfig:e.appConfig,fonts:e.fonts,loadedFonts:e.loadedFonts,markFontLoaded:e.markFontLoaded,addError:e.addError})),p=useMemo(()=>getAttributeSchema(n?.type)??{},[n?.type]),h=getAttributeMeta(n?.type),u=useMemo(()=>n?.attributes??{},[n?.attributes]),g=useMemo(()=>getStyleAttributeKeySet(),[]),m=useMemo(()=>getStyleBagSourceAndValue(u),[u]),f=m.styleBag,y=useCallback(e=>{const t=h?.[e]?.category;return"style"===t||g.has(e)},[h,g]),b=useCallback(e=>!!y(e)||!(!f||!Object.prototype.hasOwnProperty.call(f,e)),[y,f]),C=useMemo(()=>findLegacyFlatStyleKeys(u,y),[u,y]),v=useMemo(()=>!isValidStyleBagValue(u),[u]);useEffect(()=>{const e="style"===m.source;(0!==C.length||v||e)&&logger.warn("AttributesEditor","Legacy/unmigrated attributes detected. This editor expects schemaVersion=2 (style nested under attributes.styles). Please run migrations.",{componentType:n?.type,nodeKey:o.key,legacyFlatStyleKeys:C,hasInvalidStyleBag:v,styleBagSource:m.source})},[o,n?.type,v,C,m.source]);const x=useCallback(e=>b(e)?f?.[e]:u?.[e],[u,b,f]),S=useMemo(()=>r,[r]),w=useMemo(()=>"View"===n?.type?u:void 0,[u,n?.type]),_=useMemo(()=>({flexDirection:f?.flexDirection,alignItems:f?.alignItems,justifyContent:f?.justifyContent}),[f?.flexDirection,f?.alignItems,f?.justifyContent]),k=useMemo(()=>n?.type?getPatternByType(n.type):void 0,[n?.type]),T=k?.meta,M=T?.label??n?.type??"Component",P=T?.description,O="title"===k?.pattern?.title,E="description"===k?.pattern?.description,L=useMemo(()=>buildAttributesEditorEntries(p,h).filter(({type:e})=>"string"!=typeof e||"never"!==e),[h,p]),A=useMemo(()=>T?.hideAllAttributes?L.filter(({name:e})=>{const t=h?.[e];return!0===t?.forceVisible||!0===t?.override}):L,[h,T?.hideAllAttributes,L]),B=useMemo(()=>{const e=T?.mockableFeatures;return e&&"object"==typeof e?Object.entries(e).filter(([,e])=>!0===e).map(([e])=>e).filter(e=>"string"==typeof e&&e.trim().length>0).sort((e,t)=>e.localeCompare(t)):[]},[T?.mockableFeatures]),[z,I]=useState(null),R=useMemo(()=>{const e={style:[],container:[],other:[]},t={},r=e=>h?.[e]?.sort??Number.MAX_SAFE_INTEGER,i=(e,t)=>{const i=r(e.name)-r(t.name);return 0!==i?i:e.name.localeCompare(t.name)};return A.forEach(({name:r,type:i})=>{const o=h?.[r],n=o?.specialCategory;if("string"==typeof n){const e=n.trim();if(e)return t[e]||(t[e]=[]),void t[e].push({name:r,type:i})}const a=o?.category;e["style"===a?"style":"container"===a?"container":"other"].push({name:r,type:i})}),Object.values(e).forEach(e=>e.sort(i)),Object.values(t).forEach(e=>e.sort(i)),{grouped:e,specialGroups:t}},[h,A]),{grouped:V,specialGroups:D}=R,N=useMemo(()=>{const e={style:[],container:[],other:[]},t=(e,t)=>{const r=(e.meta?.sort??Number.MAX_SAFE_INTEGER)-(t.meta?.sort??Number.MAX_SAFE_INTEGER);return 0!==r?r:e.key.localeCompare(t.key)};return Object.entries(D).forEach(([t,r])=>{if(!r.length)return;const i=T?.specialCategories?.[t];e["style"===i?.category?"style":"container"===i?.category?"container":"other"].push({key:t,entries:r,meta:i})}),Object.keys(e).forEach(r=>{e[r].sort(t)}),e},[T?.specialCategories,D]),F=useMemo(()=>[{id:"container",label:"Container",entries:V.container},{id:"style",label:"Styles",entries:V.style},{id:"other",label:"Others",entries:V.other}],[V]),j=useMemo(()=>{const e={style:{baseCount:0,specialCount:0},container:{baseCount:0,specialCount:0},other:{baseCount:0,specialCount:0}};return F.forEach(t=>{e[t.id].baseCount=t.entries.length}),Object.keys(N).forEach(t=>{e[t].specialCount=N[t].reduce((e,t)=>e+t.entries.length,0)}),e},[N,F]),H=useMemo(()=>F.find(e=>{const t=j[e.id];return t.baseCount+t.specialCount>0})?.id??"other",[j,F]),[W,$]=useState(H);useEffect(()=>{$(e=>{const t=j[e];return t&&t.baseCount+t.specialCount>0?e:H})},[H,j]);const G=F.find(e=>e.id===W)?.entries??F.find(e=>e.id===H)?.entries??[],U=N[W]??[],Z=useCallback((e,r)=>{const i={...o?.attributes??{}??{}};if(y(e)){const t={...isPlainObject$1(i.styles)?i.styles:isPlainObject$1(i.style)?i.style:{},[e]:r};i.styles=t,delete i.style,e in i&&delete i[e]}else i[e]=r;const n={...o,attributes:i};t(n)},[o,y,t]),Y=useCallback(e=>{const r={...o,children:e};t(r)},[o,t]),K=!!k?.pattern&&"string"===k.pattern.children,q="string"==typeof o.children?o.children:"";return{isInvalidNode:i,baseData:o,data:n,appConfig:a,projectFonts:s,loadedFonts:l,markFontLoaded:c,addError:d,schema:p,attributeMeta:h,componentTitle:M,componentDescription:P,patternForType:k,componentMeta:T,attributes:u,styleBag:f,projectColorsForPicker:S,viewAttributes:w,layoutContext:_,getAttributeValue:x,handleAttributeChange:Z,handleChildrenChange:Y,tabs:F,tabContentInfo:j,firstAvailableTab:H,activeTab:W,setActiveTab:$,activeEntries:G,specialSectionsByTab:N,activeSpecialSections:U,mockableFeatureKeys:B,activeMockableFeature:z,setActiveMockableFeature:I,hasTitleField:O,hasDescriptionField:E,hasStringChildren:K,childrenValue:q}}function AttributesEditor(e){useLogRender("AttributesEditor");const t=useAttributesEditorModel(e),r=t.attributes?.title,i=t.hasTitleField,o=useRef(t.handleAttributeChange);return o.current=t.handleAttributeChange,useEffect(()=>{i&&"string"==typeof r&&r.length>20&&o.current("title",r.slice(0,20))},[i,r]),jsx(AttributesEditorView,{...t})}function deleteNodeFromTree(e,t){if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let r=!1;const i=[];for(const o of e){if(o===t){r=!0;continue}const e=deleteNodeFromTree(o,t);e!==o&&(r=!0),i.push(e)}return r?i:e}const r=e;if("children"in r){const i=r.children;if(!i)return e;if(Array.isArray(i)){let o=!1;const n=[];for(const e of i){if(e===t){o=!0;continue}const r=deleteNodeFromTree(e,t);r!==e&&(o=!0),n.push(r)}return o?{...r,children:n}:e}if(i===t)return{...r,children:""};const o=deleteNodeFromTree(i,t);if(o!==i)return{...r,children:o}}return e}function isNodeRecord(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)}function findNodeByKey(e,t){if(!t)return null;if(null==e)return null;if("string"==typeof e)return null;if(Array.isArray(e)){for(const r of e){const e=findNodeByKey(r,t);if(e)return e}return null}const r=e;return r.key===t?r:r.children?findNodeByKey(r.children,t):null}function replaceNode(e,t,r){if(e===t)return r;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let i=!1;const o=e.map(e=>{const o=replaceNode(e,t,r);return o!==e&&(i=!0),o});return i?o:e}const i=e;if("children"in i){const e=i.children,o=Array.isArray(e)?e.map(e=>replaceNode(e,t,r)):replaceNode(e,t,r);if(o!==e)return{...i,children:o}}return e}function AttributesEditorPanel({attributes:e,onChange:t,projectColors:r}){useLogRender("AttributesEditorPanel");const{current:i,setCurrent:o}=useRenderStore(e=>({current:e.current,setCurrent:e.setCurrent})),n=useRef(e);n.current=e;const a=useRef(i);a.current=i;const s=useRef(t);s.current=t;const l=useCallback(e=>{const t=n.current,r=a.current;if(!r)return;const i=replaceNode(t,r,e);s.current(i),o(e)},[o]);if(!i)return null;const c="object"==typeof i&&!Array.isArray(i)&&"key"in i?i.key:void 0,d=c&&e?findNodeByKey(e,c):null;return jsx("div",{className:"attributes-editor-panel",children:jsx(AttributesEditor,{node:d??i,onChange:l,projectColors:r},c??void 0)})}function Breadcrumb({items:e,separator:t="/",ariaLabel:r="Breadcrumb",onBack:i,backLabel:o="Back"}){return useLogRender("Breadcrumb"),jsxs("nav",{className:"breadcrumb","aria-label":r,children:[i&&jsxs("button",{type:"button",className:"breadcrumb__back",onClick:i,"aria-label":"Go back",children:[jsx("span",{className:"breadcrumb__back-icon","aria-hidden":!0,children:"←"}),jsx("span",{children:o})]}),jsx("ol",{className:"breadcrumb__list",children:e.map((r,i)=>{const o=i===e.length-1,n=!o&&(r.to||r.onClick);return jsxs("li",{className:"breadcrumb__item "+(n?"breadcrumb__item--clickable":""),onClick:n?r.onClick:void 0,role:n?"button":void 0,tabIndex:n?0:void 0,onKeyDown:n&&r.onClick?e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),r.onClick?.())}:void 0,children:[i>0&&jsx("span",{className:"breadcrumb__separator","aria-hidden":!0,children:t}),o||!r.to&&!r.onClick?jsx("span",{className:"breadcrumb__current","aria-current":"page",children:r.label}):jsx("span",{className:"breadcrumb__link",children:r.label})]},`${r.label}-${i}`)})})]})}function BuilderButton({node:e,onClick:t,onDelete:r,onMoveUp:i,onMoveDown:o,childrenCount:n,onMore:a}){const[s,l]=useState(!1),c=useRef(null),d=useMemo(()=>`builder-node-actions-${Math.random().toString(36).slice(2,9)}`,[]);if(useEffect(()=>{if(!s)return;const e=e=>{const t=c.current;t&&(e.target instanceof Element&&t.contains(e.target)||l(!1))},t=e=>{"Escape"===e.key&&l(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("keydown",t)}},[s]),isNodeNullOrUndefined(e))return jsx("div",{className:"builder__placeholder",children:"Null or undefined"});if(isNodeString(e))return jsx("div",{className:"builder__text",children:e});const p=e;let h="";p.attributes?.condition&&(h=`${p.attributes.condition} ${p.attributes.conditionVariable??""}`.trim());const u=getPatternByType(p.type)?.meta?.label?.trim(),g=u&&u.length>0?u:p.type,m=h.trim()?h:"",f="string"==typeof p.attributes?.title?p.attributes.title.trim():"",y=f.length>0,b=y?f:g,C=y||m.length>0||"number"==typeof n;return jsxs("div",{className:"builder__button",children:[(i||o)&&jsxs("div",{className:"builder__sort-controls",children:[jsx("button",{type:"button",className:"builder__sort-button",onClick:e=>{e.stopPropagation(),i?.()},disabled:!i,"aria-label":"Move up",children:"↑"}),jsx("button",{type:"button",className:"builder__sort-button",onClick:e=>{e.stopPropagation(),o?.()},disabled:!o,"aria-label":"Move down",children:"↓"})]}),jsx("button",{type:"button",className:"builder__button-link",onClick:t,children:b}),jsxs("div",{className:"builder__button-actions",ref:c,children:[jsx("button",{type:"button",className:"builder__button-actions-trigger","aria-label":"Open node actions","aria-haspopup":"menu","aria-expanded":s,"aria-controls":d,onClick:e=>{e.stopPropagation(),l(e=>!e)},children:jsx(Icon,{iconType:"chevron-right",size:16})}),s&&jsxs("ul",{id:d,className:"builder__button-actions-menu",role:"menu","aria-label":"Node actions",children:[a?jsx("li",{role:"none",children:jsx("button",{type:"button",className:"builder__button-actions-item",role:"menuitem",onClick:e=>{e.stopPropagation(),a(),l(!1)},children:"More"})}):null,jsx("li",{role:"none",children:jsx("button",{type:"button",className:"builder__button-actions-item builder__button-actions-item--danger",role:"menuitem",disabled:!r,onClick:t=>{if(t.stopPropagation(),!r)return;window.confirm("Do you want to delete?")&&(r&&(isNodeNullOrUndefined(e)||isNodeString(e)||r(e)),l(!1))},children:"Delete"})})]})]}),C&&jsxs("span",{className:"builder__button-condition",children:[y||m.length>0?jsx("span",{className:"builder__button-condition-text",children:y?jsxs(Fragment,{children:[jsx("small",{children:g}),m?` · ${m}`:""]}):m}):jsx("span",{className:"builder__button-condition-text"}),"number"==typeof n?jsxs("span",{className:"builder__button-children-count",children:[n," children"]}):null]})]})}function BuilderTreeNode({node:e,depthRemaining:t,onClick:r,onDelete:i,onMoveUp:o,onMoveDown:n}){const a=getNodeChildren(e),s=a.length>0,l=s&&t<=0?a.length:void 0,c=jsx(BuilderButton,{onClick:()=>{r(e)},node:e,onDelete:i,onMoveUp:o,onMoveDown:n,childrenCount:l,onMore:s&&t<=0?()=>r(e):void 0});return s?t<=0?jsx("div",{className:"builder__children",children:c}):jsxs("div",{className:"builder__children",children:[c,a.map((e,o)=>jsx(BuilderTreeNode,{node:e,depthRemaining:t-1,onClick:r,onDelete:i},o))]}):c}function BuilderComponent({node:e,onClick:t,onAdd:r,onDelete:i,onReorder:o,onMoveChildUp:n,onMoveChildDown:a,maxNestedDepth:s}){if(isNodeString(e))return jsxs("div",{className:"builder__text",children:[e," (Please define a node)"]});const l=r&&jsxs("button",{type:"button",className:"editor-button builder__add-button",onClick:r,children:[jsx("span",{className:"builder__add-button-icon","aria-hidden":"true",children:"+"}),jsx("span",{children:"Add component"})]});if(isNodeArray(e)){const r=e,n=Math.max(0,Number.isFinite(s)&&(s??0)>0?Math.floor(s??1)-1:4),a=(e,t)=>{if(!o)return;const i=e+t;if(i<0||i>=r.length)return;const n=[...r],[a]=n.splice(e,1);n.splice(i,0,a),o(r,n)};return jsxs("div",{className:"builder__list",children:[r.map((e,s)=>jsx("div",{className:"builder__list-item",children:jsx(BuilderTreeNode,{node:e,depthRemaining:n,onClick:t,onDelete:i,onMoveUp:o&&s>0?()=>a(s,-1):void 0,onMoveDown:o&&s<r.length-1?()=>a(s,1):void 0})},s)),l]})}const c=e,d=c?.children,p=isNodeArray(d),h=d?p?d:[d]:null,u=Math.max(0,Number.isFinite(s)&&(s??0)>0?Math.floor(s??1)-1:4);return jsxs("div",{className:"builder__node",children:[jsxs("div",{className:"builder__children",children:[jsx(BuilderButton,{onClick:()=>{t(e)},node:e,onDelete:i}),h&&h.map((r,o)=>jsx(BuilderTreeNode,{node:r,depthRemaining:u,onClick:t,onDelete:i,onMoveUp:n&&p&&o>0?()=>n(e,o):void 0,onMoveDown:a&&p&&o<h.length-1?()=>a(e,o):void 0},o))]}),l]})}function Builder({data:e,setData:t,current:r,setCurrent:i,onDeleteNode:o}){useLogRender("Builder");const[n,a]=useState(!1),s=useRenderStore(e=>e.listMaxNested),l=useMemo(()=>collectNodeKeys(e),[e]),c=Number.isFinite(s)&&s>0?Math.floor(s):5,d=useMemo(()=>{const t=findNodePath(e,r);return t.length?t:isNodeNullOrUndefined(r)?isNodeNullOrUndefined(e)?[]:[e]:[r]},[e,r]),p=useCallback(e=>{i(e)},[i]),h=useMemo(()=>d.map((e,t)=>({label:getNodeLabel(e),onClick:t===d.length-1?void 0:()=>p(e)})),[d,p]),u=useCallback(()=>{d.length<2||p(d[d.length-2])},[d,p]),g=useCallback(o=>{const n=k(o,new Set(l));if(isNodeNullOrUndefined(r)){if(isNodeNullOrUndefined(e)||isNodeString(e))return t(n),void i(n);if(Array.isArray(e)){const r=[...e,n];return t(r),void i(r)}const r=e,o={...r,children:appendChild(r.children,n)};return t(o),void i(o)}if(isNodeArray(r)){const o=[...r,n],a=_(e,r,o);return t(a),void i(o)}if(isNodeString(r))return void(r===e&&(t(n),i(n)));const a=r,s={...a,children:appendChild(a.children,n)},c=_(e,r,s);t(c),i(s)},[r,e,t,i,l]),m=useMemo(()=>function(t){if(isNodeNullOrUndefined(t))return[...allcomponentNames];if(isNodeArray(t)&&0===t.length)return[...allcomponentNames];if(isNodeString(t))return t===e?[...allcomponentNames]:[];const r=t.type;if("OnboardButtons"===r)return["OnboardButton"];const i=getPatternByType(r)?.pattern?.children;if(!i)return[];if("never"===i||"string"===i)return[];if("node"===i||Array.isArray(i)&&i.includes("node"))return[...allcomponentNames];if("string"==typeof i)return[i];return[]}(r),[r]),f=useMemo(()=>isNodeNullOrUndefined(r)||isNodeString(r)||isNodeArray(r)?null:r.type??null,[r]),y=m.length>0||null==e||Array.isArray(e)&&0===e.length,b=useCallback(()=>{y&&a(!0)},[y]),C=useCallback(()=>{a(!1)},[]),v=useCallback(e=>{g(e),a(!1)},[g]),x=useCallback((o,n)=>{const a=_(e,o,n);t(a),r===o&&i(n)},[r,e,i,t]),S=useCallback((o,n)=>{if(isNodeNullOrUndefined(o)||isNodeString(o)||isNodeArray(o))return;const a=o,s=a.children;if(!Array.isArray(s))return;if(n<=0||n>=s.length)return;const l=[...s],[c]=l.splice(n,1);l.splice(n-1,0,c);const d={...a,children:l},p=_(e,o,d);t(p),r===o&&i(d)},[r,e,i,t]),w=useCallback((o,n)=>{if(isNodeNullOrUndefined(o)||isNodeString(o)||isNodeArray(o))return;const a=o,s=a.children;if(!Array.isArray(s))return;if(n<0||n>=s.length-1)return;const l=[...s],[c]=l.splice(n,1);l.splice(n+1,0,c);const d={...a,children:l},p=_(e,o,d);t(p),r===o&&i(d)},[r,e,i,t]);function _(e,t,r){if(e===t)return r;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let i=!1;const o=e.map(e=>{const o=_(e,t,r);return o!==e&&(i=!0),o});return i?o:e}const i=e;if("children"in i){const e=i.children,o=Array.isArray(e)?e.map(e=>_(e,t,r)):_(e,t,r);if(o!==e)return{...i,children:o}}return e}function k(e,t){const r=getPatternByType(e)?.pattern,i=getDefaultsForType(e)??{},o=r?.children;let n="";do{n=generateRandomKeyForNode(e)}while(t.has(n));if(t.add(n),"CarouselProvider"===e)return{type:e,key:n,children:k("Carousel",t),attributes:{...i}};let a=null;return a="never"===o?null:"string"===o?"":"node"===o||Array.isArray(o)&&o.includes("node")?null:"string"==typeof o?[k(o,t)]:null,{type:e,key:n,children:a,attributes:{...i}}}return jsxs("div",{className:"builder",children:[jsx(Breadcrumb,{items:h,onBack:d.length>1?u:void 0}),jsx(BuilderComponent,{onClick:p,onAdd:y?b:void 0,onDelete:o,onReorder:x,onMoveChildUp:S,onMoveChildDown:w,maxNestedDepth:c,node:r}),n&&jsx(AddComponentModal,{allowedChildTypes:m,parentType:f,onSelect:v,onClose:C})]})}function appendChild(e,t){return Array.isArray(e)?[...e,t]:null==e||"string"==typeof e?[t]:[e,t]}function getNodeChildren(e){if(isNodeNullOrUndefined(e)||isNodeString(e)||isNodeArray(e))return[];const t=e.children;return t?Array.isArray(t)?t:[t]:[]}function getNodeLabel(e){if(isNodeNullOrUndefined(e))return"Empty";if(isNodeString(e))return e;if(isNodeArray(e))return"Collection";const t=e,r=t.attributes?.title;return"string"==typeof r&&r.trim().length>0?r:t.type??"Node"}function findNodePath(e,t){if(null==e)return[];if(e===t)return[e];if("string"==typeof e)return[];if(Array.isArray(e)){for(const r of e){const e=findNodePath(r,t);if(e.length)return e}return[]}const r=e.children;if(!r)return[];const i=Array.isArray(r)?r:[r];for(const r of i){const i=findNodePath(r,t);if(i.length)return[e,...i]}return[]}function BuilderPanel({data:e,setData:t,onDeleteNode:r}){useLogRender("BuilderPanel");const{current:i,setCurrent:o}=useRenderStore(e=>({current:e.current,setCurrent:e.setCurrent}));return jsx("div",{role:"region",className:"editor-panel-builder editor-panel editor-panel--active","aria-hidden":!1,children:jsx(Builder,{data:e,setData:t,current:i,setCurrent:o,onDeleteNode:r})})}function isFn(e){return"function"==typeof e}function safeStringify(e){try{const t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("function"==typeof r){const e=r.name;return`[Function${e?`: ${e}`:""}]`}if("bigint"==typeof r)return r.toString();if(r instanceof Error)return{name:r.name,message:r.message,stack:r.stack};if(r instanceof Map)return{__type:"Map",entries:Array.from(r.entries())};if(r instanceof Set)return{__type:"Set",values:Array.from(r.values())};if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r},2)}catch(e){return`<< Unable to stringify value: ${String(e)} >>`}}function safeParseJson(e){if("string"!=typeof e||!e.trim())return null;try{return JSON.parse(e)}catch{return null}}function safeGetPersistedRenderStore(){try{return"undefined"==typeof localStorage?null:localStorage.getItem("render-store")}catch(e){return{error:String(e)}}}function logRenderStore(e={}){const{label:t,includeLocalStorage:r=!0,extra:i}=e,o=useRenderStore.getState(),n=Object.keys(o).sort(),a={},s=[];for(const e of n){const t=o[e];isFn(t)?s.push(e):a[e]=t}const l="[RB Debug] Render store"+(t?` (${t})`:""),c=console.groupCollapsed,d=console.groupEnd;isFn(c)?c(l):console.info(l);const p=r?safeGetPersistedRenderStore():null,h=r?safeParseJson(p):null,u=safeStringify({snapshot:a,actions:s,extra:i??null,persisted:r?{raw:p,parsed:h}:null});console.info("json",u),console.info("state",a),console.info("actions",s),r&&console.info("localStorage.render-store (raw)",p),i&&console.info("extra",i),isFn(d)&&d()}function DebugJsonPage({data:e,setData:t,project:r,onClose:i,title:o="Debug JSON",description:n,previewMode:a,setPreviewMode:s,appConfig:l,setAppConfig:c,logLabel:d}){const p=useRenderStore(e=>e.setCurrent),h=useRenderStore(e=>e.listMaxNested),u=useRenderStore(e=>e.setListMaxNested),g=useRenderStore(e=>e.theme),m=useRenderStore(e=>e.setTheme),f=useRenderStore(e=>e.isRtl),y=useRenderStore(e=>e.setIsRtl),[b,C]=useState(String(h)),v="function"==typeof s,x=e=>(e=>"object"==typeof e&&null!==e&&!Array.isArray(e))(e)&&"data"in e?e.data:e;function S(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function w(e){if(isNodeNullOrUndefined(e)||isNodeString(e))return e;if(isNodeArray(e)){return e.map(e=>w(e))}if(!S(e))return e;const t=e,r=w(t.children);if(!S(t.attributes))return{...t,children:r};const i={...t.attributes};return"style"in i&&S(i.style)&&(i.styles=i.style,delete i.style),{...t,children:r,attributes:i}}const _=useMemo(()=>function e(t){if(isNodeNullOrUndefined(t)||isNodeString(t))return!1;if(isNodeArray(t)){return t.some(e)}if(!S(t))return!1;const r=t;return!(!S(r.attributes)||!("style"in r.attributes))||e(r.children)}(e),[e]);useEffect(()=>{C(String(h))},[h]),useEffect(()=>{const e=window.setTimeout(()=>{const e=Number.parseInt(b,10);!Number.isFinite(e)||e<=0||u(e)},300);return()=>window.clearTimeout(e)},[b,u]);return jsxs(Fragment,{children:[jsxs("div",{className:"modal__header localication-modal__header",children:[jsxs("div",{className:"localication-modal__header-main",children:[jsx("h3",{id:"debug-json-editor-title",className:"modal__title",children:o}),n?jsx("p",{className:"localication-modal__description",children:n}):null]}),jsx("button",{type:"button",className:"editor-button",title:"Log render store to console",onClick:()=>logRenderStore({label:d,extra:{project:r??null,projectData:e??null}}),children:"Log store"}),_?jsx("button",{type:"button",className:"editor-button",title:"Migrate attributes.style to attributes.styles (schemaVersion=2)",onClick:()=>{if(!e)return;const r=w(e);t(r),p(r)},children:"Fix style → styles"}):null,i?jsx("button",{type:"button",className:"editor-button",onClick:()=>i(),children:"Close"}):null]}),jsxs("div",{className:"localication-modal__body",children:[jsxs("div",{className:"localication-modal__controls",children:[v?jsx(Checkbox,{label:"Preview mode",checked:Boolean(a),onChange:s}):null,jsx(Checkbox,{label:"Dark Mode",checked:"dark"===g,onChange:e=>m(e?"dark":"light")}),jsx(Checkbox,{label:"Is RTL",checked:f,onChange:y})]}),jsxs("div",{className:"localication-modal__controls",children:[jsx("label",{children:"List max nested depth"}),jsx("input",{type:"number",min:1,className:"input",value:b,onChange:e=>C(e.target.value)})]}),jsx("div",{className:"localication-modal__editor",children:jsx(JsonTextEditor,{rootName:"node",value:e??{},onChange:e=>{const r=analyseAndProccess(x(e));t(r),p(r)},className:"localication-modal__json-editor"})})]})]})}function BottomBar({className:e,data:t,setData:r,project:i}){const{appConfig:o,setAppConfig:n,theme:a,setTheme:s,defaultLanguage:l,setDefaultLanguage:c,previewMode:d,setPreviewMode:p,isRtl:h,setIsRtl:u}=useRenderStore(e=>({appConfig:e.appConfig,setAppConfig:e.setAppConfig,theme:e.theme,setTheme:e.setTheme,defaultLanguage:e.defaultLanguage,setDefaultLanguage:e.setDefaultLanguage,previewMode:e.previewMode,setPreviewMode:e.setPreviewMode,isRtl:e.isRtl,setIsRtl:e.setIsRtl})),[g,m]=useState(!1),[f,y]=useState(!1),[b,C]=useState(!1),v=useMemo(()=>["en","tr","ar"],[]),x=l,S="dark"===a,w=h,_=d,k=S?"moon-bold":"sun";return jsxs(Fragment,{children:[jsxs("div",{className:["rb-bottom-bar",e].filter(Boolean).join(" "),children:[jsx("button",{type:"button",className:"rb-bottom-bar__button"+(S?" is-active":""),"aria-label":"Theme","aria-pressed":S,onClick:()=>s("dark"===a?"light":"dark"),children:jsx(Icon,{iconType:k,size:20,color:"currentColor",alt:""})}),jsxs("button",{type:"button",className:"rb-bottom-bar__button rb-bottom-bar__button--rtl"+(w?" is-active":""),"aria-label":"RTL","aria-pressed":w,onClick:()=>u(!h),children:[jsx(Icon,{iconType:"translate",size:18,color:"currentColor",alt:""}),jsx("span",{className:"rb-bottom-bar__rtl-text",children:"RTL"})]}),jsx("button",{type:"button",className:"rb-bottom-bar__button rb-bottom-bar__button--preview"+(_?" is-active":""),"aria-label":"Magic cursor tool","aria-pressed":_,onClick:()=>p(!d),children:jsx(Icon,{iconType:"magicpen",size:20,color:"currentColor",alt:""})}),jsx("button",{type:"button",className:"rb-bottom-bar__button"+(g?" is-active":""),"aria-label":"Debug","aria-pressed":g,onClick:()=>m(!0),children:jsx(Icon,{iconType:"speedometer-03",size:20,color:"currentColor",alt:""})}),jsx("button",{type:"button",className:"rb-bottom-bar__button"+(f?" is-active":""),"aria-label":"Localization","aria-pressed":f,onClick:()=>y(!0),children:jsx(Icon,{iconType:"globe-01",size:20,color:"currentColor",alt:""})}),jsx("button",{type:"button",className:"rb-bottom-bar__button"+(b?" is-active":""),"aria-label":"Inspect","aria-pressed":b,onClick:()=>C(!0),children:jsx(Icon,{iconType:"info-circle",size:20,color:"currentColor",alt:""})}),jsx("div",{className:"rb-bottom-bar__spacer"}),jsx("div",{className:"rb-bottom-bar__langs","aria-label":"Language",children:v.map(e=>jsx("button",{type:"button",className:"rb-bottom-bar__lang"+(x===e?" is-active":""),onClick:()=>c(e),children:e},e))})]}),f&&jsx(LocalicationModal,{data:o.localication??{},onChange:e=>{n({...o,localication:e})},onClose:()=>y(!1)}),g&&jsx(Modal,{onClose:()=>m(!1),ariaLabelledBy:"debug-json-editor-title",className:"modal--large modal--scrollable",contentClassName:"localication-modal__content",children:jsx(DebugJsonPage,{project:i,data:t,setData:r,onClose:()=>m(!1),description:"Inspect and edit raw node JSON.",previewMode:d,setPreviewMode:p,appConfig:o,setAppConfig:n,logLabel:"BottomBar Debug JSON"})}),b&&jsx(InspectModal,{onClose:()=>C(!1)})]})}var v="5.6.10",fr=30,ip=30,op=210,w=800,h=600,nm="åæ 1",ddd=0,assets=[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"å½¢ç¶å¾å± 18",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:340,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:0,s:[0]},{t:30,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"å½¢ç¶å¾å± 17",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:320,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:10,s:[0]},{t:40,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:10,bm:0},{ddd:0,ind:3,ty:4,nm:"å½¢ç¶å¾å± 16",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:300,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:20,s:[0]},{t:50,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:20,bm:0},{ddd:0,ind:4,ty:4,nm:"å½¢ç¶å¾å± 15",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:280,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:30,s:[0]},{t:60,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:30,bm:0},{ddd:0,ind:5,ty:4,nm:"å½¢ç¶å¾å± 14",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:260,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:40,s:[0]},{t:70,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:40,bm:0},{ddd:0,ind:6,ty:4,nm:"å½¢ç¶å¾å± 13",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:240,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:50,s:[0]},{t:80,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:50,bm:0},{ddd:0,ind:7,ty:4,nm:"å½¢ç¶å¾å± 12",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:220,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[0]},{t:90,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:60,bm:0},{ddd:0,ind:8,ty:4,nm:"å½¢ç¶å¾å± 11",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:200,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:70,s:[0]},{t:100,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:70,bm:0},{ddd:0,ind:9,ty:4,nm:"å½¢ç¶å¾å± 10",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:180,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:80,s:[0]},{t:110,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:80,bm:0},{ddd:0,ind:10,ty:4,nm:"å½¢ç¶å¾å± 9",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:160,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:90,s:[0]},{t:120,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:90,bm:0},{ddd:0,ind:11,ty:4,nm:"å½¢ç¶å¾å± 8",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:140,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:100,s:[0]},{t:130,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:100,bm:0},{ddd:0,ind:12,ty:4,nm:"å½¢ç¶å¾å± 7",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:120,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:110,s:[0]},{t:140,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:110,bm:0},{ddd:0,ind:13,ty:4,nm:"å½¢ç¶å¾å± 6",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:100,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:120,s:[0]},{t:150,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:420,st:120,bm:0},{ddd:0,ind:14,ty:4,nm:"å½¢ç¶å¾å± 5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:80,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:130,s:[0]},{t:160,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:430,st:130,bm:0},{ddd:0,ind:15,ty:4,nm:"å½¢ç¶å¾å± 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:60,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:140,s:[0]},{t:170,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:440,st:140,bm:0},{ddd:0,ind:16,ty:4,nm:"å½¢ç¶å¾å± 3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:40,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:150,s:[0]},{t:180,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:450,st:150,bm:0},{ddd:0,ind:17,ty:4,nm:"å½¢ç¶å¾å± 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:20,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:160,s:[0]},{t:190,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:460,st:160,bm:0},{ddd:0,ind:18,ty:4,nm:"å½¢ç¶å¾å± 1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:170,s:[0]},{t:200,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:470,st:170,bm:0},{ddd:0,ind:19,ty:4,nm:"å½¢ç¶å¾å± 24",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:340,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:180,s:[0]},{t:210,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:180,bm:0},{ddd:0,ind:20,ty:4,nm:"å½¢ç¶å¾å± 23",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:320,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:190,s:[0]},{t:220,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:190,bm:0},{ddd:0,ind:21,ty:4,nm:"å½¢ç¶å¾å± 22",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:300,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:200,s:[0]},{t:230,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:200,bm:0},{ddd:0,ind:22,ty:4,nm:"å½¢ç¶å¾å± 21",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:280,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:210,s:[0]},{t:240,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:210,bm:0},{ddd:0,ind:23,ty:4,nm:"å½¢ç¶å¾å± 20",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:260,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:220,s:[0]},{t:250,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:220,bm:0},{ddd:0,ind:24,ty:4,nm:"å½¢ç¶å¾å± 19",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:240,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:230,s:[0]},{t:260,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:230,bm:0}]}],layers=[{ddd:0,ind:1,ty:0,nm:"é¢åæ 1",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[400,300,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ef:[{ty:5,nm:"ç®åé»å¡å·¥å
·",np:4,mn:"ADBE Simple Choker",ix:1,en:1,ef:[{ty:7,nm:"è§å¾",mn:"ADBE Simple Choker-0001",ix:1,v:{a:0,k:1,ix:1}},{ty:0,nm:"é»å¡é®ç½©",mn:"ADBE Simple Choker-0002",ix:2,v:{a:0,k:14,ix:2}}]},{ty:5,nm:"梯度æ¸å",np:10,mn:"ADBE Ramp",ix:2,en:1,ef:[{ty:3,nm:"æ¸åèµ·ç¹",mn:"ADBE Ramp-0001",ix:1,v:{a:0,k:[400,0],ix:1}},{ty:2,nm:"èµ·å§é¢è²",mn:"ADBE Ramp-0002",ix:2,v:{a:0,k:[.263066768646,1,.867243647575,1],ix:2}},{ty:3,nm:"æ¸åç»ç¹",mn:"ADBE Ramp-0003",ix:3,v:{a:0,k:[400,600],ix:3}},{ty:2,nm:"ç»æé¢è²",mn:"ADBE Ramp-0004",ix:4,v:{a:0,k:[.354580283165,1,.820018112659,1],ix:4}},{ty:7,nm:"æ¸åå½¢ç¶",mn:"ADBE Ramp-0005",ix:5,v:{a:0,k:1,ix:5}},{ty:0,nm:"æ¸åæ£å°",mn:"ADBE Ramp-0006",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:"ä¸åå§å¾åæ··å",mn:"ADBE Ramp-0007",ix:7,v:{a:0,k:0,ix:7}},{ty:6,nm:"",mn:"ADBE Ramp-0008",ix:8,v:0}]}],w:800,h:600,ip:0,op:300,st:0,bm:0},{ddd:0,ind:2,ty:0,nm:"é¢åæ 1",refId:"comp_0",sr:1,ks:{o:{a:0,k:56,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,320,0],ix:2},a:{a:0,k:[400,300,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ef:[{ty:5,nm:"ç®åé»å¡å·¥å
·",np:4,mn:"ADBE Simple Choker",ix:1,en:1,ef:[{ty:7,nm:"è§å¾",mn:"ADBE Simple Choker-0001",ix:1,v:{a:0,k:1,ix:1}},{ty:0,nm:"é»å¡é®ç½©",mn:"ADBE Simple Choker-0002",ix:2,v:{a:0,k:14,ix:2}}]},{ty:5,nm:"梯度æ¸å",np:10,mn:"ADBE Ramp",ix:2,en:1,ef:[{ty:3,nm:"æ¸åèµ·ç¹",mn:"ADBE Ramp-0001",ix:1,v:{a:0,k:[400,0],ix:1}},{ty:2,nm:"èµ·å§é¢è²",mn:"ADBE Ramp-0002",ix:2,v:{a:0,k:[.263066768646,1,.867243647575,1],ix:2}},{ty:3,nm:"æ¸åç»ç¹",mn:"ADBE Ramp-0003",ix:3,v:{a:0,k:[400,600],ix:3}},{ty:2,nm:"ç»æé¢è²",mn:"ADBE Ramp-0004",ix:4,v:{a:0,k:[.354580283165,1,.820018112659,1],ix:4}},{ty:7,nm:"æ¸åå½¢ç¶",mn:"ADBE Ramp-0005",ix:5,v:{a:0,k:1,ix:5}},{ty:0,nm:"æ¸åæ£å°",mn:"ADBE Ramp-0006",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:"ä¸åå§å¾åæ··å",mn:"ADBE Ramp-0007",ix:7,v:{a:0,k:0,ix:7}},{ty:6,nm:"",mn:"ADBE Ramp-0008",ix:8,v:0}]},{ty:29,nm:"髿¯æ¨¡ç³",np:5,mn:"ADBE Gaussian Blur 2",ix:3,en:1,ef:[{ty:0,nm:"模ç³åº¦",mn:"ADBE Gaussian Blur 2-0001",ix:1,v:{a:0,k:41.3,ix:1}},{ty:7,nm:"æ¨¡ç³æ¹å",mn:"ADBE Gaussian Blur 2-0002",ix:2,v:{a:0,k:1,ix:2}},{ty:7,nm:"éå¤è¾¹ç¼åç´ ",mn:"ADBE Gaussian Blur 2-0003",ix:3,v:{a:0,k:0,ix:3}}]}],w:800,h:600,ip:0,op:300,st:0,bm:0}],markers=[],loadingAnimation={v:v,fr:fr,ip:ip,op:op,w:w,h:h,nm:nm,ddd:ddd,assets:assets,layers:layers,markers:markers};function LoadingComponent(){return jsx("div",{className:"rb-loading",children:jsx(Lottie,{animationData:loadingAnimation,loop:!0,autoplay:!0})})}function useSyncHtmlThemeClass(){const e=useRenderStore(e=>e.theme);useEffect(()=>{if("undefined"==typeof document)return;const t=document.documentElement;t.classList.toggle("dark","dark"===e),t.classList.toggle("light","light"===e)},[e])}function safeJsonStringify(e){try{const t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r},2)}catch(e){return`<< Unable to stringify value: ${String(e)} >>`}}async function copyTextToClipboard(e){try{if("undefined"!=typeof navigator&&navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{if("undefined"==typeof document)return!1;const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly","true"),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();const r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return!1}}function parseValidationPrefix(e){const t=e.indexOf(": ");if(t<=0)return{reason:e};const r=e.slice(0,t),i=e.slice(t+2);return r.startsWith("root")?{path:r,reason:i}:{reason:e}}function isObject(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function extractNodeFromRawData(e){if(isObject(e)){if("string"==typeof e.type&&e.type.trim())return e;const t=e.data;if(isObject(t)&&"string"==typeof t.type&&t.type.trim())return t}return e}function getNodeType(e){if(!isObject(e))return null;const t=e.type;return"string"==typeof t&&t?t:null}function getFirstComponentFromReactStack(e){if(!e)return null;const t=e.match(/\bat\s+([A-Za-z0-9_$]+)/);return t?.[1]??null}function resolveNodeTypeAtPath(e,t){if(!t||!t.startsWith("root"))return{};let r=e,i=getNodeType(r),o=i?"root":null;const n="root"===t?"":t.replace(/^root\.?/,""),a=/([A-Za-z0-9_$]+)|\[(\d+)\]/g;let s,l="root";for(;s=a.exec(n);){const e=s[1],t=s[2];e?(l=`${l}.${e}`,r=isObject(r)?r[e]:void 0):null!=t&&(l=`${l}[${t}]`,r=Array.isArray(r)?r[Number(t)]:void 0);const n=getNodeType(r);n&&(i=n,o=l)}return i?{nodeType:i,nodePath:o??void 0}:{}}function ProjectDebug({name:e,rawData:t,validationError:r,validationErrorStack:i,products:o,benefits:n,canvasBg:a,belowName:s,jsonEditor:l}){useSyncHtmlThemeClass();const[c,d]=useState(null),[p,h]=useState("idle"),[u,g]=useState("idle"),m=useMemo(()=>safeJsonStringify(t),[t]),f=l?l.value:m,y=useMemo(()=>extractNodeFromRawData(t),[t]),b=y,C=useMemo(()=>getNodeType(y),[y]),v=useMemo(()=>parseValidationPrefix(r),[r]),x=useMemo(()=>resolveNodeTypeAtPath(y,v.path),[y,v.path]),S=useMemo(()=>{const e=[];return e.push(v.reason),C&&e.push(`Root component: ${C}`),v.path&&e.push(`Path: ${v.path}`),x.nodeType&&e.push(`Component at path: ${x.nodeType}${x.nodePath?` (${x.nodePath})`:""}`),e.join("\n")},[v.reason,v.path,C,x.nodeType,x.nodePath]),w=useMemo(()=>{if(!c)return null;const e=[];return e.push(c.message),C&&e.push(`Root component: ${C}`),c.componentStack&&e.push(`Component (from React stack): ${getFirstComponentFromReactStack(c.componentStack)??"unknown"}`),e.join("\n")},[c,C]),_=useMemo(()=>{const e=[];return e.push("=== Validation ==="),e.push(S),i&&(e.push(""),e.push(i)),c&&(e.push(""),e.push("=== Render ==="),w&&e.push(w),c.stack&&(e.push(""),e.push(c.stack)),c.componentStack&&(e.push(""),e.push(c.componentStack))),e.join("\n")},[c,w,i,S]);return jsxs("div",{className:"rb-project-debug",children:[jsxs("section",{className:"rb-project-debug__json","aria-label":"Debug JSON",children:[jsx("div",{className:"rb-project-debug__meta",children:jsxs("div",{children:[jsx("span",{className:"rb-project-debug__meta-label",children:"Name:"})," ",e]})}),jsxs("div",{className:"rb-project-debug__toolbar",children:[jsx("button",{type:"button",className:"editor-button",onClick:async()=>{await copyTextToClipboard(f)&&(h("copied"),window.setTimeout(()=>h("idle"),900))},children:"copied"===p?"Copied JSON":"Copy JSON"}),l?.onSave&&jsx("button",{type:"button",className:"editor-button",disabled:l.saveDisabled,onClick:()=>l.onSave?.(),children:l.saveLabel??"Save"})]}),s&&jsx("div",{className:"rb-project-debug__below-name",children:s}),l?jsxs(Fragment,{children:[jsx("textarea",{className:"rb-project-debug__code-editor",value:l.value,onChange:e=>l.onChange(e.target.value),spellCheck:!1,"aria-label":"Edit JSON"}),l.error?jsx("div",{className:"rb-project-debug__json-error",role:"alert",children:l.error}):null]}):jsx("pre",{className:"rb-project-debug__code",tabIndex:0,children:m})]}),jsx("section",{className:"rb-project-debug__preview","aria-label":"Preview",style:{"--rb-canvas-bg":a??"none"},children:jsx(RenderErrorBoundary,{subtitle:"caught by ProjectDebug preview",onError:(e,t)=>d({message:e?.message??String(e),stack:e?.stack,componentStack:t}),children:jsx(RenderPage,{data:b,name:e,params:{mockProducts:o,mockBenefits:n}})})}),jsxs("section",{className:"rb-project-debug__error","aria-label":"Errors",children:[jsxs("div",{className:"rb-project-debug__error-head",children:[jsx("h2",{className:"rb-project-debug__title",children:"Errors"}),jsx("button",{type:"button",className:"editor-button",onClick:async()=>{await copyTextToClipboard(_)&&(g("copied"),window.setTimeout(()=>g("idle"),900))},children:"copied"===u?"Copied":"Copy"})]}),jsxs("div",{className:"rb-project-debug__error-block",children:[jsx("div",{className:"rb-project-debug__error-label",children:"Validation"}),jsx("pre",{className:"rb-project-debug__error-pre",children:S}),i&&jsx("pre",{className:"rb-project-debug__error-pre",children:i})]}),c&&jsxs("div",{className:"rb-project-debug__error-block",children:[jsx("div",{className:"rb-project-debug__error-label",children:"Render"}),jsx("pre",{className:"rb-project-debug__error-pre",children:w}),c.stack&&jsx("pre",{className:"rb-project-debug__error-pre",children:c.stack}),c.componentStack&&jsx("pre",{className:"rb-project-debug__error-pre",children:c.componentStack})]})]})]})}function ProjectValidationPage({name:e,rawData:t,validationError:r,validationErrorStack:i,products:o,benefits:n,canvasBg:a,belowName:s,onContinueWithoutValidation:l,onSaveEditedRawData:c}){const[d,p]=useState(()=>safeJsonStringify(t)),[h,u]=useState(null);return useEffect(()=>{p(safeJsonStringify(t)),u(null)},[t]),jsx(ProjectDebug,{name:e,rawData:t,validationError:r,validationErrorStack:i,products:o,benefits:n,canvasBg:a,jsonEditor:{value:d,onChange:e=>{p(e),u(null)},error:h,onSave:()=>{try{const e=JSON.parse(d);u(null),c?.(e)}catch(e){u(e instanceof Error?e.message:String(e))}},saveDisabled:!c,saveLabel:"Save JSON"},belowName:jsxs(Fragment,{children:[jsxs("div",{className:"rb-project-validation__actions",children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>l?.(),children:"Continue without validation"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>(()=>{try{const e=JSON.parse(d),t=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),r=wrapNodeInMain(t(e)&&"data"in e?e.data:e),i=t(e)&&"data"in e?{...e,data:r}:r;p(JSON.stringify(i,null,2)),u(null)}catch(e){u(e instanceof Error?e.message:String(e))}})(),children:"Wrap in Main"})]}),s]})})}function ProjectMigrationPage({name:e,rawData:t,projectVersion:r,requiredVersion:i,showFixVersionMeta:o,pendingMigrations:n,products:a,benefits:s,canvasBg:l,belowName:c,migrating:d,onContinueWithoutValidation:p,onMigrateNow:h,onFixVersionMeta:u}){const g=`Migration required: project version ${r} is lower than ${i}.`,m=[`Required: ${i}`,`Current: ${r}`,"","Pending migrations:",...n.length?n.map(e=>`- ${e.id} (${e.fromVersion} -> ${e.toVersion}): ${e.title}`):["- (none)"]].join("\n");return jsx(ProjectDebug,{name:e,rawData:t,validationError:g,validationErrorStack:m,products:a,benefits:s,canvasBg:l,belowName:jsxs(Fragment,{children:[jsxs("div",{className:"rb-project-validation__actions",children:[jsx("button",{type:"button",className:"editor-button",disabled:!!d,onClick:()=>{h?.()},children:d?"Migrating…":"Migrate now"}),o&&jsx("button",{type:"button",className:"editor-button",disabled:!!d,onClick:()=>u?.(),children:"Fix version meta"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>p?.(),children:"Continue without migration"})]}),c]})})}var supportedProjectVersion="1.1.2",reactBuilderVersion="1.2.27",metaJson={supportedProjectVersion:supportedProjectVersion,reactBuilderVersion:reactBuilderVersion};function parseSemver(e){const t="string"==typeof e?e.trim():"",[r,i,o]=t.split(".").slice(0,3),n=e=>{const t=Number(String(e??"").replace(/[^\d].*$/,""));return Number.isFinite(t)?t:0};return{major:n(r),minor:n(i),patch:n(o)}}function compareSemver(e,t){const r=parseSemver(e),i=parseSemver(t);return r.major!==i.major?r.major<i.major?-1:1:r.minor!==i.minor?r.minor<i.minor?-1:1:r.patch!==i.patch?r.patch<i.patch?-1:1:0}function isSemverLess(e,t){return compareSemver(e,t)<0}function isPlainObject(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function buildStyleKeySet(){return getStyleAttributeKeySet()}function normalizeStyleAttributes(e,t){if(isNodeNullOrUndefined(e)||isNodeString(e)||isEmptyObject(e))return e;if(isNodeArray(e))return e.map(e=>normalizeStyleAttributes(e,t));const r=e,i=normalizeStyleAttributes(r.children,t);if(!isPlainObject(r.attributes))return{...r,children:i};const o={...r.attributes??{}},n={...isPlainObject(o.style)?o.style:{}};for(const[e,r]of Object.entries(o))"style"!==e&&t.has(e)&&(e in n||(n[e]=r),delete o[e]);return Object.keys(n).length>0&&(o.style=n),{...r,children:i,attributes:o}}function getStyleSubSchemaKeys(e){if(!e)return new Set;const t=e.style;return isPlainObject(t)?new Set(Object.keys(t)):new Set}function getTopLevelAttributeKeys(e){if(!e)return new Set;const t=Object.keys(e).filter(e=>"style"!==e);return new Set(t)}function buildKeyInfo(e){const t=getTopLevelAttributeKeys(e);return{moveableKeys:new Set([...Array.from(t),...Array.from(NON_STYLE_ATTRIBUTE_KEYS)]),styleKeys:getStyleSubSchemaKeys(e)}}function extractAttributesFromStyle(e,t){if(isNodeNullOrUndefined(e)||isNodeString(e)||isEmptyObject(e))return e;if(isNodeArray(e))return e.map(e=>extractAttributesFromStyle(e,t));const r=e,i=extractAttributesFromStyle(r.children,t);if(!isPlainObject(r.attributes))return{...r,children:i};const o={...r.attributes??{}},n=o.style;if(!isPlainObject(n))return{...r,children:i,attributes:o};const a="string"==typeof r.type?r.type:"",s=normalizeComponentType(a)??a;if(!s)return{...r,children:i,attributes:o};if(!t.has(s)){const e=getAttributeSchema(s);t.set(s,buildKeyInfo(e))}const l=t.get(s),c=l?.styleKeys??new Set,d=l?.moveableKeys??NON_STYLE_ATTRIBUTE_KEYS,p={...n};let h=!1;for(const e of d)e in p&&(c.has(e)||(e in o||(o[e]=p[e]),delete p[e],h=!0));return h?(0===Object.keys(p).length?delete o.style:o.style=p,{...r,children:i,attributes:o}):{...r,children:i,attributes:o}}const migration_1_1_2_extract_component_attributes_from_style={id:"1.1.2-extract-attrs-from-style",title:"Normalize style keys then extract non-style + component props out of attributes.style",fromVersion:"0.0.0",toVersion:"1.1.2",run:e=>{const t=buildStyleKeySet(),r=extractAttributesFromStyle(normalizeStyleAttributes(e.data,t),new Map);return{...e,version:"1.1.2",data:r}}},CURRENT_PROJECT_VERSION=metaJson.supportedProjectVersion,MIGRATIONS=[migration_1_1_2_extract_component_attributes_from_style];function getMigrationPipe(e){const t="string"==typeof e?.version&&e.version.trim()?e.version:"0.0.0",r=isSemverLess(t,CURRENT_PROJECT_VERSION),i=r?MIGRATIONS.filter(e=>isSemverLess(t,e.toVersion)):[];return{projectVersion:t,requiredVersion:CURRENT_PROJECT_VERSION,required:r,pending:i}}function runProjectMigrations(e){const t=getMigrationPipe(e);let r=e;const i=[];for(const e of t.pending)isSemverLess(r.version,e.toVersion)&&(r=e.run(r),i.push(e));return isSemverLess(r.version,CURRENT_PROJECT_VERSION)&&(r={...r,version:CURRENT_PROJECT_VERSION}),{project:r,applied:i}}function sleep(e){return new Promise(t=>setTimeout(t,e))}async function loadWithDeadline(e,t){return!Number.isFinite(t)||t<=0?await e:await Promise.race([e,sleep(t).then(()=>{throw new Error("timeout")})])}function useProjectFonts({fonts:e,appFont:t}){useEffect(()=>{fontsDebug.info("useProjectFonts: effect start",{appFont:t,fontsCount:Array.isArray(e)?e.length:"not-array"});const{setFonts:r,setAppFont:i,setErrors:o,addError:n,loadedFonts:a,markFontLoaded:s}=useRenderStore.getState();fontsDebug.info("useProjectFonts: storing fonts/appFont in store",{appFont:t,fontsCount:Array.isArray(e)?e.length:"not-array"}),r(e),i(t),o([]);let l=!1;return(async()=>{const r="string"==typeof t?t.trim():"";if(!r)return void o(["appFont is undefined"]);if(l)return;Array.isArray(e)&&e.some(e=>e?.name===r&&e?.family&&"object"==typeof e.family&&Object.keys(e.family).length>0)?Array.isArray(a)&&a.includes(r)||(await loadWithDeadline(loadFontFamily(e,r,{forceFetch:!0}),1e4),l||s(r)):o([`appFont "${r}" not found in fonts`])})().catch(e=>{l||n(`Failed to initialize fonts: ${e instanceof Error?e.message:String(e)}`)}),()=>{l=!0}},[e,t])}function getDefaultProject(e={}){const t=metaJson.supportedProjectVersion.trim()?metaJson.supportedProjectVersion.trim():"0.0.0",r="string"==typeof e.version&&e.version.trim()?e.version.trim():t;return{name:"string"==typeof e.name&&e.name.trim()?e.name.trim():"project",version:r,data:e.data??null,appConfig:e.appConfig,projectColors:e.projectColors,type:e.type}}function resolveProjectForSave(e){return getDefaultProject({...e.overrideProject??e.project,data:e.data})}function toProjectMeta(e){return{name:e.name,version:e.version,...e.type?{type:e.type}:{},data:e.data}}const MOBILE_BREAKPOINT=1e3;function ProjectPage({project:e,localization:t,onSaveProject:r,logLevel:i,projectColors:o,onSaveProjectColors:n,name:a,typography:s,appFont:l}){useLogRender("ProjectPage"),useSyncHtmlThemeClass();const c=l??s.fonts.find(e=>e?.isMain)?.name??s.fonts[0]?.name;useProjectFonts({fonts:s.fonts,appFont:c});const{current:d,setCurrent:p,setProjectColors:h,setProjectName:u,setAppConfig:g,storeAppConfig:m,storeTheme:f,storeDefaultLanguage:b,products:C,benefits:v,previewMode:x}=useRenderStore(e=>({current:e.current,setCurrent:e.setCurrent,setProjectColors:e.setProjectColors,setProjectName:e.setProjectName,setAppConfig:e.setAppConfig,storeAppConfig:e.appConfig,storeTheme:e.theme,storeDefaultLanguage:e.defaultLanguage,products:e.products,benefits:e.benefits,previewMode:e.previewMode})),S=t?{...defaultAppConfig,localication:mergeLocalization(defaultLocalization,t)}:m??defaultAppConfig,[w,_]=useState(null),k=w??e,T=a??k.name,M=o??k.projectColors,P=isNodeNullOrUndefined(k.data)||isEmptyObject(k.data),[O,E]=useState(()=>null),[L,A]=useState(null),[B,z]=useState(null),[I,R]=useState(!1),[V,D]=useState(null),[N,F]=useState(!1),[j,H]=useState(()=>P),[W,$]=useState(null),[G,U]=useState(()=>"undefined"!=typeof window&&window.innerWidth<=MOBILE_BREAKPOINT),Z=useCallback(e=>{if(e===O){if(!window.confirm("You are about to delete the root component. This will clear the entire screen. Continue?"))return;return E(null),void p(null)}const t=deleteNodeFromTree(O,e);if(E(t),d!==e)if(isNodeRecord(d)&&d.key){const e=findNodeByKey(t,d.key);p(e??t)}else p(t);else p(t)},[O,d]);useEffect(()=>{if(logger.info("ProjectPage","mount",{projectName:e.name}),_(null),t){const e=mergeLocalization(defaultLocalization,t);g({...defaultAppConfig,localication:e}),logger.verbose("ProjectPage","localization applied",e)}return()=>{logger.info("ProjectPage","unmount")}},[t,e.name,g]),useEffect(()=>{u(T)},[T,u]),useEffect(()=>(h(M),()=>h(void 0)),[M,h]),useEffect(()=>{i&&logger.setLevel(i)},[i]),useEffect(()=>{function e(){U(window.innerWidth<=MOBILE_BREAKPOINT)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),useEffect(()=>{$(null)},[G]);const Y=e=>{$(t=>t===e?null:e)},K=()=>{$(null)},q=!G||"builder"===W,J=!G||"attributes"===W;useEffect(()=>{if(P)return void H(!0);H(!1);const e=setTimeout(()=>H(!0),1e3);return()=>clearTimeout(e)},[k.data]);const X=useRef(k);X.current=k;const Q=useRef(O);Q.current=O,useEffect(()=>{try{const e=X.current,t=e.data;if(null!=t&&t===Q.current)return;P||(E(null),p(null)),A(null),z(null);const r=getMigrationPipe(e);if(!I&&r.required)return D(r),E(null),void p(null);if(D(null),I)return E(e.data),void p(e.data);if(P)return E(null),void p(null);const i=analyseAndProccess(e.data);if(!i)return;E(i),p(i)}catch(e){logger.error("ProjectPage","Failed to process node",e),A(e instanceof Error?e.message:"Node is not valid"),z(e instanceof Error?e.stack??null:null),E(null),p(null)}},[k.data,P,I,p]);const ee=!(P||null!==O&&j);return jsxs("div",{className:"container-full",children:[jsx(Lt,{position:"bottom-right",autoClose:2500,hideProgressBar:!1,newestOnTop:!0,closeOnClick:!0,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,theme:"colored"}),jsx(EditorHeader,{onSaveProject:()=>{try{logger.info("ProjectPage","save project",{name:e.name}),n&&M&&n(M);const t=toProjectMeta(resolveProjectForSave({project:e,overrideProject:w,data:O}));logger.info("ProjectPage","saving project meta",t),r(t),y.success("Saved")}catch(e){logger.error("ProjectPage","save project failed",e),y.error("Save failed")}},onRestoreProject:()=>{logger.info("ProjectPage","restore project",{name:e.name}),_(null),A(null),z(null),R(!1),E(e.data),p(e.data)},current:d,editorData:O,setEditorData:E}),V?jsx(ProjectMigrationPage,{name:T,rawData:k,projectVersion:V.projectVersion,requiredVersion:V.requiredVersion,showFixVersionMeta:"0.0.0"===V.projectVersion,pendingMigrations:V.pending.map(e=>({id:e.id,title:e.title,fromVersion:e.fromVersion,toVersion:e.toVersion})),products:C,benefits:v,canvasBg:`url(${getImage(TribeAssetName.Background)})`,migrating:N,onContinueWithoutValidation:()=>{R(!0),D(null),E(k.data),p(k.data),H(!0)},onMigrateNow:()=>{try{F(!0);const e=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),t=t=>e(t)&&"string"==typeof t.type&&t.type.trim().length>0,i=!t(k)||e(k)&&"string"==typeof k.version?k:getDefaultProject({name:`imported-${Math.random().toString(36).slice(2,8)}`,version:CURRENT_PROJECT_VERSION,data:k}),{project:o}=runProjectMigrations(i);r(toProjectMeta(o)),_(o),R(!0),D(null),E(o.data),p(o.data),H(!0)}finally{F(!1)}},onFixVersionMeta:()=>{const e=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),t=e(k)?k:null,i="string"==typeof t?.name&&String(t.name).trim()?String(t.name).trim():`imported-${Math.random().toString(36).slice(2,8)}`,o=t&&"data"in t?t.data:(t=>e(t)&&"string"==typeof t.type&&t.type.trim().length>0)(k)?k:null,n=getDefaultProject({name:i,version:CURRENT_PROJECT_VERSION,data:o,appConfig:t?.appConfig,projectColors:t?.projectColors,type:(e=>"paywall"===e||"onboard"===e||"other"===e)(t?.type)?t.type:void 0});r(toProjectMeta(n)),_(n),R(!1),D(null),A(null),z(null),y.success("Fixed version meta")}}):L?jsx(ProjectValidationPage,{name:T,rawData:k,validationError:L,validationErrorStack:B??void 0,products:C,benefits:v,canvasBg:`url(${getImage(TribeAssetName.Background)})`,onContinueWithoutValidation:()=>{R(!0),A(null),z(null),E(k.data),p(k.data),H(!0)},onSaveEditedRawData:e=>{try{const t=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),i=e;let o,n,a=i;if(t(i)&&"data"in i){a=i.data;const e=i.name,t=i.version;"string"==typeof e&&(o=e),"string"==typeof t&&(n=t)}const s=analyseAndProccess(a);if(!s)throw new Error("Node is not valid");const l={...k,...o?{name:o}:null,...n?{version:n}:null,data:a};r(toProjectMeta(l)),_(l),R(!1),A(null),z(null),E(s),p(s),H(!0),y.success("Saved")}catch(e){logger.error("ProjectPage","save JSON from validation failed",e),A(e instanceof Error?e.message:"Node is not valid"),z(e instanceof Error?e.stack??null:null),y.error("Save failed")}}}):jsxs(Fragment,{children:[G&&jsxs("div",{className:"mobile-panel-toggle",role:"group","aria-label":"Editor panels",children:[jsxs("button",{type:"button",className:"mobile-panel-toggle__button"+("builder"===W?" mobile-panel-toggle__button--active":""),"aria-label":"Toggle builder panel","aria-expanded":"builder"===W,"aria-controls":"split-left-panel",onClick:()=>Y("builder"),children:[jsx("span",{className:"mobile-panel-toggle__icon","aria-hidden":"true",children:jsx("svg",{viewBox:"0 0 16 12",role:"presentation",focusable:"false",children:jsx("path",{d:"M1 1h14M1 6h14M1 11h14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"})})}),jsx("span",{className:"mobile-panel-toggle__label",children:"Builder"})]}),jsxs("button",{type:"button",className:"mobile-panel-toggle__button"+("attributes"===W?" mobile-panel-toggle__button--active":""),"aria-label":"Toggle attributes panel","aria-expanded":"attributes"===W,"aria-controls":"split-attributes-panel",onClick:()=>Y("attributes"),children:[jsx("span",{className:"mobile-panel-toggle__icon","aria-hidden":"true",children:jsx("svg",{viewBox:"0 0 16 12",role:"presentation",focusable:"false",children:jsx("path",{d:"M1 1h14M1 6h14M1 11h14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"})})}),jsx("span",{className:"mobile-panel-toggle__label",children:"Attributes"})]})]}),jsxs("div",{className:"editor-container",children:[jsxs("div",{id:"split-left-panel",className:"split-left"+(q?" is-open":""),"aria-hidden":G&&!q,children:[G&&jsx("button",{type:"button",className:"split-panel__close","aria-label":"Close builder panel",onClick:K,children:"Close"}),jsx("div",{children:jsx(BuilderPanel,{data:O,setData:E,onDeleteNode:Z})})]}),jsxs("div",{style:{"--rb-canvas-bg":`url(${getImage(TribeAssetName.Background)})`},className:"split-right",children:[ee&&jsx("div",{className:"rb-loading-overlay","aria-busy":"true",children:jsx(LoadingComponent,{})}),!ee&&jsx(RenderPage,{data:O,name:T,params:{mockProducts:C,mockBenefits:v&&"object"==typeof v?v:{},theme:f,defaultLanguage:b,appConfig:S,projectColors:M,fonts:s.fonts,appFont:c,previewMode:x,selectedKey:d&&"object"==typeof d&&"key"in d?d.key:void 0}})]}),jsx(BottomBar,{project:e,data:O,setData:E}),jsxs("div",{id:"split-attributes-panel",className:"split-third"+(J?" is-open":""),"aria-hidden":G&&!J,children:[G&&jsx("button",{type:"button",className:"split-panel__close","aria-label":"Close attributes panel",onClick:K,children:"Close"}),jsx(AttributesEditorPanel,{attributes:O,projectColors:M,onChange:e=>{let t;E(e),e&&"object"==typeof e&&!Array.isArray(e)&&"key"in e&&(t=e.key),logger.verbose("ProjectPage","attributes change",t?{nodeKey:t}:void 0)}})]}),G&&W&&jsx("button",{type:"button",className:"editor-container__overlay","aria-label":"Close active panel",onClick:K})]})]})]})}function useCalculateLocalizedPrice(e){return e?extractPrice(e):""}function useDiscountRate(e,t){if(!e||!t)return 0;const r=calculateDiscount(e,t);return r?parseInt(r,10):0}function useExtractTextStyle(e){const{theme:t,projectColors:r,fonts:i}=useBuilderParams();return useMemo(()=>{const o=extractTextStyleNative(e,{theme:t,projectColors:r,fonts:i}),n=e.attributes,a=stripStyleKeys(toAttributeRecord(n)),s=getStyleBag(n);return{style:o,other:{...a,adjustsFontSizeToFit:a.adjustsFontSizeToFit??s?.adjustsFontSizeToFit,showEllipsis:a.showEllipsis??s?.showEllipsis}}},[e,t,r,i])}function useExtractViewStyle(e){const{theme:t,projectColors:r}=useBuilderParams();return useMemo(()=>{const i=extractViewStyleNative(e,{theme:t,projectColors:r}),o=e.attributes,n=stripStyleKeys(toAttributeRecord(o)),a=getStyleBag(o);return{style:i,other:{...n,scrollable:n.scrollable??a?.scrollable}}},[e,t,r])}function useExtractImageStyle(e){const{theme:t,projectColors:r}=useBuilderParams();return useMemo(()=>{const{resizeMode:i,...o}=extractImageStyleNative(e,{theme:t,projectColors:r}),n=e.attributes,a=stripStyleKeys(toAttributeRecord(n)),s=getStyleBag(n);return{style:o,other:{...a,resizeMode:s?.resizeMode??i}}},[e,t,r])}const meta={supportedProjectVersion:metaJson.supportedProjectVersion,reactBuilderVersion:metaJson.reactBuilderVersion};function getMeta(){return{...meta}}function novaToJson(e){const t=e.data.data?.layout;return"onboard-layout"===t?onboardNovaToJson(e):null}function onboardNovaToJson(e){const t=e?.data?.data?.attributes||e?.data?.attributes||{},r=t?.general_components||[],i=t?.data||[],o=mapDotsFromGeneralComponents(r),n=mapFooterFromGeneralComponents(r),{carouselNode:a,providerLevelButtons:s}=buildCarouselFromPages(i),l={type:"OnboardProvider",key:e?.data?.data?.key,children:[a,...o?[o]:[],...s.length?s:[],...n?[n]:[]],attributes:{theme:e?.data?.theme}},c={type:"Main",isMain:!0,key:e?.data?.data?.key,children:[l],attributes:{useSafeAreaView:!0}};return delete l.key,c}function buildCarouselFromPages(e){const t=e.filter(e=>"simple-onboard-layout"===e?.layout),r=new Map;t.forEach((e,t)=>{const i=e?.attributes?.key;"string"==typeof i&&r.set(i,t)});const i=[];return{carouselNode:{type:"Onboard",children:t.map(e=>buildCarouselItem(e,r,i))},providerLevelButtons:i}}function buildCarouselItem(e,t,r){const i=e?.attributes?.components||[],o=[],n=e?.attributes?.key,a="string"==typeof n&&t.has(n)?t.get(n):void 0;for(const e of i)if("title-layout"===e?.layout){const t=e?.attributes?.title_localization_key||"",r=e?.attributes?.title_color||void 0,{fontSize:i,textAlign:n,marginTop:a,fontWeight:s}=extractTextStyleAttributesFromComponent(e);o.push({type:"OnboardTitle",attributes:r||i||n||a||s?{...r?{color:r}:{},..."number"==typeof i?{fontSize:i}:{},...n?{textAlign:n}:{},..."number"==typeof a?{marginTop:a}:{},...s?{fontWeight:s}:{}}:void 0,children:t})}else if("subtitle-layout"===e?.layout){const t=e?.attributes?.subtitle_localization_key||"",r=e?.attributes?.subtitle_color||void 0,{fontSize:i,textAlign:n,marginTop:a,fontWeight:s}=extractTextStyleAttributesFromComponent(e);o.push({type:"OnboardSubtitle",attributes:r||i||n||a||s?{...r?{color:r}:{},..."number"==typeof i?{fontSize:i}:{},...n?{textAlign:n}:{},..."number"==typeof a?{marginTop:a}:{},...s?{fontWeight:s}:{}}:void 0,children:t})}else if("image-layout"===e?.layout){const t=e?.attributes?.image||e?.attributes?.src||"",r=e?.attributes?.height??e?.attributes?.ios_height??e?.attributes?.android_height,i="string"==typeof r?Number.parseInt(r,10):"number"==typeof r?r:void 0,n=Boolean(e?.attributes?.is_bg_image),a=extractViewStyleAttributesFromComponent(e),s=e?.attributes?.lottie,l=e?.attributes?.video_url;t&&o.push({type:"OnboardImage",attributes:{src:t,...i?{height:i}:{},resizeMode:n?"cover":"contain",..."number"==typeof a.borderRadius?{borderRadius:a.borderRadius}:{},..."string"==typeof s?{lottie:s}:{},..."string"==typeof l?{video_url:l}:{}},children:void 0})}else if("Buttons"===e?.layout){const i=e?.attributes?.buttons_direction,o=e?.attributes?.buttons||[],n=[];for(const e of o){const r=e?.attributes||{},i=r?.button_text_localization_key||"",o=r?.button_text_color,a=r?.button_background_color,s=r?.animation,l=r?.animation_color,c=r?.flex?Number(r.flex):void 0,d=r?.actions||[],p=[];for(const e of d){const r=e?.attributes?.events||[];for(const e of r)if("Permission"===e?.layout){const t=e?.attributes?.permission;p.push({type:"Permission",permission:t})}else if("Navigate"===e?.layout){const r=e?.attributes?.next_page_key,i="string"==typeof r&&t.has(r),o=i?null:"string"==typeof r?r:null;p.push({type:"Navigate",navigate_to:o,...i?{targetIndex:t.get(r)}:{}})}}n.push({type:"OnboardButton",attributes:{labelKey:i,..."string"==typeof o?{button_text_color:o}:{},..."string"==typeof s?{animation:s}:{},..."string"==typeof l?{animation_color:l}:{},..."string"==typeof a?{button_background_color:a}:{},..."number"==typeof c?{flex:c}:{},...p.length?{events:p}:{}},children:void 0})}n.length>0&&r.push({type:"OnboardButtons",attributes:{...i?{buttons_direction:i}:{},..."number"==typeof a?{condition:"carousel-index",conditionVariable:a}:{}},children:n})}const s=e?.attributes?.key,l="string"==typeof s&&s||("string"==typeof e?.key?e.key:void 0);return{type:"OnboardItem",...l?{key:l}:{},children:o}}function extractTextStyleAttributesFromComponent(e){const t={},r=e?.attributes?.styles||[];if(!Array.isArray(r)||0===r.length)return t;const i=new Set(["left","center","right","justify"]),o=new Set(["normal","bold","100","200","300","400","500","600","700","800","900"]);for(const e of r){if("style-layout"!==e?.layout)continue;const r=e?.attributes?.styles||[];if(Array.isArray(r))for(const e of r){if("Styles"!==e?.layout)continue;const r=e?.attributes?.type;if("textStyle"!==r)continue;const n=e?.attributes?.style||{},a=n?.fontSize;if("number"==typeof a&&Number.isFinite(a))t.fontSize=a;else if("string"==typeof a){const e=Number.parseInt(a,10);Number.isFinite(e)&&(t.fontSize=e)}const s=n?.textAlign;"string"==typeof s&&i.has(s)&&(t.textAlign=s);const l=n?.marginTop;if("number"==typeof l&&Number.isFinite(l))t.marginTop=l;else if("string"==typeof l){const e=Number.parseInt(l,10);Number.isFinite(e)&&(t.marginTop=e)}const c=n?.fontWeight;let d;"number"==typeof c&&Number.isFinite(c)?d=String(c):"string"==typeof c&&(d=c),d&&o.has(d)&&(t.fontWeight=d)}}return t}function extractViewStyleAttributesFromComponent(e){const t={},r=e?.attributes?.styles||[];if(!Array.isArray(r)||0===r.length)return t;for(const e of r){if("style-layout"!==e?.layout)continue;const r=e?.attributes?.styles||[];if(Array.isArray(r))for(const e of r){if("Styles"!==e?.layout)continue;const r=e?.attributes?.style||{},i=r?.borderRadius;if("number"==typeof i&&Number.isFinite(i))t.borderRadius=i;else if("string"==typeof i){const e=Number.parseInt(i,10);Number.isFinite(e)&&(t.borderRadius=e)}}}return t}function mapDotsFromGeneralComponents(e){const t=e.find(e=>"dots-layout"===e?.layout);if(!t)return null;const r=t?.attributes?.dot||[],i=r?.[0],o=i?.layout,n=i?.attributes||{},a=e=>{if("number"==typeof e)return e;if("string"==typeof e&&e.trim().length>0){const t=Number(e);return Number.isFinite(t)?t:void 0}},s=a(n?.inactive_dot_opacity),l=a(n?.dot_thickness),c="string"==typeof n?.dot_style?n.dot_style:void 0,d="string"==typeof n?.container_style?n.container_style:void 0,p="string"==typeof n?.active_dot_color?n.active_dot_color:void 0,h="string"==typeof n?.inactive_dot_color?n.inactive_dot_color:void 0,u={};return o&&(u.dotType=o),void 0!==s&&(u.inactive_dot_opacity=s),void 0!==l&&(u.dot_thickness=l),c&&(u.dot_style=c),d&&(u.container_style=d),p&&(u.active_dot_color=p),h&&(u.inactive_dot_color=h),{type:"OnboardDot",attributes:Object.keys(u).length?u:void 0,children:void 0}}function mapFooterFromGeneralComponents(e){const t=e.find(e=>"footer-layout"===e?.layout);if(!t)return null;const r=t?.attributes?.texts||[],i=[];let o,n;for(const e of r)if("Text"===e?.layout){const t=e?.attributes?.text_localization_key||"",r=e?.attributes?.text_color||void 0;o||(o=t),n||"string"!=typeof r||(n=r);const a=e?.attributes?.linkedwords||[];for(const e of a)if("LinkedWords"===e?.layout){const t=e?.attributes?.linked_word_localization_key,r=e?.attributes?.linked_word_color,o=e?.attributes?.page;i.push({text_key:t,color:r,page:o})}}const a={gap:8};o&&(a.textLocalizationKey=o),n&&(a.color=n);const s=i[0],l=i[1];return s&&(s.text_key&&(a.linkedWordFirstLocalizationKey=s.text_key),s.color&&(a.linkedWordFirstColor=s.color),s.page&&(a.linkedWordFirstPage=s.page)),l&&(l.text_key&&(a.linkedWordSecondLocalizationKey=l.text_key),l.color&&(a.linkedWordSecondColor=l.color),l.page&&(a.linkedWordSecondPage=l.page)),{type:"OnboardFooter",attributes:a,children:void 0}}function isNodeData(e){return null!=e&&(!Array.isArray(e)&&("string"!=typeof e&&("object"==typeof e&&("type"in e&&"children"in e))))}function querySelector(e,t){if(null==e)return[];if(!t)return[];const r=t.startsWith("#"),i=r?t.slice(1):void 0,o=[],n=e=>{var a;if(null!=e)if(Array.isArray(e))for(const t of e)n(t);else"string"!=typeof e&&isNodeData(e)&&(a=e,(r?a.key===i:a.type===t)&&o.push(e),n(e.children))};return n(e),o}export{BuilderProvider,DebugJsonPage,LocalizationParamsProvider,PERIOD_LOCALIZATION_KEYS,ParamsProvider,ProjectPage,RenderNode$1 as RenderNode,TRIBE_ASSETS_BASE_URL,TribeAssetName,allcomponentNames,analyseAndProccess,analyseNode,buildPaywallLocalizationParams,calculateDiscount,calculatePricePerMonth,calculatePricePerYear,convertIOSPeriodUnit,defaultAppConfig,defaultLocalization,defaultProjectColors,defaultTheme,extractAndroidParams,extractIOSParams,extractPrice,getArrayItemType,getAttributeMeta,getAttributeSchema,getDefaultDevice,getDefaultProject,getDefaultsForType,getDevices,getImage,getMeta,getPatternByType,getPeriodLocalizationKey,getSamples,getTypeSchema,isEmptyObject,isNodeArray,isNodeNullOrUndefined,isNodeString,isPrimitiveType,mergeLocalization,mergeProjectColors,novaToJson,parseBillingPeriod,parseColor,parseTribeAssetName,patterns$1 as patterns,querySelector,resolveImageSrc,useBuilderParams,useCalculateLocalizedPrice,useChangeDelayByPaywall,useDiscountRate,useExtractImageStyle,useExtractTextStyle,useExtractViewStyle,useLocalizationParams,useLocalize,useNode,useParams,usePaywallLocalizationParams};
|
|
32
|
+
r.goToAndStop(n-r.firstFrame-1,!0)}"loop"===i.type&&(null===l||l!==i.frames||r.isPaused)&&(r.playSegments(i.frames,!0),l=i.frames),"play"===i.type&&r.isPaused&&(r.resetSegments(!0),r.play()),"stop"===i.type&&r.goToAndStop(i.frames[0]-r.firstFrame-1,!0)}},document.addEventListener("scroll",c),function(){document.removeEventListener("scroll",c)};case"cursor":return n=function(t,i){var n=t,a=i;if(-1!==n&&-1!==a){var s=getContainerCursorPosition(e,n,a);n=s.x,a=s.y}var l=o.find(function(e){var t=e.position;return t&&Array.isArray(t.x)&&Array.isArray(t.y)?n>=t.x[0]&&n<=t.x[1]&&a>=t.y[0]&&a<=t.y[1]:!(!t||Number.isNaN(t.x)||Number.isNaN(t.y))&&n===t.x&&a===t.y});if(l){if("seek"===l.type&&l.position&&Array.isArray(l.position.x)&&Array.isArray(l.position.y)&&2===l.frames.length){var c=(n-l.position.x[0])/(l.position.x[1]-l.position.x[0]),d=(a-l.position.y[0])/(l.position.y[1]-l.position.y[0]);r.playSegments(l.frames,!0),r.goToAndStop(Math.ceil((c+d)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&r.playSegments(l.frames,!0),"play"===l.type&&(r.isPaused&&r.resetSegments(!1),r.playSegments(l.frames)),"stop"===l.type&&r.goToAndStop(l.frames[0],!0)}},a=function(e){n(e.clientX,e.clientY)},s=function(){n(-1,-1)},e.addEventListener("mousemove",a),e.addEventListener("mouseout",s),function(){e.removeEventListener("mousemove",a),e.removeEventListener("mouseout",s)}}}},[i,r])},useLottieInteractivity=function(e){var t=e.actions,r=e.mode,i=e.lottieObj,o=i.animationItem,n=i.View,a=i.animationContainerRef;return useInitInteractivity({actions:t,animationItem:o,mode:r,wrapperRef:a}),n},_excluded=["style","interactivity"],Lottie=function(e){var t,r,i,o=e.style,n=e.interactivity,a=_objectWithoutProperties(e,_excluded),s=useLottie(a,o),l=s.View,c=s.play,d=s.stop,p=s.pause,h=s.setSpeed,u=s.goToAndStop,g=s.goToAndPlay,m=s.setDirection,f=s.playSegments,y=s.setSubframe,b=s.getDuration,C=s.destroy,v=s.animationContainerRef,x=s.animationLoaded,S=s.animationItem;return useEffect(function(){e.lottieRef&&(e.lottieRef.current={play:c,stop:d,pause:p,setSpeed:h,goToAndPlay:g,goToAndStop:u,setDirection:m,playSegments:f,setSubframe:y,getDuration:b,destroy:C,animationContainerRef:v,animationLoaded:x,animationItem:S})},[null===(t=e.lottieRef)||void 0===t?void 0:t.current]),useLottieInteractivity({lottieObj:{View:l,play:c,stop:d,pause:p,setSpeed:h,goToAndStop:u,goToAndPlay:g,setDirection:m,playSegments:f,setSubframe:y,getDuration:b,destroy:C,animationContainerRef:v,animationLoaded:x,animationItem:S},actions:null!==(r=null==n?void 0:n.actions)&&void 0!==r?r:[],mode:null!==(i=null==n?void 0:n.mode)&&void 0!==i?i:"scroll"})};function OnboardImage({node:e}){useLogRender("OnboardImage"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"OnboardImage",i=e.key??t,[o,n]=useState(null),a=useExtractViewStyle$1(e),s=e.attributes;return useEffect(()=>{s?.lottie&&fetch(s?.lottie).then(e=>e.json()).then(e=>n(e))},[s?.lottie]),s?.video_url?jsx("video",{"attribute-name":r,"attribute-key":i,autoPlay:!0,muted:!0,loop:!0,src:s?.video_url,style:a}):s?.lottie?jsx("div",o?{"attribute-name":r,"attribute-key":i,style:a,children:jsx(Lottie,{animationData:o})}:{"attribute-name":r,"attribute-key":i,style:a,children:"Loading..."}):jsx(Image$2,{node:{...e,type:"image",sourceType:r}})}var OnboardImage$1=React.memo(OnboardImage);function OnboardItem({node:e}){useLogRender("OnboardItem"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"OnboardItem",i=e.key??t,o=useExtractViewStyle$1(e);return jsx("div",{"attribute-name":r,"attribute-key":i,className:"embla__slide",style:o,children:e.children&&jsx(RenderNode$1,{node:e.children})})}var OnboardItem$1=React.memo(OnboardItem);function Text({node:e}){useLogRender("Text");const t=(e=useNode(e)).sourceType??e.type??"text",r=e.key,i=useRef(null),[o,n]=useState(null),{appConfig:a,previewMode:s,selectedKey:l}=useBuilderParams(),c=e.children,d=useExtractTextStyle$1(e),p=isNodeSelected({previewMode:!!s,current:l?{key:l}:void 0,node:e}),h=useLocalize({appConfig:a}),u=e.attributes?.translateCounter,g=useMemo(()=>{let e=h(c);const t=u??1;for(let r=1;r<t;r++)e=h(e);return e},[h,c,u]),m=e.attributes?.style,f=m?.adjustsFontSizeToFit??!1,y=m?.showEllipsis??!1;useLayoutEffect(()=>{if(!f)return void n(null);const e=i.current;if(!e)return;const t=()=>{const t=e.clientWidth,r=e.clientHeight,i=g?.length??0;if(!t||!r||!i)return void n(null);const o=Math.sqrt(t*r/i),a=Number.parseFloat(window.getComputedStyle(e).fontSize),s=Number.isFinite(a)?a:void 0,l=Math.max(8,s?Math.min(o,s):o);n(Number.isFinite(l)?l:null)};t();let r=null;return"undefined"!=typeof ResizeObserver?(r=new ResizeObserver(()=>t()),r.observe(e)):window.addEventListener("resize",t),()=>{r?.disconnect(),window.removeEventListener("resize",t)}},[f,g]);const b=useMergedStyle(useMergedStyle(d,useMemo(()=>{let e;return y&&(e={...e??{},overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),null!==o&&(e={...e??{},fontSize:`${o}px`}),e},[y,o])),p?SELECTED_OUTLINE_STYLE:void 0);return jsx("p",{ref:i,"attribute-name":t,"attribute-key":r,style:b,children:g})}var Text$1=React.memo(Text);function OnboardSubtitle({node:e}){return useLogRender("OnboardSubtitle"),e=useNode(e),jsx(Text$1,{node:e})}var OnboardSubtitle$1=React.memo(OnboardSubtitle);function OnboardTitle({node:e}){return useLogRender("OnboardTitle"),e=useNode(e),jsx(Text$1,{node:e})}var OnboardTitle$1=React.memo(OnboardTitle);function PaywallBackground({node:e}){return useLogRender("PaywallBackground"),jsx(BackgroundImage$1,{node:e})}var PaywallBackground$1=React.memo(PaywallBackground);function PaywallCloseButton({node:e}){useLogRender("PaywallCloseButton"),e=useNode(e);const{onClose:t,isBackAllowed:r}=usePaywallContext(),i=useId(),o=e.sourceType??e.type??"PaywallCloseButton",n=e.key??i,{previewMode:a,selectedKey:s}=useBuilderParams(),l=useExtractViewStyle$1(e),c=useExtractTextStyle$1(e),d=useMergedStyle(l,isNodeSelected({previewMode:!!a,current:s?{key:s}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);if(!r)return null;const p=e.attributes,h=p?.style,u=p?.iconType??"close",g=p?.size??c.fontSize??24,m=c.color??h?.color;return jsx("a",{"attribute-name":o,"attribute-key":n,href:"#",onClick:e=>{e.preventDefault(),t?.()},"aria-label":"Close",style:{...d,cursor:"pointer",textDecoration:"none"},children:jsx(Icon,{iconType:u,size:g,color:m,alt:""})})}var PaywallCloseButton$1=React.memo(PaywallCloseButton);function PaywallOptionButton({product:e,onPress:t,node:r}){const i=useId(),o=(e.productId??"").trim(),{previewMode:n,selectedKey:a}=useBuilderParams(),s=useMergedStyle(useExtractViewStyle$1(r),isNodeSelected({previewMode:!!n,current:a?{key:a}:void 0,node:r})?SELECTED_OUTLINE_STYLE:void 0),l=r.sourceType??r.type??"text",c=r.key??i;return jsx("div",{"attribute-name":l,"attribute-key":o?`${c}:${o}`:c,role:"button",tabIndex:0,onClick:()=>t(o),style:{...s,cursor:"pointer"},children:jsx(RenderNode$1,{node:r.children})})}function extractPrice(e){return e?e.replace(/[^0-9.]/g,""):""}function calculateDiscount(e,t){if(!t||!e)return"";const r=parseFloat(e),i=parseFloat(t);if(isNaN(r)||isNaN(i)||r<=0)return"";const o=Math.round((r-i)/r*100);return String(Math.max(0,o))}function calculatePricePerMonth(e,t){return isNaN(e)?"":"month"===t?e.toFixed(2):"year"===t?(e/12).toFixed(2):"week"===t?(52*e/12).toFixed(2):"day"===t?(365*e/12).toFixed(2):e.toFixed(2)}function calculatePricePerYear(e,t){return isNaN(e)?"":"year"===t?e.toFixed(2):"month"===t?(12*e).toFixed(2):"week"===t?(52*e).toFixed(2):"day"===t?(365*e).toFixed(2):e.toFixed(2)}const PERIOD_LOCALIZATION_KEYS={monthly:"base.builder.paywall.period.monthly",annual:"base.builder.paywall.period.annual",weekly:"base.builder.paywall.period.weekly",daily:"base.builder.paywall.period.daily",monthlyPromo:"base.builder.paywall.period.monthlyPromo",annualPromo:"base.builder.paywall.period.annualPromo"},PAYWALL_TEXT_KEYS={pricingDefault:"base.builder.paywall.pricing.default.text",pricingFreeTrial:"base.builder.paywall.pricing.freeTrial.text",pricingRegular:"base.builder.paywall.pricing.regular.text",promoDefault:"base.builder.paywall.promo.default.text",promoFreeTrial:"base.builder.paywall.promo.freeTrial.text",promoRegular:"base.builder.paywall.promo.regular.text"};function getPeriodLocalizationKey(e,t){switch(e){case"month":return t?PERIOD_LOCALIZATION_KEYS.monthlyPromo:PERIOD_LOCALIZATION_KEYS.monthly;case"year":return t?PERIOD_LOCALIZATION_KEYS.annualPromo:PERIOD_LOCALIZATION_KEYS.annual;case"week":return PERIOD_LOCALIZATION_KEYS.weekly;case"day":return PERIOD_LOCALIZATION_KEYS.daily;default:return PERIOD_LOCALIZATION_KEYS.monthly}}function parseBillingPeriod(e){const t=e.match(/P(\d+)([DWMY])/);if(!t||!t[1]||!t[2])return{value:1,unit:"month"};const r=parseInt(t[1],10),i={D:"day",W:"week",M:"month",Y:"year"}[t[2]];return i?{value:r,unit:i}:{value:1,unit:"month"}}function convertIOSPeriodUnit(e){if(!e)return"month";return{DAY:"day",WEEK:"week",MONTH:"month",YEAR:"year"}[e.toUpperCase()]||"month"}function noop(){}const iapLogger={error(e,t,r,i){console.error(`[iap] ${t}`,r)},warn(e,t,r,i){console.warn(`[iap] ${t}`,r)},info(e,t,r,i){console.info(`[iap] ${t}`,r)},debug:noop};function findOffer(e,t){return e.find(e=>e.id===t||e.basePlanIdAndroid===t)}function extractAndroidParams(e,t){try{const r=e.subscriptionOffers??[];let i=r[0];if(t&&r.length>0){const o=findOffer(r,t);o?i=o:iapLogger.error(["extractAndroidParams"],"Requested offer not found, using default",{productId:e.id||e.productId,requestedOfferId:t,availableOffers:r.map(e=>e.id)},{remote:!0})}if(!i)return iapLogger.warn(["extractAndroidParams"],"No offers found in product",{productId:e.id||e.productId}),getEmptyParams$1();const o=i.pricingPhasesAndroid?.pricingPhaseList??[];if(0===o.length)return iapLogger.warn(["extractAndroidParams"],"No pricing phases found",{productId:e.id||e.productId,offerId:i.id}),getEmptyParams$1();const n=o.find(e=>"0"===e.priceAmountMicros),a=o.find(e=>2===e.recurrenceMode&&"0"!==e.priceAmountMicros),s=o.find(e=>1===e.recurrenceMode)??o[o.length-1];if(!s)return iapLogger.error(["extractAndroidParams"],"No regular phase found",{productId:e.id||e.productId,pricingPhasesCount:o.length},{remote:!0}),getEmptyParams$1();const l=parseBillingPeriod(s.billingPeriod),c=`${l.value} ${l.unit}${l.value>1?"s":""}`,d=extractPrice(s.formattedPrice),p=s.priceCurrencyCode||"",h=s.formattedPrice||"";let u="",g="",m="",f="";if(a){u=extractPrice(a.formattedPrice);const e=a.billingCycleCount||0,t=parseBillingPeriod(a.billingPeriod),r=e*t.value;g=`${r} ${t.unit}${r>1?"s":""}`,m=String(e),f=t.unit}let y="false",b="",C="";if(n){y="true";const e=parseBillingPeriod(n.billingPeriod);b=String(e.value),C=e.unit}const v=calculateDiscount(d,u),x=parseFloat(d),S=calculatePricePerMonth(x,l.unit),w=calculatePricePerYear(x,l.unit);return{price:d,promoPrice:u,currency:p,localizedPrice:h,period:l.unit,periodValue:String(l.value),periodType:c,promoPeriod:g,promoCycles:m,promoPeriodUnit:f,hasTrial:y,trialPeriod:b,trialPeriodUnit:C,discountPercentage:v,pricePerMonth:S,pricePerYear:w}}catch(t){return iapLogger.error(["extractAndroidParams"],"Failed to extract Android params",{productId:e?.id||e?.productId,error:t instanceof Error?t.message:String(t)},{remote:!0}),getEmptyParams$1()}}function getEmptyParams$1(){return{price:"",promoPrice:"",currency:"",localizedPrice:"",period:"month",periodValue:"1",periodType:"1 month",promoPeriod:"",promoCycles:"",promoPeriodUnit:"",hasTrial:"false",trialPeriod:"",trialPeriodUnit:"",discountPercentage:"",pricePerMonth:"",pricePerYear:""}}function isFreeTrialIntro(e){return"free_trial"===e.type||0===parseFloat(e.price||e.priceIOS||"0")}function extractPromoCyclesAndPeriod(e,t){return{promoPeriod:`${e} ${t}${e>1?"s":""}`,promoCycles:String(e),promoPeriodUnit:t}}function extractIOSParams(e,t){try{const r=String(e.price||e.localizedPrice||"").replace(/[^0-9.]/g,""),i=e.currency||e.currencyCode||"",o=e.localizedPrice||"",n=convertIOSPeriodUnit(e.subscriptionPeriodUnitIOS||"MONTH"),a=String(e.subscriptionPeriodNumberIOS||1),s=`${a} ${n}${parseInt(a,10)>1?"s":""}`,l=e.introductoryPrice||e.introductoryPriceIOS,c=!!l,d=c&&isFreeTrialIntro(l);let p="false",h="",u="",g="",m="",f="",y="";if(d)p="true",h=String(l.subscriptionPeriodNumberIOS||l.numberOfPeriods||7),u=convertIOSPeriodUnit(l.subscriptionPeriodUnitIOS||l.subscriptionPeriod||"DAY");else if(c){g=String(l.price||l.priceIOS||"").replace(/[^0-9.]/g,"");const e=l.numberOfPeriods||1,t=extractPromoCyclesAndPeriod(e,convertIOSPeriodUnit(l.subscriptionPeriodUnitIOS||l.subscriptionPeriod||"MONTH"));m=t.promoPeriod,f=t.promoCycles,y=t.promoPeriodUnit}if(t&&e.discounts){const r=e.discounts.find(e=>e.identifier===t);if(r){g=String(r.price||"").replace(/[^0-9.]/g,"");const e=r.numberOfPeriods||1,t=extractPromoCyclesAndPeriod(e,convertIOSPeriodUnit(r.subscriptionPeriod||"MONTH"));m=t.promoPeriod,f=t.promoCycles,y=t.promoPeriodUnit}else iapLogger.error(["extractIOSParams"],"Requested offer not found in discounts",{productId:e.id||e.productId,requestedOfferId:t,availableDiscounts:e.discounts.map(e=>e.identifier)},{remote:!0})}const b=calculateDiscount(r,g),C=parseFloat(r),v=calculatePricePerMonth(C,n);return{price:r,promoPrice:g,currency:i,localizedPrice:o,period:n,periodValue:a,periodType:s,promoPeriod:m,promoCycles:f,promoPeriodUnit:y,hasTrial:p,trialPeriod:h,trialPeriodUnit:u,discountPercentage:b,pricePerMonth:v,pricePerYear:calculatePricePerYear(C,n)}}catch(t){return iapLogger.error(["extractIOSParams"],"Failed to extract iOS params",{productId:e?.id||e?.productId,error:t instanceof Error?t.message:String(t)},{remote:!0}),getEmptyParams()}}function getEmptyParams(){return{price:"",promoPrice:"",currency:"",localizedPrice:"",period:"month",periodValue:"1",periodType:"1 month",promoPeriod:"",promoCycles:"",promoPeriodUnit:"",hasTrial:"false",trialPeriod:"",trialPeriodUnit:"",discountPercentage:"",pricePerMonth:"",pricePerYear:""}}function buildPaywallLocalizationParams(e,t,r,i){const o=i??(e=>e),n="android"===t?extractAndroidParams(e,r):extractIOSParams(e,r),a=n.period||"month",s=!!n.promoPrice,l="true"===n.hasTrial,c=getPeriodLocalizationKey(a,!1),d=s?getPeriodLocalizationKey(a,!0):"",p=s?`${n.promoPrice} ${n.currency}`.trim():"",h=o(c),u=s?o(d):"",g=p||n.localizedPrice,m=u||h;let f,y;return s?(f=PAYWALL_TEXT_KEYS.pricingDefault,y=PAYWALL_TEXT_KEYS.promoDefault):l?(f=PAYWALL_TEXT_KEYS.pricingFreeTrial,y=PAYWALL_TEXT_KEYS.promoFreeTrial):(f=PAYWALL_TEXT_KEYS.pricingRegular,y=PAYWALL_TEXT_KEYS.promoRegular),{price:n.price,promoPrice:n.promoPrice,currency:n.currency,localizedPrice:n.localizedPrice,period:n.period,promoPeriod:n.promoPeriod,promoPeriodUnit:n.promoPeriodUnit,hasTrial:n.hasTrial,trialPeriod:n.trialPeriod,trialPeriodUnit:n.trialPeriodUnit,discountPercentage:n.discountPercentage,localizedPeriod:h,localizedPromoPeriod:u,localizedPromoPrice:p,localizedCalculatedPrice:g,localizedCalculatedPeriod:m,baseLocalizedPricingText:o(f),baseLocalizedPromoText:o(y),productTitle:String(e.title??""),productDescription:String(e.description??""),productCurreny:n.currency,productId:String(e.productId??""),productSelected:"true"}}function usePaywallLocalizationParams(e,t,r){return useMemo(()=>{if(!e||!r?.platform)return{};try{const i=r.builderProducts?.find(e=>e.store_package_id===t),o=i?.offer_id;return buildPaywallLocalizationParams(e,r.platform,o,r.localize)}catch(e){return console.error("[usePaywallLocalizationParams] Error:",e),{}}},[e,t,r])}var presetsJson$1={"preset-1":[{productId:"com.app.monthly",id:"com.app.monthly",title:"Monthly",description:"Unlock all features for a month.",type:"subs",displayName:"Monthly Subscription",displayPrice:"$4.99",localizedPrice:"$4.99",currency:"USD",price:"4.99",platform:"android",subscriptionOffers:[{id:"monthly-trial-offer",displayPrice:"Free → $4.99",price:0,type:"promotional",currency:"USD",basePlanIdAndroid:"monthly-base",offerTokenAndroid:"mock_token_monthly_trial",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P3D",formattedPrice:"Free",priceAmountMicros:"0",priceCurrencyCode:"USD",recurrenceMode:3},{billingCycleCount:0,billingPeriod:"P1M",formattedPrice:"$4.99",priceAmountMicros:"4990000",priceCurrencyCode:"USD",recurrenceMode:1}]}}],introductoryPrice:{price:"0.00",priceIOS:"0.00",type:"free_trial",numberOfPeriods:3,subscriptionPeriod:"DAY",subscriptionPeriodUnitIOS:"DAY",subscriptionPeriodNumberIOS:3},subscriptionPeriodUnitIOS:"MONTH",subscriptionPeriodNumberIOS:1},{productId:"com.app.yearly",id:"com.app.yearly",title:"Yearly (Save 33%)",description:"Best value: full access for a year.",type:"subs",displayName:"Yearly Subscription",displayPrice:"$29.99",localizedPrice:"$29.99",currency:"USD",price:"29.99",platform:"android",subscriptionOffers:[{id:"yearly-promo-offer",displayPrice:"$19.99",price:19.99,type:"promotional",currency:"USD",basePlanIdAndroid:"yearly-base",offerTokenAndroid:"mock_token_yearly_promo",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P1Y",formattedPrice:"$19.99",priceAmountMicros:"19990000",priceCurrencyCode:"USD",recurrenceMode:2},{billingCycleCount:0,billingPeriod:"P1Y",formattedPrice:"$29.99",priceAmountMicros:"29990000",priceCurrencyCode:"USD",recurrenceMode:1}]}}],introductoryPrice:{price:"19.99",priceIOS:"19.99",type:"pay_as_you_go",numberOfPeriods:1,subscriptionPeriod:"YEAR",subscriptionPeriodUnitIOS:"YEAR",subscriptionPeriodNumberIOS:1},discounts:[{identifier:"yearly-promo-offer",price:"19.99",numberOfPeriods:1,subscriptionPeriod:"YEAR"}],subscriptionPeriodUnitIOS:"YEAR",subscriptionPeriodNumberIOS:1},{productId:"com.app.weekly",id:"com.app.weekly",title:"Weekly",description:"Try with a flexible weekly plan.",type:"subs",displayName:"Weekly Subscription",displayPrice:"$1.99",localizedPrice:"$1.99",currency:"USD",price:"1.99",platform:"android",subscriptionOffers:[{id:"weekly-base",displayPrice:"$0.99",price:.99,type:"promotional",currency:"USD",basePlanIdAndroid:"weekly-base",offerTokenAndroid:"mock_token_weekly_promo",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:4,billingPeriod:"P1W",formattedPrice:"$0.99",priceAmountMicros:"990000",priceCurrencyCode:"USD",recurrenceMode:2},{billingCycleCount:0,billingPeriod:"P1W",formattedPrice:"$1.99",priceAmountMicros:"1990000",priceCurrencyCode:"USD",recurrenceMode:1}]}}],introductoryPrice:{price:"0.99",priceIOS:"0.99",type:"pay_as_you_go",numberOfPeriods:4,subscriptionPeriod:"WEEK",subscriptionPeriodUnitIOS:"WEEK",subscriptionPeriodNumberIOS:1},subscriptionPeriodUnitIOS:"WEEK",subscriptionPeriodNumberIOS:1}],"preset-2":[{productId:"com.app.premium.monthly",id:"com.app.premium.monthly",title:"Premium Monthly",description:"Premium tier with all features.",type:"subs",displayName:"Premium Monthly",displayPrice:"$9.99",localizedPrice:"$9.99",currency:"USD",price:"9.99",platform:"android",subscriptionOffers:[{id:"premium-monthly-trial-offer",displayPrice:"Free → $9.99",price:0,type:"promotional",currency:"USD",basePlanIdAndroid:"premium-monthly-base",offerTokenAndroid:"mock_token_premium_monthly_trial",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P7D",formattedPrice:"Free",priceAmountMicros:"0",priceCurrencyCode:"USD",recurrenceMode:3},{billingCycleCount:0,billingPeriod:"P1M",formattedPrice:"$9.99",priceAmountMicros:"9990000",priceCurrencyCode:"USD",recurrenceMode:1}]}}],introductoryPrice:{price:"0.00",priceIOS:"0.00",type:"free_trial",numberOfPeriods:7,subscriptionPeriod:"DAY",subscriptionPeriodUnitIOS:"DAY",subscriptionPeriodNumberIOS:7},subscriptionPeriodUnitIOS:"MONTH",subscriptionPeriodNumberIOS:1},{productId:"com.app.premium.yearly",id:"com.app.premium.yearly",title:"Premium Yearly (Save 50%)",description:"7-day free trial, then $29.99 first year, $59.99/yr after.",type:"subs",displayName:"Premium Yearly",displayPrice:"$59.99",localizedPrice:"$59.99",currency:"USD",price:"59.99",platform:"android",subscriptionOffers:[{id:"premium-yearly-full-offer",displayPrice:"$29.99",price:29.99,type:"promotional",currency:"USD",basePlanIdAndroid:"premium-yearly-base",offerTokenAndroid:"mock_token_premium_yearly_promo",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P7D",formattedPrice:"Free",priceAmountMicros:"0",priceCurrencyCode:"USD",recurrenceMode:3},{billingCycleCount:1,billingPeriod:"P1Y",formattedPrice:"$29.99",priceAmountMicros:"29990000",priceCurrencyCode:"USD",recurrenceMode:2},{billingCycleCount:0,billingPeriod:"P1Y",formattedPrice:"$59.99",priceAmountMicros:"59990000",priceCurrencyCode:"USD",recurrenceMode:1}]}}],introductoryPrice:{price:"0.00",priceIOS:"0.00",type:"free_trial",numberOfPeriods:7,subscriptionPeriod:"DAY",subscriptionPeriodUnitIOS:"DAY",subscriptionPeriodNumberIOS:7},discounts:[{identifier:"premium-yearly-full-offer",price:"29.99",numberOfPeriods:1,subscriptionPeriod:"YEAR"}],subscriptionPeriodUnitIOS:"YEAR",subscriptionPeriodNumberIOS:1},{productId:"com.app.lifetime",id:"com.app.lifetime",title:"Lifetime",description:"One-time purchase for lifetime access.",type:"in-app",displayName:"Lifetime Access",displayPrice:"$99.99",localizedPrice:"$99.99",currency:"USD",price:"99.99",platform:"android",subscriptionOffers:[]}],"preset-3":[{productId:"com.app.budget.weekly",id:"com.app.budget.weekly",title:"Budget Weekly",description:"Affordable weekly plan.",type:"subs",displayName:"Budget Weekly",displayPrice:"€2.99",localizedPrice:"€2.99",currency:"EUR",price:"2.99",currencyCode:"EUR",platform:"android",subscriptionOffers:[{id:"budget-weekly-trial-offer",displayPrice:"Free → €2.99",price:0,type:"promotional",currency:"EUR",basePlanIdAndroid:"budget-weekly-base",offerTokenAndroid:"mock_token_budget_weekly_trial",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P3D",formattedPrice:"Free",priceAmountMicros:"0",priceCurrencyCode:"EUR",recurrenceMode:3},{billingCycleCount:0,billingPeriod:"P1W",formattedPrice:"€2.99",priceAmountMicros:"2990000",priceCurrencyCode:"EUR",recurrenceMode:1}]}}],introductoryPrice:{price:"0.00",priceIOS:"0.00",type:"free_trial",numberOfPeriods:3,subscriptionPeriod:"DAY",subscriptionPeriodUnitIOS:"DAY",subscriptionPeriodNumberIOS:3},subscriptionPeriodUnitIOS:"WEEK",subscriptionPeriodNumberIOS:1},{productId:"com.app.monthly.promo",id:"com.app.monthly.promo",title:"Monthly (70% off first 3 months)",description:"€2.99/mo for 3 months, then €9.99/mo.",type:"subs",displayName:"Monthly with Promo",displayPrice:"€9.99",localizedPrice:"€9.99",currency:"EUR",price:"9.99",currencyCode:"EUR",platform:"android",subscriptionOffers:[{id:"monthly-promo-offer",displayPrice:"€2.99",price:2.99,type:"promotional",currency:"EUR",basePlanIdAndroid:"monthly-promo",offerTokenAndroid:"mock_token_monthly_promo",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:3,billingPeriod:"P1M",formattedPrice:"€2.99",priceAmountMicros:"2990000",priceCurrencyCode:"EUR",recurrenceMode:2},{billingCycleCount:0,billingPeriod:"P1M",formattedPrice:"€9.99",priceAmountMicros:"9990000",priceCurrencyCode:"EUR",recurrenceMode:1}]}}],introductoryPrice:{price:"2.99",priceIOS:"2.99",type:"pay_as_you_go",numberOfPeriods:3,subscriptionPeriod:"MONTH",subscriptionPeriodUnitIOS:"MONTH",subscriptionPeriodNumberIOS:1},subscriptionPeriodUnitIOS:"MONTH",subscriptionPeriodNumberIOS:1},{productId:"com.app.yearly.trial",id:"com.app.yearly.trial",title:"Yearly (14-day free trial)",description:"Try free for 14 days, then €29.99/yr.",type:"subs",displayName:"Yearly with Trial",displayPrice:"€29.99",localizedPrice:"€29.99",currency:"EUR",price:"29.99",currencyCode:"EUR",platform:"android",subscriptionOffers:[{id:"yearly-trial-offer",displayPrice:"Free → €29.99",price:0,type:"promotional",currency:"EUR",basePlanIdAndroid:"yearly-trial",offerTokenAndroid:"mock_token_yearly_trial",pricingPhasesAndroid:{pricingPhaseList:[{billingCycleCount:1,billingPeriod:"P14D",formattedPrice:"Free",priceAmountMicros:"0",priceCurrencyCode:"EUR",recurrenceMode:3},{billingCycleCount:0,billingPeriod:"P1Y",formattedPrice:"€29.99",priceAmountMicros:"29990000",priceCurrencyCode:"EUR",recurrenceMode:1}]}}],introductoryPrice:{price:"0.00",priceIOS:"0.00",type:"free_trial",numberOfPeriods:14,subscriptionPeriod:"DAY",subscriptionPeriodUnitIOS:"DAY",subscriptionPeriodNumberIOS:14},subscriptionPeriodUnitIOS:"YEAR",subscriptionPeriodNumberIOS:1}]};function getMockProducts(){return JSON.parse(JSON.stringify(presetsJson$1))}function getMockProductsByPreset(e){return getMockProducts()[e]??[]}function usePaywallOptionParamsFactory(){const{localizationParams:e,otherParams:t}=useParams(),r=useRenderStore(e=>e.device),i=useLocalize(),o="ios"===r.platform?"ios":"android";return useCallback((r,{isSelected:n})=>{const a=buildPaywallLocalizationParams(r,o,void 0,i);return{localizationParams:{...e,...a,productSelected:n?"true":"false"},otherParams:{...t,singleProductIsSelected:n}}},[e,t,o,i])}function parseNumberLike$1(e){if(null==e)return;if("number"==typeof e&&Number.isFinite(e))return e;if("string"!=typeof e)return;const t=e.trim();if(!t)return;const r=t.replace(",","."),i=Number.parseFloat(r);return Number.isFinite(i)?i:void 0}function compareProducts(e,t,r,i){const o=parseNumberLike$1(e.price),n=parseNumberLike$1(t.price);if(void 0!==o&&void 0!==n&&o!==n)return o-n;const a=(e.title??"").trim(),s=(t.title??"").trim();if(a&&s&&a!==s)return a.localeCompare(s);if(a&&!s)return-1;if(!a&&s)return 1;const l=(e.productId??"").trim(),c=(t.productId??"").trim();return l!==c?l.localeCompare(c):r-i}function PaywallOptions({node:e}){useLogRender("PaywallOptions"),e=useNode(e);const{mockProducts:t}=useBuilderParams(),{selectedProduct:r,setSelectedProductId:i}=usePaywallContext(),o=usePaywallOptionParamsFactory(),n=useMemo(()=>(Array.isArray(t)?t:[]).map((e,t)=>({p:e,idx:t})).sort((e,t)=>compareProducts(e.p,t.p,e.idx,t.idx)).map(({p:e})=>e),[t]);return jsx(Fragment,{children:n.map((t,n)=>{const a=t.productId||`${n}`,s=r?.productId===a,{localizationParams:l,otherParams:c}=o(t,{isSelected:s});return jsx(ParamsProvider,{localizationParams:l,otherParams:c,children:jsx(PaywallOptionButton,{node:e,product:t,selected:s,onPress:i})},a)})})}var PaywallOptions$1=React.memo(PaywallOptions);function LocalizationParamsProvider({params:e,children:t}){return jsx(ParamsProvider,{localizationParams:e,nestedLocalizationParams:{},children:t})}function useChangeDelayByPaywall(e,t){const r=useMemo(()=>e?.attributes?.delay?parseInt(String(e?.attributes?.delay),10):1e3,[e?.attributes?.delay]);useEffect(()=>{if(!r||r<=0)return void t(!0);const e=setTimeout(()=>{t(!0)},r);return()=>clearTimeout(e)},[r,t])}function useMockOSBackHandler(e){useEffect(()=>registerMockOSBackHandler(()=>e),[e])}function PaywallProvider({node:e}){useLogRender("PaywallProvider"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"PaywallProvider",i=e.key??t,{mockBenefits:o,mockProducts:n,onPaywallSubscribe:a,previewMode:s,selectedKey:l}=useBuilderParams(),c=useMockOSContext(),d=useMemo(()=>{const e=o&&"object"==typeof o&&!Array.isArray(o)?o:{},t=Object.entries(e).filter(([e])=>e.trim().length>0),r=Object.fromEntries(t.map(([e,t])=>[e.trim(),String(t)]));for(let e=0;e<t.length;e+=1){const[,i]=t[e],o=String(i);r[`benefit${e+1}`]=o}return r},[o]),p=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!s,current:l?{key:l}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),[h,u]=useState(""),[g,m]=useState(!1);useChangeDelayByPaywall(e,m),useMockOSBackHandler(g),useEffect(()=>{const e=Array.isArray(n)?n:[];if(0===e.length)return void(h&&u(""));const t=e.some(e=>e?.productId===h);h&&t||u(e[0]?.productId??"")},[n,h]);const f=useMemo(()=>{const e=Array.isArray(n)?n:[];return e.find(e=>e?.productId===h)??(e.length>0?e[0]:void 0)},[n,h]),y=useRenderStore(e=>e.device),b=useLocalize(),C="ios"===y.platform?"ios":"android",v=usePaywallLocalizationParams(f,h,{platform:C,localize:b});console.log("[PaywallProvider] extraction debug",{platform:C,selectedProductId:h,hasSubscriptionOffers:!!f?.subscriptionOffers?.length,subscriptionOffersCount:f?.subscriptionOffers?.length??0,detailedProductParams:v,selectedProduct:f});const x=useCallback(()=>{if(g&&c?.isEnabled){c.goBack()||c.navigation("launchscreen")}},[c,g]),S=useCallback(async e=>{if(a){const t=a(e),r=t instanceof Promise?await t:!0===t;return r&&c?.isEnabled&&c.goBack?.(),r}const t=e?.productId;if(c?.isEnabled&&t&&c.requestSubscriptionPurchase){const e=await c.requestSubscriptionPurchase(t);return e&&c.goBack?.(),e}return!1},[c,a]),w=useCallback(()=>{if(g&&c?.isEnabled){c.goBack()||c.navigation("launchscreen")}},[g,c]),_=useMemo(()=>({products:Array.isArray(n)?n:[],setSelectedProductId:u,selectedProduct:f,onClose:x,onSubscribe:S,onCounterDown:w,isBackAllowed:g}),[n,f,x,S,w,g]);return jsx("div",{"attribute-name":r,"attribute-key":i,style:p,children:jsx(PaywallContext.Provider,{value:_,children:jsx(LocalizationParamsProvider,{params:{...d,...v,platform:C},children:jsx(RenderNode$1,{node:e.children})})})})}var PaywallProvider$1=React.memo(PaywallProvider);function PaywallSubscribeButton({node:e}){useLogRender("PaywallSubscribeButton"),e=useNode(e);const{onSubscribe:t,selectedProduct:r}=usePaywallContext(),i=useId(),o=e.sourceType??e.type??"PaywallSubscribeButton",n=e.key??i,{previewMode:a,selectedKey:s,appConfig:l}=useBuilderParams(),c=useMergedStyle(useExtractTextStyle$1(e),isNodeSelected({previewMode:!!a,current:s?{key:s}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),d=useLocalize({appConfig:l}),p="string"==typeof e.children&&e.children.trim().length>0?e.children:"Subscribe";return jsx("a",{type:"button","attribute-name":o,"attribute-key":n,href:"#",onClick:e=>{e.preventDefault(),t?.(r)},style:{...c,cursor:"pointer"},children:d(p)})}var PaywallSubscribeButton$1=React.memo(PaywallSubscribeButton);function PriceTag({node:e}){useLogRender("PriceTag"),e=useNode(e);const t=useLocalizationParams(),r=!!t?.promoPrice;return(e.attributes?.hideIfItsNotDiscount??!1)&&!r?null:jsx(Text$1,{node:e})}var PriceTag$1=React.memo(PriceTag);function Pricing({node:e}){return useLogRender("Pricing"),e=useNode(e),jsx(Text$1,{node:e})}var Pricing$1=React.memo(Pricing);function Promo({node:e}){return useLogRender("Promo"),e=useNode(e),jsx(Text$1,{node:e})}var Promo$1=React.memo(Promo);function parseNumberLike(e){if(null==e)return;if("number"==typeof e&&Number.isFinite(e))return e;if("string"!=typeof e)return;const t=e.trim();if(!t)return;const r=t.replace(",","."),i=Number.parseFloat(r);return Number.isFinite(i)?i:void 0}function RadioButtonBase({selected:e,color:t="#A6A6A6",size:r=24}){const i=Math.round(.1*r),o=Math.round(.5*r),n=useContext(ParamsContext),{singleProductIsSelected:a}=n?.otherParams??{};return jsx("div",{style:{marginLeft:8,marginRight:16},children:jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",borderWidth:i,borderStyle:"solid",borderColor:t,width:r,height:r,borderRadius:o,boxSizing:"border-box",flex:"0 0 auto"},children:jsx("div",a??e?{style:{width:o,height:o,borderRadius:2*o,backgroundColor:t}}:{style:{width:r,height:r,borderRadius:o}})})})}function RadioButton({node:e}){useLogRender("RadioButton"),e=useNode(e);const t=useId(),r=e.type??"RadioButton",i=e.key??t,{previewMode:o,selectedKey:n}=useBuilderParams(),a=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!o,current:n?{key:n}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0),s=e.attributes,l=Boolean(s?.selected),c=s?.color,d=parseNumberLike(s?.size);return jsx("div",{"attribute-name":r,"attribute-key":i,style:a,children:jsx(RadioButtonBase,{selected:l,color:c,size:d})})}var RadioButton$1=React.memo(RadioButton);function Separator({node:e}){useLogRender("Separator"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"Separator",i=e.key??t,{previewMode:o,selectedKey:n}=useBuilderParams(),a=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!o,current:n?{key:n}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);return jsx("div",{"attribute-name":r,"attribute-key":i,style:a})}var Separator$1=React.memo(Separator);function StatusBarColor({node:e}){useLogRender("StatusBarColor"),e=useNode(e);const{theme:t,projectColors:r}=useBuilderParams(),i=useRenderStore(e=>e.setStatusBarOverrideColor),o=getStyleBag(e.attributes)?.backgroundColor,n=parseColor(o,{projectColors:r,theme:t});return useEffect(()=>(n&&i(n),()=>{i(null)}),[n,i]),null}var StatusBarColor$1=React.memo(StatusBarColor);function View({node:e}){useLogRender("View"),e=useNode(e);const t=useId(),r=e.sourceType??e.type??"View",i=e.key??t,{previewMode:o,selectedKey:n}=useBuilderParams(),a=useMergedStyle(useExtractViewStyle$1(e),isNodeSelected({previewMode:!!o,current:n?{key:n}:void 0,node:e})?SELECTED_OUTLINE_STYLE:void 0);return jsx("div",{"attribute-name":r,"attribute-key":i,style:a,children:e.children&&jsx(RenderNode$1,{node:e.children})})}var View$1=React.memo(View);function RenderNode({node:e}){if(isNodeNullOrUndefined(e))return null;if(isNodeString(e))return jsx(Text$1,{node:{children:e,type:"Text"}});if(isNodeArray(e))return jsx(Fragment,{children:e.map((e,t)=>jsx(RenderNode,{node:e},t))});const t="string"==typeof e?.type?e.type:"unknown",r=normalizeComponentType(t)??t,i={...e,type:r};switch(i.type){case"BIcon":return jsx(BIcon$1,{node:i});case"BackgroundImage":return jsx(BackgroundImage$1,{node:i});case"Button":return jsx(Button$1,{node:i});case"Carousel":return jsx(Carousel$1,{node:i});case"CarouselButtons":return jsx(CarouselButtons$1,{node:i});case"CarouselDots":return jsx(CarouselDots$1,{node:i});case"CarouselItem":return jsx(CarouselItem,{node:i});case"CarouselProvider":return jsx(CarouselProvider$1,{node:i});case"CountDown":return jsx(CountDown,{node:i});case"Image":return jsx(Image$2,{node:i});case"Main":return jsx(Main$1,{node:i});case"NavigationBarColor":return jsx(NavigationBarColor$1,{node:i});case"Onboard":return jsx(Onboard$1,{node:i});case"OnboardButton":return jsx(OnboardButton$1,{node:i});case"OnboardButtons":return jsx(OnboardButtons$1,{node:i});case"OnboardDot":return jsx(OnboardDot$1,{node:i});case"OnboardFooter":return jsx(OnboardFooter$1,{node:i});case"OnboardImage":return jsx(OnboardImage$1,{node:i});case"OnboardItem":return jsx(OnboardItem$1,{node:i});case"OnboardProvider":return jsx(OnboardProvider$1,{node:i});case"OnboardSubtitle":return jsx(OnboardSubtitle$1,{node:i});case"OnboardTitle":return jsx(OnboardTitle$1,{node:i});case"PaywallBackground":return jsx(PaywallBackground$1,{node:i});case"PaywallCloseButton":return jsx(PaywallCloseButton$1,{node:i});case"PaywallOptions":return jsx(PaywallOptions$1,{node:i});case"PaywallProvider":return jsx(PaywallProvider$1,{node:i});case"PaywallSubscribeButton":return jsx(PaywallSubscribeButton$1,{node:i});case"PriceTag":return jsx(PriceTag$1,{node:i});case"Pricing":return jsx(Pricing$1,{node:i});case"Promo":return jsx(Promo$1,{node:i});case"RadioButton":return jsx(RadioButton$1,{node:i});case"Separator":return jsx(Separator$1,{node:i});case"StatusBarColor":return jsx(StatusBarColor$1,{node:i});case"Text":return jsx(Text$1,{node:i});case"View":return jsx(View$1,{node:i});default:return other(t,e)}}var RenderNode$1=React.memo(RenderNode);const allcomponentNames=["BIcon","BackgroundImage","Button","Carousel","CarouselButtons","CarouselDots","CarouselItem","CarouselProvider","CountDown","Image","Main","NavigationBarColor","Onboard","OnboardButton","OnboardButtons","OnboardDot","OnboardFooter","OnboardImage","OnboardItem","OnboardProvider","OnboardSubtitle","OnboardTitle","PaywallBackground","PaywallCloseButton","PaywallOptions","PaywallProvider","PaywallSubscribeButton","PriceTag","Pricing","Promo","RadioButton","Separator","StatusBarColor","Text","View"];function findNodeByKeyNested(e,t){if(null==e)return null;if("string"==typeof e)return null;if(Array.isArray(e)){for(const r of e){const e=findNodeByKeyNested(r,t);if(e)return e}return null}const r=e;return r.key===t?r:r.children?findNodeByKeyNested(r.children,t):null}class RenderErrorBoundary extends React.Component{constructor(){super(...arguments),this.state={error:null,errorStack:void 0,componentStack:void 0,copied:!1,copyError:null},this.copyDetails=async()=>{const e=this.buildDetails();try{if("undefined"!=typeof navigator&&navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),this.setState({copied:!0,copyError:null}),void window.setTimeout(()=>this.setState({copied:!1}),900)}catch{}try{if("undefined"==typeof document)return void this.setState({copied:!1,copyError:"Copy failed"});const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly","true"),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();const r=document.execCommand("copy");if(document.body.removeChild(t),!r)return void this.setState({copied:!1,copyError:"Copy failed"});this.setState({copied:!0,copyError:null}),window.setTimeout(()=>this.setState({copied:!1}),900)}catch(e){this.setState({copied:!1,copyError:e instanceof Error?e.message:"Copy failed"})}},this.reset=()=>{this.setState({error:null,errorStack:void 0,componentStack:void 0,copied:!1,copyError:null})}}static getDerivedStateFromError(e){return{error:e,errorStack:e?.stack,copied:!1,copyError:null}}componentDidCatch(e,t){const r=t.componentStack??void 0;this.setState({error:e,errorStack:e?.stack,componentStack:r}),this.props.onError?.(e,r)}buildDetails(){const{error:e,errorStack:t,componentStack:r}=this.state;return[`Error: ${e?.message??""}`,"",t?`Stack:\n${t}`:"Stack: (missing)","",r?`React component stack:\n${r}`:"React component stack: (missing)"].join("\n")}render(){const{error:e,copied:t,copyError:r}=this.state;if(!e)return this.props.children;const i=this.buildDetails();return jsxs("div",{role:"alert",style:{padding:16,borderRadius:12,background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",color:"hsl(var(--card-foreground, var(--rb-card-foreground, 220.9 39.3% 11%)))",border:"1px solid hsl(var(--border, var(--rb-border, 220 13% 91%)) / 0.9)"},children:[jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("div",{style:{fontWeight:700},children:"Preview crashed"}),this.props.subtitle&&jsxs("div",{style:{opacity:.8,fontSize:12},children:["(",this.props.subtitle,")"]}),jsxs("div",{style:{marginLeft:"auto",display:"flex",gap:8},children:[jsx("button",{type:"button",className:"editor-button",onClick:this.copyDetails,children:t?"Copied":"Copy details"}),jsx("button",{type:"button",className:"editor-button",onClick:this.reset,children:"Try again"})]})]}),r&&jsx("div",{style:{marginTop:8,color:"hsl(var(--destructive, var(--rb-destructive, 0 84.2% 60.2%)))",fontSize:12},children:r}),jsx("pre",{style:{marginTop:12,whiteSpace:"pre-wrap",wordBreak:"break-word",fontSize:12,lineHeight:1.4,background:"hsl(var(--muted, var(--rb-muted, 220 14.3% 95.9%)))",padding:12,borderRadius:10,overflow:"auto",maxHeight:360},children:i})]})}}function isNullish(e){return null==e}function RenderPage({data:e,name:t,onSelectNode:r,params:i}){useLogRender("RenderPage");const{previewMode:o,forceRender:n,setCurrent:a,appFont:s}=useRenderStore(e=>({previewMode:e.previewMode,forceRender:e.forceRender,setCurrent:e.setCurrent,appFont:e.appFont})),l=useRef(null),c=isNullish(e);return useEffect(()=>{if(!o)return;const t=l.current;if(!t)return;const i=t=>{const i=t.target;if(!i)return;if(i.closest(".embla__dot"))return;let o=i.closest("[attribute-key]");for(;o;){const t=o.getAttribute("attribute-key");if(t){const i=findNodeByKeyNested(e,t);if(i)return a(i),void r?.(i)}o=o.parentElement?.closest("[attribute-key]")??null}};return t.addEventListener("click",i),()=>{t.removeEventListener("click",i)}},[o,e,r,a,n]),jsx(RenderErrorBoundary,{subtitle:"caught by RenderPage",children:jsx(BuilderProvider,{params:i,children:jsx(DeviceMockFrame,{appName:t,children:jsxs("div",{className:"screen-preview",ref:l,style:{fontFamily:s?`"${s}"`:void 0},children:[isNullish(e)?null:jsx(RenderNode$1,{node:e}),c&&jsx("div",{className:"rb-empty-preview","aria-hidden":"true",children:jsxs("div",{className:"rb-empty-preview__card",children:[jsx("div",{className:"rb-empty-preview__title",children:"Empty screen"}),jsx("div",{className:"rb-empty-preview__hint",children:"Add a component to start"})]})})]})})})})}function copyNode(e){const{setCopiedNode:t}=useRenderStore.getState();t(e)}function isNodeDataLike(e){if("object"!=typeof e||null===e||Array.isArray(e))return!1;return"type"in e&&"children"in e}function normalizeKey(e){if("string"!=typeof e)return;const t=e.trim();return t.length>0?t:void 0}function collectNodeKeysInto(e,t){if(null==e)return;if("string"==typeof e)return;if(Array.isArray(e))return void e.forEach(e=>collectNodeKeysInto(e,t));if(!isNodeDataLike(e))return;const r=normalizeKey(e.key);r&&t.add(r),collectNodeKeysInto(e.children,t)}function collectNodeKeys(e){const t=new Set;return collectNodeKeysInto(e,t),t}function generateUniqueKey(e,t){let r="";do{r=generateRandomKeyForNode(e||"Node")}while(t.has(r));return r}function repairNodeKeys(e,t=new Set){if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let r=!1;const i=e.map(e=>{const i=repairNodeKeys(e,t);return i!==e&&(r=!0),i});return r?i:e}if(!isNodeDataLike(e))return e;const r=e,i=normalizeKey(r.key),o=!i||t.has(i)?generateUniqueKey(r.type,t):i;t.add(o);const n=r.children,a=repairNodeKeys(n,t);return o!==i||a!==n?{...r,key:o,children:a}:e}const platformIcons={android:getImage(TribeAssetName.Android),ios:getImage(TribeAssetName.Apple)};function DeviceButton({device:e,selectedDevice:t,onSelect:r}){const i=platformIcons[e.platform],o=e.aspect??(()=>{const t=e.height/e.width;return t>=2.05?"tall":t<=1.75?"wide":"regular"})();return jsxs("button",{type:"button",className:"editor-device-button"+(t===e?" editor-device-button--selected":""),onClick:()=>r(e),children:[e.name," ",jsx("br",{}),e.width,"×",e.height," (",o,")",i&&jsx("span",{children:jsx("img",{src:i,alt:"","aria-hidden":"true"})})]})}function Modal({onClose:e,ariaLabelledBy:t,children:r,className:i,contentClassName:o,closeOnOverlayClick:n=!0,closeOnEsc:a=!0}){useEffect(()=>{if(!a)return;if("undefined"==typeof window)return;const t=t=>{"Escape"===t.key&&e()};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[a,e]);const s=jsxs("div",{className:"modal"+(i?` ${i}`:""),role:"dialog","aria-modal":"true","aria-labelledby":t,children:[jsx("div",{className:"modal__overlay",onClick:n?e:void 0}),jsx("div",{className:"modal__content"+(o?` ${o}`:""),role:"document",children:r})]});return"undefined"==typeof document?s:createPortal(s,document.body)}function DeviceSelectorModal({devices:e,selectedDevice:t,onSelect:r,onClose:i}){const o=e=>{r(e),i()};return jsxs(Modal,{onClose:i,ariaLabelledBy:"device-selector-title",contentClassName:"device-selector-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"device-selector-title",className:"modal__title",children:"Select a device"}),jsx("button",{type:"button",className:"editor-button","aria-label":"Close device selector",onClick:i,children:"Close"})]}),jsx("div",{className:"device-selector-modal__grid",role:"list",children:e.map(e=>jsx(DeviceButton,{device:e,selectedDevice:t,onSelect:o},e.name))})]})}var name$k="hello-world",version$k="1.1.2",type$k="other",data$k={type:"View",attributes:{scrollable:!0,description:"View element 1 in sample.",title:"View 1",styles:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:16,backgroundColor:"#F5F7FA"}},children:[{type:"Text",children:"hello-world",attributes:{description:"Text element 1 in sample.",title:"Text 1",styles:{color:"#111827",fontSize:24,fontWeight:"600"}}},{type:"Text",children:"Welcome to react-native-builder",attributes:{description:"Text element 2 in sample.",title:"Text 2",styles:{color:"#6B7280",fontSize:14,fontWeight:"400"}}}]},simple1={name:name$k,version:version$k,type:type$k,data:data$k},name$j="hello-world-2-advanced",version$j="1.1.2",type$j="other",data$j={type:"view",attributes:{scrollable:!0,description:"view element 1 in sample.",title:"view 1",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",gap:16,padding:16,backgroundColor:"#F3F4F6"}},children:[{type:"view",attributes:{description:"view element 2 in sample.",title:"view 2",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#111827",borderRadius:12}},children:[{type:"text",children:"Dashboard",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{color:"#FFFFFF",fontSize:20,fontWeight:"600"}}},{type:"view",attributes:{description:"view element 3 in sample.",title:"view 3",styles:{flexDirection:"row",gap:8}},children:[{type:"text",children:"Help",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{color:"#D1D5DB",fontSize:14}}},{type:"text",children:"Profile",attributes:{description:"text element 3 in sample.",title:"text 3",styles:{color:"#D1D5DB",fontSize:14}}}]}]},{type:"image",attributes:{src:"https://picsum.photos/720/320",description:"image element 1 in sample.",title:"image 1",styles:{width:358,height:160,borderRadius:12}},children:null},{type:"view",attributes:{description:"view element 4 in sample.",title:"view 4",styles:{flexDirection:"column",gap:8,padding:12,backgroundColor:"#FFFFFF",borderRadius:12}},children:[{type:"text",children:"Welcome back!",attributes:{description:"text element 4 in sample.",title:"text 4",styles:{color:"#111827",fontSize:18,fontWeight:"600"}}},{type:"text",children:"Here's what's new today.",attributes:{description:"text element 5 in sample.",title:"text 5",styles:{color:"#6B7280",fontSize:14}}}]},{type:"view",attributes:{description:"view element 5 in sample.",title:"view 5",styles:{flexDirection:"column",gap:12}},children:[{type:"view",attributes:{description:"view element 6 in sample.",title:"view 6",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8}},children:[{type:"text",children:"Task 1",attributes:{description:"text element 6 in sample.",title:"text 6",styles:{color:"#111827",fontSize:16,fontWeight:"500"}}},{type:"text",children:"Due today",attributes:{description:"text element 7 in sample.",title:"text 7",styles:{color:"#059669",fontSize:12,fontWeight:"600"}}}]},{type:"view",attributes:{description:"view element 7 in sample.",title:"view 7",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8}},children:[{type:"text",children:"Task 2",attributes:{description:"text element 8 in sample.",title:"text 8",styles:{color:"#111827",fontSize:16,fontWeight:"500"}}},{type:"text",children:"2 days left",attributes:{description:"text element 9 in sample.",title:"text 9",styles:{color:"#D97706",fontSize:12,fontWeight:"600"}}}]},{type:"view",attributes:{description:"view element 8 in sample.",title:"view 8",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:12,backgroundColor:"#FFFFFF",borderRadius:8}},children:[{type:"text",children:"Task 3",attributes:{description:"text element 10 in sample.",title:"text 10",styles:{color:"#111827",fontSize:16,fontWeight:"500"}}},{type:"text",children:"Completed",attributes:{description:"text element 11 in sample.",title:"text 11",styles:{color:"#6B7280",fontSize:12,fontWeight:"600"}}}]}]},{type:"view",attributes:{description:"view element 9 in sample.",title:"view 9",styles:{flexDirection:"row",alignItems:"center",justifyContent:"space-around",padding:12,backgroundColor:"#111827",borderRadius:12}},children:[{type:"text",children:"Home",attributes:{description:"text element 12 in sample.",title:"text 12",styles:{color:"#FFFFFF",fontSize:14}}},{type:"text",children:"Search",attributes:{description:"text element 13 in sample.",title:"text 13",styles:{color:"#9CA3AF",fontSize:14}}},{type:"text",children:"Settings",attributes:{description:"text element 14 in sample.",title:"text 14",styles:{color:"#9CA3AF",fontSize:14}}}]}]},simple2={name:name$j,version:version$j,type:type$j,data:data$j},name$i="carousel-sample",version$i="1.1.2",type$i="other",data$i={type:"Main",isMain:!0,attributes:{styles:{backgroundColor:"#f8fafc",minHeight:"100vh",padding:"24px"}},children:{type:"carouselProvider",children:[{type:"carousel",attributes:{loop:!0,align:"center",dragFree:!0,description:"carousel element 1 in sample.",title:"carousel 1"},children:[{type:"carouselItem",attributes:{description:"carouselItem element 1 in sample.",title:"carouselItem 1",styles:{minWidth:0}},children:{type:"view",attributes:{description:"view element 1 in sample.",title:"view 1",styles:{padding:"22px",borderRadius:18,backgroundImage:"linear-gradient(135deg, #eef2ff 0%, #ffffff 55%, #ecfeff 100%)",boxShadow:"0 10px 30px rgba(15, 23, 42, 0.10)",gap:14,height:"100%"}},children:[{type:"image",attributes:{src:"https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",styles:{width:"auto",maxWidth:"100%",borderRadius:14}},key:"image-49ojfyhl4d7"},{type:"text",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{fontSize:28,fontWeight:"700",textAlign:"center",color:"#0f172a"}},children:"Welcome aboard",key:"text-3ougfj4mxnh"},{type:"text",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{fontSize:16,textAlign:"center",color:"#334155",paddingHorizontal:8}},children:"Swipe through a beautiful, validated carousel sample with images.",key:"text-2dol8grshke"}],key:"view-a8hfkdvfy7"},key:"carouselItem-5bw9x33s7ie"},{type:"carouselItem",attributes:{description:"carouselItem element 2 in sample.",title:"carouselItem 2",styles:{minWidth:0}},children:{type:"view",attributes:{description:"view element 2 in sample.",title:"view 2",styles:{padding:"22px",borderRadius:18,backgroundImage:"linear-gradient(135deg, #f0fdf4 0%, #ffffff 55%, #eff6ff 100%)",boxShadow:"0 10px 30px rgba(15, 23, 42, 0.10)",gap:14,height:"100%"}},children:[{type:"image",attributes:{src:"https://images.unsplash.com/photo-1553877522-43269d4ea984?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",styles:{width:"auto",maxWidth:"100%",borderRadius:14}},key:"image-riwntk91k9"},{type:"text",attributes:{description:"text element 3 in sample.",title:"text 3",styles:{fontSize:28,fontWeight:"700",textAlign:"center",color:"#0f172a"}},children:"Discover features",key:"text-hmuk6f7ml4v"},{type:"text",attributes:{description:"text element 4 in sample.",title:"text 4",styles:{fontSize:16,textAlign:"center",color:"#334155",paddingHorizontal:8}},children:"Dots + buttons are included, and slide sizing comes from the carousel CSS.",key:"text-dnhhoqiiri"}],key:"view-9hyw3wys30w"},key:"carouselItem-lyq2hr0qh8h"},{type:"carouselItem",attributes:{description:"carouselItem element 3 in sample.",title:"carouselItem 3",styles:{minWidth:0}},children:{type:"view",attributes:{description:"view element 3 in sample.",title:"view 3",styles:{padding:"22px",borderRadius:18,backgroundImage:"linear-gradient(135deg, #fff7ed 0%, #ffffff 55%, #f5f3ff 100%)",boxShadow:"0 10px 30px rgba(15, 23, 42, 0.10)",gap:14,height:"100%"}},children:[{type:"image",attributes:{src:"https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",styles:{width:"auto",maxWidth:"100%",borderRadius:14}},key:"image-j9ru3r8g7km"},{type:"text",attributes:{description:"text element 5 in sample.",title:"text 5",styles:{fontSize:28,fontWeight:"700",textAlign:"center",color:"#0f172a"}},children:"Get started",key:"text-01u3fwwtkd8p"},{type:"text",attributes:{description:"text element 6 in sample.",title:"text 6",styles:{fontSize:16,textAlign:"center",color:"#334155",paddingHorizontal:8}},children:"This sample stays within validation rules (no string flex shorthand).",key:"text-w8rwg9y1hj"}],key:"view-tsjfbzn8kdj"},key:"carouselItem-6r53yswjyee"}],key:"carousel-2qa4gn0ms32"},{type:"view",attributes:{title:"Carousel Controls",description:"carousel controls view element in sample.",styles:{flex:1,gap:24,alignItems:"center",paddingTop:32}},children:[{type:"carouselDots",attributes:{dotType:"expanding_dot"},key:"carouselDots-r5ji67uoxxg"},{type:"view",attributes:{title:"Nav Buttons",description:"navigation buttons wrapper",styles:{flexDirection:"row",gap:12,alignItems:"center",justifyContent:"center"}},children:[{type:"carouselButtons",attributes:{buttonType:["previous_button"],styles:{backgroundColor:"#6366f1",borderRadius:12,padding:"12px 24px",minWidth:100}},key:"carouselButtons-prev"},{type:"carouselButtons",attributes:{buttonType:["next_button"],styles:{backgroundColor:"#8b5cf6",borderRadius:12,padding:"12px 24px",minWidth:100}},key:"carouselButtons-next"}],key:"view-nav-buttons"}],key:"view-controls-wrapper"}],attributes:{description:"carouselProvider element 1 in sample.",title:"carouselProvider 1",styles:{backgroundColor:"#ffffff",borderRadius:24,padding:"32px",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.08)",maxWidth:"600px",margin:"0 auto"}},key:"carouselProvider-152n4dkqvam"},key:"Main-u1cavjag9sr"},carouselSample={name:name$i,version:version$i,type:type$i,data:data$i},name$h="unvalidated-builder1",version$h="1.1.2",type$h="other",data$h={type:"view",attributes:{foo:1,scrollable:!0,description:"view element 1 in sample.",title:"view 1",styles:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:24,backgroundColor:"#F5F7FA"}},children:[{type:"text",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{fontSize:22,fontWeight:"700",color:"#111827",textAlign:"center"}},children:"Intentionally unvalidated sample"},{type:"text",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{fontSize:14,color:"#6B7280",textAlign:"center",paddingHorizontal:8}},children:"This project should fail validation (unknown attribute: foo). In the UI, choose “Continue without validation” to load it anyway."}]},unvalidatedBuilder1={name:name$h,version:version$h,type:type$h,data:data$h},name$g="unvalidated-crash1",version$g="1.1.2",type$g="other",data$g={type:"OnboardFooter",attributes:{textLocalizationKey:123,description:"OnboardFooter element 1 in sample.",title:"OnboardFooter 1",styles:{paddingHorizontal:24,paddingVertical:16}},children:null},unvalidatedCrash1={name:name$g,version:version$g,type:type$g,data:data$g},name$f="unvalidated-crashcomponent1",version$f="1.1.2",type$f="other",data$f={type:"CrashComponent",attributes:{reason:"Intentional crash for GUI testing",note:"This component is not in the Add Component modal; it only exists via JSON.",description:"CrashComponent element 1 in sample.",title:"CrashComponent 1"},children:null},unvalidatedCrashComponent1={name:name$f,version:version$f,type:type$f,data:data$f},name$e="unmigrated-builder1",version$e="1.0.0",type$e="other",data$e={type:"view",attributes:{scrollable:!0,flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:24,backgroundColor:"#F5F7FA",description:"view element 1 in sample.",title:"view 1"},children:[{type:"text",attributes:{fontSize:22,fontWeight:"700",color:"#111827",textAlign:"center",description:"text element 1 in sample.",title:"text 1"},children:"Intentionally unmigrated sample"},{type:"text",attributes:{fontSize:14,color:"#6B7280",textAlign:"center",paddingHorizontal:8,description:"text element 2 in sample.",title:"text 2"},children:"This project has version 1.0.0 so the Migration page should appear. Click “Migrate now” to normalize legacy flat style keys into attributes.style and move misplaced props out of style (combined 1.1.2)."}]},unmigratedBuilder1={name:name$e,version:version$e,type:type$e,data:data$e},name$d="unmigrated-builder-1.1.1",version$d="1.1.1",type$d="other",data$d={type:"view",attributes:{scrollable:!0,description:"view element 1 in sample.",title:"view 1",styles:{flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,padding:24,backgroundColor:"#F5F7FA"}},children:[{type:"text",attributes:{description:"text element 1 in sample.",title:"text 1",styles:{fontSize:22,fontWeight:"700",color:"#111827",textAlign:"center"}},children:"Intentionally unmigrated sample (for combined 1.1.2)"},{type:"text",attributes:{description:"text element 2 in sample.",title:"text 2",styles:{fontSize:14,color:"#6B7280",textAlign:"center",paddingHorizontal:8}},children:"This project has version 1.1.1 so the Migration page should appear. Click “Migrate now” to move component props and non-style flags out of attributes.style (combined 1.1.2)."},{type:"view",attributes:{description:"view element 2 in sample.",title:"view 2",styles:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:12,marginTop:16}},children:[{type:"BIcon",attributes:{description:"BIcon element 1 in sample.",title:"BIcon 1",styles:{iconType:"check",strokeWidth:3,color:"#22c55e",fontSize:"18"}},children:null},{type:"image",attributes:{src:"https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=80",width:48,height:48,description:"image element 1 in sample.",title:"image 1",styles:{resizeMode:"contain",borderRadius:12}},children:null}]}]},unmigratedBuilder1_1_1={name:name$d,version:version$d,type:type$d,data:data$d},name$c="Simple Paywall",version$c="1.1.2",type$c="paywall",data$c={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall ana sağlayıcısı. (#1)",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",title:"Paywall Background",attributes:{src:"https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",description:"Paywall arka planı. (#1)",title:"Paywall Background"},children:null},{type:"View",title:"Paywall Inner",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:12,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#2)",title:"Benefits",styles:{flexDirection:"column",gap:0,marginTop:"4%"}},children:[{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#3)",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"İkon öğesi. (#1)",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#1)",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#4)",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"İkon öğesi. (#2)",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#2)",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Düzen ve yerleşim konteyneri. (#5)",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"İkon öğesi. (#3)",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#3)",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Abonelik seçenekleri alanı. (#1)",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Seçim satırı öğesi. (#1)",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"Text",attributes:{description:"Metin öğesi. (#4)",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription"},{type:"View",attributes:{title:"Price Column",styles:{flexDirection:"column",flex:1,alignItems:"flex-end"}},children:[{type:"PriceTag",attributes:{title:"Promo Price",styles:{textAlign:"right",fontWeight:"700"}},children:"@localizedCalculatedPrice"},{type:"PriceTag",attributes:{title:"Original Price",hideIfItsNotDiscount:!0,styles:{textAlign:"right",textDecorationLine:"line-through",fontSize:"12@fs",fontWeight:"400",color:"#999999"}},children:"@localizedPrice"}]},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"İkon öğesi. (#4)",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"View",attributes:{description:"Subscription butonu kapsayıcısı. (#1)",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",gap:8,paddingBottom:"50px"}},children:[{type:"Pricing",attributes:{description:"Pricing breakdown for promo/trial.",title:"Pricing Detail"},children:"@baseLocalizedPricingText"},{type:"Text",attributes:{description:"Trial detayı.",title:"Trial Full",styles:{textAlign:"center",fontSize:12,color:"rgba(255,255,255,0.6)"}},children:"@trialPeriod days free, then @price/@period"},{type:"PaywallSubscribeButton",children:"Subscribe",attributes:{description:"Abonelik onay butonu. (#1)",title:"Subscribe"}},{type:"Promo",attributes:{description:"Discount badge / promo text.",title:"Promo Badge"},children:"@baseLocalizedPromoText"}]}]}]}]},paywall1={name:name$c,version:version$c,type:type$c,data:data$c},name$b="Paywall With Counter",version$b="1.1.2",type$b="paywall",data$b={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for Paywall 2.",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1482192596544-9eb780fc7f66?auto=format&fit=crop&w=1200&q=80",resizeMode:"cover",description:"Paywall background.",title:"Paywall Background"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"}},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"Text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"Text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"Text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"}},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe Now",attributes:{description:"Subscription confirm button.",title:"Subscribe"}}]}]}]}]},paywall2={name:name$b,version:version$b,type:type$b,data:data$b},name$a="Paywall Back Offer",version$a="1.1.2",type$a="paywall",data$a={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for Back Offer.",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1470770903676-69b98201ea1c?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"}},children:"Back Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"}},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"}},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe Now",attributes:{description:"Subscription confirm button.",title:"Subscribe"}}]}]}]}]},paywallBackOffer={name:name$a,version:version$a,type:type$a,data:data$a},name$9="Paywall Notification Offer",version$9="1.1.2",type$9="paywall",data$9={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for Notification Offer.",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"}},children:"Notification Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"}},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"}},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe Now",attributes:{description:"Subscription confirm button.",title:"Subscribe"}}]}]}]}]},paywallNotificationOffer={name:name$9,version:version$9,type:type$9,data:data$9},name$8="Paywall App Open Offer",version$8="1.1.2",type$8="paywall",data$8={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for App Open Offer.",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"}},children:"App Open Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"}},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"}},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe Now",attributes:{description:"Subscription confirm button.",title:"Subscribe"}}]}]}]}]},paywallAppOpenOffer={name:name$8,version:version$8,type:type$8,data:data$8},name$7="Paywall App Delete Offer",version$7="1.1.2",type$7="paywall",data$7={type:"Main",isMain:!0,attributes:{useSafeAreaView:!0,description:"Main container for App Delete Offer.",title:"Main"},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"PaywallProvider",attributes:{scrollable:!0,description:"Paywall provider container.",title:"Main Paywall",styles:{flexDirection:"column",alignItems:"stretch",justifyContent:"flex-start",position:"relative",backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"PaywallBackground",attributes:{src:"https://images.unsplash.com/photo-1496307042754-b4aa456c4a2d?auto=format&fit=crop&w=1200&q=80",description:"Paywall background.",title:"Paywall Background"},children:null},{type:"View",attributes:{styles:{paddingTop:56,paddingHorizontal:16,paddingBottom:16,gap:16,flex:1}},children:[{type:"PaywallCloseButton",attributes:{styles:{width:32,height:32,borderRadius:16,backgroundColor:"STATIC_COLORS.WHITE",color:"STATIC_COLORS.BLACK",zIndex:10,alignItems:"center",justifyContent:"center"}},children:null},{type:"text",attributes:{description:"Title text.",title:"Paywall Title",styles:{color:"STATIC_COLORS.WHITE",fontWeight:"700",fontSize:28,textAlign:"center"}},children:"App Delete Offer"},{type:"View",attributes:{description:"Benefits container.",title:"Benefits",styles:{flexDirection:"column",gap:4,marginTop:"12%"}},children:[{type:"View",attributes:{description:"Benefit container #1.",title:"Benefit #1",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 1",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 1",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit1 — Unlimited access"}]},{type:"View",attributes:{description:"Benefit container #2.",title:"Benefit #2",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 2",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 2",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit2 — 7-day free trial"}]},{type:"View",attributes:{description:"Benefit container #3.",title:"Benefit #3",styles:{flexDirection:"row",alignItems:"center",gap:8,paddingVertical:8,paddingHorizontal:12}},children:[{type:"BIcon",attributes:{iconType:"check",strokeWidth:3,description:"Icon item.",title:"BIcon 3",styles:{color:"THEME_COLORS.ICON",fontSize:"16",flex:0}},children:null},{type:"text",attributes:{description:"Text item.",title:"text 3",styles:{flex:1,color:"STATIC_COLORS.WHITE",fontWeight:"700"}},children:"@benefit3 — Cancel anytime"}]}]},{type:"PaywallOptions",attributes:{description:"Subscription options area.",title:"Option(s)",styles:{borderRadius:12,backgroundColor:"THEME_COLORS.BACKGROUND"}},children:[{type:"RadioButton",attributes:{description:"Radio item.",title:"Product Radio(s)",styles:{flex:1}},children:null},{type:"text",attributes:{description:"Product description.",title:"Product Desc(s)",styles:{flex:4}},children:"@productDescription — Unlock all premium features for a month."},{type:"text",attributes:{description:"Product price.",title:"Product Price(s)",styles:{flex:1,textAlign:"right"}},children:"@localizedPrice"},{type:"BIcon",attributes:{iconType:"chevron-right",size:16,description:"Chevron icon.",title:"Product BIcon(s)",styles:{marginRight:4,flex:0,width:32,color:"STATIC_COLORS.BLACK"}},children:null}]},{type:"CountDown",attributes:{count:3e4,description:"Countdown timer (30 seconds).",title:"Countdown",styles:{fontWeight:"700",fontSize:40,textAlign:"center"}},children:null},{type:"View",attributes:{description:"Subscribe button container.",title:"Subs Container",styles:{flex:1,flexDirection:"column",justifyContent:"flex-end",alignItems:"stretch",paddingBottom:"50px"}},children:[{type:"PaywallSubscribeButton",children:"Subscribe Now",attributes:{description:"Subscription confirm button.",title:"Subscribe"}}]}]}]}]},paywallAppDeleteOffer={name:name$7,version:version$7,type:type$7,data:data$7},name$6="vpn-onboard-1",version$6="1.1.2",type$6="onboard",appConfig$2={localication:{ar:{"onboard.title.one-page":"أمّن اتصالك","onboard.title.two-page":"وصول إلى المحتوى حول العالم","onboard.title.three-page":"سرعة واعتمادية","onboard.title.four-page":"إشعارات وحماية دائمة","onboard.subtitle.one-page":"قم بتشفير حركة المرور وحماية خصوصيتك على شبكات Wi‑Fi العامة.","onboard.subtitle.two-page":"اتصل بخوادم عالية السرعة في بلدان متعددة بضغطة واحدة.","onboard.subtitle.three-page":"يتصل التطبيق تلقائياً بأفضل خادم لسرعة وثبات أعلى.","onboard.subtitle.four-page":"فعّل الإشعارات لمعرفة حالة الاتصال والحصول على نصائح الأمان.","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة، فإنك توافق على","view.onboarding.btnPrivacy":"سياسة الخصوصية","view.onboarding.btnTerms":"شروط الخدمة"}}},data$6={type:"Main",isMain:!0,key:"c92tR8J5wbTb3fav",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.one-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/6c89e0da17a2d6fe2997e97a2b8a00a1.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.two-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/497a627b30ab4a0daaafa3d648a26b07.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.three-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/6e2bc370d38695f6845007fd302034c2.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.four-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/b6e978fe3362e857212163486c22cc7c.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard1={name:name$6,version:version$6,type:type$6,appConfig:appConfig$2,data:data$6},name$5="vpn-onboard-2",version$5="1.1.2",type$5="onboard",appConfig$1={localication:{ar:{"onboard.title.one-page":" العربية","onboard.title.two-page":" العربية","onboard.title.three-page":" العربية","onboard.title.four-page":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.four-page":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}}},data$5={type:"Main",isMain:!0,key:"ckcw0WXRY8sNR2SF",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.one-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/0c65cbe8e0c2e1242146e15dfd50a486.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.two-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/e8bbdde825cd23bdc44a9b2b32af22dc.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.three-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/3f312b38faf844746250cd54f27f91da.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.four-page"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/f4db2a32a43239c3bbbe742cb0f18b61.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",animation:"line-animation",animation_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",animation:"simple-animation",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"light",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard2={name:name$5,version:version$5,type:type$5,appConfig:appConfig$1,data:data$5},name$4="vpn-onboard-3",version$4="1.1.2",type$4="onboard",appConfig={localication:{ar:{"onboard.title.one-page":" العربية","onboard.title.one-page2":" العربية","onboard.title.two-page":" العربية","onboard.title.two-page2":" العربية","onboard.title.three-page":" العربية","onboard.title.three-page2":" العربية","onboard.title.four-page":" العربية","onboard.title.four-page2":" العربية","onboard.subtitle.one-page":" العربية","onboard.subtitle.one-page2":" العربية","onboard.subtitle.two-page":" العربية","onboard.subtitle.two-page2":" العربية","onboard.subtitle.three-page":" العربية","onboard.subtitle.three-page2":" العربية","onboard.subtitle.four-page":" العربية","onboard.subtitle.four-page2":" العربية","onboard.next.one-page":"التالي","onboard.next.two-page":"التالي","onboard.next.three-page":"التالي","onboard.skip.one-page":"تخطي","onboard.skip.two-page":"تخطي","onboard.skip.three-page":"تخطي","onboard.allow.four-page":"السماح","view.onboarding.footer.description":"بالمتابعة فإنك توافق على","view.onboarding.btnPrivacy":"الخصوصية","view.onboarding.btnTerms":"الشروط"}}},data$4={type:"Main",isMain:!0,key:"ckcw0WXRY8sNR2SF",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.one-page2"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/c68cca84580d6920c883c220e57346c0.jpg",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.one-page2"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.two-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.three-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.three-page2"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.four-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.four-page2"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"light",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard3={name:name$4,version:version$4,type:type$4,appConfig:appConfig,data:data$4},name$3="vpn-onboard-4",version$3="1.1.2",type$3="onboard",data$3={type:"Main",isMain:!0,key:"c92tR8J5wbTb3fav",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.one-page2"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/aadf6191a8f1091831647b3a01e1a1aa.jpg",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.one-page2"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.two-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.two-page2"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.three-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.three-page2"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40}},children:"onboard.title.four-page2"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center"}},children:"onboard.subtitle.four-page2"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard4={name:name$3,version:version$3,type:type$3,data:data$3},name$2="vpn-onboard-5",version$2="1.1.2",type$2="onboard",data$2={type:"Main",isMain:!0,key:"cJVVSS7q9Qe1trnb",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/d237d6cde8bc9126cee7b47e30cd19f0.png",resizeMode:"contain",lottie:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/lottie/0be045f9fe44c790a4525a1a6bc4b837.json",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.one-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/820dc32b8252555058e7014a7fd1652f.png",resizeMode:"contain",video_url:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/video/440346112d02e65be3767c39b96cd7c0.mp4",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.two-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/fbb8677cd23cba79eef0ebef181e3b57.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.three-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/18cdd5cc478389df8ff362f95b7173ea.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.five-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.five-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}},{type:"OnboardItem",key:"app_onboard-page6",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/3c1225f83f5a5c934926fab3cb0e65d5.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#5)",title:"OnboardTitle 5",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.six-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#5)",title:"OnboardSubtitle 5",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.six-page"}],attributes:{description:"Onboarding sayfası. (#5)",title:"OnboardItem 5"}},{type:"OnboardItem",key:"app_onboard-page5",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ff07e162b2a63d38f07909e87848d46f.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#6)",title:"OnboardTitle 6",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.four-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#6)",title:"OnboardSubtitle 6",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#6)",title:"OnboardItem 6"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.LINE",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.LINE",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.LINE",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.five-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.LINE",events:[{type:"Navigate",navigate_to:null,targetIndex:4}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.five-page",button_text_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_TEXT",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"GDPR"},{type:"Navigate",navigate_to:null,targetIndex:4}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:4,description:"Sayfa buton grubu. (#5)",title:"OnboardButtons 5",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.five-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.LINE",events:[{type:"Navigate",navigate_to:null,targetIndex:5}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.five-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:5}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:5,description:"Sayfa buton grubu. (#6)",title:"OnboardButtons 6",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"subscriptions"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"all",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard5={name:name$2,version:version$2,type:type$2,data:data$2},name$1="vpn-onboard-6",version$1="1.1.2",type$1="onboard",data$1={type:"Main",isMain:!0,key:"cJVVSS7q9Qe1trnb",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/9cb1d668b3724655f93a91e5eee771c5.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.one-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.one-page"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/f8d0c64bf89cc5f2f14126d0544ba174.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.two-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.two-page"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ad823809885c1a2a8e4632039f35a94e.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.three-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.three-page"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardImage",attributes:{src:"https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ede1705c51f3434ae9053ed5f29bf5dd.png",resizeMode:"contain",styles:{height:400}}},{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE"}},children:"onboard.title.four-page"},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE"}},children:"onboard.subtitle.four-page"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}}},{type:"OnboardDot",attributes:{dotType:"expanding_dot",dot_thickness:20,inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12}}},{type:"Separator",attributes:{title:"Separator",description:"Horizontal separator line",styles:{width:"100%",height:2,backgroundColor:"STATIC_COLORS.ONBOARD_SEPARATOR_COLOR"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.TEXT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.TEXT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"THEME_COLORS.TEXT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}]},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"subscriptions"}],styles:{flex:1}}}]},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT"}}}]}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"}}]},vpnOnboard6={name:name$1,version:version$1,type:type$1,data:data$1},name="vpn-onboard-7",version="1.1.2",type="onboard",data={type:"Main",isMain:!0,key:"c92tR8J5wbTb3fav",attributes:{useSafeAreaView:!0,description:"Ekranın ana kapsayıcısı. (#1)",title:"Main 1",styles:{paddingBottom:16}},children:[{type:"StatusBarColor",attributes:{title:"Status Bar Color",description:"Status bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null,key:"StatusBarColor-sxj19suwkrn"},{type:"NavigationBarColor",attributes:{title:"Navigation Bar Color",description:"Navigation bar background color.",styles:{backgroundColor:"THEME_COLORS.BACKGROUND"}},children:null,key:"NavigationBarColor-rhzn570dc5o"},{type:"OnboardProvider",children:[{type:"Onboard",children:[{type:"OnboardItem",key:"app_onboard-page1",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#1)",title:"OnboardTitle 1",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40,fontSize:"28@fs"}},children:"onboard.title.one-page",key:"OnboardTitle-5t0p86nj13m"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/6c89e0da17a2d6fe2997e97a2b8a00a1.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#1)",title:"OnboardSubtitle 1",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center",paddingTop:"30@vs"}},children:"onboard.subtitle.one-page",key:"OnboardSubtitle-0max8wno7l5b"}],attributes:{description:"Onboarding sayfası. (#1)",title:"OnboardItem 1"}},{type:"OnboardItem",key:"app_onboard-page2",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#2)",title:"OnboardTitle 2",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40,fontSize:"28@fs"}},children:"onboard.title.two-page",key:"OnboardTitle-ne9iihu925k"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/497a627b30ab4a0daaafa3d648a26b07.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#2)",title:"OnboardSubtitle 2",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center",paddingTop:"30@vs"}},children:"onboard.subtitle.two-page",key:"OnboardSubtitle-jq9469r7c2"}],attributes:{description:"Onboarding sayfası. (#2)",title:"OnboardItem 2"}},{type:"OnboardItem",key:"app_onboard-page3",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#3)",title:"OnboardTitle 3",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40,fontSize:"28@fs"}},children:"onboard.title.three-page",key:"OnboardTitle-hczvlbg7gqj"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/6e2bc370d38695f6845007fd302034c2.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#3)",title:"OnboardSubtitle 3",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center",paddingTop:"30@vs"}},children:"onboard.subtitle.three-page",key:"OnboardSubtitle-rufjwid9yug"}],attributes:{description:"Onboarding sayfası. (#3)",title:"OnboardItem 3"}},{type:"OnboardItem",key:"app_onboard-page4",children:[{type:"OnboardTitle",attributes:{description:"Sayfa başlığı. (#4)",title:"OnboardTitle 4",styles:{color:"THEME_COLORS.ONBOARD_TITLE",textAlign:"center",marginTop:40,fontSize:"28@fs"}},children:"onboard.title.four-page",key:"OnboardTitle-f2ekfc0wcbl"},{type:"OnboardImage",attributes:{src:"https://textcall-dev.s3.amazonaws.com/onboard/high/b6e978fe3362e857212163486c22cc7c.png",resizeMode:"contain",styles:{height:350}}},{type:"OnboardSubtitle",attributes:{description:"Sayfa alt başlığı. (#4)",title:"OnboardSubtitle 4",styles:{color:"THEME_COLORS.ONBOARD_SUBTITLE",fontSize:16,textAlign:"center",paddingTop:"30@vs"}},children:"onboard.subtitle.four-page",key:"OnboardSubtitle-qkw2jn84xem"}],attributes:{description:"Onboarding sayfası. (#4)",title:"OnboardItem 4"}}],attributes:{description:"Onboarding ana yapısı. (#1)",title:"Onboard 1",styles:{flex:1}},key:"Onboard-dg1zmwdawmg"},{type:"OnboardDot",attributes:{dotType:"expanding_dot",inactive_dot_opacity:.3,inactive_dot_color:"STATIC_COLORS.ONBOARD_DOT_INACTIVE",active_dot_color:"STATIC_COLORS.ONBOARD_DOT_ACTIVE",styles:{paddingVertical:12,dot_thickness:"10@s"}}},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:0,description:"Sayfa buton grubu. (#1)",title:"OnboardButtons 1",styles:{height:40,marginVertical:12,flexShrink:0,paddingBottom:"5@s"}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.one-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.one-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Navigate",navigate_to:null,targetIndex:1}],styles:{flex:1}}}],key:"OnboardButtons-92fw2wn62h"},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:1,description:"Sayfa buton grubu. (#2)",title:"OnboardButtons 2",styles:{height:40,marginVertical:12,flexShrink:0,paddingBottom:"5@s"}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.two-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.two-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"att"},{type:"Navigate",navigate_to:null,targetIndex:2}],styles:{flex:1}}}],key:"OnboardButtons-mu7r8a5qx4"},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:2,description:"Sayfa buton grubu. (#3)",title:"OnboardButtons 3",styles:{height:40,marginVertical:12,flexShrink:0,paddingBottom:"5@s"}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.skip.three-page",button_text_color:"THEME_COLORS.ONBOARD_BUTTON_SECONDARY_TEXT",button_background_color:"STATIC_COLORS.TRANSPARENT",events:[{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}},{type:"OnboardButton",attributes:{labelKey:"onboard.next.three-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"rating"},{type:"Navigate",navigate_to:null,targetIndex:3}],styles:{flex:1}}}],key:"OnboardButtons-rulfu6b5w5"},{type:"OnboardButtons",attributes:{buttons_direction:"row",condition:"carousel-index",conditionVariable:3,description:"Sayfa buton grubu. (#4)",title:"OnboardButtons 4",styles:{height:40,marginVertical:12,flexShrink:0,paddingBottom:"5@s"}},children:[{type:"OnboardButton",attributes:{labelKey:"onboard.allow.four-page",button_text_color:"STATIC_COLORS.WHITE",button_background_color:"STATIC_COLORS.ONBOARD_BUTTON_PRIMARY_BACKGROUND",events:[{type:"Permission",permission:"notification"},{type:"Navigate",navigate_to:"home"}],styles:{flex:1}}}],key:"OnboardButtons-yru5emc0zcs"},{type:"View",attributes:{title:"Onboard Footer Wrap",description:"Wrapper for OnboardFooter component",styles:{marginHorizontal:25,flexShrink:0}},children:[{type:"OnboardFooter",attributes:{textLocalizationKey:"view.onboarding.footer.description",linkedWordFirstLocalizationKey:"view.onboarding.btnPrivacy",linkedWordFirstColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordFirstPage:"privacy",linkedWordSecondLocalizationKey:"view.onboarding.btnTerms",linkedWordSecondColor:"STATIC_COLORS.ONBOARD_LINK_COLOR",linkedWordSecondPage:"terms",styles:{gap:8,color:"THEME_COLORS.ONBOARD_FOOTER_TEXT",fontSize:"12@fs"}}}],key:"View-c5vb7865vto"}],attributes:{theme:"dark",description:"Onboarding sağlayıcısı. (#1)",title:"OnboardProvider 1"},key:"OnboardProvider-pvc5b6o5gu"}]},vpnOnboard7={name:name,version:version,type:type,data:data};function normalizeSample(e){return{...e,appConfig:{...defaultAppConfig,...e.appConfig}}}function getSamples(){return[simple1,simple2,carouselSample,unvalidatedBuilder1,unvalidatedCrash1,unvalidatedCrashComponent1,unmigratedBuilder1,unmigratedBuilder1_1_1,paywall1,paywall2,paywallBackOffer,paywallNotificationOffer,paywallAppOpenOffer,paywallAppDeleteOffer,vpnOnboard1,vpnOnboard2,vpnOnboard3,vpnOnboard4,vpnOnboard5,vpnOnboard6,vpnOnboard7].map(normalizeSample)}const devices=getDevices();function EditorHeader({onSaveProject:e,onRestoreProject:t,current:r,editorData:i,setEditorData:o}){useLogRender("EditorHeader");const[n,a]=useState(!1),[s,l]=useState(!1),c=useRef(null),d=useRenderStore(e=>e.copiedNode),{device:p,setDevice:h,setCurrent:u,setAppConfig:g,setProjectColors:m}=useRenderStore(e=>({device:e.device,setDevice:e.setDevice,setCurrent:e.setCurrent,setAppConfig:e.setAppConfig,setProjectColors:e.setProjectColors})),f=useMemo(()=>{const e=e=>"paywall"===e?0:"onboard"===e?1:2;return getSamples().slice().sort((t,r)=>{const i=e(t.type)-e(r.type);return 0!==i?i:t.name.localeCompare(r.name)})},[]),b=useMemo(()=>`editor-actions-menu-${Math.random().toString(36).slice(2,9)}`,[]);function C(e,t,r){if(e===t)return r;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let i=!1;const o=e.map(e=>{const o=C(e,t,r);return o!==e&&(i=!0),o});return i?o:e}const i=e;if("children"in i){const e=i.children,o=Array.isArray(e)?e.map(e=>C(e,t,r)):C(e,t,r);if(o!==e)return{...i,children:o}}return e}useEffect(()=>{if(!s)return;const e=e=>{const t=c.current;t&&(e.target instanceof Element&&t.contains(e.target)||l(!1))},t=e=>{"Escape"===e.key&&l(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("keydown",t)}},[s]);const v=e=>JSON.parse(JSON.stringify(e)),x=e=>{if(!r||!i||!o)return;const t=v(e.data),n=collectNodeKeys(i),a=e=>(e=>"object"==typeof e&&null!==e&&!Array.isArray(e))(e)&&"type"in e&&"children"in e;if(!a(r))return void y.error("Select a component node to paste into");const s=r.children,l=(e=>{if(a(e)){if("main"===e.type||!0===e.isMain){const t=e.children;return t?Array.isArray(t)?t:[t]:[]}}return[e]})(t);if(0===l.length)return void y.error("Sample has no children to paste");const c=l.map(e=>repairNodeKeys(e,n));let d;d=s?Array.isArray(s)?[...s,...c]:[s,...c]:1===c.length?c[0]:c;const p={...r,children:d},h=C(i,r,p);o(h),u(p),y.success(`Pasted from "${e.name}"`)},S=()=>l(!1),w=!!r,_=!!(r&&i&&o&&d);return jsxs("div",{className:"editor-header",role:"region","aria-label":"Editor utility header",children:[jsxs("div",{className:"editor-header__devices",children:[devices.slice(0,5).map(e=>jsx(DeviceButton,{selectedDevice:p,onSelect:h,device:e},e.name)),jsx("button",{className:"editor-device-button","aria-label":"More devices",onClick:()=>a(!0),children:"More devices"})]}),jsx("div",{className:"editor-header__actions",children:jsxs("div",{className:"editor-actions-dropdown",ref:c,children:[jsxs("button",{className:"editor-button editor-actions-dropdown__trigger","aria-label":"Open actions menu","aria-haspopup":"menu","aria-expanded":s,"aria-controls":b,onClick:()=>l(e=>!e),children:["Actions",jsx("span",{className:"editor-actions-dropdown__caret","aria-hidden":"true",children:"▾"})]}),s&&jsxs("ul",{id:b,className:"editor-actions-dropdown__menu",role:"menu","aria-label":"Editor actions",children:[jsxs("li",{role:"none",className:"editor-actions-dropdown__submenu-root",children:[jsxs("button",{className:"editor-actions-dropdown__item",role:"menuitem","aria-haspopup":"menu","aria-label":"Replace from samples",onClick:e=>e.preventDefault(),children:["Replace from samples",jsx("span",{className:"editor-actions-dropdown__submenu-caret","aria-hidden":"true",children:"◂"})]}),jsx("ul",{className:"editor-actions-dropdown__submenu",role:"menu","aria-label":"Replace from sample",children:f.map(e=>jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item editor-actions-dropdown__item--compact",role:"menuitem",onClick:()=>{(e=>{if(!o)return;const t=repairNodeKeys(v(e.data));o(t),u(t),e.appConfig&&g(e.appConfig),m(e.projectColors),y.success(`Replaced with "${e.name}"`)})(e),S()},children:e.name})},`replace-${e.name}`))})]}),jsxs("li",{role:"none",className:"editor-actions-dropdown__submenu-root",children:[jsxs("button",{className:"editor-actions-dropdown__item",role:"menuitem","aria-haspopup":"menu","aria-label":"Paste from samples",onClick:e=>e.preventDefault(),disabled:!r,title:r?void 0:"Select a node first",children:["Paste from samples",jsx("span",{className:"editor-actions-dropdown__submenu-caret","aria-hidden":"true",children:"◂"})]}),jsx("ul",{className:"editor-actions-dropdown__submenu",role:"menu","aria-label":"Paste from sample",children:f.map(e=>jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item editor-actions-dropdown__item--compact",role:"menuitem",onClick:()=>{x(e),S()},disabled:!r,children:e.name})},`paste-${e.name}`))})]}),jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item editor-save-button",role:"menuitem",onClick:()=>{e?.(),S()},disabled:!e,children:"Save"})}),t&&jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item editor-save-previewconfig-button",role:"menuitem",onClick:()=>{try{t?.(),y.info("Restored")}catch{y.error("Restore failed")}finally{S()}},children:"Restore"})}),jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item",role:"menuitem",onClick:()=>{w&&(r&©Node(r),y.info("Copied"),S())},disabled:!w,children:"Copy"})}),jsx("li",{role:"none",children:jsx("button",{className:"editor-actions-dropdown__item",role:"menuitem",onClick:()=>{_&&((()=>{if(!r||!i||!o)return;if(!d)return;const e=repairNodeKeys(JSON.parse(JSON.stringify(d)),collectNodeKeys(i)),t=C(i,r,e);useRenderStore.setState({copiedNode:null}),o(t),u(e)})(),y.success("Pasted"),S())},disabled:!_,children:"Paste"})})]})]})}),n&&jsx(DeviceSelectorModal,{devices:devices,selectedDevice:p,onSelect:h,onClose:()=>a(!1)})]})}const SAVED_COLORS_KEY="attributes-editor-saved-colors",formatTokenLabel$1=e=>e.split(/[_-]/g).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" "),mapTokensToOptions=(e,t)=>{if(!e)return[];const r=t?.groupKey??"group";return Object.entries(e).filter(([,e])=>"string"==typeof e&&e.trim().length>0).map(([e,i])=>{const o=i.trim(),n=t?.tokenLabelPrefix?`${t.tokenLabelPrefix}.${e}`:void 0;return{id:`${r}-${e}`,label:formatTokenLabel$1(e),value:o,tokenLabel:n}})},readSavedColors=()=>{if("undefined"==typeof window)return[];try{const e=window.localStorage.getItem(SAVED_COLORS_KEY);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(e=>"string"==typeof e).map(e=>e.trim().toLowerCase()).filter(Boolean):[]}catch{return[]}},persistSavedColors=e=>{if("undefined"!=typeof window)try{window.localStorage.setItem(SAVED_COLORS_KEY,JSON.stringify(e))}catch{}},STATIC_PREFIX="STATIC_COLORS.",THEME_PREFIX="THEME_COLORS.",resolveProjectColorValue=(e,t)=>{if(!e||"string"!=typeof e||!t)return;const r=e.trim();if(r){if(r.startsWith(STATIC_PREFIX)){const e=r.slice(STATIC_PREFIX.length),i=t.STATIC_COLORS?.[e];return"string"==typeof i&&i.trim()?i.trim():void 0}if(r.startsWith(THEME_PREFIX)){const e=r.slice(THEME_PREFIX.length);if(!e)return;const i=e.split(".");if(1===i.length){const e=i[0],r=t.THEME_COLORS;if(!r)return;for(const t of Object.values(r)){const r=t?.[e];if("string"==typeof r&&r.trim())return r.trim()}return}const[o,...n]=i,a=n.join(".");if(!o||!a)return;const s=t.THEME_COLORS?.[o],l=s?.[a];return"string"==typeof l&&l.trim()?l.trim():void 0}}};function ColorModal({value:e,projectColors:t,onSelect:r,onClose:i,onClear:o}){const[n,a]=useState(()=>readSavedColors()),[s,l]=useState(!0),c=useRef(null),d=useId(),p=useId(),h=useMemo(()=>resolveProjectColorValue(e,t)??e,[e,t]),u=useMemo(()=>{if(!t)return[];const e=[],r=mapTokensToOptions(t.STATIC_COLORS,{groupKey:"static",tokenLabelPrefix:"STATIC_COLORS"});r.length&&e.push({title:"Static colors",options:r,emptyMessage:"No static colors defined."});const i=t.THEME_COLORS??{};return Object.entries(i).forEach(([t,r])=>{const i=mapTokensToOptions(r,{groupKey:`theme-${t||"default"}`,tokenLabelPrefix:"THEME_COLORS"});if(!i.length)return;const o=t?.trim()?formatTokenLabel$1(t):"Theme";e.push({title:`Theme: ${o}`,options:i,emptyMessage:`No colors defined for ${o}.`})}),e},[t]),g=useMemo(()=>n.map((e,t)=>({id:`saved-${t}-${e}`,label:e,value:e})),[n]),m=e=>{const t=e?.trim().toLowerCase();t&&(a(e=>{if(e.includes(t))return e;const r=[...e,t];return persistSavedColors(r),r}),r(t),i())},f=()=>{const e=c.current,t=e?e.showPicker:void 0;if(e&&"function"==typeof t){try{e.focus({preventScroll:!0})}catch{}t.call(e)}else(()=>{if("undefined"==typeof document)return;const e=document.createElement("input");e.type="color",e.value=h?.toString()||"#000000",e.style.position="fixed",e.style.left="-1000px",e.style.top="0",e.style.width="40px",e.style.height="40px",e.style.opacity="0";const t=()=>{e.removeEventListener("change",r),e.removeEventListener("input",r),e.removeEventListener("blur",t),e.remove()},r=()=>{m(e.value),t()};e.addEventListener("change",r),e.addEventListener("input",r),e.addEventListener("blur",t),document.body.appendChild(e);try{e.focus({preventScroll:!0})}catch{}requestAnimationFrame(()=>e.click())})()},y=e=>{m(e.target.value),e.target.value="#000000"},b=e=>{const t=s&&e.tokenLabel?e.tokenLabel:e.value;r(t),i()};return jsxs(Modal,{onClose:i,ariaLabelledBy:"color-picker-title",contentClassName:"color-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"color-picker-title",className:"modal__title",children:"Pick a color"}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxs("div",{className:"color-modal__selected",children:[jsxs("div",{className:"color-modal__selected-info",children:[jsx("label",{htmlFor:p,role:"button","aria-label":"Open color picker",tabIndex:0,title:"Pick a color",className:"color-modal__selected-preview",style:{background:h??"transparent"},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),f())}}),jsxs("div",{children:[jsx("p",{className:"color-modal__selected-label",children:"Selected color"}),jsx("p",{className:"color-modal__selected-value",children:e??"None"})]})]}),e?jsx("button",{type:"button",className:"color-modal__link-button",onClick:o,children:"Clear"}):null]}),jsxs("div",{className:"color-modal__toggle",children:[jsxs("label",{htmlFor:d,className:"color-modal__toggle-label",children:[jsx("input",{id:d,type:"checkbox",className:"color-modal__toggle-input",checked:s,onChange:e=>l(e.target.checked)}),"Use color names"]}),jsx("p",{className:"color-modal__toggle-description",children:"Output tokens like STATIC_COLORS.PRIMARY instead of raw values."})]}),u.length?u.map(t=>jsx(ColorSection,{title:t.title,options:t.options,emptyMessage:t.emptyMessage,activeValue:e,onSelect:b},t.title)):jsx(ColorSection,{title:"Project colors",options:[],emptyMessage:"No project colors detected yet.",activeValue:e,onSelect:b}),jsx(ColorSection,{title:"Saved colors",options:g,emptyMessage:"Add colors you use often for quick access.",action:jsxs("span",{className:"color-modal__link-button color-modal__add-color",children:["Add color",jsx("input",{type:"color",className:"color-modal__add-color-input",onChange:y,defaultValue:"#000000","aria-label":"Add color"})]}),activeValue:e,onSelect:b}),jsx("input",{ref:c,id:p,type:"color",className:"color-modal__input",onChange:y,defaultValue:"#000000",tabIndex:-1})]})}function ColorSection({title:e,options:t,emptyMessage:r,action:i,activeValue:o,onSelect:n}){return jsxs("section",{className:"color-section",children:[jsxs("div",{className:"color-section__header",children:[jsx("p",{className:"color-section__title",children:e}),i]}),t.length?jsx("div",{className:"color-section__swatches",children:t.map(e=>jsx(ColorSwatch,{option:e,isActive:e.tokenLabel&&e.tokenLabel===o||e.value===o,onSelect:()=>n(e)},e.id))}):jsx("p",{className:"color-section__empty",children:r??"No colors available."})]})}function ColorSwatch({option:e,isActive:t,onSelect:r}){const i="#ffffff"===e.value?.trim().toLowerCase()||"#fff"===e.value?.trim().toLowerCase();return jsxs("button",{type:"button",onClick:r,className:"color-modal__swatch"+(t?" color-modal__swatch--active":""),children:[jsx("span",{"aria-hidden":!0,className:"color-modal__swatch-preview"+(i?" color-modal__swatch-preview--light":""),style:{background:e.value??"transparent"}}),jsx("span",{className:"color-modal__swatch-label",children:e.label??e.value}),jsx("span",{className:"color-modal__swatch-value",children:e.tokenLabel?`${e.tokenLabel} - ${e.value}`:e.value})]})}const Checkbox=React.forwardRef(({label:e,helperText:t,className:r,inputClassName:i,onChange:o,id:n,disabled:a,...s},l)=>{const c=useId(),d=n??c,p=t?`${d}-helper`:void 0,h=["builder-checkbox",a?"builder-checkbox--disabled":void 0,r].filter(Boolean).join(" "),u=["builder-checkbox__native",i].filter(Boolean).join(" ");return jsxs("div",{className:h,children:[jsxs("label",{htmlFor:d,className:"builder-checkbox__label",children:[jsx("input",{...s,ref:l,id:d,type:"checkbox",className:u,onChange:e=>{o?.(e.target.checked,e)},disabled:a,"aria-describedby":p}),jsx("span",{className:"builder-checkbox__control","aria-hidden":"true"}),e?jsx("span",{className:"builder-checkbox__text",children:e}):null]}),t?jsx("span",{id:p,className:"builder-checkbox__helper",children:t}):null]})});function LayoutPreviewPicker({mode:e,options:t,value:r,onChange:i,layoutContext:o,viewAttributes:n}){if(!t.length)return null;const a="string"==typeof r?r:o?.[e];return jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:6,paddingBottom:2},children:t.map(t=>{const r=a===t;return jsxs("button",{type:"button",onClick:()=>i(t),style:{borderRadius:8,padding:5,width:110,flex:"0 0 auto",border:r?"2px solid #222":"1px solid #d5d5d5",background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",textAlign:"left",display:"flex",flexDirection:"column",gap:3,cursor:"pointer",boxShadow:r?"0 2px 4px rgba(0,0,0,0.08)":"none"},children:[jsx(LayoutPreview,{mode:e,option:t,isActive:r,layoutContext:o,viewAttributes:n}),jsx("span",{style:{fontWeight:600,fontSize:11},children:formatLayoutLabel(t)})]},t)})})}function LayoutPreview({mode:e,option:t,isActive:r,layoutContext:i,viewAttributes:o}){const n=resolvePreviewContext(e,t,i),a=n.flexDirection?.startsWith("column"),s=o?.style?.backgroundColor??(r?"hsl(var(--muted, var(--rb-muted, 220 14.3% 95.9%)) / 0.55)":"hsl(var(--muted, var(--rb-muted, 220 14.3% 95.9%)))"),l=parseNumeric(o?.style?.gap)??3,c=parseNumeric(o?.style?.borderRadius)??4,d="stretch"===n.alignItems?a?{width:"100%"}:{height:"100%"}:void 0;return jsx("div",{style:{borderRadius:c,border:"1px dashed rgba(0,0,0,0.2)",padding:5,background:s},children:jsx("div",{style:{display:"flex",flexDirection:n.flexDirection??"row",justifyContent:n.justifyContent??"flex-start",alignItems:n.alignItems??"stretch",gap:l,width:"100%",minHeight:a?52:40,transition:"all 0.2s ease"},children:Array.from({length:3}).map((t,r)=>jsx("span",{style:{width:a?22:10,height:10,borderRadius:2.5,background:"#f7a500",border:"1px solid rgba(0,0,0,0.1)",flex:"justifyContent"===e?"0 0 auto":void 0,...d??{}}},r))})})}function resolvePreviewContext(e,t,r){const i={flexDirection:r?.flexDirection??"row",alignItems:r?.alignItems??"center",justifyContent:r?.justifyContent??"flex-start"};switch(e){case"flexDirection":return{flexDirection:t,alignItems:i.alignItems,justifyContent:i.justifyContent};case"alignItems":return{flexDirection:i.flexDirection,alignItems:t,justifyContent:i.justifyContent};case"justifyContent":return{flexDirection:i.flexDirection,alignItems:i.alignItems,justifyContent:t};default:return i}}function parseNumeric(e){if(null==e)return;if("number"==typeof e)return e;const t=Number.parseFloat(e);return Number.isNaN(t)?void 0:t}function formatLayoutLabel(e){return e.replace(/[-_]/g," ").replace(/\s+/g," ").replace(/^\w|\s\w/g,e=>e.toUpperCase())}function toPreferredScale(e){if("vs"===e||"s"===e||"f"===e||"%"===e)return e;if("string"!=typeof e)return;const t=e.trim().toLowerCase();return"vs"===t||"s"===t||"f"===t||"%"===t?t:void 0}function parseSizeValue(e){const t={amount:"",unit:""};if("number"==typeof e&&Number.isFinite(e))return{amount:String(e),unit:""};if("string"!=typeof e)return t;const r=e.trim();if(!r)return t;if(r.endsWith("%"))return{amount:r.slice(0,-1),unit:"%"};const i=r.toLowerCase();return i.endsWith("@vs")?{amount:r.slice(0,-3),unit:"vs"}:i.endsWith("vs")?{amount:r.slice(0,-2),unit:"vs"}:i.endsWith("@fs")?{amount:r.slice(0,-3),unit:"f"}:i.endsWith("@f")||i.endsWith("fs")?{amount:r.slice(0,-2),unit:"f"}:i.endsWith("f")?{amount:r.slice(0,-1),unit:"f"}:i.endsWith("@s")?{amount:r.slice(0,-2),unit:"s"}:i.endsWith("s")?{amount:r.slice(0,-1),unit:"s"}:i.endsWith("px")?{amount:r.slice(0,-2),unit:""}:{amount:r,unit:""}}function composeSizeValue(e,t){const r=e.trim();if("%"===t)return`${r}%`;if(""===t){const e=Number(r);return Number.isFinite(e)?e:r}return"f"===t?`${r}@fs`:`${r}@${t}`}function normalizePreferredScale(e,t){const r=t.trim().toLowerCase(),i=r.includes("height")||r.includes("top")||r.includes("vertical")?"vs":"s";return e??i}function SizeField({value:e,onChange:t,preferredScale:r,fieldName:i}){const o=useMemo(()=>parseSizeValue(e),[e]),n=useMemo(()=>normalizePreferredScale(r,i),[r,i]),[a,s]=useState(o.amount),[l,c]=useState(()=>o.unit&&o.unit!==n?o.unit:"auto");useEffect(()=>{s(o.amount);const e=o.unit&&o.unit!==n?o.unit:"auto";c(e)},[o.amount,o.unit,n]);const d=useCallback(e=>"auto"===e?n:e,[n]),p=useCallback((e,r)=>{const i=e.trim();t(i?composeSizeValue(i,d(r)):void 0)},[t,d]),h=[{value:"auto",label:"auto"},...[n,...["vs","s","f","%"].filter(e=>e!==n)].map(e=>({value:e,label:e===n?`${e} (preferred)`:e}))];return jsxs("div",{className:"attributes-editor__size-field",children:[jsx("input",{type:"number",className:"input attributes-editor__size-field-input",value:a,onChange:e=>{const r=e.target.value;s(r),r.trim()?p(r,l):t(void 0)}}),jsx("select",{className:"input attributes-editor__size-field-select",value:l,onChange:e=>{const t=e.target.value;c(t),a.trim()&&p(a,t)},children:h.map(e=>jsx("option",{value:e.value,children:e.label},e.value))})]})}Checkbox.displayName="Checkbox";const BOOLEAN_ALIASES=new Set(["bool","boolean"]);function isBooleanFieldType(e){if(Array.isArray(e))return!1;if("string"!=typeof e)return!1;const t=e.trim().toLowerCase();return BOOLEAN_ALIASES.has(t)}const layoutFieldNames=["flexDirection","alignItems","justifyContent"];function isLayoutField(e){return layoutFieldNames.includes(e)}function Field({name:e,type:t,value:r,onChange:i,componentType:o,projectColors:n,layoutContext:a,viewAttributes:s,label:l,preferredScale:c}){if(Array.isArray(t)){if(isLayoutField(e)){const o=t.filter(e=>"string"==typeof e&&e.length>0);return jsx(LayoutPreviewPicker,{mode:e,options:o,value:"string"==typeof r?r:void 0,onChange:i,layoutContext:a,viewAttributes:s})}return jsxs("select",{value:r??"",onChange:e=>i(e.target.value),className:"input",children:[jsx("option",{value:"",children:"(none)"}),t.map(e=>jsx("option",{value:e,children:e},e))]})}const d="string"==typeof t?getArrayItemType(t):null;if(d){const t=Array.isArray(r)?r:[];if(isPrimitiveType(d)){const r=(r,o)=>{switch(d){case"number":return jsx("input",{type:"number",value:r??"",onChange:e=>{const r=[...t];r[o]=""===e.target.value?void 0:Number(e.target.value),i(r)},className:"input",style:{flex:1}});case"boolean":case"bool":return jsx(Checkbox,{checked:Boolean(r),onChange:e=>{const r=[...t];r[o]=e,i(r)},name:`${e}-${o}`});case"string":case"description":return jsx("input",{type:"text",value:r??"",onChange:e=>{const r=[...t];r[o]=""===e.target.value?void 0:e.target.value,i(r)},className:"input",style:{flex:1}});case"title":return jsx("input",{type:"text",value:r??"",maxLength:20,onChange:e=>{const r=[...t];r[o]=""===e.target.value?void 0:e.target.value,i(r)},className:"input",style:{flex:1}});case"color":return jsx(ColorPickerButton,{value:"string"==typeof r?r:void 0,onChange:e=>{const r=[...t];r[o]=e,i(r)},projectColors:n});default:return jsx("p",{children:"---not-implemented----"})}};return jsxs("div",{style:{display:"grid",gap:8},children:[t.map((e,o)=>jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[r(e,o),jsx("button",{type:"button",onClick:()=>{const e=t.filter((e,t)=>t!==o);i(e.length?e:void 0)},children:"remove"})]},o)),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const e=[...t,"boolean"!==d&&("number"===d?0:"")];i(e)},children:"add"})})]})}const l=getTypeSchema(o,d)??{};return jsxs("div",{style:{display:"grid",gap:8},children:[t.map((e,r)=>{const c=e??{};return jsxs("div",{style:{border:"1px solid #ddd",borderRadius:6,padding:8},children:[jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:Object.entries(l).map(([e,l])=>isBooleanFieldType(l)?jsx("div",{style:{gridColumn:"1 / -1"},children:jsx(Field,{name:e,type:l,value:c?.[e],onChange:o=>{const n=[...t],a={...c??{},[e]:o};n[r]=a,i(n)},componentType:o,projectColors:n,layoutContext:a,viewAttributes:s,label:e})},e):jsxs(React.Fragment,{children:[jsx("div",{style:{alignSelf:"center"},children:e}),jsx(Field,{name:e,type:l,value:c?.[e],onChange:o=>{const n=[...t],a={...c??{},[e]:o};n[r]=a,i(n)},componentType:o,projectColors:n,layoutContext:a,viewAttributes:s})]},e))}),jsxs("div",{style:{marginTop:8,display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[jsxs("div",{style:{display:"flex",gap:4},children:[jsx("button",{type:"button",onClick:e=>{if(e.stopPropagation(),r<=0)return;const o=[...t],n=o[r-1];o[r-1]=o[r],o[r]=n,i(o)},disabled:r<=0,"aria-label":"Move up",children:"↑"}),jsx("button",{type:"button",onClick:e=>{if(e.stopPropagation(),r>=t.length-1)return;const o=[...t],n=o[r+1];o[r+1]=o[r],o[r]=n,i(o)},disabled:r>=t.length-1,"aria-label":"Move down",children:"↓"})]}),jsx("button",{type:"button",onClick:e=>{e.stopPropagation();const o=t.filter((e,t)=>t!==r);i(o.length?o:void 0)},children:"remove"})]})]},r)}),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const e=[...t,{}];i(e)},children:"add"})})]})}if("string"==typeof t&&!isPrimitiveType(t)){const e=getTypeSchema(o,t);if(e){const t=r??{};return jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},children:Object.entries(e).map(([e,r])=>isBooleanFieldType(r)?jsx("div",{style:{gridColumn:"1 / -1"},children:jsx(Field,{name:e,type:r,value:t?.[e],onChange:r=>{const o={...t??{},[e]:r};i(o)},componentType:o,projectColors:n,layoutContext:a,viewAttributes:s,label:e})},e):jsxs(React.Fragment,{children:[jsx("div",{style:{alignSelf:"center"},children:e}),jsx(Field,{name:e,type:r,value:t?.[e],onChange:r=>{const o={...t??{},[e]:r};i(o)},componentType:o,projectColors:n,layoutContext:a,viewAttributes:s})]},e))})}}if("string[]"===t){const e=Array.isArray(r)?r:[];return jsxs("div",{style:{display:"grid",gap:8},children:[e.map((t,r)=>jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("input",{type:"text",value:t??"",onChange:t=>{const o=[...e];o[r]=t.target.value,i(o)},className:"input",style:{flex:1}}),jsx("button",{type:"button",onClick:()=>{const t=e.filter((e,t)=>t!==r);i(t.length?t:void 0)},children:"remove"})]},r)),jsx("div",{children:jsx("button",{type:"button",onClick:()=>{const t=[...e,""];i(t)},children:"add"})})]})}if("string"!=typeof t)return jsx("p",{children:"---not-implemented----"});switch(t){case"size":return jsx(SizeField,{value:r,onChange:i,preferredScale:c,fieldName:e});case"fontWeight":{const e=normalizeFontWeight(r);return jsxs("select",{value:e??"",onChange:e=>i(e.target.value||void 0),className:"input",children:[jsx("option",{value:"",children:"(none)"}),FONT_WEIGHT_OPTIONS.map(e=>jsx("option",{value:e,children:e},e))]})}case"number":return jsx("input",{type:"number",value:r??"",onChange:e=>i(""===e.target.value?void 0:Number(e.target.value)),className:"input"});case"boolean":case"bool":return jsx(Checkbox,{label:l??e,checked:Boolean(r),onChange:e=>i(e),name:e});case"string":case"description":return jsx("input",{type:"text",value:r??"",onChange:e=>i(""===e.target.value?void 0:e.target.value),className:"input"});case"title":return jsx("input",{type:"text",value:r??"",maxLength:20,onChange:e=>i(""===e.target.value?void 0:e.target.value),className:"input"});case"color":return jsx(ColorPickerButton,{value:"string"==typeof r?r:void 0,onChange:e=>i(e),projectColors:n});default:return jsx("p",{children:"---not-implemented----"})}}function ColorPickerButton({value:e,onChange:t,projectColors:r}){const[i,o]=useState(!1),n="string"==typeof e?e:void 0,a=useMemo(()=>resolveProjectColorValue(n,r)??n,[n,r]);return jsxs(Fragment,{children:[jsxs("button",{type:"button",onClick:()=>o(!0),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,borderRadius:6,border:"1px solid #ddd",padding:"8px 10px",background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",cursor:"pointer"},children:[jsx("span",{"aria-hidden":!0,style:{width:32,height:32,borderRadius:6,border:"1px solid rgba(0,0,0,0.1)",background:a??"transparent"}}),jsx("span",{style:{flex:1,textAlign:"left",fontWeight:500},children:n??"Select color"}),jsx("span",{style:{fontSize:12,color:"#666"},children:"Open"})]}),i?jsx(ColorModal,{value:n,projectColors:r,onSelect:e=>{t(e),o(!1)},onClose:()=>o(!1),onClear:()=>{t(void 0),o(!1)}}):null]})}function FieldInfoTooltip({description:e,children:t}){const[r,i]=useState(!1);if(!e||!e.trim())return jsx(Fragment,{children:t});const o=["field-info-tooltip__bubble",r?"field-info-tooltip__bubble--visible":""].filter(Boolean).join(" "),n=()=>i(!0),a=()=>i(!1);return jsxs("div",{className:"field-info-tooltip",children:[t,jsxs("button",{className:"field-info-tooltip__trigger",onMouseEnter:n,onMouseLeave:a,onFocus:n,onBlur:a,type:"button",children:["Show info",jsx("span",{className:o,role:"tooltip","aria-hidden":!r,children:e})]})]})}const FIELD_SLOT_MATCHERS={top:/(^|[-_])(top)$/i,bottom:/(^|[-_])(bottom)$/i,left:/(^|[-_])(left)$/i,right:/(^|[-_])(right)$/i};function SpecialCategorySection({category:e,entries:t,attributeMeta:r,getAttributeValue:i,onAttributeChange:o,componentType:n,projectColors:a,layoutContext:s,viewAttributes:l,meta:c}){const[d,p]=useState(!1),h=c?.label&&c.label.trim().length>0?c.label:e&&e.length>0?e.charAt(0).toUpperCase()+e.slice(1):"Special",u=c?.description,g="padding"===e||"margin"===e||"offset"===e,m=g,f=e=>{if(!m)return;const t=e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase();return Object.keys(FIELD_SLOT_MATCHERS).find(e=>FIELD_SLOT_MATCHERS[e].test(t))},y=t.filter(e=>!f(e.name)),b=g&&y.length>0;return jsxs("section",{className:"special-category-section",children:[jsxs("div",{className:"special-category-section__header",children:[jsx("p",{className:"special-category-section__title",children:h}),b?jsx("button",{type:"button",onClick:()=>p(e=>!e),className:"special-category-section__toggle","data-active":d,children:d?"Show less":"Show more"}):null]}),u?jsx("p",{className:"special-category-section__description",children:u}):null,(()=>{if(!t.length)return jsx("p",{className:"special-category-section__placeholder",children:"-- not defined --"});if(!g)return(()=>{if(!t.length)return jsx("p",{className:"special-category-section__placeholder",children:"-- not defined --"});const e=["special-category-section__fields",m?"special-category-section__fields--box":""].filter(Boolean).join(" ");return jsx("div",{className:e,children:t.map(({name:e,type:t})=>{const c=r?.[e]?.label??e,d=r?.[e]?.description,p=toPreferredScale(r?.[e]?.preferedScale),h=i(e),u=isBooleanFieldType(t),g=f(e),m=["attributes-editor__field-wrapper","special-category-section__field",u?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:d,children:jsxs("div",{className:m,"data-field-slot":g,children:[u?null:jsx("p",{className:"attributes-editor__field-label",children:c}),jsx(Field,{name:e,type:t,value:h,onChange:t=>o(e,t),componentType:n,projectColors:a,layoutContext:s,viewAttributes:l,label:u?c:void 0,preferredScale:p})]})},e)})})})();const e=t.filter(e=>f(e.name)).sort((e,t)=>{const r=["top","left","right","bottom"],i=f(e.name),o=f(t.name);return(i?r.indexOf(i):999)-(o?r.indexOf(o):999)}),c=t.filter(e=>!f(e.name));if(0===e.length)return jsx("p",{className:"special-category-section__placeholder",children:"-- not defined --"});const p=jsx("div",{className:"special-category-section__fields special-category-section__fields--box",children:e.map(({name:e,type:t})=>{const c=r?.[e]?.label??e,d=r?.[e]?.description,p=toPreferredScale(r?.[e]?.preferedScale),h=i(e),u=isBooleanFieldType(t),g=f(e),m=["attributes-editor__field-wrapper","special-category-section__field",u?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:d,children:jsxs("div",{className:m,"data-field-slot":g,children:[u?null:jsx("p",{className:"attributes-editor__field-label",children:c}),jsx(Field,{name:e,type:t,value:h,onChange:t=>o(e,t),componentType:n,projectColors:a,layoutContext:s,viewAttributes:l,label:u?c:void 0,preferredScale:p})]})},e)})}),h=d&&c.length>0?jsx("div",{className:"special-category-section__fields",children:c.map(({name:e,type:t})=>{const c=r?.[e]?.label??e,d=r?.[e]?.description,p=toPreferredScale(r?.[e]?.preferedScale),h=i(e),u=isBooleanFieldType(t),g=["attributes-editor__field-wrapper","special-category-section__field",u?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:d,children:jsxs("div",{className:g,children:[u?null:jsx("p",{className:"attributes-editor__field-label",children:c}),jsx(Field,{name:e,type:t,value:h,onChange:t=>o(e,t),componentType:n,projectColors:a,layoutContext:s,viewAttributes:l,label:u?c:void 0,preferredScale:p})]})},e)})}):null;return jsxs(Fragment,{children:[p,h]})})()]})}const FALLBACK_PARENT="all",EXCLUDE_PREFIX="!=";function normalizeDesiredParents(e){return Array.isArray(e)&&0!==e.length?e:[FALLBACK_PARENT]}function matchesDesiredChildToken(e,t){return e.startsWith("=")||e.startsWith(">")?e.slice(1)===t:e===t}function filterOptionsByDesiredChildren(e,t){if(!Array.isArray(t)||0===t.length)return e;const r=t.map(e=>e.trim()).filter(e=>e.length>0);return 0===r.length?e:e.filter(({type:e})=>{let t=!1,i=!1;for(const o of r)if(o.startsWith(EXCLUDE_PREFIX)){if(e===o.slice(EXCLUDE_PREFIX.length))return!1}else o!==FALLBACK_PARENT&&(t=!0,matchesDesiredChildToken(o,e)&&(i=!0));return!t||i})}function formatTokenLabel(e){return"all"===e?"Anywhere":"root"===e?"Root only":e.startsWith("!=")?`Not under ${e.slice(2)}`:e.startsWith("=")?`Direct child of ${e.slice(1)}`:e.startsWith(">")?`Inside ${e.slice(1)}`:e}function tokenMatchesParent(e,t){return"all"===e||(t&&0!==t.length?!e.startsWith("!=")&&(e.startsWith("=")||e.startsWith(">")?e.slice(1)===t:e===t):"root"===e)}function buildGroups(e,t){const r=new Map;return e.forEach(e=>{e.desiredParents.forEach(i=>{if(t&&!t(i,e))return;const o=r.get(i);o?o.some(t=>t.type===e.type)||o.push(e):r.set(i,[e])})}),Array.from(r.entries()).map(([e,t])=>({token:e,displayLabel:formatTokenLabel(e),options:t.sort((e,t)=>e.label.localeCompare(t.label))})).sort((e,t)=>e.displayLabel.localeCompare(t.displayLabel))}function AddComponentModal({allowedChildTypes:e,parentType:t,onSelect:r,onClose:i}){const[o,n]=useState(!1),a=useMemo(()=>Array.from(new Set(e)).map(e=>{const t=getPatternByType(e);return{type:e,label:t?.meta?.label?.trim()||e,desiredParents:normalizeDesiredParents(t?.meta?.desiredParent)}}).sort((e,t)=>e.label.localeCompare(t.label)),[e]),s=useMemo(()=>{if(!t)return;const e=getPatternByType(t)?.meta?.desiredChildren;return Array.isArray(e)&&0!==e.length?e.map(e=>e.trim()).filter(e=>e.length>0):void 0},[t]),l=useMemo(()=>filterOptionsByDesiredChildren(a,s),[a,s]),c=!s?.length;useEffect(()=>{c||n(!1)},[c]);const d=useMemo(()=>buildGroups(l,e=>tokenMatchesParent(e,t)),[l,t]),p=useMemo(()=>buildGroups(l),[l]),h=e=>jsxs("button",{type:"button",className:"add-component-modal__card",onClick:()=>(e=>{r(e)})(e.type),role:"listitem",children:[jsx("div",{className:"add-component-modal__thumbnail","aria-hidden":"true",children:jsx("span",{children:"Preview"})}),jsx("span",{className:"add-component-modal__title",children:e.label})]},e.type),u=e=>e.map(e=>jsxs("div",{className:"add-component-modal__group",children:[jsx("h5",{className:"add-component-modal__group-title",children:e.displayLabel}),jsx("div",{className:"add-component-modal__grid",role:"list",children:e.options.map(h)})]},e.token)),g=d.length>0,m=l.length>0;return jsxs(Modal,{onClose:i,ariaLabelledBy:"add-component-title",contentClassName:"add-component-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"add-component-title",className:"modal__title",children:"Add component"}),jsx("button",{type:"button",className:"editor-button","aria-label":"Close add component modal",onClick:i,children:"Close"})]}),jsxs("div",{className:"add-component-modal__body",children:[jsxs("section",{className:"add-component-modal__section",children:[jsx("h4",{className:"add-component-modal__section-title",children:"Recommended Components"}),g?u(d):jsx("p",{className:"add-component-modal__empty",children:m?"No direct recommendations for this parent.":"No components available for this node."})]}),c&&jsxs("label",{className:"add-component-modal__toggle",children:[jsx("input",{type:"checkbox",checked:o,onChange:e=>n(e.target.checked)}),jsx("span",{children:"Show rest (All Components)"})]}),c&&o&&jsxs("section",{className:"add-component-modal__section","aria-live":"polite",id:"add-component-modal-all",children:[jsx("h4",{className:"add-component-modal__section-title",children:"All Components"}),p.length?u(p):jsx("p",{className:"add-component-modal__empty",children:"No components available."})]}),!o&&!g&&jsx("p",{className:"add-component-modal__empty",children:c?"Nothing to suggest yet—toggle “Show rest” to browse all components.":"Nothing to suggest yet for this parent."})]})]})}const Icons=["activity","activity-heart","alert-circle","alert-triangle","anchor","archive","arrow-down","arrow-left","arrow-narrow-down-left","arrow-narrow-up-right","arrow-right","arrow-right-smooth","asterisk-01","asterisk-02","at-sign","award","battery-charging","bell-01","bell-02","bell-ringing-02","bookmark","bookmark-add","bookmark-check","bookmark-minus","bookmark-x","bubble","building-01","building-02","building-03","building-04","building-05","building-06","building-07","building-08","building-09","camera","camera-01","camera-steel","check","check-circle","check-circle-bold","check-circle-broken","check-done-01","check-done-02","check-heart","check-square","check-square-broken","check-verified-01","check-verified-02","check-verified-03","checkbox","checkv","chevron-down","chevron-down2","chevron-left","chevron-left-2","chevron-right","chevron-right-empty","chevron-right-smooth","chevron-up","circle","clock","clock-fast-forward","close","close-circle","cloud-01","cloud-blank-01","cloud-blank-02","coin","coins-02","colors","copy-01","copy-02","copy-03","copy-04","copy-05","copy-06","copy-07","corner-down-right","crypto-bold","delete-icon","diamond","dice-3","divide-01","divide-02","divide-03","document-check-bold","dots-circle","dots-grid","dots-horizontal","dots-vertical","download-01","download-02","download-03","edit-03","edit-04","edit-05","element-3","ellipse-127","exclaimation-circle","eye-off-line","face-smile","file-04","file-05","file-check-02","file-plus-01","file-shield-02","filter-funnel-01","flag-03","flash","folder","folder-plus","gallery","globe-01","globe-04","globe-bold","guard","headphones-01","headphones-02","headset-bold","heart","heart-bold","help-circle","home-2","home-line","hourglass-02","image","image-01","image-03","inbox-01","inbox-arrow-down","info-circle","keyboard-line","lamp-charge","layer","light","like-dislike","lock-03","logout","magicpen","mail","mail-01","marker","medal-star","menu","menu-04","message-circle-01","message-plus-circle","message-question-circle","message-text-circle-01","message-text-square-02","message-x-square","microphone-02","microphone-slash","mirror","moon-01","moon-bold","mouse-circle","move","notification","notification-fill","notification-text","pdf-01","pencil-01","phone","phone-01","phone-arrow-down-left","phone-arrow-up-right","phone-hang-up","phone-hangup2","phone-incoming-01","phone-outgoing-01","phone-plus","phone-x","plus","plus-circle","printer","question-mark-circle","refresh-ccw-01","refresh-cw-01","refresh-cw-04","refresh-right-square-bold","remove-circle","repeat-04","repeat-bold","ruler-pen","search","search-lg","search-md","search-refraction","send-01","send-02","send-diagonal","setting-2","settings","settings-02","settings-04","settings-2","settings-cog","share-01","share-03","share-04","share-05","share-06","share-bold","shield-01","shield-bold","solar-check","speaker","speaker-wave","speedometer-03","star","star-rounded","sun","target-03","text-input","translate","trash","trash-02","trash-03","trash-04","trush-square-bold","unlimited","user-circle","user-jogging","user-plus-01","user-square","user-x-01","user-x-02","user2","users-02","users-speaker","verify","voice-cricle","x-circle","x-close","x-sm","zap"];function IconPickerModal({value:e,onSelect:t,onClose:r,onClear:i}){const[o,n]=useState(""),a=useMemo(()=>{const e=o.trim().toLowerCase();return e?Icons.filter(t=>t.toLowerCase().includes(e)):Icons},[o]);return jsx(Modal,{onClose:r,ariaLabelledBy:"icon-picker-title",children:jsxs("div",{style:{display:"grid",gap:12},children:[jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[jsx("p",{id:"icon-picker-title",style:{margin:0,fontWeight:700},children:"Select Icon"}),jsx("div",{style:{flex:1}}),i?jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Clear"}):null,jsx("button",{type:"button",className:"editor-button",onClick:r,children:"Close"})]}),jsx("input",{type:"text",className:"input",placeholder:"Search icons...",value:o,onChange:e=>n(e.target.value),autoFocus:!0}),jsxs("div",{style:{fontSize:12,color:"#666"},children:[a.length," / ",Icons.length,e?` • Selected: ${e}`:""]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(120px, 1fr))",gap:8,maxHeight:"60vh",overflow:"auto",paddingRight:4},children:a.map(r=>{const i=e===r;return jsxs("button",{type:"button",onClick:()=>t(r),style:{display:"flex",alignItems:"center",gap:8,borderRadius:8,border:i?"2px solid #222":"1px solid #ddd",padding:"8px 10px",background:"hsl(var(--card, var(--rb-card, 0 0% 100%)))",cursor:"pointer"},"aria-label":`Select icon ${r}`,children:[jsx(Icon,{iconType:r,size:18}),jsx("span",{style:{fontSize:12,fontWeight:i?700:500,textAlign:"left",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:r,children:r})]},r)})})]})})}function isRecord(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function isNodeData$1(e){return isRecord(e)&&"string"==typeof e.type&&"children"in e}function isMainLike(e){const t=e.type;return"Main"===t||"main"===t}function stripNestedIsMain(e,t){if(null==e||"string"==typeof e)return e;if(Array.isArray(e)){let t=!1;const r=e.map(e=>{const r=stripNestedIsMain(e,!1);return r!==e&&(t=!0),r});return t?r:e}if(!isNodeData$1(e))return e;const r=e.children,i=stripNestedIsMain(r,!1),o=!0===e.isMain&&!t;return o||i!==r?{...e,...o?{isMain:!1}:null,children:i}:e}function wrapNodeInMain(e){if(isNodeData$1(e)&&isMainLike(e)){const t=stripNestedIsMain(e,!0);return!0!==t.isMain?{...t,isMain:!0}:t}const t=stripNestedIsMain(e,!1);return{type:"Main",isMain:!0,attributes:{},children:null==e?[]:t}}function safeStringify$1(e){try{return JSON.stringify(e,null,2)??""}catch{return String(e??"")}}function JsonTextEditor({value:e,onChange:t,rootName:r,readOnly:i=!1,className:o}){const n=useMemo(()=>safeStringify$1(e),[e]),[a,s]=useState(n),[l,c]=useState(null),[d,p]=useState(null),[h,u]=useState(e);useEffect(()=>{s(n),c(null),p(null),u(e)},[n,e]);return jsxs("div",{className:o,style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",gap:10},children:[jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,flexWrap:"wrap"},children:[jsx("div",{style:{fontSize:12,opacity:.75},children:r?`${r}.json`:"data.json"}),jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("button",{type:"button",className:"editor-button",onClick:async()=>{try{await navigator.clipboard.writeText(a)}catch{}},children:"Copy"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>{try{const e=JSON.parse(a);s(JSON.stringify(e,null,2)),c(null),p(null),u(e)}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},children:"Format"}),!i&&jsx("button",{type:"button",className:"editor-button",onClick:()=>{try{const e=JSON.parse(a),t=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),r=t(e)&&"data"in e?{...e,data:wrapNodeInMain(e.data)}:wrapNodeInMain(e);s(JSON.stringify(r,null,2)),c(null),p(null),u(r)}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},disabled:!t,title:t?"Wrap root in Main and apply":"Read only",children:"Wrap in Main"}),!i&&jsx("button",{type:"button",className:"editor-button",onClick:()=>{if(t)try{const e=JSON.parse(a);c(null),p(null),u(e);try{t(e)}catch(e){p(e instanceof Error?e.message:"Failed to apply JSON")}}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},disabled:!t,title:t?"Apply JSON changes":"Read only",children:"Apply"})]})]}),jsx("div",{style:{display:"grid",gridTemplateColumns:"minmax(0, 1fr)",gap:10,flex:1,minHeight:0},children:jsx("textarea",{value:a,onChange:e=>{const t=e.target.value;if(s(t),p(null),!i)try{const e=JSON.parse(t);c(null),u(e)}catch(e){c(e instanceof Error?e.message:"Invalid JSON")}},readOnly:i,spellCheck:!1,style:{width:"100%",height:"100%",minHeight:320,resize:"none",border:"1px solid rgba(0,0,0,0.12)",borderRadius:10,padding:12,fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontSize:12,lineHeight:1.5,background:"transparent",outline:"none"}})}),jsxs("div",l?{style:{fontSize:12,color:"#d12f2f"},children:["Invalid JSON: ",l]}:d?{style:{fontSize:12,color:"#d12f2f"},children:["Could not apply: ",d]}:{style:{fontSize:12,opacity:.7},children:["Valid JSON (",safeStringify$1(h).length.toLocaleString()," ","chars)"]})]})}function LocalicationModal({data:e,onChange:t,onClose:r}){const i=e??{};return jsxs(Modal,{onClose:r,ariaLabelledBy:"localication-modal-title",className:"modal--large modal--scrollable localication-modal",contentClassName:"localication-modal__content",children:[jsxs("div",{className:"modal__header localication-modal__header",children:[jsxs("div",{className:"localication-modal__header-main",children:[jsx("h3",{id:"localication-modal-title",className:"modal__title",children:"Localization data"}),jsx("p",{className:"localication-modal__description",children:"Manage your translations directly from the JSON structure."})]}),jsx("button",{type:"button",className:"editor-button",onClick:r,children:"Close"})]}),jsx("div",{className:"localication-modal__body",children:jsx("div",{className:"localication-modal__editor",children:jsx(JsonTextEditor,{rootName:"localication",value:i,onChange:e=>t(e),className:"localication-modal__json-editor"})})})]})}function randomInt(e,t){return Math.floor(Math.random()*(t-e+1))+e}function randomChoice(e){return e[randomInt(0,e.length-1)]}function randomSku(){return`com.app.${randomChoice(["premium","pro","plus","gold","starter"])}.${randomChoice(["weekly","monthly","yearly","lifetime"])}`}function randomPrice(){const e=randomChoice(["USD","EUR","GBP","TRY"]),t=`${randomChoice([1,2,3,4,5,7,9,12,19,29,49,99])}.${randomChoice([0,49,99]).toString().padStart(2,"0")}`;return{price:t,localizedPrice:`${"USD"===e?"$":"EUR"===e?"€":"GBP"===e?"£":"₺"}${t}`,currency:e}}function ProductEditModal({product:e,index:t,onSave:r,onClose:i}){const o=useMemo(()=>({productId:e?.productId??"",title:e?.title??"",description:e?.description??"",localizedPrice:e?.localizedPrice??"",price:e?.price??"",currency:e?.currency??""}),[e]),[n,a]=useState(o),s=n.productId.trim().length>0;return jsxs(Modal,{onClose:i,ariaLabelledBy:"product-edit-modal-title",contentClassName:"product-edit-modal",children:[jsxs("div",{className:"modal__header",children:[jsxs("h3",{id:"product-edit-modal-title",className:"modal__title",children:["Edit product #",t+1]}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxs("div",{className:"product-edit-modal__body",children:[jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"productId",children:"productId"}),jsx("input",{id:"productId",className:"input",value:n.productId,onChange:e=>a(t=>({...t,productId:e.target.value})),placeholder:"com.app.subscription.monthly"})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"title",children:"title"}),jsx("input",{id:"title",className:"input",value:n.title,onChange:e=>a(t=>({...t,title:e.target.value})),placeholder:"Monthly Premium"})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"description",children:"description"}),jsx("textarea",{id:"description",className:"input product-edit-modal__textarea",value:n.description,onChange:e=>a(t=>({...t,description:e.target.value})),placeholder:"Full access to all features..."})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"localizedPrice",children:"localizedPrice"}),jsx("input",{id:"localizedPrice",className:"input",value:n.localizedPrice,onChange:e=>a(t=>({...t,localizedPrice:e.target.value})),placeholder:"$4.99"})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"price",children:"price"}),jsx("input",{id:"price",className:"input",value:n.price,onChange:e=>a(t=>({...t,price:e.target.value})),placeholder:"4.99"})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"currency",children:"currency"}),jsx("input",{id:"currency",className:"input",value:n.currency,onChange:e=>a(t=>({...t,currency:e.target.value})),placeholder:"USD"})]}),jsxs("div",{className:"form-actions",children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>{const e=randomPrice(),t=randomChoice(["Premium","Pro","Plus","Gold","Starter","Unlimited"]),r=randomChoice(["Weekly","Monthly","Yearly","Lifetime"]);a({productId:randomSku(),title:`${t} ${r}`,description:randomChoice(["Unlock all features.","Full access to premium content.","Remove ads and get more features.","Best value for power users."]),localizedPrice:e.localizedPrice,price:e.price,currency:e.currency})},title:"Fill with random values",children:"Random"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>r(n),disabled:!s,title:s?"Save":"productId is required",children:"Save"}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Cancel"})]})]})]})}const DEFAULT_PRESET_KEY$1="preset-1";function ensureProductId(e){return{...e,productId:e?.productId??""}}function getPresetMap$1(){const e=getMockProducts(),t={};return Object.entries(e??{}).forEach(([e,r])=>{e&&"string"==typeof e&&Array.isArray(r)&&(t[e]=r.filter(Boolean).map(e=>ensureProductId(e)).filter(e=>"string"==typeof e.productId&&e.productId.length>0))}),t}function ProductPresetsModal({current:e,onReplace:t,onAppend:r,onClose:i}){const o=useMemo(()=>getPresetMap$1(),[]),n=useMemo(()=>Object.entries(o).sort((e,t)=>{const r=e[0],i=t[0];return r===DEFAULT_PRESET_KEY$1&&i!==DEFAULT_PRESET_KEY$1?-1:i===DEFAULT_PRESET_KEY$1&&r!==DEFAULT_PRESET_KEY$1?1:r.localeCompare(i)}),[o]);return jsxs(Modal,{onClose:i,ariaLabelledBy:"product-presets-modal-title",contentClassName:"product-presets-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"product-presets-modal-title",className:"modal__title",children:"Product presets"}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxs("div",{className:"product-presets-modal__body",children:[jsxs("section",{className:"product-presets-modal__section",children:[jsxs("p",{className:"product-presets-modal__section-title",children:["Current (",Array.isArray(e)?e.length:0,")"]}),jsx("p",{className:"product-presets-modal__muted",children:"Pick a preset below to replace or append to the current list."})]}),jsxs("section",{className:"product-presets-modal__section",children:[jsx("p",{className:"product-presets-modal__section-title",children:"Presets"}),n.length?jsx("div",{className:"product-presets-modal__grid",children:n.map(([e,o])=>jsxs("div",{className:"product-presets-modal__card",children:[jsxs("div",{className:"product-presets-modal__card-header",children:[jsx("p",{className:"product-presets-modal__card-title",children:e}),jsxs("p",{className:"product-presets-modal__card-count",children:[o.length," products"]})]}),jsxs("ul",{className:"product-presets-modal__card-list",children:[o.slice(0,3).map(e=>jsx("li",{className:"product-presets-modal__card-item",children:e.productId},e.productId)),o.length>3?jsxs("li",{className:"product-presets-modal__card-item product-presets-modal__muted",children:["+",o.length-3," more…"]}):null]}),jsxs("div",{className:"product-presets-modal__actions",children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>{t(o),i()},children:"Replace"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>{r(o),i()},children:"Append"})]})]},e))}):jsx("p",{className:"product-presets-modal__muted",children:"No presets found."})]})]})]})}function detectKind(e){return"number"==typeof e?"number":"boolean"==typeof e?"boolean":"string"}function parseValue(e,t,r){if("boolean"===e)return"true"===t;if("number"===e){const e=t.trim();if(!e)return r;const i=e.replace(",","."),o=Number.parseFloat(i);return Number.isFinite(o)?o:r}return t}function BenefitEditModal({benefitKey:e,benefitValue:t,index:r,onSave:i,onClose:o}){const n=useMemo(()=>{const r=(e??"").toString(),i=detectKind(t);return{key:r,kind:i,raw:"boolean"===i?t?"true":"false":"number"===i?`${t??""}`:(t??"").toString()}},[e,t]),[a,s]=useState(n),l=a.key.trim().length>0;return jsxs(Modal,{onClose:o,ariaLabelledBy:"benefit-edit-modal-title",contentClassName:"benefit-edit-modal",children:[jsxs("div",{className:"modal__header",children:[jsxs("h3",{id:"benefit-edit-modal-title",className:"modal__title",children:["Edit benefit #",r+1]}),jsx("button",{type:"button",className:"editor-button",onClick:o,children:"Close"})]}),jsxs("div",{className:"benefit-edit-modal__body",children:[jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"benefitKey",children:"key"}),jsx("input",{id:"benefitKey",className:"input",value:a.key,onChange:e=>s(t=>({...t,key:e.target.value})),placeholder:"unlimited_access"})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"benefitType",children:"type"}),jsxs("select",{id:"benefitType",className:"input",value:a.kind,onChange:e=>s(t=>({...t,kind:e.target.value})),children:[jsx("option",{value:"string",children:"string"}),jsx("option",{value:"number",children:"number"}),jsx("option",{value:"boolean",children:"boolean"})]})]}),jsxs("div",{className:"form-row",children:[jsx("label",{htmlFor:"benefitValue",children:"value"}),"boolean"===a.kind?jsxs("select",{id:"benefitValue",className:"input",value:a.raw,onChange:e=>s(t=>({...t,raw:e.target.value})),children:[jsx("option",{value:"true",children:"true"}),jsx("option",{value:"false",children:"false"})]}):jsx("input",{id:"benefitValue",className:"input",value:a.raw,onChange:e=>s(t=>({...t,raw:e.target.value})),placeholder:"number"===a.kind?"7":"Unlock everything"})]}),jsxs("div",{className:"form-actions",children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>i({key:a.key,value:parseValue(a.kind,a.raw,t)}),disabled:!l,title:l?"Save":"key is required",children:"Save"}),jsx("button",{type:"button",className:"editor-button",onClick:o,children:"Cancel"})]})]})]})}var basic={unlimited_access:!0,trial_days:7,headline:"Unlock everything"},vpn={secure_connection:!0,no_logs:!0,locations:120,headline:"Private & fast VPN"},pro={remove_ads:!0,priority_support:!0,devices:5,headline:"Go Pro"},presetsJson={"Embeded Paywall":{unlimited_access:!0,trial_days:7,headline:"Unlock everything"},basic:basic,vpn:vpn,pro:pro};const DEFAULT_PRESET_KEY="Embeded Paywall";function normalizeBenefits(e){if(!e||"object"!=typeof e||Array.isArray(e))return{};const t={};return Object.entries(e).forEach(([e,r])=>{const i="string"==typeof e?e.trim():"";i&&("string"!=typeof r&&"number"!=typeof r&&"boolean"!=typeof r||(t[i]=r))}),t}function getPresetMap(){const e=presetsJson,t={};return Object.entries(e??{}).forEach(([e,r])=>{const i="string"==typeof e?e.trim():"";i&&(t[i]=normalizeBenefits(r))}),t}function countBenefits(e){return e&&"object"==typeof e?Object.keys(e).length:0}function BenefitPresetsModal({current:e,onReplace:t,onMerge:r,onClose:i}){const o=useMemo(()=>getPresetMap(),[]),n=useMemo(()=>Object.entries(o).sort((e,t)=>{const r=e[0],i=t[0];return r===DEFAULT_PRESET_KEY&&i!==DEFAULT_PRESET_KEY?-1:i===DEFAULT_PRESET_KEY&&r!==DEFAULT_PRESET_KEY?1:r.localeCompare(i)}),[o]);return jsxs(Modal,{onClose:i,ariaLabelledBy:"benefit-presets-modal-title",contentClassName:"benefit-presets-modal",children:[jsxs("div",{className:"modal__header",children:[jsx("h3",{id:"benefit-presets-modal-title",className:"modal__title",children:"Benefit presets"}),jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Close"})]}),jsxs("div",{className:"benefit-presets-modal__body",children:[jsxs("section",{className:"benefit-presets-modal__section",children:[jsxs("p",{className:"benefit-presets-modal__section-title",children:["Current (",countBenefits(e),")"]}),jsx("p",{className:"benefit-presets-modal__muted",children:"Pick a preset below to replace or merge into the current map."})]}),jsxs("section",{className:"benefit-presets-modal__section",children:[jsx("p",{className:"benefit-presets-modal__section-title",children:"Presets"}),n.length?jsx("div",{className:"benefit-presets-modal__grid",children:n.map(([e,o])=>{const n=Object.entries(o);return jsxs("div",{className:"benefit-presets-modal__card",children:[jsxs("div",{className:"benefit-presets-modal__card-header",children:[jsx("p",{className:"benefit-presets-modal__card-title",children:e}),jsxs("p",{className:"benefit-presets-modal__card-count",children:[n.length," benefits"]})]}),jsxs("ul",{className:"benefit-presets-modal__card-list",children:[n.slice(0,3).map(([e,t])=>jsxs("li",{className:"benefit-presets-modal__card-item",children:[e,": ",String(t)]},e)),n.length>3?jsxs("li",{className:"benefit-presets-modal__card-item benefit-presets-modal__muted",children:["+",n.length-3," more…"]}):null]}),jsxs("div",{className:"benefit-presets-modal__actions",children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>{t(o),i()},children:"Replace"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>{r(o),i()},title:"Merges preset into current (preset values overwrite existing keys)",children:"Merge"})]})]},e)})}):jsx("p",{className:"benefit-presets-modal__muted",children:"No presets found."})]})]})]})}function MockableFeatureModal({featureKey:e,onClose:t}){const{products:r,addProduct:i,removeProduct:o,updateProduct:n,setProducts:a,clearProducts:s,benefits:l,setBenefits:c,clearBenefits:d,upsertBenefit:p,removeBenefit:h,renameBenefit:u}=useRenderStore(e=>({products:e.products,addProduct:e.addProduct,removeProduct:e.removeProduct,updateProduct:e.updateProduct,setProducts:e.setProducts,clearProducts:e.clearProducts,benefits:e.benefits,setBenefits:e.setBenefits,clearBenefits:e.clearBenefits,upsertBenefit:e.upsertBenefit,removeBenefit:e.removeBenefit,renameBenefit:e.renameBenefit})),[g,m]=useState(null),[f,y]=useState(!1),[b,C]=useState(null),[v,x]=useState(!1),S=Object.entries(l&&"object"==typeof l&&!Array.isArray(l)?l:{});return jsxs(Fragment,{children:[jsxs(Modal,{onClose:t,ariaLabelledBy:"mockable-feature-modal-title",contentClassName:"mockable-feature-modal",children:[jsxs("div",{className:"modal__header",children:[jsxs("h3",{id:"mockable-feature-modal-title",className:"modal__title",children:["Mockable: ",e]}),jsx("button",{type:"button",className:"editor-button",onClick:t,children:"Close"})]}),jsx("div",{className:"mockable-feature-modal__body",children:"products"===e?jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("button",{type:"button",className:"editor-button",onClick:i,children:"Add product"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>y(!0),children:"Presets"}),jsx("button",{type:"button",className:"editor-button",onClick:s,disabled:0===r.length,children:"Clear"})]}),jsx("div",{style:{marginTop:12},children:r.length?jsx("ul",{style:{margin:0,paddingLeft:18},children:r.map((e,t)=>jsxs("li",{style:{display:"flex",gap:8,marginBottom:8,alignItems:"center"},children:[jsx("span",{style:{flex:1},children:e?.productId?.trim()?e.productId:"(empty productId)"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>m(t),children:"Edit"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>o(t),children:"Remove"})]},`${t}-${e?.productId??""}`))}):jsx("p",{style:{margin:0,opacity:.7},children:"No products yet."})})]}):"benefits"===e?jsxs(Fragment,{children:[jsxs("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>{const e="benefit",t=new Set(S.map(([e])=>e));let r=`${e}_1`,i=1;for(;t.has(r);)i+=1,r=`${e}_${i}`;p(r,!0),C(r)},children:"Add benefit"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>x(!0),children:"Presets"}),jsx("button",{type:"button",className:"editor-button",onClick:d,disabled:0===S.length,children:"Clear"})]}),jsx("div",{style:{marginTop:12},children:S.length?jsx("ul",{style:{margin:0,paddingLeft:18},children:S.map(([e,t],r)=>jsxs("li",{style:{display:"flex",gap:8,marginBottom:8,alignItems:"center"},children:[jsxs("span",{style:{flex:1,wordBreak:"break-word"},children:[e,": ",String(t)]}),jsx("button",{type:"button",className:"editor-button",onClick:()=>C(e),children:"Edit"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>h(e),children:"Remove"})]},`${r}-${e}`))}):jsx("p",{style:{margin:0,opacity:.7},children:"No benefits yet."})})]}):jsxs("p",{style:{margin:0,opacity:.7},children:["No mock UI yet for “",e,"”."]})})]}),"products"===e&&null!==g?jsx(ProductEditModal,{index:g,product:r[g],onClose:()=>m(null),onSave:e=>{n(g,e),m(null)}}):null,"products"===e&&f?jsx(ProductPresetsModal,{current:r,onClose:()=>y(!1),onReplace:e=>a(e),onAppend:e=>a([...r??[],...e??[]])}):null,"benefits"===e&&null!==b?jsx(BenefitEditModal,{index:Math.max(0,S.findIndex(([e])=>e===b)),benefitKey:b,benefitValue:l?.[b]??"",onClose:()=>C(null),onSave:({key:e,value:t})=>{const r=e.trim();b!==r&&u(b,r),p(r,t),C(null)}}):null,"benefits"===e&&v?jsx(BenefitPresetsModal,{current:l,onClose:()=>x(!1),onReplace:e=>c(e),onMerge:e=>c({...l??{},...e??{}})}):null]})}function InspectModal({onClose:e}){const[t,r]=useState("localizations"),{appConfig:i,projectColors:o,theme:n,defaultLanguage:a}=useRenderStore(e=>({appConfig:e.appConfig,projectColors:e.projectColors,theme:e.theme,defaultLanguage:e.defaultLanguage})),s=useMemo(()=>getLastParamsSnapshot(),[]);return jsxs(Modal,{onClose:e,ariaLabelledBy:"inspect-modal-title",className:"modal--large modal--scrollable",contentClassName:"inspect-modal__content",children:[jsxs("div",{className:"modal__header inspect-modal__header",children:[jsx("h3",{id:"inspect-modal-title",className:"modal__title",children:"Inspect"}),jsx("button",{type:"button",className:"editor-button",onClick:e,children:"Close"})]}),jsxs("div",{className:"inspect-modal__tabs",children:[jsx("button",{type:"button",className:"inspect-modal__tab"+("localizations"===t?" is-active":""),onClick:()=>r("localizations"),children:"Localizations"}),jsx("button",{type:"button",className:"inspect-modal__tab"+("params"===t?" is-active":""),onClick:()=>r("params"),children:"Params"}),jsx("button",{type:"button",className:"inspect-modal__tab"+("colors"===t?" is-active":""),onClick:()=>r("colors"),children:"Colors"})]}),jsxs("div",{className:"inspect-modal__body",children:["localizations"===t&&jsx(LocalizationsTab,{localication:i.localication??{},language:a}),"params"===t&&jsx(ParamsTab,{localizationParams:s.localizationParams,nestedLocalizationParams:s.nestedLocalizationParams}),"colors"===t&&jsx(ColorsTab,{projectColors:o,theme:n})]})]})}function LocalizationsTab({localication:e,language:t}){const r=e[t]??{},i=defaultLocalization[t]??defaultLocalization.en??{},o=Object.entries(r);return 0===o.length?jsxs("p",{className:"inspect-modal__empty",children:['No localization keys found for "',t,'".']}):jsx("div",{className:"inspect-modal__table-wrap",children:jsxs("table",{className:"inspect-modal__table",children:[jsx("thead",{children:jsxs("tr",{children:[jsx("th",{children:"Key"}),jsx("th",{children:"Value"}),jsx("th",{children:"Source"})]})}),jsx("tbody",{children:o.map(([e,t])=>{const r=i[e]===t;return jsxs("tr",{children:[jsx("td",{className:"inspect-modal__cell-key",children:e}),jsx("td",{className:"inspect-modal__cell-value",children:t}),jsx("td",{children:jsx("span",{className:"inspect-modal__badge"+(r?" inspect-modal__badge--default":" inspect-modal__badge--custom"),children:r?"default":"custom"})})]},e)})})]})})}function ParamsTab({localizationParams:e,nestedLocalizationParams:t}){const r=Object.entries(e),i=Object.entries(t);return r.length>0||i.length>0?jsx("div",{className:"inspect-modal__table-wrap",children:jsxs("table",{className:"inspect-modal__table",children:[jsx("thead",{children:jsxs("tr",{children:[jsx("th",{children:"Param"}),jsx("th",{children:"Value"})]})}),jsxs("tbody",{children:[r.map(([e,t])=>jsxs("tr",{children:[jsx("td",{className:"inspect-modal__cell-key",children:e}),jsx("td",{className:"inspect-modal__cell-value",children:formatValue(t)})]},e)),i.length>0&&jsxs(Fragment,{children:[jsx("tr",{className:"inspect-modal__separator-row",children:jsx("td",{colSpan:2,children:"Nested (per-product)"})}),i.map(([e,t])=>jsxs("tr",{children:[jsxs("td",{className:"inspect-modal__cell-key inspect-modal__cell-key--nested",children:["- ",e]}),jsx("td",{className:"inspect-modal__cell-value",children:formatValue(t)})]},`nested-${e}`))]})]})]})}):jsx("p",{className:"inspect-modal__empty",children:"No params available. Params are populated inside a PaywallProvider."})}function ColorsTab({projectColors:e,theme:t}){const r=e?.STATIC_COLORS??{},i=e?.THEME_COLORS?.[t]??{},o=defaultProjectColors.STATIC_COLORS??{},n=defaultProjectColors.THEME_COLORS?.[t]??{},a=Object.entries(r),s=Object.entries(i);return 0===a.length&&0===s.length?jsx("p",{className:"inspect-modal__empty",children:"No project colors defined."}):jsxs("div",{className:"inspect-modal__table-wrap",children:[a.length>0&&jsxs(Fragment,{children:[jsx("h4",{className:"inspect-modal__section-title",children:"Static Colors"}),jsxs("table",{className:"inspect-modal__table",children:[jsx("thead",{children:jsxs("tr",{children:[jsx("th",{children:"Token"}),jsx("th",{children:"Value"}),jsx("th",{children:"Source"})]})}),jsx("tbody",{children:a.map(([e,t])=>{const r=o[e]===t;return jsxs("tr",{children:[jsx("td",{className:"inspect-modal__cell-key",children:e}),jsxs("td",{className:"inspect-modal__cell-value",children:[jsx("span",{className:"inspect-modal__color-swatch",style:{backgroundColor:t}}),t]}),jsx("td",{children:jsx("span",{className:"inspect-modal__badge"+(r?" inspect-modal__badge--default":" inspect-modal__badge--custom"),children:r?"default":"custom"})})]},e)})})]})]}),s.length>0&&jsxs(Fragment,{children:[jsxs("h4",{className:"inspect-modal__section-title",children:["Theme Colors (",t,")"]}),jsxs("table",{className:"inspect-modal__table",children:[jsx("thead",{children:jsxs("tr",{children:[jsx("th",{children:"Token"}),jsx("th",{children:"Value"}),jsx("th",{children:"Source"})]})}),jsx("tbody",{children:s.map(([e,t])=>{const r=n[e]===t;return jsxs("tr",{children:[jsx("td",{className:"inspect-modal__cell-key",children:e}),jsxs("td",{className:"inspect-modal__cell-value",children:[jsx("span",{className:"inspect-modal__color-swatch",style:{backgroundColor:t}}),t]}),jsx("td",{children:jsx("span",{className:"inspect-modal__badge"+(r?" inspect-modal__badge--default":" inspect-modal__badge--custom"),children:r?"default":"custom"})})]},e)})})]})]})]})}function formatValue(e){return void 0===e?"—":null===e?"null":"string"==typeof e?e:"number"==typeof e||"boolean"==typeof e?String(e):JSON.stringify(e)}function IconTypePickerField({value:e,onChange:t}){const[r,i]=useState(!1),o="string"==typeof e?e:void 0;return jsxs(Fragment,{children:[jsxs("button",{type:"button",onClick:()=>i(!0),className:"attributes-editor__picker-button",children:[jsxs("span",{className:"attributes-editor__picker-button-left",children:[o?jsx(Icon,{iconType:o,size:18}):null,jsx("span",{className:"attributes-editor__picker-button-label",children:o??"Select icon"})]}),jsx("span",{className:"attributes-editor__picker-button-open",children:"Open"})]}),r?jsx(IconPickerModal,{value:o,onSelect:e=>{t(e),i(!1)},onClose:()=>i(!1),onClear:()=>{t(void 0),i(!1)}}):null]})}function FontFamilyPickerField({name:e,value:t,onChange:r,fonts:i,loadedFonts:o,markFontLoaded:n,addError:a}){const[s,l]=useState(!1),[c,d]=useState(!1),[p,h]=useState(null),u="string"==typeof t&&t.trim().length>0?t.trim():void 0,g=Array.isArray(i)?i:[],m=Array.isArray(o)?o:[],f=useMemo(()=>`${g.length} fonts`,[g.length]);return jsxs(Fragment,{children:[jsxs("button",{type:"button",onClick:()=>{h(null),l(!0)},className:"attributes-editor__picker-button",children:[jsx("span",{className:"attributes-editor__picker-button-label attributes-editor__picker-button-label--fill",children:u??"Select font"}),jsx("span",{className:"attributes-editor__picker-button-open",children:"Open"})]}),s?jsx(Modal,{ariaLabelledBy:"font-family-picker-title",onClose:()=>{c||l(!1)},closeOnOverlayClick:!c,closeOnEsc:!c,children:jsxs("div",{className:"attributes-editor__font-modal",children:[jsxs("div",{className:"attributes-editor__font-modal-header",children:[jsx("p",{id:"font-family-picker-title",className:"attributes-editor__font-modal-title",children:"Select Font"}),jsx("div",{className:"attributes-editor__font-modal-spacer"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>{r(void 0),h(null),l(!1)},disabled:c,children:"Clear"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>l(!1),disabled:c,children:"Close"})]}),c?jsx("div",{className:"attributes-editor__font-modal-note",children:"Loading font…"}):null,p?jsx("div",{className:"attributes-editor__font-modal-error",children:p}):null,jsx("div",{className:"attributes-editor__font-modal-note",children:f}),jsx("div",{className:"attributes-editor__font-grid",children:g.map(e=>{const t=e?.name;if("string"!=typeof t||!t.trim())return null;const i=t.trim(),o=u===i,s=m.includes(i),l=["attributes-editor__font-option",o?"attributes-editor__font-option--active":""].filter(Boolean).join(" ");return jsxs("button",{type:"button",disabled:c,onClick:async()=>{if(h(null),r(i),!s){d(!0);try{fontsDebug.info("AttributesEditor: loadFontFamily start",{familyName:i}),await loadFontFamily(g,i,{forceFetch:!0}),n(i),fontsDebug.info("AttributesEditor: loadFontFamily success",{familyName:i})}catch(e){const t=e instanceof Error?e.message:String(e);h(`Failed to load "${i}": ${t}`),a(`Failed to load font "${i}": ${t}`)}finally{d(!1)}}},className:l,"aria-label":`Select font ${i}`,children:[jsx("span",{className:"attributes-editor__font-option-name",title:i,children:i}),jsx("span",{className:"attributes-editor__font-option-status",children:s?"Loaded":"Not loaded"})]},i)})})]})}):null]})}function getPreferredOrderedSizeEntries(e){const t=["width","height","minWidth","minHeight","maxWidth","maxHeight"];return[...e].sort((e,r)=>{const i=t.indexOf(e.name),o=t.indexOf(r.name),n=-1===i?Number.MAX_SAFE_INTEGER:i,a=-1===o?Number.MAX_SAFE_INTEGER:o;return n!==a?n-a:e.name.localeCompare(r.name)})}function getSpecialSectionTitle(e){const t=e.key,r=e.meta;return{title:r?.label&&r.label.trim().length>0?r.label:t.charAt(0).toUpperCase()+t.slice(1),description:r?.description}}function AttributesEditorView(e){const{isInvalidNode:t,componentTitle:r,componentDescription:i,mockableFeatureKeys:o,activeMockableFeature:n,setActiveMockableFeature:a,tabs:s,tabContentInfo:l,activeTab:c,setActiveTab:d,firstAvailableTab:p,activeEntries:h,activeSpecialSections:u,hasTitleField:g,hasDescriptionField:m,hasStringChildren:f,childrenValue:y,handleChildrenChange:b,attributeMeta:C,data:v,getAttributeValue:x,handleAttributeChange:S,projectColorsForPicker:w,layoutContext:_,viewAttributes:k,attributes:T,projectFonts:M,loadedFonts:P,markFontLoaded:O,addError:E}=e,L=jsxs("div",{className:"attributes-editor__component-meta",children:[jsx("p",{className:"attributes-editor__component-title",children:r}),i?jsx("p",{className:"attributes-editor__component-description",children:i}):null]}),A=x("title"),B=x("description"),z=!t&&(g||m)?jsxs("section",{className:"attributes-editor__top-fields",children:[g?jsxs("div",{className:"attributes-editor__field-wrapper",children:[jsx("label",{className:"attributes-editor__field-label",htmlFor:"title",children:"Title (max 20 characters for display purposes)"}),jsx("input",{id:"title",className:"input",type:"text",maxLength:20,value:"string"==typeof A?A:"",onChange:e=>S("title",e.target.value)})]}):null,m?jsxs("div",{className:"attributes-editor__field-wrapper",children:[jsx("label",{className:"attributes-editor__field-label",htmlFor:"description",children:"Description (for display purposes)"}),jsx("input",{id:"description",className:"input",type:"text",value:"string"==typeof B?B:"",onChange:e=>S("description",e.target.value)})]}):null]}):null,I=o.length>0?jsxs("section",{className:"attributes-editor__mockable",children:[jsx("p",{className:"attributes-editor__mockable-title",children:"Mockable"}),jsx("table",{className:"attributes-editor__mockable-table",children:jsx("tbody",{children:o.map(e=>jsxs("tr",{className:"attributes-editor__mockable-row",children:[jsx("td",{className:"attributes-editor__mockable-name",children:e}),jsx("td",{className:"attributes-editor__mockable-action",children:jsx("button",{type:"button",className:"editor-button",onClick:()=>a(e),children:e})})]},e))})})]}):null,R=jsx("div",{className:"attributes-editor__tabs",children:s.map(e=>{const t=e.id===c,r=l[e.id],i=r.baseCount+r.specialCount,o=0===i,n=["attributes-editor__tab-button",t?"attributes-editor__tab-button--active":""].filter(Boolean).join(" ");return jsxs("button",{type:"button",onClick:()=>!o&&d(e.id),disabled:o,className:n,children:[e.label,i>0?` (${i})`:""]},e.id)})}),V=f?jsxs("div",{className:"attributes-editor__field-wrapper attributes-editor__field-wrapper--children",children:[jsx("p",{className:"attributes-editor__field-label",children:"Text"}),jsx("input",{type:"text",className:"attributes-editor__text-input",value:y,onChange:e=>b(e.target.value)})]}):null,D=useMemo(()=>{const e=l[p];return(e?.baseCount??0)+(e?.specialCount??0)>0||f&&void 0!==y},[y,p,f,l]);return t?null:jsxs("div",{className:"attributes-editor",children:[L,z,I,R,V,u.map(function(e){if("size"===e.key){const{title:t,description:r}=getSpecialSectionTitle(e),i=getPreferredOrderedSizeEntries(e.entries);return jsxs("section",{className:"special-category-section",children:[jsx("div",{className:"special-category-section__header",children:jsx("p",{className:"special-category-section__title",children:t})}),r?jsx("p",{className:"special-category-section__description",children:r}):null,jsx("div",{className:"attributes-editor__size-grid",children:i.map(e=>{const t=C?.[e.name]?.label??e.name,r=C?.[e.name]?.description,i=toPreferredScale(C?.[e.name]?.preferedScale),o=x(e.name),n=isBooleanFieldType(e.type),a=["attributes-editor__field-wrapper",n?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" ");return jsx(FieldInfoTooltip,{description:r,children:jsxs("div",{className:`${a} attributes-editor__size-grid-item`,children:[n?null:jsx("p",{className:"attributes-editor__field-label",children:t}),"iconType"===e.type?jsx(IconTypePickerField,{name:e.name,value:o,onChange:t=>S(e.name,t)}):"fontFamily"===e.type?jsx(FontFamilyPickerField,{name:e.name,value:o,onChange:t=>S(e.name,t),fonts:M,loadedFonts:P,markFontLoaded:O,addError:E}):jsx(Field,{name:e.name,type:e.type,value:o,onChange:t=>S(e.name,t),componentType:v?.type,projectColors:w,layoutContext:_,viewAttributes:k,label:n?t:void 0,preferredScale:i})]})},e.name)})})]},e.key)}return jsx(SpecialCategorySection,{category:e.key,entries:e.entries,attributeMeta:C,attributes:T,getAttributeValue:x,onAttributeChange:S,componentType:v?.type,projectColors:w,layoutContext:_,viewAttributes:k,meta:e.meta},e.key)}),h.map(function(e){const t=e.name,r=e.type,i=C?.[t]?.label??t,o=C?.[t]?.description,n=toPreferredScale(C?.[t]?.preferredScale??C?.[t]?.preferedScale),a=isBooleanFieldType(r),s=["attributes-editor__field-wrapper",a?"attributes-editor__field-wrapper--boolean":""].filter(Boolean).join(" "),l=x(t);return jsx(FieldInfoTooltip,{description:o,children:jsxs("div",{className:s,children:[a?null:jsx("p",{className:"attributes-editor__field-label",children:i}),"iconType"===r?jsx(IconTypePickerField,{name:t,value:l,onChange:e=>S(t,e)}):"fontFamily"===r?jsx(FontFamilyPickerField,{name:t,value:l,onChange:e=>S(t,e),fonts:M,loadedFonts:P,markFontLoaded:O,addError:E}):jsx(Field,{name:t,type:r,value:l,onChange:e=>S(t,e),componentType:v?.type,projectColors:w,layoutContext:_,viewAttributes:k,label:a?i:void 0,preferredScale:n})]})},t)}),D?null:jsx("div",{className:"attributes-editor__empty-state",children:"No editable attributes"}),n?jsx(MockableFeatureModal,{featureKey:n,onClose:()=>a(null)}):null]})}function isPlainObject$2(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function getStyleBagSourceAndValue(e){const t=e??{},r=t.styles;if(isPlainObject$2(r))return{source:"styles",styleBag:r};const i=t.style;return isPlainObject$2(i)?{source:"style",styleBag:i}:{source:"none",styleBag:void 0}}function isAttributeTypeSpec(e){return"string"==typeof e||Array.isArray(e)}function getNestedStyleSchema(e){const t=e.styles??e.style;if(!isPlainObject$2(t))return;const r={};for(const[e,i]of Object.entries(t))isAttributeTypeSpec(i)&&(r[e]=i);return Object.keys(r).length?r:void 0}function buildAttributesEditorEntries(e,t){const r=getNestedStyleSchema(e),i=Object.keys(t??{}),o=Object.keys(e).filter(e=>"style"!==e&&"styles"!==e),n=Object.keys(r??{}),a=new Set([...i,...o,...n]),s=Array.from(a).filter(e=>"style"!==e&&"styles"!==e),l=[];return s.forEach(t=>{const i=e[t],o=r?.[t],n=isAttributeTypeSpec(i)?i:o;n&&l.push({name:t,type:n})}),l}function isValidStyleBagValue(e){const t=e,r=t?.styles,i=t?.style;return!(null!=r&&!isPlainObject$2(r)||null!=i&&!isPlainObject$2(i))}function findLegacyFlatStyleKeys(e,t){return isPlainObject$2(e)?Object.keys(e).filter(e=>"style"!==e&&"styles"!==e&&t(e)):[]}function isPlainObject$1(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function useAttributesEditorModel({node:e,onChange:t,projectColors:r}){const i=!e||isNodeString(e),o=useMemo(()=>i?{type:"View",children:null,attributes:{}}:e,[i,e]),n=useNode(o),{appConfig:a,fonts:s,loadedFonts:l,markFontLoaded:c,addError:d}=useRenderStore(e=>({appConfig:e.appConfig,fonts:e.fonts,loadedFonts:e.loadedFonts,markFontLoaded:e.markFontLoaded,addError:e.addError})),p=useMemo(()=>getAttributeSchema(n?.type)??{},[n?.type]),h=getAttributeMeta(n?.type),u=useMemo(()=>n?.attributes??{},[n?.attributes]),g=useMemo(()=>getStyleAttributeKeySet(),[]),m=useMemo(()=>getStyleBagSourceAndValue(u),[u]),f=m.styleBag,y=useCallback(e=>{const t=h?.[e]?.category;return"style"===t||g.has(e)},[h,g]),b=useCallback(e=>!!y(e)||!(!f||!Object.prototype.hasOwnProperty.call(f,e)),[y,f]),C=useMemo(()=>findLegacyFlatStyleKeys(u,y),[u,y]),v=useMemo(()=>!isValidStyleBagValue(u),[u]);useEffect(()=>{const e="style"===m.source;(0!==C.length||v||e)&&logger.warn("AttributesEditor","Legacy/unmigrated attributes detected. This editor expects schemaVersion=2 (style nested under attributes.styles). Please run migrations.",{componentType:n?.type,nodeKey:o.key,legacyFlatStyleKeys:C,hasInvalidStyleBag:v,styleBagSource:m.source})},[o,n?.type,v,C,m.source]);const x=useCallback(e=>b(e)?f?.[e]:u?.[e],[u,b,f]),S=useMemo(()=>r,[r]),w=useMemo(()=>"View"===n?.type?u:void 0,[u,n?.type]),_=useMemo(()=>({flexDirection:f?.flexDirection,alignItems:f?.alignItems,justifyContent:f?.justifyContent}),[f?.flexDirection,f?.alignItems,f?.justifyContent]),k=useMemo(()=>n?.type?getPatternByType(n.type):void 0,[n?.type]),T=k?.meta,M=T?.label??n?.type??"Component",P=T?.description,O="title"===k?.pattern?.title,E="description"===k?.pattern?.description,L=useMemo(()=>buildAttributesEditorEntries(p,h).filter(({type:e})=>"string"!=typeof e||"never"!==e),[h,p]),A=useMemo(()=>T?.hideAllAttributes?L.filter(({name:e})=>{const t=h?.[e];return!0===t?.forceVisible||!0===t?.override}):L,[h,T?.hideAllAttributes,L]),B=useMemo(()=>{const e=T?.mockableFeatures;return e&&"object"==typeof e?Object.entries(e).filter(([,e])=>!0===e).map(([e])=>e).filter(e=>"string"==typeof e&&e.trim().length>0).sort((e,t)=>e.localeCompare(t)):[]},[T?.mockableFeatures]),[z,I]=useState(null),R=useMemo(()=>{const e={style:[],container:[],other:[]},t={},r=e=>h?.[e]?.sort??Number.MAX_SAFE_INTEGER,i=(e,t)=>{const i=r(e.name)-r(t.name);return 0!==i?i:e.name.localeCompare(t.name)};return A.forEach(({name:r,type:i})=>{const o=h?.[r],n=o?.specialCategory;if("string"==typeof n){const e=n.trim();if(e)return t[e]||(t[e]=[]),void t[e].push({name:r,type:i})}const a=o?.category;e["style"===a?"style":"container"===a?"container":"other"].push({name:r,type:i})}),Object.values(e).forEach(e=>e.sort(i)),Object.values(t).forEach(e=>e.sort(i)),{grouped:e,specialGroups:t}},[h,A]),{grouped:V,specialGroups:D}=R,N=useMemo(()=>{const e={style:[],container:[],other:[]},t=(e,t)=>{const r=(e.meta?.sort??Number.MAX_SAFE_INTEGER)-(t.meta?.sort??Number.MAX_SAFE_INTEGER);return 0!==r?r:e.key.localeCompare(t.key)};return Object.entries(D).forEach(([t,r])=>{if(!r.length)return;const i=T?.specialCategories?.[t];e["style"===i?.category?"style":"container"===i?.category?"container":"other"].push({key:t,entries:r,meta:i})}),Object.keys(e).forEach(r=>{e[r].sort(t)}),e},[T?.specialCategories,D]),F=useMemo(()=>[{id:"container",label:"Container",entries:V.container},{id:"style",label:"Styles",entries:V.style},{id:"other",label:"Others",entries:V.other}],[V]),j=useMemo(()=>{const e={style:{baseCount:0,specialCount:0},container:{baseCount:0,specialCount:0},other:{baseCount:0,specialCount:0}};return F.forEach(t=>{e[t.id].baseCount=t.entries.length}),Object.keys(N).forEach(t=>{e[t].specialCount=N[t].reduce((e,t)=>e+t.entries.length,0)}),e},[N,F]),H=useMemo(()=>F.find(e=>{const t=j[e.id];return t.baseCount+t.specialCount>0})?.id??"other",[j,F]),[W,$]=useState(H);useEffect(()=>{$(e=>{const t=j[e];return t&&t.baseCount+t.specialCount>0?e:H})},[H,j]);const G=F.find(e=>e.id===W)?.entries??F.find(e=>e.id===H)?.entries??[],U=N[W]??[],Z=useCallback((e,r)=>{const i={...o?.attributes??{}??{}};if(y(e)){const t={...isPlainObject$1(i.styles)?i.styles:isPlainObject$1(i.style)?i.style:{},[e]:r};i.styles=t,delete i.style,e in i&&delete i[e]}else i[e]=r;const n={...o,attributes:i};t(n)},[o,y,t]),Y=useCallback(e=>{const r={...o,children:e};t(r)},[o,t]),K=!!k?.pattern&&"string"===k.pattern.children,q="string"==typeof o.children?o.children:"";return{isInvalidNode:i,baseData:o,data:n,appConfig:a,projectFonts:s,loadedFonts:l,markFontLoaded:c,addError:d,schema:p,attributeMeta:h,componentTitle:M,componentDescription:P,patternForType:k,componentMeta:T,attributes:u,styleBag:f,projectColorsForPicker:S,viewAttributes:w,layoutContext:_,getAttributeValue:x,handleAttributeChange:Z,handleChildrenChange:Y,tabs:F,tabContentInfo:j,firstAvailableTab:H,activeTab:W,setActiveTab:$,activeEntries:G,specialSectionsByTab:N,activeSpecialSections:U,mockableFeatureKeys:B,activeMockableFeature:z,setActiveMockableFeature:I,hasTitleField:O,hasDescriptionField:E,hasStringChildren:K,childrenValue:q}}function AttributesEditor(e){useLogRender("AttributesEditor");const t=useAttributesEditorModel(e),r=t.attributes?.title,i=t.hasTitleField,o=useRef(t.handleAttributeChange);return o.current=t.handleAttributeChange,useEffect(()=>{i&&"string"==typeof r&&r.length>20&&o.current("title",r.slice(0,20))},[i,r]),jsx(AttributesEditorView,{...t})}function deleteNodeFromTree(e,t){if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let r=!1;const i=[];for(const o of e){if(o===t){r=!0;continue}const e=deleteNodeFromTree(o,t);e!==o&&(r=!0),i.push(e)}return r?i:e}const r=e;if("children"in r){const i=r.children;if(!i)return e;if(Array.isArray(i)){let o=!1;const n=[];for(const e of i){if(e===t){o=!0;continue}const r=deleteNodeFromTree(e,t);r!==e&&(o=!0),n.push(r)}return o?{...r,children:n}:e}if(i===t)return{...r,children:""};const o=deleteNodeFromTree(i,t);if(o!==i)return{...r,children:o}}return e}function isNodeRecord(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)}function findNodeByKey(e,t){if(!t)return null;if(null==e)return null;if("string"==typeof e)return null;if(Array.isArray(e)){for(const r of e){const e=findNodeByKey(r,t);if(e)return e}return null}const r=e;return r.key===t?r:r.children?findNodeByKey(r.children,t):null}function replaceNode(e,t,r){if(e===t)return r;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let i=!1;const o=e.map(e=>{const o=replaceNode(e,t,r);return o!==e&&(i=!0),o});return i?o:e}const i=e;if("children"in i){const e=i.children,o=Array.isArray(e)?e.map(e=>replaceNode(e,t,r)):replaceNode(e,t,r);if(o!==e)return{...i,children:o}}return e}function AttributesEditorPanel({attributes:e,onChange:t,projectColors:r}){useLogRender("AttributesEditorPanel");const{current:i,setCurrent:o}=useRenderStore(e=>({current:e.current,setCurrent:e.setCurrent})),n=useRef(e);n.current=e;const a=useRef(i);a.current=i;const s=useRef(t);s.current=t;const l=useCallback(e=>{const t=n.current,r=a.current;if(!r)return;const i=replaceNode(t,r,e);s.current(i),o(e)},[o]);if(!i)return null;const c="object"==typeof i&&!Array.isArray(i)&&"key"in i?i.key:void 0,d=c&&e?findNodeByKey(e,c):null;return jsx("div",{className:"attributes-editor-panel",children:jsx(AttributesEditor,{node:d??i,onChange:l,projectColors:r},c??void 0)})}function Breadcrumb({items:e,separator:t="/",ariaLabel:r="Breadcrumb",onBack:i,backLabel:o="Back"}){return useLogRender("Breadcrumb"),jsxs("nav",{className:"breadcrumb","aria-label":r,children:[i&&jsxs("button",{type:"button",className:"breadcrumb__back",onClick:i,"aria-label":"Go back",children:[jsx("span",{className:"breadcrumb__back-icon","aria-hidden":!0,children:"←"}),jsx("span",{children:o})]}),jsx("ol",{className:"breadcrumb__list",children:e.map((r,i)=>{const o=i===e.length-1,n=!o&&(r.to||r.onClick);return jsxs("li",{className:"breadcrumb__item "+(n?"breadcrumb__item--clickable":""),onClick:n?r.onClick:void 0,role:n?"button":void 0,tabIndex:n?0:void 0,onKeyDown:n&&r.onClick?e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),r.onClick?.())}:void 0,children:[i>0&&jsx("span",{className:"breadcrumb__separator","aria-hidden":!0,children:t}),o||!r.to&&!r.onClick?jsx("span",{className:"breadcrumb__current","aria-current":"page",children:r.label}):jsx("span",{className:"breadcrumb__link",children:r.label})]},`${r.label}-${i}`)})})]})}function BuilderButton({node:e,onClick:t,onDelete:r,onMoveUp:i,onMoveDown:o,childrenCount:n,onMore:a}){const[s,l]=useState(!1),c=useRef(null),d=useMemo(()=>`builder-node-actions-${Math.random().toString(36).slice(2,9)}`,[]);if(useEffect(()=>{if(!s)return;const e=e=>{const t=c.current;t&&(e.target instanceof Element&&t.contains(e.target)||l(!1))},t=e=>{"Escape"===e.key&&l(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("keydown",t)}},[s]),isNodeNullOrUndefined(e))return jsx("div",{className:"builder__placeholder",children:"Null or undefined"});if(isNodeString(e))return jsx("div",{className:"builder__text",children:e});const p=e;let h="";p.attributes?.condition&&(h=`${p.attributes.condition} ${p.attributes.conditionVariable??""}`.trim());const u=getPatternByType(p.type)?.meta?.label?.trim(),g=u&&u.length>0?u:p.type,m=h.trim()?h:"",f="string"==typeof p.attributes?.title?p.attributes.title.trim():"",y=f.length>0,b=y?f:g,C=y||m.length>0||"number"==typeof n;return jsxs("div",{className:"builder__button",children:[(i||o)&&jsxs("div",{className:"builder__sort-controls",children:[jsx("button",{type:"button",className:"builder__sort-button",onClick:e=>{e.stopPropagation(),i?.()},disabled:!i,"aria-label":"Move up",children:"↑"}),jsx("button",{type:"button",className:"builder__sort-button",onClick:e=>{e.stopPropagation(),o?.()},disabled:!o,"aria-label":"Move down",children:"↓"})]}),jsx("button",{type:"button",className:"builder__button-link",onClick:t,children:b}),jsxs("div",{className:"builder__button-actions",ref:c,children:[jsx("button",{type:"button",className:"builder__button-actions-trigger","aria-label":"Open node actions","aria-haspopup":"menu","aria-expanded":s,"aria-controls":d,onClick:e=>{e.stopPropagation(),l(e=>!e)},children:jsx(Icon,{iconType:"chevron-right",size:16})}),s&&jsxs("ul",{id:d,className:"builder__button-actions-menu",role:"menu","aria-label":"Node actions",children:[a?jsx("li",{role:"none",children:jsx("button",{type:"button",className:"builder__button-actions-item",role:"menuitem",onClick:e=>{e.stopPropagation(),a(),l(!1)},children:"More"})}):null,jsx("li",{role:"none",children:jsx("button",{type:"button",className:"builder__button-actions-item builder__button-actions-item--danger",role:"menuitem",disabled:!r,onClick:t=>{if(t.stopPropagation(),!r)return;window.confirm("Do you want to delete?")&&(r&&(isNodeNullOrUndefined(e)||isNodeString(e)||r(e)),l(!1))},children:"Delete"})})]})]}),C&&jsxs("span",{className:"builder__button-condition",children:[y||m.length>0?jsx("span",{className:"builder__button-condition-text",children:y?jsxs(Fragment,{children:[jsx("small",{children:g}),m?` · ${m}`:""]}):m}):jsx("span",{className:"builder__button-condition-text"}),"number"==typeof n?jsxs("span",{className:"builder__button-children-count",children:[n," children"]}):null]})]})}function BuilderTreeNode({node:e,depthRemaining:t,onClick:r,onDelete:i,onMoveUp:o,onMoveDown:n}){const a=getNodeChildren(e),s=a.length>0,l=s&&t<=0?a.length:void 0,c=jsx(BuilderButton,{onClick:()=>{r(e)},node:e,onDelete:i,onMoveUp:o,onMoveDown:n,childrenCount:l,onMore:s&&t<=0?()=>r(e):void 0});return s?t<=0?jsx("div",{className:"builder__children",children:c}):jsxs("div",{className:"builder__children",children:[c,a.map((e,o)=>jsx(BuilderTreeNode,{node:e,depthRemaining:t-1,onClick:r,onDelete:i},o))]}):c}function BuilderComponent({node:e,onClick:t,onAdd:r,onDelete:i,onReorder:o,onMoveChildUp:n,onMoveChildDown:a,maxNestedDepth:s}){if(isNodeString(e))return jsxs("div",{className:"builder__text",children:[e," (Please define a node)"]});const l=r&&jsxs("button",{type:"button",className:"editor-button builder__add-button",onClick:r,children:[jsx("span",{className:"builder__add-button-icon","aria-hidden":"true",children:"+"}),jsx("span",{children:"Add component"})]});if(isNodeArray(e)){const r=e,n=Math.max(0,Number.isFinite(s)&&(s??0)>0?Math.floor(s??1)-1:4),a=(e,t)=>{if(!o)return;const i=e+t;if(i<0||i>=r.length)return;const n=[...r],[a]=n.splice(e,1);n.splice(i,0,a),o(r,n)};return jsxs("div",{className:"builder__list",children:[r.map((e,s)=>jsx("div",{className:"builder__list-item",children:jsx(BuilderTreeNode,{node:e,depthRemaining:n,onClick:t,onDelete:i,onMoveUp:o&&s>0?()=>a(s,-1):void 0,onMoveDown:o&&s<r.length-1?()=>a(s,1):void 0})},s)),l]})}const c=e,d=c?.children,p=isNodeArray(d),h=d?p?d:[d]:null,u=Math.max(0,Number.isFinite(s)&&(s??0)>0?Math.floor(s??1)-1:4);return jsxs("div",{className:"builder__node",children:[jsxs("div",{className:"builder__children",children:[jsx(BuilderButton,{onClick:()=>{t(e)},node:e,onDelete:i}),h&&h.map((r,o)=>jsx(BuilderTreeNode,{node:r,depthRemaining:u,onClick:t,onDelete:i,onMoveUp:n&&p&&o>0?()=>n(e,o):void 0,onMoveDown:a&&p&&o<h.length-1?()=>a(e,o):void 0},o))]}),l]})}function Builder({data:e,setData:t,current:r,setCurrent:i,onDeleteNode:o}){useLogRender("Builder");const[n,a]=useState(!1),s=useRenderStore(e=>e.listMaxNested),l=useMemo(()=>collectNodeKeys(e),[e]),c=Number.isFinite(s)&&s>0?Math.floor(s):5,d=useMemo(()=>{const t=findNodePath(e,r);return t.length?t:isNodeNullOrUndefined(r)?isNodeNullOrUndefined(e)?[]:[e]:[r]},[e,r]),p=useCallback(e=>{i(e)},[i]),h=useMemo(()=>d.map((e,t)=>({label:getNodeLabel(e),onClick:t===d.length-1?void 0:()=>p(e)})),[d,p]),u=useCallback(()=>{d.length<2||p(d[d.length-2])},[d,p]),g=useCallback(o=>{const n=k(o,new Set(l));if(isNodeNullOrUndefined(r)){if(isNodeNullOrUndefined(e)||isNodeString(e))return t(n),void i(n);if(Array.isArray(e)){const r=[...e,n];return t(r),void i(r)}const r=e,o={...r,children:appendChild(r.children,n)};return t(o),void i(o)}if(isNodeArray(r)){const o=[...r,n],a=_(e,r,o);return t(a),void i(o)}if(isNodeString(r))return void(r===e&&(t(n),i(n)));const a=r,s={...a,children:appendChild(a.children,n)},c=_(e,r,s);t(c),i(s)},[r,e,t,i,l]),m=useMemo(()=>function(t){if(isNodeNullOrUndefined(t))return[...allcomponentNames];if(isNodeArray(t)&&0===t.length)return[...allcomponentNames];if(isNodeString(t))return t===e?[...allcomponentNames]:[];const r=t.type;if("OnboardButtons"===r)return["OnboardButton"];const i=getPatternByType(r)?.pattern?.children;if(!i)return[];if("never"===i||"string"===i)return[];if("node"===i||Array.isArray(i)&&i.includes("node"))return[...allcomponentNames];if("string"==typeof i)return[i];return[]}(r),[r]),f=useMemo(()=>isNodeNullOrUndefined(r)||isNodeString(r)||isNodeArray(r)?null:r.type??null,[r]),y=m.length>0||null==e||Array.isArray(e)&&0===e.length,b=useCallback(()=>{y&&a(!0)},[y]),C=useCallback(()=>{a(!1)},[]),v=useCallback(e=>{g(e),a(!1)},[g]),x=useCallback((o,n)=>{const a=_(e,o,n);t(a),r===o&&i(n)},[r,e,i,t]),S=useCallback((o,n)=>{if(isNodeNullOrUndefined(o)||isNodeString(o)||isNodeArray(o))return;const a=o,s=a.children;if(!Array.isArray(s))return;if(n<=0||n>=s.length)return;const l=[...s],[c]=l.splice(n,1);l.splice(n-1,0,c);const d={...a,children:l},p=_(e,o,d);t(p),r===o&&i(d)},[r,e,i,t]),w=useCallback((o,n)=>{if(isNodeNullOrUndefined(o)||isNodeString(o)||isNodeArray(o))return;const a=o,s=a.children;if(!Array.isArray(s))return;if(n<0||n>=s.length-1)return;const l=[...s],[c]=l.splice(n,1);l.splice(n+1,0,c);const d={...a,children:l},p=_(e,o,d);t(p),r===o&&i(d)},[r,e,i,t]);function _(e,t,r){if(e===t)return r;if(null==e)return e;if("string"==typeof e)return e;if(Array.isArray(e)){let i=!1;const o=e.map(e=>{const o=_(e,t,r);return o!==e&&(i=!0),o});return i?o:e}const i=e;if("children"in i){const e=i.children,o=Array.isArray(e)?e.map(e=>_(e,t,r)):_(e,t,r);if(o!==e)return{...i,children:o}}return e}function k(e,t){const r=getPatternByType(e)?.pattern,i=getDefaultsForType(e)??{},o=r?.children;let n="";do{n=generateRandomKeyForNode(e)}while(t.has(n));if(t.add(n),"CarouselProvider"===e)return{type:e,key:n,children:k("Carousel",t),attributes:{...i}};let a=null;return a="never"===o?null:"string"===o?"":"node"===o||Array.isArray(o)&&o.includes("node")?null:"string"==typeof o?[k(o,t)]:null,{type:e,key:n,children:a,attributes:{...i}}}return jsxs("div",{className:"builder",children:[jsx(Breadcrumb,{items:h,onBack:d.length>1?u:void 0}),jsx(BuilderComponent,{onClick:p,onAdd:y?b:void 0,onDelete:o,onReorder:x,onMoveChildUp:S,onMoveChildDown:w,maxNestedDepth:c,node:r}),n&&jsx(AddComponentModal,{allowedChildTypes:m,parentType:f,onSelect:v,onClose:C})]})}function appendChild(e,t){return Array.isArray(e)?[...e,t]:null==e||"string"==typeof e?[t]:[e,t]}function getNodeChildren(e){if(isNodeNullOrUndefined(e)||isNodeString(e)||isNodeArray(e))return[];const t=e.children;return t?Array.isArray(t)?t:[t]:[]}function getNodeLabel(e){if(isNodeNullOrUndefined(e))return"Empty";if(isNodeString(e))return e;if(isNodeArray(e))return"Collection";const t=e,r=t.attributes?.title;return"string"==typeof r&&r.trim().length>0?r:t.type??"Node"}function findNodePath(e,t){if(null==e)return[];if(e===t)return[e];if("string"==typeof e)return[];if(Array.isArray(e)){for(const r of e){const e=findNodePath(r,t);if(e.length)return e}return[]}const r=e.children;if(!r)return[];const i=Array.isArray(r)?r:[r];for(const r of i){const i=findNodePath(r,t);if(i.length)return[e,...i]}return[]}function BuilderPanel({data:e,setData:t,onDeleteNode:r}){useLogRender("BuilderPanel");const{current:i,setCurrent:o}=useRenderStore(e=>({current:e.current,setCurrent:e.setCurrent}));return jsx("div",{role:"region",className:"editor-panel-builder editor-panel editor-panel--active","aria-hidden":!1,children:jsx(Builder,{data:e,setData:t,current:i,setCurrent:o,onDeleteNode:r})})}function isFn(e){return"function"==typeof e}function safeStringify(e){try{const t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("function"==typeof r){const e=r.name;return`[Function${e?`: ${e}`:""}]`}if("bigint"==typeof r)return r.toString();if(r instanceof Error)return{name:r.name,message:r.message,stack:r.stack};if(r instanceof Map)return{__type:"Map",entries:Array.from(r.entries())};if(r instanceof Set)return{__type:"Set",values:Array.from(r.values())};if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r},2)}catch(e){return`<< Unable to stringify value: ${String(e)} >>`}}function safeParseJson(e){if("string"!=typeof e||!e.trim())return null;try{return JSON.parse(e)}catch{return null}}function safeGetPersistedRenderStore(){try{return"undefined"==typeof localStorage?null:localStorage.getItem("render-store")}catch(e){return{error:String(e)}}}function logRenderStore(e={}){const{label:t,includeLocalStorage:r=!0,extra:i}=e,o=useRenderStore.getState(),n=Object.keys(o).sort(),a={},s=[];for(const e of n){const t=o[e];isFn(t)?s.push(e):a[e]=t}const l="[RB Debug] Render store"+(t?` (${t})`:""),c=console.groupCollapsed,d=console.groupEnd;isFn(c)?c(l):console.info(l);const p=r?safeGetPersistedRenderStore():null,h=r?safeParseJson(p):null,u=safeStringify({snapshot:a,actions:s,extra:i??null,persisted:r?{raw:p,parsed:h}:null});console.info("json",u),console.info("state",a),console.info("actions",s),r&&console.info("localStorage.render-store (raw)",p),i&&console.info("extra",i),isFn(d)&&d()}function DebugJsonPage({data:e,setData:t,project:r,onClose:i,title:o="Debug JSON",description:n,previewMode:a,setPreviewMode:s,appConfig:l,setAppConfig:c,logLabel:d}){const p=useRenderStore(e=>e.setCurrent),h=useRenderStore(e=>e.listMaxNested),u=useRenderStore(e=>e.setListMaxNested),g=useRenderStore(e=>e.theme),m=useRenderStore(e=>e.setTheme),f=useRenderStore(e=>e.isRtl),y=useRenderStore(e=>e.setIsRtl),[b,C]=useState(String(h)),v="function"==typeof s,x=e=>(e=>"object"==typeof e&&null!==e&&!Array.isArray(e))(e)&&"data"in e?e.data:e;function S(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function w(e){if(isNodeNullOrUndefined(e)||isNodeString(e))return e;if(isNodeArray(e)){return e.map(e=>w(e))}if(!S(e))return e;const t=e,r=w(t.children);if(!S(t.attributes))return{...t,children:r};const i={...t.attributes};return"style"in i&&S(i.style)&&(i.styles=i.style,delete i.style),{...t,children:r,attributes:i}}const _=useMemo(()=>function e(t){if(isNodeNullOrUndefined(t)||isNodeString(t))return!1;if(isNodeArray(t)){return t.some(e)}if(!S(t))return!1;const r=t;return!(!S(r.attributes)||!("style"in r.attributes))||e(r.children)}(e),[e]);useEffect(()=>{C(String(h))},[h]),useEffect(()=>{const e=window.setTimeout(()=>{const e=Number.parseInt(b,10);!Number.isFinite(e)||e<=0||u(e)},300);return()=>window.clearTimeout(e)},[b,u]);return jsxs(Fragment,{children:[jsxs("div",{className:"modal__header localication-modal__header",children:[jsxs("div",{className:"localication-modal__header-main",children:[jsx("h3",{id:"debug-json-editor-title",className:"modal__title",children:o}),n?jsx("p",{className:"localication-modal__description",children:n}):null]}),jsx("button",{type:"button",className:"editor-button",title:"Log render store to console",onClick:()=>logRenderStore({label:d,extra:{project:r??null,projectData:e??null}}),children:"Log store"}),_?jsx("button",{type:"button",className:"editor-button",title:"Migrate attributes.style to attributes.styles (schemaVersion=2)",onClick:()=>{if(!e)return;const r=w(e);t(r),p(r)},children:"Fix style → styles"}):null,i?jsx("button",{type:"button",className:"editor-button",onClick:()=>i(),children:"Close"}):null]}),jsxs("div",{className:"localication-modal__body",children:[jsxs("div",{className:"localication-modal__controls",children:[v?jsx(Checkbox,{label:"Preview mode",checked:Boolean(a),onChange:s}):null,jsx(Checkbox,{label:"Dark Mode",checked:"dark"===g,onChange:e=>m(e?"dark":"light")}),jsx(Checkbox,{label:"Is RTL",checked:f,onChange:y})]}),jsxs("div",{className:"localication-modal__controls",children:[jsx("label",{children:"List max nested depth"}),jsx("input",{type:"number",min:1,className:"input",value:b,onChange:e=>C(e.target.value)})]}),jsx("div",{className:"localication-modal__editor",children:jsx(JsonTextEditor,{rootName:"node",value:e??{},onChange:e=>{const r=analyseAndProccess(x(e));t(r),p(r)},className:"localication-modal__json-editor"})})]})]})}function BottomBar({className:e,data:t,setData:r,project:i}){const{appConfig:o,setAppConfig:n,theme:a,setTheme:s,defaultLanguage:l,setDefaultLanguage:c,previewMode:d,setPreviewMode:p,isRtl:h,setIsRtl:u}=useRenderStore(e=>({appConfig:e.appConfig,setAppConfig:e.setAppConfig,theme:e.theme,setTheme:e.setTheme,defaultLanguage:e.defaultLanguage,setDefaultLanguage:e.setDefaultLanguage,previewMode:e.previewMode,setPreviewMode:e.setPreviewMode,isRtl:e.isRtl,setIsRtl:e.setIsRtl})),[g,m]=useState(!1),[f,y]=useState(!1),[b,C]=useState(!1),v=useMemo(()=>["en","tr","ar"],[]),x=l,S="dark"===a,w=h,_=d,k=S?"moon-bold":"sun";return jsxs(Fragment,{children:[jsxs("div",{className:["rb-bottom-bar",e].filter(Boolean).join(" "),children:[jsx("button",{type:"button",className:"rb-bottom-bar__button"+(S?" is-active":""),"aria-label":"Theme","aria-pressed":S,onClick:()=>s("dark"===a?"light":"dark"),children:jsx(Icon,{iconType:k,size:20,color:"currentColor",alt:""})}),jsxs("button",{type:"button",className:"rb-bottom-bar__button rb-bottom-bar__button--rtl"+(w?" is-active":""),"aria-label":"RTL","aria-pressed":w,onClick:()=>u(!h),children:[jsx(Icon,{iconType:"translate",size:18,color:"currentColor",alt:""}),jsx("span",{className:"rb-bottom-bar__rtl-text",children:"RTL"})]}),jsx("button",{type:"button",className:"rb-bottom-bar__button rb-bottom-bar__button--preview"+(_?" is-active":""),"aria-label":"Magic cursor tool","aria-pressed":_,onClick:()=>p(!d),children:jsx(Icon,{iconType:"magicpen",size:20,color:"currentColor",alt:""})}),jsx("button",{type:"button",className:"rb-bottom-bar__button"+(g?" is-active":""),"aria-label":"Debug","aria-pressed":g,onClick:()=>m(!0),children:jsx(Icon,{iconType:"speedometer-03",size:20,color:"currentColor",alt:""})}),jsx("button",{type:"button",className:"rb-bottom-bar__button"+(f?" is-active":""),"aria-label":"Localization","aria-pressed":f,onClick:()=>y(!0),children:jsx(Icon,{iconType:"globe-01",size:20,color:"currentColor",alt:""})}),jsx("button",{type:"button",className:"rb-bottom-bar__button"+(b?" is-active":""),"aria-label":"Inspect","aria-pressed":b,onClick:()=>C(!0),children:jsx(Icon,{iconType:"info-circle",size:20,color:"currentColor",alt:""})}),jsx("div",{className:"rb-bottom-bar__spacer"}),jsx("div",{className:"rb-bottom-bar__langs","aria-label":"Language",children:v.map(e=>jsx("button",{type:"button",className:"rb-bottom-bar__lang"+(x===e?" is-active":""),onClick:()=>c(e),children:e},e))})]}),f&&jsx(LocalicationModal,{data:o.localication??{},onChange:e=>{n({...o,localication:e})},onClose:()=>y(!1)}),g&&jsx(Modal,{onClose:()=>m(!1),ariaLabelledBy:"debug-json-editor-title",className:"modal--large modal--scrollable",contentClassName:"localication-modal__content",children:jsx(DebugJsonPage,{project:i,data:t,setData:r,onClose:()=>m(!1),description:"Inspect and edit raw node JSON.",previewMode:d,setPreviewMode:p,appConfig:o,setAppConfig:n,logLabel:"BottomBar Debug JSON"})}),b&&jsx(InspectModal,{onClose:()=>C(!1)})]})}var v="5.6.10",fr=30,ip=30,op=210,w=800,h=600,nm="åæ 1",ddd=0,assets=[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"å½¢ç¶å¾å± 18",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:340,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:0,s:[0]},{t:30,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"å½¢ç¶å¾å± 17",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:320,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:10,s:[0]},{t:40,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:10,bm:0},{ddd:0,ind:3,ty:4,nm:"å½¢ç¶å¾å± 16",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:300,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:20,s:[0]},{t:50,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:20,bm:0},{ddd:0,ind:4,ty:4,nm:"å½¢ç¶å¾å± 15",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:280,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:30,s:[0]},{t:60,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:30,bm:0},{ddd:0,ind:5,ty:4,nm:"å½¢ç¶å¾å± 14",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:260,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:40,s:[0]},{t:70,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:40,bm:0},{ddd:0,ind:6,ty:4,nm:"å½¢ç¶å¾å± 13",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:240,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:50,s:[0]},{t:80,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:121,st:50,bm:0},{ddd:0,ind:7,ty:4,nm:"å½¢ç¶å¾å± 12",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:220,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[0]},{t:90,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:60,bm:0},{ddd:0,ind:8,ty:4,nm:"å½¢ç¶å¾å± 11",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:200,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:70,s:[0]},{t:100,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:70,bm:0},{ddd:0,ind:9,ty:4,nm:"å½¢ç¶å¾å± 10",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:180,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:80,s:[0]},{t:110,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:80,bm:0},{ddd:0,ind:10,ty:4,nm:"å½¢ç¶å¾å± 9",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:160,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:90,s:[0]},{t:120,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:90,bm:0},{ddd:0,ind:11,ty:4,nm:"å½¢ç¶å¾å± 8",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:140,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:100,s:[0]},{t:130,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:100,bm:0},{ddd:0,ind:12,ty:4,nm:"å½¢ç¶å¾å± 7",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:120,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:110,s:[0]},{t:140,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:181,st:110,bm:0},{ddd:0,ind:13,ty:4,nm:"å½¢ç¶å¾å± 6",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:100,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:120,s:[0]},{t:150,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:420,st:120,bm:0},{ddd:0,ind:14,ty:4,nm:"å½¢ç¶å¾å± 5",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:80,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:130,s:[0]},{t:160,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:430,st:130,bm:0},{ddd:0,ind:15,ty:4,nm:"å½¢ç¶å¾å± 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:60,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:140,s:[0]},{t:170,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:440,st:140,bm:0},{ddd:0,ind:16,ty:4,nm:"å½¢ç¶å¾å± 3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:40,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:150,s:[0]},{t:180,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:450,st:150,bm:0},{ddd:0,ind:17,ty:4,nm:"å½¢ç¶å¾å± 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:20,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:160,s:[0]},{t:190,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:460,st:160,bm:0},{ddd:0,ind:18,ty:4,nm:"å½¢ç¶å¾å± 1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:170,s:[0]},{t:200,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:78,op:470,st:170,bm:0},{ddd:0,ind:19,ty:4,nm:"å½¢ç¶å¾å± 24",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:340,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:180,s:[0]},{t:210,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:180,bm:0},{ddd:0,ind:20,ty:4,nm:"å½¢ç¶å¾å± 23",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:320,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:190,s:[0]},{t:220,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:190,bm:0},{ddd:0,ind:21,ty:4,nm:"å½¢ç¶å¾å± 22",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:300,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:200,s:[0]},{t:230,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:200,bm:0},{ddd:0,ind:22,ty:4,nm:"å½¢ç¶å¾å± 21",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:280,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:210,s:[0]},{t:240,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:210,bm:0},{ddd:0,ind:23,ty:4,nm:"å½¢ç¶å¾å± 20",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:260,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:220,s:[0]},{t:250,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:220,bm:0},{ddd:0,ind:24,ty:4,nm:"å½¢ç¶å¾å± 19",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:240,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[1.258,2.078,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[200,200],ix:2},p:{a:0,k:[0,0],ix:3},nm:"æ¤åè·¯å¾ 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:5,ix:2},o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:230,s:[0]},{t:260,s:[120]}],ix:3},m:1,ix:2,nm:"ä¿®åªè·¯å¾ 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[.09019607843137255,.3843137254901961,.8745098039215686,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:40,ix:5},lc:2,lj:1,ml:4,bm:0,nm:"æè¾¹ 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[1.258,2.078],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"忢"}],nm:"æ¤å 1",np:4,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:180,op:301,st:230,bm:0}]}],layers=[{ddd:0,ind:1,ty:0,nm:"é¢åæ 1",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,300,0],ix:2},a:{a:0,k:[400,300,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ef:[{ty:5,nm:"ç®åé»å¡å·¥å
·",np:4,mn:"ADBE Simple Choker",ix:1,en:1,ef:[{ty:7,nm:"è§å¾",mn:"ADBE Simple Choker-0001",ix:1,v:{a:0,k:1,ix:1}},{ty:0,nm:"é»å¡é®ç½©",mn:"ADBE Simple Choker-0002",ix:2,v:{a:0,k:14,ix:2}}]},{ty:5,nm:"梯度æ¸å",np:10,mn:"ADBE Ramp",ix:2,en:1,ef:[{ty:3,nm:"æ¸åèµ·ç¹",mn:"ADBE Ramp-0001",ix:1,v:{a:0,k:[400,0],ix:1}},{ty:2,nm:"èµ·å§é¢è²",mn:"ADBE Ramp-0002",ix:2,v:{a:0,k:[.263066768646,1,.867243647575,1],ix:2}},{ty:3,nm:"æ¸åç»ç¹",mn:"ADBE Ramp-0003",ix:3,v:{a:0,k:[400,600],ix:3}},{ty:2,nm:"ç»æé¢è²",mn:"ADBE Ramp-0004",ix:4,v:{a:0,k:[.354580283165,1,.820018112659,1],ix:4}},{ty:7,nm:"æ¸åå½¢ç¶",mn:"ADBE Ramp-0005",ix:5,v:{a:0,k:1,ix:5}},{ty:0,nm:"æ¸åæ£å°",mn:"ADBE Ramp-0006",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:"ä¸åå§å¾åæ··å",mn:"ADBE Ramp-0007",ix:7,v:{a:0,k:0,ix:7}},{ty:6,nm:"",mn:"ADBE Ramp-0008",ix:8,v:0}]}],w:800,h:600,ip:0,op:300,st:0,bm:0},{ddd:0,ind:2,ty:0,nm:"é¢åæ 1",refId:"comp_0",sr:1,ks:{o:{a:0,k:56,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[400,320,0],ix:2},a:{a:0,k:[400,300,0],ix:1},s:{a:0,k:[100,100,100],ix:6}},ao:0,ef:[{ty:5,nm:"ç®åé»å¡å·¥å
·",np:4,mn:"ADBE Simple Choker",ix:1,en:1,ef:[{ty:7,nm:"è§å¾",mn:"ADBE Simple Choker-0001",ix:1,v:{a:0,k:1,ix:1}},{ty:0,nm:"é»å¡é®ç½©",mn:"ADBE Simple Choker-0002",ix:2,v:{a:0,k:14,ix:2}}]},{ty:5,nm:"梯度æ¸å",np:10,mn:"ADBE Ramp",ix:2,en:1,ef:[{ty:3,nm:"æ¸åèµ·ç¹",mn:"ADBE Ramp-0001",ix:1,v:{a:0,k:[400,0],ix:1}},{ty:2,nm:"èµ·å§é¢è²",mn:"ADBE Ramp-0002",ix:2,v:{a:0,k:[.263066768646,1,.867243647575,1],ix:2}},{ty:3,nm:"æ¸åç»ç¹",mn:"ADBE Ramp-0003",ix:3,v:{a:0,k:[400,600],ix:3}},{ty:2,nm:"ç»æé¢è²",mn:"ADBE Ramp-0004",ix:4,v:{a:0,k:[.354580283165,1,.820018112659,1],ix:4}},{ty:7,nm:"æ¸åå½¢ç¶",mn:"ADBE Ramp-0005",ix:5,v:{a:0,k:1,ix:5}},{ty:0,nm:"æ¸åæ£å°",mn:"ADBE Ramp-0006",ix:6,v:{a:0,k:0,ix:6}},{ty:0,nm:"ä¸åå§å¾åæ··å",mn:"ADBE Ramp-0007",ix:7,v:{a:0,k:0,ix:7}},{ty:6,nm:"",mn:"ADBE Ramp-0008",ix:8,v:0}]},{ty:29,nm:"髿¯æ¨¡ç³",np:5,mn:"ADBE Gaussian Blur 2",ix:3,en:1,ef:[{ty:0,nm:"模ç³åº¦",mn:"ADBE Gaussian Blur 2-0001",ix:1,v:{a:0,k:41.3,ix:1}},{ty:7,nm:"æ¨¡ç³æ¹å",mn:"ADBE Gaussian Blur 2-0002",ix:2,v:{a:0,k:1,ix:2}},{ty:7,nm:"éå¤è¾¹ç¼åç´ ",mn:"ADBE Gaussian Blur 2-0003",ix:3,v:{a:0,k:0,ix:3}}]}],w:800,h:600,ip:0,op:300,st:0,bm:0}],markers=[],loadingAnimation={v:v,fr:fr,ip:ip,op:op,w:w,h:h,nm:nm,ddd:ddd,assets:assets,layers:layers,markers:markers};function LoadingComponent(){return jsx("div",{className:"rb-loading",children:jsx(Lottie,{animationData:loadingAnimation,loop:!0,autoplay:!0})})}function useSyncHtmlThemeClass(){const e=useRenderStore(e=>e.theme);useEffect(()=>{if("undefined"==typeof document)return;const t=document.documentElement;t.classList.toggle("dark","dark"===e),t.classList.toggle("light","light"===e)},[e])}function safeJsonStringify(e){try{const t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r},2)}catch(e){return`<< Unable to stringify value: ${String(e)} >>`}}async function copyTextToClipboard(e){try{if("undefined"!=typeof navigator&&navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{if("undefined"==typeof document)return!1;const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly","true"),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();const r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return!1}}function parseValidationPrefix(e){const t=e.indexOf(": ");if(t<=0)return{reason:e};const r=e.slice(0,t),i=e.slice(t+2);return r.startsWith("root")?{path:r,reason:i}:{reason:e}}function isObject(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function extractNodeFromRawData(e){if(isObject(e)){if("string"==typeof e.type&&e.type.trim())return e;const t=e.data;if(isObject(t)&&"string"==typeof t.type&&t.type.trim())return t}return e}function getNodeType(e){if(!isObject(e))return null;const t=e.type;return"string"==typeof t&&t?t:null}function getFirstComponentFromReactStack(e){if(!e)return null;const t=e.match(/\bat\s+([A-Za-z0-9_$]+)/);return t?.[1]??null}function resolveNodeTypeAtPath(e,t){if(!t||!t.startsWith("root"))return{};let r=e,i=getNodeType(r),o=i?"root":null;const n="root"===t?"":t.replace(/^root\.?/,""),a=/([A-Za-z0-9_$]+)|\[(\d+)\]/g;let s,l="root";for(;s=a.exec(n);){const e=s[1],t=s[2];e?(l=`${l}.${e}`,r=isObject(r)?r[e]:void 0):null!=t&&(l=`${l}[${t}]`,r=Array.isArray(r)?r[Number(t)]:void 0);const n=getNodeType(r);n&&(i=n,o=l)}return i?{nodeType:i,nodePath:o??void 0}:{}}function ProjectDebug({name:e,rawData:t,validationError:r,validationErrorStack:i,products:o,benefits:n,canvasBg:a,belowName:s,jsonEditor:l}){useSyncHtmlThemeClass();const[c,d]=useState(null),[p,h]=useState("idle"),[u,g]=useState("idle"),m=useMemo(()=>safeJsonStringify(t),[t]),f=l?l.value:m,y=useMemo(()=>extractNodeFromRawData(t),[t]),b=y,C=useMemo(()=>getNodeType(y),[y]),v=useMemo(()=>parseValidationPrefix(r),[r]),x=useMemo(()=>resolveNodeTypeAtPath(y,v.path),[y,v.path]),S=useMemo(()=>{const e=[];return e.push(v.reason),C&&e.push(`Root component: ${C}`),v.path&&e.push(`Path: ${v.path}`),x.nodeType&&e.push(`Component at path: ${x.nodeType}${x.nodePath?` (${x.nodePath})`:""}`),e.join("\n")},[v.reason,v.path,C,x.nodeType,x.nodePath]),w=useMemo(()=>{if(!c)return null;const e=[];return e.push(c.message),C&&e.push(`Root component: ${C}`),c.componentStack&&e.push(`Component (from React stack): ${getFirstComponentFromReactStack(c.componentStack)??"unknown"}`),e.join("\n")},[c,C]),_=useMemo(()=>{const e=[];return e.push("=== Validation ==="),e.push(S),i&&(e.push(""),e.push(i)),c&&(e.push(""),e.push("=== Render ==="),w&&e.push(w),c.stack&&(e.push(""),e.push(c.stack)),c.componentStack&&(e.push(""),e.push(c.componentStack))),e.join("\n")},[c,w,i,S]);return jsxs("div",{className:"rb-project-debug",children:[jsxs("section",{className:"rb-project-debug__json","aria-label":"Debug JSON",children:[jsx("div",{className:"rb-project-debug__meta",children:jsxs("div",{children:[jsx("span",{className:"rb-project-debug__meta-label",children:"Name:"})," ",e]})}),jsxs("div",{className:"rb-project-debug__toolbar",children:[jsx("button",{type:"button",className:"editor-button",onClick:async()=>{await copyTextToClipboard(f)&&(h("copied"),window.setTimeout(()=>h("idle"),900))},children:"copied"===p?"Copied JSON":"Copy JSON"}),l?.onSave&&jsx("button",{type:"button",className:"editor-button",disabled:l.saveDisabled,onClick:()=>l.onSave?.(),children:l.saveLabel??"Save"})]}),s&&jsx("div",{className:"rb-project-debug__below-name",children:s}),l?jsxs(Fragment,{children:[jsx("textarea",{className:"rb-project-debug__code-editor",value:l.value,onChange:e=>l.onChange(e.target.value),spellCheck:!1,"aria-label":"Edit JSON"}),l.error?jsx("div",{className:"rb-project-debug__json-error",role:"alert",children:l.error}):null]}):jsx("pre",{className:"rb-project-debug__code",tabIndex:0,children:m})]}),jsx("section",{className:"rb-project-debug__preview","aria-label":"Preview",style:{"--rb-canvas-bg":a??"none"},children:jsx(RenderErrorBoundary,{subtitle:"caught by ProjectDebug preview",onError:(e,t)=>d({message:e?.message??String(e),stack:e?.stack,componentStack:t}),children:jsx(RenderPage,{data:b,name:e,params:{mockProducts:o,mockBenefits:n}})})}),jsxs("section",{className:"rb-project-debug__error","aria-label":"Errors",children:[jsxs("div",{className:"rb-project-debug__error-head",children:[jsx("h2",{className:"rb-project-debug__title",children:"Errors"}),jsx("button",{type:"button",className:"editor-button",onClick:async()=>{await copyTextToClipboard(_)&&(g("copied"),window.setTimeout(()=>g("idle"),900))},children:"copied"===u?"Copied":"Copy"})]}),jsxs("div",{className:"rb-project-debug__error-block",children:[jsx("div",{className:"rb-project-debug__error-label",children:"Validation"}),jsx("pre",{className:"rb-project-debug__error-pre",children:S}),i&&jsx("pre",{className:"rb-project-debug__error-pre",children:i})]}),c&&jsxs("div",{className:"rb-project-debug__error-block",children:[jsx("div",{className:"rb-project-debug__error-label",children:"Render"}),jsx("pre",{className:"rb-project-debug__error-pre",children:w}),c.stack&&jsx("pre",{className:"rb-project-debug__error-pre",children:c.stack}),c.componentStack&&jsx("pre",{className:"rb-project-debug__error-pre",children:c.componentStack})]})]})]})}function ProjectValidationPage({name:e,rawData:t,validationError:r,validationErrorStack:i,products:o,benefits:n,canvasBg:a,belowName:s,onContinueWithoutValidation:l,onSaveEditedRawData:c}){const[d,p]=useState(()=>safeJsonStringify(t)),[h,u]=useState(null);return useEffect(()=>{p(safeJsonStringify(t)),u(null)},[t]),jsx(ProjectDebug,{name:e,rawData:t,validationError:r,validationErrorStack:i,products:o,benefits:n,canvasBg:a,jsonEditor:{value:d,onChange:e=>{p(e),u(null)},error:h,onSave:()=>{try{const e=JSON.parse(d);u(null),c?.(e)}catch(e){u(e instanceof Error?e.message:String(e))}},saveDisabled:!c,saveLabel:"Save JSON"},belowName:jsxs(Fragment,{children:[jsxs("div",{className:"rb-project-validation__actions",children:[jsx("button",{type:"button",className:"editor-button",onClick:()=>l?.(),children:"Continue without validation"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>(()=>{try{const e=JSON.parse(d),t=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),r=wrapNodeInMain(t(e)&&"data"in e?e.data:e),i=t(e)&&"data"in e?{...e,data:r}:r;p(JSON.stringify(i,null,2)),u(null)}catch(e){u(e instanceof Error?e.message:String(e))}})(),children:"Wrap in Main"})]}),s]})})}function ProjectMigrationPage({name:e,rawData:t,projectVersion:r,requiredVersion:i,showFixVersionMeta:o,pendingMigrations:n,products:a,benefits:s,canvasBg:l,belowName:c,migrating:d,onContinueWithoutValidation:p,onMigrateNow:h,onFixVersionMeta:u}){const g=`Migration required: project version ${r} is lower than ${i}.`,m=[`Required: ${i}`,`Current: ${r}`,"","Pending migrations:",...n.length?n.map(e=>`- ${e.id} (${e.fromVersion} -> ${e.toVersion}): ${e.title}`):["- (none)"]].join("\n");return jsx(ProjectDebug,{name:e,rawData:t,validationError:g,validationErrorStack:m,products:a,benefits:s,canvasBg:l,belowName:jsxs(Fragment,{children:[jsxs("div",{className:"rb-project-validation__actions",children:[jsx("button",{type:"button",className:"editor-button",disabled:!!d,onClick:()=>{h?.()},children:d?"Migrating…":"Migrate now"}),o&&jsx("button",{type:"button",className:"editor-button",disabled:!!d,onClick:()=>u?.(),children:"Fix version meta"}),jsx("button",{type:"button",className:"editor-button",onClick:()=>p?.(),children:"Continue without migration"})]}),c]})})}var supportedProjectVersion="1.1.2",reactBuilderVersion="1.2.28",metaJson={supportedProjectVersion:supportedProjectVersion,reactBuilderVersion:reactBuilderVersion};function parseSemver(e){const t="string"==typeof e?e.trim():"",[r,i,o]=t.split(".").slice(0,3),n=e=>{const t=Number(String(e??"").replace(/[^\d].*$/,""));return Number.isFinite(t)?t:0};return{major:n(r),minor:n(i),patch:n(o)}}function compareSemver(e,t){const r=parseSemver(e),i=parseSemver(t);return r.major!==i.major?r.major<i.major?-1:1:r.minor!==i.minor?r.minor<i.minor?-1:1:r.patch!==i.patch?r.patch<i.patch?-1:1:0}function isSemverLess(e,t){return compareSemver(e,t)<0}function isPlainObject(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function buildStyleKeySet(){return getStyleAttributeKeySet()}function normalizeStyleAttributes(e,t){if(isNodeNullOrUndefined(e)||isNodeString(e)||isEmptyObject(e))return e;if(isNodeArray(e))return e.map(e=>normalizeStyleAttributes(e,t));const r=e,i=normalizeStyleAttributes(r.children,t);if(!isPlainObject(r.attributes))return{...r,children:i};const o={...r.attributes??{}},n={...isPlainObject(o.style)?o.style:{}};for(const[e,r]of Object.entries(o))"style"!==e&&t.has(e)&&(e in n||(n[e]=r),delete o[e]);return Object.keys(n).length>0&&(o.style=n),{...r,children:i,attributes:o}}function getStyleSubSchemaKeys(e){if(!e)return new Set;const t=e.style;return isPlainObject(t)?new Set(Object.keys(t)):new Set}function getTopLevelAttributeKeys(e){if(!e)return new Set;const t=Object.keys(e).filter(e=>"style"!==e);return new Set(t)}function buildKeyInfo(e){const t=getTopLevelAttributeKeys(e);return{moveableKeys:new Set([...Array.from(t),...Array.from(NON_STYLE_ATTRIBUTE_KEYS)]),styleKeys:getStyleSubSchemaKeys(e)}}function extractAttributesFromStyle(e,t){if(isNodeNullOrUndefined(e)||isNodeString(e)||isEmptyObject(e))return e;if(isNodeArray(e))return e.map(e=>extractAttributesFromStyle(e,t));const r=e,i=extractAttributesFromStyle(r.children,t);if(!isPlainObject(r.attributes))return{...r,children:i};const o={...r.attributes??{}},n=o.style;if(!isPlainObject(n))return{...r,children:i,attributes:o};const a="string"==typeof r.type?r.type:"",s=normalizeComponentType(a)??a;if(!s)return{...r,children:i,attributes:o};if(!t.has(s)){const e=getAttributeSchema(s);t.set(s,buildKeyInfo(e))}const l=t.get(s),c=l?.styleKeys??new Set,d=l?.moveableKeys??NON_STYLE_ATTRIBUTE_KEYS,p={...n};let h=!1;for(const e of d)e in p&&(c.has(e)||(e in o||(o[e]=p[e]),delete p[e],h=!0));return h?(0===Object.keys(p).length?delete o.style:o.style=p,{...r,children:i,attributes:o}):{...r,children:i,attributes:o}}const migration_1_1_2_extract_component_attributes_from_style={id:"1.1.2-extract-attrs-from-style",title:"Normalize style keys then extract non-style + component props out of attributes.style",fromVersion:"0.0.0",toVersion:"1.1.2",run:e=>{const t=buildStyleKeySet(),r=extractAttributesFromStyle(normalizeStyleAttributes(e.data,t),new Map);return{...e,version:"1.1.2",data:r}}},CURRENT_PROJECT_VERSION=metaJson.supportedProjectVersion,MIGRATIONS=[migration_1_1_2_extract_component_attributes_from_style];function getMigrationPipe(e){const t="string"==typeof e?.version&&e.version.trim()?e.version:"0.0.0",r=isSemverLess(t,CURRENT_PROJECT_VERSION),i=r?MIGRATIONS.filter(e=>isSemverLess(t,e.toVersion)):[];return{projectVersion:t,requiredVersion:CURRENT_PROJECT_VERSION,required:r,pending:i}}function runProjectMigrations(e){const t=getMigrationPipe(e);let r=e;const i=[];for(const e of t.pending)isSemverLess(r.version,e.toVersion)&&(r=e.run(r),i.push(e));return isSemverLess(r.version,CURRENT_PROJECT_VERSION)&&(r={...r,version:CURRENT_PROJECT_VERSION}),{project:r,applied:i}}function sleep(e){return new Promise(t=>setTimeout(t,e))}async function loadWithDeadline(e,t){return!Number.isFinite(t)||t<=0?await e:await Promise.race([e,sleep(t).then(()=>{throw new Error("timeout")})])}function useProjectFonts({fonts:e,appFont:t}){useEffect(()=>{fontsDebug.info("useProjectFonts: effect start",{appFont:t,fontsCount:Array.isArray(e)?e.length:"not-array"});const{setFonts:r,setAppFont:i,setErrors:o,addError:n,loadedFonts:a,markFontLoaded:s}=useRenderStore.getState();fontsDebug.info("useProjectFonts: storing fonts/appFont in store",{appFont:t,fontsCount:Array.isArray(e)?e.length:"not-array"}),r(e),i(t),o([]);let l=!1;return(async()=>{const r="string"==typeof t?t.trim():"";if(!r)return void o(["appFont is undefined"]);if(l)return;Array.isArray(e)&&e.some(e=>e?.name===r&&e?.family&&"object"==typeof e.family&&Object.keys(e.family).length>0)?Array.isArray(a)&&a.includes(r)||(await loadWithDeadline(loadFontFamily(e,r,{forceFetch:!0}),1e4),l||s(r)):o([`appFont "${r}" not found in fonts`])})().catch(e=>{l||n(`Failed to initialize fonts: ${e instanceof Error?e.message:String(e)}`)}),()=>{l=!0}},[e,t])}function getDefaultProject(e={}){const t=metaJson.supportedProjectVersion.trim()?metaJson.supportedProjectVersion.trim():"0.0.0",r="string"==typeof e.version&&e.version.trim()?e.version.trim():t;return{name:"string"==typeof e.name&&e.name.trim()?e.name.trim():"project",version:r,data:e.data??null,appConfig:e.appConfig,projectColors:e.projectColors,type:e.type}}function resolveProjectForSave(e){return getDefaultProject({...e.overrideProject??e.project,data:e.data})}function toProjectMeta(e){return{name:e.name,version:e.version,...e.type?{type:e.type}:{},data:e.data}}const MOBILE_BREAKPOINT=1e3;function ProjectPage({project:e,localization:t,onSaveProject:r,logLevel:i,projectColors:o,onSaveProjectColors:n,name:a,typography:s,appFont:l}){useLogRender("ProjectPage"),useSyncHtmlThemeClass();const c=l??s.fonts.find(e=>e?.isMain)?.name??s.fonts[0]?.name;useProjectFonts({fonts:s.fonts,appFont:c});const{current:d,setCurrent:p,setProjectColors:h,setProjectName:u,setAppConfig:g,storeAppConfig:m,storeTheme:f,storeDefaultLanguage:b,products:C,benefits:v,previewMode:x}=useRenderStore(e=>({current:e.current,setCurrent:e.setCurrent,setProjectColors:e.setProjectColors,setProjectName:e.setProjectName,setAppConfig:e.setAppConfig,storeAppConfig:e.appConfig,storeTheme:e.theme,storeDefaultLanguage:e.defaultLanguage,products:e.products,benefits:e.benefits,previewMode:e.previewMode})),S=t?{...defaultAppConfig,localication:mergeLocalization(defaultLocalization,t)}:m??defaultAppConfig,[w,_]=useState(null),k=w??e,T=a??k.name,M=o??k.projectColors,P=isNodeNullOrUndefined(k.data)||isEmptyObject(k.data),[O,E]=useState(()=>null),[L,A]=useState(null),[B,z]=useState(null),[I,R]=useState(!1),[V,D]=useState(null),[N,F]=useState(!1),[j,H]=useState(()=>P),[W,$]=useState(null),[G,U]=useState(()=>"undefined"!=typeof window&&window.innerWidth<=MOBILE_BREAKPOINT),Z=useCallback(e=>{if(e===O){if(!window.confirm("You are about to delete the root component. This will clear the entire screen. Continue?"))return;return E(null),void p(null)}const t=deleteNodeFromTree(O,e);if(E(t),d!==e)if(isNodeRecord(d)&&d.key){const e=findNodeByKey(t,d.key);p(e??t)}else p(t);else p(t)},[O,d]);useEffect(()=>{if(logger.info("ProjectPage","mount",{projectName:e.name}),_(null),t){const e=mergeLocalization(defaultLocalization,t);g({...defaultAppConfig,localication:e}),logger.verbose("ProjectPage","localization applied",e)}return()=>{logger.info("ProjectPage","unmount")}},[t,e.name,g]),useEffect(()=>{u(T)},[T,u]),useEffect(()=>(h(M),()=>h(void 0)),[M,h]),useEffect(()=>{i&&logger.setLevel(i)},[i]),useEffect(()=>{function e(){U(window.innerWidth<=MOBILE_BREAKPOINT)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),useEffect(()=>{$(null)},[G]);const Y=e=>{$(t=>t===e?null:e)},K=()=>{$(null)},q=!G||"builder"===W,J=!G||"attributes"===W;useEffect(()=>{if(P)return void H(!0);H(!1);const e=setTimeout(()=>H(!0),1e3);return()=>clearTimeout(e)},[k.data]);const X=useRef(k);X.current=k;const Q=useRef(O);Q.current=O,useEffect(()=>{try{const e=X.current,t=e.data;if(null!=t&&t===Q.current)return;P||(E(null),p(null)),A(null),z(null);const r=getMigrationPipe(e);if(!I&&r.required)return D(r),E(null),void p(null);if(D(null),I)return E(e.data),void p(e.data);if(P)return E(null),void p(null);const i=analyseAndProccess(e.data);if(!i)return;E(i),p(i)}catch(e){logger.error("ProjectPage","Failed to process node",e),A(e instanceof Error?e.message:"Node is not valid"),z(e instanceof Error?e.stack??null:null),E(null),p(null)}},[k.data,P,I,p]);const ee=!(P||null!==O&&j);return jsxs("div",{className:"container-full",children:[jsx(Lt,{position:"bottom-right",autoClose:2500,hideProgressBar:!1,newestOnTop:!0,closeOnClick:!0,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,theme:"colored"}),jsx(EditorHeader,{onSaveProject:()=>{try{logger.info("ProjectPage","save project",{name:e.name}),n&&M&&n(M);const t=toProjectMeta(resolveProjectForSave({project:e,overrideProject:w,data:O}));logger.info("ProjectPage","saving project meta",t),r(t),y.success("Saved")}catch(e){logger.error("ProjectPage","save project failed",e),y.error("Save failed")}},onRestoreProject:()=>{logger.info("ProjectPage","restore project",{name:e.name}),_(null),A(null),z(null),R(!1),E(e.data),p(e.data)},current:d,editorData:O,setEditorData:E}),V?jsx(ProjectMigrationPage,{name:T,rawData:k,projectVersion:V.projectVersion,requiredVersion:V.requiredVersion,showFixVersionMeta:"0.0.0"===V.projectVersion,pendingMigrations:V.pending.map(e=>({id:e.id,title:e.title,fromVersion:e.fromVersion,toVersion:e.toVersion})),products:C,benefits:v,canvasBg:`url(${getImage(TribeAssetName.Background)})`,migrating:N,onContinueWithoutValidation:()=>{R(!0),D(null),E(k.data),p(k.data),H(!0)},onMigrateNow:()=>{try{F(!0);const e=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),t=t=>e(t)&&"string"==typeof t.type&&t.type.trim().length>0,i=!t(k)||e(k)&&"string"==typeof k.version?k:getDefaultProject({name:`imported-${Math.random().toString(36).slice(2,8)}`,version:CURRENT_PROJECT_VERSION,data:k}),{project:o}=runProjectMigrations(i);r(toProjectMeta(o)),_(o),R(!0),D(null),E(o.data),p(o.data),H(!0)}finally{F(!1)}},onFixVersionMeta:()=>{const e=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),t=e(k)?k:null,i="string"==typeof t?.name&&String(t.name).trim()?String(t.name).trim():`imported-${Math.random().toString(36).slice(2,8)}`,o=t&&"data"in t?t.data:(t=>e(t)&&"string"==typeof t.type&&t.type.trim().length>0)(k)?k:null,n=getDefaultProject({name:i,version:CURRENT_PROJECT_VERSION,data:o,appConfig:t?.appConfig,projectColors:t?.projectColors,type:(e=>"paywall"===e||"onboard"===e||"other"===e)(t?.type)?t.type:void 0});r(toProjectMeta(n)),_(n),R(!1),D(null),A(null),z(null),y.success("Fixed version meta")}}):L?jsx(ProjectValidationPage,{name:T,rawData:k,validationError:L,validationErrorStack:B??void 0,products:C,benefits:v,canvasBg:`url(${getImage(TribeAssetName.Background)})`,onContinueWithoutValidation:()=>{R(!0),A(null),z(null),E(k.data),p(k.data),H(!0)},onSaveEditedRawData:e=>{try{const t=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),i=e;let o,n,a=i;if(t(i)&&"data"in i){a=i.data;const e=i.name,t=i.version;"string"==typeof e&&(o=e),"string"==typeof t&&(n=t)}const s=analyseAndProccess(a);if(!s)throw new Error("Node is not valid");const l={...k,...o?{name:o}:null,...n?{version:n}:null,data:a};r(toProjectMeta(l)),_(l),R(!1),A(null),z(null),E(s),p(s),H(!0),y.success("Saved")}catch(e){logger.error("ProjectPage","save JSON from validation failed",e),A(e instanceof Error?e.message:"Node is not valid"),z(e instanceof Error?e.stack??null:null),y.error("Save failed")}}}):jsxs(Fragment,{children:[G&&jsxs("div",{className:"mobile-panel-toggle",role:"group","aria-label":"Editor panels",children:[jsxs("button",{type:"button",className:"mobile-panel-toggle__button"+("builder"===W?" mobile-panel-toggle__button--active":""),"aria-label":"Toggle builder panel","aria-expanded":"builder"===W,"aria-controls":"split-left-panel",onClick:()=>Y("builder"),children:[jsx("span",{className:"mobile-panel-toggle__icon","aria-hidden":"true",children:jsx("svg",{viewBox:"0 0 16 12",role:"presentation",focusable:"false",children:jsx("path",{d:"M1 1h14M1 6h14M1 11h14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"})})}),jsx("span",{className:"mobile-panel-toggle__label",children:"Builder"})]}),jsxs("button",{type:"button",className:"mobile-panel-toggle__button"+("attributes"===W?" mobile-panel-toggle__button--active":""),"aria-label":"Toggle attributes panel","aria-expanded":"attributes"===W,"aria-controls":"split-attributes-panel",onClick:()=>Y("attributes"),children:[jsx("span",{className:"mobile-panel-toggle__icon","aria-hidden":"true",children:jsx("svg",{viewBox:"0 0 16 12",role:"presentation",focusable:"false",children:jsx("path",{d:"M1 1h14M1 6h14M1 11h14",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"})})}),jsx("span",{className:"mobile-panel-toggle__label",children:"Attributes"})]})]}),jsxs("div",{className:"editor-container",children:[jsxs("div",{id:"split-left-panel",className:"split-left"+(q?" is-open":""),"aria-hidden":G&&!q,children:[G&&jsx("button",{type:"button",className:"split-panel__close","aria-label":"Close builder panel",onClick:K,children:"Close"}),jsx("div",{children:jsx(BuilderPanel,{data:O,setData:E,onDeleteNode:Z})})]}),jsxs("div",{style:{"--rb-canvas-bg":`url(${getImage(TribeAssetName.Background)})`},className:"split-right",children:[ee&&jsx("div",{className:"rb-loading-overlay","aria-busy":"true",children:jsx(LoadingComponent,{})}),!ee&&jsx(RenderPage,{data:O,name:T,params:{mockProducts:C,mockBenefits:v&&"object"==typeof v?v:{},theme:f,defaultLanguage:b,appConfig:S,projectColors:M,fonts:s.fonts,appFont:c,previewMode:x,selectedKey:d&&"object"==typeof d&&"key"in d?d.key:void 0}})]}),jsx(BottomBar,{project:e,data:O,setData:E}),jsxs("div",{id:"split-attributes-panel",className:"split-third"+(J?" is-open":""),"aria-hidden":G&&!J,children:[G&&jsx("button",{type:"button",className:"split-panel__close","aria-label":"Close attributes panel",onClick:K,children:"Close"}),jsx(AttributesEditorPanel,{attributes:O,projectColors:M,onChange:e=>{let t;E(e),e&&"object"==typeof e&&!Array.isArray(e)&&"key"in e&&(t=e.key),logger.verbose("ProjectPage","attributes change",t?{nodeKey:t}:void 0)}})]}),G&&W&&jsx("button",{type:"button",className:"editor-container__overlay","aria-label":"Close active panel",onClick:K})]})]})]})}function useCalculateLocalizedPrice(e){return e?extractPrice(e):""}function useDiscountRate(e,t){if(!e||!t)return 0;const r=calculateDiscount(e,t);return r?parseInt(r,10):0}function useExtractTextStyle(e){const{theme:t,projectColors:r,fonts:i}=useBuilderParams();return useMemo(()=>{const o=extractTextStyleNative(e,{theme:t,projectColors:r,fonts:i}),n=e.attributes,a=stripStyleKeys(toAttributeRecord(n)),s=getStyleBag(n);return{style:o,other:{...a,adjustsFontSizeToFit:a.adjustsFontSizeToFit??s?.adjustsFontSizeToFit,showEllipsis:a.showEllipsis??s?.showEllipsis}}},[e,t,r,i])}function useExtractViewStyle(e){const{theme:t,projectColors:r}=useBuilderParams();return useMemo(()=>{const i=extractViewStyleNative(e,{theme:t,projectColors:r}),o=e.attributes,n=stripStyleKeys(toAttributeRecord(o)),a=getStyleBag(o);return{style:i,other:{...n,scrollable:n.scrollable??a?.scrollable}}},[e,t,r])}function useExtractImageStyle(e){const{theme:t,projectColors:r}=useBuilderParams();return useMemo(()=>{const{resizeMode:i,...o}=extractImageStyleNative(e,{theme:t,projectColors:r}),n=e.attributes,a=stripStyleKeys(toAttributeRecord(n)),s=getStyleBag(n);return{style:o,other:{...a,resizeMode:s?.resizeMode??i}}},[e,t,r])}const meta={supportedProjectVersion:metaJson.supportedProjectVersion,reactBuilderVersion:metaJson.reactBuilderVersion};function getMeta(){return{...meta}}function novaToJson(e){const t=e.data.data?.layout;return"onboard-layout"===t?onboardNovaToJson(e):null}function onboardNovaToJson(e){const t=e?.data?.data?.attributes||e?.data?.attributes||{},r=t?.general_components||[],i=t?.data||[],o=mapDotsFromGeneralComponents(r),n=mapFooterFromGeneralComponents(r),{carouselNode:a,providerLevelButtons:s}=buildCarouselFromPages(i),l={type:"OnboardProvider",key:e?.data?.data?.key,children:[a,...o?[o]:[],...s.length?s:[],...n?[n]:[]],attributes:{theme:e?.data?.theme}},c={type:"Main",isMain:!0,key:e?.data?.data?.key,children:[l],attributes:{useSafeAreaView:!0}};return delete l.key,c}function buildCarouselFromPages(e){const t=e.filter(e=>"simple-onboard-layout"===e?.layout),r=new Map;t.forEach((e,t)=>{const i=e?.attributes?.key;"string"==typeof i&&r.set(i,t)});const i=[];return{carouselNode:{type:"Onboard",children:t.map(e=>buildCarouselItem(e,r,i))},providerLevelButtons:i}}function buildCarouselItem(e,t,r){const i=e?.attributes?.components||[],o=[],n=e?.attributes?.key,a="string"==typeof n&&t.has(n)?t.get(n):void 0;for(const e of i)if("title-layout"===e?.layout){const t=e?.attributes?.title_localization_key||"",r=e?.attributes?.title_color||void 0,{fontSize:i,textAlign:n,marginTop:a,fontWeight:s}=extractTextStyleAttributesFromComponent(e);o.push({type:"OnboardTitle",attributes:r||i||n||a||s?{...r?{color:r}:{},..."number"==typeof i?{fontSize:i}:{},...n?{textAlign:n}:{},..."number"==typeof a?{marginTop:a}:{},...s?{fontWeight:s}:{}}:void 0,children:t})}else if("subtitle-layout"===e?.layout){const t=e?.attributes?.subtitle_localization_key||"",r=e?.attributes?.subtitle_color||void 0,{fontSize:i,textAlign:n,marginTop:a,fontWeight:s}=extractTextStyleAttributesFromComponent(e);o.push({type:"OnboardSubtitle",attributes:r||i||n||a||s?{...r?{color:r}:{},..."number"==typeof i?{fontSize:i}:{},...n?{textAlign:n}:{},..."number"==typeof a?{marginTop:a}:{},...s?{fontWeight:s}:{}}:void 0,children:t})}else if("image-layout"===e?.layout){const t=e?.attributes?.image||e?.attributes?.src||"",r=e?.attributes?.height??e?.attributes?.ios_height??e?.attributes?.android_height,i="string"==typeof r?Number.parseInt(r,10):"number"==typeof r?r:void 0,n=Boolean(e?.attributes?.is_bg_image),a=extractViewStyleAttributesFromComponent(e),s=e?.attributes?.lottie,l=e?.attributes?.video_url;t&&o.push({type:"OnboardImage",attributes:{src:t,...i?{height:i}:{},resizeMode:n?"cover":"contain",..."number"==typeof a.borderRadius?{borderRadius:a.borderRadius}:{},..."string"==typeof s?{lottie:s}:{},..."string"==typeof l?{video_url:l}:{}},children:void 0})}else if("Buttons"===e?.layout){const i=e?.attributes?.buttons_direction,o=e?.attributes?.buttons||[],n=[];for(const e of o){const r=e?.attributes||{},i=r?.button_text_localization_key||"",o=r?.button_text_color,a=r?.button_background_color,s=r?.animation,l=r?.animation_color,c=r?.flex?Number(r.flex):void 0,d=r?.actions||[],p=[];for(const e of d){const r=e?.attributes?.events||[];for(const e of r)if("Permission"===e?.layout){const t=e?.attributes?.permission;p.push({type:"Permission",permission:t})}else if("Navigate"===e?.layout){const r=e?.attributes?.next_page_key,i="string"==typeof r&&t.has(r),o=i?null:"string"==typeof r?r:null;p.push({type:"Navigate",navigate_to:o,...i?{targetIndex:t.get(r)}:{}})}}n.push({type:"OnboardButton",attributes:{labelKey:i,..."string"==typeof o?{button_text_color:o}:{},..."string"==typeof s?{animation:s}:{},..."string"==typeof l?{animation_color:l}:{},..."string"==typeof a?{button_background_color:a}:{},..."number"==typeof c?{flex:c}:{},...p.length?{events:p}:{}},children:void 0})}n.length>0&&r.push({type:"OnboardButtons",attributes:{...i?{buttons_direction:i}:{},..."number"==typeof a?{condition:"carousel-index",conditionVariable:a}:{}},children:n})}const s=e?.attributes?.key,l="string"==typeof s&&s||("string"==typeof e?.key?e.key:void 0);return{type:"OnboardItem",...l?{key:l}:{},children:o}}function extractTextStyleAttributesFromComponent(e){const t={},r=e?.attributes?.styles||[];if(!Array.isArray(r)||0===r.length)return t;const i=new Set(["left","center","right","justify"]),o=new Set(["normal","bold","100","200","300","400","500","600","700","800","900"]);for(const e of r){if("style-layout"!==e?.layout)continue;const r=e?.attributes?.styles||[];if(Array.isArray(r))for(const e of r){if("Styles"!==e?.layout)continue;const r=e?.attributes?.type;if("textStyle"!==r)continue;const n=e?.attributes?.style||{},a=n?.fontSize;if("number"==typeof a&&Number.isFinite(a))t.fontSize=a;else if("string"==typeof a){const e=Number.parseInt(a,10);Number.isFinite(e)&&(t.fontSize=e)}const s=n?.textAlign;"string"==typeof s&&i.has(s)&&(t.textAlign=s);const l=n?.marginTop;if("number"==typeof l&&Number.isFinite(l))t.marginTop=l;else if("string"==typeof l){const e=Number.parseInt(l,10);Number.isFinite(e)&&(t.marginTop=e)}const c=n?.fontWeight;let d;"number"==typeof c&&Number.isFinite(c)?d=String(c):"string"==typeof c&&(d=c),d&&o.has(d)&&(t.fontWeight=d)}}return t}function extractViewStyleAttributesFromComponent(e){const t={},r=e?.attributes?.styles||[];if(!Array.isArray(r)||0===r.length)return t;for(const e of r){if("style-layout"!==e?.layout)continue;const r=e?.attributes?.styles||[];if(Array.isArray(r))for(const e of r){if("Styles"!==e?.layout)continue;const r=e?.attributes?.style||{},i=r?.borderRadius;if("number"==typeof i&&Number.isFinite(i))t.borderRadius=i;else if("string"==typeof i){const e=Number.parseInt(i,10);Number.isFinite(e)&&(t.borderRadius=e)}}}return t}function mapDotsFromGeneralComponents(e){const t=e.find(e=>"dots-layout"===e?.layout);if(!t)return null;const r=t?.attributes?.dot||[],i=r?.[0],o=i?.layout,n=i?.attributes||{},a=e=>{if("number"==typeof e)return e;if("string"==typeof e&&e.trim().length>0){const t=Number(e);return Number.isFinite(t)?t:void 0}},s=a(n?.inactive_dot_opacity),l=a(n?.dot_thickness),c="string"==typeof n?.dot_style?n.dot_style:void 0,d="string"==typeof n?.container_style?n.container_style:void 0,p="string"==typeof n?.active_dot_color?n.active_dot_color:void 0,h="string"==typeof n?.inactive_dot_color?n.inactive_dot_color:void 0,u={};return o&&(u.dotType=o),void 0!==s&&(u.inactive_dot_opacity=s),void 0!==l&&(u.dot_thickness=l),c&&(u.dot_style=c),d&&(u.container_style=d),p&&(u.active_dot_color=p),h&&(u.inactive_dot_color=h),{type:"OnboardDot",attributes:Object.keys(u).length?u:void 0,children:void 0}}function mapFooterFromGeneralComponents(e){const t=e.find(e=>"footer-layout"===e?.layout);if(!t)return null;const r=t?.attributes?.texts||[],i=[];let o,n;for(const e of r)if("Text"===e?.layout){const t=e?.attributes?.text_localization_key||"",r=e?.attributes?.text_color||void 0;o||(o=t),n||"string"!=typeof r||(n=r);const a=e?.attributes?.linkedwords||[];for(const e of a)if("LinkedWords"===e?.layout){const t=e?.attributes?.linked_word_localization_key,r=e?.attributes?.linked_word_color,o=e?.attributes?.page;i.push({text_key:t,color:r,page:o})}}const a={gap:8};o&&(a.textLocalizationKey=o),n&&(a.color=n);const s=i[0],l=i[1];return s&&(s.text_key&&(a.linkedWordFirstLocalizationKey=s.text_key),s.color&&(a.linkedWordFirstColor=s.color),s.page&&(a.linkedWordFirstPage=s.page)),l&&(l.text_key&&(a.linkedWordSecondLocalizationKey=l.text_key),l.color&&(a.linkedWordSecondColor=l.color),l.page&&(a.linkedWordSecondPage=l.page)),{type:"OnboardFooter",attributes:a,children:void 0}}function isNodeData(e){return null!=e&&(!Array.isArray(e)&&("string"!=typeof e&&("object"==typeof e&&("type"in e&&"children"in e))))}function querySelector(e,t){if(null==e)return[];if(!t)return[];const r=t.startsWith("#"),i=r?t.slice(1):void 0,o=[],n=e=>{var a;if(null!=e)if(Array.isArray(e))for(const t of e)n(t);else"string"!=typeof e&&isNodeData(e)&&(a=e,(r?a.key===i:a.type===t)&&o.push(e),n(e.children))};return n(e),o}export{BuilderProvider,DebugJsonPage,LocalizationParamsProvider,PERIOD_LOCALIZATION_KEYS,ParamsProvider,ProjectPage,RenderNode$1 as RenderNode,TRIBE_ASSETS_BASE_URL,TribeAssetName,allcomponentNames,analyseAndProccess,analyseNode,buildPaywallLocalizationParams,calculateDiscount,calculatePricePerMonth,calculatePricePerYear,convertIOSPeriodUnit,defaultAppConfig,defaultLocalization,defaultProjectColors,defaultTheme,extractAndroidParams,extractIOSParams,extractPrice,getArrayItemType,getAttributeMeta,getAttributeSchema,getDefaultDevice,getDefaultProject,getDefaultsForType,getDevices,getImage,getMeta,getMockProducts,getMockProductsByPreset,getPatternByType,getPeriodLocalizationKey,getSamples,getTypeSchema,isEmptyObject,isNodeArray,isNodeNullOrUndefined,isNodeString,isPrimitiveType,mergeLocalization,mergeProjectColors,novaToJson,parseBillingPeriod,parseColor,parseTribeAssetName,patterns$1 as patterns,querySelector,resolveImageSrc,useBuilderParams,useCalculateLocalizedPrice,useChangeDelayByPaywall,useDiscountRate,useExtractImageStyle,useExtractTextStyle,useExtractViewStyle,useLocalizationParams,useLocalize,useNode,useParams,usePaywallLocalizationParams};
|
|
33
33
|
//# sourceMappingURL=index.web.esm.js.map
|