@molin.ai/shop-ai 0.4.34 → 0.4.35

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.
@@ -1,13 +1,13 @@
1
- var cf=Object.defineProperty;var uf=(t,e,r)=>e in t?cf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var de=(t,e,r)=>(uf(t,typeof e!="symbol"?e+"":e,r),r),fo=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var L=(t,e,r)=>(fo(t,e,"read from private field"),r?r.call(t):e.get(t)),W=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},fe=(t,e,r,i)=>(fo(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r);var Eh=(t,e,r,i)=>({set _(n){fe(t,e,n,r)},get _(){return L(t,e,i)}}),pe=(t,e,r)=>(fo(t,e,"access private method"),r);var _e;(function(t){t.assertEqual=n=>n;function e(n){}t.assertIs=e;function r(n){throw new Error}t.assertNever=r,t.arrayToEnum=n=>{let s={};for(let a of n)s[a]=a;return s},t.getValidEnumValues=n=>{let s=t.objectKeys(n).filter(o=>typeof n[n[o]]!="number"),a={};for(let o of s)a[o]=n[o];return t.objectValues(a)},t.objectValues=n=>t.objectKeys(n).map(function(s){return n[s]}),t.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let s=[];for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&s.push(a);return s},t.find=(n,s)=>{for(let a of n)if(s(a))return a},t.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&isFinite(n)&&Math.floor(n)===n;function i(n,s=" | "){return n.map(a=>typeof a=="string"?`'${a}'`:a).join(s)}t.joinValues=i,t.jsonStringifyReplacer=(n,s)=>typeof s=="bigint"?s.toString():s})(_e||(_e={}));var go;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(go||(go={}));var G=_e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),dr=t=>{switch(typeof t){case"undefined":return G.undefined;case"string":return G.string;case"number":return isNaN(t)?G.nan:G.number;case"boolean":return G.boolean;case"function":return G.function;case"bigint":return G.bigint;case"symbol":return G.symbol;case"object":return Array.isArray(t)?G.array:t===null?G.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?G.promise:typeof Map<"u"&&t instanceof Map?G.map:typeof Set<"u"&&t instanceof Set?G.set:typeof Date<"u"&&t instanceof Date?G.date:G.object;default:return G.unknown}},V=_e.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),pf=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),vt=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let r=e||function(s){return s.message},i={_errors:[]},n=s=>{for(let a of s.issues)if(a.code==="invalid_union")a.unionErrors.map(n);else if(a.code==="invalid_return_type")n(a.returnTypeError);else if(a.code==="invalid_arguments")n(a.argumentsError);else if(a.path.length===0)i._errors.push(r(a));else{let o=i,l=0;for(;l<a.path.length;){let h=a.path[l];l===a.path.length-1?(o[h]=o[h]||{_errors:[]},o[h]._errors.push(r(a))):o[h]=o[h]||{_errors:[]},o=o[h],l++}}};return n(this),i}toString(){return this.message}get message(){return JSON.stringify(this.issues,_e.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},i=[];for(let n of this.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(e(n))):i.push(e(n));return{formErrors:i,fieldErrors:r}}get formErrors(){return this.flatten()}};vt.create=t=>new vt(t);var tn=(t,e)=>{let r;switch(t.code){case V.invalid_type:t.received===G.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case V.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,_e.jsonStringifyReplacer)}`;break;case V.unrecognized_keys:r=`Unrecognized key(s) in object: ${_e.joinValues(t.keys,", ")}`;break;case V.invalid_union:r="Invalid input";break;case V.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${_e.joinValues(t.options)}`;break;case V.invalid_enum_value:r=`Invalid enum value. Expected ${_e.joinValues(t.options)}, received '${t.received}'`;break;case V.invalid_arguments:r="Invalid function arguments";break;case V.invalid_return_type:r="Invalid function return type";break;case V.invalid_date:r="Invalid date";break;case V.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:_e.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case V.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case V.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case V.custom:r="Invalid input";break;case V.invalid_intersection_types:r="Intersection results could not be merged";break;case V.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case V.not_finite:r="Number must be finite";break;default:r=e.defaultError,_e.assertNever(t)}return{message:r}},Ch=tn;function df(t){Ch=t}function ts(){return Ch}var rs=t=>{let{data:e,path:r,errorMaps:i,issueData:n}=t,s=[...r,...n.path||[]],a={...n,path:s},o="",l=i.filter(h=>!!h).slice().reverse();for(let h of l)o=h(a,{data:e,defaultError:o}).message;return{...n,path:s,message:n.message||o}},ff=[];function q(t,e){let r=rs({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ts(),tn].filter(i=>!!i)});t.common.issues.push(r)}var Qe=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let i=[];for(let n of r){if(n.status==="aborted")return he;n.status==="dirty"&&e.dirty(),i.push(n.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,r){let i=[];for(let n of r)i.push({key:await n.key,value:await n.value});return t.mergeObjectSync(e,i)}static mergeObjectSync(e,r){let i={};for(let n of r){let{key:s,value:a}=n;if(s.status==="aborted"||a.status==="aborted")return he;s.status==="dirty"&&e.dirty(),a.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof a.value<"u"||n.alwaysSet)&&(i[s.value]=a.value)}return{status:e.value,value:i}}},he=Object.freeze({status:"aborted"}),Th=t=>({status:"dirty",value:t}),it=t=>({status:"valid",value:t}),yo=t=>t.status==="aborted",vo=t=>t.status==="dirty",rn=t=>t.status==="valid",is=t=>typeof Promise<"u"&&t instanceof Promise,re;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(re||(re={}));var Ct=class{constructor(e,r,i,n){this._cachedPath=[],this.parent=e,this.data=r,this._path=i,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Ph=(t,e)=>{if(rn(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new vt(t.common.issues);return this._error=r,this._error}}};function ce(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:i,description:n}=t;if(e&&(r||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:n}:{errorMap:(a,o)=>a.code!=="invalid_type"?{message:o.defaultError}:typeof o.data>"u"?{message:i??o.defaultError}:{message:r??o.defaultError},description:n}}var ue=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return dr(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:dr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Qe,ctx:{common:e.parent.common,data:e.data,parsedType:dr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(is(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let i=this.safeParse(e,r);if(i.success)return i.data;throw i.error}safeParse(e,r){var i;let n={common:{issues:[],async:(i=r?.async)!==null&&i!==void 0?i:!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:dr(e)},s=this._parseSync({data:e,path:n.path,parent:n});return Ph(n,s)}async parseAsync(e,r){let i=await this.safeParseAsync(e,r);if(i.success)return i.data;throw i.error}async safeParseAsync(e,r){let i={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:dr(e)},n=this._parse({data:e,path:i.path,parent:i}),s=await(is(n)?n:Promise.resolve(n));return Ph(i,s)}refine(e,r){let i=n=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,s)=>{let a=e(n),o=()=>s.addIssue({code:V.custom,...i(n)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(o(),!1)):a?!0:(o(),!1)})}refinement(e,r){return this._refinement((i,n)=>e(i)?!0:(n.addIssue(typeof r=="function"?r(i,n):r),!1))}_refinement(e){return new bt({schema:this,typeName:ae.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Bt.create(this,this._def)}nullable(){return er.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Qt.create(this,this._def)}promise(){return gr.create(this,this._def)}or(e){return Or.create([this,e],this._def)}and(e){return Rr.create(this,e,this._def)}transform(e){return new bt({...ce(this._def),schema:this,typeName:ae.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new zr({...ce(this._def),innerType:this,defaultValue:r,typeName:ae.ZodDefault})}brand(){return new os({typeName:ae.ZodBranded,type:this,...ce(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new mi({...ce(this._def),innerType:this,catchValue:r,typeName:ae.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return nn.create(this,e)}readonly(){return yi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},mf=/^c[^\s-]{8,}$/i,gf=/^[a-z][a-z0-9]*$/,yf=/^[0-9A-HJKMNP-TV-Z]{26}$/,vf=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,bf=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_f="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",mo,wf=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,xf=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Sf=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function kf(t,e){return!!((e==="v4"||!e)&&wf.test(t)||(e==="v6"||!e)&&xf.test(t))}var fr=class t extends ue{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==G.string){let s=this._getOrReturnCtx(e);return q(s,{code:V.invalid_type,expected:G.string,received:s.parsedType}),he}let i=new Qe,n;for(let s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(n=this._getOrReturnCtx(e,n),q(n,{code:V.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="max")e.data.length>s.value&&(n=this._getOrReturnCtx(e,n),q(n,{code:V.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="length"){let a=e.data.length>s.value,o=e.data.length<s.value;(a||o)&&(n=this._getOrReturnCtx(e,n),a?q(n,{code:V.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):o&&q(n,{code:V.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if(s.kind==="email")bf.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:"email",code:V.invalid_string,message:s.message}),i.dirty());else if(s.kind==="emoji")mo||(mo=new RegExp(_f,"u")),mo.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:"emoji",code:V.invalid_string,message:s.message}),i.dirty());else if(s.kind==="uuid")vf.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:"uuid",code:V.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid")mf.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:"cuid",code:V.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid2")gf.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:"cuid2",code:V.invalid_string,message:s.message}),i.dirty());else if(s.kind==="ulid")yf.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:"ulid",code:V.invalid_string,message:s.message}),i.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),q(n,{validation:"url",code:V.invalid_string,message:s.message}),i.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:"regex",code:V.invalid_string,message:s.message}),i.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(n=this._getOrReturnCtx(e,n),q(n,{code:V.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),i.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(n=this._getOrReturnCtx(e,n),q(n,{code:V.invalid_string,validation:{startsWith:s.value},message:s.message}),i.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(n=this._getOrReturnCtx(e,n),q(n,{code:V.invalid_string,validation:{endsWith:s.value},message:s.message}),i.dirty()):s.kind==="datetime"?Sf(s).test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{code:V.invalid_string,validation:"datetime",message:s.message}),i.dirty()):s.kind==="ip"?kf(e.data,s.version)||(n=this._getOrReturnCtx(e,n),q(n,{validation:"ip",code:V.invalid_string,message:s.message}),i.dirty()):_e.assertNever(s);return{status:i.value,value:e.data}}_regex(e,r,i){return this.refinement(n=>e.test(n),{validation:r,code:V.invalid_string,...re.errToObj(i)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...re.errToObj(e)})}url(e){return this._addCheck({kind:"url",...re.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...re.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...re.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...re.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...re.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...re.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...re.errToObj(e)})}datetime(e){var r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:(r=e?.offset)!==null&&r!==void 0?r:!1,...re.errToObj(e?.message)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...re.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...re.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...re.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...re.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...re.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...re.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...re.errToObj(r)})}nonempty(e){return this.min(1,re.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};fr.create=t=>{var e;return new fr({checks:[],typeName:ae.ZodString,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...ce(t)})};function Ef(t,e){let r=(t.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,n=r>i?r:i,s=parseInt(t.toFixed(n).replace(".","")),a=parseInt(e.toFixed(n).replace(".",""));return s%a/Math.pow(10,n)}var Tr=class t extends ue{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==G.number){let s=this._getOrReturnCtx(e);return q(s,{code:V.invalid_type,expected:G.number,received:s.parsedType}),he}let i,n=new Qe;for(let s of this._def.checks)s.kind==="int"?_e.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),q(i,{code:V.invalid_type,expected:"integer",received:"float",message:s.message}),n.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(i=this._getOrReturnCtx(e,i),q(i,{code:V.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),n.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(i=this._getOrReturnCtx(e,i),q(i,{code:V.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),n.dirty()):s.kind==="multipleOf"?Ef(e.data,s.value)!==0&&(i=this._getOrReturnCtx(e,i),q(i,{code:V.not_multiple_of,multipleOf:s.value,message:s.message}),n.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),q(i,{code:V.not_finite,message:s.message}),n.dirty()):_e.assertNever(s);return{status:n.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,re.toString(r))}gt(e,r){return this.setLimit("min",e,!1,re.toString(r))}lte(e,r){return this.setLimit("max",e,!0,re.toString(r))}lt(e,r){return this.setLimit("max",e,!1,re.toString(r))}setLimit(e,r,i,n){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:i,message:re.toString(n)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:re.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:re.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:re.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:re.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:re.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:re.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:re.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:re.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:re.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&_e.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(r===null||i.value>r)&&(r=i.value):i.kind==="max"&&(e===null||i.value<e)&&(e=i.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Tr.create=t=>new Tr({checks:[],typeName:ae.ZodNumber,coerce:t?.coerce||!1,...ce(t)});var Ir=class t extends ue{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==G.bigint){let s=this._getOrReturnCtx(e);return q(s,{code:V.invalid_type,expected:G.bigint,received:s.parsedType}),he}let i,n=new Qe;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(i=this._getOrReturnCtx(e,i),q(i,{code:V.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),n.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(i=this._getOrReturnCtx(e,i),q(i,{code:V.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),n.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(i=this._getOrReturnCtx(e,i),q(i,{code:V.not_multiple_of,multipleOf:s.value,message:s.message}),n.dirty()):_e.assertNever(s);return{status:n.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,re.toString(r))}gt(e,r){return this.setLimit("min",e,!1,re.toString(r))}lte(e,r){return this.setLimit("max",e,!0,re.toString(r))}lt(e,r){return this.setLimit("max",e,!1,re.toString(r))}setLimit(e,r,i,n){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:i,message:re.toString(n)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:re.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:re.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:re.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:re.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:re.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Ir.create=t=>{var e;return new Ir({checks:[],typeName:ae.ZodBigInt,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...ce(t)})};var Mr=class extends ue{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==G.boolean){let i=this._getOrReturnCtx(e);return q(i,{code:V.invalid_type,expected:G.boolean,received:i.parsedType}),he}return it(e.data)}};Mr.create=t=>new Mr({typeName:ae.ZodBoolean,coerce:t?.coerce||!1,...ce(t)});var Dr=class t extends ue{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==G.date){let s=this._getOrReturnCtx(e);return q(s,{code:V.invalid_type,expected:G.date,received:s.parsedType}),he}if(isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return q(s,{code:V.invalid_date}),he}let i=new Qe,n;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(n=this._getOrReturnCtx(e,n),q(n,{code:V.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),i.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(n=this._getOrReturnCtx(e,n),q(n,{code:V.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):_e.assertNever(s);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:re.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:re.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};Dr.create=t=>new Dr({checks:[],coerce:t?.coerce||!1,typeName:ae.ZodDate,...ce(t)});var ui=class extends ue{_parse(e){if(this._getType(e)!==G.symbol){let i=this._getOrReturnCtx(e);return q(i,{code:V.invalid_type,expected:G.symbol,received:i.parsedType}),he}return it(e.data)}};ui.create=t=>new ui({typeName:ae.ZodSymbol,...ce(t)});var Fr=class extends ue{_parse(e){if(this._getType(e)!==G.undefined){let i=this._getOrReturnCtx(e);return q(i,{code:V.invalid_type,expected:G.undefined,received:i.parsedType}),he}return it(e.data)}};Fr.create=t=>new Fr({typeName:ae.ZodUndefined,...ce(t)});var $r=class extends ue{_parse(e){if(this._getType(e)!==G.null){let i=this._getOrReturnCtx(e);return q(i,{code:V.invalid_type,expected:G.null,received:i.parsedType}),he}return it(e.data)}};$r.create=t=>new $r({typeName:ae.ZodNull,...ce(t)});var mr=class extends ue{constructor(){super(...arguments),this._any=!0}_parse(e){return it(e.data)}};mr.create=t=>new mr({typeName:ae.ZodAny,...ce(t)});var Kt=class extends ue{constructor(){super(...arguments),this._unknown=!0}_parse(e){return it(e.data)}};Kt.create=t=>new Kt({typeName:ae.ZodUnknown,...ce(t)});var Vt=class extends ue{_parse(e){let r=this._getOrReturnCtx(e);return q(r,{code:V.invalid_type,expected:G.never,received:r.parsedType}),he}};Vt.create=t=>new Vt({typeName:ae.ZodNever,...ce(t)});var pi=class extends ue{_parse(e){if(this._getType(e)!==G.undefined){let i=this._getOrReturnCtx(e);return q(i,{code:V.invalid_type,expected:G.void,received:i.parsedType}),he}return it(e.data)}};pi.create=t=>new pi({typeName:ae.ZodVoid,...ce(t)});var Qt=class t extends ue{_parse(e){let{ctx:r,status:i}=this._processInputParams(e),n=this._def;if(r.parsedType!==G.array)return q(r,{code:V.invalid_type,expected:G.array,received:r.parsedType}),he;if(n.exactLength!==null){let a=r.data.length>n.exactLength.value,o=r.data.length<n.exactLength.value;(a||o)&&(q(r,{code:a?V.too_big:V.too_small,minimum:o?n.exactLength.value:void 0,maximum:a?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),i.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(q(r,{code:V.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),i.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(q(r,{code:V.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),i.dirty()),r.common.async)return Promise.all([...r.data].map((a,o)=>n.type._parseAsync(new Ct(r,a,r.path,o)))).then(a=>Qe.mergeArray(i,a));let s=[...r.data].map((a,o)=>n.type._parseSync(new Ct(r,a,r.path,o)));return Qe.mergeArray(i,s)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:re.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:re.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:re.toString(r)}})}nonempty(e){return this.min(1,e)}};Qt.create=(t,e)=>new Qt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ae.ZodArray,...ce(e)});function ci(t){if(t instanceof ct){let e={};for(let r in t.shape){let i=t.shape[r];e[r]=Bt.create(ci(i))}return new ct({...t._def,shape:()=>e})}else return t instanceof Qt?new Qt({...t._def,type:ci(t.element)}):t instanceof Bt?Bt.create(ci(t.unwrap())):t instanceof er?er.create(ci(t.unwrap())):t instanceof qt?qt.create(t.items.map(e=>ci(e))):t}var ct=class t extends ue{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=_e.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==G.object){let h=this._getOrReturnCtx(e);return q(h,{code:V.invalid_type,expected:G.object,received:h.parsedType}),he}let{status:i,ctx:n}=this._processInputParams(e),{shape:s,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof Vt&&this._def.unknownKeys==="strip"))for(let h in n.data)a.includes(h)||o.push(h);let l=[];for(let h of a){let c=s[h],u=n.data[h];l.push({key:{status:"valid",value:h},value:c._parse(new Ct(n,u,n.path,h)),alwaysSet:h in n.data})}if(this._def.catchall instanceof Vt){let h=this._def.unknownKeys;if(h==="passthrough")for(let c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:n.data[c]}});else if(h==="strict")o.length>0&&(q(n,{code:V.unrecognized_keys,keys:o}),i.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let h=this._def.catchall;for(let c of o){let u=n.data[c];l.push({key:{status:"valid",value:c},value:h._parse(new Ct(n,u,n.path,c)),alwaysSet:c in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let h=[];for(let c of l){let u=await c.key;h.push({key:u,value:await c.value,alwaysSet:c.alwaysSet})}return h}).then(h=>Qe.mergeObjectSync(i,h)):Qe.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(e){return re.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,i)=>{var n,s,a,o;let l=(a=(s=(n=this._def).errorMap)===null||s===void 0?void 0:s.call(n,r,i).message)!==null&&a!==void 0?a:i.defaultError;return r.code==="unrecognized_keys"?{message:(o=re.errToObj(e).message)!==null&&o!==void 0?o:l}:{message:l}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ae.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};return _e.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(r[i]=this.shape[i])}),new t({...this._def,shape:()=>r})}omit(e){let r={};return _e.objectKeys(this.shape).forEach(i=>{e[i]||(r[i]=this.shape[i])}),new t({...this._def,shape:()=>r})}deepPartial(){return ci(this)}partial(e){let r={};return _e.objectKeys(this.shape).forEach(i=>{let n=this.shape[i];e&&!e[i]?r[i]=n:r[i]=n.optional()}),new t({...this._def,shape:()=>r})}required(e){let r={};return _e.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])r[i]=this.shape[i];else{let s=this.shape[i];for(;s instanceof Bt;)s=s._def.innerType;r[i]=s}}),new t({...this._def,shape:()=>r})}keyof(){return Ih(_e.objectKeys(this.shape))}};ct.create=(t,e)=>new ct({shape:()=>t,unknownKeys:"strip",catchall:Vt.create(),typeName:ae.ZodObject,...ce(e)});ct.strictCreate=(t,e)=>new ct({shape:()=>t,unknownKeys:"strict",catchall:Vt.create(),typeName:ae.ZodObject,...ce(e)});ct.lazycreate=(t,e)=>new ct({shape:t,unknownKeys:"strip",catchall:Vt.create(),typeName:ae.ZodObject,...ce(e)});var Or=class extends ue{_parse(e){let{ctx:r}=this._processInputParams(e),i=this._def.options;function n(s){for(let o of s)if(o.result.status==="valid")return o.result;for(let o of s)if(o.result.status==="dirty")return r.common.issues.push(...o.ctx.common.issues),o.result;let a=s.map(o=>new vt(o.ctx.common.issues));return q(r,{code:V.invalid_union,unionErrors:a}),he}if(r.common.async)return Promise.all(i.map(async s=>{let a={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(n);{let s,a=[];for(let l of i){let h={...r,common:{...r.common,issues:[]},parent:null},c=l._parseSync({data:r.data,path:r.path,parent:h});if(c.status==="valid")return c;c.status==="dirty"&&!s&&(s={result:c,ctx:h}),h.common.issues.length&&a.push(h.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let o=a.map(l=>new vt(l));return q(r,{code:V.invalid_union,unionErrors:o}),he}}get options(){return this._def.options}};Or.create=(t,e)=>new Or({options:t,typeName:ae.ZodUnion,...ce(e)});var es=t=>t instanceof Lr?es(t.schema):t instanceof bt?es(t.innerType()):t instanceof Br?[t.value]:t instanceof Vr?t.options:t instanceof Nr?Object.keys(t.enum):t instanceof zr?es(t._def.innerType):t instanceof Fr?[void 0]:t instanceof $r?[null]:null,ns=class t extends ue{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==G.object)return q(r,{code:V.invalid_type,expected:G.object,received:r.parsedType}),he;let i=this.discriminator,n=r.data[i],s=this.optionsMap.get(n);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(q(r,{code:V.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),he)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,i){let n=new Map;for(let s of r){let a=es(s.shape[e]);if(!a)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let o of a){if(n.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);n.set(o,s)}}return new t({typeName:ae.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:n,...ce(i)})}};function bo(t,e){let r=dr(t),i=dr(e);if(t===e)return{valid:!0,data:t};if(r===G.object&&i===G.object){let n=_e.objectKeys(e),s=_e.objectKeys(t).filter(o=>n.indexOf(o)!==-1),a={...t,...e};for(let o of s){let l=bo(t[o],e[o]);if(!l.valid)return{valid:!1};a[o]=l.data}return{valid:!0,data:a}}else if(r===G.array&&i===G.array){if(t.length!==e.length)return{valid:!1};let n=[];for(let s=0;s<t.length;s++){let a=t[s],o=e[s],l=bo(a,o);if(!l.valid)return{valid:!1};n.push(l.data)}return{valid:!0,data:n}}else return r===G.date&&i===G.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var Rr=class extends ue{_parse(e){let{status:r,ctx:i}=this._processInputParams(e),n=(s,a)=>{if(yo(s)||yo(a))return he;let o=bo(s.value,a.value);return o.valid?((vo(s)||vo(a))&&r.dirty(),{status:r.value,value:o.data}):(q(i,{code:V.invalid_intersection_types}),he)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([s,a])=>n(s,a)):n(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};Rr.create=(t,e,r)=>new Rr({left:t,right:e,typeName:ae.ZodIntersection,...ce(r)});var qt=class t extends ue{_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==G.array)return q(i,{code:V.invalid_type,expected:G.array,received:i.parsedType}),he;if(i.data.length<this._def.items.length)return q(i,{code:V.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),he;!this._def.rest&&i.data.length>this._def.items.length&&(q(i,{code:V.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...i.data].map((a,o)=>{let l=this._def.items[o]||this._def.rest;return l?l._parse(new Ct(i,a,i.path,o)):null}).filter(a=>!!a);return i.common.async?Promise.all(s).then(a=>Qe.mergeArray(r,a)):Qe.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};qt.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new qt({items:t,typeName:ae.ZodTuple,rest:null,...ce(e)})};var ss=class t extends ue{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==G.object)return q(i,{code:V.invalid_type,expected:G.object,received:i.parsedType}),he;let n=[],s=this._def.keyType,a=this._def.valueType;for(let o in i.data)n.push({key:s._parse(new Ct(i,o,i.path,o)),value:a._parse(new Ct(i,i.data[o],i.path,o))});return i.common.async?Qe.mergeObjectAsync(r,n):Qe.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(e,r,i){return r instanceof ue?new t({keyType:e,valueType:r,typeName:ae.ZodRecord,...ce(i)}):new t({keyType:fr.create(),valueType:e,typeName:ae.ZodRecord,...ce(r)})}},di=class extends ue{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==G.map)return q(i,{code:V.invalid_type,expected:G.map,received:i.parsedType}),he;let n=this._def.keyType,s=this._def.valueType,a=[...i.data.entries()].map(([o,l],h)=>({key:n._parse(new Ct(i,o,i.path,[h,"key"])),value:s._parse(new Ct(i,l,i.path,[h,"value"]))}));if(i.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let l of a){let h=await l.key,c=await l.value;if(h.status==="aborted"||c.status==="aborted")return he;(h.status==="dirty"||c.status==="dirty")&&r.dirty(),o.set(h.value,c.value)}return{status:r.value,value:o}})}else{let o=new Map;for(let l of a){let h=l.key,c=l.value;if(h.status==="aborted"||c.status==="aborted")return he;(h.status==="dirty"||c.status==="dirty")&&r.dirty(),o.set(h.value,c.value)}return{status:r.value,value:o}}}};di.create=(t,e,r)=>new di({valueType:e,keyType:t,typeName:ae.ZodMap,...ce(r)});var fi=class t extends ue{_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==G.set)return q(i,{code:V.invalid_type,expected:G.set,received:i.parsedType}),he;let n=this._def;n.minSize!==null&&i.data.size<n.minSize.value&&(q(i,{code:V.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&i.data.size>n.maxSize.value&&(q(i,{code:V.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());let s=this._def.valueType;function a(l){let h=new Set;for(let c of l){if(c.status==="aborted")return he;c.status==="dirty"&&r.dirty(),h.add(c.value)}return{status:r.value,value:h}}let o=[...i.data.values()].map((l,h)=>s._parse(new Ct(i,l,i.path,h)));return i.common.async?Promise.all(o).then(l=>a(l)):a(o)}min(e,r){return new t({...this._def,minSize:{value:e,message:re.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:re.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};fi.create=(t,e)=>new fi({valueType:t,minSize:null,maxSize:null,typeName:ae.ZodSet,...ce(e)});var as=class t extends ue{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==G.function)return q(r,{code:V.invalid_type,expected:G.function,received:r.parsedType}),he;function i(o,l){return rs({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,ts(),tn].filter(h=>!!h),issueData:{code:V.invalid_arguments,argumentsError:l}})}function n(o,l){return rs({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,ts(),tn].filter(h=>!!h),issueData:{code:V.invalid_return_type,returnTypeError:l}})}let s={errorMap:r.common.contextualErrorMap},a=r.data;if(this._def.returns instanceof gr){let o=this;return it(async function(...l){let h=new vt([]),c=await o._def.args.parseAsync(l,s).catch(p=>{throw h.addIssue(i(l,p)),h}),u=await Reflect.apply(a,this,c);return await o._def.returns._def.type.parseAsync(u,s).catch(p=>{throw h.addIssue(n(u,p)),h})})}else{let o=this;return it(function(...l){let h=o._def.args.safeParse(l,s);if(!h.success)throw new vt([i(l,h.error)]);let c=Reflect.apply(a,this,h.data),u=o._def.returns.safeParse(c,s);if(!u.success)throw new vt([n(c,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:qt.create(e).rest(Kt.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,i){return new t({args:e||qt.create([]).rest(Kt.create()),returns:r||Kt.create(),typeName:ae.ZodFunction,...ce(i)})}},Lr=class extends ue{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Lr.create=(t,e)=>new Lr({getter:t,typeName:ae.ZodLazy,...ce(e)});var Br=class extends ue{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return q(r,{received:r.data,code:V.invalid_literal,expected:this._def.value}),he}return{status:"valid",value:e.data}}get value(){return this._def.value}};Br.create=(t,e)=>new Br({value:t,typeName:ae.ZodLiteral,...ce(e)});function Ih(t,e){return new Vr({values:t,typeName:ae.ZodEnum,...ce(e)})}var Vr=class t extends ue{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),i=this._def.values;return q(r,{expected:_e.joinValues(i),received:r.parsedType,code:V.invalid_type}),he}if(this._def.values.indexOf(e.data)===-1){let r=this._getOrReturnCtx(e),i=this._def.values;return q(r,{received:r.data,code:V.invalid_enum_value,options:i}),he}return it(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e){return t.create(e)}exclude(e){return t.create(this.options.filter(r=>!e.includes(r)))}};Vr.create=Ih;var Nr=class extends ue{_parse(e){let r=_e.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==G.string&&i.parsedType!==G.number){let n=_e.objectValues(r);return q(i,{expected:_e.joinValues(n),received:i.parsedType,code:V.invalid_type}),he}if(r.indexOf(e.data)===-1){let n=_e.objectValues(r);return q(i,{received:i.data,code:V.invalid_enum_value,options:n}),he}return it(e.data)}get enum(){return this._def.values}};Nr.create=(t,e)=>new Nr({values:t,typeName:ae.ZodNativeEnum,...ce(e)});var gr=class extends ue{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==G.promise&&r.common.async===!1)return q(r,{code:V.invalid_type,expected:G.promise,received:r.parsedType}),he;let i=r.parsedType===G.promise?r.data:Promise.resolve(r.data);return it(i.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}};gr.create=(t,e)=>new gr({type:t,typeName:ae.ZodPromise,...ce(e)});var bt=class extends ue{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ae.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:i}=this._processInputParams(e),n=this._def.effect||null,s={addIssue:a=>{q(i,a),a.fatal?r.abort():r.dirty()},get path(){return i.path}};if(s.addIssue=s.addIssue.bind(s),n.type==="preprocess"){let a=n.transform(i.data,s);return i.common.issues.length?{status:"dirty",value:i.data}:i.common.async?Promise.resolve(a).then(o=>this._def.schema._parseAsync({data:o,path:i.path,parent:i})):this._def.schema._parseSync({data:a,path:i.path,parent:i})}if(n.type==="refinement"){let a=o=>{let l=n.refinement(o,s);if(i.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(i.common.async===!1){let o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?he:(o.status==="dirty"&&r.dirty(),a(o.value),{status:r.value,value:o.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>o.status==="aborted"?he:(o.status==="dirty"&&r.dirty(),a(o.value).then(()=>({status:r.value,value:o.value}))))}if(n.type==="transform")if(i.common.async===!1){let a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!rn(a))return a;let o=n.transform(a.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:o}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=>rn(a)?Promise.resolve(n.transform(a.value,s)).then(o=>({status:r.value,value:o})):a);_e.assertNever(n)}};bt.create=(t,e,r)=>new bt({schema:t,typeName:ae.ZodEffects,effect:e,...ce(r)});bt.createWithPreprocess=(t,e,r)=>new bt({schema:e,effect:{type:"preprocess",transform:t},typeName:ae.ZodEffects,...ce(r)});var Bt=class extends ue{_parse(e){return this._getType(e)===G.undefined?it(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Bt.create=(t,e)=>new Bt({innerType:t,typeName:ae.ZodOptional,...ce(e)});var er=class extends ue{_parse(e){return this._getType(e)===G.null?it(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};er.create=(t,e)=>new er({innerType:t,typeName:ae.ZodNullable,...ce(e)});var zr=class extends ue{_parse(e){let{ctx:r}=this._processInputParams(e),i=r.data;return r.parsedType===G.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};zr.create=(t,e)=>new zr({innerType:t,typeName:ae.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ce(e)});var mi=class extends ue{_parse(e){let{ctx:r}=this._processInputParams(e),i={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return is(n)?n.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new vt(i.common.issues)},input:i.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new vt(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};mi.create=(t,e)=>new mi({innerType:t,typeName:ae.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ce(e)});var gi=class extends ue{_parse(e){if(this._getType(e)!==G.nan){let i=this._getOrReturnCtx(e);return q(i,{code:V.invalid_type,expected:G.nan,received:i.parsedType}),he}return{status:"valid",value:e.data}}};gi.create=t=>new gi({typeName:ae.ZodNaN,...ce(t)});var Pf=Symbol("zod_brand"),os=class extends ue{_parse(e){let{ctx:r}=this._processInputParams(e),i=r.data;return this._def.type._parse({data:i,path:r.path,parent:r})}unwrap(){return this._def.type}},nn=class t extends ue{_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?he:s.status==="dirty"?(r.dirty(),Th(s.value)):this._def.out._parseAsync({data:s.value,path:i.path,parent:i})})();{let n=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return n.status==="aborted"?he:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:i.path,parent:i})}}static create(e,r){return new t({in:e,out:r,typeName:ae.ZodPipeline})}},yi=class extends ue{_parse(e){let r=this._def.innerType._parse(e);return rn(r)&&(r.value=Object.freeze(r.value)),r}};yi.create=(t,e)=>new yi({innerType:t,typeName:ae.ZodReadonly,...ce(e)});var Mh=(t,e={},r)=>t?mr.create().superRefine((i,n)=>{var s,a;if(!t(i)){let o=typeof e=="function"?e(i):typeof e=="string"?{message:e}:e,l=(a=(s=o.fatal)!==null&&s!==void 0?s:r)!==null&&a!==void 0?a:!0,h=typeof o=="string"?{message:o}:o;n.addIssue({code:"custom",...h,fatal:l})}}):mr.create(),Af={object:ct.lazycreate},ae;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ae||(ae={}));var Cf=(t,e={message:`Input not instance of ${t.name}`})=>Mh(r=>r instanceof t,e),Dh=fr.create,Fh=Tr.create,Tf=gi.create,If=Ir.create,$h=Mr.create,Mf=Dr.create,Df=ui.create,Ff=Fr.create,$f=$r.create,Of=mr.create,Rf=Kt.create,Lf=Vt.create,Bf=pi.create,Vf=Qt.create,Nf=ct.create,zf=ct.strictCreate,jf=Or.create,Gf=ns.create,Hf=Rr.create,qf=qt.create,Uf=ss.create,Wf=di.create,Zf=fi.create,Yf=as.create,Jf=Lr.create,Xf=Br.create,Kf=Vr.create,Qf=Nr.create,em=gr.create,Ah=bt.create,tm=Bt.create,rm=er.create,im=bt.createWithPreprocess,nm=nn.create,sm=()=>Dh().optional(),am=()=>Fh().optional(),om=()=>$h().optional(),lm={string:t=>fr.create({...t,coerce:!0}),number:t=>Tr.create({...t,coerce:!0}),boolean:t=>Mr.create({...t,coerce:!0}),bigint:t=>Ir.create({...t,coerce:!0}),date:t=>Dr.create({...t,coerce:!0})},hm=he,oe=Object.freeze({__proto__:null,defaultErrorMap:tn,setErrorMap:df,getErrorMap:ts,makeIssue:rs,EMPTY_PATH:ff,addIssueToContext:q,ParseStatus:Qe,INVALID:he,DIRTY:Th,OK:it,isAborted:yo,isDirty:vo,isValid:rn,isAsync:is,get util(){return _e},get objectUtil(){return go},ZodParsedType:G,getParsedType:dr,ZodType:ue,ZodString:fr,ZodNumber:Tr,ZodBigInt:Ir,ZodBoolean:Mr,ZodDate:Dr,ZodSymbol:ui,ZodUndefined:Fr,ZodNull:$r,ZodAny:mr,ZodUnknown:Kt,ZodNever:Vt,ZodVoid:pi,ZodArray:Qt,ZodObject:ct,ZodUnion:Or,ZodDiscriminatedUnion:ns,ZodIntersection:Rr,ZodTuple:qt,ZodRecord:ss,ZodMap:di,ZodSet:fi,ZodFunction:as,ZodLazy:Lr,ZodLiteral:Br,ZodEnum:Vr,ZodNativeEnum:Nr,ZodPromise:gr,ZodEffects:bt,ZodTransformer:bt,ZodOptional:Bt,ZodNullable:er,ZodDefault:zr,ZodCatch:mi,ZodNaN:gi,BRAND:Pf,ZodBranded:os,ZodPipeline:nn,ZodReadonly:yi,custom:Mh,Schema:ue,ZodSchema:ue,late:Af,get ZodFirstPartyTypeKind(){return ae},coerce:lm,any:Of,array:Vf,bigint:If,boolean:$h,date:Mf,discriminatedUnion:Gf,effect:Ah,enum:Kf,function:Yf,instanceof:Cf,intersection:Hf,lazy:Jf,literal:Xf,map:Wf,nan:Tf,nativeEnum:Qf,never:Lf,null:$f,nullable:rm,number:Fh,object:Nf,oboolean:om,onumber:am,optional:tm,ostring:sm,pipeline:nm,preprocess:im,promise:em,record:Uf,set:Zf,strictObject:zf,string:Dh,symbol:Df,transformer:Ah,tuple:qf,undefined:Ff,union:jf,unknown:Rf,void:Bf,NEVER:hm,ZodIssueCode:V,quotelessJson:pf,ZodError:vt});var gv=oe.object({wsApiUrl:oe.string(),url:oe.string(),logoSvg:oe.string().optional(),logoUrl:oe.string().optional(),title:oe.string(),status:oe.string(),color:oe.string(),showStillLearningBanner:oe.boolean().optional(),input:oe.object({placeholder:oe.string()}),bubble:oe.object({imageUrl:oe.string().optional(),position:oe.object({bottom:oe.string().optional(),right:oe.string().optional(),left:oe.string().optional()})}),header:oe.object({background:oe.string()}),examples:oe.object({title:oe.string(),items:oe.array(oe.string())}),instructions:oe.object({items:oe.array(oe.string())}),popup:oe.object({mobileEnabled:oe.boolean().optional(),desktopEnabled:oe.boolean().optional(),delayMs:oe.number().optional(),text:oe.string().optional()}).optional(),tryItOut:oe.object({mobileEnabled:oe.boolean().optional(),desktopEnabled:oe.boolean().optional(),text:oe.string().optional()}).optional(),contactDetails:oe.object({email:oe.string().optional(),phone:oe.string().optional(),socialMedia:oe.object({facebook:oe.string().optional(),instagram:oe.string().optional(),twitter:oe.string().optional()}).optional()}).optional(),neverShowStillLearningBanner:oe.boolean().optional(),hidden:oe.boolean().optional()});function cm(t){return t.replace(/[^A-Za-z0-9_-]/gi,"")}window.__INIT_MOLIN_SHOP_AI=function(e){if(!e)throw new Error("options is required");let{widgetId:r,config:i}=e;if(!r)throw new Error("widgetId is required");if(!i)throw new Error("config is required");r=cm(r);let n=document.createElement("molin-shop-ai");n.setAttribute("widget",r),n.config=i,document.body.appendChild(n)};var ls=globalThis,cs=ls.ShadowRoot&&(ls.ShadyCSS===void 0||ls.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Rh=Symbol(),Oh=new WeakMap,hs=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==Rh)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(cs&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=Oh.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Oh.set(r,e))}return e}toString(){return this.cssText}},Lh=t=>new hs(typeof t=="string"?t:t+"",void 0,Rh);var _o=(t,e)=>{if(cs)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=ls.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},us=cs?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return Lh(r)})(t):t;var{is:um,defineProperty:pm,getOwnPropertyDescriptor:dm,getOwnPropertyNames:fm,getOwnPropertySymbols:mm,getPrototypeOf:gm}=Object,ps=globalThis,Bh=ps.trustedTypes,ym=Bh?Bh.emptyScript:"",vm=ps.reactiveElementPolyfillSupport,sn=(t,e)=>t,wo={toAttribute(t,e){switch(e){case Boolean:t=t?ym:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Nh=(t,e)=>!um(t,e),Vh={attribute:!0,type:String,converter:wo,reflect:!1,hasChanged:Nh};Symbol.metadata??=Symbol("metadata"),ps.litPropertyMetadata??=new WeakMap;var jr=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=Vh){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&pm(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:s}=dm(this.prototype,e)??{get(){return this[r]},set(a){this[r]=a}};return{get(){return n?.call(this)},set(a){let o=n?.call(this);s.call(this,a),this.requestUpdate(e,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Vh}static _$Ei(){if(this.hasOwnProperty(sn("elementProperties")))return;let e=gm(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(sn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(sn("properties"))){let r=this.properties,i=[...fm(r),...mm(r)];for(let n of i)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(us(n))}else e!==void 0&&r.push(us(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return _o(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$EO(e,r){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let s=(i.converter?.toAttribute!==void 0?i.converter:wo).toAttribute(r,i.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,r){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let s=i.getPropertyOptions(n),a=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:wo;this._$Em=n,this[n]=a.fromAttribute(r,s.type),this._$Em=null}}requestUpdate(e,r,i,n=!1,s){if(e!==void 0){if(i??=this.constructor.getPropertyOptions(e),!(i.hasChanged??Nh)(n?s:this[e],r))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,i){this._$AL.has(e)||this._$AL.set(e,r),i.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,s]of i)s.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],s)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$ET()}catch(i){throw e=!1,this._$ET(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};jr.elementStyles=[],jr.shadowRootOptions={mode:"open"},jr[sn("elementProperties")]=new Map,jr[sn("finalized")]=new Map,vm?.({ReactiveElement:jr}),(ps.reactiveElementVersions??=[]).push("2.0.2");var So=globalThis,ds=So.trustedTypes,zh=ds?ds.createPolicy("lit-html",{createHTML:t=>t}):void 0,ko="$lit$",tr=`lit$${(Math.random()+"").slice(9)}$`,Eo="?"+tr,bm=`<${Eo}>`,qr=document,on=()=>qr.createComment(""),ln=t=>t===null||typeof t!="object"&&typeof t!="function",Wh=Array.isArray,Zh=t=>Wh(t)||typeof t?.[Symbol.iterator]=="function",xo=`[
2
- \f\r]`,an=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,jh=/-->/g,Gh=/>/g,Gr=RegExp(`>|${xo}(?:([^\\s"'>=/]+)(${xo}*=${xo}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Hh=/'/g,qh=/"/g,Yh=/^(?:script|style|textarea|title)$/i,Jh=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),me=Jh(1),Av=Jh(2),_t=Symbol.for("lit-noChange"),De=Symbol.for("lit-nothing"),Uh=new WeakMap,Hr=qr.createTreeWalker(qr,129);function Xh(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return zh!==void 0?zh.createHTML(e):e}var Kh=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":"",a=an;for(let o=0;o<r;o++){let l=t[o],h,c,u=-1,f=0;for(;f<l.length&&(a.lastIndex=f,c=a.exec(l),c!==null);)f=a.lastIndex,a===an?c[1]==="!--"?a=jh:c[1]!==void 0?a=Gh:c[2]!==void 0?(Yh.test(c[2])&&(n=RegExp("</"+c[2],"g")),a=Gr):c[3]!==void 0&&(a=Gr):a===Gr?c[0]===">"?(a=n??an,u=-1):c[1]===void 0?u=-2:(u=a.lastIndex-c[2].length,h=c[1],a=c[3]===void 0?Gr:c[3]==='"'?qh:Hh):a===qh||a===Hh?a=Gr:a===jh||a===Gh?a=an:(a=Gr,n=void 0);let p=a===Gr&&t[o+1].startsWith("/>")?" ":"";s+=a===an?l+bm:u>=0?(i.push(h),l.slice(0,u)+ko+l.slice(u)+tr+p):l+tr+(u===-2?o:p)}return[Xh(t,s+(t[r]||"<?>")+(e===2?"</svg>":"")),i]},hn=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,a=0,o=e.length-1,l=this.parts,[h,c]=Kh(e,r);if(this.el=t.createElement(h,i),Hr.currentNode=this.el.content,r===2){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=Hr.nextNode())!==null&&l.length<o;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(ko)){let f=c[a++],p=n.getAttribute(u).split(tr),m=/([.?@])?(.*)/.exec(f);l.push({type:1,index:s,name:m[2],strings:p,ctor:m[1]==="."?ms:m[1]==="?"?gs:m[1]==="@"?ys:Wr}),n.removeAttribute(u)}else u.startsWith(tr)&&(l.push({type:6,index:s}),n.removeAttribute(u));if(Yh.test(n.tagName)){let u=n.textContent.split(tr),f=u.length-1;if(f>0){n.textContent=ds?ds.emptyScript:"";for(let p=0;p<f;p++)n.append(u[p],on()),Hr.nextNode(),l.push({type:2,index:++s});n.append(u[f],on())}}}else if(n.nodeType===8)if(n.data===Eo)l.push({type:2,index:s});else{let u=-1;for(;(u=n.data.indexOf(tr,u+1))!==-1;)l.push({type:7,index:s}),u+=tr.length-1}s++}}static createElement(e,r){let i=qr.createElement("template");return i.innerHTML=e,i}};function Ur(t,e,r=t,i){if(e===_t)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=ln(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Ur(t,n._$AS(t,e.values),n,i)),e}var fs=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??qr).importNode(r,!0);Hr.currentNode=n;let s=Hr.nextNode(),a=0,o=0,l=i[0];for(;l!==void 0;){if(a===l.index){let h;l.type===2?h=new vi(s,s.nextSibling,this,e):l.type===1?h=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(h=new vs(s,this,e)),this._$AV.push(h),l=i[++o]}a!==l?.index&&(s=Hr.nextNode(),a++)}return Hr.currentNode=qr,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},vi=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=De,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Ur(this,e,r),ln(e)?e===De||e==null||e===""?(this._$AH!==De&&this._$AR(),this._$AH=De):e!==this._$AH&&e!==_t&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Zh(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==De&&ln(this._$AH)?this._$AA.nextSibling.data=e:this.$(qr.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=hn.createElement(Xh(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new fs(n,this),a=s.u(this.options);s.p(r),this.$(a),this._$AH=s}}_$AC(e){let r=Uh.get(e.strings);return r===void 0&&Uh.set(e.strings,r=new hn(e)),r}T(e){Wh(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.k(on()),this.k(on()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Wr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=De,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=De}_$AI(e,r=this,i,n){let s=this.strings,a=!1;if(s===void 0)e=Ur(this,e,r,0),a=!ln(e)||e!==this._$AH&&e!==_t,a&&(this._$AH=e);else{let o=e,l,h;for(e=s[0],l=0;l<s.length-1;l++)h=Ur(this,o[i+l],r,l),h===_t&&(h=this._$AH[l]),a||=!ln(h)||h!==this._$AH[l],h===De?e=De:e!==De&&(e+=(h??"")+s[l+1]),this._$AH[l]=h}a&&!n&&this.O(e)}O(e){e===De?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ms=class extends Wr{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===De?void 0:e}},gs=class extends Wr{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==De)}},ys=class extends Wr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){if((e=Ur(this,e,r,0)??De)===_t)return;let i=this._$AH,n=e===De&&i!==De||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==De&&(i===De||n);n&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},vs=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Ur(this,e)}},Qh={j:ko,P:tr,A:Eo,C:1,M:Kh,L:fs,R:Zh,V:Ur,D:vi,I:Wr,H:gs,N:ys,U:ms,B:vs},_m=So.litHtmlPolyfillSupport;_m?.(hn,vi),(So.litHtmlVersions??=[]).push("3.1.0");var ec=(t,e,r)=>{let i=r?.renderBefore??e,n=i._$litPart$;if(n===void 0){let s=r?.renderBefore??null;i._$litPart$=n=new vi(e.insertBefore(on(),s),s,void 0,r??{})}return n._$AI(t),n};var bs=globalThis,_s=bs.ShadowRoot&&(bs.ShadyCSS===void 0||bs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Po=Symbol(),tc=new WeakMap,cn=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==Po)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(_s&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=tc.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&tc.set(r,e))}return e}toString(){return this.cssText}},rc=t=>new cn(typeof t=="string"?t:t+"",void 0,Po),Ao=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,s)=>i+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[s+1],t[0]);return new cn(r,t,Po)},Co=(t,e)=>{if(_s)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=bs.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},ws=_s?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return rc(r)})(t):t;var{is:wm,defineProperty:xm,getOwnPropertyDescriptor:Sm,getOwnPropertyNames:km,getOwnPropertySymbols:Em,getPrototypeOf:Pm}=Object,xs=globalThis,ic=xs.trustedTypes,Am=ic?ic.emptyScript:"",Cm=xs.reactiveElementPolyfillSupport,un=(t,e)=>t,To={toAttribute(t,e){switch(e){case Boolean:t=t?Am:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},sc=(t,e)=>!wm(t,e),nc={attribute:!0,type:String,converter:To,reflect:!1,hasChanged:sc};Symbol.metadata??=Symbol("metadata"),xs.litPropertyMetadata??=new WeakMap;var rr=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=nc){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&xm(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:s}=Sm(this.prototype,e)??{get(){return this[r]},set(a){this[r]=a}};return{get(){return n?.call(this)},set(a){let o=n?.call(this);s.call(this,a),this.requestUpdate(e,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??nc}static _$Ei(){if(this.hasOwnProperty(un("elementProperties")))return;let e=Pm(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(un("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(un("properties"))){let r=this.properties,i=[...km(r),...Em(r)];for(let n of i)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(ws(n))}else e!==void 0&&r.push(ws(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Co(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$EO(e,r){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let s=(i.converter?.toAttribute!==void 0?i.converter:To).toAttribute(r,i.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,r){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let s=i.getPropertyOptions(n),a=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:To;this._$Em=n,this[n]=a.fromAttribute(r,s.type),this._$Em=null}}requestUpdate(e,r,i,n=!1,s){if(e!==void 0){if(i??=this.constructor.getPropertyOptions(e),!(i.hasChanged??sc)(n?s:this[e],r))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,i){this._$AL.has(e)||this._$AL.set(e,r),i.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,s]of i)s.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],s)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$ET()}catch(i){throw e=!1,this._$ET(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};rr.elementStyles=[],rr.shadowRootOptions={mode:"open"},rr[un("elementProperties")]=new Map,rr[un("finalized")]=new Map,Cm?.({ReactiveElement:rr}),(xs.reactiveElementVersions??=[]).push("2.0.2");var ke=class extends rr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=ec(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return _t}};ke._$litElement$=!0,ke.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ke});var Tm=globalThis.litElementPolyfillSupport;Tm?.({LitElement:ke});(globalThis.litElementVersions??=[]).push("4.0.2");var bi={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},_i=t=>(...e)=>({_$litDirective$:t,values:e}),yr=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{D:Im}=Qh;var ac=()=>document.createComment(""),wi=(t,e,r)=>{let i=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let s=i.insertBefore(ac(),n),a=i.insertBefore(ac(),n);r=new Im(s,a,t,t.options)}else{let s=r._$AB.nextSibling,a=r._$AM,o=a!==t;if(o){let l;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(l=t._$AU)!==a._$AU&&r._$AP(l)}if(s!==n||o){let l=r._$AA;for(;l!==s;){let h=l.nextSibling;i.insertBefore(l,n),l=h}}}return r},vr=(t,e,r=t)=>(t._$AI(e,r),t),Mm={},oc=(t,e=Mm)=>t._$AH=e,lc=t=>t._$AH,Ss=t=>{t._$AP?.(!1,!0);let e=t._$AA,r=t._$AB.nextSibling;for(;e!==r;){let i=e.nextSibling;e.remove(),e=i}};var hc=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},ks=_i(class extends yr{constructor(t){if(super(t),t.type!==bi.CHILD)throw Error("repeat() can only be used in text expressions")}ht(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);let n=[],s=[],a=0;for(let o of t)n[a]=i?i(o,a):a,s[a]=r(o,a),a++;return{values:s,keys:n}}render(t,e,r){return this.ht(t,e,r).values}update(t,[e,r,i]){let n=lc(t),{values:s,keys:a}=this.ht(e,r,i);if(!Array.isArray(n))return this.dt=a,s;let o=this.dt??=[],l=[],h,c,u=0,f=n.length-1,p=0,m=s.length-1;for(;u<=f&&p<=m;)if(n[u]===null)u++;else if(n[f]===null)f--;else if(o[u]===a[p])l[p]=vr(n[u],s[p]),u++,p++;else if(o[f]===a[m])l[m]=vr(n[f],s[m]),f--,m--;else if(o[u]===a[m])l[m]=vr(n[u],s[m]),wi(t,l[m+1],n[u]),u++,m--;else if(o[f]===a[p])l[p]=vr(n[f],s[p]),wi(t,n[u],n[f]),f--,p++;else if(h===void 0&&(h=hc(a,p,m),c=hc(o,u,f)),h.has(o[u]))if(h.has(o[f])){let g=c.get(a[p]),d=g!==void 0?n[g]:null;if(d===null){let y=wi(t,n[u]);vr(y,s[p]),l[p]=y}else l[p]=vr(d,s[p]),wi(t,n[u],d),n[g]=null;p++}else Ss(n[f]),f--;else Ss(n[u]),u++;for(;p<=m;){let g=wi(t,l[m+1]);vr(g,s[p]),l[p++]=g}for(;u<=f;){let g=n[u++];g!==null&&Ss(g)}return this.dt=a,oc(t,l),_t}});function Vo(t){return[...t.v,(t.i?"!":"")+t.n].join(":")}function Dm(t,e=","){return t.map(Vo).join(e)}var gc=typeof CSS<"u"&&CSS.escape||(t=>t.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function Es(t){for(var e=9,r=t.length;r--;)e=Math.imul(e^t.charCodeAt(r),1597334677);return"#"+((e^e>>>9)>>>0).toString(36)}function Cs(t,e="@media "){return e+Te(t).map(r=>(typeof r=="string"&&(r={min:r}),r.raw||Object.keys(r).map(i=>`(${i}-width:${r[i]})`).join(" and "))).join(",")}function Te(t=[]){return Array.isArray(t)?t:t==null?[]:[t]}function cc(t){return t}function Ts(){}var Ne={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function yc(t){return t.match(/[-=:;]/g)?.length||0}function $o(t){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(t)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(yc(t),15)<<18}var Fm=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function No({n:t,i:e,v:r=[]},i,n,s){t&&(t=Vo({n:t,i:e,v:r})),s=[...Te(s)];for(let o of r){let l=i.theme("screens",o);for(let h of Te(l&&Cs(l)||i.v(o))){var a;s.push(h),n|=l?67108864|$o(h):o=="dark"?1073741824:h[0]=="@"?$o(h):(a=h,1<<~(/:([a-z-]+)/.test(a)&&~Fm.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:t,p:n,r:s,i:e}}var vc=new Map;function Oo(t){if(t.d){let e=[],r=Io(t.r.reduce((i,n)=>n[0]=="@"?(e.push(n),i):n?Io(i,s=>Io(n,a=>{let o=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(a);if(o){let l=s.indexOf(o[1]);return~l?s.slice(0,l)+o[0]+s.slice(l+o[1].length):Mo(s,a)}return Mo(a,s)})):i,"&"),i=>Mo(i,t.n?"."+gc(t.n):""));return r&&e.push(r.replace(/:merge\((.+?)\)/g,"$1")),e.reduceRight((i,n)=>n+"{"+i+"}",t.d)}}function Io(t,e){return t.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(r,i,n)=>e(i)+n)}function Mo(t,e){return t.replace(/&/g,e)}var uc=new Intl.Collator("en",{numeric:!0});function bc(t,e){for(var r=0,i=t.length;r<i;){let n=i+r>>1;0>=_c(t[n],e)?r=n+1:i=n}return i}function _c(t,e){let r=t.p&Ne.o;return r==(e.p&Ne.o)&&(r==Ne.b||r==Ne.o)?0:t.p-e.p||t.o-e.o||uc.compare(pc(t.n),pc(e.n))||uc.compare(dc(t.n),dc(e.n))}function pc(t){return(t||"").split(/:/).pop().split("/").pop()||"\0"}function dc(t){return(t||"").replace(/\W/g,e=>String.fromCharCode(127+e.charCodeAt(0)))+"\0"}function Do(t,e){return Math.round(parseInt(t,16)*e)}function Tt(t,e={}){if(typeof t=="function")return t(e);let{opacityValue:r="1",opacityVariable:i}=e,n=i?`var(${i})`:r;if(t.includes("<alpha-value>"))return t.replace("<alpha-value>",n);if(t[0]=="#"&&(t.length==4||t.length==7)){let s=(t.length-1)/3,a=[17,1,.062272][s-1];return`rgba(${[Do(t.substr(1,s),a),Do(t.substr(1+s,s),a),Do(t.substr(1+2*s,s),a),n]})`}return n=="1"?t:n=="0"?"#0000":t.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${n})`)}function wc(t,e,r,i,n=[]){return function s(a,{n:o,p:l,r:h=[],i:c},u){let f=[],p="",m=0,g=0;for(let v in a||{}){var d,y;let b=a[v];if(v[0]=="@"){if(!b)continue;if(v[1]=="a"){f.push(...jo(o,l,As(""+b),u,l,h,c,!0));continue}if(v[1]=="l"){for(let _ of Te(b))f.push(...s(_,{n:o,p:(d=Ne[v[7]],l&~Ne.o|d),r:v[7]=="d"?[]:h,i:c},u));continue}if(v[1]=="i"){f.push(...Te(b).map(_=>({p:-1,o:0,r:[],d:v+" "+_})));continue}if(v[1]=="k"){f.push({p:Ne.d,o:0,r:[v],d:s(b,{p:Ne.d},u).map(Oo).join("")});continue}if(v[1]=="f"){f.push(...Te(b).map(_=>({p:Ne.d,o:0,r:[v],d:s(_,{p:Ne.d},u).map(Oo).join("")})));continue}}if(typeof b!="object"||Array.isArray(b))v=="label"&&b?o=b+Es(JSON.stringify([l,c,a])):(b||b===0)&&(v=v.replace(/[A-Z]/g,_=>"-"+_.toLowerCase()),g+=1,m=Math.max(m,(y=v)[0]=="-"?0:yc(y)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(y)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+Te(b).map(_=>u.s(v,zo(""+_,u.theme)+(c?" !important":""))).join(";"));else if(v[0]=="@"||v.includes("&")){let _=l;v[0]=="@"&&(v=v.replace(/\bscreen\(([^)]+)\)/g,(S,T)=>{let x=u.theme("screens",T);return x?(_|=67108864,Cs(x,"")):S}),_|=$o(v)),f.push(...s(b,{n:o,p:_,r:[...h,v],i:c},u))}else f.push(...s(b,{p:l,r:[...h,v]},u))}return f.unshift({n:o,p:l,o:Math.max(0,15-g)+1.5*Math.min(m||15,15),r:h,d:p}),f.sort(_c)}(t,No(e,r,i,n),r)}function zo(t,e){return t.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(r,i,n,s,a="")=>{let o=e(n,a);return typeof o=="function"&&/color|fill|stroke/i.test(n)?Tt(o):""+Te(o).filter(l=>Object(l)!==l)})}function xc(t,e){let r,i=[];for(let n of t)n.d&&n.n?r?.p==n.p&&""+r.r==""+n.r?(r.c=[r.c,n.c].filter(Boolean).join(" "),r.d=r.d+";"+n.d):i.push(r={...n,n:n.n&&e}):i.push({...n,n:n.n&&e});return i}function Ps(t,e,r=Ne.u,i,n){let s=[];for(let a of t)for(let o of function(l,h,c,u,f){l={...l,i:l.i||f};let p=function(m,g){let d=vc.get(m.n);return d?d(m,g):g.r(m.n,m.v[0]=="dark")}(l,h);return p?typeof p=="string"?({r:u,p:c}=No(l,h,c,u),xc(Ps(As(p),h,c,u,l.i),l.n)):Array.isArray(p)?p.map(m=>{var g,d;return{o:0,...m,r:[...Te(u),...Te(m.r)],p:(g=c,d=m.p??c,g&~Ne.o|d)}}):wc(p,l,h,c,u):[{c:Vo(l),p:0,o:0,r:[]}]}(a,e,r,i,n))s.splice(bc(s,o),0,o);return s}function jo(t,e,r,i,n,s,a,o){return xc((o?r.flatMap(l=>Ps([l],i,n,s,a)):Ps(r,i,n,s,a)).map(l=>l.p&Ne.o&&(l.n||e==Ne.b)?{...l,p:l.p&~Ne.o|e,o:0}:l),t)}function $m(t,e,r,i){var n;return n=(s,a)=>{let{n:o,p:l,r:h,i:c}=No(s,a,e);return r&&jo(o,e,r,a,l,h,c,i)},vc.set(t,n),t}function Fo(t,e,r){if(t[t.length-1]!="("){let i=[],n=!1,s=!1,a="";for(let o of t)if(!(o=="("||/[~@]$/.test(o))){if(o[0]=="!"&&(o=o.slice(1),n=!n),o.endsWith(":")){i[o=="dark:"?"unshift":"push"](o.slice(0,-1));continue}o[0]=="-"&&(o=o.slice(1),s=!s),o.endsWith("-")&&(o=o.slice(0,-1)),o&&o!="&"&&(a+=(a&&"-")+o)}a&&(s&&(a="-"+a),e[0].push({n:a,v:i.filter(Om),i:n}))}}function Om(t,e,r){return r.indexOf(t)==e}var fc=new Map;function As(t){let e=fc.get(t);if(!e){let r=[],i=[[]],n=0,s=0,a=null,o=0,l=(h,c=0)=>{n!=o&&(r.push(t.slice(n,o+c)),h&&Fo(r,i)),n=o+1};for(;o<t.length;o++){let h=t[o];if(s)t[o-1]!="\\"&&(s+=+(h=="[")||-(h=="]"));else if(h=="[")s+=1;else if(a)t[o-1]!="\\"&&a.test(t.slice(o))&&(a=null,n=o+RegExp.lastMatch.length);else if(h=="/"&&t[o-1]!="\\"&&(t[o+1]=="*"||t[o+1]=="/"))a=t[o+1]=="*"?/^\*\//:/^[\r\n]/;else if(h=="(")l(),r.push(h);else if(h==":")t[o+1]!=":"&&l(!1,1);else if(/[\s,)]/.test(h)){l(!0);let c=r.lastIndexOf("(");if(h==")"){let u=r[c-1];if(/[~@]$/.test(u)){let f=i.shift();r.length=c,Fo([...r,"#"],i);let{v:p}=i[0].pop();for(let m of f)m.v.splice(+(m.v[0]=="dark")-+(p[0]=="dark"),p.length);Fo([...r,$m(u.length>1?u.slice(0,-1)+Es(JSON.stringify([u,f])):u+"("+Dm(f)+")",Ne.a,f,/@$/.test(u))],i)}c=r.lastIndexOf("(",c-1)}r.length=c+1}else/[~@]/.test(h)&&t[o+1]=="("&&i.unshift([])}l(!0),fc.set(t,e=i[0])}return e}function N(t,e,r){return[t,Ro(e,r)]}function Ro(t,e){return typeof t=="function"?t:typeof t=="string"&&/^[\w-]+$/.test(t)?(r,i)=>({[t]:e?e(r,i):Lo(r,1)}):r=>t||{[r[1]]:Lo(r,2)}}function Lo(t,e,r=t.slice(e).find(Boolean)||t.$$||t.input){return t.input[0]=="-"?`calc(${r} * -1)`:r}function z(t,e,r,i){return[t,Go(e,r,i)]}function Go(t,e,r){let i=typeof e=="string"?(n,s)=>({[e]:r?r(n,s):n._}):e||(({1:n,_:s},a,o)=>({[n||o]:s}));return(n,s)=>{let a=Sc(t||n[1]),o=s.theme(a,n.$$)??Ut(n.$$,a,s);if(o!=null)return n._=Lo(n,0,o),i(n,s,a)}}function ze(t,e={},r){return[t,Rm(e,r)]}function Rm(t={},e){return(r,i)=>{let{section:n=Sc(r[0]).replace("-","")+"Color"}=t,[s,a]=Lm(r.$$);if(!s)return;let o=i.theme(n,s)||Ut(s,n,i);if(!o||typeof o=="object")return;let{opacityVariable:l=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:h=n.replace("Color","Opacity"),property:c=n,selector:u}=t,f=i.theme(h,a||"DEFAULT")||a&&Ut(a,h,i),p=e||(({_:g})=>{let d=pn(c,g);return u?{[u]:d}:d});r._={value:Tt(o,{opacityVariable:l||void 0,opacityValue:f||void 0}),color:g=>Tt(o,g),opacityVariable:l||void 0,opacityValue:f||void 0};let m=p(r,i);if(!r.dark){let g=i.d(n,s,o);g&&g!==o&&(r._={value:Tt(g,{opacityVariable:l||void 0,opacityValue:f||"1"}),color:d=>Tt(g,d),opacityVariable:l||void 0,opacityValue:f||void 0},m={"&":m,[i.v("dark")]:p(r,i)})}return m}}function Lm(t){return(t.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function pn(t,e){let r={};return typeof e=="string"?r[t]=e:(e.opacityVariable&&e.value.includes(e.opacityVariable)&&(r[e.opacityVariable]=e.opacityValue||"1"),r[t]=e.value),r}function Ut(t,e,r){if(t[0]=="["&&t.slice(-1)=="]"){if(t=xi(zo(t.slice(1,-1),r.theme)),!e)return t;if(!(/color|fill|stroke/i.test(e)&&!(/^color:/.test(t)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(t))||/image/i.test(e)&&!(/^image:/.test(t)||/^[a-z-]+\(/.test(t))||/weight/i.test(e)&&!(/^(number|any):/.test(t)||/^\d+$/.test(t))||/position/i.test(e)&&/^(length|size):/.test(t)))return t.replace(/^[a-z-]+:/,"")}}function Sc(t){return t.replace(/-./g,e=>e[1].toUpperCase())}function xi(t){return t.includes("url(")?t.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,r="",i,n="")=>xi(r)+i+xi(n)):t.replace(/(^|[^\\])_+/g,(e,r)=>r+" ".repeat(e.length-r.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,e=>e.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}function Ho({presets:t=[],...e}){let r={darkMode:void 0,darkColor:void 0,preflight:e.preflight!==!1&&[],theme:{},variants:Te(e.variants),rules:Te(e.rules),ignorelist:Te(e.ignorelist),hash:void 0,stringify:(i,n)=>i+":"+n,finalize:[]};for(let i of Te([...t,{darkMode:e.darkMode,darkColor:e.darkColor,preflight:e.preflight!==!1&&Te(e.preflight),theme:e.theme,hash:e.hash,stringify:e.stringify,finalize:e.finalize}])){let{preflight:n,darkMode:s=r.darkMode,darkColor:a=r.darkColor,theme:o,variants:l,rules:h,ignorelist:c,hash:u=r.hash,stringify:f=r.stringify,finalize:p}=typeof i=="function"?i(r):i;r={preflight:r.preflight!==!1&&n!==!1&&[...r.preflight,...Te(n)],darkMode:s,darkColor:a,theme:{...r.theme,...o,extend:{...r.theme.extend,...o?.extend}},variants:[...r.variants,...Te(l)],rules:[...r.rules,...Te(h)],ignorelist:[...r.ignorelist,...Te(c)],hash:u,stringify:f,finalize:[...r.finalize,...Te(p)]}}return r}function mc(t,e,r,i,n,s){for(let a of e){let o=r.get(a);o||r.set(a,o=i(a));let l=o(t,n,s);if(l)return l}}function Bm(t){var e;return Bo(t[0],typeof(e=t[1])=="function"?e:()=>e)}function Vm(t){var e,r;return Array.isArray(t)?Bo(t[0],Ro(t[1],t[2])):Bo(t,Ro(e,r))}function Bo(t,e){return kc(t,(r,i,n,s)=>{let a=i.exec(r);if(a)return a.$$=r.slice(a[0].length),a.dark=s,e(a,n)})}function kc(t,e){let r=Te(t).map(Nm);return(i,n,s)=>{for(let a of r){let o=e(i,a,n,s);if(o)return o}}}function Nm(t){return typeof t=="string"?RegExp("^"+t+(t.includes("$")||t.slice(-1)=="-"?"":"$")):t}function Ec(t,e){let r=Ho(t),i=function({theme:l,darkMode:h,darkColor:c=Ts,variants:u,rules:f,hash:p,stringify:m,ignorelist:g,finalize:d}){let y=new Map,v=new Map,b=new Map,_=new Map,S=kc(g,(w,M)=>M.test(w));u.push(["dark",Array.isArray(h)||h=="class"?`${Te(h)[1]||".dark"} &`:typeof h=="string"&&h!="media"?h:"@media (prefers-color-scheme:dark)"]);let T=typeof p=="function"?w=>p(w,Es):p?Es:cc;T!==cc&&d.push(w=>({...w,n:w.n&&T(w.n),d:w.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(M,k)=>"--"+T(k).replace("#",""))}));let x={theme:function({extend:w={},...M}){let k={},I={get colors(){return P("colors")},theme:P,negative(){return{}},breakpoints(E){let F={};for(let $ in E)typeof E[$]=="string"&&(F["screen-"+$]=E[$]);return F}};return P;function P(E,F,$,D){if(E){if({1:E,2:D}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(E)||[,E],/[.[]/.test(E)){let U=[];E.replace(/\[([^\]]+)\]|([^.[]+)/g,(Z,X,H=X)=>U.push(H)),E=U.shift(),$=F,F=U.join("-")}let R=k[E]||Object.assign(Object.assign(k[E]={},A(M,E)),A(w,E));if(F==null)return R;F||(F="DEFAULT");let B=R[F]??F.split("-").reduce((U,Z)=>U?.[Z],R)??$;return D?Tt(B,{opacityValue:zo(D,P)}):B}let C={};for(let R of[...Object.keys(M),...Object.keys(w)])C[R]=P(R);return C}function A(E,F){let $=E[F];return typeof $=="function"&&($=$(I)),$&&/color|fill|stroke/i.test(F)?function D(C,R=[]){let B={};for(let U in C){let Z=C[U],X=[...R,U];B[X.join("-")]=Z,U=="DEFAULT"&&(X=R,B[R.join("-")]=Z),typeof Z=="object"&&Object.assign(B,D(Z,X))}return B}($):$}}(l),e:gc,h:T,s(w,M){return m(w,M,x)},d(w,M,k){return c(w,M,x,k)},v(w){return y.has(w)||y.set(w,mc(w,u,v,Bm,x)||"&:"+w),y.get(w)},r(w,M){let k=JSON.stringify([w,M]);return b.has(k)||b.set(k,!S(w,x)&&mc(w,f,_,Vm,x,M)),b.get(k)},f(w){return d.reduce((M,k)=>k(M,x),w)}};return x}(r),n=new Map,s=[],a=new Set;e.resume(l=>n.set(l,l),(l,h)=>{e.insert(l,s.length,h),s.push(h),a.add(l)});function o(l){let h=i.f(l),c=Oo(h);if(c&&!a.has(c)){a.add(c);let u=bc(s,l);e.insert(c,u,l),s.splice(u,0,l)}return h.n}return Object.defineProperties(function(h){if(!n.size)for(let u of Te(r.preflight))typeof u=="function"&&(u=u(i)),u&&(typeof u=="string"?jo("",Ne.b,As(u),i,Ne.b,[],!1,!0):wc(u,{},i,Ne.b)).forEach(o);h=""+h;let c=n.get(h);if(!c){let u=new Set;for(let f of Ps(As(h),i))u.add(f.c).add(o(f));c=[...u].filter(Boolean).join(" "),n.set(h,c).set(c,c)}return c},Object.getOwnPropertyDescriptors({get target(){return e.target},theme:i.theme,config:r,snapshot(){let l=e.snapshot(),h=new Set(a),c=new Map(n),u=[...s];return()=>{l(),a=h,n=c,s=u}},clear(){e.clear(),a=new Set,n=new Map,s=[]},destroy(){this.clear(),e.destroy()}}))}function zm(t,e){return t!=e&&""+t.split(" ").sort()!=""+e.split(" ").sort()}function Pc(t){let e=new MutationObserver(r);return{observe(n){e.observe(n,{attributeFilter:["class"],subtree:!0,childList:!0}),i(n),r([{target:n,type:""}])},disconnect(){e.disconnect()}};function r(n){for(let{type:s,target:a}of n)if(s[0]=="a")i(a);else for(let o of a.querySelectorAll("[class]"))i(o);e.takeRecords()}function i(n){let s,a=n.getAttribute?.("class");a&&zm(a,s=t(a))&&n.setAttribute("class",s)}}function jm(t){let e=document.querySelector(t||'style[data-twind=""]');return(!e||e.tagName!="STYLE")&&(e=document.createElement("style"),document.head.prepend(e)),e.dataset.twind="claimed",e}function Is(t){let e=t?.cssRules?t:(t&&typeof t!="string"?t:jm(t)).sheet;return{target:e,snapshot(){let r=Array.from(e.cssRules,i=>i.cssText);return()=>{this.clear(),r.forEach(this.insert)}},clear(){for(let r=e.cssRules.length;r--;)e.deleteRule(r)},destroy(){e.ownerNode?.remove()},insert(r,i){try{e.insertRule(r,i)}catch{e.insertRule(":root{}",i)}},resume:Ts}}var Gm=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function Ac(t){return Gm.get(t)}function Cc(t){var e=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(t);return e?e[1]?1:e[2]?2:e[3]?3:5:0}function Tc(t,e){var r=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(t);return r?r[1]?/^sti/i.test(e)?1:0:r[2]?/^pat/i.test(e)?1:0:r[3]?/^image-/i.test(e)?1:0:r[4]?e[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(e)?4:0:0}var Hm=[["-webkit-",1],["-moz-",2],["-ms-",4]];function Ic(){return({stringify:t})=>({stringify(e,r,i){let n="",s=Ac(e);s&&(n+=t(s,r,i)+";");let a=Cc(e),o=Tc(e,r);for(let l of Hm)a&l[1]&&(n+=t(l[0]+e,r,i)+";"),o&l[1]&&(n+=t(e,l[0]+r,i)+";");return n+t(e,r,i)}})}function Dc(){return{rules:[["line-clamp-none",{"-webkit-line-clamp":"unset"}],["line-clamp-",Go("lineClamp",({_:t})=>Mc(t))],["line-clamp-(\\d+)",({1:t})=>Mc(t)]]}}function Mc(t){return{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":`${t}`}}var fn={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...wt(4,"rem",4,.5,.5),...wt(12,"rem",4,5),14:"3.5rem",...wt(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:be("blur"),backdropBrightness:be("brightness"),backdropContrast:be("contrast"),backdropGrayscale:be("grayscale"),backdropHueRotate:be("hueRotate"),backdropInvert:be("invert"),backdropOpacity:be("opacity"),backdropSaturate:be("saturate"),backdropSepia:be("sepia"),backgroundColor:be("colors"),backgroundImage:{none:"none"},backgroundOpacity:be("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...wt(200,"",100,0,50),...wt(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:t})=>({DEFAULT:t("colors.gray.200","currentColor"),...t("colors")}),borderOpacity:be("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:be("spacing"),borderWidth:{DEFAULT:"1px",...It(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:be("colors"),caretColor:be("colors"),accentColor:({theme:t})=>({auto:"auto",...t("colors")}),contrast:{...wt(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:be("borderColor"),divideOpacity:be("borderOpacity"),divideWidth:be("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:t})=>({...t("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:t})=>({...t("spacing"),...dn(2,6),...dn(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:be("spacing"),gradientColorStops:be("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:t})=>({...t("spacing"),...dn(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:t})=>({...t("spacing"),...dn(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...wt(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:t})=>({auto:"auto",...t("spacing")}),maxHeight:({theme:t})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...t("spacing")}),maxWidth:({theme:t,breakpoints:e})=>({...e(t("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...wt(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:be("spacing"),placeholderColor:be("colors"),placeholderOpacity:be("opacity"),outlineColor:be("colors"),outlineOffset:It(8,"px"),outlineWidth:It(8,"px"),ringColor:({theme:t})=>({...t("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:be("colors"),ringOffsetWidth:It(8,"px"),ringOpacity:({theme:t})=>({...t("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...It(8,"px")},rotate:{...It(2,"deg"),...It(12,"deg",3),...It(180,"deg",45)},saturate:wt(200,"",100,0,50),scale:{...wt(150,"",100,0,50),...wt(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:be("spacing"),scrollPadding:be("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...It(2,"deg"),...It(12,"deg",3)},space:be("spacing"),stroke:({theme:t})=>({...t("colors"),none:"none"}),strokeWidth:wt(2),textColor:be("colors"),textDecorationColor:be("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...It(8,"px")},textUnderlineOffset:{auto:"auto",...It(8,"px")},textIndent:be("spacing"),textOpacity:be("opacity"),transitionDuration:({theme:t})=>({...t("durations"),DEFAULT:"150ms"}),transitionDelay:be("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:t})=>({...t("spacing"),...dn(2,4),full:"100%"}),width:({theme:t})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...t("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...wt(50,"",1,0,10),auto:"auto"}};function dn(t,e){let r={};do for(var i=1;i<t;i++)r[`${i}/${t}`]=Number((i/t*100).toFixed(6))+"%";while(++t<=e);return r}function It(t,e,r=0){let i={};for(;r<=t;r=2*r||1)i[r]=r+e;return i}function wt(t,e="",r=1,i=0,n=1,s={}){for(;i<=t;i+=n)s[i]=i/r+e;return s}function be(t){return({theme:e})=>e(t)}var Fc={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${fn.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${fn.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}};var Vc=[N("\\[([-\\w]+):(.+)]",({1:t,2:e},r)=>({"@layer overrides":{"&":{[t]:Ut(`[${e}]`,"",r)}}})),N("(group|peer)([~/][^-[]+)?",({input:t},{h:e})=>[{c:e(t)}]),z("aspect-","aspectRatio"),N("container",(t,{theme:e})=>{let{screens:r=e("screens"),center:i,padding:n}=e("container"),s={width:"100%",marginRight:i&&"auto",marginLeft:i&&"auto",...a("xs")};for(let o in r){let l=r[o];typeof l=="string"&&(s[Cs(l)]={"&":{maxWidth:l,...a(o)}})}return s;function a(o){let l=n&&(typeof n=="string"?n:n[o]||n.DEFAULT);if(l)return{paddingRight:l,paddingLeft:l}}}),z("content-","content",({_:t})=>({"--tw-content":t,content:"var(--tw-content)"})),N("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),N("box-(border|content)","boxSizing",({1:t})=>t+"-box"),N("hidden",{display:"none"}),N("table-(auto|fixed)","tableLayout"),N(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",N("isolate","isolation"),N("object-(contain|cover|fill|none|scale-down)","objectFit"),z("object-","objectPosition"),N("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",Ms),N("overscroll(-[xy])?-(auto|contain|none)",({1:t="",2:e})=>({["overscroll-behavior"+t]:e})),N("(static|fixed|absolute|relative|sticky)","position"),z("-?inset(-[xy])?(?:$|-)","inset",({1:t,_:e})=>({top:t!="-x"&&e,right:t!="-y"&&e,bottom:t!="-x"&&e,left:t!="-y"&&e})),z("-?(top|bottom|left|right)(?:$|-)","inset"),N("(visible|collapse)","visibility"),N("invisible",{visibility:"hidden"}),z("-?z-","zIndex"),N("flex-((row|col)(-reverse)?)","flexDirection",$c),N("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),z("(flex-(?:grow|shrink))(?:$|-)"),z("(flex)-"),z("grow(?:$|-)","flexGrow"),z("shrink(?:$|-)","flexShrink"),z("basis-","flexBasis"),z("-?(order)-"),"-?(order)-(\\d+)",z("grid-cols-","gridTemplateColumns"),N("grid-cols-(\\d+)","gridTemplateColumns",Bc),z("col-","gridColumn"),N("col-(span)-(\\d+)","gridColumn",Lc),z("col-start-","gridColumnStart"),N("col-start-(auto|\\d+)","gridColumnStart"),z("col-end-","gridColumnEnd"),N("col-end-(auto|\\d+)","gridColumnEnd"),z("grid-rows-","gridTemplateRows"),N("grid-rows-(\\d+)","gridTemplateRows",Bc),z("row-","gridRow"),N("row-(span)-(\\d+)","gridRow",Lc),z("row-start-","gridRowStart"),N("row-start-(auto|\\d+)","gridRowStart"),z("row-end-","gridRowEnd"),N("row-end-(auto|\\d+)","gridRowEnd"),N("grid-flow-((row|col)(-dense)?)","gridAutoFlow",t=>Ms($c(t))),N("grid-flow-(dense)","gridAutoFlow"),z("auto-cols-","gridAutoColumns"),z("auto-rows-","gridAutoRows"),z("gap-x(?:$|-)","gap","columnGap"),z("gap-y(?:$|-)","gap","rowGap"),z("gap(?:$|-)","gap"),"(justify-(?:items|self))-",N("justify-","justifyContent",Oc),N("(content|items|self)-",t=>({["align-"+t[1]]:Oc(t)})),N("(place-(content|items|self))-",({1:t,$$:e})=>({[t]:("wun".includes(e[3])?"space-":"")+e})),z("p([xytrbl])?(?:$|-)","padding",Si("padding")),z("-?m([xytrbl])?(?:$|-)","margin",Si("margin")),z("-?space-(x|y)(?:$|-)","space",({1:t,_:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[t]]:`calc(${e} * calc(1 - var(--tw-space-${t}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[t]]:`calc(${e} * var(--tw-space-${t}-reverse))`}})),N("space-(x|y)-reverse",({1:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"1"}})),z("w-","width"),z("min-w-","minWidth"),z("max-w-","maxWidth"),z("h-","height"),z("min-h-","minHeight"),z("max-h-","maxHeight"),z("font-","fontWeight"),z("font-","fontFamily",({_:t})=>typeof(t=Te(t))[1]=="string"?{fontFamily:Nt(t)}:{fontFamily:Nt(t[0]),...t[1]}),N("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),N("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),N("italic","fontStyle"),N("not-italic",{fontStyle:"normal"}),N("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:t,2:e="",3:r})=>e=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(r?"numeric-fraction":"pt".includes(e[0])?"numeric-spacing":e?"numeric-figure":t)]:t,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...br({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),z("tracking-","letterSpacing"),z("leading-","lineHeight"),N("list-(inside|outside)","listStylePosition"),z("list-","listStyleType"),N("list-","listStyleType"),z("placeholder-opacity-","placeholderOpacity",({_:t})=>({"&::placeholder":{"--tw-placeholder-opacity":t}})),ze("placeholder-",{property:"color",selector:"&::placeholder"}),N("text-(left|center|right|justify|start|end)","textAlign"),N("text-(ellipsis|clip)","textOverflow"),z("text-opacity-","textOpacity","--tw-text-opacity"),ze("text-",{property:"color"}),z("text-","fontSize",({_:t})=>typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}),z("indent-","textIndent"),N("(overline|underline|line-through)","textDecorationLine"),N("no-underline",{textDecorationLine:"none"}),z("underline-offset-","textUnderlineOffset"),ze("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),z("decoration-","textDecorationThickness"),N("decoration-","textDecorationStyle"),N("(uppercase|lowercase|capitalize)","textTransform"),N("normal-case",{textTransform:"none"}),N("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),N("align-","verticalAlign"),N("whitespace-","whiteSpace"),N("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),N("break-words",{overflowWrap:"break-word"}),N("break-all",{wordBreak:"break-all"}),N("break-keep",{wordBreak:"keep-all"}),ze("caret-",{opacityVariable:!1,opacitySection:"opacity"}),ze("accent-",{opacityVariable:!1,opacitySection:"opacity"}),N("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:t})=>`linear-gradient(to ${Zr(t," ")},var(--tw-gradient-stops))`),ze("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-gradient-from":t.value,"--tw-gradient-to":t.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),ze("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-gradient-to":t.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${t.value},var(--tw-gradient-to)`})),ze("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),N("bg-(fixed|local|scroll)","backgroundAttachment"),N("bg-origin-(border|padding|content)","backgroundOrigin",({1:t})=>t+"-box"),N(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),N("bg-blend-","backgroundBlendMode"),N("bg-clip-(border|padding|content|text)","backgroundClip",({1:t})=>t+(t=="text"?"":"-box")),z("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),ze("bg-",{section:"backgroundColor"}),z("bg-","backgroundImage"),z("bg-","backgroundPosition"),N("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",Ms),z("bg-","backgroundSize"),z("rounded(?:$|-)","borderRadius"),z("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:t,_:e})=>{let r={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[t]||[t,t];return{[`border-${Zr(r[0])}-radius`]:e,[`border-${Zr(r[1])}-radius`]:e}}),N("border-(collapse|separate)","borderCollapse"),z("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),N("border-(solid|dashed|dotted|double|none)","borderStyle"),z("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:t,_:e})=>({...br({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(t||"-x")]:e,["--tw-border-spacing"+(t||"-y")]:e,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),ze("border-([xytrbl])-",{section:"borderColor"},Si("border","Color")),ze("border-"),z("border-([xytrbl])(?:$|-)","borderWidth",Si("border","Width")),z("border(?:$|-)","borderWidth"),z("divide-opacity(?:$|-)","divideOpacity",({_:t})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":t}})),N("divide-(solid|dashed|dotted|double|none)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:t}})),N("divide-([xy]-reverse)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+t]:"1"}})),z("divide-([xy])(?:$|-)","divideWidth",({1:t,_:e})=>{let r={x:"lr",y:"tb"}[t];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${t}-reverse`]:"0",[`border-${Zr(r[0])}Width`]:`calc(${e} * calc(1 - var(--tw-divide-${t}-reverse)))`,[`border-${Zr(r[1])}Width`]:`calc(${e} * var(--tw-divide-${t}-reverse))`}}}),ze("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),z("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),ze("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),z("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),N("ring-inset",{"--tw-ring-inset":"inset"}),ze("ring-",{property:"--tw-ring-color"}),z("ring(?:$|-)","ringWidth",({_:t},{theme:e})=>({...br({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":e("ringOffsetWidth","","0px"),"--tw-ring-offset-color":Tt(e("ringOffsetColor","","#fff")),"--tw-ring-color":Tt(e("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":e("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${t} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ze("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-shadow-color":t.value,"--tw-shadow":"var(--tw-shadow-colored)"})),z("shadow(?:$|-)","boxShadow",({_:t})=>({...br({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Nt(t),"--tw-shadow-colored":Nt(t).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),z("(opacity)-"),N("mix-blend-","mixBlendMode"),...Rc(),...Rc("backdrop-"),z("transition(?:$|-)","transitionProperty",(t,{theme:e})=>({transitionProperty:Nt(t),transitionTimingFunction:t._=="none"?void 0:Nt(e("transitionTimingFunction","")),transitionDuration:t._=="none"?void 0:Nt(e("transitionDuration",""))})),z("duration(?:$|-)","transitionDuration","transitionDuration",Nt),z("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Nt),z("delay(?:$|-)","transitionDelay","transitionDelay",Nt),z("animate(?:$|-)","animation",(t,{theme:e,h:r,e:i})=>{let n=Nt(t),s=n.split(" "),a=e("keyframes",s[0]);return a?{["@keyframes "+(s[0]=i(r(s[0])))]:a,animation:s.join(" ")}:{animation:n}}),"(transform)-(none)",N("transform",Uo),N("transform-(cpu|gpu)",({1:t})=>({"--tw-transform":Nc(t=="gpu")})),z("scale(-[xy])?-","scale",({1:t,_:e})=>({["--tw-scale"+(t||"-x")]:e,["--tw-scale"+(t||"-y")]:e,...Uo()})),z("-?(rotate)-","rotate",qo),z("-?(translate-[xy])-","translate",qo),z("-?(skew-[xy])-","skew",qo),N("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",Ms),"(appearance)-",z("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",z("(cursor)-"),"(cursor)-",N("snap-(none)","scroll-snap-type"),N("snap-(x|y|both)",({1:t})=>({...br({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":t+" var(--tw-scroll-snap-strictness)"})),N("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),N("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),N("snap-(normal|always)","scroll-snap-stop"),N("scroll-(auto|smooth)","scroll-behavior"),z("scroll-p([xytrbl])?(?:$|-)","padding",Si("scroll-padding")),z("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",Si("scroll-margin")),N("touch-(auto|none|manipulation)","touch-action"),N("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:t,2:e,3:r})=>({...br({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${e?"pan-x":r?"pan-y":t}`]:t,"touch-action":"var(--tw-touch-action)"})),N("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),N("outline",{outlineStyle:"solid"}),N("outline-(dashed|dotted|double)","outlineStyle"),z("-?(outline-offset)-"),ze("outline-",{opacityVariable:!1,opacitySection:"opacity"}),z("outline-","outlineWidth"),"(pointer-events)-",z("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:t})=>({x:"horizontal",y:"vertical"})[t]||t||"both"],N("select-(none|text|all|auto)","userSelect"),ze("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),ze("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),z("stroke-","strokeWidth"),N("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),N("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function Ms(t){return(typeof t=="string"?t:t[1]).replace(/-/g," ").trim()}function $c(t){return(typeof t=="string"?t:t[1]).replace("col","column")}function Zr(t,e="-"){let r=[];for(let i of t)r.push({t:"top",r:"right",b:"bottom",l:"left"}[i]);return r.join(e)}function Nt(t){return t&&""+(t._||t)}function Oc({$$:t}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[t[3]||""]||"")+t}function Si(t,e=""){return({1:r,_:i})=>{let n={x:"lr",y:"tb"}[r]||r+r;return n?{...pn(t+"-"+Zr(n[0])+e,i),...pn(t+"-"+Zr(n[1])+e,i)}:pn(t+e,i)}}function Rc(t=""){let e=["blur","brightness","contrast","grayscale","hue-rotate","invert",t&&"opacity","saturate","sepia",!t&&"drop-shadow"].filter(Boolean),r={};for(let i of e)r[`--tw-${t}${i}`]="var(--tw-empty,/*!*/ /*!*/)";return r={...br(r),[`${t}filter`]:e.map(i=>`var(--tw-${t}${i})`).join(" ")},[`(${t}filter)-(none)`,N(`${t}filter`,r),...e.map(i=>z(`${i[0]=="h"?"-?":""}(${t}${i})(?:$|-)`,i,({1:n,_:s})=>({[`--tw-${n}`]:Te(s).map(a=>`${i}(${a})`).join(" "),...r})))]}function qo({1:t,_:e}){return{["--tw-"+t]:e,...Uo()}}function Uo(){return{...br({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Nc()}),transform:"var(--tw-transform)"}}function Nc(t){return[t?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Lc({1:t,2:e}){return`${t} ${e} / ${t} ${e}`}function Bc({1:t}){return`repeat(${t},minmax(0,1fr))`}function br(t){return{"@layer defaults":{"*,::before,::after":t,"::backdrop":t}}}var zc=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:t})=>`@media (orientation:${t})`],["contrast-(more|less)",({1:t})=>`@media (prefers-contrast:${t})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:t})=>`&::${t}`],["(marker|selection)",({1:t})=>`& *::${t},&::${t}`],["file","&::file-selector-button"],["(first|last|only)",({1:t})=>`&:${t}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:t,$$:e},r)=>e&&`&[${t}-${r.theme(t,e)||Ut(e,"",r)||`${e}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:t,3:e="",4:r,5:i="",6:n=e},{e:s,h:a,v:o})=>{let l=xi(i)||(r[0]=="["?r:o(r.slice(1)));return`${(l.includes("&")?l:"&"+l).replace(/&/g,`:merge(.${s(a(t+n))})`)}${t[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:t})=>`[dir="${t}"] &`],["supports-",({$$:t},e)=>{if(t&&(t=e.theme("supports",t)||Ut(t,"",e)),t)return t.includes(":")||(t+=":var(--tw)"),/^\w*\s*\(/.test(t)||(t=`(${t})`),`@supports ${t.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:t},e)=>{if(t&&(t=e.theme("screens",t)||Ut(t,"",e)),typeof t=="string")return`@media not all and (min-width:${t})`}],["min-",({$$:t},e)=>(t&&(t=Ut(t,"",e)),t&&`@media (min-width:${t})`)],[/^\[(.+)]$/,({1:t})=>/[&@]/.test(t)&&xi(t).replace(/[}]+$/,"").split("{")]];function jc({colors:t,disablePreflight:e}={}){return{preflight:e?void 0:Fc,theme:{...fn,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...t}},variants:zc,rules:Vc,finalize(r){return r.n&&r.d&&r.r.some(i=>/^&::(before|after)$/.test(i))&&!/(^|;)content:/.test(r.d)?{...r,d:"content:var(--tw-content);"+r.d}:r}}}var qm={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},Um={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},Wm={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},Zm={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},Ym={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},Jm={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},Xm={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},Km={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},Qm={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},eg={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},tg={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},rg={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},ig={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},ng={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sg={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},ag={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},og={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},lg={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},hg={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},cg={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},ug={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},pg={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},Gc={__proto__:null,slate:qm,gray:Um,zinc:Wm,neutral:Zm,stone:Ym,red:Jm,orange:Xm,amber:Km,yellow:Qm,lime:eg,green:tg,emerald:rg,teal:ig,cyan:ng,sky:sg,blue:ag,indigo:og,violet:lg,purple:hg,fuchsia:cg,pink:ug,rose:pg};function Hc({disablePreflight:t}={}){return jc({colors:Gc,disablePreflight:t})}function Wc({className:t="prose",defaultColor:e="gray",extend:r={},colors:i={}}={}){return i={body:"700",headings:"900",lead:"600",links:"900",bold:"900",counters:"500",bullets:"300",hr:"200",quotes:"900","quote-borders":"200",captions:"500",code:"900","pre-code":"200","pre-bg":"800","th-borders":"300","td-borders":"200",...i,dark:i.dark===null?null:{body:"300",headings:"#fff",lead:"400",links:"#fff",bold:"#fff",counters:"400",bullets:"600",hr:"700",quotes:"100","quote-borders":"700",captions:"400",code:"#fff","pre-code":"300","pre-bg":"rgb(0 0 0 / 50%)","th-borders":"600","td-borders":"700",...i.dark}},{variants:[["headings","h1,h2,h3,h4,h5,h6,th"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"],["lead",".lead"]].map(([s,a=s])=>[`${t}-${s}`,(o,l)=>Zc(t,a[0]=="."?"."+l.e(l.h(a.slice(1))):a,l,h=>`& :is(${h.trim()})`)]),rules:[[`(lead|not-${t})`,({1:s},{h:a})=>[{c:a(s)}]],[`${t}-invert`,{"@layer base":{"--tw-prose-body":"var(--tw-prose-invert-body)","--tw-prose-headings":"var(--tw-prose-invert-headings)","--tw-prose-lead":"var(--tw-prose-invert-lead)","--tw-prose-links":"var(--tw-prose-invert-links)","--tw-prose-bold":"var(--tw-prose-invert-bold)","--tw-prose-counters":"var(--tw-prose-invert-counters)","--tw-prose-bullets":"var(--tw-prose-invert-bullets)","--tw-prose-hr":"var(--tw-prose-invert-hr)","--tw-prose-quotes":"var(--tw-prose-invert-quotes)","--tw-prose-quote-borders":"var(--tw-prose-invert-quote-borders)","--tw-prose-captions":"var(--tw-prose-invert-captions)","--tw-prose-code":"var(--tw-prose-invert-code)","--tw-prose-pre-code":"var(--tw-prose-invert-pre-code)","--tw-prose-pre-bg":"var(--tw-prose-invert-pre-bg)","--tw-prose-th-borders":"var(--tw-prose-invert-th-borders)","--tw-prose-td-borders":"var(--tw-prose-invert-td-borders)"}}],[t+"-",({$$:s},a)=>{let o=Uc(a.theme("fontSize",s));return o&&{"@layer components":o}}],[t+"-",({$$:s},a)=>n(s,a)],[t,(s,a)=>({...n(e,a),"@layer base":[qc(t,a,{a:{color:"var(--tw-prose-links)",textDecorationLine:"underline",fontWeight:"500"},strong:{color:"var(--tw-prose-bold)",fontWeight:"600"},"a strong,blockquote strong,thead th strong":{color:"inherit"},ul:{listStyleType:"disc"},ol:{listStyleType:"decimal"},'ol[type="A"]':{listStyleType:"upper-alpha"},'ol[type="a"]':{listStyleType:"lower-alpha"},'ol[type="A" s]':{listStyleType:"upper-alpha"},'ol[type="a" s]':{listStyleType:"lower-alpha"},'ol[type="I"]':{listStyleType:"upper-roman"},'ol[type="i"]':{listStyleType:"lower-roman"},'ol[type="I" s]':{listStyleType:"upper-roman"},'ol[type="i" s]':{listStyleType:"lower-roman"},'ol[type="1"]':{listStyleType:"decimal"},"ol,ul":{marginTop:Q(20,16),marginBottom:Q(20,16),paddingLeft:Q(26,16)},li:{marginTop:Q(8,16),marginBottom:Q(8,16)},"ol>li,ul>li":{paddingLeft:Q(6,16)},">ul>li p":{marginTop:Q(12,16),marginBottom:Q(12,16)},">ul>li>*:first-child,>ol>li>*:last-child":{marginTop:Q(20,16)},">ul>li>*:last-child,>ol>li>*:last-child":{marginBottom:Q(20,16)},"ol>li::marker":{fontWeight:"400",color:"var(--tw-prose-counters)"},"ul>li::marker":{color:"var(--tw-prose-bullets)"},"ul ul,ul ol,ol ul,ol ol":{marginTop:Q(12,16),marginBottom:Q(12,16)},hr:{borderColor:"var(--tw-prose-hr)",borderTopWidth:"1",marginTop:Q(48,16),marginBottom:Q(48,16)},blockquote:{marginTop:Q(32,20),marginBottom:Q(32,20),paddingLeft:Q(20,20),fontWeight:"500",fontStyle:"italic",color:"var(--tw-prose-quotes)",borderLeftWidth:"0.25rem",borderLeftColor:"var(--tw-prose-quote-borders)",quotes:'"\\201C""\\201D""\\2018""\\2019"'},"blockquote p:first-of-type::before":{content:"open-quote"},"blockquote p:last-of-type::after":{content:"close-quote"},p:{marginTop:Q(20,16),marginBottom:Q(20,16)},h1:{color:"var(--tw-prose-headings)",fontWeight:"800",fontSize:Q(36,16),marginTop:"0",marginBottom:Q(32,36),lineHeight:1.15},"h1 strong":{fontWeight:"900",color:"inherit"},h2:{color:"var(--tw-prose-headings)",fontWeight:"700",fontSize:Q(24,16),marginTop:Q(48,24),marginBottom:Q(24,24),lineHeight:"1.35"},"h2 strong":{fontWeight:"800",color:"inherit"},h3:{color:"var(--tw-prose-headings)",fontWeight:"600",fontSize:Q(20,16),marginTop:Q(32,20),marginBottom:Q(12,20),lineHeight:"1.6"},"h3 strong":{fontWeight:"700",color:"inherit"},h4:{color:"var(--tw-prose-headings)",fontWeight:"600",marginTop:Q(24,16),marginBottom:Q(8,16),lineHeight:"1.5"},"h4 strong":{fontWeight:"700",color:"inherit"},"hr+*,h2+*,h3+*,h4+*":{marginTop:"0"},"img,video,figure":{marginTop:Q(32,16),marginBottom:Q(32,16)},"figure>*":{marginTop:"0",marginBottom:"0"},figcaption:{color:"var(--tw-prose-captions)",fontSize:Q(14,16),lineHeight:"1.4",marginTop:Q(12,14)},code:{color:"var(--tw-prose-code)",fontWeight:"600",fontSize:Q(14,16)},"code::before,code::after":{content:'"`"'},"h2 code":{fontSize:Q(21,24)},"h3 code":{fontSize:Q(18,20)},"a code,h1 code,h2 code,h3 code,h4 code,blockquote code,thead th code":{color:"inherit"},pre:{color:"var(--tw-prose-pre-code)",backgroundColor:"var(--tw-prose-pre-bg)",overflowX:"auto",fontWeight:"400",fontSize:Q(14,16),lineHeight:"1.7",marginTop:Q(24,14),marginBottom:Q(24,14),borderRadius:"0.375rem",paddingTop:Q(12,14),paddingRight:Q(16,14),paddingBottom:Q(12,14),paddingLeft:Q(16,14)},"pre code":{backgroundColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0",fontWeight:"inherit",color:"inherit",fontSize:"inherit",fontFamily:"inherit",lineHeight:"inherit"},"pre code::before":{content:"none"},"pre code::after":{content:"none"},table:{width:"100%",tableLayout:"auto",textAlign:"left",marginTop:Q(32,16),marginBottom:Q(32,16),fontSize:Q(14,16),lineHeight:"1.7"},thead:{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-th-borders)"},"thead th":{color:"var(--tw-prose-headings)",fontWeight:"600",verticalAlign:"bottom",paddingRight:Q(8,14),paddingBottom:Q(8,14),paddingLeft:Q(8,14)},"thead th:first-child":{paddingLeft:"0"},"thead th:last-child":{paddingRight:"0"},"tbody tr":{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-td-borders)"},"tbody tr:last-child":{borderBottomWidth:"0"},"tbody td,tfoot td":{verticalAlign:"baseline",paddingTop:Q(8,14),paddingRight:Q(8,14),paddingBottom:Q(8,14),paddingLeft:Q(8,14)},"tbody td:first-child,tfoot td:first-child":{paddingLeft:"0"},"tbody td:last-child,tfoot td:last-child":{paddingRight:"0"},[`.${a.e(a.h("lead"))}`]:{color:"var(--tw-prose-lead)",fontSize:Q(20,16),lineHeight:"1.6",marginTop:Q(24,20),marginBottom:Q(24,20)},">:first-child":{marginTop:"0"},">:last-child":{marginBottom:"0"}}),qc(t,a,r)],"@layer components":{...Uc(a.theme("fontSize","base")),color:"var(--tw-prose-body)",maxWidth:"theme(max-w.prose, 65ch)"}})]]};function n(s,a){let o={},l={},h=(c,u,f)=>{let p=a.theme(`colors.${s}.${u}`,u);f["--tw-prose-"+c]=Tt(p);let m=f!=l&&a.d("colors",`${s}-${u}`,p);m&&(l["--tw-prose-"+c]=Tt(m))};for(let c in i){let u=i[c];c!="dark"&&u&&h(c,u,o)}for(let c in i.dark||{}){let u=i.dark[c];u&&(i.dark?h("invert-"+c,u,o):h(c,u,l))}return Object.keys(o).length?{"@layer defaults":{"&":o,[a.v("dark")]:l}}:void 0}}function qc(t,e,r){let i={};for(let n in r)i[Zc(t,n,e,s=>`.${e.e(e.h(t))}${s}`)]=r[n];return i}function Zc(t,e,{e:r,h:i},n){return e.replace(/^[^>:]+$|(>)?((?:[^:,]+(?::[\w-]+)?)|:[\w-]+)(::[\w-]+)?/g,(s,a=" ",o=s,l="")=>n(`${a}:where(${o}):not(:where(.${r(i("not-"+t))} *))${l}`))}function Uc(t){return t?typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}:void 0}function Q(t,e){return`${(t/e).toFixed(3).replace(/^0|\.?0+$/g,"")}em`}var Wo=Ho({darkMode:"class",theme:{extend:{spacing:{px:"1px",0:"0",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},padding:{px:"1px",0:"0",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},lineHeight:{3:"12px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px"},maxWidth:{xs:"320px",sm:"384px",md:"448px",lg:"512px",xl:"576px","2xl":"672px","3xl":"768px","4xl":"896px","5xl":"1024px","6xl":"1152px","7xl":"1280px"},maxHeight:{.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},borderRadius:{sm:"2px",DEFAULT:"4px",md:"6px",lg:"8px",xl:"12px","2xl":"16px","3xl":"24px"},fontSize:{xs:["12px","16px"],sm:["14px","20px"],base:["16px","24px"],lg:["18px","28px"],xl:["20px","28px"],"2xl":["24px","32px"],"3xl":["30px","36px"],"4xl":["36px","40px"],"5xl":["48px","1"],"6xl":["60px","1"],"7xl":["72px","1"],"8xl":["96px","1"],"9xl":["128px","1"]},fontFamily:{sans:["system-ui","Roboto","Helvetica","Arial","sans-serif"],serif:["ui-serif","Georgia","Cambria","serif"],mono:["ui-monospace","Menlo","Monaco","monospace"]}}},presets:[Hc(),Ic(),Dc(),Wc()],hash:!1});function Yc(t,e=!0){let r=function(){if(dg)try{let l=Is(new CSSStyleSheet);return l.connect=h=>{let c=Zo(h);c.adoptedStyleSheets=[...c.adoptedStyleSheets,l.target]},l.disconnect=Ts,l}catch{}let s=document.createElement("style");s.media="not all",document.head.prepend(s);let a=[Is(s)],o=new WeakMap;return{get target(){return a[0].target},snapshot(){let l=a.map(h=>h.snapshot());return()=>l.forEach(h=>h())},clear(){a.forEach(l=>l.clear())},destroy(){a.forEach(l=>l.destroy())},insert(l,h,c){a[0].insert(l,h,c);let u=this.target.cssRules[h];a.forEach((f,p)=>p&&f.target.insertRule(u.cssText,h))},resume(l,h){return a[0].resume(l,h)},connect(l){let h=document.createElement("style");Zo(l).appendChild(h);let c=Is(h),{cssRules:u}=this.target;for(let f=0;f<u.length;f++)c.target.insertRule(u[f].cssText,f);a.push(c),o.set(l,c)},disconnect(l){let h=a.indexOf(o.get(l));h>=0&&a.splice(h,1)}}}(),i=Ec({...t,hash:t.hash??e},r),n=Pc(i);return function(a){return class extends a{connectedCallback(){super.connectedCallback?.(),r.connect(this),n.observe(Zo(this))}disconnectedCallback(){r.disconnect(this),super.disconnectedCallback?.()}constructor(...l){super(...l),this.tw=i}}}}var dg=typeof ShadowRoot<"u"&&(typeof ShadyCSS>"u"||ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function Zo(t){return t.shadowRoot||t.attachShadow({mode:"open"})}var Fe=t=>Yc(Wo)(t);var Fs,Jc,$s,Xc,Ds=class extends Fe(ke){constructor(){super();W(this,Fs);W(this,$s);de(this,"render",()=>me`
4
- <div class="${L(this,Fs,Jc)?"block":"hidden"} flex h-full w-full flex-col items-stretch justify-center space-y-8 px-4">
1
+ var hf=Object.defineProperty;var cf=(t,e,r)=>e in t?hf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var de=(t,e,r)=>(cf(t,typeof e!="symbol"?e+"":e,r),r),po=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var L=(t,e,r)=>(po(t,e,"read from private field"),r?r.call(t):e.get(t)),Z=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},fe=(t,e,r,i)=>(po(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r);var kh=(t,e,r,i)=>({set _(n){fe(t,e,n,r)},get _(){return L(t,e,i)}}),pe=(t,e,r)=>(po(t,e,"access private method"),r);var _e;(function(t){t.assertEqual=n=>n;function e(n){}t.assertIs=e;function r(n){throw new Error}t.assertNever=r,t.arrayToEnum=n=>{let s={};for(let a of n)s[a]=a;return s},t.getValidEnumValues=n=>{let s=t.objectKeys(n).filter(o=>typeof n[n[o]]!="number"),a={};for(let o of s)a[o]=n[o];return t.objectValues(a)},t.objectValues=n=>t.objectKeys(n).map(function(s){return n[s]}),t.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let s=[];for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&s.push(a);return s},t.find=(n,s)=>{for(let a of n)if(s(a))return a},t.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&isFinite(n)&&Math.floor(n)===n;function i(n,s=" | "){return n.map(a=>typeof a=="string"?`'${a}'`:a).join(s)}t.joinValues=i,t.jsonStringifyReplacer=(n,s)=>typeof s=="bigint"?s.toString():s})(_e||(_e={}));var mo;(function(t){t.mergeShapes=(e,r)=>({...e,...r})})(mo||(mo={}));var G=_e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),dr=t=>{switch(typeof t){case"undefined":return G.undefined;case"string":return G.string;case"number":return isNaN(t)?G.nan:G.number;case"boolean":return G.boolean;case"function":return G.function;case"bigint":return G.bigint;case"symbol":return G.symbol;case"object":return Array.isArray(t)?G.array:t===null?G.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?G.promise:typeof Map<"u"&&t instanceof Map?G.map:typeof Set<"u"&&t instanceof Set?G.set:typeof Date<"u"&&t instanceof Date?G.date:G.object;default:return G.unknown}},V=_e.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),uf=t=>JSON.stringify(t,null,2).replace(/"([^"]+)":/g,"$1:"),vt=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let r=e||function(s){return s.message},i={_errors:[]},n=s=>{for(let a of s.issues)if(a.code==="invalid_union")a.unionErrors.map(n);else if(a.code==="invalid_return_type")n(a.returnTypeError);else if(a.code==="invalid_arguments")n(a.argumentsError);else if(a.path.length===0)i._errors.push(r(a));else{let o=i,l=0;for(;l<a.path.length;){let h=a.path[l];l===a.path.length-1?(o[h]=o[h]||{_errors:[]},o[h]._errors.push(r(a))):o[h]=o[h]||{_errors:[]},o=o[h],l++}}};return n(this),i}toString(){return this.message}get message(){return JSON.stringify(this.issues,_e.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=r=>r.message){let r={},i=[];for(let n of this.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(e(n))):i.push(e(n));return{formErrors:i,fieldErrors:r}}get formErrors(){return this.flatten()}};vt.create=t=>new vt(t);var tn=(t,e)=>{let r;switch(t.code){case V.invalid_type:t.received===G.undefined?r="Required":r=`Expected ${t.expected}, received ${t.received}`;break;case V.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(t.expected,_e.jsonStringifyReplacer)}`;break;case V.unrecognized_keys:r=`Unrecognized key(s) in object: ${_e.joinValues(t.keys,", ")}`;break;case V.invalid_union:r="Invalid input";break;case V.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${_e.joinValues(t.options)}`;break;case V.invalid_enum_value:r=`Invalid enum value. Expected ${_e.joinValues(t.options)}, received '${t.received}'`;break;case V.invalid_arguments:r="Invalid function arguments";break;case V.invalid_return_type:r="Invalid function return type";break;case V.invalid_date:r="Invalid date";break;case V.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(r=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?r=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?r=`Invalid input: must end with "${t.validation.endsWith}"`:_e.assertNever(t.validation):t.validation!=="regex"?r=`Invalid ${t.validation}`:r="Invalid";break;case V.too_small:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:r="Invalid input";break;case V.too_big:t.type==="array"?r=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?r=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?r=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?r=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?r=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:r="Invalid input";break;case V.custom:r="Invalid input";break;case V.invalid_intersection_types:r="Intersection results could not be merged";break;case V.not_multiple_of:r=`Number must be a multiple of ${t.multipleOf}`;break;case V.not_finite:r="Number must be finite";break;default:r=e.defaultError,_e.assertNever(t)}return{message:r}},Ah=tn;function pf(t){Ah=t}function ts(){return Ah}var rs=t=>{let{data:e,path:r,errorMaps:i,issueData:n}=t,s=[...r,...n.path||[]],a={...n,path:s},o="",l=i.filter(h=>!!h).slice().reverse();for(let h of l)o=h(a,{data:e,defaultError:o}).message;return{...n,path:s,message:n.message||o}},df=[];function q(t,e){let r=rs({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,ts(),tn].filter(i=>!!i)});t.common.issues.push(r)}var Qe=class t{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,r){let i=[];for(let n of r){if(n.status==="aborted")return he;n.status==="dirty"&&e.dirty(),i.push(n.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,r){let i=[];for(let n of r)i.push({key:await n.key,value:await n.value});return t.mergeObjectSync(e,i)}static mergeObjectSync(e,r){let i={};for(let n of r){let{key:s,value:a}=n;if(s.status==="aborted"||a.status==="aborted")return he;s.status==="dirty"&&e.dirty(),a.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof a.value<"u"||n.alwaysSet)&&(i[s.value]=a.value)}return{status:e.value,value:i}}},he=Object.freeze({status:"aborted"}),Ch=t=>({status:"dirty",value:t}),it=t=>({status:"valid",value:t}),go=t=>t.status==="aborted",yo=t=>t.status==="dirty",rn=t=>t.status==="valid",is=t=>typeof Promise<"u"&&t instanceof Promise,re;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(re||(re={}));var Ct=class{constructor(e,r,i,n){this._cachedPath=[],this.parent=e,this.data=r,this._path=i,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Eh=(t,e)=>{if(rn(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new vt(t.common.issues);return this._error=r,this._error}}};function ce(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,required_error:i,description:n}=t;if(e&&(r||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:n}:{errorMap:(a,o)=>a.code!=="invalid_type"?{message:o.defaultError}:typeof o.data>"u"?{message:i??o.defaultError}:{message:r??o.defaultError},description:n}}var ue=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return dr(e.data)}_getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parsedType:dr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new Qe,ctx:{common:e.parent.common,data:e.data,parsedType:dr(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let r=this._parse(e);if(is(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(e){let r=this._parse(e);return Promise.resolve(r)}parse(e,r){let i=this.safeParse(e,r);if(i.success)return i.data;throw i.error}safeParse(e,r){var i;let n={common:{issues:[],async:(i=r?.async)!==null&&i!==void 0?i:!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:dr(e)},s=this._parseSync({data:e,path:n.path,parent:n});return Eh(n,s)}async parseAsync(e,r){let i=await this.safeParseAsync(e,r);if(i.success)return i.data;throw i.error}async safeParseAsync(e,r){let i={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:dr(e)},n=this._parse({data:e,path:i.path,parent:i}),s=await(is(n)?n:Promise.resolve(n));return Eh(i,s)}refine(e,r){let i=n=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,s)=>{let a=e(n),o=()=>s.addIssue({code:V.custom,...i(n)});return typeof Promise<"u"&&a instanceof Promise?a.then(l=>l?!0:(o(),!1)):a?!0:(o(),!1)})}refinement(e,r){return this._refinement((i,n)=>e(i)?!0:(n.addIssue(typeof r=="function"?r(i,n):r),!1))}_refinement(e){return new bt({schema:this,typeName:ae.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Bt.create(this,this._def)}nullable(){return er.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Qt.create(this,this._def)}promise(){return gr.create(this,this._def)}or(e){return Or.create([this,e],this._def)}and(e){return Rr.create(this,e,this._def)}transform(e){return new bt({...ce(this._def),schema:this,typeName:ae.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let r=typeof e=="function"?e:()=>e;return new zr({...ce(this._def),innerType:this,defaultValue:r,typeName:ae.ZodDefault})}brand(){return new os({typeName:ae.ZodBranded,type:this,...ce(this._def)})}catch(e){let r=typeof e=="function"?e:()=>e;return new mi({...ce(this._def),innerType:this,catchValue:r,typeName:ae.ZodCatch})}describe(e){let r=this.constructor;return new r({...this._def,description:e})}pipe(e){return nn.create(this,e)}readonly(){return yi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},ff=/^c[^\s-]{8,}$/i,mf=/^[a-z][a-z0-9]*$/,gf=/^[0-9A-HJKMNP-TV-Z]{26}$/,yf=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,vf=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,bf="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",fo,_f=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,wf=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,xf=t=>t.precision?t.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${t.precision}}Z$`):t.precision===0?t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):t.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function Sf(t,e){return!!((e==="v4"||!e)&&_f.test(t)||(e==="v6"||!e)&&wf.test(t))}var fr=class t extends ue{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==G.string){let s=this._getOrReturnCtx(e);return q(s,{code:V.invalid_type,expected:G.string,received:s.parsedType}),he}let i=new Qe,n;for(let s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(n=this._getOrReturnCtx(e,n),q(n,{code:V.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="max")e.data.length>s.value&&(n=this._getOrReturnCtx(e,n),q(n,{code:V.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="length"){let a=e.data.length>s.value,o=e.data.length<s.value;(a||o)&&(n=this._getOrReturnCtx(e,n),a?q(n,{code:V.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):o&&q(n,{code:V.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if(s.kind==="email")vf.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:"email",code:V.invalid_string,message:s.message}),i.dirty());else if(s.kind==="emoji")fo||(fo=new RegExp(bf,"u")),fo.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:"emoji",code:V.invalid_string,message:s.message}),i.dirty());else if(s.kind==="uuid")yf.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:"uuid",code:V.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid")ff.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:"cuid",code:V.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid2")mf.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:"cuid2",code:V.invalid_string,message:s.message}),i.dirty());else if(s.kind==="ulid")gf.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:"ulid",code:V.invalid_string,message:s.message}),i.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),q(n,{validation:"url",code:V.invalid_string,message:s.message}),i.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{validation:"regex",code:V.invalid_string,message:s.message}),i.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(n=this._getOrReturnCtx(e,n),q(n,{code:V.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),i.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(n=this._getOrReturnCtx(e,n),q(n,{code:V.invalid_string,validation:{startsWith:s.value},message:s.message}),i.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(n=this._getOrReturnCtx(e,n),q(n,{code:V.invalid_string,validation:{endsWith:s.value},message:s.message}),i.dirty()):s.kind==="datetime"?xf(s).test(e.data)||(n=this._getOrReturnCtx(e,n),q(n,{code:V.invalid_string,validation:"datetime",message:s.message}),i.dirty()):s.kind==="ip"?Sf(e.data,s.version)||(n=this._getOrReturnCtx(e,n),q(n,{validation:"ip",code:V.invalid_string,message:s.message}),i.dirty()):_e.assertNever(s);return{status:i.value,value:e.data}}_regex(e,r,i){return this.refinement(n=>e.test(n),{validation:r,code:V.invalid_string,...re.errToObj(i)})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...re.errToObj(e)})}url(e){return this._addCheck({kind:"url",...re.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...re.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...re.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...re.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...re.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...re.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...re.errToObj(e)})}datetime(e){var r;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:(r=e?.offset)!==null&&r!==void 0?r:!1,...re.errToObj(e?.message)})}regex(e,r){return this._addCheck({kind:"regex",regex:e,...re.errToObj(r)})}includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?.position,...re.errToObj(r?.message)})}startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...re.errToObj(r)})}endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...re.errToObj(r)})}min(e,r){return this._addCheck({kind:"min",value:e,...re.errToObj(r)})}max(e,r){return this._addCheck({kind:"max",value:e,...re.errToObj(r)})}length(e,r){return this._addCheck({kind:"length",value:e,...re.errToObj(r)})}nonempty(e){return this.min(1,re.errToObj(e))}trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};fr.create=t=>{var e;return new fr({checks:[],typeName:ae.ZodString,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...ce(t)})};function kf(t,e){let r=(t.toString().split(".")[1]||"").length,i=(e.toString().split(".")[1]||"").length,n=r>i?r:i,s=parseInt(t.toFixed(n).replace(".","")),a=parseInt(e.toFixed(n).replace(".",""));return s%a/Math.pow(10,n)}var Tr=class t extends ue{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==G.number){let s=this._getOrReturnCtx(e);return q(s,{code:V.invalid_type,expected:G.number,received:s.parsedType}),he}let i,n=new Qe;for(let s of this._def.checks)s.kind==="int"?_e.isInteger(e.data)||(i=this._getOrReturnCtx(e,i),q(i,{code:V.invalid_type,expected:"integer",received:"float",message:s.message}),n.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(i=this._getOrReturnCtx(e,i),q(i,{code:V.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),n.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(i=this._getOrReturnCtx(e,i),q(i,{code:V.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),n.dirty()):s.kind==="multipleOf"?kf(e.data,s.value)!==0&&(i=this._getOrReturnCtx(e,i),q(i,{code:V.not_multiple_of,multipleOf:s.value,message:s.message}),n.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(i=this._getOrReturnCtx(e,i),q(i,{code:V.not_finite,message:s.message}),n.dirty()):_e.assertNever(s);return{status:n.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,re.toString(r))}gt(e,r){return this.setLimit("min",e,!1,re.toString(r))}lte(e,r){return this.setLimit("max",e,!0,re.toString(r))}lt(e,r){return this.setLimit("max",e,!1,re.toString(r))}setLimit(e,r,i,n){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:i,message:re.toString(n)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:re.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:re.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:re.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:re.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:re.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:re.toString(r)})}finite(e){return this._addCheck({kind:"finite",message:re.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:re.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:re.toString(e)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&_e.isInteger(e.value))}get isFinite(){let e=null,r=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(r===null||i.value>r)&&(r=i.value):i.kind==="max"&&(e===null||i.value<e)&&(e=i.value)}return Number.isFinite(r)&&Number.isFinite(e)}};Tr.create=t=>new Tr({checks:[],typeName:ae.ZodNumber,coerce:t?.coerce||!1,...ce(t)});var Ir=class t extends ue{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==G.bigint){let s=this._getOrReturnCtx(e);return q(s,{code:V.invalid_type,expected:G.bigint,received:s.parsedType}),he}let i,n=new Qe;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(i=this._getOrReturnCtx(e,i),q(i,{code:V.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),n.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(i=this._getOrReturnCtx(e,i),q(i,{code:V.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),n.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(i=this._getOrReturnCtx(e,i),q(i,{code:V.not_multiple_of,multipleOf:s.value,message:s.message}),n.dirty()):_e.assertNever(s);return{status:n.value,value:e.data}}gte(e,r){return this.setLimit("min",e,!0,re.toString(r))}gt(e,r){return this.setLimit("min",e,!1,re.toString(r))}lte(e,r){return this.setLimit("max",e,!0,re.toString(r))}lt(e,r){return this.setLimit("max",e,!1,re.toString(r))}setLimit(e,r,i,n){return new t({...this._def,checks:[...this._def.checks,{kind:e,value:r,inclusive:i,message:re.toString(n)}]})}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:re.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:re.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:re.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:re.toString(e)})}multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message:re.toString(r)})}get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e}get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e}};Ir.create=t=>{var e;return new Ir({checks:[],typeName:ae.ZodBigInt,coerce:(e=t?.coerce)!==null&&e!==void 0?e:!1,...ce(t)})};var Mr=class extends ue{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==G.boolean){let i=this._getOrReturnCtx(e);return q(i,{code:V.invalid_type,expected:G.boolean,received:i.parsedType}),he}return it(e.data)}};Mr.create=t=>new Mr({typeName:ae.ZodBoolean,coerce:t?.coerce||!1,...ce(t)});var Dr=class t extends ue{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==G.date){let s=this._getOrReturnCtx(e);return q(s,{code:V.invalid_type,expected:G.date,received:s.parsedType}),he}if(isNaN(e.data.getTime())){let s=this._getOrReturnCtx(e);return q(s,{code:V.invalid_date}),he}let i=new Qe,n;for(let s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(n=this._getOrReturnCtx(e,n),q(n,{code:V.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),i.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(n=this._getOrReturnCtx(e,n),q(n,{code:V.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):_e.assertNever(s);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})}min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:re.toString(r)})}max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:re.toString(r)})}get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(e===null||r.value>e)&&(e=r.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(e===null||r.value<e)&&(e=r.value);return e!=null?new Date(e):null}};Dr.create=t=>new Dr({checks:[],coerce:t?.coerce||!1,typeName:ae.ZodDate,...ce(t)});var ui=class extends ue{_parse(e){if(this._getType(e)!==G.symbol){let i=this._getOrReturnCtx(e);return q(i,{code:V.invalid_type,expected:G.symbol,received:i.parsedType}),he}return it(e.data)}};ui.create=t=>new ui({typeName:ae.ZodSymbol,...ce(t)});var Fr=class extends ue{_parse(e){if(this._getType(e)!==G.undefined){let i=this._getOrReturnCtx(e);return q(i,{code:V.invalid_type,expected:G.undefined,received:i.parsedType}),he}return it(e.data)}};Fr.create=t=>new Fr({typeName:ae.ZodUndefined,...ce(t)});var $r=class extends ue{_parse(e){if(this._getType(e)!==G.null){let i=this._getOrReturnCtx(e);return q(i,{code:V.invalid_type,expected:G.null,received:i.parsedType}),he}return it(e.data)}};$r.create=t=>new $r({typeName:ae.ZodNull,...ce(t)});var mr=class extends ue{constructor(){super(...arguments),this._any=!0}_parse(e){return it(e.data)}};mr.create=t=>new mr({typeName:ae.ZodAny,...ce(t)});var Kt=class extends ue{constructor(){super(...arguments),this._unknown=!0}_parse(e){return it(e.data)}};Kt.create=t=>new Kt({typeName:ae.ZodUnknown,...ce(t)});var Vt=class extends ue{_parse(e){let r=this._getOrReturnCtx(e);return q(r,{code:V.invalid_type,expected:G.never,received:r.parsedType}),he}};Vt.create=t=>new Vt({typeName:ae.ZodNever,...ce(t)});var pi=class extends ue{_parse(e){if(this._getType(e)!==G.undefined){let i=this._getOrReturnCtx(e);return q(i,{code:V.invalid_type,expected:G.void,received:i.parsedType}),he}return it(e.data)}};pi.create=t=>new pi({typeName:ae.ZodVoid,...ce(t)});var Qt=class t extends ue{_parse(e){let{ctx:r,status:i}=this._processInputParams(e),n=this._def;if(r.parsedType!==G.array)return q(r,{code:V.invalid_type,expected:G.array,received:r.parsedType}),he;if(n.exactLength!==null){let a=r.data.length>n.exactLength.value,o=r.data.length<n.exactLength.value;(a||o)&&(q(r,{code:a?V.too_big:V.too_small,minimum:o?n.exactLength.value:void 0,maximum:a?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),i.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(q(r,{code:V.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),i.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(q(r,{code:V.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),i.dirty()),r.common.async)return Promise.all([...r.data].map((a,o)=>n.type._parseAsync(new Ct(r,a,r.path,o)))).then(a=>Qe.mergeArray(i,a));let s=[...r.data].map((a,o)=>n.type._parseSync(new Ct(r,a,r.path,o)));return Qe.mergeArray(i,s)}get element(){return this._def.type}min(e,r){return new t({...this._def,minLength:{value:e,message:re.toString(r)}})}max(e,r){return new t({...this._def,maxLength:{value:e,message:re.toString(r)}})}length(e,r){return new t({...this._def,exactLength:{value:e,message:re.toString(r)}})}nonempty(e){return this.min(1,e)}};Qt.create=(t,e)=>new Qt({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ae.ZodArray,...ce(e)});function ci(t){if(t instanceof ct){let e={};for(let r in t.shape){let i=t.shape[r];e[r]=Bt.create(ci(i))}return new ct({...t._def,shape:()=>e})}else return t instanceof Qt?new Qt({...t._def,type:ci(t.element)}):t instanceof Bt?Bt.create(ci(t.unwrap())):t instanceof er?er.create(ci(t.unwrap())):t instanceof qt?qt.create(t.items.map(e=>ci(e))):t}var ct=class t extends ue{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),r=_e.objectKeys(e);return this._cached={shape:e,keys:r}}_parse(e){if(this._getType(e)!==G.object){let h=this._getOrReturnCtx(e);return q(h,{code:V.invalid_type,expected:G.object,received:h.parsedType}),he}let{status:i,ctx:n}=this._processInputParams(e),{shape:s,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof Vt&&this._def.unknownKeys==="strip"))for(let h in n.data)a.includes(h)||o.push(h);let l=[];for(let h of a){let c=s[h],u=n.data[h];l.push({key:{status:"valid",value:h},value:c._parse(new Ct(n,u,n.path,h)),alwaysSet:h in n.data})}if(this._def.catchall instanceof Vt){let h=this._def.unknownKeys;if(h==="passthrough")for(let c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:n.data[c]}});else if(h==="strict")o.length>0&&(q(n,{code:V.unrecognized_keys,keys:o}),i.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let h=this._def.catchall;for(let c of o){let u=n.data[c];l.push({key:{status:"valid",value:c},value:h._parse(new Ct(n,u,n.path,c)),alwaysSet:c in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let h=[];for(let c of l){let u=await c.key;h.push({key:u,value:await c.value,alwaysSet:c.alwaysSet})}return h}).then(h=>Qe.mergeObjectSync(i,h)):Qe.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(e){return re.errToObj,new t({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(r,i)=>{var n,s,a,o;let l=(a=(s=(n=this._def).errorMap)===null||s===void 0?void 0:s.call(n,r,i).message)!==null&&a!==void 0?a:i.defaultError;return r.code==="unrecognized_keys"?{message:(o=re.errToObj(e).message)!==null&&o!==void 0?o:l}:{message:l}}}:{}})}strip(){return new t({...this._def,unknownKeys:"strip"})}passthrough(){return new t({...this._def,unknownKeys:"passthrough"})}extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ae.ZodObject})}setKey(e,r){return this.augment({[e]:r})}catchall(e){return new t({...this._def,catchall:e})}pick(e){let r={};return _e.objectKeys(e).forEach(i=>{e[i]&&this.shape[i]&&(r[i]=this.shape[i])}),new t({...this._def,shape:()=>r})}omit(e){let r={};return _e.objectKeys(this.shape).forEach(i=>{e[i]||(r[i]=this.shape[i])}),new t({...this._def,shape:()=>r})}deepPartial(){return ci(this)}partial(e){let r={};return _e.objectKeys(this.shape).forEach(i=>{let n=this.shape[i];e&&!e[i]?r[i]=n:r[i]=n.optional()}),new t({...this._def,shape:()=>r})}required(e){let r={};return _e.objectKeys(this.shape).forEach(i=>{if(e&&!e[i])r[i]=this.shape[i];else{let s=this.shape[i];for(;s instanceof Bt;)s=s._def.innerType;r[i]=s}}),new t({...this._def,shape:()=>r})}keyof(){return Th(_e.objectKeys(this.shape))}};ct.create=(t,e)=>new ct({shape:()=>t,unknownKeys:"strip",catchall:Vt.create(),typeName:ae.ZodObject,...ce(e)});ct.strictCreate=(t,e)=>new ct({shape:()=>t,unknownKeys:"strict",catchall:Vt.create(),typeName:ae.ZodObject,...ce(e)});ct.lazycreate=(t,e)=>new ct({shape:t,unknownKeys:"strip",catchall:Vt.create(),typeName:ae.ZodObject,...ce(e)});var Or=class extends ue{_parse(e){let{ctx:r}=this._processInputParams(e),i=this._def.options;function n(s){for(let o of s)if(o.result.status==="valid")return o.result;for(let o of s)if(o.result.status==="dirty")return r.common.issues.push(...o.ctx.common.issues),o.result;let a=s.map(o=>new vt(o.ctx.common.issues));return q(r,{code:V.invalid_union,unionErrors:a}),he}if(r.common.async)return Promise.all(i.map(async s=>{let a={...r,common:{...r.common,issues:[]},parent:null};return{result:await s._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(n);{let s,a=[];for(let l of i){let h={...r,common:{...r.common,issues:[]},parent:null},c=l._parseSync({data:r.data,path:r.path,parent:h});if(c.status==="valid")return c;c.status==="dirty"&&!s&&(s={result:c,ctx:h}),h.common.issues.length&&a.push(h.common.issues)}if(s)return r.common.issues.push(...s.ctx.common.issues),s.result;let o=a.map(l=>new vt(l));return q(r,{code:V.invalid_union,unionErrors:o}),he}}get options(){return this._def.options}};Or.create=(t,e)=>new Or({options:t,typeName:ae.ZodUnion,...ce(e)});var es=t=>t instanceof Lr?es(t.schema):t instanceof bt?es(t.innerType()):t instanceof Br?[t.value]:t instanceof Vr?t.options:t instanceof Nr?Object.keys(t.enum):t instanceof zr?es(t._def.innerType):t instanceof Fr?[void 0]:t instanceof $r?[null]:null,ns=class t extends ue{_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==G.object)return q(r,{code:V.invalid_type,expected:G.object,received:r.parsedType}),he;let i=this.discriminator,n=r.data[i],s=this.optionsMap.get(n);return s?r.common.async?s._parseAsync({data:r.data,path:r.path,parent:r}):s._parseSync({data:r.data,path:r.path,parent:r}):(q(r,{code:V.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),he)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,r,i){let n=new Map;for(let s of r){let a=es(s.shape[e]);if(!a)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let o of a){if(n.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);n.set(o,s)}}return new t({typeName:ae.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:n,...ce(i)})}};function vo(t,e){let r=dr(t),i=dr(e);if(t===e)return{valid:!0,data:t};if(r===G.object&&i===G.object){let n=_e.objectKeys(e),s=_e.objectKeys(t).filter(o=>n.indexOf(o)!==-1),a={...t,...e};for(let o of s){let l=vo(t[o],e[o]);if(!l.valid)return{valid:!1};a[o]=l.data}return{valid:!0,data:a}}else if(r===G.array&&i===G.array){if(t.length!==e.length)return{valid:!1};let n=[];for(let s=0;s<t.length;s++){let a=t[s],o=e[s],l=vo(a,o);if(!l.valid)return{valid:!1};n.push(l.data)}return{valid:!0,data:n}}else return r===G.date&&i===G.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}var Rr=class extends ue{_parse(e){let{status:r,ctx:i}=this._processInputParams(e),n=(s,a)=>{if(go(s)||go(a))return he;let o=vo(s.value,a.value);return o.valid?((yo(s)||yo(a))&&r.dirty(),{status:r.value,value:o.data}):(q(i,{code:V.invalid_intersection_types}),he)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([s,a])=>n(s,a)):n(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};Rr.create=(t,e,r)=>new Rr({left:t,right:e,typeName:ae.ZodIntersection,...ce(r)});var qt=class t extends ue{_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==G.array)return q(i,{code:V.invalid_type,expected:G.array,received:i.parsedType}),he;if(i.data.length<this._def.items.length)return q(i,{code:V.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),he;!this._def.rest&&i.data.length>this._def.items.length&&(q(i,{code:V.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let s=[...i.data].map((a,o)=>{let l=this._def.items[o]||this._def.rest;return l?l._parse(new Ct(i,a,i.path,o)):null}).filter(a=>!!a);return i.common.async?Promise.all(s).then(a=>Qe.mergeArray(r,a)):Qe.mergeArray(r,s)}get items(){return this._def.items}rest(e){return new t({...this._def,rest:e})}};qt.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new qt({items:t,typeName:ae.ZodTuple,rest:null,...ce(e)})};var ss=class t extends ue{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==G.object)return q(i,{code:V.invalid_type,expected:G.object,received:i.parsedType}),he;let n=[],s=this._def.keyType,a=this._def.valueType;for(let o in i.data)n.push({key:s._parse(new Ct(i,o,i.path,o)),value:a._parse(new Ct(i,i.data[o],i.path,o))});return i.common.async?Qe.mergeObjectAsync(r,n):Qe.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(e,r,i){return r instanceof ue?new t({keyType:e,valueType:r,typeName:ae.ZodRecord,...ce(i)}):new t({keyType:fr.create(),valueType:e,typeName:ae.ZodRecord,...ce(r)})}},di=class extends ue{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==G.map)return q(i,{code:V.invalid_type,expected:G.map,received:i.parsedType}),he;let n=this._def.keyType,s=this._def.valueType,a=[...i.data.entries()].map(([o,l],h)=>({key:n._parse(new Ct(i,o,i.path,[h,"key"])),value:s._parse(new Ct(i,l,i.path,[h,"value"]))}));if(i.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let l of a){let h=await l.key,c=await l.value;if(h.status==="aborted"||c.status==="aborted")return he;(h.status==="dirty"||c.status==="dirty")&&r.dirty(),o.set(h.value,c.value)}return{status:r.value,value:o}})}else{let o=new Map;for(let l of a){let h=l.key,c=l.value;if(h.status==="aborted"||c.status==="aborted")return he;(h.status==="dirty"||c.status==="dirty")&&r.dirty(),o.set(h.value,c.value)}return{status:r.value,value:o}}}};di.create=(t,e,r)=>new di({valueType:e,keyType:t,typeName:ae.ZodMap,...ce(r)});var fi=class t extends ue{_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.parsedType!==G.set)return q(i,{code:V.invalid_type,expected:G.set,received:i.parsedType}),he;let n=this._def;n.minSize!==null&&i.data.size<n.minSize.value&&(q(i,{code:V.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&i.data.size>n.maxSize.value&&(q(i,{code:V.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());let s=this._def.valueType;function a(l){let h=new Set;for(let c of l){if(c.status==="aborted")return he;c.status==="dirty"&&r.dirty(),h.add(c.value)}return{status:r.value,value:h}}let o=[...i.data.values()].map((l,h)=>s._parse(new Ct(i,l,i.path,h)));return i.common.async?Promise.all(o).then(l=>a(l)):a(o)}min(e,r){return new t({...this._def,minSize:{value:e,message:re.toString(r)}})}max(e,r){return new t({...this._def,maxSize:{value:e,message:re.toString(r)}})}size(e,r){return this.min(e,r).max(e,r)}nonempty(e){return this.min(1,e)}};fi.create=(t,e)=>new fi({valueType:t,minSize:null,maxSize:null,typeName:ae.ZodSet,...ce(e)});var as=class t extends ue{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==G.function)return q(r,{code:V.invalid_type,expected:G.function,received:r.parsedType}),he;function i(o,l){return rs({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,ts(),tn].filter(h=>!!h),issueData:{code:V.invalid_arguments,argumentsError:l}})}function n(o,l){return rs({data:o,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,ts(),tn].filter(h=>!!h),issueData:{code:V.invalid_return_type,returnTypeError:l}})}let s={errorMap:r.common.contextualErrorMap},a=r.data;if(this._def.returns instanceof gr){let o=this;return it(async function(...l){let h=new vt([]),c=await o._def.args.parseAsync(l,s).catch(p=>{throw h.addIssue(i(l,p)),h}),u=await Reflect.apply(a,this,c);return await o._def.returns._def.type.parseAsync(u,s).catch(p=>{throw h.addIssue(n(u,p)),h})})}else{let o=this;return it(function(...l){let h=o._def.args.safeParse(l,s);if(!h.success)throw new vt([i(l,h.error)]);let c=Reflect.apply(a,this,h.data),u=o._def.returns.safeParse(c,s);if(!u.success)throw new vt([n(c,u.error)]);return u.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new t({...this._def,args:qt.create(e).rest(Kt.create())})}returns(e){return new t({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,r,i){return new t({args:e||qt.create([]).rest(Kt.create()),returns:r||Kt.create(),typeName:ae.ZodFunction,...ce(i)})}},Lr=class extends ue{get schema(){return this._def.getter()}_parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};Lr.create=(t,e)=>new Lr({getter:t,typeName:ae.ZodLazy,...ce(e)});var Br=class extends ue{_parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);return q(r,{received:r.data,code:V.invalid_literal,expected:this._def.value}),he}return{status:"valid",value:e.data}}get value(){return this._def.value}};Br.create=(t,e)=>new Br({value:t,typeName:ae.ZodLiteral,...ce(e)});function Th(t,e){return new Vr({values:t,typeName:ae.ZodEnum,...ce(e)})}var Vr=class t extends ue{_parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),i=this._def.values;return q(r,{expected:_e.joinValues(i),received:r.parsedType,code:V.invalid_type}),he}if(this._def.values.indexOf(e.data)===-1){let r=this._getOrReturnCtx(e),i=this._def.values;return q(r,{received:r.data,code:V.invalid_enum_value,options:i}),he}return it(e.data)}get options(){return this._def.values}get enum(){let e={};for(let r of this._def.values)e[r]=r;return e}get Values(){let e={};for(let r of this._def.values)e[r]=r;return e}get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e}extract(e){return t.create(e)}exclude(e){return t.create(this.options.filter(r=>!e.includes(r)))}};Vr.create=Th;var Nr=class extends ue{_parse(e){let r=_e.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==G.string&&i.parsedType!==G.number){let n=_e.objectValues(r);return q(i,{expected:_e.joinValues(n),received:i.parsedType,code:V.invalid_type}),he}if(r.indexOf(e.data)===-1){let n=_e.objectValues(r);return q(i,{received:i.data,code:V.invalid_enum_value,options:n}),he}return it(e.data)}get enum(){return this._def.values}};Nr.create=(t,e)=>new Nr({values:t,typeName:ae.ZodNativeEnum,...ce(e)});var gr=class extends ue{unwrap(){return this._def.type}_parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==G.promise&&r.common.async===!1)return q(r,{code:V.invalid_type,expected:G.promise,received:r.parsedType}),he;let i=r.parsedType===G.promise?r.data:Promise.resolve(r.data);return it(i.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}};gr.create=(t,e)=>new gr({type:t,typeName:ae.ZodPromise,...ce(e)});var bt=class extends ue{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ae.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:r,ctx:i}=this._processInputParams(e),n=this._def.effect||null,s={addIssue:a=>{q(i,a),a.fatal?r.abort():r.dirty()},get path(){return i.path}};if(s.addIssue=s.addIssue.bind(s),n.type==="preprocess"){let a=n.transform(i.data,s);return i.common.issues.length?{status:"dirty",value:i.data}:i.common.async?Promise.resolve(a).then(o=>this._def.schema._parseAsync({data:o,path:i.path,parent:i})):this._def.schema._parseSync({data:a,path:i.path,parent:i})}if(n.type==="refinement"){let a=o=>{let l=n.refinement(o,s);if(i.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(i.common.async===!1){let o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?he:(o.status==="dirty"&&r.dirty(),a(o.value),{status:r.value,value:o.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>o.status==="aborted"?he:(o.status==="dirty"&&r.dirty(),a(o.value).then(()=>({status:r.value,value:o.value}))))}if(n.type==="transform")if(i.common.async===!1){let a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!rn(a))return a;let o=n.transform(a.value,s);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:o}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=>rn(a)?Promise.resolve(n.transform(a.value,s)).then(o=>({status:r.value,value:o})):a);_e.assertNever(n)}};bt.create=(t,e,r)=>new bt({schema:t,typeName:ae.ZodEffects,effect:e,...ce(r)});bt.createWithPreprocess=(t,e,r)=>new bt({schema:e,effect:{type:"preprocess",transform:t},typeName:ae.ZodEffects,...ce(r)});var Bt=class extends ue{_parse(e){return this._getType(e)===G.undefined?it(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Bt.create=(t,e)=>new Bt({innerType:t,typeName:ae.ZodOptional,...ce(e)});var er=class extends ue{_parse(e){return this._getType(e)===G.null?it(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};er.create=(t,e)=>new er({innerType:t,typeName:ae.ZodNullable,...ce(e)});var zr=class extends ue{_parse(e){let{ctx:r}=this._processInputParams(e),i=r.data;return r.parsedType===G.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};zr.create=(t,e)=>new zr({innerType:t,typeName:ae.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...ce(e)});var mi=class extends ue{_parse(e){let{ctx:r}=this._processInputParams(e),i={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return is(n)?n.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new vt(i.common.issues)},input:i.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new vt(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};mi.create=(t,e)=>new mi({innerType:t,typeName:ae.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...ce(e)});var gi=class extends ue{_parse(e){if(this._getType(e)!==G.nan){let i=this._getOrReturnCtx(e);return q(i,{code:V.invalid_type,expected:G.nan,received:i.parsedType}),he}return{status:"valid",value:e.data}}};gi.create=t=>new gi({typeName:ae.ZodNaN,...ce(t)});var Ef=Symbol("zod_brand"),os=class extends ue{_parse(e){let{ctx:r}=this._processInputParams(e),i=r.data;return this._def.type._parse({data:i,path:r.path,parent:r})}unwrap(){return this._def.type}},nn=class t extends ue{_parse(e){let{status:r,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{let s=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?he:s.status==="dirty"?(r.dirty(),Ch(s.value)):this._def.out._parseAsync({data:s.value,path:i.path,parent:i})})();{let n=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return n.status==="aborted"?he:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:i.path,parent:i})}}static create(e,r){return new t({in:e,out:r,typeName:ae.ZodPipeline})}},yi=class extends ue{_parse(e){let r=this._def.innerType._parse(e);return rn(r)&&(r.value=Object.freeze(r.value)),r}};yi.create=(t,e)=>new yi({innerType:t,typeName:ae.ZodReadonly,...ce(e)});var Ih=(t,e={},r)=>t?mr.create().superRefine((i,n)=>{var s,a;if(!t(i)){let o=typeof e=="function"?e(i):typeof e=="string"?{message:e}:e,l=(a=(s=o.fatal)!==null&&s!==void 0?s:r)!==null&&a!==void 0?a:!0,h=typeof o=="string"?{message:o}:o;n.addIssue({code:"custom",...h,fatal:l})}}):mr.create(),Pf={object:ct.lazycreate},ae;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(ae||(ae={}));var Af=(t,e={message:`Input not instance of ${t.name}`})=>Ih(r=>r instanceof t,e),Mh=fr.create,Dh=Tr.create,Cf=gi.create,Tf=Ir.create,Fh=Mr.create,If=Dr.create,Mf=ui.create,Df=Fr.create,Ff=$r.create,$f=mr.create,Of=Kt.create,Rf=Vt.create,Lf=pi.create,Bf=Qt.create,Vf=ct.create,Nf=ct.strictCreate,zf=Or.create,jf=ns.create,Gf=Rr.create,Hf=qt.create,qf=ss.create,Uf=di.create,Wf=fi.create,Zf=as.create,Yf=Lr.create,Jf=Br.create,Xf=Vr.create,Kf=Nr.create,Qf=gr.create,Ph=bt.create,em=Bt.create,tm=er.create,rm=bt.createWithPreprocess,im=nn.create,nm=()=>Mh().optional(),sm=()=>Dh().optional(),am=()=>Fh().optional(),om={string:t=>fr.create({...t,coerce:!0}),number:t=>Tr.create({...t,coerce:!0}),boolean:t=>Mr.create({...t,coerce:!0}),bigint:t=>Ir.create({...t,coerce:!0}),date:t=>Dr.create({...t,coerce:!0})},lm=he,oe=Object.freeze({__proto__:null,defaultErrorMap:tn,setErrorMap:pf,getErrorMap:ts,makeIssue:rs,EMPTY_PATH:df,addIssueToContext:q,ParseStatus:Qe,INVALID:he,DIRTY:Ch,OK:it,isAborted:go,isDirty:yo,isValid:rn,isAsync:is,get util(){return _e},get objectUtil(){return mo},ZodParsedType:G,getParsedType:dr,ZodType:ue,ZodString:fr,ZodNumber:Tr,ZodBigInt:Ir,ZodBoolean:Mr,ZodDate:Dr,ZodSymbol:ui,ZodUndefined:Fr,ZodNull:$r,ZodAny:mr,ZodUnknown:Kt,ZodNever:Vt,ZodVoid:pi,ZodArray:Qt,ZodObject:ct,ZodUnion:Or,ZodDiscriminatedUnion:ns,ZodIntersection:Rr,ZodTuple:qt,ZodRecord:ss,ZodMap:di,ZodSet:fi,ZodFunction:as,ZodLazy:Lr,ZodLiteral:Br,ZodEnum:Vr,ZodNativeEnum:Nr,ZodPromise:gr,ZodEffects:bt,ZodTransformer:bt,ZodOptional:Bt,ZodNullable:er,ZodDefault:zr,ZodCatch:mi,ZodNaN:gi,BRAND:Ef,ZodBranded:os,ZodPipeline:nn,ZodReadonly:yi,custom:Ih,Schema:ue,ZodSchema:ue,late:Pf,get ZodFirstPartyTypeKind(){return ae},coerce:om,any:$f,array:Bf,bigint:Tf,boolean:Fh,date:If,discriminatedUnion:jf,effect:Ph,enum:Xf,function:Zf,instanceof:Af,intersection:Gf,lazy:Yf,literal:Jf,map:Uf,nan:Cf,nativeEnum:Kf,never:Rf,null:Ff,nullable:tm,number:Dh,object:Vf,oboolean:am,onumber:sm,optional:em,ostring:nm,pipeline:im,preprocess:rm,promise:Qf,record:qf,set:Wf,strictObject:Nf,string:Mh,symbol:Mf,transformer:Ph,tuple:Hf,undefined:Df,union:zf,unknown:Of,void:Lf,NEVER:lm,ZodIssueCode:V,quotelessJson:uf,ZodError:vt});var mv=oe.object({wsApiUrl:oe.string(),url:oe.string(),logoSvg:oe.string().optional(),logoUrl:oe.string().optional(),title:oe.string(),status:oe.string(),color:oe.string(),showStillLearningBanner:oe.boolean().optional(),input:oe.object({placeholder:oe.string()}),bubble:oe.object({imageUrl:oe.string().optional(),position:oe.object({bottom:oe.string().optional(),right:oe.string().optional(),left:oe.string().optional()})}),header:oe.object({background:oe.string()}),examples:oe.object({title:oe.string(),items:oe.array(oe.string())}),instructions:oe.object({items:oe.array(oe.string())}),popup:oe.object({mobileEnabled:oe.boolean().optional(),desktopEnabled:oe.boolean().optional(),delayMs:oe.number().optional(),text:oe.string().optional()}).optional(),tryItOut:oe.object({mobileEnabled:oe.boolean().optional(),desktopEnabled:oe.boolean().optional(),text:oe.string().optional()}).optional(),contactDetails:oe.object({email:oe.string().optional(),phone:oe.string().optional(),socialMedia:oe.object({facebook:oe.string().optional(),instagram:oe.string().optional(),twitter:oe.string().optional()}).optional()}).optional(),neverShowStillLearningBanner:oe.boolean().optional(),hidden:oe.boolean().optional()});function hm(t){return t.replace(/[^A-Za-z0-9_-]/gi,"")}window.__INIT_MOLIN_SHOP_AI=function(e){if(!e)throw new Error("options is required");let{widgetId:r,config:i}=e;if(!r)throw new Error("widgetId is required");if(!i)throw new Error("config is required");r=hm(r);let n=document.createElement("molin-shop-ai");n.setAttribute("widget",r),n.config=i,document.body.appendChild(n)};var ls=globalThis,cs=ls.ShadowRoot&&(ls.ShadyCSS===void 0||ls.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Oh=Symbol(),$h=new WeakMap,hs=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==Oh)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(cs&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=$h.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&$h.set(r,e))}return e}toString(){return this.cssText}},Rh=t=>new hs(typeof t=="string"?t:t+"",void 0,Oh);var bo=(t,e)=>{if(cs)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=ls.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},us=cs?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return Rh(r)})(t):t;var{is:cm,defineProperty:um,getOwnPropertyDescriptor:pm,getOwnPropertyNames:dm,getOwnPropertySymbols:fm,getPrototypeOf:mm}=Object,ps=globalThis,Lh=ps.trustedTypes,gm=Lh?Lh.emptyScript:"",ym=ps.reactiveElementPolyfillSupport,sn=(t,e)=>t,_o={toAttribute(t,e){switch(e){case Boolean:t=t?gm:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Vh=(t,e)=>!cm(t,e),Bh={attribute:!0,type:String,converter:_o,reflect:!1,hasChanged:Vh};Symbol.metadata??=Symbol("metadata"),ps.litPropertyMetadata??=new WeakMap;var jr=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=Bh){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&um(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:s}=pm(this.prototype,e)??{get(){return this[r]},set(a){this[r]=a}};return{get(){return n?.call(this)},set(a){let o=n?.call(this);s.call(this,a),this.requestUpdate(e,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Bh}static _$Ei(){if(this.hasOwnProperty(sn("elementProperties")))return;let e=mm(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(sn("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(sn("properties"))){let r=this.properties,i=[...dm(r),...fm(r)];for(let n of i)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(us(n))}else e!==void 0&&r.push(us(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return bo(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$EO(e,r){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let s=(i.converter?.toAttribute!==void 0?i.converter:_o).toAttribute(r,i.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,r){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let s=i.getPropertyOptions(n),a=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:_o;this._$Em=n,this[n]=a.fromAttribute(r,s.type),this._$Em=null}}requestUpdate(e,r,i,n=!1,s){if(e!==void 0){if(i??=this.constructor.getPropertyOptions(e),!(i.hasChanged??Vh)(n?s:this[e],r))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,i){this._$AL.has(e)||this._$AL.set(e,r),i.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,s]of i)s.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],s)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$ET()}catch(i){throw e=!1,this._$ET(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};jr.elementStyles=[],jr.shadowRootOptions={mode:"open"},jr[sn("elementProperties")]=new Map,jr[sn("finalized")]=new Map,ym?.({ReactiveElement:jr}),(ps.reactiveElementVersions??=[]).push("2.0.2");var xo=globalThis,ds=xo.trustedTypes,Nh=ds?ds.createPolicy("lit-html",{createHTML:t=>t}):void 0,So="$lit$",tr=`lit$${(Math.random()+"").slice(9)}$`,ko="?"+tr,vm=`<${ko}>`,qr=document,on=()=>qr.createComment(""),ln=t=>t===null||typeof t!="object"&&typeof t!="function",Uh=Array.isArray,Wh=t=>Uh(t)||typeof t?.[Symbol.iterator]=="function",wo=`[
2
+ \f\r]`,an=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,zh=/-->/g,jh=/>/g,Gr=RegExp(`>|${wo}(?:([^\\s"'>=/]+)(${wo}*=${wo}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Gh=/'/g,Hh=/"/g,Zh=/^(?:script|style|textarea|title)$/i,Yh=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),ge=Yh(1),Pv=Yh(2),_t=Symbol.for("lit-noChange"),De=Symbol.for("lit-nothing"),qh=new WeakMap,Hr=qr.createTreeWalker(qr,129);function Jh(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Nh!==void 0?Nh.createHTML(e):e}var Xh=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":"",a=an;for(let o=0;o<r;o++){let l=t[o],h,c,u=-1,f=0;for(;f<l.length&&(a.lastIndex=f,c=a.exec(l),c!==null);)f=a.lastIndex,a===an?c[1]==="!--"?a=zh:c[1]!==void 0?a=jh:c[2]!==void 0?(Zh.test(c[2])&&(n=RegExp("</"+c[2],"g")),a=Gr):c[3]!==void 0&&(a=Gr):a===Gr?c[0]===">"?(a=n??an,u=-1):c[1]===void 0?u=-2:(u=a.lastIndex-c[2].length,h=c[1],a=c[3]===void 0?Gr:c[3]==='"'?Hh:Gh):a===Hh||a===Gh?a=Gr:a===zh||a===jh?a=an:(a=Gr,n=void 0);let p=a===Gr&&t[o+1].startsWith("/>")?" ":"";s+=a===an?l+vm:u>=0?(i.push(h),l.slice(0,u)+So+l.slice(u)+tr+p):l+tr+(u===-2?o:p)}return[Jh(t,s+(t[r]||"<?>")+(e===2?"</svg>":"")),i]},hn=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,a=0,o=e.length-1,l=this.parts,[h,c]=Xh(e,r);if(this.el=t.createElement(h,i),Hr.currentNode=this.el.content,r===2){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=Hr.nextNode())!==null&&l.length<o;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(So)){let f=c[a++],p=n.getAttribute(u).split(tr),m=/([.?@])?(.*)/.exec(f);l.push({type:1,index:s,name:m[2],strings:p,ctor:m[1]==="."?ms:m[1]==="?"?gs:m[1]==="@"?ys:Wr}),n.removeAttribute(u)}else u.startsWith(tr)&&(l.push({type:6,index:s}),n.removeAttribute(u));if(Zh.test(n.tagName)){let u=n.textContent.split(tr),f=u.length-1;if(f>0){n.textContent=ds?ds.emptyScript:"";for(let p=0;p<f;p++)n.append(u[p],on()),Hr.nextNode(),l.push({type:2,index:++s});n.append(u[f],on())}}}else if(n.nodeType===8)if(n.data===ko)l.push({type:2,index:s});else{let u=-1;for(;(u=n.data.indexOf(tr,u+1))!==-1;)l.push({type:7,index:s}),u+=tr.length-1}s++}}static createElement(e,r){let i=qr.createElement("template");return i.innerHTML=e,i}};function Ur(t,e,r=t,i){if(e===_t)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=ln(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Ur(t,n._$AS(t,e.values),n,i)),e}var fs=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,n=(e?.creationScope??qr).importNode(r,!0);Hr.currentNode=n;let s=Hr.nextNode(),a=0,o=0,l=i[0];for(;l!==void 0;){if(a===l.index){let h;l.type===2?h=new vi(s,s.nextSibling,this,e):l.type===1?h=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(h=new vs(s,this,e)),this._$AV.push(h),l=i[++o]}a!==l?.index&&(s=Hr.nextNode(),a++)}return Hr.currentNode=qr,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},vi=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=De,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Ur(this,e,r),ln(e)?e===De||e==null||e===""?(this._$AH!==De&&this._$AR(),this._$AH=De):e!==this._$AH&&e!==_t&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Wh(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==De&&ln(this._$AH)?this._$AA.nextSibling.data=e:this.$(qr.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=hn.createElement(Jh(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new fs(n,this),a=s.u(this.options);s.p(r),this.$(a),this._$AH=s}}_$AC(e){let r=qh.get(e.strings);return r===void 0&&qh.set(e.strings,r=new hn(e)),r}T(e){Uh(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.k(on()),this.k(on()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Wr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=De,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=De}_$AI(e,r=this,i,n){let s=this.strings,a=!1;if(s===void 0)e=Ur(this,e,r,0),a=!ln(e)||e!==this._$AH&&e!==_t,a&&(this._$AH=e);else{let o=e,l,h;for(e=s[0],l=0;l<s.length-1;l++)h=Ur(this,o[i+l],r,l),h===_t&&(h=this._$AH[l]),a||=!ln(h)||h!==this._$AH[l],h===De?e=De:e!==De&&(e+=(h??"")+s[l+1]),this._$AH[l]=h}a&&!n&&this.O(e)}O(e){e===De?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ms=class extends Wr{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===De?void 0:e}},gs=class extends Wr{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==De)}},ys=class extends Wr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){if((e=Ur(this,e,r,0)??De)===_t)return;let i=this._$AH,n=e===De&&i!==De||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==De&&(i===De||n);n&&this.element.removeEventListener(this.name,this,i),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},vs=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Ur(this,e)}},Kh={j:So,P:tr,A:ko,C:1,M:Xh,L:fs,R:Wh,V:Ur,D:vi,I:Wr,H:gs,N:ys,U:ms,B:vs},bm=xo.litHtmlPolyfillSupport;bm?.(hn,vi),(xo.litHtmlVersions??=[]).push("3.1.0");var Qh=(t,e,r)=>{let i=r?.renderBefore??e,n=i._$litPart$;if(n===void 0){let s=r?.renderBefore??null;i._$litPart$=n=new vi(e.insertBefore(on(),s),s,void 0,r??{})}return n._$AI(t),n};var bs=globalThis,_s=bs.ShadowRoot&&(bs.ShadyCSS===void 0||bs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Eo=Symbol(),ec=new WeakMap,cn=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==Eo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(_s&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=ec.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&ec.set(r,e))}return e}toString(){return this.cssText}},tc=t=>new cn(typeof t=="string"?t:t+"",void 0,Eo),Po=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,s)=>i+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[s+1],t[0]);return new cn(r,t,Eo)},Ao=(t,e)=>{if(_s)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=bs.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}},ws=_s?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return tc(r)})(t):t;var{is:_m,defineProperty:wm,getOwnPropertyDescriptor:xm,getOwnPropertyNames:Sm,getOwnPropertySymbols:km,getPrototypeOf:Em}=Object,xs=globalThis,rc=xs.trustedTypes,Pm=rc?rc.emptyScript:"",Am=xs.reactiveElementPolyfillSupport,un=(t,e)=>t,Co={toAttribute(t,e){switch(e){case Boolean:t=t?Pm:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},nc=(t,e)=>!_m(t,e),ic={attribute:!0,type:String,converter:Co,reflect:!1,hasChanged:nc};Symbol.metadata??=Symbol("metadata"),xs.litPropertyMetadata??=new WeakMap;var rr=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=ic){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(e,i,r);n!==void 0&&wm(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){let{get:n,set:s}=xm(this.prototype,e)??{get(){return this[r]},set(a){this[r]=a}};return{get(){return n?.call(this)},set(a){let o=n?.call(this);s.call(this,a),this.requestUpdate(e,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ic}static _$Ei(){if(this.hasOwnProperty(un("elementProperties")))return;let e=Em(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(un("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(un("properties"))){let r=this.properties,i=[...Sm(r),...km(r)];for(let n of i)this.createProperty(n,r[n])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[i,n]of r)this.elementProperties.set(i,n)}this._$Eh=new Map;for(let[r,i]of this.elementProperties){let n=this._$Eu(r,i);n!==void 0&&this._$Eh.set(n,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(ws(n))}else e!==void 0&&r.push(ws(e));return r}static _$Eu(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,r=this.constructor.elementProperties;for(let i of r.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ao(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$EO(e,r){let i=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,i);if(n!==void 0&&i.reflect===!0){let s=(i.converter?.toAttribute!==void 0?i.converter:Co).toAttribute(r,i.type);this._$Em=e,s==null?this.removeAttribute(n):this.setAttribute(n,s),this._$Em=null}}_$AK(e,r){let i=this.constructor,n=i._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let s=i.getPropertyOptions(n),a=typeof s.converter=="function"?{fromAttribute:s.converter}:s.converter?.fromAttribute!==void 0?s.converter:Co;this._$Em=n,this[n]=a.fromAttribute(r,s.type),this._$Em=null}}requestUpdate(e,r,i,n=!1,s){if(e!==void 0){if(i??=this.constructor.getPropertyOptions(e),!(i.hasChanged??nc)(n?s:this[e],r))return;this.C(e,r,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,i){this._$AL.has(e)||this._$AL.set(e,r),i.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,s]of this._$Ep)this[n]=s;this._$Ep=void 0}let i=this.constructor.elementProperties;if(i.size>0)for(let[n,s]of i)s.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],s)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(i=>i.hostUpdate?.()),this.update(r)):this._$ET()}catch(i){throw e=!1,this._$ET(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};rr.elementStyles=[],rr.shadowRootOptions={mode:"open"},rr[un("elementProperties")]=new Map,rr[un("finalized")]=new Map,Am?.({ReactiveElement:rr}),(xs.reactiveElementVersions??=[]).push("2.0.2");var ke=class extends rr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Qh(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return _t}};ke._$litElement$=!0,ke.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ke});var Cm=globalThis.litElementPolyfillSupport;Cm?.({LitElement:ke});(globalThis.litElementVersions??=[]).push("4.0.2");var bi={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},_i=t=>(...e)=>({_$litDirective$:t,values:e}),yr=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{D:Tm}=Kh;var sc=()=>document.createComment(""),wi=(t,e,r)=>{let i=t._$AA.parentNode,n=e===void 0?t._$AB:e._$AA;if(r===void 0){let s=i.insertBefore(sc(),n),a=i.insertBefore(sc(),n);r=new Tm(s,a,t,t.options)}else{let s=r._$AB.nextSibling,a=r._$AM,o=a!==t;if(o){let l;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(l=t._$AU)!==a._$AU&&r._$AP(l)}if(s!==n||o){let l=r._$AA;for(;l!==s;){let h=l.nextSibling;i.insertBefore(l,n),l=h}}}return r},vr=(t,e,r=t)=>(t._$AI(e,r),t),Im={},ac=(t,e=Im)=>t._$AH=e,oc=t=>t._$AH,Ss=t=>{t._$AP?.(!1,!0);let e=t._$AA,r=t._$AB.nextSibling;for(;e!==r;){let i=e.nextSibling;e.remove(),e=i}};var lc=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},ks=_i(class extends yr{constructor(t){if(super(t),t.type!==bi.CHILD)throw Error("repeat() can only be used in text expressions")}ht(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);let n=[],s=[],a=0;for(let o of t)n[a]=i?i(o,a):a,s[a]=r(o,a),a++;return{values:s,keys:n}}render(t,e,r){return this.ht(t,e,r).values}update(t,[e,r,i]){let n=oc(t),{values:s,keys:a}=this.ht(e,r,i);if(!Array.isArray(n))return this.dt=a,s;let o=this.dt??=[],l=[],h,c,u=0,f=n.length-1,p=0,m=s.length-1;for(;u<=f&&p<=m;)if(n[u]===null)u++;else if(n[f]===null)f--;else if(o[u]===a[p])l[p]=vr(n[u],s[p]),u++,p++;else if(o[f]===a[m])l[m]=vr(n[f],s[m]),f--,m--;else if(o[u]===a[m])l[m]=vr(n[u],s[m]),wi(t,l[m+1],n[u]),u++,m--;else if(o[f]===a[p])l[p]=vr(n[f],s[p]),wi(t,n[u],n[f]),f--,p++;else if(h===void 0&&(h=lc(a,p,m),c=lc(o,u,f)),h.has(o[u]))if(h.has(o[f])){let g=c.get(a[p]),d=g!==void 0?n[g]:null;if(d===null){let y=wi(t,n[u]);vr(y,s[p]),l[p]=y}else l[p]=vr(d,s[p]),wi(t,n[u],d),n[g]=null;p++}else Ss(n[f]),f--;else Ss(n[u]),u++;for(;p<=m;){let g=wi(t,l[m+1]);vr(g,s[p]),l[p++]=g}for(;u<=f;){let g=n[u++];g!==null&&Ss(g)}return this.dt=a,ac(t,l),_t}});function Bo(t){return[...t.v,(t.i?"!":"")+t.n].join(":")}function Mm(t,e=","){return t.map(Bo).join(e)}var mc=typeof CSS<"u"&&CSS.escape||(t=>t.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function Es(t){for(var e=9,r=t.length;r--;)e=Math.imul(e^t.charCodeAt(r),1597334677);return"#"+((e^e>>>9)>>>0).toString(36)}function Cs(t,e="@media "){return e+Te(t).map(r=>(typeof r=="string"&&(r={min:r}),r.raw||Object.keys(r).map(i=>`(${i}-width:${r[i]})`).join(" and "))).join(",")}function Te(t=[]){return Array.isArray(t)?t:t==null?[]:[t]}function hc(t){return t}function Ts(){}var Ne={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function gc(t){return t.match(/[-=:;]/g)?.length||0}function Fo(t){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(t)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(gc(t),15)<<18}var Dm=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function Vo({n:t,i:e,v:r=[]},i,n,s){t&&(t=Bo({n:t,i:e,v:r})),s=[...Te(s)];for(let o of r){let l=i.theme("screens",o);for(let h of Te(l&&Cs(l)||i.v(o))){var a;s.push(h),n|=l?67108864|Fo(h):o=="dark"?1073741824:h[0]=="@"?Fo(h):(a=h,1<<~(/:([a-z-]+)/.test(a)&&~Dm.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:t,p:n,r:s,i:e}}var yc=new Map;function $o(t){if(t.d){let e=[],r=To(t.r.reduce((i,n)=>n[0]=="@"?(e.push(n),i):n?To(i,s=>To(n,a=>{let o=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(a);if(o){let l=s.indexOf(o[1]);return~l?s.slice(0,l)+o[0]+s.slice(l+o[1].length):Io(s,a)}return Io(a,s)})):i,"&"),i=>Io(i,t.n?"."+mc(t.n):""));return r&&e.push(r.replace(/:merge\((.+?)\)/g,"$1")),e.reduceRight((i,n)=>n+"{"+i+"}",t.d)}}function To(t,e){return t.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(r,i,n)=>e(i)+n)}function Io(t,e){return t.replace(/&/g,e)}var cc=new Intl.Collator("en",{numeric:!0});function vc(t,e){for(var r=0,i=t.length;r<i;){let n=i+r>>1;0>=bc(t[n],e)?r=n+1:i=n}return i}function bc(t,e){let r=t.p&Ne.o;return r==(e.p&Ne.o)&&(r==Ne.b||r==Ne.o)?0:t.p-e.p||t.o-e.o||cc.compare(uc(t.n),uc(e.n))||cc.compare(pc(t.n),pc(e.n))}function uc(t){return(t||"").split(/:/).pop().split("/").pop()||"\0"}function pc(t){return(t||"").replace(/\W/g,e=>String.fromCharCode(127+e.charCodeAt(0)))+"\0"}function Mo(t,e){return Math.round(parseInt(t,16)*e)}function Tt(t,e={}){if(typeof t=="function")return t(e);let{opacityValue:r="1",opacityVariable:i}=e,n=i?`var(${i})`:r;if(t.includes("<alpha-value>"))return t.replace("<alpha-value>",n);if(t[0]=="#"&&(t.length==4||t.length==7)){let s=(t.length-1)/3,a=[17,1,.062272][s-1];return`rgba(${[Mo(t.substr(1,s),a),Mo(t.substr(1+s,s),a),Mo(t.substr(1+2*s,s),a),n]})`}return n=="1"?t:n=="0"?"#0000":t.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${n})`)}function _c(t,e,r,i,n=[]){return function s(a,{n:o,p:l,r:h=[],i:c},u){let f=[],p="",m=0,g=0;for(let v in a||{}){var d,y;let b=a[v];if(v[0]=="@"){if(!b)continue;if(v[1]=="a"){f.push(...zo(o,l,As(""+b),u,l,h,c,!0));continue}if(v[1]=="l"){for(let _ of Te(b))f.push(...s(_,{n:o,p:(d=Ne[v[7]],l&~Ne.o|d),r:v[7]=="d"?[]:h,i:c},u));continue}if(v[1]=="i"){f.push(...Te(b).map(_=>({p:-1,o:0,r:[],d:v+" "+_})));continue}if(v[1]=="k"){f.push({p:Ne.d,o:0,r:[v],d:s(b,{p:Ne.d},u).map($o).join("")});continue}if(v[1]=="f"){f.push(...Te(b).map(_=>({p:Ne.d,o:0,r:[v],d:s(_,{p:Ne.d},u).map($o).join("")})));continue}}if(typeof b!="object"||Array.isArray(b))v=="label"&&b?o=b+Es(JSON.stringify([l,c,a])):(b||b===0)&&(v=v.replace(/[A-Z]/g,_=>"-"+_.toLowerCase()),g+=1,m=Math.max(m,(y=v)[0]=="-"?0:gc(y)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(y)?+!!RegExp.$1||-!!RegExp.$2:0)+1),p+=(p?";":"")+Te(b).map(_=>u.s(v,No(""+_,u.theme)+(c?" !important":""))).join(";"));else if(v[0]=="@"||v.includes("&")){let _=l;v[0]=="@"&&(v=v.replace(/\bscreen\(([^)]+)\)/g,(S,T)=>{let x=u.theme("screens",T);return x?(_|=67108864,Cs(x,"")):S}),_|=Fo(v)),f.push(...s(b,{n:o,p:_,r:[...h,v],i:c},u))}else f.push(...s(b,{p:l,r:[...h,v]},u))}return f.unshift({n:o,p:l,o:Math.max(0,15-g)+1.5*Math.min(m||15,15),r:h,d:p}),f.sort(bc)}(t,Vo(e,r,i,n),r)}function No(t,e){return t.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(r,i,n,s,a="")=>{let o=e(n,a);return typeof o=="function"&&/color|fill|stroke/i.test(n)?Tt(o):""+Te(o).filter(l=>Object(l)!==l)})}function wc(t,e){let r,i=[];for(let n of t)n.d&&n.n?r?.p==n.p&&""+r.r==""+n.r?(r.c=[r.c,n.c].filter(Boolean).join(" "),r.d=r.d+";"+n.d):i.push(r={...n,n:n.n&&e}):i.push({...n,n:n.n&&e});return i}function Ps(t,e,r=Ne.u,i,n){let s=[];for(let a of t)for(let o of function(l,h,c,u,f){l={...l,i:l.i||f};let p=function(m,g){let d=yc.get(m.n);return d?d(m,g):g.r(m.n,m.v[0]=="dark")}(l,h);return p?typeof p=="string"?({r:u,p:c}=Vo(l,h,c,u),wc(Ps(As(p),h,c,u,l.i),l.n)):Array.isArray(p)?p.map(m=>{var g,d;return{o:0,...m,r:[...Te(u),...Te(m.r)],p:(g=c,d=m.p??c,g&~Ne.o|d)}}):_c(p,l,h,c,u):[{c:Bo(l),p:0,o:0,r:[]}]}(a,e,r,i,n))s.splice(vc(s,o),0,o);return s}function zo(t,e,r,i,n,s,a,o){return wc((o?r.flatMap(l=>Ps([l],i,n,s,a)):Ps(r,i,n,s,a)).map(l=>l.p&Ne.o&&(l.n||e==Ne.b)?{...l,p:l.p&~Ne.o|e,o:0}:l),t)}function Fm(t,e,r,i){var n;return n=(s,a)=>{let{n:o,p:l,r:h,i:c}=Vo(s,a,e);return r&&zo(o,e,r,a,l,h,c,i)},yc.set(t,n),t}function Do(t,e,r){if(t[t.length-1]!="("){let i=[],n=!1,s=!1,a="";for(let o of t)if(!(o=="("||/[~@]$/.test(o))){if(o[0]=="!"&&(o=o.slice(1),n=!n),o.endsWith(":")){i[o=="dark:"?"unshift":"push"](o.slice(0,-1));continue}o[0]=="-"&&(o=o.slice(1),s=!s),o.endsWith("-")&&(o=o.slice(0,-1)),o&&o!="&"&&(a+=(a&&"-")+o)}a&&(s&&(a="-"+a),e[0].push({n:a,v:i.filter($m),i:n}))}}function $m(t,e,r){return r.indexOf(t)==e}var dc=new Map;function As(t){let e=dc.get(t);if(!e){let r=[],i=[[]],n=0,s=0,a=null,o=0,l=(h,c=0)=>{n!=o&&(r.push(t.slice(n,o+c)),h&&Do(r,i)),n=o+1};for(;o<t.length;o++){let h=t[o];if(s)t[o-1]!="\\"&&(s+=+(h=="[")||-(h=="]"));else if(h=="[")s+=1;else if(a)t[o-1]!="\\"&&a.test(t.slice(o))&&(a=null,n=o+RegExp.lastMatch.length);else if(h=="/"&&t[o-1]!="\\"&&(t[o+1]=="*"||t[o+1]=="/"))a=t[o+1]=="*"?/^\*\//:/^[\r\n]/;else if(h=="(")l(),r.push(h);else if(h==":")t[o+1]!=":"&&l(!1,1);else if(/[\s,)]/.test(h)){l(!0);let c=r.lastIndexOf("(");if(h==")"){let u=r[c-1];if(/[~@]$/.test(u)){let f=i.shift();r.length=c,Do([...r,"#"],i);let{v:p}=i[0].pop();for(let m of f)m.v.splice(+(m.v[0]=="dark")-+(p[0]=="dark"),p.length);Do([...r,Fm(u.length>1?u.slice(0,-1)+Es(JSON.stringify([u,f])):u+"("+Mm(f)+")",Ne.a,f,/@$/.test(u))],i)}c=r.lastIndexOf("(",c-1)}r.length=c+1}else/[~@]/.test(h)&&t[o+1]=="("&&i.unshift([])}l(!0),dc.set(t,e=i[0])}return e}function N(t,e,r){return[t,Oo(e,r)]}function Oo(t,e){return typeof t=="function"?t:typeof t=="string"&&/^[\w-]+$/.test(t)?(r,i)=>({[t]:e?e(r,i):Ro(r,1)}):r=>t||{[r[1]]:Ro(r,2)}}function Ro(t,e,r=t.slice(e).find(Boolean)||t.$$||t.input){return t.input[0]=="-"?`calc(${r} * -1)`:r}function z(t,e,r,i){return[t,jo(e,r,i)]}function jo(t,e,r){let i=typeof e=="string"?(n,s)=>({[e]:r?r(n,s):n._}):e||(({1:n,_:s},a,o)=>({[n||o]:s}));return(n,s)=>{let a=xc(t||n[1]),o=s.theme(a,n.$$)??Ut(n.$$,a,s);if(o!=null)return n._=Ro(n,0,o),i(n,s,a)}}function ze(t,e={},r){return[t,Om(e,r)]}function Om(t={},e){return(r,i)=>{let{section:n=xc(r[0]).replace("-","")+"Color"}=t,[s,a]=Rm(r.$$);if(!s)return;let o=i.theme(n,s)||Ut(s,n,i);if(!o||typeof o=="object")return;let{opacityVariable:l=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:h=n.replace("Color","Opacity"),property:c=n,selector:u}=t,f=i.theme(h,a||"DEFAULT")||a&&Ut(a,h,i),p=e||(({_:g})=>{let d=pn(c,g);return u?{[u]:d}:d});r._={value:Tt(o,{opacityVariable:l||void 0,opacityValue:f||void 0}),color:g=>Tt(o,g),opacityVariable:l||void 0,opacityValue:f||void 0};let m=p(r,i);if(!r.dark){let g=i.d(n,s,o);g&&g!==o&&(r._={value:Tt(g,{opacityVariable:l||void 0,opacityValue:f||"1"}),color:d=>Tt(g,d),opacityVariable:l||void 0,opacityValue:f||void 0},m={"&":m,[i.v("dark")]:p(r,i)})}return m}}function Rm(t){return(t.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function pn(t,e){let r={};return typeof e=="string"?r[t]=e:(e.opacityVariable&&e.value.includes(e.opacityVariable)&&(r[e.opacityVariable]=e.opacityValue||"1"),r[t]=e.value),r}function Ut(t,e,r){if(t[0]=="["&&t.slice(-1)=="]"){if(t=xi(No(t.slice(1,-1),r.theme)),!e)return t;if(!(/color|fill|stroke/i.test(e)&&!(/^color:/.test(t)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(t))||/image/i.test(e)&&!(/^image:/.test(t)||/^[a-z-]+\(/.test(t))||/weight/i.test(e)&&!(/^(number|any):/.test(t)||/^\d+$/.test(t))||/position/i.test(e)&&/^(length|size):/.test(t)))return t.replace(/^[a-z-]+:/,"")}}function xc(t){return t.replace(/-./g,e=>e[1].toUpperCase())}function xi(t){return t.includes("url(")?t.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,r="",i,n="")=>xi(r)+i+xi(n)):t.replace(/(^|[^\\])_+/g,(e,r)=>r+" ".repeat(e.length-r.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,e=>e.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}function Go({presets:t=[],...e}){let r={darkMode:void 0,darkColor:void 0,preflight:e.preflight!==!1&&[],theme:{},variants:Te(e.variants),rules:Te(e.rules),ignorelist:Te(e.ignorelist),hash:void 0,stringify:(i,n)=>i+":"+n,finalize:[]};for(let i of Te([...t,{darkMode:e.darkMode,darkColor:e.darkColor,preflight:e.preflight!==!1&&Te(e.preflight),theme:e.theme,hash:e.hash,stringify:e.stringify,finalize:e.finalize}])){let{preflight:n,darkMode:s=r.darkMode,darkColor:a=r.darkColor,theme:o,variants:l,rules:h,ignorelist:c,hash:u=r.hash,stringify:f=r.stringify,finalize:p}=typeof i=="function"?i(r):i;r={preflight:r.preflight!==!1&&n!==!1&&[...r.preflight,...Te(n)],darkMode:s,darkColor:a,theme:{...r.theme,...o,extend:{...r.theme.extend,...o?.extend}},variants:[...r.variants,...Te(l)],rules:[...r.rules,...Te(h)],ignorelist:[...r.ignorelist,...Te(c)],hash:u,stringify:f,finalize:[...r.finalize,...Te(p)]}}return r}function fc(t,e,r,i,n,s){for(let a of e){let o=r.get(a);o||r.set(a,o=i(a));let l=o(t,n,s);if(l)return l}}function Lm(t){var e;return Lo(t[0],typeof(e=t[1])=="function"?e:()=>e)}function Bm(t){var e,r;return Array.isArray(t)?Lo(t[0],Oo(t[1],t[2])):Lo(t,Oo(e,r))}function Lo(t,e){return Sc(t,(r,i,n,s)=>{let a=i.exec(r);if(a)return a.$$=r.slice(a[0].length),a.dark=s,e(a,n)})}function Sc(t,e){let r=Te(t).map(Vm);return(i,n,s)=>{for(let a of r){let o=e(i,a,n,s);if(o)return o}}}function Vm(t){return typeof t=="string"?RegExp("^"+t+(t.includes("$")||t.slice(-1)=="-"?"":"$")):t}function kc(t,e){let r=Go(t),i=function({theme:l,darkMode:h,darkColor:c=Ts,variants:u,rules:f,hash:p,stringify:m,ignorelist:g,finalize:d}){let y=new Map,v=new Map,b=new Map,_=new Map,S=Sc(g,(w,M)=>M.test(w));u.push(["dark",Array.isArray(h)||h=="class"?`${Te(h)[1]||".dark"} &`:typeof h=="string"&&h!="media"?h:"@media (prefers-color-scheme:dark)"]);let T=typeof p=="function"?w=>p(w,Es):p?Es:hc;T!==hc&&d.push(w=>({...w,n:w.n&&T(w.n),d:w.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(M,k)=>"--"+T(k).replace("#",""))}));let x={theme:function({extend:w={},...M}){let k={},I={get colors(){return P("colors")},theme:P,negative(){return{}},breakpoints(E){let F={};for(let $ in E)typeof E[$]=="string"&&(F["screen-"+$]=E[$]);return F}};return P;function P(E,F,$,D){if(E){if({1:E,2:D}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(E)||[,E],/[.[]/.test(E)){let U=[];E.replace(/\[([^\]]+)\]|([^.[]+)/g,(W,X,H=X)=>U.push(H)),E=U.shift(),$=F,F=U.join("-")}let R=k[E]||Object.assign(Object.assign(k[E]={},A(M,E)),A(w,E));if(F==null)return R;F||(F="DEFAULT");let B=R[F]??F.split("-").reduce((U,W)=>U?.[W],R)??$;return D?Tt(B,{opacityValue:No(D,P)}):B}let C={};for(let R of[...Object.keys(M),...Object.keys(w)])C[R]=P(R);return C}function A(E,F){let $=E[F];return typeof $=="function"&&($=$(I)),$&&/color|fill|stroke/i.test(F)?function D(C,R=[]){let B={};for(let U in C){let W=C[U],X=[...R,U];B[X.join("-")]=W,U=="DEFAULT"&&(X=R,B[R.join("-")]=W),typeof W=="object"&&Object.assign(B,D(W,X))}return B}($):$}}(l),e:mc,h:T,s(w,M){return m(w,M,x)},d(w,M,k){return c(w,M,x,k)},v(w){return y.has(w)||y.set(w,fc(w,u,v,Lm,x)||"&:"+w),y.get(w)},r(w,M){let k=JSON.stringify([w,M]);return b.has(k)||b.set(k,!S(w,x)&&fc(w,f,_,Bm,x,M)),b.get(k)},f(w){return d.reduce((M,k)=>k(M,x),w)}};return x}(r),n=new Map,s=[],a=new Set;e.resume(l=>n.set(l,l),(l,h)=>{e.insert(l,s.length,h),s.push(h),a.add(l)});function o(l){let h=i.f(l),c=$o(h);if(c&&!a.has(c)){a.add(c);let u=vc(s,l);e.insert(c,u,l),s.splice(u,0,l)}return h.n}return Object.defineProperties(function(h){if(!n.size)for(let u of Te(r.preflight))typeof u=="function"&&(u=u(i)),u&&(typeof u=="string"?zo("",Ne.b,As(u),i,Ne.b,[],!1,!0):_c(u,{},i,Ne.b)).forEach(o);h=""+h;let c=n.get(h);if(!c){let u=new Set;for(let f of Ps(As(h),i))u.add(f.c).add(o(f));c=[...u].filter(Boolean).join(" "),n.set(h,c).set(c,c)}return c},Object.getOwnPropertyDescriptors({get target(){return e.target},theme:i.theme,config:r,snapshot(){let l=e.snapshot(),h=new Set(a),c=new Map(n),u=[...s];return()=>{l(),a=h,n=c,s=u}},clear(){e.clear(),a=new Set,n=new Map,s=[]},destroy(){this.clear(),e.destroy()}}))}function Nm(t,e){return t!=e&&""+t.split(" ").sort()!=""+e.split(" ").sort()}function Ec(t){let e=new MutationObserver(r);return{observe(n){e.observe(n,{attributeFilter:["class"],subtree:!0,childList:!0}),i(n),r([{target:n,type:""}])},disconnect(){e.disconnect()}};function r(n){for(let{type:s,target:a}of n)if(s[0]=="a")i(a);else for(let o of a.querySelectorAll("[class]"))i(o);e.takeRecords()}function i(n){let s,a=n.getAttribute?.("class");a&&Nm(a,s=t(a))&&n.setAttribute("class",s)}}function zm(t){let e=document.querySelector(t||'style[data-twind=""]');return(!e||e.tagName!="STYLE")&&(e=document.createElement("style"),document.head.prepend(e)),e.dataset.twind="claimed",e}function Is(t){let e=t?.cssRules?t:(t&&typeof t!="string"?t:zm(t)).sheet;return{target:e,snapshot(){let r=Array.from(e.cssRules,i=>i.cssText);return()=>{this.clear(),r.forEach(this.insert)}},clear(){for(let r=e.cssRules.length;r--;)e.deleteRule(r)},destroy(){e.ownerNode?.remove()},insert(r,i){try{e.insertRule(r,i)}catch{e.insertRule(":root{}",i)}},resume:Ts}}var jm=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function Pc(t){return jm.get(t)}function Ac(t){var e=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(t);return e?e[1]?1:e[2]?2:e[3]?3:5:0}function Cc(t,e){var r=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(t);return r?r[1]?/^sti/i.test(e)?1:0:r[2]?/^pat/i.test(e)?1:0:r[3]?/^image-/i.test(e)?1:0:r[4]?e[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(e)?4:0:0}var Gm=[["-webkit-",1],["-moz-",2],["-ms-",4]];function Tc(){return({stringify:t})=>({stringify(e,r,i){let n="",s=Pc(e);s&&(n+=t(s,r,i)+";");let a=Ac(e),o=Cc(e,r);for(let l of Gm)a&l[1]&&(n+=t(l[0]+e,r,i)+";"),o&l[1]&&(n+=t(e,l[0]+r,i)+";");return n+t(e,r,i)}})}function Mc(){return{rules:[["line-clamp-none",{"-webkit-line-clamp":"unset"}],["line-clamp-",jo("lineClamp",({_:t})=>Ic(t))],["line-clamp-(\\d+)",({1:t})=>Ic(t)]]}}function Ic(t){return{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":`${t}`}}var fn={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...wt(4,"rem",4,.5,.5),...wt(12,"rem",4,5),14:"3.5rem",...wt(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:be("blur"),backdropBrightness:be("brightness"),backdropContrast:be("contrast"),backdropGrayscale:be("grayscale"),backdropHueRotate:be("hueRotate"),backdropInvert:be("invert"),backdropOpacity:be("opacity"),backdropSaturate:be("saturate"),backdropSepia:be("sepia"),backgroundColor:be("colors"),backgroundImage:{none:"none"},backgroundOpacity:be("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...wt(200,"",100,0,50),...wt(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:t})=>({DEFAULT:t("colors.gray.200","currentColor"),...t("colors")}),borderOpacity:be("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:be("spacing"),borderWidth:{DEFAULT:"1px",...It(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:be("colors"),caretColor:be("colors"),accentColor:({theme:t})=>({auto:"auto",...t("colors")}),contrast:{...wt(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:be("borderColor"),divideOpacity:be("borderOpacity"),divideWidth:be("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:t})=>({...t("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:t})=>({...t("spacing"),...dn(2,6),...dn(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:be("spacing"),gradientColorStops:be("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:t})=>({...t("spacing"),...dn(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:t})=>({...t("spacing"),...dn(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...wt(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:t})=>({auto:"auto",...t("spacing")}),maxHeight:({theme:t})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...t("spacing")}),maxWidth:({theme:t,breakpoints:e})=>({...e(t("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...wt(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:be("spacing"),placeholderColor:be("colors"),placeholderOpacity:be("opacity"),outlineColor:be("colors"),outlineOffset:It(8,"px"),outlineWidth:It(8,"px"),ringColor:({theme:t})=>({...t("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:be("colors"),ringOffsetWidth:It(8,"px"),ringOpacity:({theme:t})=>({...t("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...It(8,"px")},rotate:{...It(2,"deg"),...It(12,"deg",3),...It(180,"deg",45)},saturate:wt(200,"",100,0,50),scale:{...wt(150,"",100,0,50),...wt(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:be("spacing"),scrollPadding:be("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...It(2,"deg"),...It(12,"deg",3)},space:be("spacing"),stroke:({theme:t})=>({...t("colors"),none:"none"}),strokeWidth:wt(2),textColor:be("colors"),textDecorationColor:be("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...It(8,"px")},textUnderlineOffset:{auto:"auto",...It(8,"px")},textIndent:be("spacing"),textOpacity:be("opacity"),transitionDuration:({theme:t})=>({...t("durations"),DEFAULT:"150ms"}),transitionDelay:be("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:t})=>({...t("spacing"),...dn(2,4),full:"100%"}),width:({theme:t})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...t("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...wt(50,"",1,0,10),auto:"auto"}};function dn(t,e){let r={};do for(var i=1;i<t;i++)r[`${i}/${t}`]=Number((i/t*100).toFixed(6))+"%";while(++t<=e);return r}function It(t,e,r=0){let i={};for(;r<=t;r=2*r||1)i[r]=r+e;return i}function wt(t,e="",r=1,i=0,n=1,s={}){for(;i<=t;i+=n)s[i]=i/r+e;return s}function be(t){return({theme:e})=>e(t)}var Dc={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${fn.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${fn.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}};var Bc=[N("\\[([-\\w]+):(.+)]",({1:t,2:e},r)=>({"@layer overrides":{"&":{[t]:Ut(`[${e}]`,"",r)}}})),N("(group|peer)([~/][^-[]+)?",({input:t},{h:e})=>[{c:e(t)}]),z("aspect-","aspectRatio"),N("container",(t,{theme:e})=>{let{screens:r=e("screens"),center:i,padding:n}=e("container"),s={width:"100%",marginRight:i&&"auto",marginLeft:i&&"auto",...a("xs")};for(let o in r){let l=r[o];typeof l=="string"&&(s[Cs(l)]={"&":{maxWidth:l,...a(o)}})}return s;function a(o){let l=n&&(typeof n=="string"?n:n[o]||n.DEFAULT);if(l)return{paddingRight:l,paddingLeft:l}}}),z("content-","content",({_:t})=>({"--tw-content":t,content:"var(--tw-content)"})),N("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),N("box-(border|content)","boxSizing",({1:t})=>t+"-box"),N("hidden",{display:"none"}),N("table-(auto|fixed)","tableLayout"),N(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",N("isolate","isolation"),N("object-(contain|cover|fill|none|scale-down)","objectFit"),z("object-","objectPosition"),N("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",Ms),N("overscroll(-[xy])?-(auto|contain|none)",({1:t="",2:e})=>({["overscroll-behavior"+t]:e})),N("(static|fixed|absolute|relative|sticky)","position"),z("-?inset(-[xy])?(?:$|-)","inset",({1:t,_:e})=>({top:t!="-x"&&e,right:t!="-y"&&e,bottom:t!="-x"&&e,left:t!="-y"&&e})),z("-?(top|bottom|left|right)(?:$|-)","inset"),N("(visible|collapse)","visibility"),N("invisible",{visibility:"hidden"}),z("-?z-","zIndex"),N("flex-((row|col)(-reverse)?)","flexDirection",Fc),N("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),z("(flex-(?:grow|shrink))(?:$|-)"),z("(flex)-"),z("grow(?:$|-)","flexGrow"),z("shrink(?:$|-)","flexShrink"),z("basis-","flexBasis"),z("-?(order)-"),"-?(order)-(\\d+)",z("grid-cols-","gridTemplateColumns"),N("grid-cols-(\\d+)","gridTemplateColumns",Lc),z("col-","gridColumn"),N("col-(span)-(\\d+)","gridColumn",Rc),z("col-start-","gridColumnStart"),N("col-start-(auto|\\d+)","gridColumnStart"),z("col-end-","gridColumnEnd"),N("col-end-(auto|\\d+)","gridColumnEnd"),z("grid-rows-","gridTemplateRows"),N("grid-rows-(\\d+)","gridTemplateRows",Lc),z("row-","gridRow"),N("row-(span)-(\\d+)","gridRow",Rc),z("row-start-","gridRowStart"),N("row-start-(auto|\\d+)","gridRowStart"),z("row-end-","gridRowEnd"),N("row-end-(auto|\\d+)","gridRowEnd"),N("grid-flow-((row|col)(-dense)?)","gridAutoFlow",t=>Ms(Fc(t))),N("grid-flow-(dense)","gridAutoFlow"),z("auto-cols-","gridAutoColumns"),z("auto-rows-","gridAutoRows"),z("gap-x(?:$|-)","gap","columnGap"),z("gap-y(?:$|-)","gap","rowGap"),z("gap(?:$|-)","gap"),"(justify-(?:items|self))-",N("justify-","justifyContent",$c),N("(content|items|self)-",t=>({["align-"+t[1]]:$c(t)})),N("(place-(content|items|self))-",({1:t,$$:e})=>({[t]:("wun".includes(e[3])?"space-":"")+e})),z("p([xytrbl])?(?:$|-)","padding",Si("padding")),z("-?m([xytrbl])?(?:$|-)","margin",Si("margin")),z("-?space-(x|y)(?:$|-)","space",({1:t,_:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[t]]:`calc(${e} * calc(1 - var(--tw-space-${t}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[t]]:`calc(${e} * var(--tw-space-${t}-reverse))`}})),N("space-(x|y)-reverse",({1:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"1"}})),z("w-","width"),z("min-w-","minWidth"),z("max-w-","maxWidth"),z("h-","height"),z("min-h-","minHeight"),z("max-h-","maxHeight"),z("font-","fontWeight"),z("font-","fontFamily",({_:t})=>typeof(t=Te(t))[1]=="string"?{fontFamily:Nt(t)}:{fontFamily:Nt(t[0]),...t[1]}),N("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),N("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),N("italic","fontStyle"),N("not-italic",{fontStyle:"normal"}),N("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:t,2:e="",3:r})=>e=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(r?"numeric-fraction":"pt".includes(e[0])?"numeric-spacing":e?"numeric-figure":t)]:t,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...br({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),z("tracking-","letterSpacing"),z("leading-","lineHeight"),N("list-(inside|outside)","listStylePosition"),z("list-","listStyleType"),N("list-","listStyleType"),z("placeholder-opacity-","placeholderOpacity",({_:t})=>({"&::placeholder":{"--tw-placeholder-opacity":t}})),ze("placeholder-",{property:"color",selector:"&::placeholder"}),N("text-(left|center|right|justify|start|end)","textAlign"),N("text-(ellipsis|clip)","textOverflow"),z("text-opacity-","textOpacity","--tw-text-opacity"),ze("text-",{property:"color"}),z("text-","fontSize",({_:t})=>typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}),z("indent-","textIndent"),N("(overline|underline|line-through)","textDecorationLine"),N("no-underline",{textDecorationLine:"none"}),z("underline-offset-","textUnderlineOffset"),ze("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),z("decoration-","textDecorationThickness"),N("decoration-","textDecorationStyle"),N("(uppercase|lowercase|capitalize)","textTransform"),N("normal-case",{textTransform:"none"}),N("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),N("align-","verticalAlign"),N("whitespace-","whiteSpace"),N("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),N("break-words",{overflowWrap:"break-word"}),N("break-all",{wordBreak:"break-all"}),N("break-keep",{wordBreak:"keep-all"}),ze("caret-",{opacityVariable:!1,opacitySection:"opacity"}),ze("accent-",{opacityVariable:!1,opacitySection:"opacity"}),N("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:t})=>`linear-gradient(to ${Zr(t," ")},var(--tw-gradient-stops))`),ze("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-gradient-from":t.value,"--tw-gradient-to":t.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),ze("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-gradient-to":t.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${t.value},var(--tw-gradient-to)`})),ze("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),N("bg-(fixed|local|scroll)","backgroundAttachment"),N("bg-origin-(border|padding|content)","backgroundOrigin",({1:t})=>t+"-box"),N(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),N("bg-blend-","backgroundBlendMode"),N("bg-clip-(border|padding|content|text)","backgroundClip",({1:t})=>t+(t=="text"?"":"-box")),z("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),ze("bg-",{section:"backgroundColor"}),z("bg-","backgroundImage"),z("bg-","backgroundPosition"),N("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",Ms),z("bg-","backgroundSize"),z("rounded(?:$|-)","borderRadius"),z("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:t,_:e})=>{let r={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[t]||[t,t];return{[`border-${Zr(r[0])}-radius`]:e,[`border-${Zr(r[1])}-radius`]:e}}),N("border-(collapse|separate)","borderCollapse"),z("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),N("border-(solid|dashed|dotted|double|none)","borderStyle"),z("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:t,_:e})=>({...br({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(t||"-x")]:e,["--tw-border-spacing"+(t||"-y")]:e,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),ze("border-([xytrbl])-",{section:"borderColor"},Si("border","Color")),ze("border-"),z("border-([xytrbl])(?:$|-)","borderWidth",Si("border","Width")),z("border(?:$|-)","borderWidth"),z("divide-opacity(?:$|-)","divideOpacity",({_:t})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":t}})),N("divide-(solid|dashed|dotted|double|none)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:t}})),N("divide-([xy]-reverse)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+t]:"1"}})),z("divide-([xy])(?:$|-)","divideWidth",({1:t,_:e})=>{let r={x:"lr",y:"tb"}[t];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${t}-reverse`]:"0",[`border-${Zr(r[0])}Width`]:`calc(${e} * calc(1 - var(--tw-divide-${t}-reverse)))`,[`border-${Zr(r[1])}Width`]:`calc(${e} * var(--tw-divide-${t}-reverse))`}}}),ze("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),z("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),ze("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),z("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),N("ring-inset",{"--tw-ring-inset":"inset"}),ze("ring-",{property:"--tw-ring-color"}),z("ring(?:$|-)","ringWidth",({_:t},{theme:e})=>({...br({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":e("ringOffsetWidth","","0px"),"--tw-ring-offset-color":Tt(e("ringOffsetColor","","#fff")),"--tw-ring-color":Tt(e("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":e("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${t} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),ze("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-shadow-color":t.value,"--tw-shadow":"var(--tw-shadow-colored)"})),z("shadow(?:$|-)","boxShadow",({_:t})=>({...br({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":Nt(t),"--tw-shadow-colored":Nt(t).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),z("(opacity)-"),N("mix-blend-","mixBlendMode"),...Oc(),...Oc("backdrop-"),z("transition(?:$|-)","transitionProperty",(t,{theme:e})=>({transitionProperty:Nt(t),transitionTimingFunction:t._=="none"?void 0:Nt(e("transitionTimingFunction","")),transitionDuration:t._=="none"?void 0:Nt(e("transitionDuration",""))})),z("duration(?:$|-)","transitionDuration","transitionDuration",Nt),z("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",Nt),z("delay(?:$|-)","transitionDelay","transitionDelay",Nt),z("animate(?:$|-)","animation",(t,{theme:e,h:r,e:i})=>{let n=Nt(t),s=n.split(" "),a=e("keyframes",s[0]);return a?{["@keyframes "+(s[0]=i(r(s[0])))]:a,animation:s.join(" ")}:{animation:n}}),"(transform)-(none)",N("transform",qo),N("transform-(cpu|gpu)",({1:t})=>({"--tw-transform":Vc(t=="gpu")})),z("scale(-[xy])?-","scale",({1:t,_:e})=>({["--tw-scale"+(t||"-x")]:e,["--tw-scale"+(t||"-y")]:e,...qo()})),z("-?(rotate)-","rotate",Ho),z("-?(translate-[xy])-","translate",Ho),z("-?(skew-[xy])-","skew",Ho),N("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",Ms),"(appearance)-",z("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",z("(cursor)-"),"(cursor)-",N("snap-(none)","scroll-snap-type"),N("snap-(x|y|both)",({1:t})=>({...br({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":t+" var(--tw-scroll-snap-strictness)"})),N("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),N("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),N("snap-(normal|always)","scroll-snap-stop"),N("scroll-(auto|smooth)","scroll-behavior"),z("scroll-p([xytrbl])?(?:$|-)","padding",Si("scroll-padding")),z("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",Si("scroll-margin")),N("touch-(auto|none|manipulation)","touch-action"),N("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:t,2:e,3:r})=>({...br({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${e?"pan-x":r?"pan-y":t}`]:t,"touch-action":"var(--tw-touch-action)"})),N("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),N("outline",{outlineStyle:"solid"}),N("outline-(dashed|dotted|double)","outlineStyle"),z("-?(outline-offset)-"),ze("outline-",{opacityVariable:!1,opacitySection:"opacity"}),z("outline-","outlineWidth"),"(pointer-events)-",z("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:t})=>({x:"horizontal",y:"vertical"})[t]||t||"both"],N("select-(none|text|all|auto)","userSelect"),ze("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),ze("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),z("stroke-","strokeWidth"),N("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),N("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function Ms(t){return(typeof t=="string"?t:t[1]).replace(/-/g," ").trim()}function Fc(t){return(typeof t=="string"?t:t[1]).replace("col","column")}function Zr(t,e="-"){let r=[];for(let i of t)r.push({t:"top",r:"right",b:"bottom",l:"left"}[i]);return r.join(e)}function Nt(t){return t&&""+(t._||t)}function $c({$$:t}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[t[3]||""]||"")+t}function Si(t,e=""){return({1:r,_:i})=>{let n={x:"lr",y:"tb"}[r]||r+r;return n?{...pn(t+"-"+Zr(n[0])+e,i),...pn(t+"-"+Zr(n[1])+e,i)}:pn(t+e,i)}}function Oc(t=""){let e=["blur","brightness","contrast","grayscale","hue-rotate","invert",t&&"opacity","saturate","sepia",!t&&"drop-shadow"].filter(Boolean),r={};for(let i of e)r[`--tw-${t}${i}`]="var(--tw-empty,/*!*/ /*!*/)";return r={...br(r),[`${t}filter`]:e.map(i=>`var(--tw-${t}${i})`).join(" ")},[`(${t}filter)-(none)`,N(`${t}filter`,r),...e.map(i=>z(`${i[0]=="h"?"-?":""}(${t}${i})(?:$|-)`,i,({1:n,_:s})=>({[`--tw-${n}`]:Te(s).map(a=>`${i}(${a})`).join(" "),...r})))]}function Ho({1:t,_:e}){return{["--tw-"+t]:e,...qo()}}function qo(){return{...br({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Vc()}),transform:"var(--tw-transform)"}}function Vc(t){return[t?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function Rc({1:t,2:e}){return`${t} ${e} / ${t} ${e}`}function Lc({1:t}){return`repeat(${t},minmax(0,1fr))`}function br(t){return{"@layer defaults":{"*,::before,::after":t,"::backdrop":t}}}var Nc=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:t})=>`@media (orientation:${t})`],["contrast-(more|less)",({1:t})=>`@media (prefers-contrast:${t})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:t})=>`&::${t}`],["(marker|selection)",({1:t})=>`& *::${t},&::${t}`],["file","&::file-selector-button"],["(first|last|only)",({1:t})=>`&:${t}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:t,$$:e},r)=>e&&`&[${t}-${r.theme(t,e)||Ut(e,"",r)||`${e}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:t,3:e="",4:r,5:i="",6:n=e},{e:s,h:a,v:o})=>{let l=xi(i)||(r[0]=="["?r:o(r.slice(1)));return`${(l.includes("&")?l:"&"+l).replace(/&/g,`:merge(.${s(a(t+n))})`)}${t[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:t})=>`[dir="${t}"] &`],["supports-",({$$:t},e)=>{if(t&&(t=e.theme("supports",t)||Ut(t,"",e)),t)return t.includes(":")||(t+=":var(--tw)"),/^\w*\s*\(/.test(t)||(t=`(${t})`),`@supports ${t.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:t},e)=>{if(t&&(t=e.theme("screens",t)||Ut(t,"",e)),typeof t=="string")return`@media not all and (min-width:${t})`}],["min-",({$$:t},e)=>(t&&(t=Ut(t,"",e)),t&&`@media (min-width:${t})`)],[/^\[(.+)]$/,({1:t})=>/[&@]/.test(t)&&xi(t).replace(/[}]+$/,"").split("{")]];function zc({colors:t,disablePreflight:e}={}){return{preflight:e?void 0:Dc,theme:{...fn,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...t}},variants:Nc,rules:Bc,finalize(r){return r.n&&r.d&&r.r.some(i=>/^&::(before|after)$/.test(i))&&!/(^|;)content:/.test(r.d)?{...r,d:"content:var(--tw-content);"+r.d}:r}}}var Hm={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},qm={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},Um={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},Wm={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},Zm={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},Ym={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},Jm={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},Xm={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},Km={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},Qm={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},eg={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},tg={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},rg={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},ig={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},ng={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},sg={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},ag={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},og={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},lg={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},hg={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},cg={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},ug={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},jc={__proto__:null,slate:Hm,gray:qm,zinc:Um,neutral:Wm,stone:Zm,red:Ym,orange:Jm,amber:Xm,yellow:Km,lime:Qm,green:eg,emerald:tg,teal:rg,cyan:ig,sky:ng,blue:sg,indigo:ag,violet:og,purple:lg,fuchsia:hg,pink:cg,rose:ug};function Gc({disablePreflight:t}={}){return zc({colors:jc,disablePreflight:t})}function Uc({className:t="prose",defaultColor:e="gray",extend:r={},colors:i={}}={}){return i={body:"700",headings:"900",lead:"600",links:"900",bold:"900",counters:"500",bullets:"300",hr:"200",quotes:"900","quote-borders":"200",captions:"500",code:"900","pre-code":"200","pre-bg":"800","th-borders":"300","td-borders":"200",...i,dark:i.dark===null?null:{body:"300",headings:"#fff",lead:"400",links:"#fff",bold:"#fff",counters:"400",bullets:"600",hr:"700",quotes:"100","quote-borders":"700",captions:"400",code:"#fff","pre-code":"300","pre-bg":"rgb(0 0 0 / 50%)","th-borders":"600","td-borders":"700",...i.dark}},{variants:[["headings","h1,h2,h3,h4,h5,h6,th"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"],["lead",".lead"]].map(([s,a=s])=>[`${t}-${s}`,(o,l)=>Wc(t,a[0]=="."?"."+l.e(l.h(a.slice(1))):a,l,h=>`& :is(${h.trim()})`)]),rules:[[`(lead|not-${t})`,({1:s},{h:a})=>[{c:a(s)}]],[`${t}-invert`,{"@layer base":{"--tw-prose-body":"var(--tw-prose-invert-body)","--tw-prose-headings":"var(--tw-prose-invert-headings)","--tw-prose-lead":"var(--tw-prose-invert-lead)","--tw-prose-links":"var(--tw-prose-invert-links)","--tw-prose-bold":"var(--tw-prose-invert-bold)","--tw-prose-counters":"var(--tw-prose-invert-counters)","--tw-prose-bullets":"var(--tw-prose-invert-bullets)","--tw-prose-hr":"var(--tw-prose-invert-hr)","--tw-prose-quotes":"var(--tw-prose-invert-quotes)","--tw-prose-quote-borders":"var(--tw-prose-invert-quote-borders)","--tw-prose-captions":"var(--tw-prose-invert-captions)","--tw-prose-code":"var(--tw-prose-invert-code)","--tw-prose-pre-code":"var(--tw-prose-invert-pre-code)","--tw-prose-pre-bg":"var(--tw-prose-invert-pre-bg)","--tw-prose-th-borders":"var(--tw-prose-invert-th-borders)","--tw-prose-td-borders":"var(--tw-prose-invert-td-borders)"}}],[t+"-",({$$:s},a)=>{let o=qc(a.theme("fontSize",s));return o&&{"@layer components":o}}],[t+"-",({$$:s},a)=>n(s,a)],[t,(s,a)=>({...n(e,a),"@layer base":[Hc(t,a,{a:{color:"var(--tw-prose-links)",textDecorationLine:"underline",fontWeight:"500"},strong:{color:"var(--tw-prose-bold)",fontWeight:"600"},"a strong,blockquote strong,thead th strong":{color:"inherit"},ul:{listStyleType:"disc"},ol:{listStyleType:"decimal"},'ol[type="A"]':{listStyleType:"upper-alpha"},'ol[type="a"]':{listStyleType:"lower-alpha"},'ol[type="A" s]':{listStyleType:"upper-alpha"},'ol[type="a" s]':{listStyleType:"lower-alpha"},'ol[type="I"]':{listStyleType:"upper-roman"},'ol[type="i"]':{listStyleType:"lower-roman"},'ol[type="I" s]':{listStyleType:"upper-roman"},'ol[type="i" s]':{listStyleType:"lower-roman"},'ol[type="1"]':{listStyleType:"decimal"},"ol,ul":{marginTop:Q(20,16),marginBottom:Q(20,16),paddingLeft:Q(26,16)},li:{marginTop:Q(8,16),marginBottom:Q(8,16)},"ol>li,ul>li":{paddingLeft:Q(6,16)},">ul>li p":{marginTop:Q(12,16),marginBottom:Q(12,16)},">ul>li>*:first-child,>ol>li>*:last-child":{marginTop:Q(20,16)},">ul>li>*:last-child,>ol>li>*:last-child":{marginBottom:Q(20,16)},"ol>li::marker":{fontWeight:"400",color:"var(--tw-prose-counters)"},"ul>li::marker":{color:"var(--tw-prose-bullets)"},"ul ul,ul ol,ol ul,ol ol":{marginTop:Q(12,16),marginBottom:Q(12,16)},hr:{borderColor:"var(--tw-prose-hr)",borderTopWidth:"1",marginTop:Q(48,16),marginBottom:Q(48,16)},blockquote:{marginTop:Q(32,20),marginBottom:Q(32,20),paddingLeft:Q(20,20),fontWeight:"500",fontStyle:"italic",color:"var(--tw-prose-quotes)",borderLeftWidth:"0.25rem",borderLeftColor:"var(--tw-prose-quote-borders)",quotes:'"\\201C""\\201D""\\2018""\\2019"'},"blockquote p:first-of-type::before":{content:"open-quote"},"blockquote p:last-of-type::after":{content:"close-quote"},p:{marginTop:Q(20,16),marginBottom:Q(20,16)},h1:{color:"var(--tw-prose-headings)",fontWeight:"800",fontSize:Q(36,16),marginTop:"0",marginBottom:Q(32,36),lineHeight:1.15},"h1 strong":{fontWeight:"900",color:"inherit"},h2:{color:"var(--tw-prose-headings)",fontWeight:"700",fontSize:Q(24,16),marginTop:Q(48,24),marginBottom:Q(24,24),lineHeight:"1.35"},"h2 strong":{fontWeight:"800",color:"inherit"},h3:{color:"var(--tw-prose-headings)",fontWeight:"600",fontSize:Q(20,16),marginTop:Q(32,20),marginBottom:Q(12,20),lineHeight:"1.6"},"h3 strong":{fontWeight:"700",color:"inherit"},h4:{color:"var(--tw-prose-headings)",fontWeight:"600",marginTop:Q(24,16),marginBottom:Q(8,16),lineHeight:"1.5"},"h4 strong":{fontWeight:"700",color:"inherit"},"hr+*,h2+*,h3+*,h4+*":{marginTop:"0"},"img,video,figure":{marginTop:Q(32,16),marginBottom:Q(32,16)},"figure>*":{marginTop:"0",marginBottom:"0"},figcaption:{color:"var(--tw-prose-captions)",fontSize:Q(14,16),lineHeight:"1.4",marginTop:Q(12,14)},code:{color:"var(--tw-prose-code)",fontWeight:"600",fontSize:Q(14,16)},"code::before,code::after":{content:'"`"'},"h2 code":{fontSize:Q(21,24)},"h3 code":{fontSize:Q(18,20)},"a code,h1 code,h2 code,h3 code,h4 code,blockquote code,thead th code":{color:"inherit"},pre:{color:"var(--tw-prose-pre-code)",backgroundColor:"var(--tw-prose-pre-bg)",overflowX:"auto",fontWeight:"400",fontSize:Q(14,16),lineHeight:"1.7",marginTop:Q(24,14),marginBottom:Q(24,14),borderRadius:"0.375rem",paddingTop:Q(12,14),paddingRight:Q(16,14),paddingBottom:Q(12,14),paddingLeft:Q(16,14)},"pre code":{backgroundColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0",fontWeight:"inherit",color:"inherit",fontSize:"inherit",fontFamily:"inherit",lineHeight:"inherit"},"pre code::before":{content:"none"},"pre code::after":{content:"none"},table:{width:"100%",tableLayout:"auto",textAlign:"left",marginTop:Q(32,16),marginBottom:Q(32,16),fontSize:Q(14,16),lineHeight:"1.7"},thead:{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-th-borders)"},"thead th":{color:"var(--tw-prose-headings)",fontWeight:"600",verticalAlign:"bottom",paddingRight:Q(8,14),paddingBottom:Q(8,14),paddingLeft:Q(8,14)},"thead th:first-child":{paddingLeft:"0"},"thead th:last-child":{paddingRight:"0"},"tbody tr":{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-td-borders)"},"tbody tr:last-child":{borderBottomWidth:"0"},"tbody td,tfoot td":{verticalAlign:"baseline",paddingTop:Q(8,14),paddingRight:Q(8,14),paddingBottom:Q(8,14),paddingLeft:Q(8,14)},"tbody td:first-child,tfoot td:first-child":{paddingLeft:"0"},"tbody td:last-child,tfoot td:last-child":{paddingRight:"0"},[`.${a.e(a.h("lead"))}`]:{color:"var(--tw-prose-lead)",fontSize:Q(20,16),lineHeight:"1.6",marginTop:Q(24,20),marginBottom:Q(24,20)},">:first-child":{marginTop:"0"},">:last-child":{marginBottom:"0"}}),Hc(t,a,r)],"@layer components":{...qc(a.theme("fontSize","base")),color:"var(--tw-prose-body)",maxWidth:"theme(max-w.prose, 65ch)"}})]]};function n(s,a){let o={},l={},h=(c,u,f)=>{let p=a.theme(`colors.${s}.${u}`,u);f["--tw-prose-"+c]=Tt(p);let m=f!=l&&a.d("colors",`${s}-${u}`,p);m&&(l["--tw-prose-"+c]=Tt(m))};for(let c in i){let u=i[c];c!="dark"&&u&&h(c,u,o)}for(let c in i.dark||{}){let u=i.dark[c];u&&(i.dark?h("invert-"+c,u,o):h(c,u,l))}return Object.keys(o).length?{"@layer defaults":{"&":o,[a.v("dark")]:l}}:void 0}}function Hc(t,e,r){let i={};for(let n in r)i[Wc(t,n,e,s=>`.${e.e(e.h(t))}${s}`)]=r[n];return i}function Wc(t,e,{e:r,h:i},n){return e.replace(/^[^>:]+$|(>)?((?:[^:,]+(?::[\w-]+)?)|:[\w-]+)(::[\w-]+)?/g,(s,a=" ",o=s,l="")=>n(`${a}:where(${o}):not(:where(.${r(i("not-"+t))} *))${l}`))}function qc(t){return t?typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}:void 0}function Q(t,e){return`${(t/e).toFixed(3).replace(/^0|\.?0+$/g,"")}em`}var Uo=Go({darkMode:"class",theme:{extend:{spacing:{px:"1px",0:"0",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},padding:{px:"1px",0:"0",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},lineHeight:{3:"12px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px"},maxWidth:{xs:"320px",sm:"384px",md:"448px",lg:"512px",xl:"576px","2xl":"672px","3xl":"768px","4xl":"896px","5xl":"1024px","6xl":"1152px","7xl":"1280px"},maxHeight:{.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},borderRadius:{sm:"2px",DEFAULT:"4px",md:"6px",lg:"8px",xl:"12px","2xl":"16px","3xl":"24px"},fontSize:{xs:["12px","16px"],sm:["14px","20px"],base:["16px","24px"],lg:["18px","28px"],xl:["20px","28px"],"2xl":["24px","32px"],"3xl":["30px","36px"],"4xl":["36px","40px"],"5xl":["48px","1"],"6xl":["60px","1"],"7xl":["72px","1"],"8xl":["96px","1"],"9xl":["128px","1"]},fontFamily:{sans:["system-ui","Roboto","Helvetica","Arial","sans-serif"],serif:["ui-serif","Georgia","Cambria","serif"],mono:["ui-monospace","Menlo","Monaco","monospace"]}}},presets:[Gc(),Tc(),Mc(),Uc()],hash:!1});function Zc(t,e=!0){let r=function(){if(pg)try{let l=Is(new CSSStyleSheet);return l.connect=h=>{let c=Wo(h);c.adoptedStyleSheets=[...c.adoptedStyleSheets,l.target]},l.disconnect=Ts,l}catch{}let s=document.createElement("style");s.media="not all",document.head.prepend(s);let a=[Is(s)],o=new WeakMap;return{get target(){return a[0].target},snapshot(){let l=a.map(h=>h.snapshot());return()=>l.forEach(h=>h())},clear(){a.forEach(l=>l.clear())},destroy(){a.forEach(l=>l.destroy())},insert(l,h,c){a[0].insert(l,h,c);let u=this.target.cssRules[h];a.forEach((f,p)=>p&&f.target.insertRule(u.cssText,h))},resume(l,h){return a[0].resume(l,h)},connect(l){let h=document.createElement("style");Wo(l).appendChild(h);let c=Is(h),{cssRules:u}=this.target;for(let f=0;f<u.length;f++)c.target.insertRule(u[f].cssText,f);a.push(c),o.set(l,c)},disconnect(l){let h=a.indexOf(o.get(l));h>=0&&a.splice(h,1)}}}(),i=kc({...t,hash:t.hash??e},r),n=Ec(i);return function(a){return class extends a{connectedCallback(){super.connectedCallback?.(),r.connect(this),n.observe(Wo(this))}disconnectedCallback(){r.disconnect(this),super.disconnectedCallback?.()}constructor(...l){super(...l),this.tw=i}}}}var pg=typeof ShadowRoot<"u"&&(typeof ShadyCSS>"u"||ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function Wo(t){return t.shadowRoot||t.attachShadow({mode:"open"})}var Fe=t=>Zc(Uo)(t);var Fs,Yc,$s,Jc,Ds=class extends Fe(ke){constructor(){super();Z(this,Fs);Z(this,$s);de(this,"render",()=>ge`
4
+ <div class="${L(this,Fs,Yc)?"block":"hidden"} flex h-full w-full flex-col items-stretch justify-center space-y-8 px-4">
5
5
  <!-- examples section -->
6
6
  <div class="text-gray-500">
7
7
  <p class="text-md text-center font-semibold">${this.config.examples.title}</p>
8
- ${this.config.examples&&this.config.examples.items.length>0?me`
8
+ ${this.config.examples&&this.config.examples.items.length>0?ge`
9
9
  <ul class="prose mt-2 text-left text-gray-400">
10
- ${ks(this.config.examples.items,r=>r,r=>me`<li class="w-full rounded-2xl bg-white px-4 py-3 text-sm outline outline-1 outline-[#eeedf1] transition-[color,outline] hover:cursor-pointer hover:outline-[#999]" @click="${()=>pe(this,$s,Xc).call(this,r)}">“${r}” →</li>`)}
10
+ ${ks(this.config.examples.items,r=>r,r=>ge`<li class="w-full rounded-2xl bg-white px-4 py-3 text-sm outline outline-1 outline-[#eeedf1] transition-[color,outline] hover:cursor-pointer hover:outline-[#999]" @click="${()=>pe(this,$s,Jc).call(this,r)}">“${r}” →</li>`)}
11
11
  </ul>
12
12
  `:""}
13
13
  </div>
@@ -15,16 +15,16 @@ var cf=Object.defineProperty;var uf=(t,e,r)=>e in t?cf(t,e,{enumerable:!0,config
15
15
  <!-- spacer for visual alignment -->
16
16
  <div class="h-1/9"></div>
17
17
  </div>
18
- `);this.config,this.messages=0}};Fs=new WeakSet,Jc=function(){return this.messages===0},$s=new WeakSet,Xc=function(r){let i={example:r};this.dispatchEvent(new CustomEvent("mw-example-click",{detail:i}))},de(Ds,"properties",{config:{type:Object},messages:{type:Number}});customElements.define("mw-background",Ds);function gn(t){var e,r;function i(s,a){try{var o=t[s](a),l=o.value,h=l instanceof yl;Promise.resolve(h?l.v:l).then(function(c){if(h){var u=s==="return"?"return":"next";if(!l.k||c.done)return i(u,c);c=t[u](c).value}n(o.done?"return":"normal",c)},function(c){i("throw",c)})}catch(c){n("throw",c)}}function n(s,a){switch(s){case"return":e.resolve({value:a,done:!0});break;case"throw":e.reject(a);break;default:e.resolve({value:a,done:!1})}(e=e.next)?i(e.key,e.arg):r=null}this._invoke=function(s,a){return new Promise(function(o,l){var h={key:s,arg:a,resolve:o,reject:l,next:null};r?r=r.next=h:(e=r=h,i(s,a))})},typeof t.return!="function"&&(this.return=void 0)}function yl(t,e){this.v=t,this.k=e}function Nu(t,e,r,i){return{getMetadata:function(n){sl(i,"getMetadata"),eu(n);var s=t[n];if(s!==void 0){if(e===1){var a=s.public;if(a!==void 0)return a[r]}else if(e===2){var o=s.private;if(o!==void 0)return o.get(r)}else if(Object.hasOwnProperty.call(s,"constructor"))return s.constructor}},setMetadata:function(n,s){sl(i,"setMetadata"),eu(n);var a=t[n];if(a===void 0&&(a=t[n]={}),e===1){var o=a.public;o===void 0&&(o=a.public={}),o[r]=s}else if(e===2){var l=a.priv;l===void 0&&(l=a.private=new Map),l.set(r,s)}else a.constructor=s}}}function Kc(t,e){var r=t[Symbol.metadata||Symbol.for("Symbol.metadata")],i=Object.getOwnPropertySymbols(e);if(i.length!==0){for(var n=0;n<i.length;n++){var s=i[n],a=e[s],o=r?r[s]:null,l=a.public,h=o?o.public:null;l&&h&&Object.setPrototypeOf(l,h);var c=a.private;if(c){var u=Array.from(c.values()),f=o?o.private:null;f&&(u=u.concat(f)),a.private=u}o&&Object.setPrototypeOf(a,o)}r&&Object.setPrototypeOf(e,r),t[Symbol.metadata||Symbol.for("Symbol.metadata")]=e}}function zu(t,e){return function(r){sl(e,"addInitializer"),yn(r,"An initializer"),t.push(r)}}function Qc(t,e,r,i,n,s,a,o,l){var h;switch(s){case 1:h="accessor";break;case 2:h="method";break;case 3:h="getter";break;case 4:h="setter";break;default:h="field"}var c,u,f={kind:h,name:o?"#"+e:e,isStatic:a,isPrivate:o},p={v:!1};if(s!==0&&(f.addInitializer=zu(n,p)),o){c=2,u=Symbol(e);var m={};s===0?(m.get=r.get,m.set=r.set):s===2?m.get=function(){return r.value}:(s!==1&&s!==3||(m.get=function(){return r.get.call(this)}),s!==1&&s!==4||(m.set=function(g){r.set.call(this,g)})),f.access=m}else c=1,u=e;try{return t(l,Object.assign(f,Nu(i,c,u,p)))}finally{p.v=!0}}function sl(t,e){if(t.v)throw new Error("attempted to call "+e+" after decoration was finished")}function eu(t){if(typeof t!="symbol")throw new TypeError("Metadata keys must be symbols, received: "+t)}function yn(t,e){if(typeof t!="function")throw new TypeError(e+" must be a function")}function al(t,e){var r=typeof e;if(t===1){if(r!=="object"||e===null)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");e.get!==void 0&&yn(e.get,"accessor.get"),e.set!==void 0&&yn(e.set,"accessor.set"),e.init!==void 0&&yn(e.init,"accessor.init"),e.initializer!==void 0&&yn(e.initializer,"accessor.initializer")}else if(r!=="function")throw new TypeError((t===0?"field":t===10?"class":"method")+" decorators must return a function or void 0")}function tu(t){var e;return(e=t.init)==null&&(e=t.initializer)&&typeof console<"u"&&console.warn(".initializer has been renamed to .init as of March 2022"),e}function fg(t,e,r,i,n,s,a,o,l){var h,c,u,f,p,m,g=r[0];if(a?h=n===0||n===1?{get:r[3],set:r[4]}:n===3?{get:r[3]}:n===4?{set:r[3]}:{value:r[3]}:n!==0&&(h=Object.getOwnPropertyDescriptor(e,i)),n===1?u={get:h.get,set:h.set}:n===2?u=h.value:n===3?u=h.get:n===4&&(u=h.set),typeof g=="function")(f=Qc(g,i,h,o,l,n,s,a,u))!==void 0&&(al(n,f),n===0?c=f:n===1?(c=tu(f),p=f.get||u.get,m=f.set||u.set,u={get:p,set:m}):u=f);else for(var d=g.length-1;d>=0;d--){var y;(f=Qc(g[d],i,h,o,l,n,s,a,u))!==void 0&&(al(n,f),n===0?y=f:n===1?(y=tu(f),p=f.get||u.get,m=f.set||u.set,u={get:p,set:m}):u=f,y!==void 0&&(c===void 0?c=y:typeof c=="function"?c=[c,y]:c.push(y)))}if(n===0||n===1){if(c===void 0)c=function(_,S){return S};else if(typeof c!="function"){var v=c;c=function(_,S){for(var T=S,x=0;x<v.length;x++)T=v[x].call(_,T);return T}}else{var b=c;c=function(_,S){return b.call(_,S)}}t.push(c)}n!==0&&(n===1?(h.get=u.get,h.set=u.set):n===2?h.value=u:n===3?h.get=u:n===4&&(h.set=u),a?n===1?(t.push(function(_,S){return u.get.call(_,S)}),t.push(function(_,S){return u.set.call(_,S)})):n===2?t.push(u):t.push(function(_,S){return u.call(_,S)}):Object.defineProperty(e,i,h))}function mg(t,e,r,i,n){for(var s,a,o=new Map,l=new Map,h=0;h<n.length;h++){var c=n[h];if(Array.isArray(c)){var u,f,p,m=c[1],g=c[2],d=c.length>3,y=m>=5;if(y?(u=e,f=i,(m-=5)!=0&&(p=a=a||[])):(u=e.prototype,f=r,m!==0&&(p=s=s||[])),m!==0&&!d){var v=y?l:o,b=v.get(g)||0;if(b===!0||b===3&&m!==4||b===4&&m!==3)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+g);!b&&m>2?v.set(g,m):v.set(g,!0)}fg(t,u,c,g,m,y,d,f,p)}}ru(t,s),ru(t,a)}function ru(t,e){e&&t.push(function(r){for(var i=0;i<e.length;i++)e[i].call(r);return r})}function gg(t,e,r,i){if(i.length>0){for(var n=[],s=e,a=e.name,o=i.length-1;o>=0;o--){var l={v:!1};try{var h=Object.assign({kind:"class",name:a,addInitializer:zu(n,l)},Nu(r,0,a,l)),c=i[o](s,h)}finally{l.v=!0}c!==void 0&&(al(10,c),s=c)}t.push(s,function(){for(var u=0;u<n.length;u++)n[u].call(s)})}}function G1(t,e,r){var i=[],n={},s={};return mg(i,t,s,n,e),Kc(t.prototype,s),gg(i,t,n,r),Kc(t,n),i}function ju(t,e){return function(r){yg(e,"addInitializer"),Ls(r,"An initializer"),t.push(r)}}function iu(t,e,r,i,n,s,a,o){var l;switch(n){case 1:l="accessor";break;case 2:l="method";break;case 3:l="getter";break;case 4:l="setter";break;default:l="field"}var h,c,u={kind:l,name:a?"#"+e:e,static:s,private:a},f={v:!1};n!==0&&(u.addInitializer=ju(i,f)),n===0?a?(h=r.get,c=r.set):(h=function(){return this[e]},c=function(p){this[e]=p}):n===2?h=function(){return r.value}:(n!==1&&n!==3||(h=function(){return r.get.call(this)}),n!==1&&n!==4||(c=function(p){r.set.call(this,p)})),u.access=h&&c?{get:h,set:c}:h?{get:h}:{set:c};try{return t(o,u)}finally{f.v=!0}}function yg(t,e){if(t.v)throw new Error("attempted to call "+e+" after decoration was finished")}function Ls(t,e){if(typeof t!="function")throw new TypeError(e+" must be a function")}function ol(t,e){var r=typeof e;if(t===1){if(r!=="object"||e===null)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");e.get!==void 0&&Ls(e.get,"accessor.get"),e.set!==void 0&&Ls(e.set,"accessor.set"),e.init!==void 0&&Ls(e.init,"accessor.init")}else if(r!=="function")throw new TypeError((t===0?"field":t===10?"class":"method")+" decorators must return a function or void 0")}function vg(t,e,r,i,n,s,a,o){var l,h,c,u,f,p,m=r[0];if(a?l=n===0||n===1?{get:r[3],set:r[4]}:n===3?{get:r[3]}:n===4?{set:r[3]}:{value:r[3]}:n!==0&&(l=Object.getOwnPropertyDescriptor(e,i)),n===1?c={get:l.get,set:l.set}:n===2?c=l.value:n===3?c=l.get:n===4&&(c=l.set),typeof m=="function")(u=iu(m,i,l,o,n,s,a,c))!==void 0&&(ol(n,u),n===0?h=u:n===1?(h=u.init,f=u.get||c.get,p=u.set||c.set,c={get:f,set:p}):c=u);else for(var g=m.length-1;g>=0;g--){var d;(u=iu(m[g],i,l,o,n,s,a,c))!==void 0&&(ol(n,u),n===0?d=u:n===1?(d=u.init,f=u.get||c.get,p=u.set||c.set,c={get:f,set:p}):c=u,d!==void 0&&(h===void 0?h=d:typeof h=="function"?h=[h,d]:h.push(d)))}if(n===0||n===1){if(h===void 0)h=function(b,_){return _};else if(typeof h!="function"){var y=h;h=function(b,_){for(var S=_,T=0;T<y.length;T++)S=y[T].call(b,S);return S}}else{var v=h;h=function(b,_){return v.call(b,_)}}t.push(h)}n!==0&&(n===1?(l.get=c.get,l.set=c.set):n===2?l.value=c:n===3?l.get=c:n===4&&(l.set=c),a?n===1?(t.push(function(b,_){return c.get.call(b,_)}),t.push(function(b,_){return c.set.call(b,_)})):n===2?t.push(c):t.push(function(b,_){return c.call(b,_)}):Object.defineProperty(e,i,l))}function bg(t,e,r){for(var i,n,s=new Map,a=new Map,o=0;o<r.length;o++){var l=r[o];if(Array.isArray(l)){var h,c,u=l[1],f=l[2],p=l.length>3,m=u>=5;if(m?(h=e,(u-=5)!=0&&(c=n=n||[])):(h=e.prototype,u!==0&&(c=i=i||[])),u!==0&&!p){var g=m?a:s,d=g.get(f)||0;if(d===!0||d===3&&u!==4||d===4&&u!==3)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+f);!d&&u>2?g.set(f,u):g.set(f,!0)}vg(t,h,l,f,u,m,p,c)}}nu(t,i),nu(t,n)}function nu(t,e){e&&t.push(function(r){for(var i=0;i<e.length;i++)e[i].call(r);return r})}function _g(t,e,r){if(r.length>0){for(var i=[],n=e,s=e.name,a=r.length-1;a>=0;a--){var o={v:!1};try{var l=r[a](n,{kind:"class",name:s,addInitializer:ju(i,o)})}finally{o.v=!0}l!==void 0&&(ol(10,l),n=l)}t.push(n,function(){for(var h=0;h<i.length;h++)i[h].call(n)})}}function H1(t,e,r){var i=[];return bg(i,t,e),_g(i,t,r),i}function q1(t){var e={},r=!1;function i(n,s){return r=!0,{done:!1,value:new yl(s=new Promise(function(a){a(t[n](s))}),1)}}return e[typeof Symbol<"u"&&Symbol.iterator||"@@iterator"]=function(){return this},e.next=function(n){return r?(r=!1,n):i("next",n)},typeof t.throw=="function"&&(e.throw=function(n){if(r)throw r=!1,n;return i("throw",n)}),typeof t.return=="function"&&(e.return=function(n){return r?(r=!1,n):i("return",n)}),e}function U1(t){var e,r,i,n=2;for(typeof Symbol<"u"&&(r=Symbol.asyncIterator,i=Symbol.iterator);n--;){if(r&&(e=t[r])!=null)return e.call(t);if(i&&(e=t[i])!=null)return new ll(e.call(t));r="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")}function ll(t){function e(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var i=r.done;return Promise.resolve(r.value).then(function(n){return{value:n,done:i}})}return(ll=function(r){this.s=r,this.n=r.next}).prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(r){var i=this.s.return;return i===void 0?Promise.resolve({value:r,done:!0}):e(i.apply(this.s,arguments))},throw:function(r){var i=this.s.return;return i===void 0?Promise.reject(r):e(i.apply(this.s,arguments))}},new ll(t)}function W1(t){return new yl(t,0)}function Z1(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(t!==null?typeof t:"null"));return t}function wg(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var i,n,s,a,o=[],l=!0,h=!1;try{if(s=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=s.call(r)).done)&&(o.push(i.value),o.length!==e);l=!0);}catch(c){h=!0,n=c}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(h)throw n}}return o}}function xg(t,e){var r=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(r!=null){var i,n=[];for(r=r.call(t);t.length<e&&!(i=r.next()).done;)n.push(i.value);return n}}var Yo;function Y1(t,e,r,i){Yo||(Yo=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103);var n=t&&t.defaultProps,s=arguments.length-3;if(e||s===0||(e={children:void 0}),s===1)e.children=i;else if(s>1){for(var a=new Array(s),o=0;o<s;o++)a[o]=arguments[o+3];e.children=a}if(e&&n)for(var l in n)e[l]===void 0&&(e[l]=n[l]);else e||(e=n||{});return{$$typeof:Yo,type:t,key:r===void 0?null:""+r,ref:null,props:e,_owner:null}}function su(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function J1(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?su(Object(r),!0).forEach(function(i){vl(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):su(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Sg(){Sg=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(P,A,E){P[A]=E.value},n=typeof Symbol=="function"?Symbol:{},s=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",o=n.toStringTag||"@@toStringTag";function l(P,A,E){return Object.defineProperty(P,A,{value:E,enumerable:!0,configurable:!0,writable:!0}),P[A]}try{l({},"")}catch{l=function(A,E,F){return A[E]=F}}function h(P,A,E,F){var $=A&&A.prototype instanceof f?A:f,D=Object.create($.prototype),C=new M(F||[]);return i(D,"_invoke",{value:S(P,E,C)}),D}function c(P,A,E){try{return{type:"normal",arg:P.call(A,E)}}catch(F){return{type:"throw",arg:F}}}t.wrap=h;var u={};function f(){}function p(){}function m(){}var g={};l(g,s,function(){return this});var d=Object.getPrototypeOf,y=d&&d(d(k([])));y&&y!==e&&r.call(y,s)&&(g=y);var v=m.prototype=f.prototype=Object.create(g);function b(P){["next","throw","return"].forEach(function(A){l(P,A,function(E){return this._invoke(A,E)})})}function _(P,A){var E;i(this,"_invoke",{value:function(F,$){function D(){return new A(function(C,R){(function B(U,Z,X,H){var ie=c(P[U],P,Z);if(ie.type!=="throw"){var le=ie.arg,se=le.value;return se&&typeof se=="object"&&r.call(se,"__await")?A.resolve(se.__await).then(function(te){B("next",te,X,H)},function(te){B("throw",te,X,H)}):A.resolve(se).then(function(te){le.value=te,X(le)},function(te){return B("throw",te,X,H)})}H(ie.arg)})(F,$,C,R)})}return E=E?E.then(D,D):D()}})}function S(P,A,E){var F="suspendedStart";return function($,D){if(F==="executing")throw new Error("Generator is already running");if(F==="completed"){if($==="throw")throw D;return I()}for(E.method=$,E.arg=D;;){var C=E.delegate;if(C){var R=T(C,E);if(R){if(R===u)continue;return R}}if(E.method==="next")E.sent=E._sent=E.arg;else if(E.method==="throw"){if(F==="suspendedStart")throw F="completed",E.arg;E.dispatchException(E.arg)}else E.method==="return"&&E.abrupt("return",E.arg);F="executing";var B=c(P,A,E);if(B.type==="normal"){if(F=E.done?"completed":"suspendedYield",B.arg===u)continue;return{value:B.arg,done:E.done}}B.type==="throw"&&(F="completed",E.method="throw",E.arg=B.arg)}}}function T(P,A){var E=A.method,F=P.iterator[E];if(F===void 0)return A.delegate=null,E==="throw"&&P.iterator.return&&(A.method="return",A.arg=void 0,T(P,A),A.method==="throw")||E!=="return"&&(A.method="throw",A.arg=new TypeError("The iterator does not provide a '"+E+"' method")),u;var $=c(F,P.iterator,A.arg);if($.type==="throw")return A.method="throw",A.arg=$.arg,A.delegate=null,u;var D=$.arg;return D?D.done?(A[P.resultName]=D.value,A.next=P.nextLoc,A.method!=="return"&&(A.method="next",A.arg=void 0),A.delegate=null,u):D:(A.method="throw",A.arg=new TypeError("iterator result is not an object"),A.delegate=null,u)}function x(P){var A={tryLoc:P[0]};1 in P&&(A.catchLoc=P[1]),2 in P&&(A.finallyLoc=P[2],A.afterLoc=P[3]),this.tryEntries.push(A)}function w(P){var A=P.completion||{};A.type="normal",delete A.arg,P.completion=A}function M(P){this.tryEntries=[{tryLoc:"root"}],P.forEach(x,this),this.reset(!0)}function k(P){if(P){var A=P[s];if(A)return A.call(P);if(typeof P.next=="function")return P;if(!isNaN(P.length)){var E=-1,F=function $(){for(;++E<P.length;)if(r.call(P,E))return $.value=P[E],$.done=!1,$;return $.value=void 0,$.done=!0,$};return F.next=F}}return{next:I}}function I(){return{value:void 0,done:!0}}return p.prototype=m,i(v,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:p,configurable:!0}),p.displayName=l(m,o,"GeneratorFunction"),t.isGeneratorFunction=function(P){var A=typeof P=="function"&&P.constructor;return!!A&&(A===p||(A.displayName||A.name)==="GeneratorFunction")},t.mark=function(P){return Object.setPrototypeOf?Object.setPrototypeOf(P,m):(P.__proto__=m,l(P,o,"GeneratorFunction")),P.prototype=Object.create(v),P},t.awrap=function(P){return{__await:P}},b(_.prototype),l(_.prototype,a,function(){return this}),t.AsyncIterator=_,t.async=function(P,A,E,F,$){$===void 0&&($=Promise);var D=new _(h(P,A,E,F),$);return t.isGeneratorFunction(A)?D:D.next().then(function(C){return C.done?C.value:D.next()})},b(v),l(v,o,"Generator"),l(v,s,function(){return this}),l(v,"toString",function(){return"[object Generator]"}),t.keys=function(P){var A=Object(P),E=[];for(var F in A)E.push(F);return E.reverse(),function $(){for(;E.length;){var D=E.pop();if(D in A)return $.value=D,$.done=!1,$}return $.done=!0,$}},t.values=k,M.prototype={constructor:M,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!P)for(var A in this)A.charAt(0)==="t"&&r.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var A=this;function E(B,U){return D.type="throw",D.arg=P,A.next=B,U&&(A.method="next",A.arg=void 0),!!U}for(var F=this.tryEntries.length-1;F>=0;--F){var $=this.tryEntries[F],D=$.completion;if($.tryLoc==="root")return E("end");if($.tryLoc<=this.prev){var C=r.call($,"catchLoc"),R=r.call($,"finallyLoc");if(C&&R){if(this.prev<$.catchLoc)return E($.catchLoc,!0);if(this.prev<$.finallyLoc)return E($.finallyLoc)}else if(C){if(this.prev<$.catchLoc)return E($.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<$.finallyLoc)return E($.finallyLoc)}}}},abrupt:function(P,A){for(var E=this.tryEntries.length-1;E>=0;--E){var F=this.tryEntries[E];if(F.tryLoc<=this.prev&&r.call(F,"finallyLoc")&&this.prev<F.finallyLoc){var $=F;break}}$&&(P==="break"||P==="continue")&&$.tryLoc<=A&&A<=$.finallyLoc&&($=null);var D=$?$.completion:{};return D.type=P,D.arg=A,$?(this.method="next",this.next=$.finallyLoc,u):this.complete(D)},complete:function(P,A){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&A&&(this.next=A),u},finish:function(P){for(var A=this.tryEntries.length-1;A>=0;--A){var E=this.tryEntries[A];if(E.finallyLoc===P)return this.complete(E.completion,E.afterLoc),w(E),u}},catch:function(P){for(var A=this.tryEntries.length-1;A>=0;--A){var E=this.tryEntries[A];if(E.tryLoc===P){var F=E.completion;if(F.type==="throw"){var $=F.arg;w(E)}return $}}throw new Error("illegal catch attempt")},delegateYield:function(P,A,E){return this.delegate={iterator:k(P),resultName:A,nextLoc:E},this.method==="next"&&(this.arg=void 0),u}},t}function kg(t){return(kg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function au(){au=function(n,s){return new r(n,void 0,s)};var t=RegExp.prototype,e=new WeakMap;function r(n,s,a){var o=new RegExp(n,s);return e.set(o,a||e.get(n)),$i(o,r.prototype)}function i(n,s){var a=e.get(s);return Object.keys(a).reduce(function(o,l){var h=a[l];if(typeof h=="number")o[l]=n[h];else{for(var c=0;n[h[c]]===void 0&&c+1<h.length;)c++;o[l]=n[h[c]]}return o},Object.create(null))}return Pg(r,RegExp),r.prototype.exec=function(n){var s=t.exec.call(this,n);if(s){s.groups=i(s,this);var a=s.indices;a&&(a.groups=i(a,this))}return s},r.prototype[Symbol.replace]=function(n,s){if(typeof s=="string"){var a=e.get(this);return t[Symbol.replace].call(this,n,s.replace(/\$<([^>]+)>/g,function(l,h){var c=a[h];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof s=="function"){var o=this;return t[Symbol.replace].call(this,n,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(i(l,o)),s.apply(this,l)})}return t[Symbol.replace].call(this,n,s)},au.apply(this,arguments)}function X1(t){this.wrapped=t}function K1(t){return function(){return new gn(t.apply(this,arguments))}}function ou(t,e,r,i,n,s,a){try{var o=t[s](a),l=o.value}catch(h){return void r(h)}o.done?e(l):Promise.resolve(l).then(i,n)}function Q1(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var s=t.apply(e,r);function a(l){ou(s,i,n,a,o,"next",l)}function o(l){ou(s,i,n,a,o,"throw",l)}a(void 0)})}}function eb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lu(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,na(i.key),i)}}function tb(t,e,r){return e&&lu(t.prototype,e),r&&lu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function rb(t,e){for(var r in e)(s=e[r]).configurable=s.enumerable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,r,s);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),n=0;n<i.length;n++){var s,a=i[n];(s=e[a]).configurable=s.enumerable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,a,s)}return t}function ib(t,e){for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var n=r[i],s=Object.getOwnPropertyDescriptor(e,n);s&&s.configurable&&t[n]===void 0&&Object.defineProperty(t,n,s)}return t}function vl(t,e,r){return(e=na(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Eg(){return(Eg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t}).apply(this,arguments)}function nb(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?Object(arguments[e]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&i.push.apply(i,Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.forEach(function(n){vl(t,n,r[n])})}return t}function Pg(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$i(t,e)}function sb(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,$i(t,e)}function _n(t){return(_n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(t)}function $i(t,e){return($i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r})(t,e)}function Gu(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Hu(t,e,r){return(Hu=Gu()?Reflect.construct.bind():function(i,n,s){var a=[null];a.push.apply(a,n);var o=new(Function.bind.apply(i,a));return s&&$i(o,s.prototype),o}).apply(null,arguments)}function Ag(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Cg(t){var e=typeof Map=="function"?new Map:void 0;return(Cg=function(r){if(r===null||!Ag(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return Hu(r,arguments,_n(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),$i(i,r)})(t)}function ab(t,e){return e!=null&&typeof Symbol<"u"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function lb(t){return t&&t.__esModule?t:{default:t}}function qu(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return(qu=function(i){return i?r:e})(t)}function hb(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var r=qu(e);if(r&&r.has(t))return r.get(t);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var a=n?Object.getOwnPropertyDescriptor(t,s):null;a&&(a.get||a.set)?Object.defineProperty(i,s,a):i[s]=t[s]}return i.default=t,r&&r.set(t,i),i}function cb(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}function ub(t){if(t==null)throw new TypeError("Cannot destructure "+t)}function Tg(t,e){if(t==null)return{};var r,i,n={},s=Object.keys(t);for(i=0;i<s.length;i++)r=s[i],e.indexOf(r)>=0||(n[r]=t[r]);return n}function pb(t,e){if(t==null)return{};var r,i,n=Tg(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Ig(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mg(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ig(t)}function db(t){var e=Gu();return function(){var r,i=_n(t);if(e){var n=_n(this).constructor;r=Reflect.construct(i,arguments,n)}else r=i.apply(this,arguments);return Mg(this,r)}}function Uu(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=_n(t))!==null;);return t}function Dg(){return(Dg=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,e,r){var i=Uu(t,e);if(i){var n=Object.getOwnPropertyDescriptor(i,e);return n.get?n.get.call(arguments.length<3?t:r):n.value}}).apply(this,arguments)}function Wu(t,e,r,i){return(Wu=typeof Reflect<"u"&&Reflect.set?Reflect.set:function(n,s,a,o){var l,h=Uu(n,s);if(h){if((l=Object.getOwnPropertyDescriptor(h,s)).set)return l.set.call(o,a),!0;if(!l.writable)return!1}if(l=Object.getOwnPropertyDescriptor(o,s)){if(!l.writable)return!1;l.value=a,Object.defineProperty(o,s,l)}else vl(o,s,a);return!0})(t,e,r,i)}function fb(t,e,r,i,n){if(!Wu(t,e,r,i||t)&&n)throw new Error("failed to set property");return r}function ki(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function mb(t,e){return e||(e=t.slice(0)),t.raw=e,t}function gb(t){throw new TypeError('"'+t+'" is read-only')}function yb(t){throw new TypeError('"'+t+'" is write-only')}function vb(t){throw new Error('Class "'+t+'" cannot be referenced in computed property keys.')}function Fg(){}function $g(t){throw new ReferenceError(t+" is not defined - temporal dead zone")}function bb(t,e){return t===Fg?$g(e):t}function _b(t,e){return bl(t)||wg(t,e)||Oi(t,e)||_l()}function wb(t,e){return bl(t)||xg(t,e)||Oi(t,e)||_l()}function Og(t){return bl(t)||Zu(t)||Oi(t)||_l()}function xb(t){return Rg(t)||Zu(t)||Oi(t)||Lg()}function Rg(t){if(Array.isArray(t))return js(t)}function bl(t){if(Array.isArray(t))return t}function Sb(t,e,r){if(e&&!Array.isArray(e)&&typeof e.length=="number"){var i=e.length;return js(e,r!==void 0&&r<i?r:i)}return t(e,r)}function Zu(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Oi(t,e){if(t){if(typeof t=="string")return js(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?js(t,e):void 0}}function js(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function Lg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
19
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
20
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kb(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Oi(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
21
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,a=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return a=l.done,l},e:function(l){o=!0,s=l},f:function(){try{a||r.return==null||r.return()}finally{if(o)throw s}}}}function Eb(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=Oi(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
22
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pb(t){return function(){var e=t.apply(this,arguments);return e.next(),e}}function Bg(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function na(t){var e=Bg(t,"string");return typeof e=="symbol"?e:String(e)}function Ab(t,e){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")}function Cb(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function Tb(t,e,r,i,n){var s={};return Object.keys(i).forEach(function(a){s[a]=i[a]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce(function(a,o){return o(t,e,a)||a},s),n&&s.initializer!==void 0&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),s.initializer===void 0&&(Object.defineProperty(t,e,s),s=null),s}gn.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},gn.prototype.next=function(t){return this._invoke("next",t)},gn.prototype.throw=function(t){return this._invoke("throw",t)},gn.prototype.return=function(t){return this._invoke("return",t)};var Vg=0;function Ib(t){return"__private_"+Vg+++"_"+t}function Mb(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}function Db(t,e){return Yu(t,wl(t,e,"get"))}function Fb(t,e,r){return Ju(t,wl(t,e,"set"),r),r}function $b(t,e){return Xu(t,wl(t,e,"set"))}function wl(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function Ob(t,e,r){return sa(t,e),xl(r,"get"),Yu(t,r)}function Rb(t,e,r,i){return sa(t,e),xl(r,"set"),Ju(t,r,i),i}function Lb(t,e,r){return sa(t,e),r}function Bb(){throw new TypeError("attempted to set read only static private field")}function Yu(t,e){return e.get?e.get.call(t):e.value}function Ju(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function Xu(t,e){if(e.set)return"__destrObj"in e||(e.__destrObj={set value(r){e.set.call(t,r)}}),e.__destrObj;if(!e.writable)throw new TypeError("attempted to set read only private field");return e}function Vb(t,e,r){return sa(t,e),xl(r,"set"),Xu(t,r)}function sa(t,e){if(t!==e)throw new TypeError("Private static access of wrong provenance")}function xl(t,e){if(t===void 0)throw new TypeError("attempted to "+e+" private static field before its declaration")}function Nb(t,e,r,i){var n=Ku();if(i)for(var s=0;s<i.length;s++)n=i[s](n);var a=e(function(l){n.initializeInstanceElements(l,o.elements)},r),o=n.decorateClass(jg(a.d.map(Ng)),t);return n.initializeClassElements(a.F,o.elements),n.runClassFinishers(a.F,o.finishers)}function Ku(){Ku=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,r){["method","field"].forEach(function(i){r.forEach(function(n){n.kind===i&&n.placement==="own"&&this.defineClassElement(e,n)},this)},this)},initializeClassElements:function(e,r){var i=e.prototype;["method","field"].forEach(function(n){r.forEach(function(s){var a=s.placement;if(s.kind===n&&(a==="static"||a==="prototype")){var o=a==="static"?e:i;this.defineClassElement(o,s)}},this)},this)},defineClassElement:function(e,r){var i=r.descriptor;if(r.kind==="field"){var n=r.initializer;i={enumerable:i.enumerable,writable:i.writable,configurable:i.configurable,value:n===void 0?void 0:n.call(e)}}Object.defineProperty(e,r.key,i)},decorateClass:function(e,r){var i=[],n=[],s={static:[],prototype:[],own:[]};if(e.forEach(function(o){this.addElementPlacement(o,s)},this),e.forEach(function(o){if(!vn(o))return i.push(o);var l=this.decorateElement(o,s);i.push(l.element),i.push.apply(i,l.extras),n.push.apply(n,l.finishers)},this),!r)return{elements:i,finishers:n};var a=this.decorateConstructor(i,r);return n.push.apply(n,a.finishers),a.finishers=n,a},addElementPlacement:function(e,r,i){var n=r[e.placement];if(!i&&n.indexOf(e.key)!==-1)throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,r){for(var i=[],n=[],s=e.decorators,a=s.length-1;a>=0;a--){var o=r[e.placement];o.splice(o.indexOf(e.key),1);var l=this.fromElementDescriptor(e),h=this.toElementFinisherExtras((0,s[a])(l)||l);e=h.element,this.addElementPlacement(e,r),h.finisher&&n.push(h.finisher);var c=h.extras;if(c){for(var u=0;u<c.length;u++)this.addElementPlacement(c[u],r);i.push.apply(i,c)}}return{element:e,finishers:n,extras:i}},decorateConstructor:function(e,r){for(var i=[],n=r.length-1;n>=0;n--){var s=this.fromClassDescriptor(e),a=this.toClassDescriptor((0,r[n])(s)||s);if(a.finisher!==void 0&&i.push(a.finisher),a.elements!==void 0){e=a.elements;for(var o=0;o<e.length-1;o++)for(var l=o+1;l<e.length;l++)if(e[o].key===e[l].key&&e[o].placement===e[l].placement)throw new TypeError("Duplicated element ("+e[o].key+")")}}return{elements:e,finishers:i}},fromElementDescriptor:function(e){var r={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e.kind==="field"&&(r.initializer=e.initializer),r},toElementDescriptors:function(e){if(e!==void 0)return Og(e).map(function(r){var i=this.toElementDescriptor(r);return this.disallowProperty(r,"finisher","An element descriptor"),this.disallowProperty(r,"extras","An element descriptor"),i},this)},toElementDescriptor:function(e){var r=String(e.kind);if(r!=="method"&&r!=="field")throw new TypeError(`An element descriptor's .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "`+r+'"');var i=na(e.key),n=String(e.placement);if(n!=="static"&&n!=="prototype"&&n!=="own")throw new TypeError(`An element descriptor's .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "`+n+'"');var s=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var a={kind:r,key:i,placement:n,descriptor:Object.assign({},s)};return r!=="field"?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(s,"get","The property descriptor of a field descriptor"),this.disallowProperty(s,"set","The property descriptor of a field descriptor"),this.disallowProperty(s,"value","The property descriptor of a field descriptor"),a.initializer=e.initializer),a},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:cu(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var r={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),r},toClassDescriptor:function(e){var r=String(e.kind);if(r!=="class")throw new TypeError(`A class descriptor's .kind property must be "class", but a decorator created a class descriptor with .kind "`+r+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var i=cu(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:i}},runClassFinishers:function(e,r){for(var i=0;i<r.length;i++){var n=(0,r[i])(e);if(n!==void 0){if(typeof n!="function")throw new TypeError("Finishers must return a constructor.");e=n}}return e},disallowProperty:function(e,r,i){if(e[r]!==void 0)throw new TypeError(i+" can't have a ."+r+" property.")}};return t}function Ng(t){var e,r=na(t.key);t.kind==="method"?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:t.kind==="get"?e={get:t.value,configurable:!0,enumerable:!1}:t.kind==="set"?e={set:t.value,configurable:!0,enumerable:!1}:t.kind==="field"&&(e={configurable:!0,writable:!0,enumerable:!0});var i={kind:t.kind==="field"?"field":"method",key:r,placement:t.static?"static":t.kind==="field"?"own":"prototype",descriptor:e};return t.decorators&&(i.decorators=t.decorators),t.kind==="field"&&(i.initializer=t.value),i}function zg(t,e){t.descriptor.get!==void 0?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function jg(t){for(var e=[],r=function(a){return a.kind==="method"&&a.key===s.key&&a.placement===s.placement},i=0;i<t.length;i++){var n,s=t[i];if(s.kind==="method"&&(n=e.find(r)))if(hu(s.descriptor)||hu(n.descriptor)){if(vn(s)||vn(n))throw new ReferenceError("Duplicated methods ("+s.key+") can't be decorated.");n.descriptor=s.descriptor}else{if(vn(s)){if(vn(n))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+s.key+").");n.decorators=s.decorators}zg(s,n)}else e.push(s)}return e}function vn(t){return t.decorators&&t.decorators.length}function hu(t){return t!==void 0&&!(t.value===void 0&&t.writable===void 0)}function cu(t,e){var r=t[e];if(r!==void 0&&typeof r!="function")throw new TypeError("Expected '"+e+"' to be a function");return r}function zb(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}function Qu(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function jb(t,e,r){Qu(t,e),e.set(t,r)}function Gb(t,e){Qu(t,e),e.add(t)}function Hb(){throw new TypeError("attempted to reassign private method")}function qb(t){return t}var ep=function(t,e){return(ep=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)i.hasOwnProperty(n)&&(r[n]=i[n])})(t,e)};function Ub(t,e){function r(){this.constructor=t}ep(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Gg=function(){return(Gg=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function Wb(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]])}return r}function nt(t,e,r,i){var n,s=arguments.length,a=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(a=(s<3?n(a):s>3?n(e,r,a):n(e,r))||a);return s>3&&a&&Object.defineProperty(e,r,a),a}function Zb(t,e){return function(r,i){e(r,i,t)}}function Yb(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function Jb(t,e,r,i){return new(r||(r=Promise))(function(n,s){function a(h){try{l(i.next(h))}catch(c){s(c)}}function o(h){try{l(i.throw(h))}catch(c){s(c)}}function l(h){var c;h.done?n(h.value):(c=h.value,c instanceof r?c:new r(function(u){u(c)})).then(a,o)}l((i=i.apply(t,e||[])).next())})}function Xb(t,e){var r,i,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(l){return function(h){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&c[0]?i.return:c[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,c[1])).done)return n;switch(i=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,i=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(n=a.trys,!((n=n.length>0&&n[n.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]<n[3])){a.label=c[1];break}if(c[0]===6&&a.label<n[1]){a.label=n[1],n=c;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(c);break}n[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(u){c=[6,u],i=0}finally{r=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,h])}}}function Kb(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}function Qb(t,e){for(var r in t)r==="default"||e.hasOwnProperty(r)||(e[r]=t[r])}function uu(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Hg(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var i,n,s=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(i=s.next()).done;)a.push(i.value)}catch(o){n={error:o}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a}function e_(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Hg(arguments[e]));return t}function t_(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var i=Array(t),n=0;for(e=0;e<r;e++)for(var s=arguments[e],a=0,o=s.length;a<o;a++,n++)i[n]=s[a];return i}function Gs(t){return this instanceof Gs?(this.v=t,this):new Gs(t)}function r_(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,n=r.apply(t,e||[]),s=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(u){n[u]&&(i[u]=function(f){return new Promise(function(p,m){s.push([u,f,p,m])>1||o(u,f)})})}function o(u,f){try{(function(p){p.value instanceof Gs?Promise.resolve(p.value.v).then(l,h):c(s[0][2],p)})(n[u](f))}catch(p){c(s[0][3],p)}}function l(u){o("next",u)}function h(u){o("throw",u)}function c(u,f){u(f),s.shift(),s.length&&o(s[0][0],s[0][1])}}function i_(t){var e,r;return e={},i("next"),i("throw",function(n){throw n}),i("return"),e[Symbol.iterator]=function(){return this},e;function i(n,s){e[n]=t[n]?function(a){return(r=!r)?{value:Gs(t[n](a)),done:n==="return"}:s?s(a):a}:s}}function n_(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=typeof uu=="function"?uu(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(s){return new Promise(function(a,o){(function(l,h,c,u){Promise.resolve(u).then(function(f){l({value:f,done:c})},h)})(a,o,(s=t[n](s)).done,s.value)})}}}function s_(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function a_(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function o_(t){return t&&t.__esModule?t:{default:t}}function l_(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function h_(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}var Bs=window,Sl=Bs.ShadowRoot&&(Bs.ShadyCSS===void 0||Bs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,kl=Symbol(),pu=new WeakMap,Hs=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==kl)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Sl&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=pu.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&pu.set(r,e))}return e}toString(){return this.cssText}},qg=t=>new Hs(typeof t=="string"?t:t+"",void 0,kl),Ug=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,s)=>i+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[s+1],t[0]);return new Hs(r,t,kl)},Wg=(t,e)=>{Sl?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let i=document.createElement("style"),n=Bs.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)})},du=Sl?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return qg(r)})(t):t,Jo,qs=window,fu=qs.trustedTypes,Zg=fu?fu.emptyScript:"",mu=qs.reactiveElementPolyfillSupport,hl={toAttribute(t,e){switch(e){case Boolean:t=t?Zg:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},tp=(t,e)=>e!==t&&(e==e||t==t),Xo={attribute:!0,type:String,converter:hl,reflect:!1,hasChanged:tp},sr=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((r,i)=>{let n=this._$Ep(i,r);n!==void 0&&(this._$Ev.set(n,i),e.push(n))}),e}static createProperty(e,r=Xo){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){let i=typeof e=="symbol"?Symbol():"__"+e,n=this.getPropertyDescriptor(e,i,r);n!==void 0&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){return{get(){return this[r]},set(n){let s=this[e];this[r]=n,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Xo}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,i=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let n of i)this.createProperty(n,r[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(du(n))}else e!==void 0&&r.push(du(e));return r}static _$Ep(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,i;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)===null||i===void 0||i.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;let r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Wg(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return(i=r.hostConnected)===null||i===void 0?void 0:i.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return(i=r.hostDisconnected)===null||i===void 0?void 0:i.call(r)})}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$EO(e,r,i=Xo){var n;let s=this.constructor._$Ep(e,i);if(s!==void 0&&i.reflect===!0){let a=(((n=i.converter)===null||n===void 0?void 0:n.toAttribute)!==void 0?i.converter:hl).toAttribute(r,i.type);this._$El=e,a==null?this.removeAttribute(s):this.setAttribute(s,a),this._$El=null}}_$AK(e,r){var i;let n=this.constructor,s=n._$Ev.get(e);if(s!==void 0&&this._$El!==s){let a=n.getPropertyOptions(s),o=typeof a.converter=="function"?{fromAttribute:a.converter}:((i=a.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?a.converter:hl;this._$El=s,this[s]=o.fromAttribute(r,a.type),this._$El=null}}requestUpdate(e,r,i){let n=!0;e!==void 0&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||tp)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),i.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((n,s)=>this[s]=n),this._$Ei=void 0);let r=!1,i=this._$AL;try{r=this.shouldUpdate(i),r?(this.willUpdate(i),(e=this._$ES)===null||e===void 0||e.forEach(n=>{var s;return(s=n.hostUpdate)===null||s===void 0?void 0:s.call(n)}),this.update(i)):this._$Ek()}catch(n){throw r=!1,this._$Ek(),n}r&&this._$AE(i)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(i=>{var n;return(n=i.hostUpdated)===null||n===void 0?void 0:n.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,i)=>this._$EO(i,this[i],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};var Ko;sr.finalized=!0,sr.elementProperties=new Map,sr.elementStyles=[],sr.shadowRootOptions={mode:"open"},mu?.({ReactiveElement:sr}),((Jo=qs.reactiveElementVersions)!==null&&Jo!==void 0?Jo:qs.reactiveElementVersions=[]).push("1.5.0");var Us=window,Ci=Us.trustedTypes,gu=Ci?Ci.createPolicy("lit-html",{createHTML:t=>t}):void 0,ar=`lit$${(Math.random()+"").slice(9)}$`,El="?"+ar,Yg=`<${El}>`,Ti=document,wn=(t="")=>Ti.createComment(t),xn=t=>t===null||typeof t!="object"&&typeof t!="function",rp=Array.isArray,ip=t=>rp(t)||typeof t?.[Symbol.iterator]=="function",mn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yu=/-->/g,vu=/>/g,Yr=RegExp(`>|[
18
+ `);this.config,this.messages=0}};Fs=new WeakSet,Yc=function(){return this.messages===0},$s=new WeakSet,Jc=function(r){let i={example:r};this.dispatchEvent(new CustomEvent("mw-example-click",{detail:i}))},de(Ds,"properties",{config:{type:Object},messages:{type:Number}});customElements.define("mw-background",Ds);function gn(t){var e,r;function i(s,a){try{var o=t[s](a),l=o.value,h=l instanceof gl;Promise.resolve(h?l.v:l).then(function(c){if(h){var u=s==="return"?"return":"next";if(!l.k||c.done)return i(u,c);c=t[u](c).value}n(o.done?"return":"normal",c)},function(c){i("throw",c)})}catch(c){n("throw",c)}}function n(s,a){switch(s){case"return":e.resolve({value:a,done:!0});break;case"throw":e.reject(a);break;default:e.resolve({value:a,done:!1})}(e=e.next)?i(e.key,e.arg):r=null}this._invoke=function(s,a){return new Promise(function(o,l){var h={key:s,arg:a,resolve:o,reject:l,next:null};r?r=r.next=h:(e=r=h,i(s,a))})},typeof t.return!="function"&&(this.return=void 0)}function gl(t,e){this.v=t,this.k=e}function Vu(t,e,r,i){return{getMetadata:function(n){nl(i,"getMetadata"),Qc(n);var s=t[n];if(s!==void 0){if(e===1){var a=s.public;if(a!==void 0)return a[r]}else if(e===2){var o=s.private;if(o!==void 0)return o.get(r)}else if(Object.hasOwnProperty.call(s,"constructor"))return s.constructor}},setMetadata:function(n,s){nl(i,"setMetadata"),Qc(n);var a=t[n];if(a===void 0&&(a=t[n]={}),e===1){var o=a.public;o===void 0&&(o=a.public={}),o[r]=s}else if(e===2){var l=a.priv;l===void 0&&(l=a.private=new Map),l.set(r,s)}else a.constructor=s}}}function Xc(t,e){var r=t[Symbol.metadata||Symbol.for("Symbol.metadata")],i=Object.getOwnPropertySymbols(e);if(i.length!==0){for(var n=0;n<i.length;n++){var s=i[n],a=e[s],o=r?r[s]:null,l=a.public,h=o?o.public:null;l&&h&&Object.setPrototypeOf(l,h);var c=a.private;if(c){var u=Array.from(c.values()),f=o?o.private:null;f&&(u=u.concat(f)),a.private=u}o&&Object.setPrototypeOf(a,o)}r&&Object.setPrototypeOf(e,r),t[Symbol.metadata||Symbol.for("Symbol.metadata")]=e}}function Nu(t,e){return function(r){nl(e,"addInitializer"),yn(r,"An initializer"),t.push(r)}}function Kc(t,e,r,i,n,s,a,o,l){var h;switch(s){case 1:h="accessor";break;case 2:h="method";break;case 3:h="getter";break;case 4:h="setter";break;default:h="field"}var c,u,f={kind:h,name:o?"#"+e:e,isStatic:a,isPrivate:o},p={v:!1};if(s!==0&&(f.addInitializer=Nu(n,p)),o){c=2,u=Symbol(e);var m={};s===0?(m.get=r.get,m.set=r.set):s===2?m.get=function(){return r.value}:(s!==1&&s!==3||(m.get=function(){return r.get.call(this)}),s!==1&&s!==4||(m.set=function(g){r.set.call(this,g)})),f.access=m}else c=1,u=e;try{return t(l,Object.assign(f,Vu(i,c,u,p)))}finally{p.v=!0}}function nl(t,e){if(t.v)throw new Error("attempted to call "+e+" after decoration was finished")}function Qc(t){if(typeof t!="symbol")throw new TypeError("Metadata keys must be symbols, received: "+t)}function yn(t,e){if(typeof t!="function")throw new TypeError(e+" must be a function")}function sl(t,e){var r=typeof e;if(t===1){if(r!=="object"||e===null)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");e.get!==void 0&&yn(e.get,"accessor.get"),e.set!==void 0&&yn(e.set,"accessor.set"),e.init!==void 0&&yn(e.init,"accessor.init"),e.initializer!==void 0&&yn(e.initializer,"accessor.initializer")}else if(r!=="function")throw new TypeError((t===0?"field":t===10?"class":"method")+" decorators must return a function or void 0")}function eu(t){var e;return(e=t.init)==null&&(e=t.initializer)&&typeof console<"u"&&console.warn(".initializer has been renamed to .init as of March 2022"),e}function dg(t,e,r,i,n,s,a,o,l){var h,c,u,f,p,m,g=r[0];if(a?h=n===0||n===1?{get:r[3],set:r[4]}:n===3?{get:r[3]}:n===4?{set:r[3]}:{value:r[3]}:n!==0&&(h=Object.getOwnPropertyDescriptor(e,i)),n===1?u={get:h.get,set:h.set}:n===2?u=h.value:n===3?u=h.get:n===4&&(u=h.set),typeof g=="function")(f=Kc(g,i,h,o,l,n,s,a,u))!==void 0&&(sl(n,f),n===0?c=f:n===1?(c=eu(f),p=f.get||u.get,m=f.set||u.set,u={get:p,set:m}):u=f);else for(var d=g.length-1;d>=0;d--){var y;(f=Kc(g[d],i,h,o,l,n,s,a,u))!==void 0&&(sl(n,f),n===0?y=f:n===1?(y=eu(f),p=f.get||u.get,m=f.set||u.set,u={get:p,set:m}):u=f,y!==void 0&&(c===void 0?c=y:typeof c=="function"?c=[c,y]:c.push(y)))}if(n===0||n===1){if(c===void 0)c=function(_,S){return S};else if(typeof c!="function"){var v=c;c=function(_,S){for(var T=S,x=0;x<v.length;x++)T=v[x].call(_,T);return T}}else{var b=c;c=function(_,S){return b.call(_,S)}}t.push(c)}n!==0&&(n===1?(h.get=u.get,h.set=u.set):n===2?h.value=u:n===3?h.get=u:n===4&&(h.set=u),a?n===1?(t.push(function(_,S){return u.get.call(_,S)}),t.push(function(_,S){return u.set.call(_,S)})):n===2?t.push(u):t.push(function(_,S){return u.call(_,S)}):Object.defineProperty(e,i,h))}function fg(t,e,r,i,n){for(var s,a,o=new Map,l=new Map,h=0;h<n.length;h++){var c=n[h];if(Array.isArray(c)){var u,f,p,m=c[1],g=c[2],d=c.length>3,y=m>=5;if(y?(u=e,f=i,(m-=5)!=0&&(p=a=a||[])):(u=e.prototype,f=r,m!==0&&(p=s=s||[])),m!==0&&!d){var v=y?l:o,b=v.get(g)||0;if(b===!0||b===3&&m!==4||b===4&&m!==3)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+g);!b&&m>2?v.set(g,m):v.set(g,!0)}dg(t,u,c,g,m,y,d,f,p)}}tu(t,s),tu(t,a)}function tu(t,e){e&&t.push(function(r){for(var i=0;i<e.length;i++)e[i].call(r);return r})}function mg(t,e,r,i){if(i.length>0){for(var n=[],s=e,a=e.name,o=i.length-1;o>=0;o--){var l={v:!1};try{var h=Object.assign({kind:"class",name:a,addInitializer:Nu(n,l)},Vu(r,0,a,l)),c=i[o](s,h)}finally{l.v=!0}c!==void 0&&(sl(10,c),s=c)}t.push(s,function(){for(var u=0;u<n.length;u++)n[u].call(s)})}}function j1(t,e,r){var i=[],n={},s={};return fg(i,t,s,n,e),Xc(t.prototype,s),mg(i,t,n,r),Xc(t,n),i}function zu(t,e){return function(r){gg(e,"addInitializer"),Ls(r,"An initializer"),t.push(r)}}function ru(t,e,r,i,n,s,a,o){var l;switch(n){case 1:l="accessor";break;case 2:l="method";break;case 3:l="getter";break;case 4:l="setter";break;default:l="field"}var h,c,u={kind:l,name:a?"#"+e:e,static:s,private:a},f={v:!1};n!==0&&(u.addInitializer=zu(i,f)),n===0?a?(h=r.get,c=r.set):(h=function(){return this[e]},c=function(p){this[e]=p}):n===2?h=function(){return r.value}:(n!==1&&n!==3||(h=function(){return r.get.call(this)}),n!==1&&n!==4||(c=function(p){r.set.call(this,p)})),u.access=h&&c?{get:h,set:c}:h?{get:h}:{set:c};try{return t(o,u)}finally{f.v=!0}}function gg(t,e){if(t.v)throw new Error("attempted to call "+e+" after decoration was finished")}function Ls(t,e){if(typeof t!="function")throw new TypeError(e+" must be a function")}function al(t,e){var r=typeof e;if(t===1){if(r!=="object"||e===null)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");e.get!==void 0&&Ls(e.get,"accessor.get"),e.set!==void 0&&Ls(e.set,"accessor.set"),e.init!==void 0&&Ls(e.init,"accessor.init")}else if(r!=="function")throw new TypeError((t===0?"field":t===10?"class":"method")+" decorators must return a function or void 0")}function yg(t,e,r,i,n,s,a,o){var l,h,c,u,f,p,m=r[0];if(a?l=n===0||n===1?{get:r[3],set:r[4]}:n===3?{get:r[3]}:n===4?{set:r[3]}:{value:r[3]}:n!==0&&(l=Object.getOwnPropertyDescriptor(e,i)),n===1?c={get:l.get,set:l.set}:n===2?c=l.value:n===3?c=l.get:n===4&&(c=l.set),typeof m=="function")(u=ru(m,i,l,o,n,s,a,c))!==void 0&&(al(n,u),n===0?h=u:n===1?(h=u.init,f=u.get||c.get,p=u.set||c.set,c={get:f,set:p}):c=u);else for(var g=m.length-1;g>=0;g--){var d;(u=ru(m[g],i,l,o,n,s,a,c))!==void 0&&(al(n,u),n===0?d=u:n===1?(d=u.init,f=u.get||c.get,p=u.set||c.set,c={get:f,set:p}):c=u,d!==void 0&&(h===void 0?h=d:typeof h=="function"?h=[h,d]:h.push(d)))}if(n===0||n===1){if(h===void 0)h=function(b,_){return _};else if(typeof h!="function"){var y=h;h=function(b,_){for(var S=_,T=0;T<y.length;T++)S=y[T].call(b,S);return S}}else{var v=h;h=function(b,_){return v.call(b,_)}}t.push(h)}n!==0&&(n===1?(l.get=c.get,l.set=c.set):n===2?l.value=c:n===3?l.get=c:n===4&&(l.set=c),a?n===1?(t.push(function(b,_){return c.get.call(b,_)}),t.push(function(b,_){return c.set.call(b,_)})):n===2?t.push(c):t.push(function(b,_){return c.call(b,_)}):Object.defineProperty(e,i,l))}function vg(t,e,r){for(var i,n,s=new Map,a=new Map,o=0;o<r.length;o++){var l=r[o];if(Array.isArray(l)){var h,c,u=l[1],f=l[2],p=l.length>3,m=u>=5;if(m?(h=e,(u-=5)!=0&&(c=n=n||[])):(h=e.prototype,u!==0&&(c=i=i||[])),u!==0&&!p){var g=m?a:s,d=g.get(f)||0;if(d===!0||d===3&&u!==4||d===4&&u!==3)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+f);!d&&u>2?g.set(f,u):g.set(f,!0)}yg(t,h,l,f,u,m,p,c)}}iu(t,i),iu(t,n)}function iu(t,e){e&&t.push(function(r){for(var i=0;i<e.length;i++)e[i].call(r);return r})}function bg(t,e,r){if(r.length>0){for(var i=[],n=e,s=e.name,a=r.length-1;a>=0;a--){var o={v:!1};try{var l=r[a](n,{kind:"class",name:s,addInitializer:zu(i,o)})}finally{o.v=!0}l!==void 0&&(al(10,l),n=l)}t.push(n,function(){for(var h=0;h<i.length;h++)i[h].call(n)})}}function G1(t,e,r){var i=[];return vg(i,t,e),bg(i,t,r),i}function H1(t){var e={},r=!1;function i(n,s){return r=!0,{done:!1,value:new gl(s=new Promise(function(a){a(t[n](s))}),1)}}return e[typeof Symbol<"u"&&Symbol.iterator||"@@iterator"]=function(){return this},e.next=function(n){return r?(r=!1,n):i("next",n)},typeof t.throw=="function"&&(e.throw=function(n){if(r)throw r=!1,n;return i("throw",n)}),typeof t.return=="function"&&(e.return=function(n){return r?(r=!1,n):i("return",n)}),e}function q1(t){var e,r,i,n=2;for(typeof Symbol<"u"&&(r=Symbol.asyncIterator,i=Symbol.iterator);n--;){if(r&&(e=t[r])!=null)return e.call(t);if(i&&(e=t[i])!=null)return new ol(e.call(t));r="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")}function ol(t){function e(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var i=r.done;return Promise.resolve(r.value).then(function(n){return{value:n,done:i}})}return(ol=function(r){this.s=r,this.n=r.next}).prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(r){var i=this.s.return;return i===void 0?Promise.resolve({value:r,done:!0}):e(i.apply(this.s,arguments))},throw:function(r){var i=this.s.return;return i===void 0?Promise.reject(r):e(i.apply(this.s,arguments))}},new ol(t)}function U1(t){return new gl(t,0)}function W1(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(t!==null?typeof t:"null"));return t}function _g(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var i,n,s,a,o=[],l=!0,h=!1;try{if(s=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=s.call(r)).done)&&(o.push(i.value),o.length!==e);l=!0);}catch(c){h=!0,n=c}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(h)throw n}}return o}}function wg(t,e){var r=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(r!=null){var i,n=[];for(r=r.call(t);t.length<e&&!(i=r.next()).done;)n.push(i.value);return n}}var Zo;function Z1(t,e,r,i){Zo||(Zo=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103);var n=t&&t.defaultProps,s=arguments.length-3;if(e||s===0||(e={children:void 0}),s===1)e.children=i;else if(s>1){for(var a=new Array(s),o=0;o<s;o++)a[o]=arguments[o+3];e.children=a}if(e&&n)for(var l in n)e[l]===void 0&&(e[l]=n[l]);else e||(e=n||{});return{$$typeof:Zo,type:t,key:r===void 0?null:""+r,ref:null,props:e,_owner:null}}function nu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function Y1(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?nu(Object(r),!0).forEach(function(i){yl(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nu(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function xg(){xg=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(P,A,E){P[A]=E.value},n=typeof Symbol=="function"?Symbol:{},s=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",o=n.toStringTag||"@@toStringTag";function l(P,A,E){return Object.defineProperty(P,A,{value:E,enumerable:!0,configurable:!0,writable:!0}),P[A]}try{l({},"")}catch{l=function(A,E,F){return A[E]=F}}function h(P,A,E,F){var $=A&&A.prototype instanceof f?A:f,D=Object.create($.prototype),C=new M(F||[]);return i(D,"_invoke",{value:S(P,E,C)}),D}function c(P,A,E){try{return{type:"normal",arg:P.call(A,E)}}catch(F){return{type:"throw",arg:F}}}t.wrap=h;var u={};function f(){}function p(){}function m(){}var g={};l(g,s,function(){return this});var d=Object.getPrototypeOf,y=d&&d(d(k([])));y&&y!==e&&r.call(y,s)&&(g=y);var v=m.prototype=f.prototype=Object.create(g);function b(P){["next","throw","return"].forEach(function(A){l(P,A,function(E){return this._invoke(A,E)})})}function _(P,A){var E;i(this,"_invoke",{value:function(F,$){function D(){return new A(function(C,R){(function B(U,W,X,H){var ie=c(P[U],P,W);if(ie.type!=="throw"){var le=ie.arg,se=le.value;return se&&typeof se=="object"&&r.call(se,"__await")?A.resolve(se.__await).then(function(te){B("next",te,X,H)},function(te){B("throw",te,X,H)}):A.resolve(se).then(function(te){le.value=te,X(le)},function(te){return B("throw",te,X,H)})}H(ie.arg)})(F,$,C,R)})}return E=E?E.then(D,D):D()}})}function S(P,A,E){var F="suspendedStart";return function($,D){if(F==="executing")throw new Error("Generator is already running");if(F==="completed"){if($==="throw")throw D;return I()}for(E.method=$,E.arg=D;;){var C=E.delegate;if(C){var R=T(C,E);if(R){if(R===u)continue;return R}}if(E.method==="next")E.sent=E._sent=E.arg;else if(E.method==="throw"){if(F==="suspendedStart")throw F="completed",E.arg;E.dispatchException(E.arg)}else E.method==="return"&&E.abrupt("return",E.arg);F="executing";var B=c(P,A,E);if(B.type==="normal"){if(F=E.done?"completed":"suspendedYield",B.arg===u)continue;return{value:B.arg,done:E.done}}B.type==="throw"&&(F="completed",E.method="throw",E.arg=B.arg)}}}function T(P,A){var E=A.method,F=P.iterator[E];if(F===void 0)return A.delegate=null,E==="throw"&&P.iterator.return&&(A.method="return",A.arg=void 0,T(P,A),A.method==="throw")||E!=="return"&&(A.method="throw",A.arg=new TypeError("The iterator does not provide a '"+E+"' method")),u;var $=c(F,P.iterator,A.arg);if($.type==="throw")return A.method="throw",A.arg=$.arg,A.delegate=null,u;var D=$.arg;return D?D.done?(A[P.resultName]=D.value,A.next=P.nextLoc,A.method!=="return"&&(A.method="next",A.arg=void 0),A.delegate=null,u):D:(A.method="throw",A.arg=new TypeError("iterator result is not an object"),A.delegate=null,u)}function x(P){var A={tryLoc:P[0]};1 in P&&(A.catchLoc=P[1]),2 in P&&(A.finallyLoc=P[2],A.afterLoc=P[3]),this.tryEntries.push(A)}function w(P){var A=P.completion||{};A.type="normal",delete A.arg,P.completion=A}function M(P){this.tryEntries=[{tryLoc:"root"}],P.forEach(x,this),this.reset(!0)}function k(P){if(P){var A=P[s];if(A)return A.call(P);if(typeof P.next=="function")return P;if(!isNaN(P.length)){var E=-1,F=function $(){for(;++E<P.length;)if(r.call(P,E))return $.value=P[E],$.done=!1,$;return $.value=void 0,$.done=!0,$};return F.next=F}}return{next:I}}function I(){return{value:void 0,done:!0}}return p.prototype=m,i(v,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:p,configurable:!0}),p.displayName=l(m,o,"GeneratorFunction"),t.isGeneratorFunction=function(P){var A=typeof P=="function"&&P.constructor;return!!A&&(A===p||(A.displayName||A.name)==="GeneratorFunction")},t.mark=function(P){return Object.setPrototypeOf?Object.setPrototypeOf(P,m):(P.__proto__=m,l(P,o,"GeneratorFunction")),P.prototype=Object.create(v),P},t.awrap=function(P){return{__await:P}},b(_.prototype),l(_.prototype,a,function(){return this}),t.AsyncIterator=_,t.async=function(P,A,E,F,$){$===void 0&&($=Promise);var D=new _(h(P,A,E,F),$);return t.isGeneratorFunction(A)?D:D.next().then(function(C){return C.done?C.value:D.next()})},b(v),l(v,o,"Generator"),l(v,s,function(){return this}),l(v,"toString",function(){return"[object Generator]"}),t.keys=function(P){var A=Object(P),E=[];for(var F in A)E.push(F);return E.reverse(),function $(){for(;E.length;){var D=E.pop();if(D in A)return $.value=D,$.done=!1,$}return $.done=!0,$}},t.values=k,M.prototype={constructor:M,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!P)for(var A in this)A.charAt(0)==="t"&&r.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var A=this;function E(B,U){return D.type="throw",D.arg=P,A.next=B,U&&(A.method="next",A.arg=void 0),!!U}for(var F=this.tryEntries.length-1;F>=0;--F){var $=this.tryEntries[F],D=$.completion;if($.tryLoc==="root")return E("end");if($.tryLoc<=this.prev){var C=r.call($,"catchLoc"),R=r.call($,"finallyLoc");if(C&&R){if(this.prev<$.catchLoc)return E($.catchLoc,!0);if(this.prev<$.finallyLoc)return E($.finallyLoc)}else if(C){if(this.prev<$.catchLoc)return E($.catchLoc,!0)}else{if(!R)throw new Error("try statement without catch or finally");if(this.prev<$.finallyLoc)return E($.finallyLoc)}}}},abrupt:function(P,A){for(var E=this.tryEntries.length-1;E>=0;--E){var F=this.tryEntries[E];if(F.tryLoc<=this.prev&&r.call(F,"finallyLoc")&&this.prev<F.finallyLoc){var $=F;break}}$&&(P==="break"||P==="continue")&&$.tryLoc<=A&&A<=$.finallyLoc&&($=null);var D=$?$.completion:{};return D.type=P,D.arg=A,$?(this.method="next",this.next=$.finallyLoc,u):this.complete(D)},complete:function(P,A){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&A&&(this.next=A),u},finish:function(P){for(var A=this.tryEntries.length-1;A>=0;--A){var E=this.tryEntries[A];if(E.finallyLoc===P)return this.complete(E.completion,E.afterLoc),w(E),u}},catch:function(P){for(var A=this.tryEntries.length-1;A>=0;--A){var E=this.tryEntries[A];if(E.tryLoc===P){var F=E.completion;if(F.type==="throw"){var $=F.arg;w(E)}return $}}throw new Error("illegal catch attempt")},delegateYield:function(P,A,E){return this.delegate={iterator:k(P),resultName:A,nextLoc:E},this.method==="next"&&(this.arg=void 0),u}},t}function Sg(t){return(Sg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function su(){su=function(n,s){return new r(n,void 0,s)};var t=RegExp.prototype,e=new WeakMap;function r(n,s,a){var o=new RegExp(n,s);return e.set(o,a||e.get(n)),$i(o,r.prototype)}function i(n,s){var a=e.get(s);return Object.keys(a).reduce(function(o,l){var h=a[l];if(typeof h=="number")o[l]=n[h];else{for(var c=0;n[h[c]]===void 0&&c+1<h.length;)c++;o[l]=n[h[c]]}return o},Object.create(null))}return Eg(r,RegExp),r.prototype.exec=function(n){var s=t.exec.call(this,n);if(s){s.groups=i(s,this);var a=s.indices;a&&(a.groups=i(a,this))}return s},r.prototype[Symbol.replace]=function(n,s){if(typeof s=="string"){var a=e.get(this);return t[Symbol.replace].call(this,n,s.replace(/\$<([^>]+)>/g,function(l,h){var c=a[h];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof s=="function"){var o=this;return t[Symbol.replace].call(this,n,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(i(l,o)),s.apply(this,l)})}return t[Symbol.replace].call(this,n,s)},su.apply(this,arguments)}function J1(t){this.wrapped=t}function X1(t){return function(){return new gn(t.apply(this,arguments))}}function au(t,e,r,i,n,s,a){try{var o=t[s](a),l=o.value}catch(h){return void r(h)}o.done?e(l):Promise.resolve(l).then(i,n)}function K1(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var s=t.apply(e,r);function a(l){au(s,i,n,a,o,"next",l)}function o(l){au(s,i,n,a,o,"throw",l)}a(void 0)})}}function Q1(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ou(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,na(i.key),i)}}function eb(t,e,r){return e&&ou(t.prototype,e),r&&ou(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function tb(t,e){for(var r in e)(s=e[r]).configurable=s.enumerable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,r,s);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),n=0;n<i.length;n++){var s,a=i[n];(s=e[a]).configurable=s.enumerable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,a,s)}return t}function rb(t,e){for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var n=r[i],s=Object.getOwnPropertyDescriptor(e,n);s&&s.configurable&&t[n]===void 0&&Object.defineProperty(t,n,s)}return t}function yl(t,e,r){return(e=na(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kg(){return(kg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t}).apply(this,arguments)}function ib(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?Object(arguments[e]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&i.push.apply(i,Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.forEach(function(n){yl(t,n,r[n])})}return t}function Eg(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$i(t,e)}function nb(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,$i(t,e)}function _n(t){return(_n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(t)}function $i(t,e){return($i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r})(t,e)}function ju(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Gu(t,e,r){return(Gu=ju()?Reflect.construct.bind():function(i,n,s){var a=[null];a.push.apply(a,n);var o=new(Function.bind.apply(i,a));return s&&$i(o,s.prototype),o}).apply(null,arguments)}function Pg(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ag(t){var e=typeof Map=="function"?new Map:void 0;return(Ag=function(r){if(r===null||!Pg(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return Gu(r,arguments,_n(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),$i(i,r)})(t)}function sb(t,e){return e!=null&&typeof Symbol<"u"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function ab(t){return t&&t.__esModule?t:{default:t}}function Hu(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return(Hu=function(i){return i?r:e})(t)}function lb(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var r=Hu(e);if(r&&r.has(t))return r.get(t);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var a=n?Object.getOwnPropertyDescriptor(t,s):null;a&&(a.get||a.set)?Object.defineProperty(i,s,a):i[s]=t[s]}return i.default=t,r&&r.set(t,i),i}function hb(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}function cb(t){if(t==null)throw new TypeError("Cannot destructure "+t)}function Cg(t,e){if(t==null)return{};var r,i,n={},s=Object.keys(t);for(i=0;i<s.length;i++)r=s[i],e.indexOf(r)>=0||(n[r]=t[r]);return n}function ub(t,e){if(t==null)return{};var r,i,n=Cg(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Tg(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ig(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tg(t)}function pb(t){var e=ju();return function(){var r,i=_n(t);if(e){var n=_n(this).constructor;r=Reflect.construct(i,arguments,n)}else r=i.apply(this,arguments);return Ig(this,r)}}function qu(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=_n(t))!==null;);return t}function Mg(){return(Mg=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,e,r){var i=qu(t,e);if(i){var n=Object.getOwnPropertyDescriptor(i,e);return n.get?n.get.call(arguments.length<3?t:r):n.value}}).apply(this,arguments)}function Uu(t,e,r,i){return(Uu=typeof Reflect<"u"&&Reflect.set?Reflect.set:function(n,s,a,o){var l,h=qu(n,s);if(h){if((l=Object.getOwnPropertyDescriptor(h,s)).set)return l.set.call(o,a),!0;if(!l.writable)return!1}if(l=Object.getOwnPropertyDescriptor(o,s)){if(!l.writable)return!1;l.value=a,Object.defineProperty(o,s,l)}else yl(o,s,a);return!0})(t,e,r,i)}function db(t,e,r,i,n){if(!Uu(t,e,r,i||t)&&n)throw new Error("failed to set property");return r}function ki(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function fb(t,e){return e||(e=t.slice(0)),t.raw=e,t}function mb(t){throw new TypeError('"'+t+'" is read-only')}function gb(t){throw new TypeError('"'+t+'" is write-only')}function yb(t){throw new Error('Class "'+t+'" cannot be referenced in computed property keys.')}function Dg(){}function Fg(t){throw new ReferenceError(t+" is not defined - temporal dead zone")}function vb(t,e){return t===Dg?Fg(e):t}function bb(t,e){return vl(t)||_g(t,e)||Oi(t,e)||bl()}function _b(t,e){return vl(t)||wg(t,e)||Oi(t,e)||bl()}function $g(t){return vl(t)||Wu(t)||Oi(t)||bl()}function wb(t){return Og(t)||Wu(t)||Oi(t)||Rg()}function Og(t){if(Array.isArray(t))return js(t)}function vl(t){if(Array.isArray(t))return t}function xb(t,e,r){if(e&&!Array.isArray(e)&&typeof e.length=="number"){var i=e.length;return js(e,r!==void 0&&r<i?r:i)}return t(e,r)}function Wu(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Oi(t,e){if(t){if(typeof t=="string")return js(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?js(t,e):void 0}}function js(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function Rg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
19
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
20
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sb(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Oi(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
21
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,a=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return a=l.done,l},e:function(l){o=!0,s=l},f:function(){try{a||r.return==null||r.return()}finally{if(o)throw s}}}}function kb(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=Oi(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
22
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eb(t){return function(){var e=t.apply(this,arguments);return e.next(),e}}function Lg(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function na(t){var e=Lg(t,"string");return typeof e=="symbol"?e:String(e)}function Pb(t,e){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")}function Ab(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function Cb(t,e,r,i,n){var s={};return Object.keys(i).forEach(function(a){s[a]=i[a]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce(function(a,o){return o(t,e,a)||a},s),n&&s.initializer!==void 0&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),s.initializer===void 0&&(Object.defineProperty(t,e,s),s=null),s}gn.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},gn.prototype.next=function(t){return this._invoke("next",t)},gn.prototype.throw=function(t){return this._invoke("throw",t)},gn.prototype.return=function(t){return this._invoke("return",t)};var Bg=0;function Tb(t){return"__private_"+Bg+++"_"+t}function Ib(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}function Mb(t,e){return Zu(t,_l(t,e,"get"))}function Db(t,e,r){return Yu(t,_l(t,e,"set"),r),r}function Fb(t,e){return Ju(t,_l(t,e,"set"))}function _l(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function $b(t,e,r){return sa(t,e),wl(r,"get"),Zu(t,r)}function Ob(t,e,r,i){return sa(t,e),wl(r,"set"),Yu(t,r,i),i}function Rb(t,e,r){return sa(t,e),r}function Lb(){throw new TypeError("attempted to set read only static private field")}function Zu(t,e){return e.get?e.get.call(t):e.value}function Yu(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function Ju(t,e){if(e.set)return"__destrObj"in e||(e.__destrObj={set value(r){e.set.call(t,r)}}),e.__destrObj;if(!e.writable)throw new TypeError("attempted to set read only private field");return e}function Bb(t,e,r){return sa(t,e),wl(r,"set"),Ju(t,r)}function sa(t,e){if(t!==e)throw new TypeError("Private static access of wrong provenance")}function wl(t,e){if(t===void 0)throw new TypeError("attempted to "+e+" private static field before its declaration")}function Vb(t,e,r,i){var n=Xu();if(i)for(var s=0;s<i.length;s++)n=i[s](n);var a=e(function(l){n.initializeInstanceElements(l,o.elements)},r),o=n.decorateClass(zg(a.d.map(Vg)),t);return n.initializeClassElements(a.F,o.elements),n.runClassFinishers(a.F,o.finishers)}function Xu(){Xu=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,r){["method","field"].forEach(function(i){r.forEach(function(n){n.kind===i&&n.placement==="own"&&this.defineClassElement(e,n)},this)},this)},initializeClassElements:function(e,r){var i=e.prototype;["method","field"].forEach(function(n){r.forEach(function(s){var a=s.placement;if(s.kind===n&&(a==="static"||a==="prototype")){var o=a==="static"?e:i;this.defineClassElement(o,s)}},this)},this)},defineClassElement:function(e,r){var i=r.descriptor;if(r.kind==="field"){var n=r.initializer;i={enumerable:i.enumerable,writable:i.writable,configurable:i.configurable,value:n===void 0?void 0:n.call(e)}}Object.defineProperty(e,r.key,i)},decorateClass:function(e,r){var i=[],n=[],s={static:[],prototype:[],own:[]};if(e.forEach(function(o){this.addElementPlacement(o,s)},this),e.forEach(function(o){if(!vn(o))return i.push(o);var l=this.decorateElement(o,s);i.push(l.element),i.push.apply(i,l.extras),n.push.apply(n,l.finishers)},this),!r)return{elements:i,finishers:n};var a=this.decorateConstructor(i,r);return n.push.apply(n,a.finishers),a.finishers=n,a},addElementPlacement:function(e,r,i){var n=r[e.placement];if(!i&&n.indexOf(e.key)!==-1)throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,r){for(var i=[],n=[],s=e.decorators,a=s.length-1;a>=0;a--){var o=r[e.placement];o.splice(o.indexOf(e.key),1);var l=this.fromElementDescriptor(e),h=this.toElementFinisherExtras((0,s[a])(l)||l);e=h.element,this.addElementPlacement(e,r),h.finisher&&n.push(h.finisher);var c=h.extras;if(c){for(var u=0;u<c.length;u++)this.addElementPlacement(c[u],r);i.push.apply(i,c)}}return{element:e,finishers:n,extras:i}},decorateConstructor:function(e,r){for(var i=[],n=r.length-1;n>=0;n--){var s=this.fromClassDescriptor(e),a=this.toClassDescriptor((0,r[n])(s)||s);if(a.finisher!==void 0&&i.push(a.finisher),a.elements!==void 0){e=a.elements;for(var o=0;o<e.length-1;o++)for(var l=o+1;l<e.length;l++)if(e[o].key===e[l].key&&e[o].placement===e[l].placement)throw new TypeError("Duplicated element ("+e[o].key+")")}}return{elements:e,finishers:i}},fromElementDescriptor:function(e){var r={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e.kind==="field"&&(r.initializer=e.initializer),r},toElementDescriptors:function(e){if(e!==void 0)return $g(e).map(function(r){var i=this.toElementDescriptor(r);return this.disallowProperty(r,"finisher","An element descriptor"),this.disallowProperty(r,"extras","An element descriptor"),i},this)},toElementDescriptor:function(e){var r=String(e.kind);if(r!=="method"&&r!=="field")throw new TypeError(`An element descriptor's .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "`+r+'"');var i=na(e.key),n=String(e.placement);if(n!=="static"&&n!=="prototype"&&n!=="own")throw new TypeError(`An element descriptor's .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "`+n+'"');var s=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var a={kind:r,key:i,placement:n,descriptor:Object.assign({},s)};return r!=="field"?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(s,"get","The property descriptor of a field descriptor"),this.disallowProperty(s,"set","The property descriptor of a field descriptor"),this.disallowProperty(s,"value","The property descriptor of a field descriptor"),a.initializer=e.initializer),a},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:hu(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var r={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),r},toClassDescriptor:function(e){var r=String(e.kind);if(r!=="class")throw new TypeError(`A class descriptor's .kind property must be "class", but a decorator created a class descriptor with .kind "`+r+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var i=hu(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:i}},runClassFinishers:function(e,r){for(var i=0;i<r.length;i++){var n=(0,r[i])(e);if(n!==void 0){if(typeof n!="function")throw new TypeError("Finishers must return a constructor.");e=n}}return e},disallowProperty:function(e,r,i){if(e[r]!==void 0)throw new TypeError(i+" can't have a ."+r+" property.")}};return t}function Vg(t){var e,r=na(t.key);t.kind==="method"?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:t.kind==="get"?e={get:t.value,configurable:!0,enumerable:!1}:t.kind==="set"?e={set:t.value,configurable:!0,enumerable:!1}:t.kind==="field"&&(e={configurable:!0,writable:!0,enumerable:!0});var i={kind:t.kind==="field"?"field":"method",key:r,placement:t.static?"static":t.kind==="field"?"own":"prototype",descriptor:e};return t.decorators&&(i.decorators=t.decorators),t.kind==="field"&&(i.initializer=t.value),i}function Ng(t,e){t.descriptor.get!==void 0?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function zg(t){for(var e=[],r=function(a){return a.kind==="method"&&a.key===s.key&&a.placement===s.placement},i=0;i<t.length;i++){var n,s=t[i];if(s.kind==="method"&&(n=e.find(r)))if(lu(s.descriptor)||lu(n.descriptor)){if(vn(s)||vn(n))throw new ReferenceError("Duplicated methods ("+s.key+") can't be decorated.");n.descriptor=s.descriptor}else{if(vn(s)){if(vn(n))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+s.key+").");n.decorators=s.decorators}Ng(s,n)}else e.push(s)}return e}function vn(t){return t.decorators&&t.decorators.length}function lu(t){return t!==void 0&&!(t.value===void 0&&t.writable===void 0)}function hu(t,e){var r=t[e];if(r!==void 0&&typeof r!="function")throw new TypeError("Expected '"+e+"' to be a function");return r}function Nb(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}function Ku(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function zb(t,e,r){Ku(t,e),e.set(t,r)}function jb(t,e){Ku(t,e),e.add(t)}function Gb(){throw new TypeError("attempted to reassign private method")}function Hb(t){return t}var Qu=function(t,e){return(Qu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)i.hasOwnProperty(n)&&(r[n]=i[n])})(t,e)};function qb(t,e){function r(){this.constructor=t}Qu(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var jg=function(){return(jg=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function Ub(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]])}return r}function nt(t,e,r,i){var n,s=arguments.length,a=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(a=(s<3?n(a):s>3?n(e,r,a):n(e,r))||a);return s>3&&a&&Object.defineProperty(e,r,a),a}function Wb(t,e){return function(r,i){e(r,i,t)}}function Zb(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function Yb(t,e,r,i){return new(r||(r=Promise))(function(n,s){function a(h){try{l(i.next(h))}catch(c){s(c)}}function o(h){try{l(i.throw(h))}catch(c){s(c)}}function l(h){var c;h.done?n(h.value):(c=h.value,c instanceof r?c:new r(function(u){u(c)})).then(a,o)}l((i=i.apply(t,e||[])).next())})}function Jb(t,e){var r,i,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(l){return function(h){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&c[0]?i.return:c[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,c[1])).done)return n;switch(i=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,i=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(n=a.trys,!((n=n.length>0&&n[n.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]<n[3])){a.label=c[1];break}if(c[0]===6&&a.label<n[1]){a.label=n[1],n=c;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(c);break}n[2]&&a.ops.pop(),a.trys.pop();continue}c=e.call(t,a)}catch(u){c=[6,u],i=0}finally{r=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,h])}}}function Xb(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}function Kb(t,e){for(var r in t)r==="default"||e.hasOwnProperty(r)||(e[r]=t[r])}function cu(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Gg(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var i,n,s=r.call(t),a=[];try{for(;(e===void 0||e-- >0)&&!(i=s.next()).done;)a.push(i.value)}catch(o){n={error:o}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a}function Qb(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Gg(arguments[e]));return t}function e_(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var i=Array(t),n=0;for(e=0;e<r;e++)for(var s=arguments[e],a=0,o=s.length;a<o;a++,n++)i[n]=s[a];return i}function Gs(t){return this instanceof Gs?(this.v=t,this):new Gs(t)}function t_(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,n=r.apply(t,e||[]),s=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(u){n[u]&&(i[u]=function(f){return new Promise(function(p,m){s.push([u,f,p,m])>1||o(u,f)})})}function o(u,f){try{(function(p){p.value instanceof Gs?Promise.resolve(p.value.v).then(l,h):c(s[0][2],p)})(n[u](f))}catch(p){c(s[0][3],p)}}function l(u){o("next",u)}function h(u){o("throw",u)}function c(u,f){u(f),s.shift(),s.length&&o(s[0][0],s[0][1])}}function r_(t){var e,r;return e={},i("next"),i("throw",function(n){throw n}),i("return"),e[Symbol.iterator]=function(){return this},e;function i(n,s){e[n]=t[n]?function(a){return(r=!r)?{value:Gs(t[n](a)),done:n==="return"}:s?s(a):a}:s}}function i_(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=typeof cu=="function"?cu(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(s){return new Promise(function(a,o){(function(l,h,c,u){Promise.resolve(u).then(function(f){l({value:f,done:c})},h)})(a,o,(s=t[n](s)).done,s.value)})}}}function n_(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function s_(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function a_(t){return t&&t.__esModule?t:{default:t}}function o_(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function l_(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}var Bs=window,xl=Bs.ShadowRoot&&(Bs.ShadyCSS===void 0||Bs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Sl=Symbol(),uu=new WeakMap,Hs=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==Sl)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(xl&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=uu.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&uu.set(r,e))}return e}toString(){return this.cssText}},Hg=t=>new Hs(typeof t=="string"?t:t+"",void 0,Sl),qg=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,s)=>i+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[s+1],t[0]);return new Hs(r,t,Sl)},Ug=(t,e)=>{xl?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let i=document.createElement("style"),n=Bs.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)})},pu=xl?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return Hg(r)})(t):t,Yo,qs=window,du=qs.trustedTypes,Wg=du?du.emptyScript:"",fu=qs.reactiveElementPolyfillSupport,ll={toAttribute(t,e){switch(e){case Boolean:t=t?Wg:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},ep=(t,e)=>e!==t&&(e==e||t==t),Jo={attribute:!0,type:String,converter:ll,reflect:!1,hasChanged:ep},sr=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((r,i)=>{let n=this._$Ep(i,r);n!==void 0&&(this._$Ev.set(n,i),e.push(n))}),e}static createProperty(e,r=Jo){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){let i=typeof e=="symbol"?Symbol():"__"+e,n=this.getPropertyDescriptor(e,i,r);n!==void 0&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){return{get(){return this[r]},set(n){let s=this[e];this[r]=n,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Jo}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,i=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let n of i)this.createProperty(n,r[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(pu(n))}else e!==void 0&&r.push(pu(e));return r}static _$Ep(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,i;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)===null||i===void 0||i.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;let r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Ug(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return(i=r.hostConnected)===null||i===void 0?void 0:i.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return(i=r.hostDisconnected)===null||i===void 0?void 0:i.call(r)})}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$EO(e,r,i=Jo){var n;let s=this.constructor._$Ep(e,i);if(s!==void 0&&i.reflect===!0){let a=(((n=i.converter)===null||n===void 0?void 0:n.toAttribute)!==void 0?i.converter:ll).toAttribute(r,i.type);this._$El=e,a==null?this.removeAttribute(s):this.setAttribute(s,a),this._$El=null}}_$AK(e,r){var i;let n=this.constructor,s=n._$Ev.get(e);if(s!==void 0&&this._$El!==s){let a=n.getPropertyOptions(s),o=typeof a.converter=="function"?{fromAttribute:a.converter}:((i=a.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?a.converter:ll;this._$El=s,this[s]=o.fromAttribute(r,a.type),this._$El=null}}requestUpdate(e,r,i){let n=!0;e!==void 0&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||ep)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),i.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((n,s)=>this[s]=n),this._$Ei=void 0);let r=!1,i=this._$AL;try{r=this.shouldUpdate(i),r?(this.willUpdate(i),(e=this._$ES)===null||e===void 0||e.forEach(n=>{var s;return(s=n.hostUpdate)===null||s===void 0?void 0:s.call(n)}),this.update(i)):this._$Ek()}catch(n){throw r=!1,this._$Ek(),n}r&&this._$AE(i)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(i=>{var n;return(n=i.hostUpdated)===null||n===void 0?void 0:n.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,i)=>this._$EO(i,this[i],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};var Xo;sr.finalized=!0,sr.elementProperties=new Map,sr.elementStyles=[],sr.shadowRootOptions={mode:"open"},fu?.({ReactiveElement:sr}),((Yo=qs.reactiveElementVersions)!==null&&Yo!==void 0?Yo:qs.reactiveElementVersions=[]).push("1.5.0");var Us=window,Ci=Us.trustedTypes,mu=Ci?Ci.createPolicy("lit-html",{createHTML:t=>t}):void 0,ar=`lit$${(Math.random()+"").slice(9)}$`,kl="?"+ar,Zg=`<${kl}>`,Ti=document,wn=(t="")=>Ti.createComment(t),xn=t=>t===null||typeof t!="object"&&typeof t!="function",tp=Array.isArray,rp=t=>tp(t)||typeof t?.[Symbol.iterator]=="function",mn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gu=/-->/g,yu=/>/g,Yr=RegExp(`>|[
23
23
  \f\r](?:([^\\s"'>=/]+)([
24
24
  \f\r]*=[
25
25
  \f\r]*(?:[^
26
- \f\r"'\`<>=]|("|')|))|$)`,"g"),bu=/'/g,_u=/"/g,np=/^(?:script|style|textarea|title)$/i,sp=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Os=sp(1),c_=sp(2),Ii=Symbol.for("lit-noChange"),Ue=Symbol.for("lit-nothing"),wu=new WeakMap,Ai=Ti.createTreeWalker(Ti,129,null,!1),ap=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":"",a=mn;for(let l=0;l<r;l++){let h=t[l],c,u,f=-1,p=0;for(;p<h.length&&(a.lastIndex=p,u=a.exec(h),u!==null);)p=a.lastIndex,a===mn?u[1]==="!--"?a=yu:u[1]!==void 0?a=vu:u[2]!==void 0?(np.test(u[2])&&(n=RegExp("</"+u[2],"g")),a=Yr):u[3]!==void 0&&(a=Yr):a===Yr?u[0]===">"?(a=n??mn,f=-1):u[1]===void 0?f=-2:(f=a.lastIndex-u[2].length,c=u[1],a=u[3]===void 0?Yr:u[3]==='"'?_u:bu):a===_u||a===bu?a=Yr:a===yu||a===vu?a=mn:(a=Yr,n=void 0);let m=a===Yr&&t[l+1].startsWith("/>")?" ":"";s+=a===mn?h+Yg:f>=0?(i.push(c),h.slice(0,f)+"$lit$"+h.slice(f)+ar+m):h+ar+(f===-2?(i.push(void 0),l):m)}let o=s+(t[r]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[gu!==void 0?gu.createHTML(o):o,i]},Sn=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,a=0,o=e.length-1,l=this.parts,[h,c]=ap(e,r);if(this.el=t.createElement(h,i),Ai.currentNode=this.el.content,r===2){let u=this.el.content,f=u.firstChild;f.remove(),u.append(...f.childNodes)}for(;(n=Ai.nextNode())!==null&&l.length<o;){if(n.nodeType===1){if(n.hasAttributes()){let u=[];for(let f of n.getAttributeNames())if(f.endsWith("$lit$")||f.startsWith(ar)){let p=c[a++];if(u.push(f),p!==void 0){let m=n.getAttribute(p.toLowerCase()+"$lit$").split(ar),g=/([.?@])?(.*)/.exec(p);l.push({type:1,index:s,name:g[2],strings:m,ctor:g[1]==="."?Zs:g[1]==="?"?Ys:g[1]==="@"?Js:Kr})}else l.push({type:6,index:s})}for(let f of u)n.removeAttribute(f)}if(np.test(n.tagName)){let u=n.textContent.split(ar),f=u.length-1;if(f>0){n.textContent=Ci?Ci.emptyScript:"";for(let p=0;p<f;p++)n.append(u[p],wn()),Ai.nextNode(),l.push({type:2,index:++s});n.append(u[f],wn())}}}else if(n.nodeType===8)if(n.data===El)l.push({type:2,index:s});else{let u=-1;for(;(u=n.data.indexOf(ar,u+1))!==-1;)l.push({type:7,index:s}),u+=ar.length-1}s++}}static createElement(e,r){let i=Ti.createElement("template");return i.innerHTML=e,i}};function Xr(t,e,r=t,i){var n,s,a,o;if(e===Ii)return e;let l=i!==void 0?(n=r._$Co)===null||n===void 0?void 0:n[i]:r._$Cl,h=xn(e)?void 0:e._$litDirective$;return l?.constructor!==h&&((s=l?._$AO)===null||s===void 0||s.call(l,!1),h===void 0?l=void 0:(l=new h(t),l._$AT(t,r,i)),i!==void 0?((a=(o=r)._$Co)!==null&&a!==void 0?a:o._$Co=[])[i]=l:r._$Cl=l),l!==void 0&&(e=Xr(t,l._$AS(t,e.values),l,i)),e}var Ws=class{constructor(e,r){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var r;let{el:{content:i},parts:n}=this._$AD,s=((r=e?.creationScope)!==null&&r!==void 0?r:Ti).importNode(i,!0);Ai.currentNode=s;let a=Ai.nextNode(),o=0,l=0,h=n[0];for(;h!==void 0;){if(o===h.index){let c;h.type===2?c=new Mi(a,a.nextSibling,this,e):h.type===1?c=new h.ctor(a,h.name,h.strings,this,e):h.type===6&&(c=new Xs(a,this,e)),this.u.push(c),h=n[++l]}o!==h?.index&&(a=Ai.nextNode(),o++)}return s}p(e){let r=0;for(let i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Mi=class t{constructor(e,r,i,n){var s;this.type=2,this._$AH=Ue,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cm=(s=n?.isConnected)===null||s===void 0||s}get _$AU(){var e,r;return(r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cm}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Xr(this,e,r),xn(e)?e===Ue||e==null||e===""?(this._$AH!==Ue&&this._$AR(),this._$AH=Ue):e!==this._$AH&&e!==Ii&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ip(e)?this.k(e):this.g(e)}O(e,r=this._$AB){return this._$AA.parentNode.insertBefore(e,r)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==Ue&&xn(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ti.createTextNode(e)),this._$AH=e}$(e){var r;let{values:i,_$litType$:n}=e,s=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Sn.createElement(n.h,this.options)),n);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===s)this._$AH.p(i);else{let a=new Ws(s,this),o=a.v(this.options);a.p(i),this.T(o),this._$AH=a}}_$AC(e){let r=wu.get(e.strings);return r===void 0&&wu.set(e.strings,r=new Sn(e)),r}k(e){rp(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(wn()),this.O(wn()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){var r;this._$AM===void 0&&(this._$Cm=e,(r=this._$AP)===null||r===void 0||r.call(this,e))}},Kr=class{constructor(e,r,i,n,s){this.type=1,this._$AH=Ue,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Ue}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,i,n){let s=this.strings,a=!1;if(s===void 0)e=Xr(this,e,r,0),a=!xn(e)||e!==this._$AH&&e!==Ii,a&&(this._$AH=e);else{let o=e,l,h;for(e=s[0],l=0;l<s.length-1;l++)h=Xr(this,o[i+l],r,l),h===Ii&&(h=this._$AH[l]),a||(a=!xn(h)||h!==this._$AH[l]),h===Ue?e=Ue:e!==Ue&&(e+=(h??"")+s[l+1]),this._$AH[l]=h}a&&!n&&this.j(e)}j(e){e===Ue?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Zs=class extends Kr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ue?void 0:e}},Jg=Ci?Ci.emptyScript:"",Ys=class extends Kr{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Ue?this.element.setAttribute(this.name,Jg):this.element.removeAttribute(this.name)}},Js=class extends Kr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){var i;if((e=(i=Xr(this,e,r,0))!==null&&i!==void 0?i:Ue)===Ii)return;let n=this._$AH,s=e===Ue&&n!==Ue||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==Ue&&(n===Ue||s);s&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}},Xs=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Xr(this,e)}},u_={P:"$lit$",A:ar,M:El,C:1,L:ap,R:Ws,D:ip,V:Xr,I:Mi,H:Kr,N:Ys,U:Js,B:Zs,F:Xs},xu=Us.litHtmlPolyfillSupport;xu?.(Sn,Mi),((Ko=Us.litHtmlVersions)!==null&&Ko!==void 0?Ko:Us.litHtmlVersions=[]).push("2.5.0");var Xg=(t,e,r)=>{var i,n;let s=(i=r?.renderBefore)!==null&&i!==void 0?i:e,a=s._$litPart$;if(a===void 0){let o=(n=r?.renderBefore)!==null&&n!==void 0?n:null;s._$litPart$=a=new Mi(e.insertBefore(wn(),o),o,void 0,r??{})}return a._$AI(t),a;},Qo,el,p_=sr,Jr=class extends sr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;let i=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=i.firstChild),i}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Xg(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return Ii}};Jr.finalized=!0,Jr._$litElement$=!0,(Qo=globalThis.litElementHydrateSupport)===null||Qo===void 0||Qo.call(globalThis,{LitElement:Jr});var Su=globalThis.litElementPolyfillSupport;Su?.({LitElement:Jr});var d_={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};((el=globalThis.litElementVersions)!==null&&el!==void 0?el:globalThis.litElementVersions=[]).push("3.2.2");var f_=!1,Kg=t=>e=>typeof e=="function"?((r,i)=>(customElements.define(r,i),i))(t,e):((r,i)=>{let{kind:n,elements:s}=i;return{kind:n,elements:s,finisher(a){customElements.define(r,a)}}})(t,e),Qg=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function st(t){return(e,r)=>r!==void 0?((i,n,s)=>{n.constructor.createProperty(s,i)})(t,e,r):Qg(t,e);}function m_(t){return st({...t,state:!0})}var g_=(t,e,r)=>{Object.defineProperty(e,r,t)},y_=(t,e)=>({kind:"method",placement:"prototype",key:e.key,descriptor:t}),Ri=({finisher:t,descriptor:e})=>(r,i)=>{var n;if(i===void 0){let s=(n=r.originalKey)!==null&&n!==void 0?n:r.key,a=e!=null?{kind:"method",placement:"prototype",key:s,descriptor:e(r.key)}:{...r,key:s};return t!=null&&(a.finisher=function(o){t(o,s)}),a}{let s=r.constructor;e!==void 0&&Object.defineProperty(r,i,e(i)),t?.(s,i)}};function v_(t){return Ri({finisher:(e,r)=>{Object.assign(e.prototype[r],t)}})}function e0(t,e){return Ri({descriptor:r=>{let i={get(){var n,s;return(s=(n=this.renderRoot)===null||n===void 0?void 0:n.querySelector(t))!==null&&s!==void 0?s:null},enumerable:!0,configurable:!0};if(e){let n=typeof r=="symbol"?Symbol():"__"+r;i.get=function(){var s,a;return this[n]===void 0&&(this[n]=(a=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(t))!==null&&a!==void 0?a:null),this[n]}}return i}})}function b_(t){return Ri({descriptor:e=>({get(){var r,i;return(i=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelectorAll(t))!==null&&i!==void 0?i:[]},enumerable:!0,configurable:!0})})}function __(t){return Ri({descriptor:e=>({async get(){var r;return await this.updateComplete,(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector(t)},enumerable:!0,configurable:!0})})}var tl,t0=((tl=window.HTMLSlotElement)===null||tl===void 0?void 0:tl.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(r=>r.nodeType===Node.ELEMENT_NODE);function r0(t){let{slot:e,selector:r}=t??{};return Ri({descriptor:i=>({get(){var n;let s="slot"+(e?`[name=${e}]`:":not([name])"),a=(n=this.renderRoot)===null||n===void 0?void 0:n.querySelector(s),o=a!=null?t0(a,t):[];return r?o.filter(l=>l.matches(r)):o},enumerable:!0,configurable:!0})})}function w_(t,e,r){let i,n=t;return typeof t=="object"?(n=t.slot,i=t):i={flatten:e},r?r0({slot:n,flatten:e,selector:r}):Ri({descriptor:s=>({get(){var a,o;let l="slot"+(n?`[name=${n}]`:":not([name])"),h=(a=this.renderRoot)===null||a===void 0?void 0:a.querySelector(l);return(o=h?.assignedNodes(i))!==null&&o!==void 0?o:[]},enumerable:!0,configurable:!0})})}var x_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function i0(t,e,r){return t(r={path:e,exports:{},require:function(i,n){return n0(i,n??r.path)}},r.exports),r.exports}function S_(t){return t&&t.default||t}function n0(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var s0=i0(function(module,exports){typeof navigator<"u"&&function(t,e){module.exports=e()}(0,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var r,i,n=t.length;for(r=0;r<n;r+=1)for(var s in i=t[r].prototype)Object.prototype.hasOwnProperty.call(i,s)&&(e.prototype[s]=i[s])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].pause()},resume:function(){var e,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].resume()},setRate:function(e){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].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,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(e,r){var i,n=0,s=[];switch(e){case"int16":case"uint8c":i=1;break;default:i=1.1}for(n=0;n<r;n+=1)s.push(i);return s}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?function(e,r){return e==="float32"?new Float32Array(r):e==="int16"?new Int16Array(r):e==="uint8c"?new Uint8ClampedArray(r):t(e,r)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return(_typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}(function(){var t,e=["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=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(t){if(_typeof$6(t)==="object"&&t.length){var e,r=createSizedArray(t.length),i=t.length;for(e=0;e<i;e+=1)r[e]=Math.abs(t[e]);return r}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,r,i){this.type=t,this.currentTime=e,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,r,i){this.type=t,this.currentLoop=r,this.totalLoops=e,this.direction=i<0?-1:1}function BMSegmentStartEvent(t,e,r){this.type=t,this.firstFrame=e,this.totalFrames=r}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,e,r){var i,n,s,a,o,l,h,c;switch(l=r*(1-e),h=r*(1-(o=6*t-(a=Math.floor(6*t)))*e),c=r*(1-(1-o)*e),a%6){case 0:i=r,n=c,s=l;break;case 1:i=h,n=r,s=l;break;case 2:i=l,n=r,s=c;break;case 3:i=l,n=h,s=r;break;case 4:i=c,n=l,s=r;break;case 5:i=r,n=l,s=h}return[i,n,s]}function RGBtoHSV(t,e,r){var i,n=Math.max(t,e,r),s=Math.min(t,e,r),a=n-s,o=n===0?0:a/n,l=n/255;switch(n){case s:i=0;break;case t:i=e-r+a*(e<r?6:0),i/=6*a;break;case e:i=r-t+2*a,i/=6*a;break;case r:i=t-e+4*a,i/=6*a}return[i,o,l]}function addSaturationToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[1]+=e,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t,e,r=[];for(t=0;t<256;t+=1)e=t.toString(16),r[t]=e.length===1?"0"+e:e;return function(i,n,s){return i<0&&(i=0),n<0&&(n=0),s<0&&(s=0),"#"+r[i]+r[n]+r[s]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return(_typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var dataManager=function(){var t,e,r=1,i=[],n={onmessage:function(){},postMessage:function(l){t({data:l})}},s={postMessage:function(l){n.onmessage({data:l})}};function a(){e||((e=function(l){if(window.Worker&&window.Blob&&getWebWorker()){var h=new Blob(["var _workerSelf = self; self.onmessage = ",l.toString()],{type:"text/javascript"}),c=URL.createObjectURL(h);return new Worker(c)}return t=l,n}(function(l){if(s.dataManager||(s.dataManager=function(){function c(x,w){var M,k,I,P,A,E,F=x.length;for(k=0;k<F;k+=1)if("ks"in(M=x[k])&&!M.completed){if(M.completed=!0,M.hasMask){var $=M.masksProperties;for(P=$.length,I=0;I<P;I+=1)if($[I].pt.k.i)p($[I].pt.k);else for(E=$[I].pt.k.length,A=0;A<E;A+=1)$[I].pt.k[A].s&&p($[I].pt.k[A].s[0]),$[I].pt.k[A].e&&p($[I].pt.k[A].e[0])}M.ty===0?(M.layers=u(M.refId,w),c(M.layers,w)):M.ty===4?f(M.shapes):M.ty===5&&S(M)}}function u(x,w){var M=function(k,I){for(var P=0,A=I.length;P<A;){if(I[P].id===k)return I[P];P+=1}return null}(x,w);return M?M.layers.__used?JSON.parse(JSON.stringify(M.layers)):(M.layers.__used=!0,M.layers):null}function f(x){var w,M,k;for(w=x.length-1;w>=0;w-=1)if(x[w].ty==="sh")if(x[w].ks.k.i)p(x[w].ks.k);else for(k=x[w].ks.k.length,M=0;M<k;M+=1)x[w].ks.k[M].s&&p(x[w].ks.k[M].s[0]),x[w].ks.k[M].e&&p(x[w].ks.k[M].e[0]);else x[w].ty==="gr"&&f(x[w].it)}function p(x){var w,M=x.i.length;for(w=0;w<M;w+=1)x.i[w][0]+=x.v[w][0],x.i[w][1]+=x.v[w][1],x.o[w][0]+=x.v[w][0],x.o[w][1]+=x.v[w][1]}function m(x,w){var M=w?w.split("."):[100,100,100];return x[0]>M[0]||!(M[0]>x[0])&&(x[1]>M[1]||!(M[1]>x[1])&&(x[2]>M[2]||!(M[2]>x[2])&&null))}var g,d=function(){var x=[4,4,14];function w(M){var k,I,P,A=M.length;for(k=0;k<A;k+=1)M[k].ty===5&&(I=M[k],P=void 0,P=I.t.d,I.t.d={k:[{s:P,t:0}]})}return function(M){if(m(x,M.v)&&(w(M.layers),M.assets)){var k,I=M.assets.length;for(k=0;k<I;k+=1)M.assets[k].layers&&w(M.assets[k].layers)}}}(),y=(g=[4,7,99],function(x){if(x.chars&&!m(g,x.v)){var w,M=x.chars.length;for(w=0;w<M;w+=1){var k=x.chars[w];k.data&&k.data.shapes&&(f(k.data.shapes),k.data.ip=0,k.data.op=99999,k.data.st=0,k.data.sr=1,k.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}},x.chars[w].t||(k.data.shapes.push({ty:"no"}),k.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"})))}}}),v=function(){var x=[5,7,15];function w(M){var k,I,P,A=M.length;for(k=0;k<A;k+=1)M[k].ty===5&&(I=M[k],P=void 0,typeof(P=I.t.p).a=="number"&&(P.a={a:0,k:P.a}),typeof P.p=="number"&&(P.p={a:0,k:P.p}),typeof P.r=="number"&&(P.r={a:0,k:P.r}))}return function(M){if(m(x,M.v)&&(w(M.layers),M.assets)){var k,I=M.assets.length;for(k=0;k<I;k+=1)M.assets[k].layers&&w(M.assets[k].layers)}}}(),b=function(){var x=[4,1,9];function w(k){var I,P,A,E=k.length;for(I=0;I<E;I+=1)if(k[I].ty==="gr")w(k[I].it);else if(k[I].ty==="fl"||k[I].ty==="st")if(k[I].c.k&&k[I].c.k[0].i)for(A=k[I].c.k.length,P=0;P<A;P+=1)k[I].c.k[P].s&&(k[I].c.k[P].s[0]/=255,k[I].c.k[P].s[1]/=255,k[I].c.k[P].s[2]/=255,k[I].c.k[P].s[3]/=255),k[I].c.k[P].e&&(k[I].c.k[P].e[0]/=255,k[I].c.k[P].e[1]/=255,k[I].c.k[P].e[2]/=255,k[I].c.k[P].e[3]/=255);else k[I].c.k[0]/=255,k[I].c.k[1]/=255,k[I].c.k[2]/=255,k[I].c.k[3]/=255}function M(k){var I,P=k.length;for(I=0;I<P;I+=1)k[I].ty===4&&w(k[I].shapes)}return function(k){if(m(x,k.v)&&(M(k.layers),k.assets)){var I,P=k.assets.length;for(I=0;I<P;I+=1)k.assets[I].layers&&M(k.assets[I].layers)}}}(),_=function(){var x=[4,4,18];function w(k){var I,P,A;for(I=k.length-1;I>=0;I-=1)if(k[I].ty==="sh")if(k[I].ks.k.i)k[I].ks.k.c=k[I].closed;else for(A=k[I].ks.k.length,P=0;P<A;P+=1)k[I].ks.k[P].s&&(k[I].ks.k[P].s[0].c=k[I].closed),k[I].ks.k[P].e&&(k[I].ks.k[P].e[0].c=k[I].closed);else k[I].ty==="gr"&&w(k[I].it)}function M(k){var I,P,A,E,F,$,D=k.length;for(P=0;P<D;P+=1){if((I=k[P]).hasMask){var C=I.masksProperties;for(E=C.length,A=0;A<E;A+=1)if(C[A].pt.k.i)C[A].pt.k.c=C[A].cl;else for($=C[A].pt.k.length,F=0;F<$;F+=1)C[A].pt.k[F].s&&(C[A].pt.k[F].s[0].c=C[A].cl),C[A].pt.k[F].e&&(C[A].pt.k[F].e[0].c=C[A].cl)}I.ty===4&&w(I.shapes)}}return function(k){if(m(x,k.v)&&(M(k.layers),k.assets)){var I,P=k.assets.length;for(I=0;I<P;I+=1)k.assets[I].layers&&M(k.assets[I].layers)}}}();function S(x){x.t.a.length===0&&x.t.p}var T={completeData:function(x){x.__complete||(b(x),d(x),y(x),v(x),_(x),c(x.layers,x.assets),function(w,M){if(w){var k=0,I=w.length;for(k=0;k<I;k+=1)w[k].t===1&&(w[k].data.layers=u(w[k].data.refId,M),c(w[k].data.layers,M))}}(x.chars,x.assets),x.__complete=!0)}};return T.checkColors=b,T.checkChars=y,T.checkPathProperties=v,T.checkShapes=_,T.completeLayers=c,T}()),s.assetLoader||(s.assetLoader=function(){function c(u){var f=u.getResponseHeader("content-type");return f&&u.responseType==="json"&&f.indexOf("json")!==-1||u.response&&_typeof$5(u.response)==="object"?u.response:u.response&&typeof u.response=="string"?JSON.parse(u.response):u.responseText?JSON.parse(u.responseText):null}return{load:function(u,f,p,m){var g,d=new XMLHttpRequest;try{d.responseType="json"}catch{}d.onreadystatechange=function(){if(d.readyState===4)if(d.status===200)g=c(d),p(g);else try{g=c(d),p(g)}catch(y){m&&m(y)}};try{d.open(["G","E","T"].join(""),u,!0)}catch{d.open(["G","E","T"].join(""),f+"/"+u,!0)}d.send()}}}()),l.data.type==="loadAnimation")s.assetLoader.load(l.data.path,l.data.fullPath,function(c){s.dataManager.completeData(c),s.postMessage({id:l.data.id,payload:c,status:"success"})},function(){s.postMessage({id:l.data.id,status:"error"})});else if(l.data.type==="complete"){var h=l.data.animation;s.dataManager.completeData(h),s.postMessage({id:l.data.id,payload:h,status:"success"})}else l.data.type==="loadData"&&s.assetLoader.load(l.data.path,l.data.fullPath,function(c){s.postMessage({id:l.data.id,payload:c,status:"success"})},function(){s.postMessage({id:l.data.id,status:"error"})})})).onmessage=function(l){var h=l.data,c=h.id,u=i[c];i[c]=null,h.status==="success"?u.onComplete(h.payload):u.onError&&u.onError()})}function o(l,h){var c="processId_"+(r+=1);return i[c]={onComplete:l,onError:h},c}return{loadAnimation:function(l,h,c){a();var u=o(h,c);e.postMessage({type:"loadAnimation",path:l,fullPath:window.location.origin+window.location.pathname,id:u})},loadData:function(l,h,c){a();var u=o(h,c);e.postMessage({type:"loadData",path:l,fullPath:window.location.origin+window.location.pathname,id:u})},completeAnimation:function(l,h,c){a();var u=o(h,c);e.postMessage({type:"complete",animation:l,id:u})}}}(),ImagePreloader=function(){var t=function(){var o=createTag("canvas");o.width=1,o.height=1;var l=o.getContext("2d");return l.fillStyle="rgba(0,0,0,0)",l.fillRect(0,0,1,1),o}();function e(){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(o,l,h){var c="";if(o.e)c=o.p;else if(l){var u=o.p;u.indexOf("images/")!==-1&&(u=u.split("/")[1]),c=l+u}else c=h,c+=o.u?o.u:"",c+=o.p;return c}function n(o){var l=0,h=setInterval(function(){(o.getBBox().width||l>500)&&(this._imageLoaded(),clearInterval(h)),l+=1}.bind(this),50)}function s(o){var l={assetData:o},h=i(o,this.assetsPath,this.path);return dataManager.loadData(h,function(c){l.img=c,this._footageLoaded()}.bind(this),function(){l.img={},this._footageLoaded()}.bind(this)),l}function a(){this._imageLoaded=e.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=s.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(o,l){var h;this.imagesLoadedCb=l;var c=o.length;for(h=0;h<c;h+=1)o[h].layers||(o[h].t&&o[h].t!=="seq"?o[h].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(o[h]))):(this.totalImages+=1,this.images.push(this._createImageData(o[h]))))},setAssetsPath:function(o){this.assetsPath=o||""},setPath:function(o){this.path=o||""},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(o){for(var l=0,h=this.images.length;l<h;){if(this.images[l].assetData===o)return this.images[l].img;l+=1}return null},createImgData:function(o){var l=i(o,this.assetsPath,this.path),h=createTag("img");h.crossOrigin="anonymous",h.addEventListener("load",this._imageLoaded,!1),h.addEventListener("error",function(){c.img=t,this._imageLoaded()}.bind(this),!1),h.src=l;var c={img:h,assetData:o};return c},createImageData:function(o){var l=i(o,this.assetsPath,this.path),h=createNS("image");isSafari?this.testImageLoaded(h):h.addEventListener("load",this._imageLoaded,!1),h.addEventListener("error",function(){c.img=t,this._imageLoaded()}.bind(this),!1),h.setAttributeNS("http://www.w3.org/1999/xlink","href",l),this._elementHelper.append?this._elementHelper.append(h):this._elementHelper.appendChild(h);var c={img:h,assetData:o};return c},imageLoaded:e,footageLoaded:r,setCacheType:function(o,l){o==="svg"?(this._elementHelper=l,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var r=this._cbs[t],i=0;i<r.length;i+=1)r[i](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var r=0,i=this._cbs[t].length;r<i;)this._cbs[t][r]===e&&(this._cbs[t].splice(r,1),r-=1,i-=1),r+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(e){for(var r,i=e.split(`\r
27
- `),n={},s=0,a=0;a<i.length;a+=1)(r=i[a].split(":")).length===2&&(n[r[0]]=r[1].trim(),s+=1);if(s===0)throw new Error;return n}return function(e){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],s={time:n.tm,duration:n.dr};try{s.payload=JSON.parse(e[i].cm)}catch{try{s.payload=t(e[i].cm)}catch{s.payload={name:e[i].cm}}}r.push(s)}return r}}(),ProjectInterface=function(){function t(e){this.compositions.push(e)}return function(){function e(r){for(var i=0,n=this.compositions.length;i<n;){if(this.compositions[i].data&&this.compositions[i].data.nm===r)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function _typeof$4(t){return(_typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}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)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var r=getRenderer(e);this.renderer=new r(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,t.loop===""||t.loop===null||t.loop===void 0||t.loop===!0?this.loop=!0:t.loop===!1?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(t.path.lastIndexOf("\\")!==-1?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&_typeof$4(e)!=="object"&&(e=JSON.parse(e));var r={wrapper:t,animationData:e},i=t.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:"canvas";var n=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:"";n==="false"?r.loop=!1:n==="true"?r.loop=!0:n!==""&&(r.loop=parseInt(n,10));var s=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=s!=="false",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:"",(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:"")==="false"&&(r.prerender=!1),this.setParams(r)},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,r,i=this.animationData.layers,n=i.length,s=t.layers,a=s.length;for(r=0;r<a;r+=1)for(e=0;e<n;){if(i[e].id===s[r].id){i[e]=s[r];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(n=t.assets.length,e=0;e<n;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||t.length===0||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.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(t){if(this.renderer)try{this.animationData=t,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(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.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()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var r=typeof t=="number"?t:void 0,i=typeof e=="number"?e:void 0;this.renderer.updateContainerSize(r,i)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},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(this.isLoaded!==!1&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,r=0;r<this.markers.length;r+=1)if((e=this.markers[r]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,r){if(!r||this.name===r){var i=Number(t);if(isNaN(i)){var n=this.getMarkerData(t);n&&this.goToAndStop(n.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,r){if(!r||this.name===r){var i=Number(t);if(isNaN(i)){var n=this.getMarkerData(t);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(i,e,r);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(this.isPaused!==!0&&this.isLoaded!==!1){var e=this.currentRawFrame+t*this.frameModifier,r=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(r=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&this.loop!==!0?(r=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?r=t:this.currentRawFrame+this.firstFrame>e&&(r=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),_typeof$4(t[0])==="object"){var r,i=t.length;for(r=0;r<i;r+=1)this.segments.push(t[r])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!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.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||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(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var r=t.p;r.indexOf("images/")!==-1&&(r=r.split("/")[1]),e=this.assetsPath+r}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,r=this.assets.length;e<r;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,r){try{this.renderer.getElementByPath(t).updateDocumentData(e,r)}catch{}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,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(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}t==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),t==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),t==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),t==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),t==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],r=0,i=0,n=0,s=!0,a=!1;function o(g){for(var d=0,y=g.target;d<i;)e[d].animation===y&&(e.splice(d,1),d-=1,i-=1,y.isPaused||c()),d+=1}function l(g,d){if(!g)return null;for(var y=0;y<i;){if(e[y].elem===g&&e[y].elem!==null)return e[y].animation;y+=1}var v=new AnimationItem;return u(v,g),v.setData(g,d),v}function h(){n+=1,m()}function c(){n-=1}function u(g,d){g.addEventListener("destroy",o),g.addEventListener("_active",h),g.addEventListener("_idle",c),e.push({elem:d,animation:g}),i+=1}function f(g){var d,y=g-r;for(d=0;d<i;d+=1)e[d].animation.advanceTime(y);r=g,n&&!a?window.requestAnimationFrame(f):s=!0}function p(g){r=g,window.requestAnimationFrame(f)}function m(){!a&&n&&s&&(window.requestAnimationFrame(p),s=!1)}return t.registerAnimation=l,t.loadAnimation=function(g){var d=new AnimationItem;return u(d,null),d.setParams(g),d},t.setSpeed=function(g,d){var y;for(y=0;y<i;y+=1)e[y].animation.setSpeed(g,d)},t.setDirection=function(g,d){var y;for(y=0;y<i;y+=1)e[y].animation.setDirection(g,d)},t.play=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.play(g)},t.pause=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.pause(g)},t.stop=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.stop(g)},t.togglePause=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.togglePause(g)},t.searchAnimations=function(g,d,y){var v,b=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),_=b.length;for(v=0;v<_;v+=1)y&&b[v].setAttribute("data-bm-type",y),l(b[v],g);if(d&&_===0){y||(y="svg");var S=document.getElementsByTagName("body")[0];S.innerText="";var T=createTag("div");T.style.width="100%",T.style.height="100%",T.setAttribute("data-bm-type",y),S.appendChild(T),l(T,g)}},t.resize=function(){var g;for(g=0;g<i;g+=1)e[g].animation.resize()},t.goToAndStop=function(g,d,y){var v;for(v=0;v<i;v+=1)e[v].animation.goToAndStop(g,d,y)},t.destroy=function(g){var d;for(d=i-1;d>=0;d-=1)e[d].animation.destroy(g)},t.freeze=function(){a=!0},t.unfreeze=function(){a=!1,m()},t.setVolume=function(g,d){var y;for(y=0;y<i;y+=1)e[y].animation.setVolume(g,d)},t.mute=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.mute(g)},t.unmute=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.unmute(g)},t.getRegisteredAnimations=function(){var g,d=e.length,y=[];for(g=0;g<d;g+=1)y.push(e[g].animation);return y},t}(),BezierFactory=function(){var t={getBezierEasing:function(h,c,u,f,p){var m=p||("bez_"+h+"_"+c+"_"+u+"_"+f).replace(/\./g,"p");if(e[m])return e[m];var g=new l([h,c,u,f]);return e[m]=g,g}},e={},r=typeof Float32Array=="function";function i(h,c){return 1-3*c+3*h}function n(h,c){return 3*c-6*h}function s(h){return 3*h}function a(h,c,u){return((i(c,u)*h+n(c,u))*h+s(c))*h}function o(h,c,u){return 3*i(c,u)*h*h+2*n(c,u)*h+s(c)}function l(h){this._p=h,this._mSampleValues=r?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return l.prototype={get:function(h){var c=this._p[0],u=this._p[1],f=this._p[2],p=this._p[3];return this._precomputed||this._precompute(),c===u&&f===p?h:h===0?0:h===1?1:a(this._getTForX(h),u,p)},_precompute:function(){var h=this._p[0],c=this._p[1],u=this._p[2],f=this._p[3];this._precomputed=!0,h===c&&u===f||this._calcSampleValues()},_calcSampleValues:function(){for(var h=this._p[0],c=this._p[2],u=0;u<11;++u)this._mSampleValues[u]=a(.1*u,h,c)},_getTForX:function(h){for(var c=this._p[0],u=this._p[2],f=this._mSampleValues,p=0,m=1;m!==10&&f[m]<=h;++m)p+=.1;var g=p+.1*((h-f[--m])/(f[m+1]-f[m])),d=o(g,c,u);return d>=.001?function(y,v,b,_){for(var S=0;S<4;++S){var T=o(v,b,_);if(T===0)return v;v-=(a(v,b,_)-y)/T}return v}(h,g,c,u):d===0?g:function(y,v,b,_,S){var T,x,w=0;do(T=a(x=v+(b-v)/2,_,S)-y)>0?b=x:v=x;while(Math.abs(T)>1e-7&&++w<10);return x}(h,p,p+.1,c,u)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,r){var i=0,n=t,s=createSizedArray(n);return{newElement:function(){return i?s[i-=1]:e()},release:function(a){i===n&&(s=pooling.double(s),n*=2),r&&r(a),s[i]=a,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(t){var e,r=t.lengths.length;for(e=0;e<r;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0});function bezFunction(){var t=Math;function e(h,c,u,f,p,m){var g=h*f+c*p+u*m-p*f-m*h-u*c;return g>-.001&&g<.001}var r=function(h,c,u,f){var p,m,g,d,y,v,b=getDefaultCurveSegments(),_=0,S=[],T=[],x=bezierLengthPool.newElement();for(g=u.length,p=0;p<b;p+=1){for(y=p/(b-1),v=0,m=0;m<g;m+=1)d=bmPow(1-y,3)*h[m]+3*bmPow(1-y,2)*y*u[m]+3*(1-y)*bmPow(y,2)*f[m]+bmPow(y,3)*c[m],S[m]=d,T[m]!==null&&(v+=bmPow(S[m]-T[m],2)),T[m]=S[m];v&&(_+=v=bmSqrt(v)),x.percents[p]=y,x.lengths[p]=_}return x.addedLength=_,x};function i(h){this.segmentLength=0,this.points=new Array(h)}function n(h,c){this.partialLength=h,this.point=c}var s,a=(s={},function(h,c,u,f){var p=(h[0]+"_"+h[1]+"_"+c[0]+"_"+c[1]+"_"+u[0]+"_"+u[1]+"_"+f[0]+"_"+f[1]).replace(/\./g,"p");if(!s[p]){var m,g,d,y,v,b,_,S=getDefaultCurveSegments(),T=0,x=null;h.length===2&&(h[0]!==c[0]||h[1]!==c[1])&&e(h[0],h[1],c[0],c[1],h[0]+u[0],h[1]+u[1])&&e(h[0],h[1],c[0],c[1],c[0]+f[0],c[1]+f[1])&&(S=2);var w=new i(S);for(d=u.length,m=0;m<S;m+=1){for(_=createSizedArray(d),v=m/(S-1),b=0,g=0;g<d;g+=1)y=bmPow(1-v,3)*h[g]+3*bmPow(1-v,2)*v*(h[g]+u[g])+3*(1-v)*bmPow(v,2)*(c[g]+f[g])+bmPow(v,3)*c[g],_[g]=y,x!==null&&(b+=bmPow(_[g]-x[g],2));T+=b=bmSqrt(b),w.points[m]=new n(b,_),x=_}w.segmentLength=T,s[p]=w}return s[p]});function o(h,c){var u=c.percents,f=c.lengths,p=u.length,m=bmFloor((p-1)*h),g=h*c.addedLength,d=0;if(m===p-1||m===0||g===f[m])return u[m];for(var y=f[m]>g?-1:1,v=!0;v;)if(f[m]<=g&&f[m+1]>g?(d=(g-f[m])/(f[m+1]-f[m]),v=!1):m+=y,m<0||m>=p-1){if(m===p-1)return u[m];v=!1}return u[m]+(u[m+1]-u[m])*d}var l=createTypedArray("float32",8);return{getSegmentsLength:function(h){var c,u=segmentsLengthPool.newElement(),f=h.c,p=h.v,m=h.o,g=h.i,d=h._length,y=u.lengths,v=0;for(c=0;c<d-1;c+=1)y[c]=r(p[c],p[c+1],m[c],g[c+1]),v+=y[c].addedLength;return f&&d&&(y[c]=r(p[c],p[0],m[c],g[0]),v+=y[c].addedLength),u.totalLength=v,u},getNewSegment:function(h,c,u,f,p,m,g){p<0?p=0:p>1&&(p=1);var d,y=o(p,g),v=o(m=m>1?1:m,g),b=h.length,_=1-y,S=1-v,T=_*_*_,x=y*_*_*3,w=y*y*_*3,M=y*y*y,k=_*_*S,I=y*_*S+_*y*S+_*_*v,P=y*y*S+_*y*v+y*_*v,A=y*y*v,E=_*S*S,F=y*S*S+_*v*S+_*S*v,$=y*v*S+_*v*v+y*S*v,D=y*v*v,C=S*S*S,R=v*S*S+S*v*S+S*S*v,B=v*v*S+S*v*v+v*S*v,U=v*v*v;for(d=0;d<b;d+=1)l[4*d]=t.round(1e3*(T*h[d]+x*u[d]+w*f[d]+M*c[d]))/1e3,l[4*d+1]=t.round(1e3*(k*h[d]+I*u[d]+P*f[d]+A*c[d]))/1e3,l[4*d+2]=t.round(1e3*(E*h[d]+F*u[d]+$*f[d]+D*c[d]))/1e3,l[4*d+3]=t.round(1e3*(C*h[d]+R*u[d]+B*f[d]+U*c[d]))/1e3;return l},getPointInSegment:function(h,c,u,f,p,m){var g=o(p,m),d=1-g;return[t.round(1e3*(d*d*d*h[0]+(g*d*d+d*g*d+d*d*g)*u[0]+(g*g*d+d*g*g+g*d*g)*f[0]+g*g*g*c[0]))/1e3,t.round(1e3*(d*d*d*h[1]+(g*d*d+d*g*d+d*d*g)*u[1]+(g*g*d+d*g*g+g*d*g)*f[1]+g*g*g*c[1]))/1e3]},buildBezierData:a,pointOnLine2D:e,pointOnLine3D:function(h,c,u,f,p,m,g,d,y){if(u===0&&m===0&&y===0)return e(h,c,f,p,g,d);var v,b=t.sqrt(t.pow(f-h,2)+t.pow(p-c,2)+t.pow(m-u,2)),_=t.sqrt(t.pow(g-h,2)+t.pow(d-c,2)+t.pow(y-u,2)),S=t.sqrt(t.pow(g-f,2)+t.pow(d-p,2)+t.pow(y-m,2));return(v=b>_?b>S?b-_-S:S-_-b:S>_?S-_-b:_-b-S)>-1e-4&&v<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var t=initialDefaultFrame,e=Math.abs;function r(f,p){var m,g=this.offsetTime;this.propType==="multidimensional"&&(m=createTypedArray("float32",this.pv.length));for(var d,y,v,b,_,S,T,x,w,M=p.lastIndex,k=M,I=this.keyframes.length-1,P=!0;P;){if(d=this.keyframes[k],y=this.keyframes[k+1],k===I-1&&f>=y.t-g){d.h&&(d=y),M=0;break}if(y.t-g>f){M=k;break}k<I-1?k+=1:(M=0,P=!1)}v=this.keyframesMetadata[k]||{};var A,E=y.t-g,F=d.t-g;if(d.to){v.bezierData||(v.bezierData=bez.buildBezierData(d.s,y.s||d.e,d.to,d.ti));var $=v.bezierData;if(f>=E||f<F){var D=f>=E?$.points.length-1:0;for(_=$.points[D].point.length,b=0;b<_;b+=1)m[b]=$.points[D].point[b]}else{v.__fnct?w=v.__fnct:(w=BezierFactory.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y,d.n).get,v.__fnct=w),S=w((f-F)/(E-F));var C,R=$.segmentLength*S,B=p.lastFrame<f&&p._lastKeyframeIndex===k?p._lastAddedLength:0;for(x=p.lastFrame<f&&p._lastKeyframeIndex===k?p._lastPoint:0,P=!0,T=$.points.length;P;){if(B+=$.points[x].partialLength,R===0||S===0||x===$.points.length-1){for(_=$.points[x].point.length,b=0;b<_;b+=1)m[b]=$.points[x].point[b];break}if(R>=B&&R<B+$.points[x+1].partialLength){for(C=(R-B)/$.points[x+1].partialLength,_=$.points[x].point.length,b=0;b<_;b+=1)m[b]=$.points[x].point[b]+($.points[x+1].point[b]-$.points[x].point[b])*C;break}x<T-1?x+=1:P=!1}p._lastPoint=x,p._lastAddedLength=B-$.points[x].partialLength,p._lastKeyframeIndex=k}}else{var U,Z,X,H,ie;if(I=d.s.length,A=y.s||d.e,this.sh&&d.h!==1)f>=E?(m[0]=A[0],m[1]=A[1],m[2]=A[2]):f<=F?(m[0]=d.s[0],m[1]=d.s[1],m[2]=d.s[2]):function(le,se){var te=se[0],Ee=se[1],ge=se[2],Me=se[3],Pe=Math.atan2(2*Ee*Me-2*te*ge,1-2*Ee*Ee-2*ge*ge),J=Math.asin(2*te*Ee+2*ge*Me),Ze=Math.atan2(2*te*Me-2*Ee*ge,1-2*te*te-2*ge*ge);le[0]=Pe/degToRads,le[1]=J/degToRads,le[2]=Ze/degToRads}(m,function(le,se,te){var Ee,ge,Me,Pe,J,Ze=[],Pt=le[0],At=le[1],lt=le[2],mt=le[3],ht=se[0],Ve=se[1],gt=se[2],yt=se[3];return(ge=Pt*ht+At*Ve+lt*gt+mt*yt)<0&&(ge=-ge,ht=-ht,Ve=-Ve,gt=-gt,yt=-yt),1-ge>1e-6?(Ee=Math.acos(ge),Me=Math.sin(Ee),Pe=Math.sin((1-te)*Ee)/Me,J=Math.sin(te*Ee)/Me):(Pe=1-te,J=te),Ze[0]=Pe*Pt+J*ht,Ze[1]=Pe*At+J*Ve,Ze[2]=Pe*lt+J*gt,Ze[3]=Pe*mt+J*yt,Ze}(i(d.s),i(A),(f-F)/(E-F)));else for(k=0;k<I;k+=1)d.h!==1&&(f>=E?S=1:f<F?S=0:(d.o.x.constructor===Array?(v.__fnct||(v.__fnct=[]),v.__fnct[k]?w=v.__fnct[k]:(U=d.o.x[k]===void 0?d.o.x[0]:d.o.x[k],Z=d.o.y[k]===void 0?d.o.y[0]:d.o.y[k],X=d.i.x[k]===void 0?d.i.x[0]:d.i.x[k],H=d.i.y[k]===void 0?d.i.y[0]:d.i.y[k],w=BezierFactory.getBezierEasing(U,Z,X,H).get,v.__fnct[k]=w)):v.__fnct?w=v.__fnct:(U=d.o.x,Z=d.o.y,X=d.i.x,H=d.i.y,w=BezierFactory.getBezierEasing(U,Z,X,H).get,d.keyframeMetadata=w),S=w((f-F)/(E-F)))),A=y.s||d.e,ie=d.h===1?d.s[k]:d.s[k]+(A[k]-d.s[k])*S,this.propType==="multidimensional"?m[k]=ie:m=ie}return p.lastIndex=M,m}function i(f){var p=f[0]*degToRads,m=f[1]*degToRads,g=f[2]*degToRads,d=Math.cos(p/2),y=Math.cos(m/2),v=Math.cos(g/2),b=Math.sin(p/2),_=Math.sin(m/2),S=Math.sin(g/2);return[b*_*v+d*y*S,b*y*v+d*_*S,d*_*v-b*y*S,d*y*v-b*_*S]}function n(){var f=this.comp.renderedFrame-this.offsetTime,p=this.keyframes[0].t-this.offsetTime,m=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(f===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=m&&f>=m||this._caching.lastFrame<p&&f<p))){this._caching.lastFrame>=f&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var g=this.interpolateValue(f,this._caching);this.pv=g}return this._caching.lastFrame=f,this.pv}function s(f){var p;if(this.propType==="unidimensional")p=f*this.mult,e(this.v-p)>1e-5&&(this.v=p,this._mdf=!0);else for(var m=0,g=this.v.length;m<g;)p=f[m]*this.mult,e(this.v[m]-p)>1e-5&&(this.v[m]=p,this._mdf=!0),m+=1}function a(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var f;this.lock=!0,this._mdf=this._isFirstFrame;var p=this.effectsSequence.length,m=this.kf?this.pv:this.data.k;for(f=0;f<p;f+=1)m=this.effectsSequence[f](m);this.setVValue(m),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(f){this.effectsSequence.push(f),this.container.addDynamicProperty(this)}function l(f,p,m,g){this.propType="unidimensional",this.mult=m||1,this.data=p,this.v=m?p.k*m:p.k,this.pv=p.k,this._mdf=!1,this.elem=f,this.container=g,this.comp=f.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=a,this.setVValue=s,this.addEffect=o}function h(f,p,m,g){var d;this.propType="multidimensional",this.mult=m||1,this.data=p,this._mdf=!1,this.elem=f,this.container=g,this.comp=f.comp,this.k=!1,this.kf=!1,this.frameId=-1;var y=p.k.length;for(this.v=createTypedArray("float32",y),this.pv=createTypedArray("float32",y),this.vel=createTypedArray("float32",y),d=0;d<y;d+=1)this.v[d]=p.k[d]*this.mult,this.pv[d]=p.k[d];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=a,this.setVValue=s,this.addEffect=o}function c(f,p,m,g){this.propType="unidimensional",this.keyframes=p.k,this.keyframesMetadata=[],this.offsetTime=f.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=p,this.mult=m||1,this.elem=f,this.container=g,this.comp=f.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=a,this.setVValue=s,this.interpolateValue=r,this.effectsSequence=[n.bind(this)],this.addEffect=o}function u(f,p,m,g){var d;this.propType="multidimensional";var y,v,b,_,S=p.k.length;for(d=0;d<S-1;d+=1)p.k[d].to&&p.k[d].s&&p.k[d+1]&&p.k[d+1].s&&(y=p.k[d].s,v=p.k[d+1].s,b=p.k[d].to,_=p.k[d].ti,(y.length===2&&(y[0]!==v[0]||y[1]!==v[1])&&bez.pointOnLine2D(y[0],y[1],v[0],v[1],y[0]+b[0],y[1]+b[1])&&bez.pointOnLine2D(y[0],y[1],v[0],v[1],v[0]+_[0],v[1]+_[1])||y.length===3&&(y[0]!==v[0]||y[1]!==v[1]||y[2]!==v[2])&&bez.pointOnLine3D(y[0],y[1],y[2],v[0],v[1],v[2],y[0]+b[0],y[1]+b[1],y[2]+b[2])&&bez.pointOnLine3D(y[0],y[1],y[2],v[0],v[1],v[2],v[0]+_[0],v[1]+_[1],v[2]+_[2]))&&(p.k[d].to=null,p.k[d].ti=null),y[0]===v[0]&&y[1]===v[1]&&b[0]===0&&b[1]===0&&_[0]===0&&_[1]===0&&(y.length===2||y[2]===v[2]&&b[2]===0&&_[2]===0)&&(p.k[d].to=null,p.k[d].ti=null));this.effectsSequence=[n.bind(this)],this.data=p,this.keyframes=p.k,this.keyframesMetadata=[],this.offsetTime=f.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=m||1,this.elem=f,this.container=g,this.comp=f.comp,this.getValue=a,this.setVValue=s,this.interpolateValue=r,this.frameId=-1;var T=p.k[0].s.length;for(this.v=createTypedArray("float32",T),this.pv=createTypedArray("float32",T),d=0;d<T;d+=1)this.v[d]=t,this.pv[d]=t;this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",T)},this.addEffect=o}return{getProp:function(f,p,m,g,d){var y;if(p.k.length)if(typeof p.k[0]=="number")y=new h(f,p,g,d);else switch(m){case 0:y=new c(f,p,g,d);break;case 1:y=new u(f,p,g,d)}else y=new l(f,p,g,d);return y.effectsSequence.length&&d.addDynamicProperty(y),y}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,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(t,e){this.c=t,this.setLength(e);for(var r=0;r<e;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},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(t,e,r,i,n){var s;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[]}(!s[i]||s[i]&&!n)&&(s[i]=pointPool.newElement()),s[i][0]=t,s[i][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,i,n,s,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(r,i,"o",a,o),this.setXYAt(n,s,"i",a,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,i=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),n=1);var s,a=this._length-1,o=this._length;for(s=n;s<o;s+=1)t.setTripleAt(e[a][0],e[a][1],i[a][0],i[a][1],r[a][0],r[a][1],s,!1),a-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(t){var e,r=t._length;for(e=0;e<r;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}),factory.clone=function(t){var e,r=factory.newElement(),i=t._length===void 0?t.v.length:t._length;for(r.setLength(i),r.c=t.c,e=0;e<i;e+=1)r.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(t){var e,r=t._length;for(e=0;e<r;e+=1)shapePool.release(t.shapes[e]);t._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=t,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){function t(f,p,m){var g,d,y,v,b,_,S,T,x,w=m.lastIndex,M=this.keyframes;if(f<M[0].t-this.offsetTime)g=M[0].s[0],y=!0,w=0;else if(f>=M[M.length-1].t-this.offsetTime)g=M[M.length-1].s?M[M.length-1].s[0]:M[M.length-2].e[0],y=!0;else{for(var k,I,P,A=w,E=M.length-1,F=!0;F&&(k=M[A],!((I=M[A+1]).t-this.offsetTime>f));)A<E-1?A+=1:F=!1;if(P=this.keyframesMetadata[A]||{},w=A,!(y=k.h===1)){if(f>=I.t-this.offsetTime)T=1;else if(f<k.t-this.offsetTime)T=0;else{var $;P.__fnct?$=P.__fnct:($=BezierFactory.getBezierEasing(k.o.x,k.o.y,k.i.x,k.i.y).get,P.__fnct=$),T=$((f-(k.t-this.offsetTime))/(I.t-this.offsetTime-(k.t-this.offsetTime)))}d=I.s?I.s[0]:k.e[0]}g=k.s[0]}for(_=p._length,S=g.i[0].length,m.lastIndex=w,v=0;v<_;v+=1)for(b=0;b<S;b+=1)x=y?g.i[v][b]:g.i[v][b]+(d.i[v][b]-g.i[v][b])*T,p.i[v][b]=x,x=y?g.o[v][b]:g.o[v][b]+(d.o[v][b]-g.o[v][b])*T,p.o[v][b]=x,x=y?g.v[v][b]:g.v[v][b]+(d.v[v][b]-g.v[v][b])*T,p.v[v][b]=x}function e(){var f=this.comp.renderedFrame-this.offsetTime,p=this.keyframes[0].t-this.offsetTime,m=this.keyframes[this.keyframes.length-1].t-this.offsetTime,g=this._caching.lastFrame;return g!==-999999&&(g<p&&f<p||g>m&&f>m)||(this._caching.lastIndex=g<f?this._caching.lastIndex:0,this.interpolateShape(f,this.pv,this._caching)),this._caching.lastFrame=f,this.pv}function r(){this.paths=this.localShapeCollection}function i(f){(function(p,m){if(p._length!==m._length||p.c!==m.c)return!1;var g,d=p._length;for(g=0;g<d;g+=1)if(p.v[g][0]!==m.v[g][0]||p.v[g][1]!==m.v[g][1]||p.o[g][0]!==m.o[g][0]||p.o[g][1]!==m.o[g][1]||p.i[g][0]!==m.i[g][0]||p.i[g][1]!==m.i[g][1])return!1;return!0})(this.v,f)||(this.v=shapePool.clone(f),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 f,p;this.lock=!0,this._mdf=!1,f=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var m=this.effectsSequence.length;for(p=0;p<m;p+=1)f=this.effectsSequence[p](f);this.setVValue(f),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(f,p,m){this.propType="shape",this.comp=f.comp,this.container=f,this.elem=f,this.data=p,this.k=!1,this.kf=!1,this._mdf=!1;var g=m===3?p.pt.k:p.ks.k;this.v=shapePool.clone(g),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function a(f){this.effectsSequence.push(f),this.container.addDynamicProperty(this)}function o(f,p,m){this.propType="shape",this.comp=f.comp,this.elem=f,this.container=f,this.offsetTime=f.data.st,this.keyframes=m===3?p.pt.k:p.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var g=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,g),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=-999999,this.reset=r,this._caching={lastFrame:-999999,lastIndex:0},this.effectsSequence=[e.bind(this)]}s.prototype.interpolateShape=t,s.prototype.getValue=n,s.prototype.setVValue=i,s.prototype.addEffect=a,o.prototype.getValue=n,o.prototype.interpolateShape=t,o.prototype.setVValue=i,o.prototype.addEffect=a;var l=function(){var f=roundCorner;function p(m,g){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=g.d,this.elem=m,this.comp=m.comp,this.frameId=-1,this.initDynamicPropertyContainer(m),this.p=PropertyFactory.getProp(m,g.p,1,0,this),this.s=PropertyFactory.getProp(m,g.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return p.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var m=this.p.v[0],g=this.p.v[1],d=this.s.v[0]/2,y=this.s.v[1]/2,v=this.d!==3,b=this.v;b.v[0][0]=m,b.v[0][1]=g-y,b.v[1][0]=v?m+d:m-d,b.v[1][1]=g,b.v[2][0]=m,b.v[2][1]=g+y,b.v[3][0]=v?m-d:m+d,b.v[3][1]=g,b.i[0][0]=v?m-d*f:m+d*f,b.i[0][1]=g-y,b.i[1][0]=v?m+d:m-d,b.i[1][1]=g-y*f,b.i[2][0]=v?m+d*f:m-d*f,b.i[2][1]=g+y,b.i[3][0]=v?m-d:m+d,b.i[3][1]=g+y*f,b.o[0][0]=v?m+d*f:m-d*f,b.o[0][1]=g-y,b.o[1][0]=v?m+d:m-d,b.o[1][1]=g+y*f,b.o[2][0]=v?m-d*f:m+d*f,b.o[2][1]=g+y,b.o[3][0]=v?m-d:m+d,b.o[3][1]=g-y*f}},extendPrototype([DynamicPropertyContainer],p),p}(),h=function(){function f(p,m){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=p,this.comp=p.comp,this.data=m,this.frameId=-1,this.d=m.d,this.initDynamicPropertyContainer(p),m.sy===1?(this.ir=PropertyFactory.getProp(p,m.ir,0,0,this),this.is=PropertyFactory.getProp(p,m.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(p,m.pt,0,0,this),this.p=PropertyFactory.getProp(p,m.p,1,0,this),this.r=PropertyFactory.getProp(p,m.r,0,degToRads,this),this.or=PropertyFactory.getProp(p,m.or,0,0,this),this.os=PropertyFactory.getProp(p,m.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 f.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var p,m,g,d,y=2*Math.floor(this.pt.v),v=2*Math.PI/y,b=!0,_=this.or.v,S=this.ir.v,T=this.os.v,x=this.is.v,w=2*Math.PI*_/(2*y),M=2*Math.PI*S/(2*y),k=-Math.PI/2;k+=this.r.v;var I=this.data.d===3?-1:1;for(this.v._length=0,p=0;p<y;p+=1){g=b?T:x,d=b?w:M;var P=(m=b?_:S)*Math.cos(k),A=m*Math.sin(k),E=P===0&&A===0?0:A/Math.sqrt(P*P+A*A),F=P===0&&A===0?0:-P/Math.sqrt(P*P+A*A);P+=+this.p.v[0],A+=+this.p.v[1],this.v.setTripleAt(P,A,P-E*d*g*I,A-F*d*g*I,P+E*d*g*I,A+F*d*g*I,p,!0),b=!b,k+=v*I}},convertPolygonToPath:function(){var p,m=Math.floor(this.pt.v),g=2*Math.PI/m,d=this.or.v,y=this.os.v,v=2*Math.PI*d/(4*m),b=.5*-Math.PI,_=this.data.d===3?-1:1;for(b+=this.r.v,this.v._length=0,p=0;p<m;p+=1){var S=d*Math.cos(b),T=d*Math.sin(b),x=S===0&&T===0?0:T/Math.sqrt(S*S+T*T),w=S===0&&T===0?0:-S/Math.sqrt(S*S+T*T);S+=+this.p.v[0],T+=+this.p.v[1],this.v.setTripleAt(S,T,S-x*v*y*_,T-w*v*y*_,S+x*v*y*_,T+w*v*y*_,p,!0),b+=g*_}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],f),f}(),c=function(){function f(p,m){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=p,this.comp=p.comp,this.frameId=-1,this.d=m.d,this.initDynamicPropertyContainer(p),this.p=PropertyFactory.getProp(p,m.p,1,0,this),this.s=PropertyFactory.getProp(p,m.s,1,0,this),this.r=PropertyFactory.getProp(p,m.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return f.prototype={convertRectToPath:function(){var p=this.p.v[0],m=this.p.v[1],g=this.s.v[0]/2,d=this.s.v[1]/2,y=bmMin(g,d,this.r.v),v=y*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(p+g,m-d+y,p+g,m-d+y,p+g,m-d+v,0,!0),this.v.setTripleAt(p+g,m+d-y,p+g,m+d-v,p+g,m+d-y,1,!0),y!==0?(this.v.setTripleAt(p+g-y,m+d,p+g-y,m+d,p+g-v,m+d,2,!0),this.v.setTripleAt(p-g+y,m+d,p-g+v,m+d,p-g+y,m+d,3,!0),this.v.setTripleAt(p-g,m+d-y,p-g,m+d-y,p-g,m+d-v,4,!0),this.v.setTripleAt(p-g,m-d+y,p-g,m-d+v,p-g,m-d+y,5,!0),this.v.setTripleAt(p-g+y,m-d,p-g+y,m-d,p-g+v,m-d,6,!0),this.v.setTripleAt(p+g-y,m-d,p+g-v,m-d,p+g-y,m-d,7,!0)):(this.v.setTripleAt(p-g,m+d,p-g+v,m+d,p-g,m+d,2),this.v.setTripleAt(p-g,m-d,p-g,m-d+v,p-g,m-d,3))):(this.v.setTripleAt(p+g,m-d+y,p+g,m-d+v,p+g,m-d+y,0,!0),y!==0?(this.v.setTripleAt(p+g-y,m-d,p+g-y,m-d,p+g-v,m-d,1,!0),this.v.setTripleAt(p-g+y,m-d,p-g+v,m-d,p-g+y,m-d,2,!0),this.v.setTripleAt(p-g,m-d+y,p-g,m-d+y,p-g,m-d+v,3,!0),this.v.setTripleAt(p-g,m+d-y,p-g,m+d-v,p-g,m+d-y,4,!0),this.v.setTripleAt(p-g+y,m+d,p-g+y,m+d,p-g+v,m+d,5,!0),this.v.setTripleAt(p+g-y,m+d,p+g-v,m+d,p+g-y,m+d,6,!0),this.v.setTripleAt(p+g,m+d-y,p+g,m+d-y,p+g,m+d-v,7,!0)):(this.v.setTripleAt(p-g,m-d,p-g+v,m-d,p-g,m-d,1,!0),this.v.setTripleAt(p-g,m+d,p-g,m+d-v,p-g,m+d,2,!0),this.v.setTripleAt(p+g,m+d,p+g-v,m+d,p+g,m+d,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],f),f}(),u={getShapeProp:function(f,p,m){var g;return m===3||m===4?g=(m===3?p.pt:p.ks).k.length?new o(f,p,m):new s(f,p,m):m===5?g=new c(f,p):m===6?g=new l(f,p):m===7&&(g=new h(f,p)),g.k&&f.addDynamicProperty(g),g},getConstructorFunction:function(){return s},getKeyframedConstructorFunction:function(){return o}};return u}(),Matrix=function(){var t=Math.cos,e=Math.sin,r=Math.tan,i=Math.round;function n(){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 s(D){if(D===0)return this;var C=t(D),R=e(D);return this._t(C,-R,0,0,R,C,0,0,0,0,1,0,0,0,0,1)}function a(D){if(D===0)return this;var C=t(D),R=e(D);return this._t(1,0,0,0,0,C,-R,0,0,R,C,0,0,0,0,1)}function o(D){if(D===0)return this;var C=t(D),R=e(D);return this._t(C,0,R,0,0,1,0,0,-R,0,C,0,0,0,0,1)}function l(D){if(D===0)return this;var C=t(D),R=e(D);return this._t(C,-R,0,0,R,C,0,0,0,0,1,0,0,0,0,1)}function h(D,C){return this._t(1,C,D,1,0,0)}function c(D,C){return this.shear(r(D),r(C))}function u(D,C){var R=t(C),B=e(C);return this._t(R,B,0,0,-B,R,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(D),1,0,0,0,0,1,0,0,0,0,1)._t(R,-B,0,0,B,R,0,0,0,0,1,0,0,0,0,1)}function f(D,C,R){return R||R===0||(R=1),D===1&&C===1&&R===1?this:this._t(D,0,0,0,0,C,0,0,0,0,R,0,0,0,0,1)}function p(D,C,R,B,U,Z,X,H,ie,le,se,te,Ee,ge,Me,Pe){return this.props[0]=D,this.props[1]=C,this.props[2]=R,this.props[3]=B,this.props[4]=U,this.props[5]=Z,this.props[6]=X,this.props[7]=H,this.props[8]=ie,this.props[9]=le,this.props[10]=se,this.props[11]=te,this.props[12]=Ee,this.props[13]=ge,this.props[14]=Me,this.props[15]=Pe,this}function m(D,C,R){return R=R||0,D!==0||C!==0||R!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,D,C,R,1):this}function g(D,C,R,B,U,Z,X,H,ie,le,se,te,Ee,ge,Me,Pe){var J=this.props;if(D===1&&C===0&&R===0&&B===0&&U===0&&Z===1&&X===0&&H===0&&ie===0&&le===0&&se===1&&te===0)return J[12]=J[12]*D+J[15]*Ee,J[13]=J[13]*Z+J[15]*ge,J[14]=J[14]*se+J[15]*Me,J[15]*=Pe,this._identityCalculated=!1,this;var Ze=J[0],Pt=J[1],At=J[2],lt=J[3],mt=J[4],ht=J[5],Ve=J[6],gt=J[7],yt=J[8],Rt=J[9],pr=J[10],Lt=J[11],Cr=J[12],Xn=J[13],Kn=J[14],Qn=J[15];return J[0]=Ze*D+Pt*U+At*ie+lt*Ee,J[1]=Ze*C+Pt*Z+At*le+lt*ge,J[2]=Ze*R+Pt*X+At*se+lt*Me,J[3]=Ze*B+Pt*H+At*te+lt*Pe,J[4]=mt*D+ht*U+Ve*ie+gt*Ee,J[5]=mt*C+ht*Z+Ve*le+gt*ge,J[6]=mt*R+ht*X+Ve*se+gt*Me,J[7]=mt*B+ht*H+Ve*te+gt*Pe,J[8]=yt*D+Rt*U+pr*ie+Lt*Ee,J[9]=yt*C+Rt*Z+pr*le+Lt*ge,J[10]=yt*R+Rt*X+pr*se+Lt*Me,J[11]=yt*B+Rt*H+pr*te+Lt*Pe,J[12]=Cr*D+Xn*U+Kn*ie+Qn*Ee,J[13]=Cr*C+Xn*Z+Kn*le+Qn*ge,J[14]=Cr*R+Xn*X+Kn*se+Qn*Me,J[15]=Cr*B+Xn*H+Kn*te+Qn*Pe,this._identityCalculated=!1,this}function d(){return this._identityCalculated||(this._identity=!(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._identityCalculated=!0),this._identity}function y(D){for(var C=0;C<16;){if(D.props[C]!==this.props[C])return!1;C+=1}return!0}function v(D){var C;for(C=0;C<16;C+=1)D.props[C]=this.props[C];return D}function b(D){var C;for(C=0;C<16;C+=1)this.props[C]=D[C]}function _(D,C,R){return{x:D*this.props[0]+C*this.props[4]+R*this.props[8]+this.props[12],y:D*this.props[1]+C*this.props[5]+R*this.props[9]+this.props[13],z:D*this.props[2]+C*this.props[6]+R*this.props[10]+this.props[14]}}function S(D,C,R){return D*this.props[0]+C*this.props[4]+R*this.props[8]+this.props[12]}function T(D,C,R){return D*this.props[1]+C*this.props[5]+R*this.props[9]+this.props[13]}function x(D,C,R){return D*this.props[2]+C*this.props[6]+R*this.props[10]+this.props[14]}function w(){var D=this.props[0]*this.props[5]-this.props[1]*this.props[4],C=this.props[5]/D,R=-this.props[1]/D,B=-this.props[4]/D,U=this.props[0]/D,Z=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/D,X=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/D,H=new Matrix;return H.props[0]=C,H.props[1]=R,H.props[4]=B,H.props[5]=U,H.props[12]=Z,H.props[13]=X,H}function M(D){return this.getInverseMatrix().applyToPointArray(D[0],D[1],D[2]||0)}function k(D){var C,R=D.length,B=[];for(C=0;C<R;C+=1)B[C]=M(D[C]);return B}function I(D,C,R){var B=createTypedArray("float32",6);if(this.isIdentity())B[0]=D[0],B[1]=D[1],B[2]=C[0],B[3]=C[1],B[4]=R[0],B[5]=R[1];else{var U=this.props[0],Z=this.props[1],X=this.props[4],H=this.props[5],ie=this.props[12],le=this.props[13];B[0]=D[0]*U+D[1]*X+ie,B[1]=D[0]*Z+D[1]*H+le,B[2]=C[0]*U+C[1]*X+ie,B[3]=C[0]*Z+C[1]*H+le,B[4]=R[0]*U+R[1]*X+ie,B[5]=R[0]*Z+R[1]*H+le}return B}function P(D,C,R){return this.isIdentity()?[D,C,R]:[D*this.props[0]+C*this.props[4]+R*this.props[8]+this.props[12],D*this.props[1]+C*this.props[5]+R*this.props[9]+this.props[13],D*this.props[2]+C*this.props[6]+R*this.props[10]+this.props[14]]}function A(D,C){if(this.isIdentity())return D+","+C;var R=this.props;return Math.round(100*(D*R[0]+C*R[4]+R[12]))/100+","+Math.round(100*(D*R[1]+C*R[5]+R[13]))/100}function E(){for(var D=0,C=this.props,R="matrix3d(";D<16;)R+=i(1e4*C[D])/1e4,R+=D===15?")":",",D+=1;return R}function F(D){return D<1e-6&&D>0||D>-1e-6&&D<0?i(1e4*D)/1e4:D}function $(){var D=this.props;return"matrix("+F(D[0])+","+F(D[1])+","+F(D[4])+","+F(D[5])+","+F(D[12])+","+F(D[13])+")"}return function(){this.reset=n,this.rotate=s,this.rotateX=a,this.rotateY=o,this.rotateZ=l,this.skew=c,this.skewFromAxis=u,this.shear=h,this.scale=f,this.setTransform=p,this.translate=m,this.transform=g,this.applyToPoint=_,this.applyToX=S,this.applyToY=T,this.applyToZ=x,this.applyToPointArray=P,this.applyToTriplePoints=I,this.applyToPointStringified=A,this.toCSS=E,this.to2dCSS=$,this.clone=v,this.cloneFromProps=b,this.equals=y,this.inversePoints=k,this.inversePoint=M,this.getInverseMatrix=w,this._t=this.transform,this.isIdentity=d,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return(_typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){standalone===!0?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return standalone===!0&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if(typeof t=="string")switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return typeof navigator<"u"}function installPlugin(t,e){t==="expressions"&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r<e.length;r+=1){var i=e[r].split("=");if(decodeURIComponent(i[0])==t)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.10.0";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(t){}var ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(r,i){e[r]||(e[r]=i)},t.getModifier=function(r,i,n){return new e[r](i,n)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),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(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,r,i,n){var s=[];e<=1?s.push({s:t,e}):t>=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var a,o,l=[],h=s.length;for(a=0;a<h;a+=1){var c,u;(o=s[a]).e*n<i||o.s*n>i+r||(c=o.s*n<=i?0:(o.s*n-i)/r,u=o.e*n>=i+r?1:(o.e*n-i)/r,l.push([c,u]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e<r;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,r,i,n;if(this._mdf||t){var s=this.o.v%360/360;if(s<0&&(s+=1),(e=this.s.v>1?1+s:this.s.v<0?0+s:this.s.v+s)>(r=this.e.v>1?1+s:this.e.v<0?0+s:this.e.v+s)){var a=e;e=r,r=a}e=1e-4*Math.round(1e4*e),r=1e-4*Math.round(1e4*r),this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var o,l,h,c,u,f=this.shapes.length,p=0;if(r===e)for(n=0;n<f;n+=1)this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf&&(this.shapes[n].pathsData.length=0);else if(r===1&&e===0||r===0&&e===1){if(this._mdf)for(n=0;n<f;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var m,g,d=[];for(n=0;n<f;n+=1)if((m=this.shapes[n]).shape._mdf||this._mdf||t||this.m===2){if(l=(i=m.shape.paths)._length,u=0,!m.shape._mdf&&m.pathsData.length)u=m.totalShapeLength;else{for(h=this.releasePathsData(m.pathsData),o=0;o<l;o+=1)c=bez.getSegmentsLength(i.shapes[o]),h.push(c),u+=c.totalLength;m.totalShapeLength=u,m.pathsData=h}p+=u,m.shape._mdf=!0}else m.shape.paths=m.localShapeCollection;var y,v=e,b=r,_=0;for(n=f-1;n>=0;n-=1)if((m=this.shapes[n]).shape._mdf){for((g=m.localShapeCollection).releaseShapes(),this.m===2&&f>1?(y=this.calculateShapeEdges(e,r,m.totalShapeLength,_,p),_+=m.totalShapeLength):y=[[v,b]],l=y.length,o=0;o<l;o+=1){v=y[o][0],b=y[o][1],d.length=0,b<=1?d.push({s:m.totalShapeLength*v,e:m.totalShapeLength*b}):v>=1?d.push({s:m.totalShapeLength*(v-1),e:m.totalShapeLength*(b-1)}):(d.push({s:m.totalShapeLength*v,e:m.totalShapeLength}),d.push({s:0,e:m.totalShapeLength*(b-1)}));var S=this.addShapes(m,d[0]);if(d[0].s!==d[0].e){if(d.length>1)if(m.shape.paths.shapes[m.shape.paths._length-1].c){var T=S.pop();this.addPaths(S,g),S=this.addShapes(m,d[1],T)}else this.addPaths(S,g),S=this.addShapes(m,d[1]);this.addPaths(S,g)}}m.shape.paths=g}}},TrimModifier.prototype.addPaths=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)e.addShape(t[r])},TrimModifier.prototype.addSegment=function(t,e,r,i,n,s,a){n.setXYAt(e[0],e[1],"o",s),n.setXYAt(r[0],r[1],"i",s+1),a&&n.setXYAt(t[0],t[1],"v",s),n.setXYAt(i[0],i[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,r,i){e.setXYAt(t[1],t[5],"o",r),e.setXYAt(t[2],t[6],"i",r+1),i&&e.setXYAt(t[0],t[4],"v",r),e.setXYAt(t[3],t[7],"v",r+1)},TrimModifier.prototype.addShapes=function(t,e,r){var i,n,s,a,o,l,h,c,u=t.pathsData,f=t.shape.paths.shapes,p=t.shape.paths._length,m=0,g=[],d=!0;for(r?(o=r._length,c=r._length):(r=shapePool.newElement(),o=0,c=0),g.push(r),i=0;i<p;i+=1){for(l=u[i].lengths,r.c=f[i].c,s=f[i].c?l.length:l.length+1,n=1;n<s;n+=1)if(m+(a=l[n-1]).addedLength<e.s)m+=a.addedLength,r.c=!1;else{if(m>e.e){r.c=!1;break}e.s<=m&&e.e>=m+a.addedLength?(this.addSegment(f[i].v[n-1],f[i].o[n-1],f[i].i[n],f[i].v[n],r,o,d),d=!1):(h=bez.getNewSegment(f[i].v[n-1],f[i].v[n],f[i].o[n-1],f[i].i[n],(e.s-m)/a.addedLength,(e.e-m)/a.addedLength,l[n-1]),this.addSegmentFromArray(h,r,o,d),d=!1,r.c=!1),m+=a.addedLength,o+=1}if(f[i].c&&l.length){if(a=l[n-1],m<=e.e){var y=l[n-1].addedLength;e.s<=m&&e.e>=m+y?(this.addSegment(f[i].v[n-1],f[i].o[n-1],f[i].i[0],f[i].v[0],r,o,d),d=!1):(h=bez.getNewSegment(f[i].v[n-1],f[i].v[0],f[i].o[n-1],f[i].i[0],(e.s-m)/y,(e.e-m)/y,l[n-1]),this.addSegmentFromArray(h,r,o,d),d=!1,r.c=!1)}else r.c=!1;m+=a.addedLength,o+=1}if(r._length&&(r.setXYAt(r.v[c][0],r.v[c][1],"i",c),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),m>e.e)break;i<p-1&&(r=shapePool.newElement(),d=!0,g.push(r),o=0)}return g},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var r=e/100,i=[0,0],n=t._length,s=0;for(s=0;s<n;s+=1)i[0]+=t.v[s][0],i[1]+=t.v[s][1];i[0]/=n,i[1]/=n;var a,o,l,h,c,u,f=shapePool.newElement();for(f.c=t.c,s=0;s<n;s+=1)a=t.v[s][0]+(i[0]-t.v[s][0])*r,o=t.v[s][1]+(i[1]-t.v[s][1])*r,l=t.o[s][0]+(i[0]-t.o[s][0])*-r,h=t.o[s][1]+(i[1]-t.o[s][1])*-r,c=t.i[s][0]+(i[0]-t.i[s][0])*-r,u=t.i[s][1]+(i[1]-t.i[s][1])*-r,f.setTripleAt(a,o,l,h,c,u,s);return f},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,r,i,n,s,a,o=this.shapes.length,l=this.amount.v;if(l!==0)for(r=0;r<o;r+=1){if(a=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)a.addShape(this.processPath(e[i],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(r,i,n){if(this.elem=r,this.frameId=-1,this.propType="transform",this.data=i,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||r),i.p&&i.p.s?(this.px=PropertyFactory.getProp(r,i.p.x,0,0,this),this.py=PropertyFactory.getProp(r,i.p.y,0,0,this),i.p.z&&(this.pz=PropertyFactory.getProp(r,i.p.z,0,0,this))):this.p=PropertyFactory.getProp(r,i.p||{k:[0,0,0]},1,0,this),i.rx){if(this.rx=PropertyFactory.getProp(r,i.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(r,i.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(r,i.rz,0,degToRads,this),i.or.k[0].ti){var s,a=i.or.k.length;for(s=0;s<a;s+=1)i.or.k[s].to=null,i.or.k[s].ti=null}this.or=PropertyFactory.getProp(r,i.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(r,i.r||{k:0},0,degToRads,this);i.sk&&(this.sk=PropertyFactory.getProp(r,i.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(r,i.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(r,i.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(r,i.s||{k:[100,100,100]},1,.01,this),i.o?this.o=PropertyFactory.getProp(r,i.o,0,.01,r):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(r){var i=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||i,this.a&&r.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&r.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&r.skewFromAxis(-this.sk.v,this.sa.v),this.r?r.rotate(-this.r.v):r.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?r.translate(this.px.v,this.py.v,-this.pz.v):r.translate(this.px.v,this.py.v,0):r.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(r){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||r){var i;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 n,s;if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(n=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),s=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),s=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(n=this.p.pv,s=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){n=[],s=[];var a=this.px,o=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(n[0]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),n[1]=o.getValueAtTime((o.keyframes[0].t+.01)/i,0),s[0]=a.getValueAtTime(a.keyframes[0].t/i,0),s[1]=o.getValueAtTime(o.keyframes[0].t/i,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(n[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),n[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/i,0),s[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0),s[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/i,0)):(n=[a.pv,o.pv],s[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime),s[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/i,o.offsetTime))}else n=s=t;this.v.rotate(-Math.atan2(n[1]-s[1],n[0]-s[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.a.k&&(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],e),e.prototype.addDynamicProperty=function(r){this._addDynamicProperty(r),this.elem.addDynamicProperty(r),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(r,i,n){return new e(r,i,n)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,r){return t*(1-r)+e*r}function lerpPoint(t,e,r){return[lerp(t[0],e[0],r),lerp(t[1],e[1],r)]}function quadRoots(t,e,r){if(t===0)return[];var i=e*e-4*t*r;if(i<0)return[];var n=-e/(2*t);if(i===0)return[n];var s=Math.sqrt(i)/(2*t);return[n-s,n+s]}function polynomialCoefficients(t,e,r,i){return[3*e-t-3*r+i,3*t-6*e+3*r,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,r,i,n){n&&pointEqual(t,e)&&(e=lerpPoint(t,i,1/3)),n&&pointEqual(r,i)&&(r=lerpPoint(t,i,2/3));var s=polynomialCoefficients(t[0],e[0],r[0],i[0]),a=polynomialCoefficients(t[1],e[1],r[1],i[1]);this.a=[s[0],a[0]],this.b=[s[1],a[1]],this.c=[s[2],a[2]],this.d=[s[3],a[3]],this.points=[t,e,r,i]}function extrema(t,e){var r=t.points[0][e],i=t.points[t.points.length-1][e];if(r>i){var n=i;i=r,r=n}for(var s=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),a=0;a<s.length;a+=1)if(s[a]>0&&s[a]<1){var o=t.point(s[a])[e];o<r?r=o:o>i&&(i=o)}return{min:r,max:i}}function intersectData(t,e,r){var i=t.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:t,t:(e+r)/2,t1:e,t2:r}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,r,i,n,s){if(boxIntersect(t,e))if(r>=s||t.width<=i&&t.height<=i&&e.width<=i&&e.height<=i)n.push([t.t,e.t]);else{var a=splitData(t),o=splitData(e);intersectsImpl(a[0],o[0],r+1,i,n,s),intersectsImpl(a[0],o[1],r+1,i,n,s),intersectsImpl(a[1],o[0],r+1,i,n,s),intersectsImpl(a[1],o[1],r+1,i,n,s)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,r,i){var n=[t[0],t[1],1],s=[e[0],e[1],1],a=[r[0],r[1],1],o=[i[0],i[1],1],l=crossProduct(crossProduct(n,s),crossProduct(a,o));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(t,e,r){return[t[0]+Math.cos(e)*r,t[1]-Math.sin(e)*r]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,r,i,n,s,a){var o=r-Math.PI/2,l=r+Math.PI/2,h=e[0]+Math.cos(r)*i*n,c=e[1]-Math.sin(r)*i*n;t.setTripleAt(h,c,h+Math.cos(o)*s,c-Math.sin(o)*s,h+Math.cos(l)*a,c-Math.sin(l)*a,t.length())}function getPerpendicularVector(t,e){var r=[e[0]-t[0],e[1]-t[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(t,e){var r=e===0?t.length()-1:e-1,i=(e+1)%t.length(),n=getPerpendicularVector(t.v[r],t.v[i]);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(t,e,r,i,n,s,a){var o=getProjectingAngle(e,r),l=e.v[r%e._length],h=e.v[r===0?e._length-1:r-1],c=e.v[(r+1)%e._length],u=s===2?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0,f=s===2?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;setPoint(t,e.v[r%e._length],o,a,i,f/(2*(n+1)),u/(2*(n+1)),s)}function zigZagSegment(t,e,r,i,n,s){for(var a=0;a<i;a+=1){var o=(a+1)/(i+1),l=n===2?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,h=e.normalAngle(o);setPoint(t,e.point(o),h,s,r,l/(2*(i+1)),l/(2*(i+1)),n),s=-s}return s}function linearOffset(t,e,r){var i=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,i,r),polarOffset(e,i,r)]}function offsetSegment(t,e){var r,i,n,s,a,o,l;r=(l=linearOffset(t.points[0],t.points[1],e))[0],i=l[1],n=(l=linearOffset(t.points[1],t.points[2],e))[0],s=l[1],a=(l=linearOffset(t.points[2],t.points[3],e))[0],o=l[1];var h=lineIntersection(r,i,n,s);h===null&&(h=i);var c=lineIntersection(a,o,n,s);return c===null&&(c=a),new PolynomialBezier(r,h,c,o)}function joinLines(t,e,r,i,n){var s=e.points[3],a=r.points[0];if(i===3||pointEqual(s,a))return s;if(i===2){var o=-e.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,h=lineIntersection(s,polarOffset(s,o+Math.PI/2,100),a,polarOffset(a,o+Math.PI/2,100)),c=h?pointDistance(h,s):pointDistance(s,a)/2,u=polarOffset(s,o,2*c*roundCorner);return t.setXYAt(u[0],u[1],"o",t.length()-1),u=polarOffset(a,l,2*c*roundCorner),t.setTripleAt(a[0],a[1],a[0],a[1],u[0],u[1],t.length()),a}var f=lineIntersection(pointEqual(s,e.points[2])?e.points[0]:e.points[2],s,a,pointEqual(a,r.points[1])?r.points[3]:r.points[1]);return f&&pointDistance(f,s)<n?(t.setTripleAt(f[0],f[1],f[0],f[1],f[0],f[1],t.length()),f):s}function getIntersection(t,e){var r=t.intersections(e);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(t,e){var r=t.slice(),i=e.slice(),n=getIntersection(t[t.length-1],e[0]);return n&&(r[t.length-1]=t[t.length-1].split(n[0])[0],i[0]=e[0].split(n[1])[1]),t.length>1&&e.length>1&&(n=getIntersection(t[0],e[e.length-1]))?[[t[0].split(n[0])[0]],[e[e.length-1].split(n[1])[1]]]:[r,i]}function pruneIntersections(t){for(var e,r=1;r<t.length;r+=1)e=pruneSegmentIntersection(t[r-1],t[r]),t[r-1]=e[0],t[r]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var r,i,n,s,a=t.inflectionPoints();if(a.length===0)return[offsetSegment(t,e)];if(a.length===1||floatEqual(a[1],1))return r=(n=t.split(a[0]))[0],i=n[1],[offsetSegment(r,e),offsetSegment(i,e)];r=(n=t.split(a[0]))[0];var o=(a[1]-a[0])/(1-a[0]);return s=(n=n[1].split(o))[0],i=n[1],[offsetSegment(r,e),offsetSegment(s,e),offsetSegment(i,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],r="normal",i="normal",n=e.length,s=0;s<n;s+=1)switch(e[s].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:t.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,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(t,e,r,i,n,s){var a=s?-1:1,o=i.s.v[0]+(1-i.s.v[0])*(1-n),l=i.s.v[1]+(1-i.s.v[1])*(1-n);t.translate(i.p.v[0]*a*n,i.p.v[1]*a*n,i.p.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.rotate(-i.r.v*a*n),e.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(s?1/o:o,s?1/l:l),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(t,e,r,i){for(this.elem=t,this.arr=e,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[r]);r>0;)r-=1,this._elements.unshift(e[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e]._processed=!1,t[e].ty==="gr"&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)t[r]._render=e,t[r].ty==="gr"&&this.changeGroupRender(t[r].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,r,i,n,s,a=!1;if(this._mdf||t){var o,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.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,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(s=0,i=0;i<=this._groups.length-1;i+=1){if(o=s<l,this._groups[i]._render=o,this.changeGroupRender(this._groups[i].it,o),!o){var c=this.elemsData[i].it,u=c[c.length-1];u.transform.op.v!==0?(u.transform.op._mdf=!0,u.transform.op.v=0):u.transform.op._mdf=!1}s+=1}this._currentCopies=l;var f=this.o.v,p=f%1,m=f>0?Math.floor(f):Math.ceil(f),g=this.pMatrix.props,d=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,_=0;if(f>0){for(;_<m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),_+=p)}else if(f<0){for(;_>m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),_-=p)}for(i=this.data.m===1?0:this._currentCopies-1,n=this.data.m===1?1:-1,s=this._currentCopies;s;){if(b=(r=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),_!==0){for((i!==0&&n===1||i!==this._currentCopies-1&&n===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[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(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),v=0;v<b;v+=1)r[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)r[v]=this.matrix.props[v];_+=1,s-=1,i+=n}}else for(s=this._currentCopies,i=0,n=1;s;)r=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,s-=1,i+=n;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var r,i=shapePool.newElement();i.c=t.c;var n,s,a,o,l,h,c,u,f,p,m,g,d=t._length,y=0;for(r=0;r<d;r+=1)n=t.v[r],a=t.o[r],s=t.i[r],n[0]===a[0]&&n[1]===a[1]&&n[0]===s[0]&&n[1]===s[1]?r!==0&&r!==d-1||t.c?(o=r===0?t.v[d-1]:t.v[r-1],h=(l=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)))?Math.min(l/2,e)/l:0,c=m=n[0]+(o[0]-n[0])*h,u=g=n[1]-(n[1]-o[1])*h,f=c-(c-n[0])*roundCorner,p=u-(u-n[1])*roundCorner,i.setTripleAt(c,u,f,p,m,g,y),y+=1,o=r===d-1?t.v[0]:t.v[r+1],h=(l=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)))?Math.min(l/2,e)/l:0,c=f=n[0]+(o[0]-n[0])*h,u=p=n[1]+(o[1]-n[1])*h,m=c-(c-n[0])*roundCorner,g=u-(u-n[1])*roundCorner,i.setTripleAt(c,u,f,p,m,g,y),y+=1):(i.setTripleAt(n[0],n[1],a[0],a[1],s[0],s[1],y),y+=1):(i.setTripleAt(t.v[r][0],t.v[r][1],t.o[r][0],t.o[r][1],t.i[r][0],t.i[r][1],y),y+=1);return i},RoundCornersModifier.prototype.processShapes=function(t){var e,r,i,n,s,a,o=this.shapes.length,l=this.rd.v;if(l!==0)for(r=0;r<o;r+=1){if(a=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)a.addShape(this.processPath(e[i],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,r=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(r<0)return[];var i=Math.sqrt(r);return floatZero(i)?i>0&&i<1?[e]:[]:[e-i,e+i].filter(function(n){return n>0&&n<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),r=lerpPoint(this.points[1],this.points[2],t),i=lerpPoint(this.points[2],this.points[3],t),n=lerpPoint(e,r,t),s=lerpPoint(r,i,t),a=lerpPoint(n,s,t);return[new PolynomialBezier(this.points[0],e,n,a,!0),new PolynomialBezier(a,s,i,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,r){e===void 0&&(e=2),r===void 0&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,i,r),i},PolynomialBezier.shapeSegment=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[r],t.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[r],t.i[r],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0},ZigZagModifier.prototype.processPath=function(t,e,r,i){var n=t._length,s=shapePool.newElement();if(s.c=t.c,t.c||(n-=1),n===0)return s;var a=-1,o=PolynomialBezier.shapeSegment(t,0);zigZagCorner(s,t,0,e,r,i,a);for(var l=0;l<n;l+=1)a=zigZagSegment(s,o,e,r,i,-a),o=l!==n-1||t.c?PolynomialBezier.shapeSegment(t,(l+1)%n):null,zigZagCorner(s,t,l+1,e,r,i,a);return s},ZigZagModifier.prototype.processShapes=function(t){var e,r,i,n,s,a,o=this.shapes.length,l=this.amplitude.v,h=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(l!==0)for(r=0;r<o;r+=1){if(a=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)a.addShape(this.processPath(e[i],l,h,c));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(t,e,r,i){var n=shapePool.newElement();n.c=t.c;var s,a,o,l=t.length();t.c||(l-=1);var h=[];for(s=0;s<l;s+=1)o=PolynomialBezier.shapeSegment(t,s),h.push(offsetSegmentSplit(o,e));if(!t.c)for(s=l-1;s>=0;s-=1)o=PolynomialBezier.shapeSegmentInverted(t,s),h.push(offsetSegmentSplit(o,e));h=pruneIntersections(h);var c=null,u=null;for(s=0;s<h.length;s+=1){var f=h[s];for(u&&(c=joinLines(n,u,f[0],r,i)),u=f[f.length-1],a=0;a<f.length;a+=1)o=f[a],c&&pointEqual(o.points[0],c)?n.setXYAt(o.points[1][0],o.points[1][1],"o",n.length()-1):n.setTripleAt(o.points[0][0],o.points[0][1],o.points[1][0],o.points[1][1],o.points[0][0],o.points[0][1],n.length()),n.setTripleAt(o.points[3][0],o.points[3][1],o.points[3][0],o.points[3][1],o.points[2][0],o.points[2][1],n.length()),c=o.points[3]}return h.length&&joinLines(n,u,h[0][0],r,i),n},OffsetPathModifier.prototype.processShapes=function(t){var e,r,i,n,s,a,o=this.shapes.length,l=this.amount.v,h=this.miterLimit.v,c=this.lineJoin;if(l!==0)for(r=0;r<o;r+=1){if(a=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)a.addShape(this.processPath(e[i],l,c,h));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.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=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],i=[65039,8205];function n(o,l){var h=createTag("span");h.setAttribute("aria-hidden",!0),h.style.fontFamily=l;var c=createTag("span");c.innerText="giItT1WQy@!-/#",h.style.position="absolute",h.style.left="-10000px",h.style.top="-10000px",h.style.fontSize="300px",h.style.fontVariant="normal",h.style.fontStyle="normal",h.style.fontWeight="normal",h.style.letterSpacing="0",h.appendChild(c),document.body.appendChild(h);var u=c.offsetWidth;return c.style.fontFamily=function(f){var p,m=f.split(","),g=m.length,d=[];for(p=0;p<g;p+=1)m[p]!=="sans-serif"&&m[p]!=="monospace"&&d.push(m[p]);return d.join(",")}(o)+", "+l,{node:c,w:u,parent:h}}function s(o,l){var h,c=document.body&&l?"svg":"canvas",u=getFontProperties(o);if(c==="svg"){var f=createNS("text");f.style.fontSize="100px",f.setAttribute("font-family",o.fFamily),f.setAttribute("font-style",u.style),f.setAttribute("font-weight",u.weight),f.textContent="1",o.fClass?(f.style.fontFamily="inherit",f.setAttribute("class",o.fClass)):f.style.fontFamily=o.fFamily,l.appendChild(f),h=f}else{var p=new OffscreenCanvas(500,500).getContext("2d");p.font=u.style+" "+u.weight+" 100px "+o.fFamily,h=p}return{measureText:function(m){return c==="svg"?(h.textContent=m,h.getComputedTextLength()):h.measureText(m).width}}}var a=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)};return a.isModifier=function(o,l){var h=o.toString(16)+l.toString(16);return r.indexOf(h)!==-1},a.isZeroWidthJoiner=function(o,l){return l?o===i[0]&&l===i[1]:o===i[1]},a.isCombinedCharacter=function(o){return e.indexOf(o)!==-1},a.prototype={addChars:function(o){if(o){var l;this.chars||(this.chars=[]);var h,c,u=o.length,f=this.chars.length;for(l=0;l<u;l+=1){for(h=0,c=!1;h<f;)this.chars[h].style===o[l].style&&this.chars[h].fFamily===o[l].fFamily&&this.chars[h].ch===o[l].ch&&(c=!0),h+=1;c||(this.chars.push(o[l]),f+=1)}}},addFonts:function(o,l){if(o){if(this.chars)return this.isLoaded=!0,void(this.fonts=o.list);if(!document.body)return this.isLoaded=!0,o.list.forEach(function(b){b.helper=s(b),b.cache={}}),void(this.fonts=o.list);var h,c=o.list,u=c.length,f=u;for(h=0;h<u;h+=1){var p,m,g=!0;if(c[h].loaded=!1,c[h].monoCase=n(c[h].fFamily,"monospace"),c[h].sansCase=n(c[h].fFamily,"sans-serif"),c[h].fPath){if(c[h].fOrigin==="p"||c[h].origin===3){if((p=document.querySelectorAll('style[f-forigin="p"][f-family="'+c[h].fFamily+'"], style[f-origin="3"][f-family="'+c[h].fFamily+'"]')).length>0&&(g=!1),g){var d=createTag("style");d.setAttribute("f-forigin",c[h].fOrigin),d.setAttribute("f-origin",c[h].origin),d.setAttribute("f-family",c[h].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+c[h].fFamily+"; font-style: normal; src: url('"+c[h].fPath+"');}",l.appendChild(d)}}else if(c[h].fOrigin==="g"||c[h].origin===1){for(p=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),m=0;m<p.length;m+=1)p[m].href.indexOf(c[h].fPath)!==-1&&(g=!1);if(g){var y=createTag("link");y.setAttribute("f-forigin",c[h].fOrigin),y.setAttribute("f-origin",c[h].origin),y.type="text/css",y.rel="stylesheet",y.href=c[h].fPath,document.body.appendChild(y)}}else if(c[h].fOrigin==="t"||c[h].origin===2){for(p=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),m=0;m<p.length;m+=1)c[h].fPath===p[m].src&&(g=!1);if(g){var v=createTag("link");v.setAttribute("f-forigin",c[h].fOrigin),v.setAttribute("f-origin",c[h].origin),v.setAttribute("rel","stylesheet"),v.setAttribute("href",c[h].fPath),l.appendChild(v)}}}else c[h].loaded=!0,f-=1;c[h].helper=s(c[h],l),c[h].cache={},this.fonts.push(c[h])}f===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(o,l,h){for(var c=0,u=this.chars.length;c<u;){if(this.chars[c].ch===o&&this.chars[c].style===l&&this.chars[c].fFamily===h)return this.chars[c];c+=1}return(typeof o=="string"&&o.charCodeAt(0)!==13||!o)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",o,l,h)),t},getFontByName:function(o){for(var l=0,h=this.fonts.length;l<h;){if(this.fonts[l].fName===o)return this.fonts[l];l+=1}return this.fonts[0]},measureText:function(o,l,h){var c=this.getFontByName(l),u=o.charCodeAt(0);if(!c.cache[u+1]){var f=c.helper;if(o===" "){var p=f.measureText("|"+o+"|"),m=f.measureText("||");c.cache[u+1]=(p-m)/100}else c.cache[u+1]=f.measureText(o)/100}return c.cache[u+1]*h},checkLoadedFonts:function(){var o,l,h,c=this.fonts.length,u=c;for(o=0;o<c;o+=1)this.fonts[o].loaded?u-=1:this.fonts[o].fOrigin==="n"||this.fonts[o].origin===0?this.fonts[o].loaded=!0:(l=this.fonts[o].monoCase.node,h=this.fonts[o].monoCase.w,l.offsetWidth!==h?(u-=1,this.fonts[o].loaded=!0):(l=this.fonts[o].sansCase.node,h=this.fonts[o].sansCase.w,l.offsetWidth!==h&&(u-=1,this.fonts[o].loaded=!0)),this.fonts[o].loaded&&(this.fonts[o].sansCase.parent.parentNode.removeChild(this.fonts[o].sansCase.parent),this.fonts[o].monoCase.parent.parentNode.removeChild(this.fonts[o].monoCase.parent)));u!==0&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},a}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},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(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{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(t){return blendModeEnums[t]||""}),blendModeEnums;function SliderEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function AngleEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function ColorEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function PointEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function LayerIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function MaskIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function CheckboxEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var r,i=t.ef||[];this.effectElements=[];var n,s=i.length;for(r=0;r<s;r+=1)n=new GroupEffect(i[r],e),this.effectElements.push(n)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,r)}function AudioElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,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=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(t,e,r){this.data=t,this.element=e,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,n,s=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var o,l,h,c,u,f,p=this.masksProperties,m=0,g=[],d=createElementID(),y="clipPath",v="clip-path";for(i=0;i<a;i+=1)if((p[i].mode!=="a"&&p[i].mode!=="n"||p[i].inv||p[i].o.k!==100||p[i].o.x)&&(y="mask",v="mask"),p[i].mode!=="s"&&p[i].mode!=="i"||m!==0?h=null:((h=createNS("rect")).setAttribute("fill","#ffffff"),h.setAttribute("width",this.element.comp.data.w||0),h.setAttribute("height",this.element.comp.data.h||0),g.push(h)),n=createNS("path"),p[i].mode==="n")this.viewData[i]={op:PropertyFactory.getProp(this.element,p[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[i],3),elem:n,lastPath:""},s.appendChild(n);else{var b;if(m+=1,n.setAttribute("fill",p[i].mode==="s"?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),p[i].x.k!==0?(y="mask",v="mask",f=PropertyFactory.getProp(this.element,p[i].x,0,null,this.element),b=createElementID(),(c=createNS("filter")).setAttribute("id",b),(u=createNS("feMorphology")).setAttribute("operator","erode"),u.setAttribute("in","SourceGraphic"),u.setAttribute("radius","0"),c.appendChild(u),s.appendChild(c),n.setAttribute("stroke",p[i].mode==="s"?"#000000":"#ffffff")):(u=null,f=null),this.storedData[i]={elem:n,x:f,expan:u,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},p[i].mode==="i"){l=g.length;var _=createNS("g");for(o=0;o<l;o+=1)_.appendChild(g[o]);var S=createNS("mask");S.setAttribute("mask-type","alpha"),S.setAttribute("id",d+"_"+m),S.appendChild(n),s.appendChild(S),_.setAttribute("mask","url("+getLocationHref()+"#"+d+"_"+m+")"),g.length=0,g.push(_)}else g.push(n);p[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,p[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[i],3),invRect:h},this.viewData[i].prop.k||this.drawPath(p[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=createNS(y),a=g.length,i=0;i<a;i+=1)this.maskElement.appendChild(g[i]);m>0&&(this.maskElement.setAttribute("id",d),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+d+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var r;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,n=this.data.ef.length,s=this.data.ef;for(r=0;r<n;r+=1){switch(i=null,s[r].ty){case 0:i=new SliderEffect(s[r],e,this);break;case 1:i=new AngleEffect(s[r],e,this);break;case 2:i=new ColorEffect(s[r],e,this);break;case 3:i=new PointEffect(s[r],e,this);break;case 4:case 7:i=new CheckboxEffect(s[r],e,this);break;case 10:i=new LayerIndexEffect(s[r],e,this);break;case 11:i=new MaskIndexEffect(s[r],e,this);break;case 5:i=new EffectsManager(s[r],e,this);break;default:i=new NoValueEffect(s[r],e,this)}i&&this.effectElements.push(i)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),r=t("effects"),i=t("shape"),n=t("text"),s=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),this.data.ty===0||this.data.xt?this.compInterface=s(this):this.data.ty===4?(this.layerInterface.shapeInterface=i(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=n(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,r){this.globalData=e,this.comp=r,this.data=t,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(t,e){var r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)(e||this._isParent&&this.dynamicProperties[r].propType==="transform")&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t)}},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 t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}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(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*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(t){var e,r,i=this.layers.length;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(r=this.layers[e]).ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var r,i=t.length,n=this.layers.length;for(e=0;e<i;e+=1)for(r=0;r<n;){if(this.layers[r].id===t[e].id){this.layers[r]=t[e];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,r){for(var i=this.elements,n=this.layers,s=0,a=n.length;s<a;)n[s].ind==e&&(i[s]&&i[s]!==!0?(r.push(i[s]),i[s].setAsParent(),n[s].parent!==void 0?this.buildElementParenting(t,n[s].parent,r):t.setHierarchy(r)):(this.buildItem(s),this.addPendingElement(t))),s+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,r=t.length;for(e=0;e<r;e+=1)if(t[e].xt){var i=this.createComp(t[e]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementByPath=function(t){var e,r=t.shift();if(typeof r=="number")e=this.elements[r];else{var i,n=this.elements.length;for(i=0;i<n;i+=1)if(this.elements[i].data.nm===r){e=this.elements[i];break}}return t.length===0?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),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=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},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 t,e=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(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),r=0;r<i;r+=1)t=this.hierarchy[r].finalTransform.mProp.v.props,e.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])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var r,i=!0,n=this.comp;i;)n.finalTransform?(n.data.hasMask&&e.splice(0,0,n.finalTransform),n=n.comp):i=!1;var s,a=e.length;for(r=0;r<a;r+=1)s=e[r].mat.applyToPointArray(0,0,0),t=[t[0]-s[0],t[1]-s[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,r=this.element.finalTransform.mat,i=this.masksProperties.length;for(e=0;e<i;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),this.masksProperties[e].mode!=="n"&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var n=this.storedData[e].expan;this.storedData[e].x.v<0?(this.storedData[e].lastOperator!=="erode"&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),n.setAttribute("radius",-this.storedData[e].x.v)):(this.storedData[e].lastOperator!=="dilate"&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,r){var i,n,s=" M"+e.v[0][0]+","+e.v[0][1];for(n=e._length,i=1;i<n;i+=1)s+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[i][0]+","+e.i[i][1]+" "+e.v[i][0]+","+e.v[i][1];if(e.c&&n>1&&(s+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==s){var a="";r.elem&&(e.c&&(a=t.inv?this.solidPath+s:s),r.elem.setAttribute("d",a)),r.lastPath=s}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={};return t.createFilter=function(e,r){var i=createNS("filter");return i.setAttribute("id",e),r!==!0&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},t.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},t}(),featureSupport=function(){var t={maskType:!0};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))&&(t.maskType=!1),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,r,i="SourceGraphic",n=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),o=0;for(this.filters=[],e=0;e<n;e+=1){r=null;var l=t.data.ef[e].ty;registeredEffects[l]&&(r=new registeredEffects[l].effect(a,t.effectsManager.effectElements[e],t,idPrefix+o,i),i=idPrefix+o,registeredEffects[l].countsAsEffect&&(o+=1)),r&&this.filters.push(r)}o&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e,r){registeredEffects[t]={effect:e,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},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 t=null;if(this.data.td){this.matteMasks={};var e=createNS("symbol");e.setAttribute("id",this.layerId);var r=createNS("g");r.appendChild(this.layerElement),e.appendChild(r),t=r,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=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),this.data.ty===0&&!this.data.hd){var i=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var s=createElementID();if(i.setAttribute("id",s),i.appendChild(n),this.globalData.defs.appendChild(i),this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),a.appendChild(this.layerElement),this.transformedElement=a,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},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)},getMatte:function(t){if(!this.matteMasks[t]){var e,r,i,n,s=this.layerId+"_"+t;if(t===1||t===3){var a=createNS("mask");a.setAttribute("id",s),a.setAttribute("mask-type",t===3?"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||t!==1||(a.setAttribute("mask-type","luminance"),e=createElementID(),r=filtersFactory.createFilter(e),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(i),a.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(t===2){var o=createNS("mask");o.setAttribute("id",s),o.setAttribute("mask-type","alpha");var l=createNS("g");o.appendChild(l),e=createElementID(),r=filtersFactory.createFilter(e);var h=createNS("feComponentTransfer");h.setAttribute("in","SourceGraphic"),r.appendChild(h);var c=createNS("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),h.appendChild(c),this.globalData.defs.appendChild(r);var u=createNS("rect");u.setAttribute("width",this.comp.data.w),u.setAttribute("height",this.comp.data.h),u.setAttribute("x","0"),u.setAttribute("y","0"),u.setAttribute("fill","#ffffff"),u.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),l.appendChild(u),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(i),featureSupport.maskType||(o.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),l.appendChild(u),n.appendChild(this.layerElement),l.appendChild(n)),this.globalData.defs.appendChild(o)}this.matteMasks[t]=s}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,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.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,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 t=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",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,r=this.shapeModifiers.length;for(e=0;e<r;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,r=0,i=e.length;r<i;){if(e[r].elem===t)return e[r].pos;r+=1}return 0},addProcessedElement:function(t,e){for(var r=this.processedElements,i=r.length;i;)if(r[i-=1].elem===t)return void(r[i].pos=e);r.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,r){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=r,this.lvl=e,this._isAnimated=!!r.k;for(var i=0,n=t.length;i<n;){if(t[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=t.hd===!0,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,r,i){var n;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var s,a=e.length||0;for(n=0;n<a;n+=1)s=PropertyFactory.getProp(t,e[n].v,0,0,this),this.k=s.k||this.k,this.dataProps[n]={n:e[n].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r}function SVGNoStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(t,e,r){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var i=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.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(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,r)}function SVGGradientStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,r){this.transform={mProps:t,op:e,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(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,r=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),e=0;e<r;e+=1)this.dataProps[e].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var r=0,i=this.o.length/2;r<i;){if(Math.abs(t[4*r]-t[4*e+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 t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,r,i,n=4*this.data.p;for(e=0;e<n;e+=1)r=e%4==0?100:255,i=Math.round(this.prop.v[e]*r),this.c[e]!==i&&(this.c[e]=i,this._cmdf=!t);if(this.o.length)for(n=this.prop.v.length,e=4*this.data.p;e<n;e+=1)r=e%2==0?100:1,i=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==i&&(this.o[e-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,r){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,e),this.setGradientOpacity(e,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var r=createElementID(),i=createNS(e.t===1?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var n,s,a,o=[];for(a=4*e.g.p,s=0;s<a;s+=4)n=createNS("stop"),i.appendChild(n),o.push(n);t.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,n,s=createNS("mask"),a=createNS("path");s.appendChild(a);var o=createElementID(),l=createElementID();s.setAttribute("id",l);var h=createNS(t.t===1?"linearGradient":"radialGradient");h.setAttribute("id",o),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),n=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var c=this.stops;for(i=4*t.g.p;i<n;i+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(r),c.push(r);a.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),t.ty==="gs"&&(a.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),t.lj===1&&a.setAttribute("stroke-miterlimit",t.ml)),this.of=h,this.ms=s,this.ost=c,this.maskId=l,e.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,r,i){if(e===0)return"";var n,s=t.o,a=t.i,o=t.v,l=" M"+i.applyToPointStringified(o[0][0],o[0][1]);for(n=1;n<e;n+=1)l+=" C"+i.applyToPointStringified(s[n-1][0],s[n-1][1])+" "+i.applyToPointStringified(a[n][0],a[n][1])+" "+i.applyToPointStringified(o[n][0],o[n][1]);return r&&e&&(l+=" C"+i.applyToPointStringified(s[n-1][0],s[n-1][1])+" "+i.applyToPointStringified(a[0][0],a[0][1])+" "+i.applyToPointStringified(o[0][0],o[0][1]),l+="z"),l},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function r(h,c,u){(u||c.transform.op._mdf)&&c.transform.container.setAttribute("opacity",c.transform.op.v),(u||c.transform.mProps._mdf)&&c.transform.container.setAttribute("transform",c.transform.mProps.v.to2dCSS())}function i(){}function n(h,c,u){var f,p,m,g,d,y,v,b,_,S,T,x=c.styles.length,w=c.lvl;for(y=0;y<x;y+=1){if(g=c.sh._mdf||u,c.styles[y].lvl<w){for(b=e.reset(),S=w-c.styles[y].lvl,T=c.transformers.length-1;!g&&S>0;)g=c.transformers[T].mProps._mdf||g,S-=1,T-=1;if(g)for(S=w-c.styles[y].lvl,T=c.transformers.length-1;S>0;)_=c.transformers[T].mProps.v.props,b.transform(_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],_[9],_[10],_[11],_[12],_[13],_[14],_[15]),S-=1,T-=1}else b=t;if(p=(v=c.sh.paths)._length,g){for(m="",f=0;f<p;f+=1)(d=v.shapes[f])&&d._length&&(m+=buildShapeString(d,d._length,d.c,b));c.caches[y]=m}else m=c.caches[y];c.styles[y].d+=h.hd===!0?"":m,c.styles[y]._mdf=g||c.styles[y]._mdf}}function s(h,c,u){var f=c.style;(c.c._mdf||u)&&f.pElem.setAttribute("fill","rgb("+bmFloor(c.c.v[0])+","+bmFloor(c.c.v[1])+","+bmFloor(c.c.v[2])+")"),(c.o._mdf||u)&&f.pElem.setAttribute("fill-opacity",c.o.v)}function a(h,c,u){o(h,c,u),l(h,c,u)}function o(h,c,u){var f,p,m,g,d,y=c.gf,v=c.g._hasOpacity,b=c.s.v,_=c.e.v;if(c.o._mdf||u){var S=h.ty==="gf"?"fill-opacity":"stroke-opacity";c.style.pElem.setAttribute(S,c.o.v)}if(c.s._mdf||u){var T=h.t===1?"x1":"cx",x=T==="x1"?"y1":"cy";y.setAttribute(T,b[0]),y.setAttribute(x,b[1]),v&&!c.g._collapsable&&(c.of.setAttribute(T,b[0]),c.of.setAttribute(x,b[1]))}if(c.g._cmdf||u){f=c.cst;var w=c.g.c;for(m=f.length,p=0;p<m;p+=1)(g=f[p]).setAttribute("offset",w[4*p]+"%"),g.setAttribute("stop-color","rgb("+w[4*p+1]+","+w[4*p+2]+","+w[4*p+3]+")")}if(v&&(c.g._omdf||u)){var M=c.g.o;for(m=(f=c.g._collapsable?c.cst:c.ost).length,p=0;p<m;p+=1)g=f[p],c.g._collapsable||g.setAttribute("offset",M[2*p]+"%"),g.setAttribute("stop-opacity",M[2*p+1])}if(h.t===1)(c.e._mdf||u)&&(y.setAttribute("x2",_[0]),y.setAttribute("y2",_[1]),v&&!c.g._collapsable&&(c.of.setAttribute("x2",_[0]),c.of.setAttribute("y2",_[1])));else if((c.s._mdf||c.e._mdf||u)&&(d=Math.sqrt(Math.pow(b[0]-_[0],2)+Math.pow(b[1]-_[1],2)),y.setAttribute("r",d),v&&!c.g._collapsable&&c.of.setAttribute("r",d)),c.e._mdf||c.h._mdf||c.a._mdf||u){d||(d=Math.sqrt(Math.pow(b[0]-_[0],2)+Math.pow(b[1]-_[1],2)));var k=Math.atan2(_[1]-b[1],_[0]-b[0]),I=c.h.v;I>=1?I=.99:I<=-1&&(I=-.99);var P=d*I,A=Math.cos(k+c.a.v)*P+b[0],E=Math.sin(k+c.a.v)*P+b[1];y.setAttribute("fx",A),y.setAttribute("fy",E),v&&!c.g._collapsable&&(c.of.setAttribute("fx",A),c.of.setAttribute("fy",E))}}function l(h,c,u){var f=c.style,p=c.d;p&&(p._mdf||u)&&p.dashStr&&(f.pElem.setAttribute("stroke-dasharray",p.dashStr),f.pElem.setAttribute("stroke-dashoffset",p.dashoffset[0])),c.c&&(c.c._mdf||u)&&f.pElem.setAttribute("stroke","rgb("+bmFloor(c.c.v[0])+","+bmFloor(c.c.v[1])+","+bmFloor(c.c.v[2])+")"),(c.o._mdf||u)&&f.pElem.setAttribute("stroke-opacity",c.o.v),(c.w._mdf||u)&&(f.pElem.setAttribute("stroke-width",c.w.v),f.msElem&&f.msElem.setAttribute("stroke-width",c.w.v))}return{createRenderFunction:function(h){switch(h.ty){case"fl":return s;case"gf":return o;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return n;case"tr":return r;case"no":return i;default:return null}}}}();function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),this.prevViewData=[]}function LetterProps(t,e,r,i,n,s){this.o=t,this.sw=e,this.sc=r,this.fc=i,this.m=n,this.p=s,this._mdf={o:!0,sw:!!e,sc:!!r,fc:!!i,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,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 t,e,r,i,n=this.shapes.length,s=this.stylesList.length,a=[],o=!1;for(r=0;r<s;r+=1){for(i=this.stylesList[r],o=!1,a.length=0,t=0;t<n;t+=1)(e=this.shapes[t]).styles.indexOf(i)!==-1&&(a.push(e),o=e._isAnimated||o);a.length>1&&o&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var r,i=new SVGStyleData(t,e),n=i.pElem;return t.ty==="st"?r=new SVGStrokeStyleData(this,t,i):t.ty==="fl"?r=new SVGFillStyleData(this,t,i):t.ty==="gf"||t.ty==="gs"?(r=new(t.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),n.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):t.ty==="no"&&(r=new SVGNoStyleData(this,t,i)),t.ty!=="st"&&t.ty!=="gs"||(n.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),n.setAttribute("fill-opacity","0"),t.lj===1&&n.setAttribute("stroke-miterlimit",t.ml)),t.r===2&&n.setAttribute("fill-rule","evenodd"),t.ln&&n.setAttribute("id",t.ln),t.cl&&n.setAttribute("class",t.cl),t.bm&&(n.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(i),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var r=TransformPropertyFactory.getTransformProperty(this,t,this),i=new SVGTransformData(r,r.o,e);return this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createShapeElement=function(t,e,r){var i=4;t.ty==="rc"?i=5:t.ty==="el"?i=6:t.ty==="sr"&&(i=7);var n=new SVGShapeData(e,r,ShapePropertyFactory.getShapeProp(this,t,i,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===e)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,r=t.styles,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||r.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,r,i,n,s,a){var o,l,h,c,u,f,p=[].concat(s),m=t.length-1,g=[],d=[];for(o=m;o>=0;o-=1){if((f=this.searchProcessedElement(t[o]))?e[o]=r[f-1]:t[o]._render=a,t[o].ty==="fl"||t[o].ty==="st"||t[o].ty==="gf"||t[o].ty==="gs"||t[o].ty==="no")f?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],n),t[o]._render&&e[o].style.pElem.parentNode!==i&&i.appendChild(e[o].style.pElem),g.push(e[o].style);else if(t[o].ty==="gr"){if(f)for(h=e[o].it.length,l=0;l<h;l+=1)e[o].prevViewData[l]=e[o].it[l];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,e[o].gr,n+1,p,a),t[o]._render&&e[o].gr.parentNode!==i&&i.appendChild(e[o].gr)}else t[o].ty==="tr"?(f||(e[o]=this.createTransformElement(t[o],i)),c=e[o].transform,p.push(c)):t[o].ty==="sh"||t[o].ty==="rc"||t[o].ty==="el"||t[o].ty==="sr"?(f||(e[o]=this.createShapeElement(t[o],p,n)),this.setElementStyles(e[o])):t[o].ty==="tm"||t[o].ty==="rd"||t[o].ty==="ms"||t[o].ty==="pb"||t[o].ty==="zz"||t[o].ty==="op"?(f?(u=e[o]).closed=!1:((u=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),e[o]=u,this.shapeModifiers.push(u)),d.push(u)):t[o].ty==="rp"&&(f?(u=e[o]).closed=!0:(u=ShapeModifiers.getModifier(t[o].ty),e[o]=u,u.init(this,t,o,e),this.shapeModifiers.push(u),a=!1),d.push(u));this.addProcessedElement(t[o],o+1)}for(m=g.length,o=0;o<m;o+=1)g[o].closed=!0;for(m=d.length,o=0;o<m;o+=1)d[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,r=this.animatedContents.length;for(t=0;t<r;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&e.data!==!0&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,r,i,n,s){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!==t&&(this.o=t,this._mdf.o=!0,a=!0),this.sw!==e&&(this.sw=e,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!==n&&(this.m=n,this._mdf.m=!0,a=!0),!s.length||this.p[0]===s[0]&&this.p[1]===s[1]&&this.p[4]===s[4]&&this.p[5]===s[5]&&this.p[12]===s[12]&&this.p[13]===s[13]||(this.p=s,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,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(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(i=0;i<n;i+=1)s=r!==this.keysIndex?this.effectsSequence[i](s,s.t):this.effectsSequence[i](this.currentData,s.t);e!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,r=0,i=t.length;r<=i-1&&!(r===i-1||t[r+1].t>e);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,r,i=[],n=0,s=t.length,a=!1;n<s;)e=t.charCodeAt(n),FontManager.isCombinedCharacter(e)?i[i.length-1]+=t.charAt(n):e>=55296&&e<=56319?(r=t.charCodeAt(n+1))>=56320&&r<=57343?(a||FontManager.isModifier(e,r)?(i[i.length-1]+=t.substr(n,2),a=!1):i.push(t.substr(n,2)),n+=1):i.push(t.charAt(n)):e>56319?(r=t.charCodeAt(n+1),FontManager.isZeroWidthJoiner(e,r)?(a=!0,i[i.length-1]+=t.substr(n,2),n+=1):i.push(t.charAt(n))):FontManager.isZeroWidthJoiner(e)?(i[i.length-1]+=t.charAt(n),a=!0):i.push(t.charAt(n)),n+=1;return i},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,r,i,n,s,a,o,l=this.elem.globalData.fontManager,h=this.data,c=[],u=0,f=h.m.g,p=0,m=0,g=0,d=[],y=0,v=0,b=l.getFontByName(t.f),_=0,S=getFontProperties(b);t.fWeight=S.weight,t.fStyle=S.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),r=t.finalText.length,t.finalLineHeight=t.lh;var T,x=t.tr/1e3*t.finalSize;if(t.sz)for(var w,M,k=!0,I=t.sz[0],P=t.sz[1];k;){w=0,y=0,r=(M=this.buildFinalText(t.t)).length,x=t.tr/1e3*t.finalSize;var A=-1;for(e=0;e<r;e+=1)T=M[e].charCodeAt(0),i=!1,M[e]===" "?A=e:T!==13&&T!==3||(y=0,i=!0,w+=t.finalLineHeight||1.2*t.finalSize),l.chars?(o=l.getCharData(M[e],b.fStyle,b.fFamily),_=i?0:o.w*t.finalSize/100):_=l.measureText(M[e],t.f,t.finalSize),y+_>I&&M[e]!==" "?(A===-1?r+=1:e=A,w+=t.finalLineHeight||1.2*t.finalSize,M.splice(e,A===e?1:0,"\r"),A=-1,y=0):(y+=_,y+=x);w+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&P<w?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=M,r=t.finalText.length,k=!1)}y=-x,_=0;var E,F=0;for(e=0;e<r;e+=1)if(i=!1,(T=(E=t.finalText[e]).charCodeAt(0))===13||T===3?(F=0,d.push(y),v=y>v?y:v,y=-2*x,n="",i=!0,g+=1):n=E,l.chars?(o=l.getCharData(E,b.fStyle,l.getFontByName(t.f).fFamily),_=i?0:o.w*t.finalSize/100):_=l.measureText(n,t.f,t.finalSize),E===" "?F+=_+x:(y+=_+x+F,F=0),c.push({l:_,an:_,add:p,n:i,anIndexes:[],val:n,line:g,animatorJustifyOffset:0}),f==2){if(p+=_,n===""||n===" "||e===r-1){for(n!==""&&n!==" "||(p-=_);m<=e;)c[m].an=p,c[m].ind=u,c[m].extra=_,m+=1;u+=1,p=0}}else if(f==3){if(p+=_,n===""||e===r-1){for(n===""&&(p-=_);m<=e;)c[m].an=p,c[m].ind=u,c[m].extra=_,m+=1;p=0,u+=1}}else c[u].ind=u,c[u].extra=0,u+=1;if(t.l=c,v=y>v?y:v,d.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=d;var $,D,C,R,B=h.a;a=B.length;var U=[];for(s=0;s<a;s+=1){for(($=B[s]).a.sc&&(t.strokeColorAnim=!0),$.a.sw&&(t.strokeWidthAnim=!0),($.a.fc||$.a.fh||$.a.fs||$.a.fb)&&(t.fillColorAnim=!0),R=0,C=$.s.b,e=0;e<r;e+=1)(D=c[e]).anIndexes[s]=R,(C==1&&D.val!==""||C==2&&D.val!==""&&D.val!==" "||C==3&&(D.n||D.val==" "||e==r-1)||C==4&&(D.n||e==r-1))&&($.s.rn===1&&U.push(R),R+=1);h.a[s].s.totalChars=R;var Z,X=-1;if($.s.rn===1)for(e=0;e<r;e+=1)X!=(D=c[e]).anIndexes[s]&&(X=D.anIndexes[s],Z=U.splice(Math.floor(Math.random()*U.length),1)[0]),D.anIndexes[s]=Z}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=e===void 0?this.keysIndex:e;var r=this.copyData({},this.data.d.k[e].s);r=this.copyData(r,t),this.data.d.k[e].s=r,this.recalculate(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,r=Math.floor;function i(n,s){this._currentTextLength=-1,this.k=!1,this.data=s,this.elem=n,this.comp=n.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(n),this.s=PropertyFactory.getProp(n,s.s||{k:0},0,0,this),this.e="e"in s?PropertyFactory.getProp(n,s.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(n,s.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(n,s.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(n,s.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(n,s.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(n,s.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return i.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var s=0,a=0,o=1,l=1;this.ne.v>0?s=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:l=1+this.xe.v/100;var h=BezierFactory.getBezierEasing(s,a,o,l).get,c=0,u=this.finalS,f=this.finalE,p=this.data.sh;if(p===2)c=h(c=f===u?n>=f?1:0:t(0,e(.5/(f-u)+(n-u)/(f-u),1)));else if(p===3)c=h(c=f===u?n>=f?0:1:1-t(0,e(.5/(f-u)+(n-u)/(f-u),1)));else if(p===4)f===u?c=0:(c=t(0,e(.5/(f-u)+(n-u)/(f-u),1)))<.5?c*=2:c=1-2*(c-.5),c=h(c);else if(p===5){if(f===u)c=0;else{var m=f-u,g=-m/2+(n=e(t(0,n+.5-u),f-u)),d=m/2;c=Math.sqrt(1-g*g/(d*d))}c=h(c)}else p===6?(f===u?c=0:(n=e(t(0,n+.5-u),f-u),c=(1+Math.cos(Math.PI+2*Math.PI*n/(f-u)))/2),c=h(c)):(n>=r(u)&&(c=t(0,e(n-u<0?e(f,1)-(u-n):f-n,1))),c=h(c));if(this.sm.v!==100){var y=.01*this.sm.v;y===0&&(y=1e-8);var v=.5-.5*y;c<v?c=0:(c=(c-v)/y)>1&&(c=1)}return c*this.a.v},getValue:function(n){this.iterateDynamicProperties(),this._mdf=n||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,n&&this.data.r===2&&(this.e.v=this._currentTextLength);var s=this.data.r===2?1:100/this.data.totalChars,a=this.o.v/s,o=this.s.v/s+a,l=this.e.v/s+a;if(o>l){var h=o;o=l,l=h}this.finalS=o,this.finalE=l}},extendPrototype([DynamicPropertyContainer],i),{getTextSelectorProp:function(n,s,a){return new i(n,s,a)}}}();function TextAnimatorDataProperty(t,e,r){var i={propType:!1},n=PropertyFactory.getProp,s=e.a;this.a={r:s.r?n(t,s.r,0,degToRads,r):i,rx:s.rx?n(t,s.rx,0,degToRads,r):i,ry:s.ry?n(t,s.ry,0,degToRads,r):i,sk:s.sk?n(t,s.sk,0,degToRads,r):i,sa:s.sa?n(t,s.sa,0,degToRads,r):i,s:s.s?n(t,s.s,1,.01,r):i,a:s.a?n(t,s.a,1,0,r):i,o:s.o?n(t,s.o,0,.01,r):i,p:s.p?n(t,s.p,1,0,r):i,sw:s.sw?n(t,s.sw,0,0,r):i,sc:s.sc?n(t,s.sc,1,0,r):i,fc:s.fc?n(t,s.fc,1,0,r):i,fh:s.fh?n(t,s.fh,0,0,r):i,fs:s.fs?n(t,s.fs,0,.01,r):i,fb:s.fb?n(t,s.fb,0,.01,r):i,t:s.t?n(t,s.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,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 t,e,r=this._textData.a.length,i=PropertyFactory.getProp;for(t=0;t<r;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,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(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,i,n,s,a,o,l,h,c,u,f,p,m,g,d,y,v,b,_,S=this._moreOptions.alignment.v,T=this._animatorsData,x=this._textData,w=this.mHelper,M=this._renderType,k=this.renderedLetters.length,I=t.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var P,A=_.v;for(this._pathData.r.v&&(A=A.reverse()),a={tLength:0,segments:[]},s=A._length-1,y=0,n=0;n<s;n+=1)P=bez.buildBezierData(A.v[n],A.v[n+1],[A.o[n][0]-A.v[n][0],A.o[n][1]-A.v[n][1]],[A.i[n+1][0]-A.v[n+1][0],A.i[n+1][1]-A.v[n+1][1]]),a.tLength+=P.segmentLength,a.segments.push(P),y+=P.segmentLength;n=s,_.v.c&&(P=bez.buildBezierData(A.v[n],A.v[0],[A.o[n][0]-A.v[n][0],A.o[n][1]-A.v[n][1]],[A.i[0][0]-A.v[0][0],A.i[0][1]-A.v[0][1]]),a.tLength+=P.segmentLength,a.segments.push(P),y+=P.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,o=this._pathData.f.v,f=0,u=1,h=0,c=!0,g=a.segments,o<0&&_.v.c)for(a.tLength<Math.abs(o)&&(o=-Math.abs(o)%a.tLength),u=(m=g[f=g.length-1].points).length-1;o<0;)o+=m[u].partialLength,(u-=1)<0&&(u=(m=g[f-=1].points).length-1);p=(m=g[f].points)[u-1],d=(l=m[u]).partialLength}s=I.length,r=0,i=0;var E,F,$,D,C,R=1.2*t.finalSize*.714,B=!0;$=T.length;var U,Z,X,H,ie,le,se,te,Ee,ge,Me,Pe,J=-1,Ze=o,Pt=f,At=u,lt=-1,mt="",ht=this.defaultPropsArray;if(t.j===2||t.j===1){var Ve=0,gt=0,yt=t.j===2?-.5:-1,Rt=0,pr=!0;for(n=0;n<s;n+=1)if(I[n].n){for(Ve&&(Ve+=gt);Rt<n;)I[Rt].animatorJustifyOffset=Ve,Rt+=1;Ve=0,pr=!0}else{for(F=0;F<$;F+=1)(E=T[F].a).t.propType&&(pr&&t.j===2&&(gt+=E.t.v*yt),(C=T[F].s.getMult(I[n].anIndexes[F],x.a[F].s.totalChars)).length?Ve+=E.t.v*C[0]*yt:Ve+=E.t.v*C*yt);pr=!1}for(Ve&&(Ve+=gt);Rt<n;)I[Rt].animatorJustifyOffset=Ve,Rt+=1}for(n=0;n<s;n+=1){if(w.reset(),H=1,I[n].n)r=0,i+=t.yOffset,i+=B?1:0,o=Ze,B=!1,this._hasMaskedPath&&(u=At,p=(m=g[f=Pt].points)[u-1],d=(l=m[u]).partialLength,h=0),mt="",Me="",Ee="",Pe="",ht=this.defaultPropsArray;else{if(this._hasMaskedPath){if(lt!==I[n].line){switch(t.j){case 1:o+=y-t.lineWidths[I[n].line];break;case 2:o+=(y-t.lineWidths[I[n].line])/2}lt=I[n].line}J!==I[n].ind&&(I[J]&&(o+=I[J].extra),o+=I[n].an/2,J=I[n].ind),o+=S[0]*I[n].an*.005;var Lt=0;for(F=0;F<$;F+=1)(E=T[F].a).p.propType&&((C=T[F].s.getMult(I[n].anIndexes[F],x.a[F].s.totalChars)).length?Lt+=E.p.v[0]*C[0]:Lt+=E.p.v[0]*C),E.a.propType&&((C=T[F].s.getMult(I[n].anIndexes[F],x.a[F].s.totalChars)).length?Lt+=E.a.v[0]*C[0]:Lt+=E.a.v[0]*C);for(c=!0,this._pathData.a.v&&(o=.5*I[0].an+(y-this._pathData.f.v-.5*I[0].an-.5*I[I.length-1].an)*J/(s-1),o+=this._pathData.f.v);c;)h+d>=o+Lt||!m?(v=(o+Lt-h)/l.partialLength,Z=p.point[0]+(l.point[0]-p.point[0])*v,X=p.point[1]+(l.point[1]-p.point[1])*v,w.translate(-S[0]*I[n].an*.005,-S[1]*R*.01),c=!1):m&&(h+=l.partialLength,(u+=1)>=m.length&&(u=0,g[f+=1]?m=g[f].points:_.v.c?(u=0,m=g[f=0].points):(h-=l.partialLength,m=null)),m&&(p=l,d=(l=m[u]).partialLength));U=I[n].an/2-I[n].add,w.translate(-U,0,0)}else U=I[n].an/2-I[n].add,w.translate(-U,0,0),w.translate(-S[0]*I[n].an*.005,-S[1]*R*.01,0);for(F=0;F<$;F+=1)(E=T[F].a).t.propType&&(C=T[F].s.getMult(I[n].anIndexes[F],x.a[F].s.totalChars),r===0&&t.j===0||(this._hasMaskedPath?C.length?o+=E.t.v*C[0]:o+=E.t.v*C:C.length?r+=E.t.v*C[0]:r+=E.t.v*C));for(t.strokeWidthAnim&&(le=t.sw||0),t.strokeColorAnim&&(ie=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(se=[t.fc[0],t.fc[1],t.fc[2]]),F=0;F<$;F+=1)(E=T[F].a).a.propType&&((C=T[F].s.getMult(I[n].anIndexes[F],x.a[F].s.totalChars)).length?w.translate(-E.a.v[0]*C[0],-E.a.v[1]*C[1],E.a.v[2]*C[2]):w.translate(-E.a.v[0]*C,-E.a.v[1]*C,E.a.v[2]*C));for(F=0;F<$;F+=1)(E=T[F].a).s.propType&&((C=T[F].s.getMult(I[n].anIndexes[F],x.a[F].s.totalChars)).length?w.scale(1+(E.s.v[0]-1)*C[0],1+(E.s.v[1]-1)*C[1],1):w.scale(1+(E.s.v[0]-1)*C,1+(E.s.v[1]-1)*C,1));for(F=0;F<$;F+=1){if(E=T[F].a,C=T[F].s.getMult(I[n].anIndexes[F],x.a[F].s.totalChars),E.sk.propType&&(C.length?w.skewFromAxis(-E.sk.v*C[0],E.sa.v*C[1]):w.skewFromAxis(-E.sk.v*C,E.sa.v*C)),E.r.propType&&(C.length?w.rotateZ(-E.r.v*C[2]):w.rotateZ(-E.r.v*C)),E.ry.propType&&(C.length?w.rotateY(E.ry.v*C[1]):w.rotateY(E.ry.v*C)),E.rx.propType&&(C.length?w.rotateX(E.rx.v*C[0]):w.rotateX(E.rx.v*C)),E.o.propType&&(C.length?H+=(E.o.v*C[0]-H)*C[0]:H+=(E.o.v*C-H)*C),t.strokeWidthAnim&&E.sw.propType&&(C.length?le+=E.sw.v*C[0]:le+=E.sw.v*C),t.strokeColorAnim&&E.sc.propType)for(te=0;te<3;te+=1)C.length?ie[te]+=(E.sc.v[te]-ie[te])*C[0]:ie[te]+=(E.sc.v[te]-ie[te])*C;if(t.fillColorAnim&&t.fc){if(E.fc.propType)for(te=0;te<3;te+=1)C.length?se[te]+=(E.fc.v[te]-se[te])*C[0]:se[te]+=(E.fc.v[te]-se[te])*C;E.fh.propType&&(se=C.length?addHueToRGB(se,E.fh.v*C[0]):addHueToRGB(se,E.fh.v*C)),E.fs.propType&&(se=C.length?addSaturationToRGB(se,E.fs.v*C[0]):addSaturationToRGB(se,E.fs.v*C)),E.fb.propType&&(se=C.length?addBrightnessToRGB(se,E.fb.v*C[0]):addBrightnessToRGB(se,E.fb.v*C))}}for(F=0;F<$;F+=1)(E=T[F].a).p.propType&&(C=T[F].s.getMult(I[n].anIndexes[F],x.a[F].s.totalChars),this._hasMaskedPath?C.length?w.translate(0,E.p.v[1]*C[0],-E.p.v[2]*C[1]):w.translate(0,E.p.v[1]*C,-E.p.v[2]*C):C.length?w.translate(E.p.v[0]*C[0],E.p.v[1]*C[1],-E.p.v[2]*C[2]):w.translate(E.p.v[0]*C,E.p.v[1]*C,-E.p.v[2]*C));if(t.strokeWidthAnim&&(Ee=le<0?0:le),t.strokeColorAnim&&(ge="rgb("+Math.round(255*ie[0])+","+Math.round(255*ie[1])+","+Math.round(255*ie[2])+")"),t.fillColorAnim&&t.fc&&(Me="rgb("+Math.round(255*se[0])+","+Math.round(255*se[1])+","+Math.round(255*se[2])+")"),this._hasMaskedPath){if(w.translate(0,-t.ls),w.translate(0,S[1]*R*.01+i,0),this._pathData.p.v){b=(l.point[1]-p.point[1])/(l.point[0]-p.point[0]);var Cr=180*Math.atan(b)/Math.PI;l.point[0]<p.point[0]&&(Cr+=180),w.rotate(-Cr*Math.PI/180)}w.translate(Z,X,0),o-=S[0]*I[n].an*.005,I[n+1]&&J!==I[n+1].ind&&(o+=I[n].an/2,o+=.001*t.tr*t.finalSize)}else{switch(w.translate(r,i,0),t.ps&&w.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:w.translate(I[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[I[n].line]),0,0);break;case 2:w.translate(I[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[I[n].line])/2,0,0)}w.translate(0,-t.ls),w.translate(U,0,0),w.translate(S[0]*I[n].an*.005,S[1]*R*.01,0),r+=I[n].l+.001*t.tr*t.finalSize}M==="html"?mt=w.toCSS():M==="svg"?mt=w.to2dCSS():ht=[w.props[0],w.props[1],w.props[2],w.props[3],w.props[4],w.props[5],w.props[6],w.props[7],w.props[8],w.props[9],w.props[10],w.props[11],w.props[12],w.props[13],w.props[14],w.props[15]],Pe=H}k<=n?(D=new LetterProps(Pe,Ee,ge,Me,mt,ht),this.renderedLetters.push(D),k+=1,this.lettersChangedFlag=!0):(D=this.renderedLetters[n],this.lettersChangedFlag=D.update(Pe,Ee,ge,Me,mt,ht)||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(t,e,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,r),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){var r,i,n=e.length,s="";for(r=0;r<n;r+=1)e[r].ty==="sh"&&(i=e[r].ks.k,s+=buildShapeString(i,i.i.length,!0,t));return s},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,r,i,n){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r])/2,0,0)}e.translate(i,n,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,r){this.textSpans=[],this.renderType="svg",this.initElement(t,e,r)}function ISolidElement(t,e,r){this.initElement(t,e,r)}function NullElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initFrame(),this.initTransform(t,e,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,r){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(e&&e.title){var i=createNS("title"),n=createElementID();i.setAttribute("id",n),i.textContent=e.title,this.svgElement.appendChild(i),r+=n}if(e&&e.description){var s=createNS("desc"),a=createElementID();s.setAttribute("id",a),s.textContent=e.description,this.svgElement.appendChild(s),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var o=createNS("defs");this.svgElement.appendChild(o);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&e.hideOnTransparent===!1),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var t;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),t=0;t<15;t+=1)this.saved[t]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVEffects(){}function CVMaskElement(t,e){var r;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i=this.masksProperties.length,n=!1;for(r=0;r<i;r+=1)this.masksProperties[r].mode!=="n"&&(n=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=n,n&&this.element.addRenderableComponent(this)}function CVBaseElement(){}function CVShapeData(t,e,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var n,s=4;e.ty==="rc"?s=5:e.ty==="el"?s=6:e.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,s,t);var a,o=r.length;for(n=0;n<o;n+=1)r[n].closed||(a={transforms:i.addTransformSequence(r[n].transforms),trNodes:[]},this.styledShapes.push(a),r[n].elements.push(a))}function CVShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,r)}function CVTextElement(t,e,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(t,e,r)}function CVImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,r)}function CVSolidElement(t,e,r){this.initElement(t,e,r)}function CanvasRendererBase(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||e.clearCanvas===void 0||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.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"}function CVCompElement(t,e,r){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||e.clearCanvas===void 0||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.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"}function HBaseElement(){}function HSolidElement(t,e,r){this.initElement(t,e,r)}function HShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,r)}function HCameraElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,t.pe,0,0,this),t.ks.p.s?(this.px=i(this,t.ks.p.x,1,0,this),this.py=i(this,t.ks.p.y,1,0,this),this.pz=i(this,t.ks.p.z,1,0,this)):this.p=i(this,t.ks.p,1,0,this),t.ks.a&&(this.a=i(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var n,s=t.ks.or.k.length;for(n=0;n<s;n+=1)t.ks.or.k[n].to=null,t.ks.or.k[n].ti=null}this.or=i(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,t.ks.rx,0,degToRads,this),this.ry=i(this,t.ks.ry,0,degToRads,this),this.rz=i(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&e.hideOnTransparent===!1),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.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(t,e,r){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&e.hideOnTransparent===!1),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||e.runExpressions===void 0||e.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"}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(t){for(var e=0,r=t.length,i=[],n="";e<r;)t[e]==="\r"||t[e]===""?(i.push(n),n=""):n+=t[e],e+=1;return i.push(n),i},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var r=t.shapes[0];if(r.it){var i=r.it[r.it.length-1];i.s&&(i.s.k[0]=e,i.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;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 n=r.fWeight,s=r.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",r.t);var a,o=r.l||[],l=!!this.globalData.fontManager.chars;e=o.length;var h=this.mHelper,c=this.data.singleShape,u=0,f=0,p=!0,m=.001*r.tr*r.finalSize;if(!c||l||r.sz){var g,d=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!l||!c||t===0){if(a=d>t?this.textSpans[t].span:createNS(l?"g":"text"),d<=t){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=a,l){var y=createNS("g");a.appendChild(y),this.textSpans[t].childSpan=y}this.textSpans[t].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(h.reset(),c&&(o[t].n&&(u=-m,f+=r.yOffset,f+=p?1:0,p=!1),this.applyTextPropertiesToMatrix(r,h,o[t].line,u,f),u+=o[t].l||0,u+=m),l){var v;if((g=this.globalData.fontManager.getCharData(r.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t===1)v=new SVGCompElement(g.data,this.globalData,this);else{var b=emptyShapeData;g.data&&g.data.shapes&&(b=this.buildShapeData(g.data,r.finalSize)),v=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[t].glyph){var _=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[t].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[t].childSpan.appendChild(v.layerElement),g.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else c&&a.setAttribute("transform","translate("+h.props[12]+","+h.props[13]+")"),a.textContent=o[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&a&&a.setAttribute("d","")}else{var S=this.textContainer,T="start";switch(r.j){case 1:T="end";break;case 2:T="middle";break;default:T="start"}S.setAttribute("text-anchor",T),S.setAttribute("letter-spacing",m);var x=this.buildTextContents(r.finalText);for(e=x.length,f=r.ps?r.ps[1]+r.ascent:0,t=0;t<e;t+=1)(a=this.textSpans[t].span||createNS("tspan")).textContent=x[t],a.setAttribute("x",0),a.setAttribute("y",f),a.style.display="inherit",S.appendChild(a),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=a,f+=r.finalLineHeight;this.layerElement.appendChild(S)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=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 t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<r;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var r,i,n,s=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(e=a.length,t=0;t<e;t+=1)a[t].n||(r=s[t],i=this.textSpans[t].span,(n=this.textSpans[t].glyph)&&n.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 t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!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(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){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 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.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),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",t.w),i.setAttribute("height",t.h),i.setAttribute("x",0),i.setAttribute("y",0);var n=createElementID();r.setAttribute("id",n),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),e.appendChild(r),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,r=this.layers.length;for(e=0;e<r;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&this.layers[t].ty!==99){e[t]=!0;var r=this.createItem(this.layers[t]);if(e[t]=r,getExpressionsPlugin()&&(this.layers[t].ty===0&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),this.layers[t].tt){var i="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(i===-1)return;if(this.elements[i]&&this.elements[i]!==!0){var n=e[i].getMatte(this.layers[t].tt);r.setMatte(n)}else this.buildItem(i),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,r=this.elements.length;e<r;){if(this.elements[e]===t){var i="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,n=this.elements[i].getMatte(this.layers[e].tt);t.setMatte(n);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;t===null?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=r-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){for(var i,n=0;n<e;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement()&&(i=this.elements[n].getBaseElement()),n+=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(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}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 t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=this.savedOp;this.savedOp=createTypedArray("float32",t),this.savedOp.set(e);var r=0;for(r=this._length;r<t;r+=1)this.saved[r]=createTypedArray("float32",16);this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,r=t.length,i="_";for(e=0;e<r;e+=1)i+=t[e].transform.key+"_";var n=this.sequences[i];return n||(n={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=n,this.sequenceList.push(n)),n},processSequence:function(t,e){for(var r,i=0,n=t.transforms.length,s=e;i<n&&!e;){if(t.transforms[i].transform.mProps._mdf){s=!0;break}i+=1}if(s)for(t.finalTransform.reset(),i=n-1;i>=0;i-=1)r=t.transforms[i].transform.mProps.v.props,t.finalTransform.transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]);t._mdf=s},processSequences:function(t){var e,r=this.sequenceList.length;for(e=0;e<r;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,r,i,n=this.element.finalTransform.mat,s=this.element.canvasContext,a=this.masksProperties.length;for(s.beginPath(),t=0;t<a;t+=1)if(this.masksProperties[t].mode!=="n"){var o;this.masksProperties[t].inv&&(s.moveTo(0,0),s.lineTo(this.element.globalData.compSize.w,0),s.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),s.lineTo(0,this.element.globalData.compSize.h),s.lineTo(0,0)),i=this.viewData[t].v,e=n.applyToPointArray(i.v[0][0],i.v[0][1],0),s.moveTo(e[0],e[1]);var l=i._length;for(o=1;o<l;o+=1)r=n.applyToTriplePoints(i.o[o-1],i.i[o],i.v[o]),s.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=n.applyToTriplePoints(i.o[o-1],i.i[0],i.v[0]),s.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),s.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},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)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var t=this.data.ty===0;this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(t),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(t,e){var r={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:t.hd===!0},i={};if(t.ty==="fl"||t.ty==="st"?(i.c=PropertyFactory.getProp(this,t.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])+")")):t.ty!=="gf"&&t.ty!=="gs"||(i.s=PropertyFactory.getProp(this,t.s,1,null,this),i.e=PropertyFactory.getProp(this,t.e,1,null,this),i.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,t.g,this)),i.o=PropertyFactory.getProp(this,t.o,0,.01,this),t.ty==="st"||t.ty==="gs"){if(r.lc=lineCapEnum[t.lc||2],r.lj=lineJoinEnum[t.lj||2],t.lj==1&&(r.ml=t.ml),i.w=PropertyFactory.getProp(this,t.w,0,null,this),i.w.k||(r.wi=i.w.v),t.d){var n=new DashProperty(this,t.d,"canvas",this);i.d=n,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0])}}else r.r=t.r===2?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,r,i,n){var s,a,o,l,h,c,u=t.length-1,f=[],p=[],m=[].concat(n);for(s=u;s>=0;s-=1){if((l=this.searchProcessedElement(t[s]))?e[s]=r[l-1]:t[s]._shouldRender=i,t[s].ty==="fl"||t[s].ty==="st"||t[s].ty==="gf"||t[s].ty==="gs")l?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],m),f.push(e[s].style);else if(t[s].ty==="gr"){if(l)for(o=e[s].it.length,a=0;a<o;a+=1)e[s].prevViewData[a]=e[s].it[a];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,i,m)}else t[s].ty==="tr"?(l||(c=this.createTransformElement(t[s]),e[s]=c),m.push(e[s]),this.addTransformToStyleList(e[s])):t[s].ty==="sh"||t[s].ty==="rc"||t[s].ty==="el"||t[s].ty==="sr"?l||(e[s]=this.createShapeElement(t[s])):t[s].ty==="tm"||t[s].ty==="rd"||t[s].ty==="pb"||t[s].ty==="zz"||t[s].ty==="op"?(l?(h=e[s]).closed=!1:((h=ShapeModifiers.getModifier(t[s].ty)).init(this,t[s]),e[s]=h,this.shapeModifiers.push(h)),p.push(h)):t[s].ty==="rp"&&(l?(h=e[s]).closed=!0:(h=ShapeModifiers.getModifier(t[s].ty),e[s]=h,h.init(this,t,s,e),this.shapeModifiers.push(h),i=!1),p.push(h));this.addProcessedElement(t[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(f),u=p.length,s=0;s<u;s+=1)p[s].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(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,r,i,n,s,a,o,l,h=this.stylesList.length,c=this.globalData.renderer,u=this.globalData.canvasContext;for(t=0;t<h;t+=1)if(((o=(l=this.stylesList[t]).type)!=="st"&&o!=="gs"||l.wi!==0)&&l.data._shouldRender&&l.coOp!==0&&this.globalData.currentGlobalAlpha!==0){for(c.save(),s=l.elements,o==="st"||o==="gs"?(u.strokeStyle=o==="st"?l.co:l.grd,u.lineWidth=l.wi,u.lineCap=l.lc,u.lineJoin=l.lj,u.miterLimit=l.ml||0):u.fillStyle=o==="fl"?l.co:l.grd,c.ctxOpacity(l.coOp),o!=="st"&&o!=="gs"&&u.beginPath(),c.ctxTransform(l.preTransforms.finalTransform.props),r=s.length,e=0;e<r;e+=1){for(o!=="st"&&o!=="gs"||(u.beginPath(),l.da&&(u.setLineDash(l.da),u.lineDashOffset=l.do)),n=(a=s[e].trNodes).length,i=0;i<n;i+=1)a[i].t==="m"?u.moveTo(a[i].p[0],a[i].p[1]):a[i].t==="c"?u.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]):u.closePath();o!=="st"&&o!=="gs"||(u.stroke(),l.da&&u.setLineDash(this.dashResetter))}o!=="st"&&o!=="gs"&&u.fill(l.r),c.restore()}},CVShapeElement.prototype.renderShape=function(t,e,r,i){var n,s;for(s=t,n=e.length-1;n>=0;n-=1)e[n].ty==="tr"?(s=r[n].transform,this.renderShapeTransform(t,s)):e[n].ty==="sh"||e[n].ty==="el"||e[n].ty==="rc"||e[n].ty==="sr"?this.renderPath(e[n],r[n]):e[n].ty==="fl"?this.renderFill(e[n],r[n],s):e[n].ty==="st"?this.renderStroke(e[n],r[n],s):e[n].ty==="gf"||e[n].ty==="gs"?this.renderGradientFill(e[n],r[n],s):e[n].ty==="gr"?this.renderShape(s,e[n].it,r[n].it):e[n].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r,i,n,s=t.trNodes,a=e.paths,o=a._length;s.length=0;var l=t.transforms.finalTransform;for(n=0;n<o;n+=1){var h=a.shapes[n];if(h&&h.v){for(i=h._length,r=1;r<i;r+=1)r===1&&s.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),s.push({t:"c",pts:l.applyToTriplePoints(h.o[r-1],h.i[r],h.v[r])});i===1&&s.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),h.c&&i&&(s.push({t:"c",pts:l.applyToTriplePoints(h.o[r-1],h.i[0],h.v[0])}),s.push({t:"z"}))}}t.trNodes=s}},CVShapeElement.prototype.renderPath=function(t,e){if(t.hd!==!0&&t._shouldRender){var r,i=e.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(e.styledShapes[r],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,r){var i=e.style;(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,r){var i,n=e.style;if(!n.grd||e.g._mdf||e.s._mdf||e.e._mdf||t.t!==1&&(e.h._mdf||e.a._mdf)){var s,a=this.globalData.canvasContext,o=e.s.v,l=e.e.v;if(t.t===1)i=a.createLinearGradient(o[0],o[1],l[0],l[1]);else{var h=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),c=Math.atan2(l[1]-o[1],l[0]-o[0]),u=e.h.v;u>=1?u=.99:u<=-1&&(u=-.99);var f=h*u,p=Math.cos(c+e.a.v)*f+o[0],m=Math.sin(c+e.a.v)*f+o[1];i=a.createRadialGradient(p,m,0,o[0],o[1],h)}var g=t.g.p,d=e.g.c,y=1;for(s=0;s<g;s+=1)e.g._hasOpacity&&e.g._collapsable&&(y=e.g.o[2*s+1]),i.addColorStop(d[4*s]/100,"rgba("+d[4*s+1]+","+d[4*s+2]+","+d[4*s+3]+","+y+")");n.grd=i}n.coOp=e.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(t,e,r){var i=e.style,n=e.d;n&&(n._mdf||this._isFirstFrame)&&(i.da=n.dashArray,i.do=n.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*r.opacity),(e.w._mdf||this._isFirstFrame)&&(i.wi=e.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 t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var r=!1;t.sc&&(r=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var i,n,s,a,o,l,h,c,u,f,p,m,g=this.globalData.fontManager.getFontByName(t.f),d=t.l,y=this.mHelper;this.stroke=r,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,n=t.finalText.length;var v=this.data.singleShape,b=.001*t.tr*t.finalSize,_=0,S=0,T=!0,x=0;for(i=0;i<n;i+=1){a=(s=this.globalData.fontManager.getCharData(t.finalText[i],g.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&s.data||{},y.reset(),v&&d[i].n&&(_=-b,S+=t.yOffset,S+=T?1:0,T=!1),u=(h=a.shapes?a.shapes[0].it:[]).length,y.scale(t.finalSize/100,t.finalSize/100),v&&this.applyTextPropertiesToMatrix(t,y,d[i].line,_,S),p=createSizedArray(u-1);var w=0;for(c=0;c<u;c+=1)if(h[c].ty==="sh"){for(l=h[c].ks.k.i.length,f=h[c].ks.k,m=[],o=1;o<l;o+=1)o===1&&m.push(y.applyToX(f.v[0][0],f.v[0][1],0),y.applyToY(f.v[0][0],f.v[0][1],0)),m.push(y.applyToX(f.o[o-1][0],f.o[o-1][1],0),y.applyToY(f.o[o-1][0],f.o[o-1][1],0),y.applyToX(f.i[o][0],f.i[o][1],0),y.applyToY(f.i[o][0],f.i[o][1],0),y.applyToX(f.v[o][0],f.v[o][1],0),y.applyToY(f.v[o][0],f.v[o][1],0));m.push(y.applyToX(f.o[o-1][0],f.o[o-1][1],0),y.applyToY(f.o[o-1][0],f.o[o-1][1],0),y.applyToX(f.i[0][0],f.i[0][1],0),y.applyToY(f.i[0][0],f.i[0][1],0),y.applyToX(f.v[0][0],f.v[0][1],0),y.applyToY(f.v[0][0],f.v[0][1],0)),p[w]=m,w+=1}v&&(_+=d[i].l,_+=b),this.textSpans[x]?this.textSpans[x].elem=p:this.textSpans[x]={elem:p},x+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,r,i,n,s,a=this.canvasContext;a.font=this.values.fValue,a.lineCap="butt",a.lineJoin="miter",a.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var o,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;e=h.length;var c,u,f=null,p=null,m=null;for(t=0;t<e;t+=1)if(!h[t].n){if((o=l[t])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(o.p),this.globalData.renderer.ctxOpacity(o.o)),this.fill){for(o&&o.fc?f!==o.fc&&(f=o.fc,a.fillStyle=o.fc):f!==this.values.fill&&(f=this.values.fill,a.fillStyle=this.values.fill),i=(c=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(s=(u=c[r]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),n=2;n<s;n+=6)this.globalData.canvasContext.bezierCurveTo(u[n],u[n+1],u[n+2],u[n+3],u[n+4],u[n+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(o&&o.sw?m!==o.sw&&(m=o.sw,a.lineWidth=o.sw):m!==this.values.sWidth&&(m=this.values.sWidth,a.lineWidth=this.values.sWidth),o&&o.sc?p!==o.sc&&(p=o.sc,a.strokeStyle=o.sc):p!==this.values.stroke&&(p=this.values.stroke,a.strokeStyle=this.values.stroke),i=(c=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(s=(u=c[r]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),n=2;n<s;n+=6)this.globalData.canvasContext.bezierCurveTo(u[n],u[n+1],u[n+2],u[n+3],u[n+4],u[n+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}o&&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 t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,r,i=t.getContext("2d"),n=this.img.width,s=this.img.height,a=n/s,o=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>o&&l==="xMidYMid slice"||a<o&&l!=="xMidYMid slice"?e=(r=s)*o:r=(e=n)/o,i.drawImage(this.img,(n-e)/2,(s-r)/2,e,r,0,0,this.assetData.w,this.assetData.h),this.img=t}},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(){var t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){if(t[0]!==1||t[1]!==0||t[4]!==0||t[5]!==1||t[12]!==0||t[13]!==0)if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(t);var e=this.contextData.cTr.props;this.transformMat.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var r=this.contextData.cTr.props;this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])}else this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=t<0?0:t,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=t<0?0:t,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(t){if(this.renderConfig.clearCanvas){t&&this.canvasContext.save();var e,r=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var i=this.contextData.saved[this.contextData.cArrPos];for(e=0;e<16;e+=1)i[e]=r[e];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var e,r=this.contextData.saved[this.contextData.cArrPos],i=this.contextData.cTr.props;for(e=0;e<16;e+=1)i[e]=r[e];this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),r=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=r,this.globalData.currentGlobalAlpha!==r&&(this.canvasContext.globalAlpha=r,this.globalData.currentGlobalAlpha=r)}else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var r="0px 0px 0px";e.transformOrigin=r,e.mozTransformOrigin=r,e.webkitTransformOrigin=r,e["-webkit-transform"]=r,e.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.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,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(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){var r,i,n,s;if(this.reset(),t?(r=t,i=e,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),this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var a=this.renderConfig.preserveAspectRatio.split(" "),o=a[1]||"meet",l=a[0]||"xMidYMid",h=l.substr(0,4),c=l.substr(4);n=r/i,(s=this.transformCanvas.w/this.transformCanvas.h)>n&&o==="meet"||s<n&&o==="slice"?(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=h==="xMid"&&(s<n&&o==="meet"||s>n&&o==="slice")?(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:h==="xMax"&&(s<n&&o==="meet"||s>n&&o==="slice")?(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty=c==="YMid"&&(s>n&&o==="meet"||s<n&&o==="slice")?(i-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:c==="YMax"&&(s>n&&o==="meet"||s<n&&o==="slice")?(i-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else this.renderConfig.preserveAspectRatio==="none"?(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 t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||this.renderConfig.clearCanvas!==!0||e)&&!this.destroyed&&t!==-1){var r;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=0;r<i;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?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();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&this.layers[t].ty!==99){var r=this.createItem(this.layers[t],this,this.globalData);e[t]=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"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,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),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.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 t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)e=t[r].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var r,i,n,s,a,o=t.sh.v,l=t.transformers,h=o._length;if(!(h<=1)){for(r=0;r<h-1;r+=1)i=this.getTransformedPoint(l,o.v[r]),n=this.getTransformedPoint(l,o.o[r]),s=this.getTransformedPoint(l,o.i[r+1]),a=this.getTransformedPoint(l,o.v[r+1]),this.checkBounds(i,n,s,a,e);o.c&&(i=this.getTransformedPoint(l,o.v[r]),n=this.getTransformedPoint(l,o.o[r]),s=this.getTransformedPoint(l,o.i[0]),a=this.getTransformedPoint(l,o.v[0]),this.checkBounds(i,n,s,a,e))}},HShapeElement.prototype.checkBounds=function(t,e,r,i,n){this.getBoundsOfCurve(t,e,r,i);var s=this.shapeBoundingBox;n.x=bmMin(s.left,n.x),n.xMax=bmMax(s.right,n.xMax),n.y=bmMin(s.top,n.y),n.yMax=bmMax(s.bottom,n.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(t,e,r,i){for(var n,s,a,o,l,h,c,u=[[t[0],i[0]],[t[1],i[1]]],f=0;f<2;++f)s=6*t[f]-12*e[f]+6*r[f],n=-3*t[f]+9*e[f]-9*r[f]+3*i[f],a=3*e[f]-3*t[f],s|=0,a|=0,(n|=0)===0&&s===0||(n===0?(o=-a/s)>0&&o<1&&u[f].push(this.calculateF(o,t,e,r,i,f)):(l=s*s-4*a*n)>=0&&((h=(-s+bmSqrt(l))/(2*n))>0&&h<1&&u[f].push(this.calculateF(h,t,e,r,i,f)),(c=(-s-bmSqrt(l))/(2*n))>0&&c<1&&u[f].push(this.calculateF(c,t,e,r,i,f))));this.shapeBoundingBox.left=bmMin.apply(null,u[0]),this.shapeBoundingBox.top=bmMin.apply(null,u[1]),this.shapeBoundingBox.right=bmMax.apply(null,u[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,u[1])},HShapeElement.prototype.calculateF=function(t,e,r,i,n,s){return bmPow(1-t,3)*e[s]+3*bmPow(1-t,2)*t*r[s]+3*(1-t)*bmPow(t,2)*i[s]+bmPow(t,3)*n[s]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)t[r]&&t[r].sh?this.calculateShapeBoundingBox(t[r],e):t[r]&&t[r].it?this.calculateBoundingBox(t[r].it,e):t[r]&&t[r].style&&t[r].w&&this.expandStrokeBoundingBox(t[r].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var r=0;if(t.keyframes){for(var i=0;i<t.keyframes.length;i+=1){var n=t.keyframes[i].s;n>r&&(r=n)}r*=t.mult}else r=t.v*t.mult;e.x-=r,e.xMax+=r,e.y-=r,e.yMax+=r},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var r=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),r=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),r=!0),r||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,n="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=n,i.webkitTransform=n}}},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 t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,r=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=r,e.color=r,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var i,n,s=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",s.fClass)this.innerElem.className=s.fClass;else{e.fontFamily=s.fFamily;var a=t.fWeight,o=t.fStyle;e.fontStyle=o,e.fontWeight=a}var l,h,c,u=t.l;n=u.length;var f,p=this.mHelper,m="",g=0;for(i=0;i<n;i+=1){if(this.globalData.fontManager.chars?(this.textPaths[g]?l=this.textPaths[g]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[g]?c=(h=this.textSpans[g]).children[0]:((h=createTag("div")).style.lineHeight=0,(c=createNS("svg")).appendChild(l),styleDiv(h)))):this.isMasked?l=this.textPaths[g]?this.textPaths[g]:createNS("text"):this.textSpans[g]?(h=this.textSpans[g],l=this.textPaths[g]):(styleDiv(h=createTag("span")),styleDiv(l=createTag("span")),h.appendChild(l)),this.globalData.fontManager.chars){var d,y=this.globalData.fontManager.getCharData(t.finalText[i],s.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(d=y?y.data:null,p.reset(),d&&d.shapes&&d.shapes.length&&(f=d.shapes[0].it,p.scale(t.finalSize/100,t.finalSize/100),m=this.createPathShape(p,f),l.setAttribute("d",m)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(h),d&&d.shapes){document.body.appendChild(c);var v=c.getBBox();c.setAttribute("width",v.width+2),c.setAttribute("height",v.height+2),c.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var b=c.style,_="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";b.transform=_,b.webkitTransform=_,u[i].yOffset=v.y-1}else c.setAttribute("width",1),c.setAttribute("height",1);h.appendChild(c)}}else if(l.textContent=u[i].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(h);var S=l.style,T="translate3d(0,"+-t.finalSize/1.2+"px,0)";S.transform=T,S.webkitTransform=T}this.isMasked?this.textSpans[g]=l:this.textSpans[g]=h,this.textSpans[g].style.display="block",this.textPaths[g]=l,g+=1}for(;g<this.textSpans.length;)this.textSpans[g].style.display="none",g+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(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),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,i,n,s,a,o=0,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;for(i=h.length,r=0;r<i;r+=1)h[r].n?o+=1:(s=this.textSpans[r],a=this.textPaths[r],n=l[o],o+=1,n._mdf.m&&(this.isMasked?s.setAttribute("transform",n.m):(s.style.webkitTransform=n.m,s.style.transform=n.m)),s.style.opacity=n.o,n.sw&&n._mdf.sw&&a.setAttribute("stroke-width",n.sw),n.sc&&n._mdf.sc&&a.setAttribute("stroke",n.sc),n.fc&&n._mdf.fc&&(a.setAttribute("fill",n.fc),a.style.color=n.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.innerElem.getBBox();if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.svgElement.setAttribute("width",c.width)),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.svgElement.setAttribute("height",c.height)),this.currentBBox.w!==c.width+2||this.currentBBox.h!==c.height+2||this.currentBBox.x!==c.x-1||this.currentBBox.y!==c.y-1){this.currentBBox.w=c.width+2,this.currentBBox.h=c.height+2,this.currentBBox.x=c.x-1,this.currentBBox.y=c.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var u="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=u,t.webkitTransform=u}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,r,i,n=this.comp.threeDElements.length;for(t=0;t<n;t+=1)if((e=this.comp.threeDElements[t]).type==="3d"){r=e.perspectiveElem.style,i=e.container.style;var s=this.pe.v+"px",a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=s,r.webkitPerspective=s,i.transformOrigin="0px 0px 0px",i.mozTransformOrigin="0px 0px 0px",i.webkitTransformOrigin="0px 0px 0px",r.transform=a,r.webkitTransform=a}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,r=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)r=this.hierarchy[t].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(t=e=this.hierarchy.length-1;t>=0;t-=1){var i=this.hierarchy[t].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 n;n=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 s=Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),a=[n[0]/s,n[1]/s,n[2]/s],o=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],o),h=Math.atan2(a[0],-a[2]);this.mat.rotateY(h).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 c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){var u,f,p;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if((u=this.comp.threeDElements[t]).type==="3d"){if(c){var m=this.mat.toCSS();(p=u.container.style).transform=m,p.webkitTransform=m}this.pe._mdf&&((f=u.perspectiveElem.style).perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!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 t=this.globalData.getAssetsPath(this.assetData),e=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",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,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(t,e){var r=t.getBaseElement();if(r){var i=this.layers[e];if(i.ddd&&this.supports3d)this.addTo3dContainer(r,e);else if(this.threeDElements)this.addTo3dContainer(r,e);else{for(var n,s,a=0;a<e;)this.elements[a]&&this.elements[a]!==!0&&this.elements[a].getBaseElement&&(s=this.elements[a],n=(this.layers[a].ddd?this.getThreeDContainerByPos(a):s.getBaseElement())||n),a+=1;n?i.ddd&&this.supports3d||this.layerElement.insertBefore(r,n):i.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,r=this.threeDElements.length;e<r;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var r,i,n=createTag("div");styleDiv(n);var s=createTag("div");if(styleDiv(s),e==="3d"){(r=n.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px",r.webkitTransformOrigin="50% 50%",r.mozTransformOrigin="50% 50%",r.transformOrigin="50% 50%";var a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(i=s.style).transform=a,i.webkitTransform=a}n.appendChild(s);var o={container:s,perspectiveElem:n,startPos:t,endPos:t,type:e};return this.threeDElements.push(o),o},HybridRendererBase.prototype.build3dContainers=function(){var t,e,r=this.layers.length,i="";for(t=0;t<r;t+=1)this.layers[t].ddd&&this.layers[t].ty!==3?(i!=="3d"&&(i="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):(i!=="2d"&&(i="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(r=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var r=0,i=this.threeDElements.length;r<i;){if(e<=this.threeDElements[r].endPos){for(var n,s=this.threeDElements[r].startPos;s<e;)this.elements[s]&&this.elements[s].getBaseElement&&(n=this.elements[s].getBaseElement()),s+=1;n?this.threeDElements[r].container.insertBefore(t,n):this.threeDElements[r].container.appendChild(t);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),r=this.animationItem.wrapper,i=e.style;i.width=t.w+"px",i.height=t.h+"px",this.resizerElem=e,styleDiv(e),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),r.appendChild(e),i.overflow="hidden";var n=createNS("svg");n.setAttribute("width","1"),n.setAttribute("height","1"),styleDiv(n),this.resizerElem.appendChild(n);var s=createNS("defs");n.appendChild(s),this.data=t,this.setupGlobalData(t,n),this.globalData.defs=s,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,r,i,n=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,a=n/s;this.globalData.compSize.w/this.globalData.compSize.h>a?(t=n/this.globalData.compSize.w,e=n/this.globalData.compSize.w,r=0,i=(s-this.globalData.compSize.h*(n/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,r=(n-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,i=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+r+","+i+",0,1)",o.transform=o.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 t,e=this.globalData.compSize.w,r=this.globalData.compSize.h,i=this.threeDElements.length;for(t=0;t<i;t+=1){var n=this.threeDElements[t].perspectiveElem.style;n.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(r,2))+"px",n.perspective=n.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,r=t.length,i=createTag("div");for(e=0;e<r;e+=1)if(t[e].xt){var n=this.createComp(t[e],i,this.globalData.comp,null);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},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(t,e){for(var r,i=0;i<e;)this.elements[i]&&this.elements[i].getBaseElement&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(t,r):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=function(t){function e(r){for(var i=0,n=t.layers.length;i<n;){if(t.layers[i].nm===r||t.layers[i].ind===r)return t.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e},Expressions=function(){var t={};return t.initExpressions=function(e){var r=0,i=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){r+=1},e.renderer.globalData.popExpression=function(){(r-=1)===0&&function(){var n,s=i.length;for(n=0;n<s;n+=1)i[n].release();i.length=0}()},e.renderer.globalData.registerExpressionProperty=function(n){i.indexOf(n)===-1&&i.push(n)}},t}(),MaskManagerInterface=function(){function t(e,r){this._mask=e,this._data=r}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var r,i=createSizedArray(e.viewData.length),n=e.viewData.length;for(r=0;r<n;r+=1)i[r]=new t(e.viewData[r],e.masksProperties[r]);return function(s){for(r=0;r<n;){if(e.masksProperties[r].nm===s)return i[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function r(n,s,a){Object.defineProperty(n,"velocity",{get:function(){return s.getVelocityAtTime(s.comp.currentFrame)}}),n.numKeys=s.keyframes?s.keyframes.length:0,n.key=function(o){if(!n.numKeys)return 0;var l="";l="s"in s.keyframes[o-1]?s.keyframes[o-1].s:"e"in s.keyframes[o-2]?s.keyframes[o-2].e:s.keyframes[o-2].s;var h=a==="unidimensional"?new Number(l):Object.assign({},l);return h.time=s.keyframes[o-1].t/s.elem.comp.globalData.frameRate,h.value=a==="unidimensional"?l[0]:l,h},n.valueAtTime=s.getValueAtTime,n.speedAtTime=s.getSpeedAtTime,n.velocityAtTime=s.getVelocityAtTime,n.propertyGroup=s.propertyGroup}function i(){return t}return function(n){return n?n.propType==="unidimensional"?function(s){s&&"pv"in s||(s=t);var a=1/s.mult,o=s.pv*a,l=new Number(o);return l.value=o,r(l,s,"unidimensional"),function(){return s.k&&s.getValue(),o=s.v*a,l.value!==o&&((l=new Number(o)).value=o,r(l,s,"unidimensional")),l}}(n):function(s){s&&"pv"in s||(s=e);var a=1/s.mult,o=s.data&&s.data.l||s.pv.length,l=createTypedArray("float32",o),h=createTypedArray("float32",o);return l.value=h,r(l,s,"multidimensional"),function(){s.k&&s.getValue();for(var c=0;c<o;c+=1)h[c]=s.v[c]*a,l[c]=h[c];return l}}(n):i}}(),TransformExpressionInterface=function(t){function e(a){switch(a){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var r,i,n,s;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?s=ExpressionPropertyInterface(t.p):(r=ExpressionPropertyInterface(t.px),i=ExpressionPropertyInterface(t.py),t.pz&&(n=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?s():[r(),i(),n?n():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function t(h){var c=new Matrix;return h!==void 0?this._elem.finalTransform.mProp.getValueAtTime(h).clone(c):this._elem.finalTransform.mProp.applyToMatrix(c),c}function e(h,c){var u=this.getMatrix(c);return u.props[12]=0,u.props[13]=0,u.props[14]=0,this.applyPoint(u,h)}function r(h,c){var u=this.getMatrix(c);return this.applyPoint(u,h)}function i(h,c){var u=this.getMatrix(c);return u.props[12]=0,u.props[13]=0,u.props[14]=0,this.invertPoint(u,h)}function n(h,c){var u=this.getMatrix(c);return this.invertPoint(u,h)}function s(h,c){if(this._elem.hierarchy&&this._elem.hierarchy.length){var u,f=this._elem.hierarchy.length;for(u=0;u<f;u+=1)this._elem.hierarchy[u].finalTransform.mProp.applyToMatrix(h)}return h.applyToPointArray(c[0],c[1],c[2]||0)}function a(h,c){if(this._elem.hierarchy&&this._elem.hierarchy.length){var u,f=this._elem.hierarchy.length;for(u=0;u<f;u+=1)this._elem.hierarchy[u].finalTransform.mProp.applyToMatrix(h)}return h.inversePoint(c)}function o(h){var c=new Matrix;if(c.reset(),this._elem.finalTransform.mProp.applyToMatrix(c),this._elem.hierarchy&&this._elem.hierarchy.length){var u,f=this._elem.hierarchy.length;for(u=0;u<f;u+=1)this._elem.hierarchy[u].finalTransform.mProp.applyToMatrix(c);return c.inversePoint(h)}return c.inversePoint(h)}function l(){return[1,1,1,1]}return function(h){var c;function u(p){switch(p){case"ADBE Root Vectors Group":case"Contents":case 2:return u.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return u.effect;case"ADBE Text Properties":return u.textInterface;default:return null}}u.getMatrix=t,u.invertPoint=a,u.applyPoint=s,u.toWorld=r,u.toWorldVec=e,u.fromWorld=n,u.fromWorldVec=i,u.toComp=r,u.fromComp=o,u.sampleImage=l,u.sourceRectAtTime=h.sourceRectAtTime.bind(h),u._elem=h;var f=getDescriptor(c=TransformExpressionInterface(h.finalTransform.mProp),"anchorPoint");return Object.defineProperties(u,{hasParent:{get:function(){return h.hierarchy.length}},parent:{get:function(){return h.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:f,anchor_point:f,transform:{get:function(){return c}},active:{get:function(){return h.isInRange}}}),u.startTime=h.data.st,u.index=h.data.ind,u.source=h.data.refId,u.height=h.data.ty===0?h.data.h:100,u.width=h.data.ty===0?h.data.w:100,u.inPoint=h.data.ip/h.comp.globalData.frameRate,u.outPoint=h.data.op/h.comp.globalData.frameRate,u._name=h.data.nm,u.registerMaskInterface=function(p){u.mask=new MaskManagerInterface(p,h)},u.registerEffectsInterface=function(p){u.effect=p},u}}(),propertyGroupFactory=function(t,e){return function(r){return(r=r===void 0?1:r)<=0?t:e(r-1)}},PropertyInterface=function(t,e){var r={_name:t};return function(i){return(i=i===void 0?1:i)<=0?r:e(i-1)}},EffectsExpressionInterface=function(){function t(r,i,n,s){function a(u){for(var f=r.ef,p=0,m=f.length;p<m;){if(u===f[p].nm||u===f[p].mn||u===f[p].ix)return f[p].ty===5?h[p]:h[p]();p+=1}throw new Error}var o,l=propertyGroupFactory(a,n),h=[],c=r.ef.length;for(o=0;o<c;o+=1)r.ef[o].ty===5?h.push(t(r.ef[o],i.effectElements[o],i.effectElements[o].propertyGroup,s)):h.push(e(i.effectElements[o],r.ef[o].ty,s,l));return r.mn==="ADBE Color Control"&&Object.defineProperty(a,"color",{get:function(){return h[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:l}}),a.enabled=r.en!==0,a.active=a.enabled,a}function e(r,i,n,s){var a=ExpressionPropertyInterface(r.p);return r.p.setGroupProperty&&r.p.setGroupProperty(PropertyInterface("",s)),function(){return i===10?n.comp.compInterface(r.p.v):a()}}return{createEffectsInterface:function(r,i){if(r.effectsManager){var n,s=[],a=r.data.ef,o=r.effectsManager.effectElements.length;for(n=0;n<o;n+=1)s.push(t(a[n],r.effectsManager.effectElements[n],i,r));var l=r.data.ef||[],h=function(c){for(n=0,o=l.length;n<o;){if(c===l[n].nm||c===l[n].mn||c===l[n].ix)return s[n];n+=1}return null};return Object.defineProperty(h,"numProperties",{get:function(){return l.length}}),h}return null}}}(),ShapePathInterface=function(t,e,r){var i=e.sh;function n(a){return a==="Shape"||a==="shape"||a==="Path"||a==="path"||a==="ADBE Vector Shape"||a===2?n.path:null}var s=propertyGroupFactory(n,r);return i.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(n,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:r}}),n},ShapeExpressionInterface=function(){function t(p,m,g){var d,y=[],v=p?p.length:0;for(d=0;d<v;d+=1)p[d].ty==="gr"?y.push(e(p[d],m[d],g)):p[d].ty==="fl"?y.push(r(p[d],m[d],g)):p[d].ty==="st"?y.push(s(p[d],m[d],g)):p[d].ty==="tm"?y.push(a(p[d],m[d],g)):p[d].ty==="tr"||(p[d].ty==="el"?y.push(l(p[d],m[d],g)):p[d].ty==="sr"?y.push(h(p[d],m[d],g)):p[d].ty==="sh"?y.push(ShapePathInterface(p[d],m[d],g)):p[d].ty==="rc"?y.push(c(p[d],m[d],g)):p[d].ty==="rd"?y.push(u(p[d],m[d],g)):p[d].ty==="rp"?y.push(f(p[d],m[d],g)):p[d].ty==="gf"?y.push(i(p[d],m[d],g)):y.push(n(p[d],m[d])));return y}function e(p,m,g){var d=function(b){switch(b){case"ADBE Vectors Group":case"Contents":case 2:return d.content;default:return d.transform}};d.propertyGroup=propertyGroupFactory(d,g);var y=function(b,_,S){var T,x=function(M){for(var k=0,I=T.length;k<I;){if(T[k]._name===M||T[k].mn===M||T[k].propertyIndex===M||T[k].ix===M||T[k].ind===M)return T[k];k+=1}return typeof M=="number"?T[M-1]:null};x.propertyGroup=propertyGroupFactory(x,S),T=t(b.it,_.it,x.propertyGroup),x.numProperties=T.length;var w=o(b.it[b.it.length-1],_.it[_.it.length-1],x.propertyGroup);return x.transform=w,x.propertyIndex=b.cix,x._name=b.nm,x}(p,m,d.propertyGroup),v=o(p.it[p.it.length-1],m.it[m.it.length-1],d.propertyGroup);return d.content=y,d.transform=v,Object.defineProperty(d,"_name",{get:function(){return p.nm}}),d.numProperties=p.np,d.propertyIndex=p.ix,d.nm=p.nm,d.mn=p.mn,d}function r(p,m,g){function d(y){return y==="Color"||y==="color"?d.color:y==="Opacity"||y==="opacity"?d.opacity:null}return Object.defineProperties(d,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},_name:{value:p.nm},mn:{value:p.mn}}),m.c.setGroupProperty(PropertyInterface("Color",g)),m.o.setGroupProperty(PropertyInterface("Opacity",g)),d}function i(p,m,g){function d(y){return y==="Start Point"||y==="start point"?d.startPoint:y==="End Point"||y==="end point"?d.endPoint:y==="Opacity"||y==="opacity"?d.opacity:null}return Object.defineProperties(d,{startPoint:{get:ExpressionPropertyInterface(m.s)},endPoint:{get:ExpressionPropertyInterface(m.e)},opacity:{get:ExpressionPropertyInterface(m.o)},type:{get:function(){return"a"}},_name:{value:p.nm},mn:{value:p.mn}}),m.s.setGroupProperty(PropertyInterface("Start Point",g)),m.e.setGroupProperty(PropertyInterface("End Point",g)),m.o.setGroupProperty(PropertyInterface("Opacity",g)),d}function n(){return function(){return null}}function s(p,m,g){var d,y=propertyGroupFactory(T,g),v=propertyGroupFactory(S,y);function b(x){Object.defineProperty(S,p.d[x].nm,{get:ExpressionPropertyInterface(m.d.dataProps[x].p)})}var _=p.d?p.d.length:0,S={};for(d=0;d<_;d+=1)b(d),m.d.dataProps[d].p.setGroupProperty(v);function T(x){return x==="Color"||x==="color"?T.color:x==="Opacity"||x==="opacity"?T.opacity:x==="Stroke Width"||x==="stroke width"?T.strokeWidth:null}return Object.defineProperties(T,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},strokeWidth:{get:ExpressionPropertyInterface(m.w)},dash:{get:function(){return S}},_name:{value:p.nm},mn:{value:p.mn}}),m.c.setGroupProperty(PropertyInterface("Color",y)),m.o.setGroupProperty(PropertyInterface("Opacity",y)),m.w.setGroupProperty(PropertyInterface("Stroke Width",y)),T}function a(p,m,g){function d(v){return v===p.e.ix||v==="End"||v==="end"?d.end:v===p.s.ix?d.start:v===p.o.ix?d.offset:null}var y=propertyGroupFactory(d,g);return d.propertyIndex=p.ix,m.s.setGroupProperty(PropertyInterface("Start",y)),m.e.setGroupProperty(PropertyInterface("End",y)),m.o.setGroupProperty(PropertyInterface("Offset",y)),d.propertyIndex=p.ix,d.propertyGroup=g,Object.defineProperties(d,{start:{get:ExpressionPropertyInterface(m.s)},end:{get:ExpressionPropertyInterface(m.e)},offset:{get:ExpressionPropertyInterface(m.o)},_name:{value:p.nm}}),d.mn=p.mn,d}function o(p,m,g){function d(v){return p.a.ix===v||v==="Anchor Point"?d.anchorPoint:p.o.ix===v||v==="Opacity"?d.opacity:p.p.ix===v||v==="Position"?d.position:p.r.ix===v||v==="Rotation"||v==="ADBE Vector Rotation"?d.rotation:p.s.ix===v||v==="Scale"?d.scale:p.sk&&p.sk.ix===v||v==="Skew"?d.skew:p.sa&&p.sa.ix===v||v==="Skew Axis"?d.skewAxis:null}var y=propertyGroupFactory(d,g);return m.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",y)),m.transform.mProps.p.setGroupProperty(PropertyInterface("Position",y)),m.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",y)),m.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",y)),m.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",y)),m.transform.mProps.sk&&(m.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",y)),m.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",y))),m.transform.op.setGroupProperty(PropertyInterface("Opacity",y)),Object.defineProperties(d,{opacity:{get:ExpressionPropertyInterface(m.transform.mProps.o)},position:{get:ExpressionPropertyInterface(m.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(m.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(m.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(m.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(m.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(m.transform.mProps.sa)},_name:{value:p.nm}}),d.ty="tr",d.mn=p.mn,d.propertyGroup=g,d}function l(p,m,g){function d(b){return p.p.ix===b?d.position:p.s.ix===b?d.size:null}var y=propertyGroupFactory(d,g);d.propertyIndex=p.ix;var v=m.sh.ty==="tm"?m.sh.prop:m.sh;return v.s.setGroupProperty(PropertyInterface("Size",y)),v.p.setGroupProperty(PropertyInterface("Position",y)),Object.defineProperties(d,{size:{get:ExpressionPropertyInterface(v.s)},position:{get:ExpressionPropertyInterface(v.p)},_name:{value:p.nm}}),d.mn=p.mn,d}function h(p,m,g){function d(b){return p.p.ix===b?d.position:p.r.ix===b?d.rotation:p.pt.ix===b?d.points:p.or.ix===b||b==="ADBE Vector Star Outer Radius"?d.outerRadius:p.os.ix===b?d.outerRoundness:!p.ir||p.ir.ix!==b&&b!=="ADBE Vector Star Inner Radius"?p.is&&p.is.ix===b?d.innerRoundness:null:d.innerRadius}var y=propertyGroupFactory(d,g),v=m.sh.ty==="tm"?m.sh.prop:m.sh;return d.propertyIndex=p.ix,v.or.setGroupProperty(PropertyInterface("Outer Radius",y)),v.os.setGroupProperty(PropertyInterface("Outer Roundness",y)),v.pt.setGroupProperty(PropertyInterface("Points",y)),v.p.setGroupProperty(PropertyInterface("Position",y)),v.r.setGroupProperty(PropertyInterface("Rotation",y)),p.ir&&(v.ir.setGroupProperty(PropertyInterface("Inner Radius",y)),v.is.setGroupProperty(PropertyInterface("Inner Roundness",y))),Object.defineProperties(d,{position:{get:ExpressionPropertyInterface(v.p)},rotation:{get:ExpressionPropertyInterface(v.r)},points:{get:ExpressionPropertyInterface(v.pt)},outerRadius:{get:ExpressionPropertyInterface(v.or)},outerRoundness:{get:ExpressionPropertyInterface(v.os)},innerRadius:{get:ExpressionPropertyInterface(v.ir)},innerRoundness:{get:ExpressionPropertyInterface(v.is)},_name:{value:p.nm}}),d.mn=p.mn,d}function c(p,m,g){function d(b){return p.p.ix===b?d.position:p.r.ix===b?d.roundness:p.s.ix===b||b==="Size"||b==="ADBE Vector Rect Size"?d.size:null}var y=propertyGroupFactory(d,g),v=m.sh.ty==="tm"?m.sh.prop:m.sh;return d.propertyIndex=p.ix,v.p.setGroupProperty(PropertyInterface("Position",y)),v.s.setGroupProperty(PropertyInterface("Size",y)),v.r.setGroupProperty(PropertyInterface("Rotation",y)),Object.defineProperties(d,{position:{get:ExpressionPropertyInterface(v.p)},roundness:{get:ExpressionPropertyInterface(v.r)},size:{get:ExpressionPropertyInterface(v.s)},_name:{value:p.nm}}),d.mn=p.mn,d}function u(p,m,g){function d(b){return p.r.ix===b||b==="Round Corners 1"?d.radius:null}var y=propertyGroupFactory(d,g),v=m;return d.propertyIndex=p.ix,v.rd.setGroupProperty(PropertyInterface("Radius",y)),Object.defineProperties(d,{radius:{get:ExpressionPropertyInterface(v.rd)},_name:{value:p.nm}}),d.mn=p.mn,d}function f(p,m,g){function d(b){return p.c.ix===b||b==="Copies"?d.copies:p.o.ix===b||b==="Offset"?d.offset:null}var y=propertyGroupFactory(d,g),v=m;return d.propertyIndex=p.ix,v.c.setGroupProperty(PropertyInterface("Copies",y)),v.o.setGroupProperty(PropertyInterface("Offset",y)),Object.defineProperties(d,{copies:{get:ExpressionPropertyInterface(v.c)},offset:{get:ExpressionPropertyInterface(v.o)},_name:{value:p.nm}}),d.mn=p.mn,d}return function(p,m,g){var d;function y(v){if(typeof v=="number")return(v=v===void 0?1:v)===0?g:d[v-1];for(var b=0,_=d.length;b<_;){if(d[b]._name===v)return d[b];b+=1}return null}return y.propertyGroup=propertyGroupFactory(y,function(){return g}),d=t(p,m,y.propertyGroup),y.numProperties=d.length,y._name="Contents",y}}(),TextExpressionInterface=function(t){var e;function r(i){switch(i){case"ADBE Text Document":return r.sourceText;default:return null}}return Object.defineProperty(r,"sourceText",{get:function(){t.textProperty.getValue();var i=t.textProperty.currentData.t;return i!==void 0&&(t.textProperty.currentData.t=void 0,(e=new String(i)).value=i||new String(i)),e}}),r};function _typeof$2(t){return(_typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(r){return r==="Outline"?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(r){var i="",n=r.getFootageData();function s(a){if(n[a])return i=a,_typeof$2(n=n[a])==="object"?s:n;var o=a.indexOf(i);if(o!==-1){var l=parseInt(a.substr(o+i.length),10);return _typeof$2(n=n[l])==="object"?s:n}return""}return function(){return i="",n=r.getFootageData(),s}}(t),e},function(t){function e(r){return r==="Data"?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}function _typeof$1(t){return(_typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function seedRandom(t,e){var r=this,i=e.pow(256,6),n=e.pow(2,52),s=2*n;function a(c){var u,f=c.length,p=this,m=0,g=p.i=p.j=0,d=p.S=[];for(f||(c=[f++]);m<256;)d[m]=m++;for(m=0;m<256;m++)d[m]=d[g=255&g+c[m%f]+(u=d[m])],d[g]=u;p.g=function(y){for(var v,b=0,_=p.i,S=p.j,T=p.S;y--;)v=T[_=255&_+1],b=256*b+T[255&(T[_]=T[S=255&S+v])+(T[S]=v)];return p.i=_,p.j=S,b}}function o(c,u){return u.i=c.i,u.j=c.j,u.S=c.S.slice(),u}function l(c,u){for(var f,p=c+"",m=0;m<p.length;)u[255&m]=255&(f^=19*u[255&m])+p.charCodeAt(m++);return h(u)}function h(c){return String.fromCharCode.apply(0,c)}e.seedrandom=function(c,u,f){var p=[],m=l(function y(v,b){var _,S=[],T=_typeof$1(v);if(b&&T=="object")for(_ in v)try{S.push(y(v[_],b-1))}catch{}return S.length?S:T=="string"?v:v+"\0"}((u=u===!0?{entropy:!0}:u||{}).entropy?[c,h(t)]:c===null?function(){try{var y=new Uint8Array(256);return(r.crypto||r.msCrypto).getRandomValues(y),h(y)}catch{var v=r.navigator,b=v&&v.plugins;return[+new Date,r,b,r.screen,h(t)]}}():c,3),p),g=new a(p),d=function(){for(var y=g.g(6),v=i,b=0;y<n;)y=256*(y+b),v*=256,b=g.g(1);for(;y>=s;)y/=2,v/=2,b>>>=1;return(y+b)/v};return d.int32=function(){return 0|g.g(4)},d.quick=function(){return g.g(4)/4294967296},d.double=d,l(h(g.S),t),(u.pass||f||function(y,v,b,_){return _&&(_.S&&o(_,g),y.state=function(){return o(g,{})}),b?(e.random=y,v):y})(d,m,"global"in u?u.global:this==e,u.state)},l(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof(t){return(_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return t==="number"||t==="boolean"||t==="string"||e instanceof Number}function $bm_neg(t){var e=_typeof(t);if(e==="number"||e==="boolean"||t instanceof Number)return-t;if($bm_isInstanceOfArray(t)){var r,i=t.length,n=[];for(r=0;r<i;r+=1)n[r]=-t[r];return n}return t.propType?t.v:-t}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(t,e){var r=_typeof(t),i=_typeof(e);if(r==="string"||i==="string"||isNumerable(r,t)&&isNumerable(i,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,s=t.length,a=e.length,o=[];n<s||n<a;)(typeof t[n]=="number"||t[n]instanceof Number)&&(typeof e[n]=="number"||e[n]instanceof Number)?o[n]=t[n]+e[n]:o[n]=e[n]===void 0?t[n]:t[n]||e[n],n+=1;return o}return 0}var add=sum;function sub(t,e){var r=_typeof(t),i=_typeof(e);if(isNumerable(r,t)&&isNumerable(i,e))return r==="string"&&(t=parseInt(t,10)),i==="string"&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,s=t.length,a=e.length,o=[];n<s||n<a;)(typeof t[n]=="number"||t[n]instanceof Number)&&(typeof e[n]=="number"||e[n]instanceof Number)?o[n]=t[n]-e[n]:o[n]=e[n]===void 0?t[n]:t[n]||e[n],n+=1;return o}return 0}function mul(t,e){var r,i,n,s=_typeof(t),a=_typeof(e);if(isNumerable(s,t)&&isNumerable(a,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(n=t.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t[i]*e;return r}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t*e[i];return r}return 0}function div(t,e){var r,i,n,s=_typeof(t),a=_typeof(e);if(isNumerable(s,t)&&isNumerable(a,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(n=t.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t[i]/e;return r}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t/e[i];return r}return 0}function mod(t,e){return typeof t=="string"&&(t=parseInt(t,10)),typeof e=="string"&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,r){if(e>r){var i=r;r=e,e=i}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if(typeof t=="number"||t instanceof Number)return e=e||0,Math.abs(t-e);var r;e||(e=helperLengthArray);var i=Math.min(t.length,e.length),n=0;for(r=0;r<i;r+=1)n+=Math.pow(e[r]-t[r],2);return Math.sqrt(n)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,r,i=t[0],n=t[1],s=t[2],a=Math.max(i,n,s),o=Math.min(i,n,s),l=(a+o)/2;if(a===o)e=0,r=0;else{var h=a-o;switch(r=l>.5?h/(2-a-o):h/(a+o),a){case i:e=(n-s)/h+(n<s?6:0);break;case n:e=(s-i)/h+2;break;case s:e=(i-n)/h+4}e/=6}return[e,r,l,t[3]]}function hue2rgb(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e,r,i,n=t[0],s=t[1],a=t[2];if(s===0)e=a,i=a,r=a;else{var o=a<.5?a*(1+s):a+s-a*s,l=2*a-o;e=hue2rgb(l,o,n+1/3),r=hue2rgb(l,o,n),i=hue2rgb(l,o,n-1/3)}return[e,r,i,t[3]]}function linear(t,e,r,i,n){if(i!==void 0&&n!==void 0||(i=e,n=r,e=0,r=1),r<e){var s=r;r=e,e=s}if(t<=e)return i;if(t>=r)return n;var a,o=r===e?0:(t-e)/(r-e);if(!i.length)return i+(n-i)*o;var l=i.length,h=createTypedArray("float32",l);for(a=0;a<l;a+=1)h[a]=i[a]+(n[a]-i[a])*o;return h}function random(t,e){if(e===void 0&&(t===void 0?(t=0,e=1):(e=t,t=void 0)),e.length){var r,i=e.length;t||(t=createTypedArray("float32",i));var n=createTypedArray("float32",i),s=BMMath.random();for(r=0;r<i;r+=1)n[r]=t[r]+s*(e[r]-t[r]);return n}return t===void 0&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,r,i){var n,s=t.length,a=shapePool.newElement();a.setPathData(!!i,s);var o,l,h=[0,0];for(n=0;n<s;n+=1)o=e&&e[n]?e[n]:h,l=r&&r[n]?r[n]:h,a.setTripleAt(t[n][0],t[n][1],l[0]+t[n][0],l[1]+t[n][1],o[0]+t[n][0],o[1]+t[n][1],n,!0);return a}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;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||this.data.hd!==!0,wiggle=function(t,e){var r,i,n=this.pv.length?this.pv.length:1,s=createTypedArray("float32",n),a=Math.floor(5*time);for(r=0,i=0;r<a;){for(i=0;i<n;i+=1)s[i]+=-e+2*e*BMMath.random();r+=1}var o=5*time,l=o-Math.floor(o),h=createTypedArray("float32",n);if(n>1){for(i=0;i<n;i+=1)h[i]=this.pv[i]+s[i]+(-e+2*e*BMMath.random())*l;return h}return this.pv+s[0]+(-e+2*e*BMMath.random())*l}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!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(t,e){var r=[e[0]-t[0],e[1]-t[1],e[2]-t[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(t,e,r,i,n){return applyEase(easeOutBez,t,e,r,i,n)}function easeIn(t,e,r,i,n){return applyEase(easeInBez,t,e,r,i,n)}function ease(t,e,r,i,n){return applyEase(easeInOutBez,t,e,r,i,n)}function applyEase(t,e,r,i,n,s){n===void 0?(n=r,s=i):e=(e-r)/(i-r),e>1?e=1:e<0&&(e=0);var a=t(e);if($bm_isInstanceOfArray(n)){var o,l=n.length,h=createTypedArray("float32",l);for(o=0;o<l;o+=1)h[o]=(s[o]-n[o])*a+n[o];return h}return(s-n)*a+n}function nearestKey(t){var e,r,i,n=data.k.length;if(data.k.length&&typeof data.k[0]!="number")if(r=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,i=data.k[0].t;else{for(e=0;e<n-1;e+=1){if(t===data.k[e].t){r=e+1,i=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(r=e+2,i=data.k[e+1].t):(r=e+1,i=data.k[e].t);break}}r===-1&&(r=e+1,i=data.k[e].t)}else r=0,i=0;var s={};return s.index=r,s.time=i/elem.comp.globalData.frameRate,s}function key(t){var e,r,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var n=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(i=n.length,r=0;r<i;r+=1)e[r]=n[r],e.value[r]=n[r];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||t===0||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return typeof value=="string"?e===void 0?value.substring(t):value.substring(t,e):""}function substr(t,e){return typeof value=="string"?e===void 0?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=t===0?0:Math.floor(time*t)/t,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(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(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)),elemType!==4||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],ob}(),expressionHelpers={searchExpressions:function(t,e,r){e.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(t,e,r).bind(r)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),r=this.getValueAtTime(t+-.01),i=0;if(e.length){var n;for(n=0;n<e.length;n+=1)i+=Math.pow(r[n]-e[n],2);i=100*Math.sqrt(i)}else i=0;return i},getVelocityAtTime:function(t){if(this.vel!==void 0)return this.vel;var e,r,i=this.getValueAtTime(t),n=this.getValueAtTime(t+-.001);if(i.length)for(e=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)e[r]=(n[r]-i[r])/-.001;else e=(n-i)/-.001;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function t(u,f,p){if(!this.k||!this.keyframes)return this.pv;u=u?u.toLowerCase():"";var m,g,d,y,v,b=this.comp.renderedFrame,_=this.keyframes,S=_[_.length-1].t;if(b<=S)return this.pv;if(p?g=S-(m=f?Math.abs(S-this.elem.comp.globalData.frameRate*f):Math.max(0,S-this.elem.data.ip)):((!f||f>_.length-1)&&(f=_.length-1),m=S-(g=_[_.length-1-f].t)),u==="pingpong"){if(Math.floor((b-g)/m)%2!=0)return this.getValueAtTime((m-(b-g)%m+g)/this.comp.globalData.frameRate,0)}else{if(u==="offset"){var T=this.getValueAtTime(g/this.comp.globalData.frameRate,0),x=this.getValueAtTime(S/this.comp.globalData.frameRate,0),w=this.getValueAtTime(((b-g)%m+g)/this.comp.globalData.frameRate,0),M=Math.floor((b-g)/m);if(this.pv.length){for(y=(v=new Array(T.length)).length,d=0;d<y;d+=1)v[d]=(x[d]-T[d])*M+w[d];return v}return(x-T)*M+w}if(u==="continue"){var k=this.getValueAtTime(S/this.comp.globalData.frameRate,0),I=this.getValueAtTime((S-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(y=(v=new Array(k.length)).length,d=0;d<y;d+=1)v[d]=k[d]+(k[d]-I[d])*((b-S)/this.comp.globalData.frameRate)/5e-4;return v}return k+(b-S)/.001*(k-I)}}return this.getValueAtTime(((b-g)%m+g)/this.comp.globalData.frameRate,0)}function e(u,f,p){if(!this.k)return this.pv;u=u?u.toLowerCase():"";var m,g,d,y,v,b=this.comp.renderedFrame,_=this.keyframes,S=_[0].t;if(b>=S)return this.pv;if(p?g=S+(m=f?Math.abs(this.elem.comp.globalData.frameRate*f):Math.max(0,this.elem.data.op-S)):((!f||f>_.length-1)&&(f=_.length-1),m=(g=_[f].t)-S),u==="pingpong"){if(Math.floor((S-b)/m)%2==0)return this.getValueAtTime(((S-b)%m+S)/this.comp.globalData.frameRate,0)}else{if(u==="offset"){var T=this.getValueAtTime(S/this.comp.globalData.frameRate,0),x=this.getValueAtTime(g/this.comp.globalData.frameRate,0),w=this.getValueAtTime((m-(S-b)%m+S)/this.comp.globalData.frameRate,0),M=Math.floor((S-b)/m)+1;if(this.pv.length){for(y=(v=new Array(T.length)).length,d=0;d<y;d+=1)v[d]=w[d]-(x[d]-T[d])*M;return v}return w-(x-T)*M}if(u==="continue"){var k=this.getValueAtTime(S/this.comp.globalData.frameRate,0),I=this.getValueAtTime((S+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(y=(v=new Array(k.length)).length,d=0;d<y;d+=1)v[d]=k[d]+(k[d]-I[d])*(S-b)/.001;return v}return k+(k-I)*(S-b)/.001}}return this.getValueAtTime((m-((S-b)%m+S))/this.comp.globalData.frameRate,0)}function r(u,f){if(!this.k)return this.pv;if(u=.5*(u||.4),(f=Math.floor(f||5))<=1)return this.pv;var p,m,g=this.comp.renderedFrame/this.comp.globalData.frameRate,d=g-u,y=f>1?(g+u-d)/(f-1):1,v=0,b=0;for(p=this.pv.length?createTypedArray("float32",this.pv.length):0;v<f;){if(m=this.getValueAtTime(d+v*y),this.pv.length)for(b=0;b<this.pv.length;b+=1)p[b]+=m[b];else p+=m;v+=1}if(this.pv.length)for(b=0;b<this.pv.length;b+=1)p[b]/=f;else p/=f;return p}function i(u){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var f=this._transformCachingAtTime.v;if(f.cloneFromProps(this.pre.props),this.appliedTransformations<1){var p=this.a.getValueAtTime(u);f.translate(-p[0]*this.a.mult,-p[1]*this.a.mult,p[2]*this.a.mult)}if(this.appliedTransformations<2){var m=this.s.getValueAtTime(u);f.scale(m[0]*this.s.mult,m[1]*this.s.mult,m[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var g=this.sk.getValueAtTime(u),d=this.sa.getValueAtTime(u);f.skewFromAxis(-g*this.sk.mult,d*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var y=this.r.getValueAtTime(u);f.rotate(-y*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var v=this.rz.getValueAtTime(u),b=this.ry.getValueAtTime(u),_=this.rx.getValueAtTime(u),S=this.or.getValueAtTime(u);f.rotateZ(-v*this.rz.mult).rotateY(b*this.ry.mult).rotateX(_*this.rx.mult).rotateZ(-S[2]*this.or.mult).rotateY(S[1]*this.or.mult).rotateX(S[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var T=this.px.getValueAtTime(u),x=this.py.getValueAtTime(u);if(this.data.p.z){var w=this.pz.getValueAtTime(u);f.translate(T*this.px.mult,x*this.py.mult,-w*this.pz.mult)}else f.translate(T*this.px.mult,x*this.py.mult,0)}else{var M=this.p.getValueAtTime(u);f.translate(M[0]*this.p.mult,M[1]*this.p.mult,-M[2]*this.p.mult)}return f}function n(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(u,f,p){var m=s(u,f,p);return m.dynamicProperties.length?m.getValueAtTime=i.bind(m):m.getValueAtTime=n.bind(m),m.setGroupProperty=expressionHelpers.setGroupProperty,m};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(u,f,p,m,g){var d=a(u,f,p,m,g);d.kf?d.getValueAtTime=expressionHelpers.getValueAtTime.bind(d):d.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(d),d.setGroupProperty=expressionHelpers.setGroupProperty,d.loopOut=t,d.loopIn=e,d.smooth=r,d.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(d),d.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(d),d.numKeys=f.a===1?f.k.length:0,d.propertyIndex=f.ix;var y=0;return p!==0&&(y=createTypedArray("float32",f.a===1?f.k[0].s.length:f.k.length)),d._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:y},expressionHelpers.searchExpressions(u,f,d),d.k&&g.addDynamicProperty(d),d};var o=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function h(){}h.prototype={vertices:function(u,f){this.k&&this.getValue();var p,m=this.v;f!==void 0&&(m=this.getValueAtTime(f,0));var g=m._length,d=m[u],y=m.v,v=createSizedArray(g);for(p=0;p<g;p+=1)v[p]=u==="i"||u==="o"?[d[p][0]-y[p][0],d[p][1]-y[p][1]]:[d[p][0],d[p][1]];return v},points:function(u){return this.vertices("v",u)},inTangents:function(u){return this.vertices("i",u)},outTangents:function(u){return this.vertices("o",u)},isClosed:function(){return this.v.c},pointOnPath:function(u,f){var p=this.v;f!==void 0&&(p=this.getValueAtTime(f,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(p));for(var m,g=this._segmentsLength,d=g.lengths,y=g.totalLength*u,v=0,b=d.length,_=0;v<b;){if(_+d[v].addedLength>y){var S=v,T=p.c&&v===b-1?0:v+1,x=(y-_)/d[v].addedLength;m=bez.getPointInSegment(p.v[S],p.v[T],p.o[S],p.i[T],x,d[v]);break}_+=d[v].addedLength,v+=1}return m||(m=p.c?[p.v[0][0],p.v[0][1]]:[p.v[p._length-1][0],p.v[p._length-1][1]]),m},vectorOnPath:function(u,f,p){u==1?u=this.v.c:u==0&&(u=.999);var m=this.pointOnPath(u,f),g=this.pointOnPath(u+.001,f),d=g[0]-m[0],y=g[1]-m[1],v=Math.sqrt(Math.pow(d,2)+Math.pow(y,2));return v===0?[0,0]:p==="tangent"?[d/v,y/v]:[-y/v,d/v]},tangentOnPath:function(u,f){return this.vectorOnPath(u,f,"tangent")},normalOnPath:function(u,f){return this.vectorOnPath(u,f,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([h],o),extendPrototype([h],l),l.prototype.getValueAtTime=function(u){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),u*=this.elem.globalData.frameRate,(u-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<u?this._caching.lastIndex:0,this._cachingAtTime.lastTime=u,this.interpolateShape(u,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(u,f,p,m,g){var d=c(u,f,p,m,g);return d.propertyIndex=f.ix,d.lock=!1,p===3?expressionHelpers.searchExpressions(u,f.pt,d):p===4&&expressionHelpers.searchExpressions(u,f.ks,d),d.k&&u.addDynamicProperty(d),d}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var r=this.calculateExpression(e);if(t.t!==r){var i={};return this.copyData(i,t),i.t=r.toString(),i.__complete=!1,i}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,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(){}function SVGTintFilter(t,e,r,i,n){this.filterManager=e;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.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"),s.setAttribute("result",i+"_tint_1"),t.appendChild(s),(s=createNS("feColorMatrix")).setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",i+"_tint_2"),t.appendChild(s),this.matrixFilter=s;var a=this.createMergeNode(i,[n,i+"_tint_1",i+"_tint_2"]);t.appendChild(a)}function SVGFillFilter(t,e,r,i){this.filterManager=e;var n=createNS("feColorMatrix");n.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),t.appendChild(n),this.matrixFilter=n}function SVGStrokeEffect(t,e,r){this.initialized=!1,this.filterManager=e,this.elem=r,this.paths=[]}function SVGTritoneFilter(t,e,r,i){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.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"),t.appendChild(n);var s=createNS("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",i),this.matrixFilter=s;var a=createNS("feFuncR");a.setAttribute("type","table"),s.appendChild(a),this.feFuncR=a;var o=createNS("feFuncG");o.setAttribute("type","table"),s.appendChild(o),this.feFuncG=o;var l=createNS("feFuncB");l.setAttribute("type","table"),s.appendChild(l),this.feFuncB=l,t.appendChild(s)}function SVGProLevelsFilter(t,e,r,i){this.filterManager=e;var n=this.filterManager.effectElements,s=createNS("feComponentTransfer");(n[10].p.k||n[10].p.v!==0||n[11].p.k||n[11].p.v!==1||n[12].p.k||n[12].p.v!==1||n[13].p.k||n[13].p.v!==0||n[14].p.k||n[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(n[17].p.k||n[17].p.v!==0||n[18].p.k||n[18].p.v!==1||n[19].p.k||n[19].p.v!==1||n[20].p.k||n[20].p.v!==0||n[21].p.k||n[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(n[24].p.k||n[24].p.v!==0||n[25].p.k||n[25].p.v!==1||n[26].p.k||n[26].p.v!==1||n[27].p.k||n[27].p.v!==0||n[28].p.k||n[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(n[31].p.k||n[31].p.v!==0||n[32].p.k||n[32].p.v!==1||n[33].p.k||n[33].p.v!==1||n[34].p.k||n[34].p.v!==0||n[35].p.k||n[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s)),(n[3].p.k||n[3].p.v!==0||n[4].p.k||n[4].p.v!==1||n[5].p.k||n[5].p.v!==1||n[6].p.k||n[6].p.v!==0||n[7].p.k||n[7].p.v!==1)&&((s=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",i),t.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}function SVGDropShadowEffect(t,e,r,i,n){var s=e.container.globalData.renderConfig.filterSize,a=e.data.fs||s;t.setAttribute("x",a.x||s.x),t.setAttribute("y",a.y||s.y),t.setAttribute("width",a.width||s.width),t.setAttribute("height",a.height||s.height),this.filterManager=e;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",i+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,t.appendChild(o);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,t.appendChild(l);var h=createNS("feFlood");h.setAttribute("flood-color","#00ff00"),h.setAttribute("flood-opacity","1"),h.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=h,t.appendChild(h);var c=createNS("feComposite");c.setAttribute("in",i+"_drop_shadow_3"),c.setAttribute("in2",i+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",i+"_drop_shadow_4"),t.appendChild(c);var u=this.createMergeNode(i,[i+"_drop_shadow_4",n]);t.appendChild(u)}SVGComposableEffect.prototype={createMergeNode:function(t,e){var r,i,n=createNS("feMerge");for(n.setAttribute("result",t),i=0;i<e.length;i+=1)(r=createNS("feMergeNode")).setAttribute("in",e[i]),n.appendChild(r),n.appendChild(r);return n}},extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,r,i,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(this.filterManager.effectElements[1].p.v===1?(i=this.elem.maskManager.masksProperties.length,r=0):i=(r=this.filterManager.effectElements[0].p.v-1)+1,(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);r<i;r+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:r});if(this.filterManager.effectElements[10].p.v===3){var s=createNS("mask"),a=createElementID();s.setAttribute("id",a),s.setAttribute("mask-type","alpha"),s.appendChild(e),this.elem.globalData.defs.appendChild(s);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+a+")");n[0];)o.appendChild(n[0]);this.elem.layerElement.appendChild(o),this.masker=s,e.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(n=this.elem.layerElement.children||this.elem.layerElement.childNodes;n.length;)this.elem.layerElement.removeChild(n[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){var e;this.initialized||this.initialize();var r,i,n=this.paths.length;for(e=0;e<n;e+=1)if(this.paths[e].m!==-1&&(r=this.elem.maskManager.viewData[this.paths[e].m],i=this.paths[e].p,(t||this.filterManager._mdf||r.prop._mdf)&&i.setAttribute("d",r.lastPath),t||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 s;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=i.getTotalLength();s="0 0 0 "+l*a+" ";var h,c=l*(o-a),u=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,f=Math.floor(c/u);for(h=0;h<f;h+=1)s+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";s+="0 "+10*l+" 0 0"}else s="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;i.setAttribute("stroke-dasharray",s)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(t||this.filterManager.effectElements[3].p._mdf)){var p=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*p[0])+","+bmFloor(255*p[1])+","+bmFloor(255*p[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,n=i[0]+" "+r[0]+" "+e[0],s=i[1]+" "+r[1]+" "+e[1],a=i[2]+" "+r[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var r=createNS(t);return r.setAttribute("type","table"),e.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(t,e,r,i,n){for(var s,a,o=0,l=Math.min(t,e),h=Math.max(t,e),c=Array.call(null,{length:256}),u=0,f=n-i,p=e-t;o<=256;)a=(s=o/256)<=l?p<0?n:i:s>=h?p<0?i:n:i+f*Math.pow((s-t)/p,1/r),c[u]=a,u+=1,o+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=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",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=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",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=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",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=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",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=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",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||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,n=r*Math.cos(i),s=r*Math.sin(i);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(t,e,r,i){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var n=createNS("feGaussianBlur");n.setAttribute("result",i),t.appendChild(n),this.feGaussianBlur=n}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e<r;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var r=t.layerElement.parentNode;if(r){for(var i,n=r.children,s=0,a=n.length;s<a&&n[s]!==t.layerElement;)s+=1;s<=a-2&&(i=n[s+1]);var o=createNS("use");o.setAttribute("href","#"+e),i?r.insertBefore(o,i):r.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",e.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var n=t.globalData.defs;n.appendChild(i);var s=createNS("symbol");s.setAttribute("id",r),this.replaceInParent(e,r),s.appendChild(e.layerElement),n.appendChild(s);var a=createNS("use");a.setAttribute("href","#"+r),i.appendChild(a),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,r=0,i=e.length;r<i;)e[r]&&e[r].data.ind===t&&this.setElementAsMask(this.elem,e[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=r==3?0:e,n=r==2?0:e;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+n);var s=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}},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(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie})}),ku,a0=Ug(ku||(ku=ki([`
26
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),vu=/'/g,bu=/"/g,ip=/^(?:script|style|textarea|title)$/i,np=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Os=np(1),h_=np(2),Ii=Symbol.for("lit-noChange"),Ue=Symbol.for("lit-nothing"),_u=new WeakMap,Ai=Ti.createTreeWalker(Ti,129,null,!1),sp=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":"",a=mn;for(let l=0;l<r;l++){let h=t[l],c,u,f=-1,p=0;for(;p<h.length&&(a.lastIndex=p,u=a.exec(h),u!==null);)p=a.lastIndex,a===mn?u[1]==="!--"?a=gu:u[1]!==void 0?a=yu:u[2]!==void 0?(ip.test(u[2])&&(n=RegExp("</"+u[2],"g")),a=Yr):u[3]!==void 0&&(a=Yr):a===Yr?u[0]===">"?(a=n??mn,f=-1):u[1]===void 0?f=-2:(f=a.lastIndex-u[2].length,c=u[1],a=u[3]===void 0?Yr:u[3]==='"'?bu:vu):a===bu||a===vu?a=Yr:a===gu||a===yu?a=mn:(a=Yr,n=void 0);let m=a===Yr&&t[l+1].startsWith("/>")?" ":"";s+=a===mn?h+Zg:f>=0?(i.push(c),h.slice(0,f)+"$lit$"+h.slice(f)+ar+m):h+ar+(f===-2?(i.push(void 0),l):m)}let o=s+(t[r]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[mu!==void 0?mu.createHTML(o):o,i]},Sn=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,a=0,o=e.length-1,l=this.parts,[h,c]=sp(e,r);if(this.el=t.createElement(h,i),Ai.currentNode=this.el.content,r===2){let u=this.el.content,f=u.firstChild;f.remove(),u.append(...f.childNodes)}for(;(n=Ai.nextNode())!==null&&l.length<o;){if(n.nodeType===1){if(n.hasAttributes()){let u=[];for(let f of n.getAttributeNames())if(f.endsWith("$lit$")||f.startsWith(ar)){let p=c[a++];if(u.push(f),p!==void 0){let m=n.getAttribute(p.toLowerCase()+"$lit$").split(ar),g=/([.?@])?(.*)/.exec(p);l.push({type:1,index:s,name:g[2],strings:m,ctor:g[1]==="."?Zs:g[1]==="?"?Ys:g[1]==="@"?Js:Kr})}else l.push({type:6,index:s})}for(let f of u)n.removeAttribute(f)}if(ip.test(n.tagName)){let u=n.textContent.split(ar),f=u.length-1;if(f>0){n.textContent=Ci?Ci.emptyScript:"";for(let p=0;p<f;p++)n.append(u[p],wn()),Ai.nextNode(),l.push({type:2,index:++s});n.append(u[f],wn())}}}else if(n.nodeType===8)if(n.data===kl)l.push({type:2,index:s});else{let u=-1;for(;(u=n.data.indexOf(ar,u+1))!==-1;)l.push({type:7,index:s}),u+=ar.length-1}s++}}static createElement(e,r){let i=Ti.createElement("template");return i.innerHTML=e,i}};function Xr(t,e,r=t,i){var n,s,a,o;if(e===Ii)return e;let l=i!==void 0?(n=r._$Co)===null||n===void 0?void 0:n[i]:r._$Cl,h=xn(e)?void 0:e._$litDirective$;return l?.constructor!==h&&((s=l?._$AO)===null||s===void 0||s.call(l,!1),h===void 0?l=void 0:(l=new h(t),l._$AT(t,r,i)),i!==void 0?((a=(o=r)._$Co)!==null&&a!==void 0?a:o._$Co=[])[i]=l:r._$Cl=l),l!==void 0&&(e=Xr(t,l._$AS(t,e.values),l,i)),e}var Ws=class{constructor(e,r){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var r;let{el:{content:i},parts:n}=this._$AD,s=((r=e?.creationScope)!==null&&r!==void 0?r:Ti).importNode(i,!0);Ai.currentNode=s;let a=Ai.nextNode(),o=0,l=0,h=n[0];for(;h!==void 0;){if(o===h.index){let c;h.type===2?c=new Mi(a,a.nextSibling,this,e):h.type===1?c=new h.ctor(a,h.name,h.strings,this,e):h.type===6&&(c=new Xs(a,this,e)),this.u.push(c),h=n[++l]}o!==h?.index&&(a=Ai.nextNode(),o++)}return s}p(e){let r=0;for(let i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Mi=class t{constructor(e,r,i,n){var s;this.type=2,this._$AH=Ue,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cm=(s=n?.isConnected)===null||s===void 0||s}get _$AU(){var e,r;return(r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cm}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Xr(this,e,r),xn(e)?e===Ue||e==null||e===""?(this._$AH!==Ue&&this._$AR(),this._$AH=Ue):e!==this._$AH&&e!==Ii&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):rp(e)?this.k(e):this.g(e)}O(e,r=this._$AB){return this._$AA.parentNode.insertBefore(e,r)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==Ue&&xn(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ti.createTextNode(e)),this._$AH=e}$(e){var r;let{values:i,_$litType$:n}=e,s=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Sn.createElement(n.h,this.options)),n);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===s)this._$AH.p(i);else{let a=new Ws(s,this),o=a.v(this.options);a.p(i),this.T(o),this._$AH=a}}_$AC(e){let r=_u.get(e.strings);return r===void 0&&_u.set(e.strings,r=new Sn(e)),r}k(e){tp(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(wn()),this.O(wn()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){var r;this._$AM===void 0&&(this._$Cm=e,(r=this._$AP)===null||r===void 0||r.call(this,e))}},Kr=class{constructor(e,r,i,n,s){this.type=1,this._$AH=Ue,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Ue}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,i,n){let s=this.strings,a=!1;if(s===void 0)e=Xr(this,e,r,0),a=!xn(e)||e!==this._$AH&&e!==Ii,a&&(this._$AH=e);else{let o=e,l,h;for(e=s[0],l=0;l<s.length-1;l++)h=Xr(this,o[i+l],r,l),h===Ii&&(h=this._$AH[l]),a||(a=!xn(h)||h!==this._$AH[l]),h===Ue?e=Ue:e!==Ue&&(e+=(h??"")+s[l+1]),this._$AH[l]=h}a&&!n&&this.j(e)}j(e){e===Ue?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Zs=class extends Kr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ue?void 0:e}},Yg=Ci?Ci.emptyScript:"",Ys=class extends Kr{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Ue?this.element.setAttribute(this.name,Yg):this.element.removeAttribute(this.name)}},Js=class extends Kr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){var i;if((e=(i=Xr(this,e,r,0))!==null&&i!==void 0?i:Ue)===Ii)return;let n=this._$AH,s=e===Ue&&n!==Ue||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==Ue&&(n===Ue||s);s&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}},Xs=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Xr(this,e)}},c_={P:"$lit$",A:ar,M:kl,C:1,L:sp,R:Ws,D:rp,V:Xr,I:Mi,H:Kr,N:Ys,U:Js,B:Zs,F:Xs},wu=Us.litHtmlPolyfillSupport;wu?.(Sn,Mi),((Xo=Us.litHtmlVersions)!==null&&Xo!==void 0?Xo:Us.litHtmlVersions=[]).push("2.5.0");var Jg=(t,e,r)=>{var i,n;let s=(i=r?.renderBefore)!==null&&i!==void 0?i:e,a=s._$litPart$;if(a===void 0){let o=(n=r?.renderBefore)!==null&&n!==void 0?n:null;s._$litPart$=a=new Mi(e.insertBefore(wn(),o),o,void 0,r??{})}return a._$AI(t),a;},Ko,Qo,u_=sr,Jr=class extends sr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;let i=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=i.firstChild),i}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Jg(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return Ii}};Jr.finalized=!0,Jr._$litElement$=!0,(Ko=globalThis.litElementHydrateSupport)===null||Ko===void 0||Ko.call(globalThis,{LitElement:Jr});var xu=globalThis.litElementPolyfillSupport;xu?.({LitElement:Jr});var p_={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};((Qo=globalThis.litElementVersions)!==null&&Qo!==void 0?Qo:globalThis.litElementVersions=[]).push("3.2.2");var d_=!1,Xg=t=>e=>typeof e=="function"?((r,i)=>(customElements.define(r,i),i))(t,e):((r,i)=>{let{kind:n,elements:s}=i;return{kind:n,elements:s,finisher(a){customElements.define(r,a)}}})(t,e),Kg=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function st(t){return(e,r)=>r!==void 0?((i,n,s)=>{n.constructor.createProperty(s,i)})(t,e,r):Kg(t,e);}function f_(t){return st({...t,state:!0})}var m_=(t,e,r)=>{Object.defineProperty(e,r,t)},g_=(t,e)=>({kind:"method",placement:"prototype",key:e.key,descriptor:t}),Ri=({finisher:t,descriptor:e})=>(r,i)=>{var n;if(i===void 0){let s=(n=r.originalKey)!==null&&n!==void 0?n:r.key,a=e!=null?{kind:"method",placement:"prototype",key:s,descriptor:e(r.key)}:{...r,key:s};return t!=null&&(a.finisher=function(o){t(o,s)}),a}{let s=r.constructor;e!==void 0&&Object.defineProperty(r,i,e(i)),t?.(s,i)}};function y_(t){return Ri({finisher:(e,r)=>{Object.assign(e.prototype[r],t)}})}function Qg(t,e){return Ri({descriptor:r=>{let i={get(){var n,s;return(s=(n=this.renderRoot)===null||n===void 0?void 0:n.querySelector(t))!==null&&s!==void 0?s:null},enumerable:!0,configurable:!0};if(e){let n=typeof r=="symbol"?Symbol():"__"+r;i.get=function(){var s,a;return this[n]===void 0&&(this[n]=(a=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(t))!==null&&a!==void 0?a:null),this[n]}}return i}})}function v_(t){return Ri({descriptor:e=>({get(){var r,i;return(i=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelectorAll(t))!==null&&i!==void 0?i:[]},enumerable:!0,configurable:!0})})}function b_(t){return Ri({descriptor:e=>({async get(){var r;return await this.updateComplete,(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector(t)},enumerable:!0,configurable:!0})})}var el,e0=((el=window.HTMLSlotElement)===null||el===void 0?void 0:el.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(r=>r.nodeType===Node.ELEMENT_NODE);function t0(t){let{slot:e,selector:r}=t??{};return Ri({descriptor:i=>({get(){var n;let s="slot"+(e?`[name=${e}]`:":not([name])"),a=(n=this.renderRoot)===null||n===void 0?void 0:n.querySelector(s),o=a!=null?e0(a,t):[];return r?o.filter(l=>l.matches(r)):o},enumerable:!0,configurable:!0})})}function __(t,e,r){let i,n=t;return typeof t=="object"?(n=t.slot,i=t):i={flatten:e},r?t0({slot:n,flatten:e,selector:r}):Ri({descriptor:s=>({get(){var a,o;let l="slot"+(n?`[name=${n}]`:":not([name])"),h=(a=this.renderRoot)===null||a===void 0?void 0:a.querySelector(l);return(o=h?.assignedNodes(i))!==null&&o!==void 0?o:[]},enumerable:!0,configurable:!0})})}var w_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function r0(t,e,r){return t(r={path:e,exports:{},require:function(i,n){return i0(i,n??r.path)}},r.exports),r.exports}function x_(t){return t&&t.default||t}function i0(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var n0=r0(function(module,exports){typeof navigator<"u"&&function(t,e){module.exports=e()}(0,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var r,i,n=t.length;for(r=0;r<n;r+=1)for(var s in i=t[r].prototype)Object.prototype.hasOwnProperty.call(i,s)&&(e.prototype[s]=i[s])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].pause()},resume:function(){var e,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].resume()},setRate:function(e){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].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,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(e,r){var i,n=0,s=[];switch(e){case"int16":case"uint8c":i=1;break;default:i=1.1}for(n=0;n<r;n+=1)s.push(i);return s}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?function(e,r){return e==="float32"?new Float32Array(r):e==="int16"?new Int16Array(r):e==="uint8c"?new Uint8ClampedArray(r):t(e,r)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return(_typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}(function(){var t,e=["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=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(t){if(_typeof$6(t)==="object"&&t.length){var e,r=createSizedArray(t.length),i=t.length;for(e=0;e<i;e+=1)r[e]=Math.abs(t[e]);return r}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,r,i){this.type=t,this.currentTime=e,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,r,i){this.type=t,this.currentLoop=r,this.totalLoops=e,this.direction=i<0?-1:1}function BMSegmentStartEvent(t,e,r){this.type=t,this.firstFrame=e,this.totalFrames=r}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,e,r){var i,n,s,a,o,l,h,c;switch(l=r*(1-e),h=r*(1-(o=6*t-(a=Math.floor(6*t)))*e),c=r*(1-(1-o)*e),a%6){case 0:i=r,n=c,s=l;break;case 1:i=h,n=r,s=l;break;case 2:i=l,n=r,s=c;break;case 3:i=l,n=h,s=r;break;case 4:i=c,n=l,s=r;break;case 5:i=r,n=l,s=h}return[i,n,s]}function RGBtoHSV(t,e,r){var i,n=Math.max(t,e,r),s=Math.min(t,e,r),a=n-s,o=n===0?0:a/n,l=n/255;switch(n){case s:i=0;break;case t:i=e-r+a*(e<r?6:0),i/=6*a;break;case e:i=r-t+2*a,i/=6*a;break;case r:i=t-e+4*a,i/=6*a}return[i,o,l]}function addSaturationToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[1]+=e,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t,e,r=[];for(t=0;t<256;t+=1)e=t.toString(16),r[t]=e.length===1?"0"+e:e;return function(i,n,s){return i<0&&(i=0),n<0&&(n=0),s<0&&(s=0),"#"+r[i]+r[n]+r[s]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return(_typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var dataManager=function(){var t,e,r=1,i=[],n={onmessage:function(){},postMessage:function(l){t({data:l})}},s={postMessage:function(l){n.onmessage({data:l})}};function a(){e||((e=function(l){if(window.Worker&&window.Blob&&getWebWorker()){var h=new Blob(["var _workerSelf = self; self.onmessage = ",l.toString()],{type:"text/javascript"}),c=URL.createObjectURL(h);return new Worker(c)}return t=l,n}(function(l){if(s.dataManager||(s.dataManager=function(){function c(x,w){var M,k,I,P,A,E,F=x.length;for(k=0;k<F;k+=1)if("ks"in(M=x[k])&&!M.completed){if(M.completed=!0,M.hasMask){var $=M.masksProperties;for(P=$.length,I=0;I<P;I+=1)if($[I].pt.k.i)p($[I].pt.k);else for(E=$[I].pt.k.length,A=0;A<E;A+=1)$[I].pt.k[A].s&&p($[I].pt.k[A].s[0]),$[I].pt.k[A].e&&p($[I].pt.k[A].e[0])}M.ty===0?(M.layers=u(M.refId,w),c(M.layers,w)):M.ty===4?f(M.shapes):M.ty===5&&S(M)}}function u(x,w){var M=function(k,I){for(var P=0,A=I.length;P<A;){if(I[P].id===k)return I[P];P+=1}return null}(x,w);return M?M.layers.__used?JSON.parse(JSON.stringify(M.layers)):(M.layers.__used=!0,M.layers):null}function f(x){var w,M,k;for(w=x.length-1;w>=0;w-=1)if(x[w].ty==="sh")if(x[w].ks.k.i)p(x[w].ks.k);else for(k=x[w].ks.k.length,M=0;M<k;M+=1)x[w].ks.k[M].s&&p(x[w].ks.k[M].s[0]),x[w].ks.k[M].e&&p(x[w].ks.k[M].e[0]);else x[w].ty==="gr"&&f(x[w].it)}function p(x){var w,M=x.i.length;for(w=0;w<M;w+=1)x.i[w][0]+=x.v[w][0],x.i[w][1]+=x.v[w][1],x.o[w][0]+=x.v[w][0],x.o[w][1]+=x.v[w][1]}function m(x,w){var M=w?w.split("."):[100,100,100];return x[0]>M[0]||!(M[0]>x[0])&&(x[1]>M[1]||!(M[1]>x[1])&&(x[2]>M[2]||!(M[2]>x[2])&&null))}var g,d=function(){var x=[4,4,14];function w(M){var k,I,P,A=M.length;for(k=0;k<A;k+=1)M[k].ty===5&&(I=M[k],P=void 0,P=I.t.d,I.t.d={k:[{s:P,t:0}]})}return function(M){if(m(x,M.v)&&(w(M.layers),M.assets)){var k,I=M.assets.length;for(k=0;k<I;k+=1)M.assets[k].layers&&w(M.assets[k].layers)}}}(),y=(g=[4,7,99],function(x){if(x.chars&&!m(g,x.v)){var w,M=x.chars.length;for(w=0;w<M;w+=1){var k=x.chars[w];k.data&&k.data.shapes&&(f(k.data.shapes),k.data.ip=0,k.data.op=99999,k.data.st=0,k.data.sr=1,k.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}},x.chars[w].t||(k.data.shapes.push({ty:"no"}),k.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"})))}}}),v=function(){var x=[5,7,15];function w(M){var k,I,P,A=M.length;for(k=0;k<A;k+=1)M[k].ty===5&&(I=M[k],P=void 0,typeof(P=I.t.p).a=="number"&&(P.a={a:0,k:P.a}),typeof P.p=="number"&&(P.p={a:0,k:P.p}),typeof P.r=="number"&&(P.r={a:0,k:P.r}))}return function(M){if(m(x,M.v)&&(w(M.layers),M.assets)){var k,I=M.assets.length;for(k=0;k<I;k+=1)M.assets[k].layers&&w(M.assets[k].layers)}}}(),b=function(){var x=[4,1,9];function w(k){var I,P,A,E=k.length;for(I=0;I<E;I+=1)if(k[I].ty==="gr")w(k[I].it);else if(k[I].ty==="fl"||k[I].ty==="st")if(k[I].c.k&&k[I].c.k[0].i)for(A=k[I].c.k.length,P=0;P<A;P+=1)k[I].c.k[P].s&&(k[I].c.k[P].s[0]/=255,k[I].c.k[P].s[1]/=255,k[I].c.k[P].s[2]/=255,k[I].c.k[P].s[3]/=255),k[I].c.k[P].e&&(k[I].c.k[P].e[0]/=255,k[I].c.k[P].e[1]/=255,k[I].c.k[P].e[2]/=255,k[I].c.k[P].e[3]/=255);else k[I].c.k[0]/=255,k[I].c.k[1]/=255,k[I].c.k[2]/=255,k[I].c.k[3]/=255}function M(k){var I,P=k.length;for(I=0;I<P;I+=1)k[I].ty===4&&w(k[I].shapes)}return function(k){if(m(x,k.v)&&(M(k.layers),k.assets)){var I,P=k.assets.length;for(I=0;I<P;I+=1)k.assets[I].layers&&M(k.assets[I].layers)}}}(),_=function(){var x=[4,4,18];function w(k){var I,P,A;for(I=k.length-1;I>=0;I-=1)if(k[I].ty==="sh")if(k[I].ks.k.i)k[I].ks.k.c=k[I].closed;else for(A=k[I].ks.k.length,P=0;P<A;P+=1)k[I].ks.k[P].s&&(k[I].ks.k[P].s[0].c=k[I].closed),k[I].ks.k[P].e&&(k[I].ks.k[P].e[0].c=k[I].closed);else k[I].ty==="gr"&&w(k[I].it)}function M(k){var I,P,A,E,F,$,D=k.length;for(P=0;P<D;P+=1){if((I=k[P]).hasMask){var C=I.masksProperties;for(E=C.length,A=0;A<E;A+=1)if(C[A].pt.k.i)C[A].pt.k.c=C[A].cl;else for($=C[A].pt.k.length,F=0;F<$;F+=1)C[A].pt.k[F].s&&(C[A].pt.k[F].s[0].c=C[A].cl),C[A].pt.k[F].e&&(C[A].pt.k[F].e[0].c=C[A].cl)}I.ty===4&&w(I.shapes)}}return function(k){if(m(x,k.v)&&(M(k.layers),k.assets)){var I,P=k.assets.length;for(I=0;I<P;I+=1)k.assets[I].layers&&M(k.assets[I].layers)}}}();function S(x){x.t.a.length===0&&x.t.p}var T={completeData:function(x){x.__complete||(b(x),d(x),y(x),v(x),_(x),c(x.layers,x.assets),function(w,M){if(w){var k=0,I=w.length;for(k=0;k<I;k+=1)w[k].t===1&&(w[k].data.layers=u(w[k].data.refId,M),c(w[k].data.layers,M))}}(x.chars,x.assets),x.__complete=!0)}};return T.checkColors=b,T.checkChars=y,T.checkPathProperties=v,T.checkShapes=_,T.completeLayers=c,T}()),s.assetLoader||(s.assetLoader=function(){function c(u){var f=u.getResponseHeader("content-type");return f&&u.responseType==="json"&&f.indexOf("json")!==-1||u.response&&_typeof$5(u.response)==="object"?u.response:u.response&&typeof u.response=="string"?JSON.parse(u.response):u.responseText?JSON.parse(u.responseText):null}return{load:function(u,f,p,m){var g,d=new XMLHttpRequest;try{d.responseType="json"}catch{}d.onreadystatechange=function(){if(d.readyState===4)if(d.status===200)g=c(d),p(g);else try{g=c(d),p(g)}catch(y){m&&m(y)}};try{d.open(["G","E","T"].join(""),u,!0)}catch{d.open(["G","E","T"].join(""),f+"/"+u,!0)}d.send()}}}()),l.data.type==="loadAnimation")s.assetLoader.load(l.data.path,l.data.fullPath,function(c){s.dataManager.completeData(c),s.postMessage({id:l.data.id,payload:c,status:"success"})},function(){s.postMessage({id:l.data.id,status:"error"})});else if(l.data.type==="complete"){var h=l.data.animation;s.dataManager.completeData(h),s.postMessage({id:l.data.id,payload:h,status:"success"})}else l.data.type==="loadData"&&s.assetLoader.load(l.data.path,l.data.fullPath,function(c){s.postMessage({id:l.data.id,payload:c,status:"success"})},function(){s.postMessage({id:l.data.id,status:"error"})})})).onmessage=function(l){var h=l.data,c=h.id,u=i[c];i[c]=null,h.status==="success"?u.onComplete(h.payload):u.onError&&u.onError()})}function o(l,h){var c="processId_"+(r+=1);return i[c]={onComplete:l,onError:h},c}return{loadAnimation:function(l,h,c){a();var u=o(h,c);e.postMessage({type:"loadAnimation",path:l,fullPath:window.location.origin+window.location.pathname,id:u})},loadData:function(l,h,c){a();var u=o(h,c);e.postMessage({type:"loadData",path:l,fullPath:window.location.origin+window.location.pathname,id:u})},completeAnimation:function(l,h,c){a();var u=o(h,c);e.postMessage({type:"complete",animation:l,id:u})}}}(),ImagePreloader=function(){var t=function(){var o=createTag("canvas");o.width=1,o.height=1;var l=o.getContext("2d");return l.fillStyle="rgba(0,0,0,0)",l.fillRect(0,0,1,1),o}();function e(){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(o,l,h){var c="";if(o.e)c=o.p;else if(l){var u=o.p;u.indexOf("images/")!==-1&&(u=u.split("/")[1]),c=l+u}else c=h,c+=o.u?o.u:"",c+=o.p;return c}function n(o){var l=0,h=setInterval(function(){(o.getBBox().width||l>500)&&(this._imageLoaded(),clearInterval(h)),l+=1}.bind(this),50)}function s(o){var l={assetData:o},h=i(o,this.assetsPath,this.path);return dataManager.loadData(h,function(c){l.img=c,this._footageLoaded()}.bind(this),function(){l.img={},this._footageLoaded()}.bind(this)),l}function a(){this._imageLoaded=e.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=s.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(o,l){var h;this.imagesLoadedCb=l;var c=o.length;for(h=0;h<c;h+=1)o[h].layers||(o[h].t&&o[h].t!=="seq"?o[h].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(o[h]))):(this.totalImages+=1,this.images.push(this._createImageData(o[h]))))},setAssetsPath:function(o){this.assetsPath=o||""},setPath:function(o){this.path=o||""},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(o){for(var l=0,h=this.images.length;l<h;){if(this.images[l].assetData===o)return this.images[l].img;l+=1}return null},createImgData:function(o){var l=i(o,this.assetsPath,this.path),h=createTag("img");h.crossOrigin="anonymous",h.addEventListener("load",this._imageLoaded,!1),h.addEventListener("error",function(){c.img=t,this._imageLoaded()}.bind(this),!1),h.src=l;var c={img:h,assetData:o};return c},createImageData:function(o){var l=i(o,this.assetsPath,this.path),h=createNS("image");isSafari?this.testImageLoaded(h):h.addEventListener("load",this._imageLoaded,!1),h.addEventListener("error",function(){c.img=t,this._imageLoaded()}.bind(this),!1),h.setAttributeNS("http://www.w3.org/1999/xlink","href",l),this._elementHelper.append?this._elementHelper.append(h):this._elementHelper.appendChild(h);var c={img:h,assetData:o};return c},imageLoaded:e,footageLoaded:r,setCacheType:function(o,l){o==="svg"?(this._elementHelper=l,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var r=this._cbs[t],i=0;i<r.length;i+=1)r[i](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var r=0,i=this._cbs[t].length;r<i;)this._cbs[t][r]===e&&(this._cbs[t].splice(r,1),r-=1,i-=1),r+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(e){for(var r,i=e.split(`\r
27
+ `),n={},s=0,a=0;a<i.length;a+=1)(r=i[a].split(":")).length===2&&(n[r[0]]=r[1].trim(),s+=1);if(s===0)throw new Error;return n}return function(e){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],s={time:n.tm,duration:n.dr};try{s.payload=JSON.parse(e[i].cm)}catch{try{s.payload=t(e[i].cm)}catch{s.payload={name:e[i].cm}}}r.push(s)}return r}}(),ProjectInterface=function(){function t(e){this.compositions.push(e)}return function(){function e(r){for(var i=0,n=this.compositions.length;i<n;){if(this.compositions[i].data&&this.compositions[i].data.nm===r)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function _typeof$4(t){return(_typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}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)};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var r=getRenderer(e);this.renderer=new r(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,t.loop===""||t.loop===null||t.loop===void 0||t.loop===!0?this.loop=!0:t.loop===!1?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(t.path.lastIndexOf("\\")!==-1?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&_typeof$4(e)!=="object"&&(e=JSON.parse(e));var r={wrapper:t,animationData:e},i=t.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:"canvas";var n=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:"";n==="false"?r.loop=!1:n==="true"?r.loop=!0:n!==""&&(r.loop=parseInt(n,10));var s=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=s!=="false",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:"",(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:"")==="false"&&(r.prerender=!1),this.setParams(r)},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,r,i=this.animationData.layers,n=i.length,s=t.layers,a=s.length;for(r=0;r<a;r+=1)for(e=0;e<n;){if(i[e].id===s[r].id){i[e]=s[r];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(n=t.assets.length,e=0;e<n;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||t.length===0||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.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(t){if(this.renderer)try{this.animationData=t,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(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.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()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var r=typeof t=="number"?t:void 0,i=typeof e=="number"?e:void 0;this.renderer.updateContainerSize(r,i)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},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(this.isLoaded!==!1&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,r=0;r<this.markers.length;r+=1)if((e=this.markers[r]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,r){if(!r||this.name===r){var i=Number(t);if(isNaN(i)){var n=this.getMarkerData(t);n&&this.goToAndStop(n.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,r){if(!r||this.name===r){var i=Number(t);if(isNaN(i)){var n=this.getMarkerData(t);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(i,e,r);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(this.isPaused!==!0&&this.isLoaded!==!1){var e=this.currentRawFrame+t*this.frameModifier,r=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(r=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&this.loop!==!0?(r=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?r=t:this.currentRawFrame+this.firstFrame>e&&(r=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),_typeof$4(t[0])==="object"){var r,i=t.length;for(r=0;r<i;r+=1)this.segments.push(t[r])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!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.renderer=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||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(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var r=t.p;r.indexOf("images/")!==-1&&(r=r.split("/")[1]),e=this.assetsPath+r}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,r=this.assets.length;e<r;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,r){try{this.renderer.getElementByPath(t).updateDocumentData(e,r)}catch{}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,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(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}t==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),t==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),t==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),t==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),t==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],r=0,i=0,n=0,s=!0,a=!1;function o(g){for(var d=0,y=g.target;d<i;)e[d].animation===y&&(e.splice(d,1),d-=1,i-=1,y.isPaused||c()),d+=1}function l(g,d){if(!g)return null;for(var y=0;y<i;){if(e[y].elem===g&&e[y].elem!==null)return e[y].animation;y+=1}var v=new AnimationItem;return u(v,g),v.setData(g,d),v}function h(){n+=1,m()}function c(){n-=1}function u(g,d){g.addEventListener("destroy",o),g.addEventListener("_active",h),g.addEventListener("_idle",c),e.push({elem:d,animation:g}),i+=1}function f(g){var d,y=g-r;for(d=0;d<i;d+=1)e[d].animation.advanceTime(y);r=g,n&&!a?window.requestAnimationFrame(f):s=!0}function p(g){r=g,window.requestAnimationFrame(f)}function m(){!a&&n&&s&&(window.requestAnimationFrame(p),s=!1)}return t.registerAnimation=l,t.loadAnimation=function(g){var d=new AnimationItem;return u(d,null),d.setParams(g),d},t.setSpeed=function(g,d){var y;for(y=0;y<i;y+=1)e[y].animation.setSpeed(g,d)},t.setDirection=function(g,d){var y;for(y=0;y<i;y+=1)e[y].animation.setDirection(g,d)},t.play=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.play(g)},t.pause=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.pause(g)},t.stop=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.stop(g)},t.togglePause=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.togglePause(g)},t.searchAnimations=function(g,d,y){var v,b=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),_=b.length;for(v=0;v<_;v+=1)y&&b[v].setAttribute("data-bm-type",y),l(b[v],g);if(d&&_===0){y||(y="svg");var S=document.getElementsByTagName("body")[0];S.innerText="";var T=createTag("div");T.style.width="100%",T.style.height="100%",T.setAttribute("data-bm-type",y),S.appendChild(T),l(T,g)}},t.resize=function(){var g;for(g=0;g<i;g+=1)e[g].animation.resize()},t.goToAndStop=function(g,d,y){var v;for(v=0;v<i;v+=1)e[v].animation.goToAndStop(g,d,y)},t.destroy=function(g){var d;for(d=i-1;d>=0;d-=1)e[d].animation.destroy(g)},t.freeze=function(){a=!0},t.unfreeze=function(){a=!1,m()},t.setVolume=function(g,d){var y;for(y=0;y<i;y+=1)e[y].animation.setVolume(g,d)},t.mute=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.mute(g)},t.unmute=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.unmute(g)},t.getRegisteredAnimations=function(){var g,d=e.length,y=[];for(g=0;g<d;g+=1)y.push(e[g].animation);return y},t}(),BezierFactory=function(){var t={getBezierEasing:function(h,c,u,f,p){var m=p||("bez_"+h+"_"+c+"_"+u+"_"+f).replace(/\./g,"p");if(e[m])return e[m];var g=new l([h,c,u,f]);return e[m]=g,g}},e={},r=typeof Float32Array=="function";function i(h,c){return 1-3*c+3*h}function n(h,c){return 3*c-6*h}function s(h){return 3*h}function a(h,c,u){return((i(c,u)*h+n(c,u))*h+s(c))*h}function o(h,c,u){return 3*i(c,u)*h*h+2*n(c,u)*h+s(c)}function l(h){this._p=h,this._mSampleValues=r?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return l.prototype={get:function(h){var c=this._p[0],u=this._p[1],f=this._p[2],p=this._p[3];return this._precomputed||this._precompute(),c===u&&f===p?h:h===0?0:h===1?1:a(this._getTForX(h),u,p)},_precompute:function(){var h=this._p[0],c=this._p[1],u=this._p[2],f=this._p[3];this._precomputed=!0,h===c&&u===f||this._calcSampleValues()},_calcSampleValues:function(){for(var h=this._p[0],c=this._p[2],u=0;u<11;++u)this._mSampleValues[u]=a(.1*u,h,c)},_getTForX:function(h){for(var c=this._p[0],u=this._p[2],f=this._mSampleValues,p=0,m=1;m!==10&&f[m]<=h;++m)p+=.1;var g=p+.1*((h-f[--m])/(f[m+1]-f[m])),d=o(g,c,u);return d>=.001?function(y,v,b,_){for(var S=0;S<4;++S){var T=o(v,b,_);if(T===0)return v;v-=(a(v,b,_)-y)/T}return v}(h,g,c,u):d===0?g:function(y,v,b,_,S){var T,x,w=0;do(T=a(x=v+(b-v)/2,_,S)-y)>0?b=x:v=x;while(Math.abs(T)>1e-7&&++w<10);return x}(h,p,p+.1,c,u)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,r){var i=0,n=t,s=createSizedArray(n);return{newElement:function(){return i?s[i-=1]:e()},release:function(a){i===n&&(s=pooling.double(s),n*=2),r&&r(a),s[i]=a,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(t){var e,r=t.lengths.length;for(e=0;e<r;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0});function bezFunction(){var t=Math;function e(h,c,u,f,p,m){var g=h*f+c*p+u*m-p*f-m*h-u*c;return g>-.001&&g<.001}var r=function(h,c,u,f){var p,m,g,d,y,v,b=getDefaultCurveSegments(),_=0,S=[],T=[],x=bezierLengthPool.newElement();for(g=u.length,p=0;p<b;p+=1){for(y=p/(b-1),v=0,m=0;m<g;m+=1)d=bmPow(1-y,3)*h[m]+3*bmPow(1-y,2)*y*u[m]+3*(1-y)*bmPow(y,2)*f[m]+bmPow(y,3)*c[m],S[m]=d,T[m]!==null&&(v+=bmPow(S[m]-T[m],2)),T[m]=S[m];v&&(_+=v=bmSqrt(v)),x.percents[p]=y,x.lengths[p]=_}return x.addedLength=_,x};function i(h){this.segmentLength=0,this.points=new Array(h)}function n(h,c){this.partialLength=h,this.point=c}var s,a=(s={},function(h,c,u,f){var p=(h[0]+"_"+h[1]+"_"+c[0]+"_"+c[1]+"_"+u[0]+"_"+u[1]+"_"+f[0]+"_"+f[1]).replace(/\./g,"p");if(!s[p]){var m,g,d,y,v,b,_,S=getDefaultCurveSegments(),T=0,x=null;h.length===2&&(h[0]!==c[0]||h[1]!==c[1])&&e(h[0],h[1],c[0],c[1],h[0]+u[0],h[1]+u[1])&&e(h[0],h[1],c[0],c[1],c[0]+f[0],c[1]+f[1])&&(S=2);var w=new i(S);for(d=u.length,m=0;m<S;m+=1){for(_=createSizedArray(d),v=m/(S-1),b=0,g=0;g<d;g+=1)y=bmPow(1-v,3)*h[g]+3*bmPow(1-v,2)*v*(h[g]+u[g])+3*(1-v)*bmPow(v,2)*(c[g]+f[g])+bmPow(v,3)*c[g],_[g]=y,x!==null&&(b+=bmPow(_[g]-x[g],2));T+=b=bmSqrt(b),w.points[m]=new n(b,_),x=_}w.segmentLength=T,s[p]=w}return s[p]});function o(h,c){var u=c.percents,f=c.lengths,p=u.length,m=bmFloor((p-1)*h),g=h*c.addedLength,d=0;if(m===p-1||m===0||g===f[m])return u[m];for(var y=f[m]>g?-1:1,v=!0;v;)if(f[m]<=g&&f[m+1]>g?(d=(g-f[m])/(f[m+1]-f[m]),v=!1):m+=y,m<0||m>=p-1){if(m===p-1)return u[m];v=!1}return u[m]+(u[m+1]-u[m])*d}var l=createTypedArray("float32",8);return{getSegmentsLength:function(h){var c,u=segmentsLengthPool.newElement(),f=h.c,p=h.v,m=h.o,g=h.i,d=h._length,y=u.lengths,v=0;for(c=0;c<d-1;c+=1)y[c]=r(p[c],p[c+1],m[c],g[c+1]),v+=y[c].addedLength;return f&&d&&(y[c]=r(p[c],p[0],m[c],g[0]),v+=y[c].addedLength),u.totalLength=v,u},getNewSegment:function(h,c,u,f,p,m,g){p<0?p=0:p>1&&(p=1);var d,y=o(p,g),v=o(m=m>1?1:m,g),b=h.length,_=1-y,S=1-v,T=_*_*_,x=y*_*_*3,w=y*y*_*3,M=y*y*y,k=_*_*S,I=y*_*S+_*y*S+_*_*v,P=y*y*S+_*y*v+y*_*v,A=y*y*v,E=_*S*S,F=y*S*S+_*v*S+_*S*v,$=y*v*S+_*v*v+y*S*v,D=y*v*v,C=S*S*S,R=v*S*S+S*v*S+S*S*v,B=v*v*S+S*v*v+v*S*v,U=v*v*v;for(d=0;d<b;d+=1)l[4*d]=t.round(1e3*(T*h[d]+x*u[d]+w*f[d]+M*c[d]))/1e3,l[4*d+1]=t.round(1e3*(k*h[d]+I*u[d]+P*f[d]+A*c[d]))/1e3,l[4*d+2]=t.round(1e3*(E*h[d]+F*u[d]+$*f[d]+D*c[d]))/1e3,l[4*d+3]=t.round(1e3*(C*h[d]+R*u[d]+B*f[d]+U*c[d]))/1e3;return l},getPointInSegment:function(h,c,u,f,p,m){var g=o(p,m),d=1-g;return[t.round(1e3*(d*d*d*h[0]+(g*d*d+d*g*d+d*d*g)*u[0]+(g*g*d+d*g*g+g*d*g)*f[0]+g*g*g*c[0]))/1e3,t.round(1e3*(d*d*d*h[1]+(g*d*d+d*g*d+d*d*g)*u[1]+(g*g*d+d*g*g+g*d*g)*f[1]+g*g*g*c[1]))/1e3]},buildBezierData:a,pointOnLine2D:e,pointOnLine3D:function(h,c,u,f,p,m,g,d,y){if(u===0&&m===0&&y===0)return e(h,c,f,p,g,d);var v,b=t.sqrt(t.pow(f-h,2)+t.pow(p-c,2)+t.pow(m-u,2)),_=t.sqrt(t.pow(g-h,2)+t.pow(d-c,2)+t.pow(y-u,2)),S=t.sqrt(t.pow(g-f,2)+t.pow(d-p,2)+t.pow(y-m,2));return(v=b>_?b>S?b-_-S:S-_-b:S>_?S-_-b:_-b-S)>-1e-4&&v<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var t=initialDefaultFrame,e=Math.abs;function r(f,p){var m,g=this.offsetTime;this.propType==="multidimensional"&&(m=createTypedArray("float32",this.pv.length));for(var d,y,v,b,_,S,T,x,w,M=p.lastIndex,k=M,I=this.keyframes.length-1,P=!0;P;){if(d=this.keyframes[k],y=this.keyframes[k+1],k===I-1&&f>=y.t-g){d.h&&(d=y),M=0;break}if(y.t-g>f){M=k;break}k<I-1?k+=1:(M=0,P=!1)}v=this.keyframesMetadata[k]||{};var A,E=y.t-g,F=d.t-g;if(d.to){v.bezierData||(v.bezierData=bez.buildBezierData(d.s,y.s||d.e,d.to,d.ti));var $=v.bezierData;if(f>=E||f<F){var D=f>=E?$.points.length-1:0;for(_=$.points[D].point.length,b=0;b<_;b+=1)m[b]=$.points[D].point[b]}else{v.__fnct?w=v.__fnct:(w=BezierFactory.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y,d.n).get,v.__fnct=w),S=w((f-F)/(E-F));var C,R=$.segmentLength*S,B=p.lastFrame<f&&p._lastKeyframeIndex===k?p._lastAddedLength:0;for(x=p.lastFrame<f&&p._lastKeyframeIndex===k?p._lastPoint:0,P=!0,T=$.points.length;P;){if(B+=$.points[x].partialLength,R===0||S===0||x===$.points.length-1){for(_=$.points[x].point.length,b=0;b<_;b+=1)m[b]=$.points[x].point[b];break}if(R>=B&&R<B+$.points[x+1].partialLength){for(C=(R-B)/$.points[x+1].partialLength,_=$.points[x].point.length,b=0;b<_;b+=1)m[b]=$.points[x].point[b]+($.points[x+1].point[b]-$.points[x].point[b])*C;break}x<T-1?x+=1:P=!1}p._lastPoint=x,p._lastAddedLength=B-$.points[x].partialLength,p._lastKeyframeIndex=k}}else{var U,W,X,H,ie;if(I=d.s.length,A=y.s||d.e,this.sh&&d.h!==1)f>=E?(m[0]=A[0],m[1]=A[1],m[2]=A[2]):f<=F?(m[0]=d.s[0],m[1]=d.s[1],m[2]=d.s[2]):function(le,se){var te=se[0],Ee=se[1],me=se[2],Me=se[3],Pe=Math.atan2(2*Ee*Me-2*te*me,1-2*Ee*Ee-2*me*me),J=Math.asin(2*te*Ee+2*me*Me),Ze=Math.atan2(2*te*Me-2*Ee*me,1-2*te*te-2*me*me);le[0]=Pe/degToRads,le[1]=J/degToRads,le[2]=Ze/degToRads}(m,function(le,se,te){var Ee,me,Me,Pe,J,Ze=[],Pt=le[0],At=le[1],lt=le[2],mt=le[3],ht=se[0],Ve=se[1],gt=se[2],yt=se[3];return(me=Pt*ht+At*Ve+lt*gt+mt*yt)<0&&(me=-me,ht=-ht,Ve=-Ve,gt=-gt,yt=-yt),1-me>1e-6?(Ee=Math.acos(me),Me=Math.sin(Ee),Pe=Math.sin((1-te)*Ee)/Me,J=Math.sin(te*Ee)/Me):(Pe=1-te,J=te),Ze[0]=Pe*Pt+J*ht,Ze[1]=Pe*At+J*Ve,Ze[2]=Pe*lt+J*gt,Ze[3]=Pe*mt+J*yt,Ze}(i(d.s),i(A),(f-F)/(E-F)));else for(k=0;k<I;k+=1)d.h!==1&&(f>=E?S=1:f<F?S=0:(d.o.x.constructor===Array?(v.__fnct||(v.__fnct=[]),v.__fnct[k]?w=v.__fnct[k]:(U=d.o.x[k]===void 0?d.o.x[0]:d.o.x[k],W=d.o.y[k]===void 0?d.o.y[0]:d.o.y[k],X=d.i.x[k]===void 0?d.i.x[0]:d.i.x[k],H=d.i.y[k]===void 0?d.i.y[0]:d.i.y[k],w=BezierFactory.getBezierEasing(U,W,X,H).get,v.__fnct[k]=w)):v.__fnct?w=v.__fnct:(U=d.o.x,W=d.o.y,X=d.i.x,H=d.i.y,w=BezierFactory.getBezierEasing(U,W,X,H).get,d.keyframeMetadata=w),S=w((f-F)/(E-F)))),A=y.s||d.e,ie=d.h===1?d.s[k]:d.s[k]+(A[k]-d.s[k])*S,this.propType==="multidimensional"?m[k]=ie:m=ie}return p.lastIndex=M,m}function i(f){var p=f[0]*degToRads,m=f[1]*degToRads,g=f[2]*degToRads,d=Math.cos(p/2),y=Math.cos(m/2),v=Math.cos(g/2),b=Math.sin(p/2),_=Math.sin(m/2),S=Math.sin(g/2);return[b*_*v+d*y*S,b*y*v+d*_*S,d*_*v-b*y*S,d*y*v-b*_*S]}function n(){var f=this.comp.renderedFrame-this.offsetTime,p=this.keyframes[0].t-this.offsetTime,m=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(f===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=m&&f>=m||this._caching.lastFrame<p&&f<p))){this._caching.lastFrame>=f&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var g=this.interpolateValue(f,this._caching);this.pv=g}return this._caching.lastFrame=f,this.pv}function s(f){var p;if(this.propType==="unidimensional")p=f*this.mult,e(this.v-p)>1e-5&&(this.v=p,this._mdf=!0);else for(var m=0,g=this.v.length;m<g;)p=f[m]*this.mult,e(this.v[m]-p)>1e-5&&(this.v[m]=p,this._mdf=!0),m+=1}function a(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var f;this.lock=!0,this._mdf=this._isFirstFrame;var p=this.effectsSequence.length,m=this.kf?this.pv:this.data.k;for(f=0;f<p;f+=1)m=this.effectsSequence[f](m);this.setVValue(m),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(f){this.effectsSequence.push(f),this.container.addDynamicProperty(this)}function l(f,p,m,g){this.propType="unidimensional",this.mult=m||1,this.data=p,this.v=m?p.k*m:p.k,this.pv=p.k,this._mdf=!1,this.elem=f,this.container=g,this.comp=f.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=a,this.setVValue=s,this.addEffect=o}function h(f,p,m,g){var d;this.propType="multidimensional",this.mult=m||1,this.data=p,this._mdf=!1,this.elem=f,this.container=g,this.comp=f.comp,this.k=!1,this.kf=!1,this.frameId=-1;var y=p.k.length;for(this.v=createTypedArray("float32",y),this.pv=createTypedArray("float32",y),this.vel=createTypedArray("float32",y),d=0;d<y;d+=1)this.v[d]=p.k[d]*this.mult,this.pv[d]=p.k[d];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=a,this.setVValue=s,this.addEffect=o}function c(f,p,m,g){this.propType="unidimensional",this.keyframes=p.k,this.keyframesMetadata=[],this.offsetTime=f.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=p,this.mult=m||1,this.elem=f,this.container=g,this.comp=f.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=a,this.setVValue=s,this.interpolateValue=r,this.effectsSequence=[n.bind(this)],this.addEffect=o}function u(f,p,m,g){var d;this.propType="multidimensional";var y,v,b,_,S=p.k.length;for(d=0;d<S-1;d+=1)p.k[d].to&&p.k[d].s&&p.k[d+1]&&p.k[d+1].s&&(y=p.k[d].s,v=p.k[d+1].s,b=p.k[d].to,_=p.k[d].ti,(y.length===2&&(y[0]!==v[0]||y[1]!==v[1])&&bez.pointOnLine2D(y[0],y[1],v[0],v[1],y[0]+b[0],y[1]+b[1])&&bez.pointOnLine2D(y[0],y[1],v[0],v[1],v[0]+_[0],v[1]+_[1])||y.length===3&&(y[0]!==v[0]||y[1]!==v[1]||y[2]!==v[2])&&bez.pointOnLine3D(y[0],y[1],y[2],v[0],v[1],v[2],y[0]+b[0],y[1]+b[1],y[2]+b[2])&&bez.pointOnLine3D(y[0],y[1],y[2],v[0],v[1],v[2],v[0]+_[0],v[1]+_[1],v[2]+_[2]))&&(p.k[d].to=null,p.k[d].ti=null),y[0]===v[0]&&y[1]===v[1]&&b[0]===0&&b[1]===0&&_[0]===0&&_[1]===0&&(y.length===2||y[2]===v[2]&&b[2]===0&&_[2]===0)&&(p.k[d].to=null,p.k[d].ti=null));this.effectsSequence=[n.bind(this)],this.data=p,this.keyframes=p.k,this.keyframesMetadata=[],this.offsetTime=f.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=m||1,this.elem=f,this.container=g,this.comp=f.comp,this.getValue=a,this.setVValue=s,this.interpolateValue=r,this.frameId=-1;var T=p.k[0].s.length;for(this.v=createTypedArray("float32",T),this.pv=createTypedArray("float32",T),d=0;d<T;d+=1)this.v[d]=t,this.pv[d]=t;this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",T)},this.addEffect=o}return{getProp:function(f,p,m,g,d){var y;if(p.k.length)if(typeof p.k[0]=="number")y=new h(f,p,g,d);else switch(m){case 0:y=new c(f,p,g,d);break;case 1:y=new u(f,p,g,d)}else y=new l(f,p,g,d);return y.effectsSequence.length&&d.addDynamicProperty(y),y}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,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(t,e){this.c=t,this.setLength(e);for(var r=0;r<e;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},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(t,e,r,i,n){var s;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[]}(!s[i]||s[i]&&!n)&&(s[i]=pointPool.newElement()),s[i][0]=t,s[i][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,i,n,s,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(r,i,"o",a,o),this.setXYAt(n,s,"i",a,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,i=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),n=1);var s,a=this._length-1,o=this._length;for(s=n;s<o;s+=1)t.setTripleAt(e[a][0],e[a][1],i[a][0],i[a][1],r[a][0],r[a][1],s,!1),a-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(t){var e,r=t._length;for(e=0;e<r;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}),factory.clone=function(t){var e,r=factory.newElement(),i=t._length===void 0?t.v.length:t._length;for(r.setLength(i),r.c=t.c,e=0;e<i;e+=1)r.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return r},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(t){var e,r=t._length;for(e=0;e<r;e+=1)shapePool.release(t.shapes[e]);t._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=t,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){function t(f,p,m){var g,d,y,v,b,_,S,T,x,w=m.lastIndex,M=this.keyframes;if(f<M[0].t-this.offsetTime)g=M[0].s[0],y=!0,w=0;else if(f>=M[M.length-1].t-this.offsetTime)g=M[M.length-1].s?M[M.length-1].s[0]:M[M.length-2].e[0],y=!0;else{for(var k,I,P,A=w,E=M.length-1,F=!0;F&&(k=M[A],!((I=M[A+1]).t-this.offsetTime>f));)A<E-1?A+=1:F=!1;if(P=this.keyframesMetadata[A]||{},w=A,!(y=k.h===1)){if(f>=I.t-this.offsetTime)T=1;else if(f<k.t-this.offsetTime)T=0;else{var $;P.__fnct?$=P.__fnct:($=BezierFactory.getBezierEasing(k.o.x,k.o.y,k.i.x,k.i.y).get,P.__fnct=$),T=$((f-(k.t-this.offsetTime))/(I.t-this.offsetTime-(k.t-this.offsetTime)))}d=I.s?I.s[0]:k.e[0]}g=k.s[0]}for(_=p._length,S=g.i[0].length,m.lastIndex=w,v=0;v<_;v+=1)for(b=0;b<S;b+=1)x=y?g.i[v][b]:g.i[v][b]+(d.i[v][b]-g.i[v][b])*T,p.i[v][b]=x,x=y?g.o[v][b]:g.o[v][b]+(d.o[v][b]-g.o[v][b])*T,p.o[v][b]=x,x=y?g.v[v][b]:g.v[v][b]+(d.v[v][b]-g.v[v][b])*T,p.v[v][b]=x}function e(){var f=this.comp.renderedFrame-this.offsetTime,p=this.keyframes[0].t-this.offsetTime,m=this.keyframes[this.keyframes.length-1].t-this.offsetTime,g=this._caching.lastFrame;return g!==-999999&&(g<p&&f<p||g>m&&f>m)||(this._caching.lastIndex=g<f?this._caching.lastIndex:0,this.interpolateShape(f,this.pv,this._caching)),this._caching.lastFrame=f,this.pv}function r(){this.paths=this.localShapeCollection}function i(f){(function(p,m){if(p._length!==m._length||p.c!==m.c)return!1;var g,d=p._length;for(g=0;g<d;g+=1)if(p.v[g][0]!==m.v[g][0]||p.v[g][1]!==m.v[g][1]||p.o[g][0]!==m.o[g][0]||p.o[g][1]!==m.o[g][1]||p.i[g][0]!==m.i[g][0]||p.i[g][1]!==m.i[g][1])return!1;return!0})(this.v,f)||(this.v=shapePool.clone(f),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 f,p;this.lock=!0,this._mdf=!1,f=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var m=this.effectsSequence.length;for(p=0;p<m;p+=1)f=this.effectsSequence[p](f);this.setVValue(f),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(f,p,m){this.propType="shape",this.comp=f.comp,this.container=f,this.elem=f,this.data=p,this.k=!1,this.kf=!1,this._mdf=!1;var g=m===3?p.pt.k:p.ks.k;this.v=shapePool.clone(g),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function a(f){this.effectsSequence.push(f),this.container.addDynamicProperty(this)}function o(f,p,m){this.propType="shape",this.comp=f.comp,this.elem=f,this.container=f,this.offsetTime=f.data.st,this.keyframes=m===3?p.pt.k:p.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var g=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,g),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=-999999,this.reset=r,this._caching={lastFrame:-999999,lastIndex:0},this.effectsSequence=[e.bind(this)]}s.prototype.interpolateShape=t,s.prototype.getValue=n,s.prototype.setVValue=i,s.prototype.addEffect=a,o.prototype.getValue=n,o.prototype.interpolateShape=t,o.prototype.setVValue=i,o.prototype.addEffect=a;var l=function(){var f=roundCorner;function p(m,g){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=g.d,this.elem=m,this.comp=m.comp,this.frameId=-1,this.initDynamicPropertyContainer(m),this.p=PropertyFactory.getProp(m,g.p,1,0,this),this.s=PropertyFactory.getProp(m,g.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return p.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var m=this.p.v[0],g=this.p.v[1],d=this.s.v[0]/2,y=this.s.v[1]/2,v=this.d!==3,b=this.v;b.v[0][0]=m,b.v[0][1]=g-y,b.v[1][0]=v?m+d:m-d,b.v[1][1]=g,b.v[2][0]=m,b.v[2][1]=g+y,b.v[3][0]=v?m-d:m+d,b.v[3][1]=g,b.i[0][0]=v?m-d*f:m+d*f,b.i[0][1]=g-y,b.i[1][0]=v?m+d:m-d,b.i[1][1]=g-y*f,b.i[2][0]=v?m+d*f:m-d*f,b.i[2][1]=g+y,b.i[3][0]=v?m-d:m+d,b.i[3][1]=g+y*f,b.o[0][0]=v?m+d*f:m-d*f,b.o[0][1]=g-y,b.o[1][0]=v?m+d:m-d,b.o[1][1]=g+y*f,b.o[2][0]=v?m-d*f:m+d*f,b.o[2][1]=g+y,b.o[3][0]=v?m-d:m+d,b.o[3][1]=g-y*f}},extendPrototype([DynamicPropertyContainer],p),p}(),h=function(){function f(p,m){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=p,this.comp=p.comp,this.data=m,this.frameId=-1,this.d=m.d,this.initDynamicPropertyContainer(p),m.sy===1?(this.ir=PropertyFactory.getProp(p,m.ir,0,0,this),this.is=PropertyFactory.getProp(p,m.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(p,m.pt,0,0,this),this.p=PropertyFactory.getProp(p,m.p,1,0,this),this.r=PropertyFactory.getProp(p,m.r,0,degToRads,this),this.or=PropertyFactory.getProp(p,m.or,0,0,this),this.os=PropertyFactory.getProp(p,m.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 f.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var p,m,g,d,y=2*Math.floor(this.pt.v),v=2*Math.PI/y,b=!0,_=this.or.v,S=this.ir.v,T=this.os.v,x=this.is.v,w=2*Math.PI*_/(2*y),M=2*Math.PI*S/(2*y),k=-Math.PI/2;k+=this.r.v;var I=this.data.d===3?-1:1;for(this.v._length=0,p=0;p<y;p+=1){g=b?T:x,d=b?w:M;var P=(m=b?_:S)*Math.cos(k),A=m*Math.sin(k),E=P===0&&A===0?0:A/Math.sqrt(P*P+A*A),F=P===0&&A===0?0:-P/Math.sqrt(P*P+A*A);P+=+this.p.v[0],A+=+this.p.v[1],this.v.setTripleAt(P,A,P-E*d*g*I,A-F*d*g*I,P+E*d*g*I,A+F*d*g*I,p,!0),b=!b,k+=v*I}},convertPolygonToPath:function(){var p,m=Math.floor(this.pt.v),g=2*Math.PI/m,d=this.or.v,y=this.os.v,v=2*Math.PI*d/(4*m),b=.5*-Math.PI,_=this.data.d===3?-1:1;for(b+=this.r.v,this.v._length=0,p=0;p<m;p+=1){var S=d*Math.cos(b),T=d*Math.sin(b),x=S===0&&T===0?0:T/Math.sqrt(S*S+T*T),w=S===0&&T===0?0:-S/Math.sqrt(S*S+T*T);S+=+this.p.v[0],T+=+this.p.v[1],this.v.setTripleAt(S,T,S-x*v*y*_,T-w*v*y*_,S+x*v*y*_,T+w*v*y*_,p,!0),b+=g*_}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],f),f}(),c=function(){function f(p,m){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=p,this.comp=p.comp,this.frameId=-1,this.d=m.d,this.initDynamicPropertyContainer(p),this.p=PropertyFactory.getProp(p,m.p,1,0,this),this.s=PropertyFactory.getProp(p,m.s,1,0,this),this.r=PropertyFactory.getProp(p,m.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return f.prototype={convertRectToPath:function(){var p=this.p.v[0],m=this.p.v[1],g=this.s.v[0]/2,d=this.s.v[1]/2,y=bmMin(g,d,this.r.v),v=y*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(p+g,m-d+y,p+g,m-d+y,p+g,m-d+v,0,!0),this.v.setTripleAt(p+g,m+d-y,p+g,m+d-v,p+g,m+d-y,1,!0),y!==0?(this.v.setTripleAt(p+g-y,m+d,p+g-y,m+d,p+g-v,m+d,2,!0),this.v.setTripleAt(p-g+y,m+d,p-g+v,m+d,p-g+y,m+d,3,!0),this.v.setTripleAt(p-g,m+d-y,p-g,m+d-y,p-g,m+d-v,4,!0),this.v.setTripleAt(p-g,m-d+y,p-g,m-d+v,p-g,m-d+y,5,!0),this.v.setTripleAt(p-g+y,m-d,p-g+y,m-d,p-g+v,m-d,6,!0),this.v.setTripleAt(p+g-y,m-d,p+g-v,m-d,p+g-y,m-d,7,!0)):(this.v.setTripleAt(p-g,m+d,p-g+v,m+d,p-g,m+d,2),this.v.setTripleAt(p-g,m-d,p-g,m-d+v,p-g,m-d,3))):(this.v.setTripleAt(p+g,m-d+y,p+g,m-d+v,p+g,m-d+y,0,!0),y!==0?(this.v.setTripleAt(p+g-y,m-d,p+g-y,m-d,p+g-v,m-d,1,!0),this.v.setTripleAt(p-g+y,m-d,p-g+v,m-d,p-g+y,m-d,2,!0),this.v.setTripleAt(p-g,m-d+y,p-g,m-d+y,p-g,m-d+v,3,!0),this.v.setTripleAt(p-g,m+d-y,p-g,m+d-v,p-g,m+d-y,4,!0),this.v.setTripleAt(p-g+y,m+d,p-g+y,m+d,p-g+v,m+d,5,!0),this.v.setTripleAt(p+g-y,m+d,p+g-v,m+d,p+g-y,m+d,6,!0),this.v.setTripleAt(p+g,m+d-y,p+g,m+d-y,p+g,m+d-v,7,!0)):(this.v.setTripleAt(p-g,m-d,p-g+v,m-d,p-g,m-d,1,!0),this.v.setTripleAt(p-g,m+d,p-g,m+d-v,p-g,m+d,2,!0),this.v.setTripleAt(p+g,m+d,p+g-v,m+d,p+g,m+d,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],f),f}(),u={getShapeProp:function(f,p,m){var g;return m===3||m===4?g=(m===3?p.pt:p.ks).k.length?new o(f,p,m):new s(f,p,m):m===5?g=new c(f,p):m===6?g=new l(f,p):m===7&&(g=new h(f,p)),g.k&&f.addDynamicProperty(g),g},getConstructorFunction:function(){return s},getKeyframedConstructorFunction:function(){return o}};return u}(),Matrix=function(){var t=Math.cos,e=Math.sin,r=Math.tan,i=Math.round;function n(){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 s(D){if(D===0)return this;var C=t(D),R=e(D);return this._t(C,-R,0,0,R,C,0,0,0,0,1,0,0,0,0,1)}function a(D){if(D===0)return this;var C=t(D),R=e(D);return this._t(1,0,0,0,0,C,-R,0,0,R,C,0,0,0,0,1)}function o(D){if(D===0)return this;var C=t(D),R=e(D);return this._t(C,0,R,0,0,1,0,0,-R,0,C,0,0,0,0,1)}function l(D){if(D===0)return this;var C=t(D),R=e(D);return this._t(C,-R,0,0,R,C,0,0,0,0,1,0,0,0,0,1)}function h(D,C){return this._t(1,C,D,1,0,0)}function c(D,C){return this.shear(r(D),r(C))}function u(D,C){var R=t(C),B=e(C);return this._t(R,B,0,0,-B,R,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(D),1,0,0,0,0,1,0,0,0,0,1)._t(R,-B,0,0,B,R,0,0,0,0,1,0,0,0,0,1)}function f(D,C,R){return R||R===0||(R=1),D===1&&C===1&&R===1?this:this._t(D,0,0,0,0,C,0,0,0,0,R,0,0,0,0,1)}function p(D,C,R,B,U,W,X,H,ie,le,se,te,Ee,me,Me,Pe){return this.props[0]=D,this.props[1]=C,this.props[2]=R,this.props[3]=B,this.props[4]=U,this.props[5]=W,this.props[6]=X,this.props[7]=H,this.props[8]=ie,this.props[9]=le,this.props[10]=se,this.props[11]=te,this.props[12]=Ee,this.props[13]=me,this.props[14]=Me,this.props[15]=Pe,this}function m(D,C,R){return R=R||0,D!==0||C!==0||R!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,D,C,R,1):this}function g(D,C,R,B,U,W,X,H,ie,le,se,te,Ee,me,Me,Pe){var J=this.props;if(D===1&&C===0&&R===0&&B===0&&U===0&&W===1&&X===0&&H===0&&ie===0&&le===0&&se===1&&te===0)return J[12]=J[12]*D+J[15]*Ee,J[13]=J[13]*W+J[15]*me,J[14]=J[14]*se+J[15]*Me,J[15]*=Pe,this._identityCalculated=!1,this;var Ze=J[0],Pt=J[1],At=J[2],lt=J[3],mt=J[4],ht=J[5],Ve=J[6],gt=J[7],yt=J[8],Rt=J[9],pr=J[10],Lt=J[11],Cr=J[12],Xn=J[13],Kn=J[14],Qn=J[15];return J[0]=Ze*D+Pt*U+At*ie+lt*Ee,J[1]=Ze*C+Pt*W+At*le+lt*me,J[2]=Ze*R+Pt*X+At*se+lt*Me,J[3]=Ze*B+Pt*H+At*te+lt*Pe,J[4]=mt*D+ht*U+Ve*ie+gt*Ee,J[5]=mt*C+ht*W+Ve*le+gt*me,J[6]=mt*R+ht*X+Ve*se+gt*Me,J[7]=mt*B+ht*H+Ve*te+gt*Pe,J[8]=yt*D+Rt*U+pr*ie+Lt*Ee,J[9]=yt*C+Rt*W+pr*le+Lt*me,J[10]=yt*R+Rt*X+pr*se+Lt*Me,J[11]=yt*B+Rt*H+pr*te+Lt*Pe,J[12]=Cr*D+Xn*U+Kn*ie+Qn*Ee,J[13]=Cr*C+Xn*W+Kn*le+Qn*me,J[14]=Cr*R+Xn*X+Kn*se+Qn*Me,J[15]=Cr*B+Xn*H+Kn*te+Qn*Pe,this._identityCalculated=!1,this}function d(){return this._identityCalculated||(this._identity=!(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._identityCalculated=!0),this._identity}function y(D){for(var C=0;C<16;){if(D.props[C]!==this.props[C])return!1;C+=1}return!0}function v(D){var C;for(C=0;C<16;C+=1)D.props[C]=this.props[C];return D}function b(D){var C;for(C=0;C<16;C+=1)this.props[C]=D[C]}function _(D,C,R){return{x:D*this.props[0]+C*this.props[4]+R*this.props[8]+this.props[12],y:D*this.props[1]+C*this.props[5]+R*this.props[9]+this.props[13],z:D*this.props[2]+C*this.props[6]+R*this.props[10]+this.props[14]}}function S(D,C,R){return D*this.props[0]+C*this.props[4]+R*this.props[8]+this.props[12]}function T(D,C,R){return D*this.props[1]+C*this.props[5]+R*this.props[9]+this.props[13]}function x(D,C,R){return D*this.props[2]+C*this.props[6]+R*this.props[10]+this.props[14]}function w(){var D=this.props[0]*this.props[5]-this.props[1]*this.props[4],C=this.props[5]/D,R=-this.props[1]/D,B=-this.props[4]/D,U=this.props[0]/D,W=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/D,X=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/D,H=new Matrix;return H.props[0]=C,H.props[1]=R,H.props[4]=B,H.props[5]=U,H.props[12]=W,H.props[13]=X,H}function M(D){return this.getInverseMatrix().applyToPointArray(D[0],D[1],D[2]||0)}function k(D){var C,R=D.length,B=[];for(C=0;C<R;C+=1)B[C]=M(D[C]);return B}function I(D,C,R){var B=createTypedArray("float32",6);if(this.isIdentity())B[0]=D[0],B[1]=D[1],B[2]=C[0],B[3]=C[1],B[4]=R[0],B[5]=R[1];else{var U=this.props[0],W=this.props[1],X=this.props[4],H=this.props[5],ie=this.props[12],le=this.props[13];B[0]=D[0]*U+D[1]*X+ie,B[1]=D[0]*W+D[1]*H+le,B[2]=C[0]*U+C[1]*X+ie,B[3]=C[0]*W+C[1]*H+le,B[4]=R[0]*U+R[1]*X+ie,B[5]=R[0]*W+R[1]*H+le}return B}function P(D,C,R){return this.isIdentity()?[D,C,R]:[D*this.props[0]+C*this.props[4]+R*this.props[8]+this.props[12],D*this.props[1]+C*this.props[5]+R*this.props[9]+this.props[13],D*this.props[2]+C*this.props[6]+R*this.props[10]+this.props[14]]}function A(D,C){if(this.isIdentity())return D+","+C;var R=this.props;return Math.round(100*(D*R[0]+C*R[4]+R[12]))/100+","+Math.round(100*(D*R[1]+C*R[5]+R[13]))/100}function E(){for(var D=0,C=this.props,R="matrix3d(";D<16;)R+=i(1e4*C[D])/1e4,R+=D===15?")":",",D+=1;return R}function F(D){return D<1e-6&&D>0||D>-1e-6&&D<0?i(1e4*D)/1e4:D}function $(){var D=this.props;return"matrix("+F(D[0])+","+F(D[1])+","+F(D[4])+","+F(D[5])+","+F(D[12])+","+F(D[13])+")"}return function(){this.reset=n,this.rotate=s,this.rotateX=a,this.rotateY=o,this.rotateZ=l,this.skew=c,this.skewFromAxis=u,this.shear=h,this.scale=f,this.setTransform=p,this.translate=m,this.transform=g,this.applyToPoint=_,this.applyToX=S,this.applyToY=T,this.applyToZ=x,this.applyToPointArray=P,this.applyToTriplePoints=I,this.applyToPointStringified=A,this.toCSS=E,this.to2dCSS=$,this.clone=v,this.cloneFromProps=b,this.equals=y,this.inversePoints=k,this.inversePoint=M,this.getInverseMatrix=w,this._t=this.transform,this.isIdentity=d,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return(_typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){standalone===!0?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return standalone===!0&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if(typeof t=="string")switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return typeof navigator<"u"}function installPlugin(t,e){t==="expressions"&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r<e.length;r+=1){var i=e[r].split("=");if(decodeURIComponent(i[0])==t)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.10.0";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(t){}var ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(r,i){e[r]||(e[r]=i)},t.getModifier=function(r,i,n){return new e[r](i,n)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),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(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,r,i,n){var s=[];e<=1?s.push({s:t,e}):t>=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var a,o,l=[],h=s.length;for(a=0;a<h;a+=1){var c,u;(o=s[a]).e*n<i||o.s*n>i+r||(c=o.s*n<=i?0:(o.s*n-i)/r,u=o.e*n>=i+r?1:(o.e*n-i)/r,l.push([c,u]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e<r;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,r,i,n;if(this._mdf||t){var s=this.o.v%360/360;if(s<0&&(s+=1),(e=this.s.v>1?1+s:this.s.v<0?0+s:this.s.v+s)>(r=this.e.v>1?1+s:this.e.v<0?0+s:this.e.v+s)){var a=e;e=r,r=a}e=1e-4*Math.round(1e4*e),r=1e-4*Math.round(1e4*r),this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var o,l,h,c,u,f=this.shapes.length,p=0;if(r===e)for(n=0;n<f;n+=1)this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf&&(this.shapes[n].pathsData.length=0);else if(r===1&&e===0||r===0&&e===1){if(this._mdf)for(n=0;n<f;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var m,g,d=[];for(n=0;n<f;n+=1)if((m=this.shapes[n]).shape._mdf||this._mdf||t||this.m===2){if(l=(i=m.shape.paths)._length,u=0,!m.shape._mdf&&m.pathsData.length)u=m.totalShapeLength;else{for(h=this.releasePathsData(m.pathsData),o=0;o<l;o+=1)c=bez.getSegmentsLength(i.shapes[o]),h.push(c),u+=c.totalLength;m.totalShapeLength=u,m.pathsData=h}p+=u,m.shape._mdf=!0}else m.shape.paths=m.localShapeCollection;var y,v=e,b=r,_=0;for(n=f-1;n>=0;n-=1)if((m=this.shapes[n]).shape._mdf){for((g=m.localShapeCollection).releaseShapes(),this.m===2&&f>1?(y=this.calculateShapeEdges(e,r,m.totalShapeLength,_,p),_+=m.totalShapeLength):y=[[v,b]],l=y.length,o=0;o<l;o+=1){v=y[o][0],b=y[o][1],d.length=0,b<=1?d.push({s:m.totalShapeLength*v,e:m.totalShapeLength*b}):v>=1?d.push({s:m.totalShapeLength*(v-1),e:m.totalShapeLength*(b-1)}):(d.push({s:m.totalShapeLength*v,e:m.totalShapeLength}),d.push({s:0,e:m.totalShapeLength*(b-1)}));var S=this.addShapes(m,d[0]);if(d[0].s!==d[0].e){if(d.length>1)if(m.shape.paths.shapes[m.shape.paths._length-1].c){var T=S.pop();this.addPaths(S,g),S=this.addShapes(m,d[1],T)}else this.addPaths(S,g),S=this.addShapes(m,d[1]);this.addPaths(S,g)}}m.shape.paths=g}}},TrimModifier.prototype.addPaths=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)e.addShape(t[r])},TrimModifier.prototype.addSegment=function(t,e,r,i,n,s,a){n.setXYAt(e[0],e[1],"o",s),n.setXYAt(r[0],r[1],"i",s+1),a&&n.setXYAt(t[0],t[1],"v",s),n.setXYAt(i[0],i[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,r,i){e.setXYAt(t[1],t[5],"o",r),e.setXYAt(t[2],t[6],"i",r+1),i&&e.setXYAt(t[0],t[4],"v",r),e.setXYAt(t[3],t[7],"v",r+1)},TrimModifier.prototype.addShapes=function(t,e,r){var i,n,s,a,o,l,h,c,u=t.pathsData,f=t.shape.paths.shapes,p=t.shape.paths._length,m=0,g=[],d=!0;for(r?(o=r._length,c=r._length):(r=shapePool.newElement(),o=0,c=0),g.push(r),i=0;i<p;i+=1){for(l=u[i].lengths,r.c=f[i].c,s=f[i].c?l.length:l.length+1,n=1;n<s;n+=1)if(m+(a=l[n-1]).addedLength<e.s)m+=a.addedLength,r.c=!1;else{if(m>e.e){r.c=!1;break}e.s<=m&&e.e>=m+a.addedLength?(this.addSegment(f[i].v[n-1],f[i].o[n-1],f[i].i[n],f[i].v[n],r,o,d),d=!1):(h=bez.getNewSegment(f[i].v[n-1],f[i].v[n],f[i].o[n-1],f[i].i[n],(e.s-m)/a.addedLength,(e.e-m)/a.addedLength,l[n-1]),this.addSegmentFromArray(h,r,o,d),d=!1,r.c=!1),m+=a.addedLength,o+=1}if(f[i].c&&l.length){if(a=l[n-1],m<=e.e){var y=l[n-1].addedLength;e.s<=m&&e.e>=m+y?(this.addSegment(f[i].v[n-1],f[i].o[n-1],f[i].i[0],f[i].v[0],r,o,d),d=!1):(h=bez.getNewSegment(f[i].v[n-1],f[i].v[0],f[i].o[n-1],f[i].i[0],(e.s-m)/y,(e.e-m)/y,l[n-1]),this.addSegmentFromArray(h,r,o,d),d=!1,r.c=!1)}else r.c=!1;m+=a.addedLength,o+=1}if(r._length&&(r.setXYAt(r.v[c][0],r.v[c][1],"i",c),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),m>e.e)break;i<p-1&&(r=shapePool.newElement(),d=!0,g.push(r),o=0)}return g},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var r=e/100,i=[0,0],n=t._length,s=0;for(s=0;s<n;s+=1)i[0]+=t.v[s][0],i[1]+=t.v[s][1];i[0]/=n,i[1]/=n;var a,o,l,h,c,u,f=shapePool.newElement();for(f.c=t.c,s=0;s<n;s+=1)a=t.v[s][0]+(i[0]-t.v[s][0])*r,o=t.v[s][1]+(i[1]-t.v[s][1])*r,l=t.o[s][0]+(i[0]-t.o[s][0])*-r,h=t.o[s][1]+(i[1]-t.o[s][1])*-r,c=t.i[s][0]+(i[0]-t.i[s][0])*-r,u=t.i[s][1]+(i[1]-t.i[s][1])*-r,f.setTripleAt(a,o,l,h,c,u,s);return f},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,r,i,n,s,a,o=this.shapes.length,l=this.amount.v;if(l!==0)for(r=0;r<o;r+=1){if(a=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)a.addShape(this.processPath(e[i],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(r,i,n){if(this.elem=r,this.frameId=-1,this.propType="transform",this.data=i,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||r),i.p&&i.p.s?(this.px=PropertyFactory.getProp(r,i.p.x,0,0,this),this.py=PropertyFactory.getProp(r,i.p.y,0,0,this),i.p.z&&(this.pz=PropertyFactory.getProp(r,i.p.z,0,0,this))):this.p=PropertyFactory.getProp(r,i.p||{k:[0,0,0]},1,0,this),i.rx){if(this.rx=PropertyFactory.getProp(r,i.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(r,i.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(r,i.rz,0,degToRads,this),i.or.k[0].ti){var s,a=i.or.k.length;for(s=0;s<a;s+=1)i.or.k[s].to=null,i.or.k[s].ti=null}this.or=PropertyFactory.getProp(r,i.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(r,i.r||{k:0},0,degToRads,this);i.sk&&(this.sk=PropertyFactory.getProp(r,i.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(r,i.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(r,i.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(r,i.s||{k:[100,100,100]},1,.01,this),i.o?this.o=PropertyFactory.getProp(r,i.o,0,.01,r):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(r){var i=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||i,this.a&&r.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&r.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&r.skewFromAxis(-this.sk.v,this.sa.v),this.r?r.rotate(-this.r.v):r.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?r.translate(this.px.v,this.py.v,-this.pz.v):r.translate(this.px.v,this.py.v,0):r.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(r){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||r){var i;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 n,s;if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(n=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),s=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),s=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(n=this.p.pv,s=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){n=[],s=[];var a=this.px,o=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(n[0]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),n[1]=o.getValueAtTime((o.keyframes[0].t+.01)/i,0),s[0]=a.getValueAtTime(a.keyframes[0].t/i,0),s[1]=o.getValueAtTime(o.keyframes[0].t/i,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(n[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),n[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/i,0),s[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0),s[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/i,0)):(n=[a.pv,o.pv],s[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime),s[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/i,o.offsetTime))}else n=s=t;this.v.rotate(-Math.atan2(n[1]-s[1],n[0]-s[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.a.k&&(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],e),e.prototype.addDynamicProperty=function(r){this._addDynamicProperty(r),this.elem.addDynamicProperty(r),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(r,i,n){return new e(r,i,n)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,r){return t*(1-r)+e*r}function lerpPoint(t,e,r){return[lerp(t[0],e[0],r),lerp(t[1],e[1],r)]}function quadRoots(t,e,r){if(t===0)return[];var i=e*e-4*t*r;if(i<0)return[];var n=-e/(2*t);if(i===0)return[n];var s=Math.sqrt(i)/(2*t);return[n-s,n+s]}function polynomialCoefficients(t,e,r,i){return[3*e-t-3*r+i,3*t-6*e+3*r,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,r,i,n){n&&pointEqual(t,e)&&(e=lerpPoint(t,i,1/3)),n&&pointEqual(r,i)&&(r=lerpPoint(t,i,2/3));var s=polynomialCoefficients(t[0],e[0],r[0],i[0]),a=polynomialCoefficients(t[1],e[1],r[1],i[1]);this.a=[s[0],a[0]],this.b=[s[1],a[1]],this.c=[s[2],a[2]],this.d=[s[3],a[3]],this.points=[t,e,r,i]}function extrema(t,e){var r=t.points[0][e],i=t.points[t.points.length-1][e];if(r>i){var n=i;i=r,r=n}for(var s=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),a=0;a<s.length;a+=1)if(s[a]>0&&s[a]<1){var o=t.point(s[a])[e];o<r?r=o:o>i&&(i=o)}return{min:r,max:i}}function intersectData(t,e,r){var i=t.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:t,t:(e+r)/2,t1:e,t2:r}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,r,i,n,s){if(boxIntersect(t,e))if(r>=s||t.width<=i&&t.height<=i&&e.width<=i&&e.height<=i)n.push([t.t,e.t]);else{var a=splitData(t),o=splitData(e);intersectsImpl(a[0],o[0],r+1,i,n,s),intersectsImpl(a[0],o[1],r+1,i,n,s),intersectsImpl(a[1],o[0],r+1,i,n,s),intersectsImpl(a[1],o[1],r+1,i,n,s)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,r,i){var n=[t[0],t[1],1],s=[e[0],e[1],1],a=[r[0],r[1],1],o=[i[0],i[1],1],l=crossProduct(crossProduct(n,s),crossProduct(a,o));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(t,e,r){return[t[0]+Math.cos(e)*r,t[1]-Math.sin(e)*r]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,r,i,n,s,a){var o=r-Math.PI/2,l=r+Math.PI/2,h=e[0]+Math.cos(r)*i*n,c=e[1]-Math.sin(r)*i*n;t.setTripleAt(h,c,h+Math.cos(o)*s,c-Math.sin(o)*s,h+Math.cos(l)*a,c-Math.sin(l)*a,t.length())}function getPerpendicularVector(t,e){var r=[e[0]-t[0],e[1]-t[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(t,e){var r=e===0?t.length()-1:e-1,i=(e+1)%t.length(),n=getPerpendicularVector(t.v[r],t.v[i]);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(t,e,r,i,n,s,a){var o=getProjectingAngle(e,r),l=e.v[r%e._length],h=e.v[r===0?e._length-1:r-1],c=e.v[(r+1)%e._length],u=s===2?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0,f=s===2?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;setPoint(t,e.v[r%e._length],o,a,i,f/(2*(n+1)),u/(2*(n+1)),s)}function zigZagSegment(t,e,r,i,n,s){for(var a=0;a<i;a+=1){var o=(a+1)/(i+1),l=n===2?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,h=e.normalAngle(o);setPoint(t,e.point(o),h,s,r,l/(2*(i+1)),l/(2*(i+1)),n),s=-s}return s}function linearOffset(t,e,r){var i=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,i,r),polarOffset(e,i,r)]}function offsetSegment(t,e){var r,i,n,s,a,o,l;r=(l=linearOffset(t.points[0],t.points[1],e))[0],i=l[1],n=(l=linearOffset(t.points[1],t.points[2],e))[0],s=l[1],a=(l=linearOffset(t.points[2],t.points[3],e))[0],o=l[1];var h=lineIntersection(r,i,n,s);h===null&&(h=i);var c=lineIntersection(a,o,n,s);return c===null&&(c=a),new PolynomialBezier(r,h,c,o)}function joinLines(t,e,r,i,n){var s=e.points[3],a=r.points[0];if(i===3||pointEqual(s,a))return s;if(i===2){var o=-e.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,h=lineIntersection(s,polarOffset(s,o+Math.PI/2,100),a,polarOffset(a,o+Math.PI/2,100)),c=h?pointDistance(h,s):pointDistance(s,a)/2,u=polarOffset(s,o,2*c*roundCorner);return t.setXYAt(u[0],u[1],"o",t.length()-1),u=polarOffset(a,l,2*c*roundCorner),t.setTripleAt(a[0],a[1],a[0],a[1],u[0],u[1],t.length()),a}var f=lineIntersection(pointEqual(s,e.points[2])?e.points[0]:e.points[2],s,a,pointEqual(a,r.points[1])?r.points[3]:r.points[1]);return f&&pointDistance(f,s)<n?(t.setTripleAt(f[0],f[1],f[0],f[1],f[0],f[1],t.length()),f):s}function getIntersection(t,e){var r=t.intersections(e);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(t,e){var r=t.slice(),i=e.slice(),n=getIntersection(t[t.length-1],e[0]);return n&&(r[t.length-1]=t[t.length-1].split(n[0])[0],i[0]=e[0].split(n[1])[1]),t.length>1&&e.length>1&&(n=getIntersection(t[0],e[e.length-1]))?[[t[0].split(n[0])[0]],[e[e.length-1].split(n[1])[1]]]:[r,i]}function pruneIntersections(t){for(var e,r=1;r<t.length;r+=1)e=pruneSegmentIntersection(t[r-1],t[r]),t[r-1]=e[0],t[r]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var r,i,n,s,a=t.inflectionPoints();if(a.length===0)return[offsetSegment(t,e)];if(a.length===1||floatEqual(a[1],1))return r=(n=t.split(a[0]))[0],i=n[1],[offsetSegment(r,e),offsetSegment(i,e)];r=(n=t.split(a[0]))[0];var o=(a[1]-a[0])/(1-a[0]);return s=(n=n[1].split(o))[0],i=n[1],[offsetSegment(r,e),offsetSegment(s,e),offsetSegment(i,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],r="normal",i="normal",n=e.length,s=0;s<n;s+=1)switch(e[s].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:t.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,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(t,e,r,i,n,s){var a=s?-1:1,o=i.s.v[0]+(1-i.s.v[0])*(1-n),l=i.s.v[1]+(1-i.s.v[1])*(1-n);t.translate(i.p.v[0]*a*n,i.p.v[1]*a*n,i.p.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.rotate(-i.r.v*a*n),e.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(s?1/o:o,s?1/l:l),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(t,e,r,i){for(this.elem=t,this.arr=e,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[r]);r>0;)r-=1,this._elements.unshift(e[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e]._processed=!1,t[e].ty==="gr"&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)t[r]._render=e,t[r].ty==="gr"&&this.changeGroupRender(t[r].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,r,i,n,s,a=!1;if(this._mdf||t){var o,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.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,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(s=0,i=0;i<=this._groups.length-1;i+=1){if(o=s<l,this._groups[i]._render=o,this.changeGroupRender(this._groups[i].it,o),!o){var c=this.elemsData[i].it,u=c[c.length-1];u.transform.op.v!==0?(u.transform.op._mdf=!0,u.transform.op.v=0):u.transform.op._mdf=!1}s+=1}this._currentCopies=l;var f=this.o.v,p=f%1,m=f>0?Math.floor(f):Math.ceil(f),g=this.pMatrix.props,d=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,_=0;if(f>0){for(;_<m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),_+=p)}else if(f<0){for(;_>m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),_-=p)}for(i=this.data.m===1?0:this._currentCopies-1,n=this.data.m===1?1:-1,s=this._currentCopies;s;){if(b=(r=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),_!==0){for((i!==0&&n===1||i!==this._currentCopies-1&&n===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[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(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),v=0;v<b;v+=1)r[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)r[v]=this.matrix.props[v];_+=1,s-=1,i+=n}}else for(s=this._currentCopies,i=0,n=1;s;)r=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,s-=1,i+=n;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var r,i=shapePool.newElement();i.c=t.c;var n,s,a,o,l,h,c,u,f,p,m,g,d=t._length,y=0;for(r=0;r<d;r+=1)n=t.v[r],a=t.o[r],s=t.i[r],n[0]===a[0]&&n[1]===a[1]&&n[0]===s[0]&&n[1]===s[1]?r!==0&&r!==d-1||t.c?(o=r===0?t.v[d-1]:t.v[r-1],h=(l=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)))?Math.min(l/2,e)/l:0,c=m=n[0]+(o[0]-n[0])*h,u=g=n[1]-(n[1]-o[1])*h,f=c-(c-n[0])*roundCorner,p=u-(u-n[1])*roundCorner,i.setTripleAt(c,u,f,p,m,g,y),y+=1,o=r===d-1?t.v[0]:t.v[r+1],h=(l=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)))?Math.min(l/2,e)/l:0,c=f=n[0]+(o[0]-n[0])*h,u=p=n[1]+(o[1]-n[1])*h,m=c-(c-n[0])*roundCorner,g=u-(u-n[1])*roundCorner,i.setTripleAt(c,u,f,p,m,g,y),y+=1):(i.setTripleAt(n[0],n[1],a[0],a[1],s[0],s[1],y),y+=1):(i.setTripleAt(t.v[r][0],t.v[r][1],t.o[r][0],t.o[r][1],t.i[r][0],t.i[r][1],y),y+=1);return i},RoundCornersModifier.prototype.processShapes=function(t){var e,r,i,n,s,a,o=this.shapes.length,l=this.rd.v;if(l!==0)for(r=0;r<o;r+=1){if(a=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)a.addShape(this.processPath(e[i],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,r=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(r<0)return[];var i=Math.sqrt(r);return floatZero(i)?i>0&&i<1?[e]:[]:[e-i,e+i].filter(function(n){return n>0&&n<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),r=lerpPoint(this.points[1],this.points[2],t),i=lerpPoint(this.points[2],this.points[3],t),n=lerpPoint(e,r,t),s=lerpPoint(r,i,t),a=lerpPoint(n,s,t);return[new PolynomialBezier(this.points[0],e,n,a,!0),new PolynomialBezier(a,s,i,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,r){e===void 0&&(e=2),r===void 0&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,i,r),i},PolynomialBezier.shapeSegment=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[r],t.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[r],t.i[r],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0},ZigZagModifier.prototype.processPath=function(t,e,r,i){var n=t._length,s=shapePool.newElement();if(s.c=t.c,t.c||(n-=1),n===0)return s;var a=-1,o=PolynomialBezier.shapeSegment(t,0);zigZagCorner(s,t,0,e,r,i,a);for(var l=0;l<n;l+=1)a=zigZagSegment(s,o,e,r,i,-a),o=l!==n-1||t.c?PolynomialBezier.shapeSegment(t,(l+1)%n):null,zigZagCorner(s,t,l+1,e,r,i,a);return s},ZigZagModifier.prototype.processShapes=function(t){var e,r,i,n,s,a,o=this.shapes.length,l=this.amplitude.v,h=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(l!==0)for(r=0;r<o;r+=1){if(a=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)a.addShape(this.processPath(e[i],l,h,c));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(t,e,r,i){var n=shapePool.newElement();n.c=t.c;var s,a,o,l=t.length();t.c||(l-=1);var h=[];for(s=0;s<l;s+=1)o=PolynomialBezier.shapeSegment(t,s),h.push(offsetSegmentSplit(o,e));if(!t.c)for(s=l-1;s>=0;s-=1)o=PolynomialBezier.shapeSegmentInverted(t,s),h.push(offsetSegmentSplit(o,e));h=pruneIntersections(h);var c=null,u=null;for(s=0;s<h.length;s+=1){var f=h[s];for(u&&(c=joinLines(n,u,f[0],r,i)),u=f[f.length-1],a=0;a<f.length;a+=1)o=f[a],c&&pointEqual(o.points[0],c)?n.setXYAt(o.points[1][0],o.points[1][1],"o",n.length()-1):n.setTripleAt(o.points[0][0],o.points[0][1],o.points[1][0],o.points[1][1],o.points[0][0],o.points[0][1],n.length()),n.setTripleAt(o.points[3][0],o.points[3][1],o.points[3][0],o.points[3][1],o.points[2][0],o.points[2][1],n.length()),c=o.points[3]}return h.length&&joinLines(n,u,h[0][0],r,i),n},OffsetPathModifier.prototype.processShapes=function(t){var e,r,i,n,s,a,o=this.shapes.length,l=this.amount.v,h=this.miterLimit.v,c=this.lineJoin;if(l!==0)for(r=0;r<o;r+=1){if(a=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)a.addShape(this.processPath(e[i],l,c,h));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.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=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],i=[65039,8205];function n(o,l){var h=createTag("span");h.setAttribute("aria-hidden",!0),h.style.fontFamily=l;var c=createTag("span");c.innerText="giItT1WQy@!-/#",h.style.position="absolute",h.style.left="-10000px",h.style.top="-10000px",h.style.fontSize="300px",h.style.fontVariant="normal",h.style.fontStyle="normal",h.style.fontWeight="normal",h.style.letterSpacing="0",h.appendChild(c),document.body.appendChild(h);var u=c.offsetWidth;return c.style.fontFamily=function(f){var p,m=f.split(","),g=m.length,d=[];for(p=0;p<g;p+=1)m[p]!=="sans-serif"&&m[p]!=="monospace"&&d.push(m[p]);return d.join(",")}(o)+", "+l,{node:c,w:u,parent:h}}function s(o,l){var h,c=document.body&&l?"svg":"canvas",u=getFontProperties(o);if(c==="svg"){var f=createNS("text");f.style.fontSize="100px",f.setAttribute("font-family",o.fFamily),f.setAttribute("font-style",u.style),f.setAttribute("font-weight",u.weight),f.textContent="1",o.fClass?(f.style.fontFamily="inherit",f.setAttribute("class",o.fClass)):f.style.fontFamily=o.fFamily,l.appendChild(f),h=f}else{var p=new OffscreenCanvas(500,500).getContext("2d");p.font=u.style+" "+u.weight+" 100px "+o.fFamily,h=p}return{measureText:function(m){return c==="svg"?(h.textContent=m,h.getComputedTextLength()):h.measureText(m).width}}}var a=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)};return a.isModifier=function(o,l){var h=o.toString(16)+l.toString(16);return r.indexOf(h)!==-1},a.isZeroWidthJoiner=function(o,l){return l?o===i[0]&&l===i[1]:o===i[1]},a.isCombinedCharacter=function(o){return e.indexOf(o)!==-1},a.prototype={addChars:function(o){if(o){var l;this.chars||(this.chars=[]);var h,c,u=o.length,f=this.chars.length;for(l=0;l<u;l+=1){for(h=0,c=!1;h<f;)this.chars[h].style===o[l].style&&this.chars[h].fFamily===o[l].fFamily&&this.chars[h].ch===o[l].ch&&(c=!0),h+=1;c||(this.chars.push(o[l]),f+=1)}}},addFonts:function(o,l){if(o){if(this.chars)return this.isLoaded=!0,void(this.fonts=o.list);if(!document.body)return this.isLoaded=!0,o.list.forEach(function(b){b.helper=s(b),b.cache={}}),void(this.fonts=o.list);var h,c=o.list,u=c.length,f=u;for(h=0;h<u;h+=1){var p,m,g=!0;if(c[h].loaded=!1,c[h].monoCase=n(c[h].fFamily,"monospace"),c[h].sansCase=n(c[h].fFamily,"sans-serif"),c[h].fPath){if(c[h].fOrigin==="p"||c[h].origin===3){if((p=document.querySelectorAll('style[f-forigin="p"][f-family="'+c[h].fFamily+'"], style[f-origin="3"][f-family="'+c[h].fFamily+'"]')).length>0&&(g=!1),g){var d=createTag("style");d.setAttribute("f-forigin",c[h].fOrigin),d.setAttribute("f-origin",c[h].origin),d.setAttribute("f-family",c[h].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+c[h].fFamily+"; font-style: normal; src: url('"+c[h].fPath+"');}",l.appendChild(d)}}else if(c[h].fOrigin==="g"||c[h].origin===1){for(p=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),m=0;m<p.length;m+=1)p[m].href.indexOf(c[h].fPath)!==-1&&(g=!1);if(g){var y=createTag("link");y.setAttribute("f-forigin",c[h].fOrigin),y.setAttribute("f-origin",c[h].origin),y.type="text/css",y.rel="stylesheet",y.href=c[h].fPath,document.body.appendChild(y)}}else if(c[h].fOrigin==="t"||c[h].origin===2){for(p=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),m=0;m<p.length;m+=1)c[h].fPath===p[m].src&&(g=!1);if(g){var v=createTag("link");v.setAttribute("f-forigin",c[h].fOrigin),v.setAttribute("f-origin",c[h].origin),v.setAttribute("rel","stylesheet"),v.setAttribute("href",c[h].fPath),l.appendChild(v)}}}else c[h].loaded=!0,f-=1;c[h].helper=s(c[h],l),c[h].cache={},this.fonts.push(c[h])}f===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(o,l,h){for(var c=0,u=this.chars.length;c<u;){if(this.chars[c].ch===o&&this.chars[c].style===l&&this.chars[c].fFamily===h)return this.chars[c];c+=1}return(typeof o=="string"&&o.charCodeAt(0)!==13||!o)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",o,l,h)),t},getFontByName:function(o){for(var l=0,h=this.fonts.length;l<h;){if(this.fonts[l].fName===o)return this.fonts[l];l+=1}return this.fonts[0]},measureText:function(o,l,h){var c=this.getFontByName(l),u=o.charCodeAt(0);if(!c.cache[u+1]){var f=c.helper;if(o===" "){var p=f.measureText("|"+o+"|"),m=f.measureText("||");c.cache[u+1]=(p-m)/100}else c.cache[u+1]=f.measureText(o)/100}return c.cache[u+1]*h},checkLoadedFonts:function(){var o,l,h,c=this.fonts.length,u=c;for(o=0;o<c;o+=1)this.fonts[o].loaded?u-=1:this.fonts[o].fOrigin==="n"||this.fonts[o].origin===0?this.fonts[o].loaded=!0:(l=this.fonts[o].monoCase.node,h=this.fonts[o].monoCase.w,l.offsetWidth!==h?(u-=1,this.fonts[o].loaded=!0):(l=this.fonts[o].sansCase.node,h=this.fonts[o].sansCase.w,l.offsetWidth!==h&&(u-=1,this.fonts[o].loaded=!0)),this.fonts[o].loaded&&(this.fonts[o].sansCase.parent.parentNode.removeChild(this.fonts[o].sansCase.parent),this.fonts[o].monoCase.parent.parentNode.removeChild(this.fonts[o].monoCase.parent)));u!==0&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},a}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},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(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{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(t){return blendModeEnums[t]||""}),blendModeEnums;function SliderEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function AngleEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function ColorEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function PointEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function LayerIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function MaskIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function CheckboxEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var r,i=t.ef||[];this.effectElements=[];var n,s=i.length;for(r=0;r<s;r+=1)n=new GroupEffect(i[r],e),this.effectElements.push(n)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,r)}function AudioElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,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=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(t,e,r){this.data=t,this.element=e,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,n,s=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var o,l,h,c,u,f,p=this.masksProperties,m=0,g=[],d=createElementID(),y="clipPath",v="clip-path";for(i=0;i<a;i+=1)if((p[i].mode!=="a"&&p[i].mode!=="n"||p[i].inv||p[i].o.k!==100||p[i].o.x)&&(y="mask",v="mask"),p[i].mode!=="s"&&p[i].mode!=="i"||m!==0?h=null:((h=createNS("rect")).setAttribute("fill","#ffffff"),h.setAttribute("width",this.element.comp.data.w||0),h.setAttribute("height",this.element.comp.data.h||0),g.push(h)),n=createNS("path"),p[i].mode==="n")this.viewData[i]={op:PropertyFactory.getProp(this.element,p[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[i],3),elem:n,lastPath:""},s.appendChild(n);else{var b;if(m+=1,n.setAttribute("fill",p[i].mode==="s"?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),p[i].x.k!==0?(y="mask",v="mask",f=PropertyFactory.getProp(this.element,p[i].x,0,null,this.element),b=createElementID(),(c=createNS("filter")).setAttribute("id",b),(u=createNS("feMorphology")).setAttribute("operator","erode"),u.setAttribute("in","SourceGraphic"),u.setAttribute("radius","0"),c.appendChild(u),s.appendChild(c),n.setAttribute("stroke",p[i].mode==="s"?"#000000":"#ffffff")):(u=null,f=null),this.storedData[i]={elem:n,x:f,expan:u,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},p[i].mode==="i"){l=g.length;var _=createNS("g");for(o=0;o<l;o+=1)_.appendChild(g[o]);var S=createNS("mask");S.setAttribute("mask-type","alpha"),S.setAttribute("id",d+"_"+m),S.appendChild(n),s.appendChild(S),_.setAttribute("mask","url("+getLocationHref()+"#"+d+"_"+m+")"),g.length=0,g.push(_)}else g.push(n);p[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,p[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[i],3),invRect:h},this.viewData[i].prop.k||this.drawPath(p[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=createNS(y),a=g.length,i=0;i<a;i+=1)this.maskElement.appendChild(g[i]);m>0&&(this.maskElement.setAttribute("id",d),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+d+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var r;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,n=this.data.ef.length,s=this.data.ef;for(r=0;r<n;r+=1){switch(i=null,s[r].ty){case 0:i=new SliderEffect(s[r],e,this);break;case 1:i=new AngleEffect(s[r],e,this);break;case 2:i=new ColorEffect(s[r],e,this);break;case 3:i=new PointEffect(s[r],e,this);break;case 4:case 7:i=new CheckboxEffect(s[r],e,this);break;case 10:i=new LayerIndexEffect(s[r],e,this);break;case 11:i=new MaskIndexEffect(s[r],e,this);break;case 5:i=new EffectsManager(s[r],e,this);break;default:i=new NoValueEffect(s[r],e,this)}i&&this.effectElements.push(i)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),r=t("effects"),i=t("shape"),n=t("text"),s=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),this.data.ty===0||this.data.xt?this.compInterface=s(this):this.data.ty===4?(this.layerInterface.shapeInterface=i(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=n(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,r){this.globalData=e,this.comp=r,this.data=t,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(t,e){var r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)(e||this._isParent&&this.dynamicProperties[r].propType==="transform")&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t)}},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 t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}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(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*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(t){var e,r,i=this.layers.length;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(r=this.layers[e]).ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var r,i=t.length,n=this.layers.length;for(e=0;e<i;e+=1)for(r=0;r<n;){if(this.layers[r].id===t[e].id){this.layers[r]=t[e];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,r){for(var i=this.elements,n=this.layers,s=0,a=n.length;s<a;)n[s].ind==e&&(i[s]&&i[s]!==!0?(r.push(i[s]),i[s].setAsParent(),n[s].parent!==void 0?this.buildElementParenting(t,n[s].parent,r):t.setHierarchy(r)):(this.buildItem(s),this.addPendingElement(t))),s+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,r=t.length;for(e=0;e<r;e+=1)if(t[e].xt){var i=this.createComp(t[e]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementByPath=function(t){var e,r=t.shift();if(typeof r=="number")e=this.elements[r];else{var i,n=this.elements.length;for(i=0;i<n;i+=1)if(this.elements[i].data.nm===r){e=this.elements[i];break}}return t.length===0?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),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=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},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 t,e=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(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),r=0;r<i;r+=1)t=this.hierarchy[r].finalTransform.mProp.v.props,e.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])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var r,i=!0,n=this.comp;i;)n.finalTransform?(n.data.hasMask&&e.splice(0,0,n.finalTransform),n=n.comp):i=!1;var s,a=e.length;for(r=0;r<a;r+=1)s=e[r].mat.applyToPointArray(0,0,0),t=[t[0]-s[0],t[1]-s[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,r=this.element.finalTransform.mat,i=this.masksProperties.length;for(e=0;e<i;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),this.masksProperties[e].mode!=="n"&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var n=this.storedData[e].expan;this.storedData[e].x.v<0?(this.storedData[e].lastOperator!=="erode"&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),n.setAttribute("radius",-this.storedData[e].x.v)):(this.storedData[e].lastOperator!=="dilate"&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,r){var i,n,s=" M"+e.v[0][0]+","+e.v[0][1];for(n=e._length,i=1;i<n;i+=1)s+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[i][0]+","+e.i[i][1]+" "+e.v[i][0]+","+e.v[i][1];if(e.c&&n>1&&(s+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==s){var a="";r.elem&&(e.c&&(a=t.inv?this.solidPath+s:s),r.elem.setAttribute("d",a)),r.lastPath=s}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={};return t.createFilter=function(e,r){var i=createNS("filter");return i.setAttribute("id",e),r!==!0&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},t.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},t}(),featureSupport=function(){var t={maskType:!0};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))&&(t.maskType=!1),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,r,i="SourceGraphic",n=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),o=0;for(this.filters=[],e=0;e<n;e+=1){r=null;var l=t.data.ef[e].ty;registeredEffects[l]&&(r=new registeredEffects[l].effect(a,t.effectsManager.effectElements[e],t,idPrefix+o,i),i=idPrefix+o,registeredEffects[l].countsAsEffect&&(o+=1)),r&&this.filters.push(r)}o&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e,r){registeredEffects[t]={effect:e,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},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 t=null;if(this.data.td){this.matteMasks={};var e=createNS("symbol");e.setAttribute("id",this.layerId);var r=createNS("g");r.appendChild(this.layerElement),e.appendChild(r),t=r,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=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),this.data.ty===0&&!this.data.hd){var i=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var s=createElementID();if(i.setAttribute("id",s),i.appendChild(n),this.globalData.defs.appendChild(i),this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),a.appendChild(this.layerElement),this.transformedElement=a,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},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)},getMatte:function(t){if(!this.matteMasks[t]){var e,r,i,n,s=this.layerId+"_"+t;if(t===1||t===3){var a=createNS("mask");a.setAttribute("id",s),a.setAttribute("mask-type",t===3?"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||t!==1||(a.setAttribute("mask-type","luminance"),e=createElementID(),r=filtersFactory.createFilter(e),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(i),a.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(t===2){var o=createNS("mask");o.setAttribute("id",s),o.setAttribute("mask-type","alpha");var l=createNS("g");o.appendChild(l),e=createElementID(),r=filtersFactory.createFilter(e);var h=createNS("feComponentTransfer");h.setAttribute("in","SourceGraphic"),r.appendChild(h);var c=createNS("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),h.appendChild(c),this.globalData.defs.appendChild(r);var u=createNS("rect");u.setAttribute("width",this.comp.data.w),u.setAttribute("height",this.comp.data.h),u.setAttribute("x","0"),u.setAttribute("y","0"),u.setAttribute("fill","#ffffff"),u.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),l.appendChild(u),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(i),featureSupport.maskType||(o.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),l.appendChild(u),n.appendChild(this.layerElement),l.appendChild(n)),this.globalData.defs.appendChild(o)}this.matteMasks[t]=s}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,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.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,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 t=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",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,r=this.shapeModifiers.length;for(e=0;e<r;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,r=0,i=e.length;r<i;){if(e[r].elem===t)return e[r].pos;r+=1}return 0},addProcessedElement:function(t,e){for(var r=this.processedElements,i=r.length;i;)if(r[i-=1].elem===t)return void(r[i].pos=e);r.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,r){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=r,this.lvl=e,this._isAnimated=!!r.k;for(var i=0,n=t.length;i<n;){if(t[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=t.hd===!0,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,r,i){var n;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var s,a=e.length||0;for(n=0;n<a;n+=1)s=PropertyFactory.getProp(t,e[n].v,0,0,this),this.k=s.k||this.k,this.dataProps[n]={n:e[n].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r}function SVGNoStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(t,e,r){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var i=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.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(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,r)}function SVGGradientStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,r){this.transform={mProps:t,op:e,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(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,r=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),e=0;e<r;e+=1)this.dataProps[e].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var r=0,i=this.o.length/2;r<i;){if(Math.abs(t[4*r]-t[4*e+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 t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,r,i,n=4*this.data.p;for(e=0;e<n;e+=1)r=e%4==0?100:255,i=Math.round(this.prop.v[e]*r),this.c[e]!==i&&(this.c[e]=i,this._cmdf=!t);if(this.o.length)for(n=this.prop.v.length,e=4*this.data.p;e<n;e+=1)r=e%2==0?100:1,i=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==i&&(this.o[e-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,r){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,e),this.setGradientOpacity(e,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var r=createElementID(),i=createNS(e.t===1?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var n,s,a,o=[];for(a=4*e.g.p,s=0;s<a;s+=4)n=createNS("stop"),i.appendChild(n),o.push(n);t.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,n,s=createNS("mask"),a=createNS("path");s.appendChild(a);var o=createElementID(),l=createElementID();s.setAttribute("id",l);var h=createNS(t.t===1?"linearGradient":"radialGradient");h.setAttribute("id",o),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),n=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var c=this.stops;for(i=4*t.g.p;i<n;i+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(r),c.push(r);a.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),t.ty==="gs"&&(a.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),t.lj===1&&a.setAttribute("stroke-miterlimit",t.ml)),this.of=h,this.ms=s,this.ost=c,this.maskId=l,e.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,r,i){if(e===0)return"";var n,s=t.o,a=t.i,o=t.v,l=" M"+i.applyToPointStringified(o[0][0],o[0][1]);for(n=1;n<e;n+=1)l+=" C"+i.applyToPointStringified(s[n-1][0],s[n-1][1])+" "+i.applyToPointStringified(a[n][0],a[n][1])+" "+i.applyToPointStringified(o[n][0],o[n][1]);return r&&e&&(l+=" C"+i.applyToPointStringified(s[n-1][0],s[n-1][1])+" "+i.applyToPointStringified(a[0][0],a[0][1])+" "+i.applyToPointStringified(o[0][0],o[0][1]),l+="z"),l},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function r(h,c,u){(u||c.transform.op._mdf)&&c.transform.container.setAttribute("opacity",c.transform.op.v),(u||c.transform.mProps._mdf)&&c.transform.container.setAttribute("transform",c.transform.mProps.v.to2dCSS())}function i(){}function n(h,c,u){var f,p,m,g,d,y,v,b,_,S,T,x=c.styles.length,w=c.lvl;for(y=0;y<x;y+=1){if(g=c.sh._mdf||u,c.styles[y].lvl<w){for(b=e.reset(),S=w-c.styles[y].lvl,T=c.transformers.length-1;!g&&S>0;)g=c.transformers[T].mProps._mdf||g,S-=1,T-=1;if(g)for(S=w-c.styles[y].lvl,T=c.transformers.length-1;S>0;)_=c.transformers[T].mProps.v.props,b.transform(_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],_[9],_[10],_[11],_[12],_[13],_[14],_[15]),S-=1,T-=1}else b=t;if(p=(v=c.sh.paths)._length,g){for(m="",f=0;f<p;f+=1)(d=v.shapes[f])&&d._length&&(m+=buildShapeString(d,d._length,d.c,b));c.caches[y]=m}else m=c.caches[y];c.styles[y].d+=h.hd===!0?"":m,c.styles[y]._mdf=g||c.styles[y]._mdf}}function s(h,c,u){var f=c.style;(c.c._mdf||u)&&f.pElem.setAttribute("fill","rgb("+bmFloor(c.c.v[0])+","+bmFloor(c.c.v[1])+","+bmFloor(c.c.v[2])+")"),(c.o._mdf||u)&&f.pElem.setAttribute("fill-opacity",c.o.v)}function a(h,c,u){o(h,c,u),l(h,c,u)}function o(h,c,u){var f,p,m,g,d,y=c.gf,v=c.g._hasOpacity,b=c.s.v,_=c.e.v;if(c.o._mdf||u){var S=h.ty==="gf"?"fill-opacity":"stroke-opacity";c.style.pElem.setAttribute(S,c.o.v)}if(c.s._mdf||u){var T=h.t===1?"x1":"cx",x=T==="x1"?"y1":"cy";y.setAttribute(T,b[0]),y.setAttribute(x,b[1]),v&&!c.g._collapsable&&(c.of.setAttribute(T,b[0]),c.of.setAttribute(x,b[1]))}if(c.g._cmdf||u){f=c.cst;var w=c.g.c;for(m=f.length,p=0;p<m;p+=1)(g=f[p]).setAttribute("offset",w[4*p]+"%"),g.setAttribute("stop-color","rgb("+w[4*p+1]+","+w[4*p+2]+","+w[4*p+3]+")")}if(v&&(c.g._omdf||u)){var M=c.g.o;for(m=(f=c.g._collapsable?c.cst:c.ost).length,p=0;p<m;p+=1)g=f[p],c.g._collapsable||g.setAttribute("offset",M[2*p]+"%"),g.setAttribute("stop-opacity",M[2*p+1])}if(h.t===1)(c.e._mdf||u)&&(y.setAttribute("x2",_[0]),y.setAttribute("y2",_[1]),v&&!c.g._collapsable&&(c.of.setAttribute("x2",_[0]),c.of.setAttribute("y2",_[1])));else if((c.s._mdf||c.e._mdf||u)&&(d=Math.sqrt(Math.pow(b[0]-_[0],2)+Math.pow(b[1]-_[1],2)),y.setAttribute("r",d),v&&!c.g._collapsable&&c.of.setAttribute("r",d)),c.e._mdf||c.h._mdf||c.a._mdf||u){d||(d=Math.sqrt(Math.pow(b[0]-_[0],2)+Math.pow(b[1]-_[1],2)));var k=Math.atan2(_[1]-b[1],_[0]-b[0]),I=c.h.v;I>=1?I=.99:I<=-1&&(I=-.99);var P=d*I,A=Math.cos(k+c.a.v)*P+b[0],E=Math.sin(k+c.a.v)*P+b[1];y.setAttribute("fx",A),y.setAttribute("fy",E),v&&!c.g._collapsable&&(c.of.setAttribute("fx",A),c.of.setAttribute("fy",E))}}function l(h,c,u){var f=c.style,p=c.d;p&&(p._mdf||u)&&p.dashStr&&(f.pElem.setAttribute("stroke-dasharray",p.dashStr),f.pElem.setAttribute("stroke-dashoffset",p.dashoffset[0])),c.c&&(c.c._mdf||u)&&f.pElem.setAttribute("stroke","rgb("+bmFloor(c.c.v[0])+","+bmFloor(c.c.v[1])+","+bmFloor(c.c.v[2])+")"),(c.o._mdf||u)&&f.pElem.setAttribute("stroke-opacity",c.o.v),(c.w._mdf||u)&&(f.pElem.setAttribute("stroke-width",c.w.v),f.msElem&&f.msElem.setAttribute("stroke-width",c.w.v))}return{createRenderFunction:function(h){switch(h.ty){case"fl":return s;case"gf":return o;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return n;case"tr":return r;case"no":return i;default:return null}}}}();function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),this.prevViewData=[]}function LetterProps(t,e,r,i,n,s){this.o=t,this.sw=e,this.sc=r,this.fc=i,this.m=n,this.p=s,this._mdf={o:!0,sw:!!e,sc:!!r,fc:!!i,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,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 t,e,r,i,n=this.shapes.length,s=this.stylesList.length,a=[],o=!1;for(r=0;r<s;r+=1){for(i=this.stylesList[r],o=!1,a.length=0,t=0;t<n;t+=1)(e=this.shapes[t]).styles.indexOf(i)!==-1&&(a.push(e),o=e._isAnimated||o);a.length>1&&o&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var r,i=new SVGStyleData(t,e),n=i.pElem;return t.ty==="st"?r=new SVGStrokeStyleData(this,t,i):t.ty==="fl"?r=new SVGFillStyleData(this,t,i):t.ty==="gf"||t.ty==="gs"?(r=new(t.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),n.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):t.ty==="no"&&(r=new SVGNoStyleData(this,t,i)),t.ty!=="st"&&t.ty!=="gs"||(n.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),n.setAttribute("fill-opacity","0"),t.lj===1&&n.setAttribute("stroke-miterlimit",t.ml)),t.r===2&&n.setAttribute("fill-rule","evenodd"),t.ln&&n.setAttribute("id",t.ln),t.cl&&n.setAttribute("class",t.cl),t.bm&&(n.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(i),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var r=TransformPropertyFactory.getTransformProperty(this,t,this),i=new SVGTransformData(r,r.o,e);return this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createShapeElement=function(t,e,r){var i=4;t.ty==="rc"?i=5:t.ty==="el"?i=6:t.ty==="sr"&&(i=7);var n=new SVGShapeData(e,r,ShapePropertyFactory.getShapeProp(this,t,i,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===e)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,r=t.styles,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||r.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,r,i,n,s,a){var o,l,h,c,u,f,p=[].concat(s),m=t.length-1,g=[],d=[];for(o=m;o>=0;o-=1){if((f=this.searchProcessedElement(t[o]))?e[o]=r[f-1]:t[o]._render=a,t[o].ty==="fl"||t[o].ty==="st"||t[o].ty==="gf"||t[o].ty==="gs"||t[o].ty==="no")f?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],n),t[o]._render&&e[o].style.pElem.parentNode!==i&&i.appendChild(e[o].style.pElem),g.push(e[o].style);else if(t[o].ty==="gr"){if(f)for(h=e[o].it.length,l=0;l<h;l+=1)e[o].prevViewData[l]=e[o].it[l];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,e[o].gr,n+1,p,a),t[o]._render&&e[o].gr.parentNode!==i&&i.appendChild(e[o].gr)}else t[o].ty==="tr"?(f||(e[o]=this.createTransformElement(t[o],i)),c=e[o].transform,p.push(c)):t[o].ty==="sh"||t[o].ty==="rc"||t[o].ty==="el"||t[o].ty==="sr"?(f||(e[o]=this.createShapeElement(t[o],p,n)),this.setElementStyles(e[o])):t[o].ty==="tm"||t[o].ty==="rd"||t[o].ty==="ms"||t[o].ty==="pb"||t[o].ty==="zz"||t[o].ty==="op"?(f?(u=e[o]).closed=!1:((u=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),e[o]=u,this.shapeModifiers.push(u)),d.push(u)):t[o].ty==="rp"&&(f?(u=e[o]).closed=!0:(u=ShapeModifiers.getModifier(t[o].ty),e[o]=u,u.init(this,t,o,e),this.shapeModifiers.push(u),a=!1),d.push(u));this.addProcessedElement(t[o],o+1)}for(m=g.length,o=0;o<m;o+=1)g[o].closed=!0;for(m=d.length,o=0;o<m;o+=1)d[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,r=this.animatedContents.length;for(t=0;t<r;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&e.data!==!0&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,r,i,n,s){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!==t&&(this.o=t,this._mdf.o=!0,a=!0),this.sw!==e&&(this.sw=e,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!==n&&(this.m=n,this._mdf.m=!0,a=!0),!s.length||this.p[0]===s[0]&&this.p[1]===s[1]&&this.p[4]===s[4]&&this.p[5]===s[5]&&this.p[12]===s[12]&&this.p[13]===s[13]||(this.p=s,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,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(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(i=0;i<n;i+=1)s=r!==this.keysIndex?this.effectsSequence[i](s,s.t):this.effectsSequence[i](this.currentData,s.t);e!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,r=0,i=t.length;r<=i-1&&!(r===i-1||t[r+1].t>e);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,r,i=[],n=0,s=t.length,a=!1;n<s;)e=t.charCodeAt(n),FontManager.isCombinedCharacter(e)?i[i.length-1]+=t.charAt(n):e>=55296&&e<=56319?(r=t.charCodeAt(n+1))>=56320&&r<=57343?(a||FontManager.isModifier(e,r)?(i[i.length-1]+=t.substr(n,2),a=!1):i.push(t.substr(n,2)),n+=1):i.push(t.charAt(n)):e>56319?(r=t.charCodeAt(n+1),FontManager.isZeroWidthJoiner(e,r)?(a=!0,i[i.length-1]+=t.substr(n,2),n+=1):i.push(t.charAt(n))):FontManager.isZeroWidthJoiner(e)?(i[i.length-1]+=t.charAt(n),a=!0):i.push(t.charAt(n)),n+=1;return i},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,r,i,n,s,a,o,l=this.elem.globalData.fontManager,h=this.data,c=[],u=0,f=h.m.g,p=0,m=0,g=0,d=[],y=0,v=0,b=l.getFontByName(t.f),_=0,S=getFontProperties(b);t.fWeight=S.weight,t.fStyle=S.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),r=t.finalText.length,t.finalLineHeight=t.lh;var T,x=t.tr/1e3*t.finalSize;if(t.sz)for(var w,M,k=!0,I=t.sz[0],P=t.sz[1];k;){w=0,y=0,r=(M=this.buildFinalText(t.t)).length,x=t.tr/1e3*t.finalSize;var A=-1;for(e=0;e<r;e+=1)T=M[e].charCodeAt(0),i=!1,M[e]===" "?A=e:T!==13&&T!==3||(y=0,i=!0,w+=t.finalLineHeight||1.2*t.finalSize),l.chars?(o=l.getCharData(M[e],b.fStyle,b.fFamily),_=i?0:o.w*t.finalSize/100):_=l.measureText(M[e],t.f,t.finalSize),y+_>I&&M[e]!==" "?(A===-1?r+=1:e=A,w+=t.finalLineHeight||1.2*t.finalSize,M.splice(e,A===e?1:0,"\r"),A=-1,y=0):(y+=_,y+=x);w+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&P<w?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=M,r=t.finalText.length,k=!1)}y=-x,_=0;var E,F=0;for(e=0;e<r;e+=1)if(i=!1,(T=(E=t.finalText[e]).charCodeAt(0))===13||T===3?(F=0,d.push(y),v=y>v?y:v,y=-2*x,n="",i=!0,g+=1):n=E,l.chars?(o=l.getCharData(E,b.fStyle,l.getFontByName(t.f).fFamily),_=i?0:o.w*t.finalSize/100):_=l.measureText(n,t.f,t.finalSize),E===" "?F+=_+x:(y+=_+x+F,F=0),c.push({l:_,an:_,add:p,n:i,anIndexes:[],val:n,line:g,animatorJustifyOffset:0}),f==2){if(p+=_,n===""||n===" "||e===r-1){for(n!==""&&n!==" "||(p-=_);m<=e;)c[m].an=p,c[m].ind=u,c[m].extra=_,m+=1;u+=1,p=0}}else if(f==3){if(p+=_,n===""||e===r-1){for(n===""&&(p-=_);m<=e;)c[m].an=p,c[m].ind=u,c[m].extra=_,m+=1;p=0,u+=1}}else c[u].ind=u,c[u].extra=0,u+=1;if(t.l=c,v=y>v?y:v,d.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=d;var $,D,C,R,B=h.a;a=B.length;var U=[];for(s=0;s<a;s+=1){for(($=B[s]).a.sc&&(t.strokeColorAnim=!0),$.a.sw&&(t.strokeWidthAnim=!0),($.a.fc||$.a.fh||$.a.fs||$.a.fb)&&(t.fillColorAnim=!0),R=0,C=$.s.b,e=0;e<r;e+=1)(D=c[e]).anIndexes[s]=R,(C==1&&D.val!==""||C==2&&D.val!==""&&D.val!==" "||C==3&&(D.n||D.val==" "||e==r-1)||C==4&&(D.n||e==r-1))&&($.s.rn===1&&U.push(R),R+=1);h.a[s].s.totalChars=R;var W,X=-1;if($.s.rn===1)for(e=0;e<r;e+=1)X!=(D=c[e]).anIndexes[s]&&(X=D.anIndexes[s],W=U.splice(Math.floor(Math.random()*U.length),1)[0]),D.anIndexes[s]=W}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=e===void 0?this.keysIndex:e;var r=this.copyData({},this.data.d.k[e].s);r=this.copyData(r,t),this.data.d.k[e].s=r,this.recalculate(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,r=Math.floor;function i(n,s){this._currentTextLength=-1,this.k=!1,this.data=s,this.elem=n,this.comp=n.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(n),this.s=PropertyFactory.getProp(n,s.s||{k:0},0,0,this),this.e="e"in s?PropertyFactory.getProp(n,s.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(n,s.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(n,s.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(n,s.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(n,s.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(n,s.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return i.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var s=0,a=0,o=1,l=1;this.ne.v>0?s=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:l=1+this.xe.v/100;var h=BezierFactory.getBezierEasing(s,a,o,l).get,c=0,u=this.finalS,f=this.finalE,p=this.data.sh;if(p===2)c=h(c=f===u?n>=f?1:0:t(0,e(.5/(f-u)+(n-u)/(f-u),1)));else if(p===3)c=h(c=f===u?n>=f?0:1:1-t(0,e(.5/(f-u)+(n-u)/(f-u),1)));else if(p===4)f===u?c=0:(c=t(0,e(.5/(f-u)+(n-u)/(f-u),1)))<.5?c*=2:c=1-2*(c-.5),c=h(c);else if(p===5){if(f===u)c=0;else{var m=f-u,g=-m/2+(n=e(t(0,n+.5-u),f-u)),d=m/2;c=Math.sqrt(1-g*g/(d*d))}c=h(c)}else p===6?(f===u?c=0:(n=e(t(0,n+.5-u),f-u),c=(1+Math.cos(Math.PI+2*Math.PI*n/(f-u)))/2),c=h(c)):(n>=r(u)&&(c=t(0,e(n-u<0?e(f,1)-(u-n):f-n,1))),c=h(c));if(this.sm.v!==100){var y=.01*this.sm.v;y===0&&(y=1e-8);var v=.5-.5*y;c<v?c=0:(c=(c-v)/y)>1&&(c=1)}return c*this.a.v},getValue:function(n){this.iterateDynamicProperties(),this._mdf=n||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,n&&this.data.r===2&&(this.e.v=this._currentTextLength);var s=this.data.r===2?1:100/this.data.totalChars,a=this.o.v/s,o=this.s.v/s+a,l=this.e.v/s+a;if(o>l){var h=o;o=l,l=h}this.finalS=o,this.finalE=l}},extendPrototype([DynamicPropertyContainer],i),{getTextSelectorProp:function(n,s,a){return new i(n,s,a)}}}();function TextAnimatorDataProperty(t,e,r){var i={propType:!1},n=PropertyFactory.getProp,s=e.a;this.a={r:s.r?n(t,s.r,0,degToRads,r):i,rx:s.rx?n(t,s.rx,0,degToRads,r):i,ry:s.ry?n(t,s.ry,0,degToRads,r):i,sk:s.sk?n(t,s.sk,0,degToRads,r):i,sa:s.sa?n(t,s.sa,0,degToRads,r):i,s:s.s?n(t,s.s,1,.01,r):i,a:s.a?n(t,s.a,1,0,r):i,o:s.o?n(t,s.o,0,.01,r):i,p:s.p?n(t,s.p,1,0,r):i,sw:s.sw?n(t,s.sw,0,0,r):i,sc:s.sc?n(t,s.sc,1,0,r):i,fc:s.fc?n(t,s.fc,1,0,r):i,fh:s.fh?n(t,s.fh,0,0,r):i,fs:s.fs?n(t,s.fs,0,.01,r):i,fb:s.fb?n(t,s.fb,0,.01,r):i,t:s.t?n(t,s.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,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 t,e,r=this._textData.a.length,i=PropertyFactory.getProp;for(t=0;t<r;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,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(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,i,n,s,a,o,l,h,c,u,f,p,m,g,d,y,v,b,_,S=this._moreOptions.alignment.v,T=this._animatorsData,x=this._textData,w=this.mHelper,M=this._renderType,k=this.renderedLetters.length,I=t.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var P,A=_.v;for(this._pathData.r.v&&(A=A.reverse()),a={tLength:0,segments:[]},s=A._length-1,y=0,n=0;n<s;n+=1)P=bez.buildBezierData(A.v[n],A.v[n+1],[A.o[n][0]-A.v[n][0],A.o[n][1]-A.v[n][1]],[A.i[n+1][0]-A.v[n+1][0],A.i[n+1][1]-A.v[n+1][1]]),a.tLength+=P.segmentLength,a.segments.push(P),y+=P.segmentLength;n=s,_.v.c&&(P=bez.buildBezierData(A.v[n],A.v[0],[A.o[n][0]-A.v[n][0],A.o[n][1]-A.v[n][1]],[A.i[0][0]-A.v[0][0],A.i[0][1]-A.v[0][1]]),a.tLength+=P.segmentLength,a.segments.push(P),y+=P.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,o=this._pathData.f.v,f=0,u=1,h=0,c=!0,g=a.segments,o<0&&_.v.c)for(a.tLength<Math.abs(o)&&(o=-Math.abs(o)%a.tLength),u=(m=g[f=g.length-1].points).length-1;o<0;)o+=m[u].partialLength,(u-=1)<0&&(u=(m=g[f-=1].points).length-1);p=(m=g[f].points)[u-1],d=(l=m[u]).partialLength}s=I.length,r=0,i=0;var E,F,$,D,C,R=1.2*t.finalSize*.714,B=!0;$=T.length;var U,W,X,H,ie,le,se,te,Ee,me,Me,Pe,J=-1,Ze=o,Pt=f,At=u,lt=-1,mt="",ht=this.defaultPropsArray;if(t.j===2||t.j===1){var Ve=0,gt=0,yt=t.j===2?-.5:-1,Rt=0,pr=!0;for(n=0;n<s;n+=1)if(I[n].n){for(Ve&&(Ve+=gt);Rt<n;)I[Rt].animatorJustifyOffset=Ve,Rt+=1;Ve=0,pr=!0}else{for(F=0;F<$;F+=1)(E=T[F].a).t.propType&&(pr&&t.j===2&&(gt+=E.t.v*yt),(C=T[F].s.getMult(I[n].anIndexes[F],x.a[F].s.totalChars)).length?Ve+=E.t.v*C[0]*yt:Ve+=E.t.v*C*yt);pr=!1}for(Ve&&(Ve+=gt);Rt<n;)I[Rt].animatorJustifyOffset=Ve,Rt+=1}for(n=0;n<s;n+=1){if(w.reset(),H=1,I[n].n)r=0,i+=t.yOffset,i+=B?1:0,o=Ze,B=!1,this._hasMaskedPath&&(u=At,p=(m=g[f=Pt].points)[u-1],d=(l=m[u]).partialLength,h=0),mt="",Me="",Ee="",Pe="",ht=this.defaultPropsArray;else{if(this._hasMaskedPath){if(lt!==I[n].line){switch(t.j){case 1:o+=y-t.lineWidths[I[n].line];break;case 2:o+=(y-t.lineWidths[I[n].line])/2}lt=I[n].line}J!==I[n].ind&&(I[J]&&(o+=I[J].extra),o+=I[n].an/2,J=I[n].ind),o+=S[0]*I[n].an*.005;var Lt=0;for(F=0;F<$;F+=1)(E=T[F].a).p.propType&&((C=T[F].s.getMult(I[n].anIndexes[F],x.a[F].s.totalChars)).length?Lt+=E.p.v[0]*C[0]:Lt+=E.p.v[0]*C),E.a.propType&&((C=T[F].s.getMult(I[n].anIndexes[F],x.a[F].s.totalChars)).length?Lt+=E.a.v[0]*C[0]:Lt+=E.a.v[0]*C);for(c=!0,this._pathData.a.v&&(o=.5*I[0].an+(y-this._pathData.f.v-.5*I[0].an-.5*I[I.length-1].an)*J/(s-1),o+=this._pathData.f.v);c;)h+d>=o+Lt||!m?(v=(o+Lt-h)/l.partialLength,W=p.point[0]+(l.point[0]-p.point[0])*v,X=p.point[1]+(l.point[1]-p.point[1])*v,w.translate(-S[0]*I[n].an*.005,-S[1]*R*.01),c=!1):m&&(h+=l.partialLength,(u+=1)>=m.length&&(u=0,g[f+=1]?m=g[f].points:_.v.c?(u=0,m=g[f=0].points):(h-=l.partialLength,m=null)),m&&(p=l,d=(l=m[u]).partialLength));U=I[n].an/2-I[n].add,w.translate(-U,0,0)}else U=I[n].an/2-I[n].add,w.translate(-U,0,0),w.translate(-S[0]*I[n].an*.005,-S[1]*R*.01,0);for(F=0;F<$;F+=1)(E=T[F].a).t.propType&&(C=T[F].s.getMult(I[n].anIndexes[F],x.a[F].s.totalChars),r===0&&t.j===0||(this._hasMaskedPath?C.length?o+=E.t.v*C[0]:o+=E.t.v*C:C.length?r+=E.t.v*C[0]:r+=E.t.v*C));for(t.strokeWidthAnim&&(le=t.sw||0),t.strokeColorAnim&&(ie=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(se=[t.fc[0],t.fc[1],t.fc[2]]),F=0;F<$;F+=1)(E=T[F].a).a.propType&&((C=T[F].s.getMult(I[n].anIndexes[F],x.a[F].s.totalChars)).length?w.translate(-E.a.v[0]*C[0],-E.a.v[1]*C[1],E.a.v[2]*C[2]):w.translate(-E.a.v[0]*C,-E.a.v[1]*C,E.a.v[2]*C));for(F=0;F<$;F+=1)(E=T[F].a).s.propType&&((C=T[F].s.getMult(I[n].anIndexes[F],x.a[F].s.totalChars)).length?w.scale(1+(E.s.v[0]-1)*C[0],1+(E.s.v[1]-1)*C[1],1):w.scale(1+(E.s.v[0]-1)*C,1+(E.s.v[1]-1)*C,1));for(F=0;F<$;F+=1){if(E=T[F].a,C=T[F].s.getMult(I[n].anIndexes[F],x.a[F].s.totalChars),E.sk.propType&&(C.length?w.skewFromAxis(-E.sk.v*C[0],E.sa.v*C[1]):w.skewFromAxis(-E.sk.v*C,E.sa.v*C)),E.r.propType&&(C.length?w.rotateZ(-E.r.v*C[2]):w.rotateZ(-E.r.v*C)),E.ry.propType&&(C.length?w.rotateY(E.ry.v*C[1]):w.rotateY(E.ry.v*C)),E.rx.propType&&(C.length?w.rotateX(E.rx.v*C[0]):w.rotateX(E.rx.v*C)),E.o.propType&&(C.length?H+=(E.o.v*C[0]-H)*C[0]:H+=(E.o.v*C-H)*C),t.strokeWidthAnim&&E.sw.propType&&(C.length?le+=E.sw.v*C[0]:le+=E.sw.v*C),t.strokeColorAnim&&E.sc.propType)for(te=0;te<3;te+=1)C.length?ie[te]+=(E.sc.v[te]-ie[te])*C[0]:ie[te]+=(E.sc.v[te]-ie[te])*C;if(t.fillColorAnim&&t.fc){if(E.fc.propType)for(te=0;te<3;te+=1)C.length?se[te]+=(E.fc.v[te]-se[te])*C[0]:se[te]+=(E.fc.v[te]-se[te])*C;E.fh.propType&&(se=C.length?addHueToRGB(se,E.fh.v*C[0]):addHueToRGB(se,E.fh.v*C)),E.fs.propType&&(se=C.length?addSaturationToRGB(se,E.fs.v*C[0]):addSaturationToRGB(se,E.fs.v*C)),E.fb.propType&&(se=C.length?addBrightnessToRGB(se,E.fb.v*C[0]):addBrightnessToRGB(se,E.fb.v*C))}}for(F=0;F<$;F+=1)(E=T[F].a).p.propType&&(C=T[F].s.getMult(I[n].anIndexes[F],x.a[F].s.totalChars),this._hasMaskedPath?C.length?w.translate(0,E.p.v[1]*C[0],-E.p.v[2]*C[1]):w.translate(0,E.p.v[1]*C,-E.p.v[2]*C):C.length?w.translate(E.p.v[0]*C[0],E.p.v[1]*C[1],-E.p.v[2]*C[2]):w.translate(E.p.v[0]*C,E.p.v[1]*C,-E.p.v[2]*C));if(t.strokeWidthAnim&&(Ee=le<0?0:le),t.strokeColorAnim&&(me="rgb("+Math.round(255*ie[0])+","+Math.round(255*ie[1])+","+Math.round(255*ie[2])+")"),t.fillColorAnim&&t.fc&&(Me="rgb("+Math.round(255*se[0])+","+Math.round(255*se[1])+","+Math.round(255*se[2])+")"),this._hasMaskedPath){if(w.translate(0,-t.ls),w.translate(0,S[1]*R*.01+i,0),this._pathData.p.v){b=(l.point[1]-p.point[1])/(l.point[0]-p.point[0]);var Cr=180*Math.atan(b)/Math.PI;l.point[0]<p.point[0]&&(Cr+=180),w.rotate(-Cr*Math.PI/180)}w.translate(W,X,0),o-=S[0]*I[n].an*.005,I[n+1]&&J!==I[n+1].ind&&(o+=I[n].an/2,o+=.001*t.tr*t.finalSize)}else{switch(w.translate(r,i,0),t.ps&&w.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:w.translate(I[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[I[n].line]),0,0);break;case 2:w.translate(I[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[I[n].line])/2,0,0)}w.translate(0,-t.ls),w.translate(U,0,0),w.translate(S[0]*I[n].an*.005,S[1]*R*.01,0),r+=I[n].l+.001*t.tr*t.finalSize}M==="html"?mt=w.toCSS():M==="svg"?mt=w.to2dCSS():ht=[w.props[0],w.props[1],w.props[2],w.props[3],w.props[4],w.props[5],w.props[6],w.props[7],w.props[8],w.props[9],w.props[10],w.props[11],w.props[12],w.props[13],w.props[14],w.props[15]],Pe=H}k<=n?(D=new LetterProps(Pe,Ee,me,Me,mt,ht),this.renderedLetters.push(D),k+=1,this.lettersChangedFlag=!0):(D=this.renderedLetters[n],this.lettersChangedFlag=D.update(Pe,Ee,me,Me,mt,ht)||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(t,e,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,r),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){var r,i,n=e.length,s="";for(r=0;r<n;r+=1)e[r].ty==="sh"&&(i=e[r].ks.k,s+=buildShapeString(i,i.i.length,!0,t));return s},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,r,i,n){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r])/2,0,0)}e.translate(i,n,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,r){this.textSpans=[],this.renderType="svg",this.initElement(t,e,r)}function ISolidElement(t,e,r){this.initElement(t,e,r)}function NullElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initFrame(),this.initTransform(t,e,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,r){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(e&&e.title){var i=createNS("title"),n=createElementID();i.setAttribute("id",n),i.textContent=e.title,this.svgElement.appendChild(i),r+=n}if(e&&e.description){var s=createNS("desc"),a=createElementID();s.setAttribute("id",a),s.textContent=e.description,this.svgElement.appendChild(s),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var o=createNS("defs");this.svgElement.appendChild(o);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&e.hideOnTransparent===!1),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var t;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),t=0;t<15;t+=1)this.saved[t]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVEffects(){}function CVMaskElement(t,e){var r;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i=this.masksProperties.length,n=!1;for(r=0;r<i;r+=1)this.masksProperties[r].mode!=="n"&&(n=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=n,n&&this.element.addRenderableComponent(this)}function CVBaseElement(){}function CVShapeData(t,e,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var n,s=4;e.ty==="rc"?s=5:e.ty==="el"?s=6:e.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,s,t);var a,o=r.length;for(n=0;n<o;n+=1)r[n].closed||(a={transforms:i.addTransformSequence(r[n].transforms),trNodes:[]},this.styledShapes.push(a),r[n].elements.push(a))}function CVShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,r)}function CVTextElement(t,e,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(t,e,r)}function CVImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,r)}function CVSolidElement(t,e,r){this.initElement(t,e,r)}function CanvasRendererBase(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||e.clearCanvas===void 0||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.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"}function CVCompElement(t,e,r){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||e.clearCanvas===void 0||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.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"}function HBaseElement(){}function HSolidElement(t,e,r){this.initElement(t,e,r)}function HShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,r)}function HCameraElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,t.pe,0,0,this),t.ks.p.s?(this.px=i(this,t.ks.p.x,1,0,this),this.py=i(this,t.ks.p.y,1,0,this),this.pz=i(this,t.ks.p.z,1,0,this)):this.p=i(this,t.ks.p,1,0,this),t.ks.a&&(this.a=i(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var n,s=t.ks.or.k.length;for(n=0;n<s;n+=1)t.ks.or.k[n].to=null,t.ks.or.k[n].ti=null}this.or=i(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,t.ks.rx,0,degToRads,this),this.ry=i(this,t.ks.ry,0,degToRads,this),this.rz=i(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&e.hideOnTransparent===!1),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.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(t,e,r){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&e.hideOnTransparent===!1),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||e.runExpressions===void 0||e.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"}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(t){for(var e=0,r=t.length,i=[],n="";e<r;)t[e]==="\r"||t[e]===""?(i.push(n),n=""):n+=t[e],e+=1;return i.push(n),i},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var r=t.shapes[0];if(r.it){var i=r.it[r.it.length-1];i.s&&(i.s.k[0]=e,i.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;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 n=r.fWeight,s=r.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",r.t);var a,o=r.l||[],l=!!this.globalData.fontManager.chars;e=o.length;var h=this.mHelper,c=this.data.singleShape,u=0,f=0,p=!0,m=.001*r.tr*r.finalSize;if(!c||l||r.sz){var g,d=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!l||!c||t===0){if(a=d>t?this.textSpans[t].span:createNS(l?"g":"text"),d<=t){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=a,l){var y=createNS("g");a.appendChild(y),this.textSpans[t].childSpan=y}this.textSpans[t].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(h.reset(),c&&(o[t].n&&(u=-m,f+=r.yOffset,f+=p?1:0,p=!1),this.applyTextPropertiesToMatrix(r,h,o[t].line,u,f),u+=o[t].l||0,u+=m),l){var v;if((g=this.globalData.fontManager.getCharData(r.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t===1)v=new SVGCompElement(g.data,this.globalData,this);else{var b=emptyShapeData;g.data&&g.data.shapes&&(b=this.buildShapeData(g.data,r.finalSize)),v=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[t].glyph){var _=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[t].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[t].childSpan.appendChild(v.layerElement),g.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else c&&a.setAttribute("transform","translate("+h.props[12]+","+h.props[13]+")"),a.textContent=o[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&a&&a.setAttribute("d","")}else{var S=this.textContainer,T="start";switch(r.j){case 1:T="end";break;case 2:T="middle";break;default:T="start"}S.setAttribute("text-anchor",T),S.setAttribute("letter-spacing",m);var x=this.buildTextContents(r.finalText);for(e=x.length,f=r.ps?r.ps[1]+r.ascent:0,t=0;t<e;t+=1)(a=this.textSpans[t].span||createNS("tspan")).textContent=x[t],a.setAttribute("x",0),a.setAttribute("y",f),a.style.display="inherit",S.appendChild(a),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=a,f+=r.finalLineHeight;this.layerElement.appendChild(S)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=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 t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<r;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var r,i,n,s=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(e=a.length,t=0;t<e;t+=1)a[t].n||(r=s[t],i=this.textSpans[t].span,(n=this.textSpans[t].glyph)&&n.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 t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!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(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){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 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.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),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",t.w),i.setAttribute("height",t.h),i.setAttribute("x",0),i.setAttribute("y",0);var n=createElementID();r.setAttribute("id",n),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),e.appendChild(r),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,r=this.layers.length;for(e=0;e<r;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&this.layers[t].ty!==99){e[t]=!0;var r=this.createItem(this.layers[t]);if(e[t]=r,getExpressionsPlugin()&&(this.layers[t].ty===0&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),this.layers[t].tt){var i="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(i===-1)return;if(this.elements[i]&&this.elements[i]!==!0){var n=e[i].getMatte(this.layers[t].tt);r.setMatte(n)}else this.buildItem(i),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,r=this.elements.length;e<r;){if(this.elements[e]===t){var i="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,n=this.elements[i].getMatte(this.layers[e].tt);t.setMatte(n);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;t===null?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=r-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){for(var i,n=0;n<e;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement()&&(i=this.elements[n].getBaseElement()),n+=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(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}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 t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=this.savedOp;this.savedOp=createTypedArray("float32",t),this.savedOp.set(e);var r=0;for(r=this._length;r<t;r+=1)this.saved[r]=createTypedArray("float32",16);this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,r=t.length,i="_";for(e=0;e<r;e+=1)i+=t[e].transform.key+"_";var n=this.sequences[i];return n||(n={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=n,this.sequenceList.push(n)),n},processSequence:function(t,e){for(var r,i=0,n=t.transforms.length,s=e;i<n&&!e;){if(t.transforms[i].transform.mProps._mdf){s=!0;break}i+=1}if(s)for(t.finalTransform.reset(),i=n-1;i>=0;i-=1)r=t.transforms[i].transform.mProps.v.props,t.finalTransform.transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]);t._mdf=s},processSequences:function(t){var e,r=this.sequenceList.length;for(e=0;e<r;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,r,i,n=this.element.finalTransform.mat,s=this.element.canvasContext,a=this.masksProperties.length;for(s.beginPath(),t=0;t<a;t+=1)if(this.masksProperties[t].mode!=="n"){var o;this.masksProperties[t].inv&&(s.moveTo(0,0),s.lineTo(this.element.globalData.compSize.w,0),s.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),s.lineTo(0,this.element.globalData.compSize.h),s.lineTo(0,0)),i=this.viewData[t].v,e=n.applyToPointArray(i.v[0][0],i.v[0][1],0),s.moveTo(e[0],e[1]);var l=i._length;for(o=1;o<l;o+=1)r=n.applyToTriplePoints(i.o[o-1],i.i[o],i.v[o]),s.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=n.applyToTriplePoints(i.o[o-1],i.i[0],i.v[0]),s.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),s.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},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)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var t=this.data.ty===0;this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(t),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(t,e){var r={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:t.hd===!0},i={};if(t.ty==="fl"||t.ty==="st"?(i.c=PropertyFactory.getProp(this,t.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])+")")):t.ty!=="gf"&&t.ty!=="gs"||(i.s=PropertyFactory.getProp(this,t.s,1,null,this),i.e=PropertyFactory.getProp(this,t.e,1,null,this),i.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,t.g,this)),i.o=PropertyFactory.getProp(this,t.o,0,.01,this),t.ty==="st"||t.ty==="gs"){if(r.lc=lineCapEnum[t.lc||2],r.lj=lineJoinEnum[t.lj||2],t.lj==1&&(r.ml=t.ml),i.w=PropertyFactory.getProp(this,t.w,0,null,this),i.w.k||(r.wi=i.w.v),t.d){var n=new DashProperty(this,t.d,"canvas",this);i.d=n,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0])}}else r.r=t.r===2?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,r,i,n){var s,a,o,l,h,c,u=t.length-1,f=[],p=[],m=[].concat(n);for(s=u;s>=0;s-=1){if((l=this.searchProcessedElement(t[s]))?e[s]=r[l-1]:t[s]._shouldRender=i,t[s].ty==="fl"||t[s].ty==="st"||t[s].ty==="gf"||t[s].ty==="gs")l?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],m),f.push(e[s].style);else if(t[s].ty==="gr"){if(l)for(o=e[s].it.length,a=0;a<o;a+=1)e[s].prevViewData[a]=e[s].it[a];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,i,m)}else t[s].ty==="tr"?(l||(c=this.createTransformElement(t[s]),e[s]=c),m.push(e[s]),this.addTransformToStyleList(e[s])):t[s].ty==="sh"||t[s].ty==="rc"||t[s].ty==="el"||t[s].ty==="sr"?l||(e[s]=this.createShapeElement(t[s])):t[s].ty==="tm"||t[s].ty==="rd"||t[s].ty==="pb"||t[s].ty==="zz"||t[s].ty==="op"?(l?(h=e[s]).closed=!1:((h=ShapeModifiers.getModifier(t[s].ty)).init(this,t[s]),e[s]=h,this.shapeModifiers.push(h)),p.push(h)):t[s].ty==="rp"&&(l?(h=e[s]).closed=!0:(h=ShapeModifiers.getModifier(t[s].ty),e[s]=h,h.init(this,t,s,e),this.shapeModifiers.push(h),i=!1),p.push(h));this.addProcessedElement(t[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(f),u=p.length,s=0;s<u;s+=1)p[s].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(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,r,i,n,s,a,o,l,h=this.stylesList.length,c=this.globalData.renderer,u=this.globalData.canvasContext;for(t=0;t<h;t+=1)if(((o=(l=this.stylesList[t]).type)!=="st"&&o!=="gs"||l.wi!==0)&&l.data._shouldRender&&l.coOp!==0&&this.globalData.currentGlobalAlpha!==0){for(c.save(),s=l.elements,o==="st"||o==="gs"?(u.strokeStyle=o==="st"?l.co:l.grd,u.lineWidth=l.wi,u.lineCap=l.lc,u.lineJoin=l.lj,u.miterLimit=l.ml||0):u.fillStyle=o==="fl"?l.co:l.grd,c.ctxOpacity(l.coOp),o!=="st"&&o!=="gs"&&u.beginPath(),c.ctxTransform(l.preTransforms.finalTransform.props),r=s.length,e=0;e<r;e+=1){for(o!=="st"&&o!=="gs"||(u.beginPath(),l.da&&(u.setLineDash(l.da),u.lineDashOffset=l.do)),n=(a=s[e].trNodes).length,i=0;i<n;i+=1)a[i].t==="m"?u.moveTo(a[i].p[0],a[i].p[1]):a[i].t==="c"?u.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]):u.closePath();o!=="st"&&o!=="gs"||(u.stroke(),l.da&&u.setLineDash(this.dashResetter))}o!=="st"&&o!=="gs"&&u.fill(l.r),c.restore()}},CVShapeElement.prototype.renderShape=function(t,e,r,i){var n,s;for(s=t,n=e.length-1;n>=0;n-=1)e[n].ty==="tr"?(s=r[n].transform,this.renderShapeTransform(t,s)):e[n].ty==="sh"||e[n].ty==="el"||e[n].ty==="rc"||e[n].ty==="sr"?this.renderPath(e[n],r[n]):e[n].ty==="fl"?this.renderFill(e[n],r[n],s):e[n].ty==="st"?this.renderStroke(e[n],r[n],s):e[n].ty==="gf"||e[n].ty==="gs"?this.renderGradientFill(e[n],r[n],s):e[n].ty==="gr"?this.renderShape(s,e[n].it,r[n].it):e[n].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r,i,n,s=t.trNodes,a=e.paths,o=a._length;s.length=0;var l=t.transforms.finalTransform;for(n=0;n<o;n+=1){var h=a.shapes[n];if(h&&h.v){for(i=h._length,r=1;r<i;r+=1)r===1&&s.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),s.push({t:"c",pts:l.applyToTriplePoints(h.o[r-1],h.i[r],h.v[r])});i===1&&s.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),h.c&&i&&(s.push({t:"c",pts:l.applyToTriplePoints(h.o[r-1],h.i[0],h.v[0])}),s.push({t:"z"}))}}t.trNodes=s}},CVShapeElement.prototype.renderPath=function(t,e){if(t.hd!==!0&&t._shouldRender){var r,i=e.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(e.styledShapes[r],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,r){var i=e.style;(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,r){var i,n=e.style;if(!n.grd||e.g._mdf||e.s._mdf||e.e._mdf||t.t!==1&&(e.h._mdf||e.a._mdf)){var s,a=this.globalData.canvasContext,o=e.s.v,l=e.e.v;if(t.t===1)i=a.createLinearGradient(o[0],o[1],l[0],l[1]);else{var h=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),c=Math.atan2(l[1]-o[1],l[0]-o[0]),u=e.h.v;u>=1?u=.99:u<=-1&&(u=-.99);var f=h*u,p=Math.cos(c+e.a.v)*f+o[0],m=Math.sin(c+e.a.v)*f+o[1];i=a.createRadialGradient(p,m,0,o[0],o[1],h)}var g=t.g.p,d=e.g.c,y=1;for(s=0;s<g;s+=1)e.g._hasOpacity&&e.g._collapsable&&(y=e.g.o[2*s+1]),i.addColorStop(d[4*s]/100,"rgba("+d[4*s+1]+","+d[4*s+2]+","+d[4*s+3]+","+y+")");n.grd=i}n.coOp=e.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(t,e,r){var i=e.style,n=e.d;n&&(n._mdf||this._isFirstFrame)&&(i.da=n.dashArray,i.do=n.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*r.opacity),(e.w._mdf||this._isFirstFrame)&&(i.wi=e.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 t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var r=!1;t.sc&&(r=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var i,n,s,a,o,l,h,c,u,f,p,m,g=this.globalData.fontManager.getFontByName(t.f),d=t.l,y=this.mHelper;this.stroke=r,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,n=t.finalText.length;var v=this.data.singleShape,b=.001*t.tr*t.finalSize,_=0,S=0,T=!0,x=0;for(i=0;i<n;i+=1){a=(s=this.globalData.fontManager.getCharData(t.finalText[i],g.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&s.data||{},y.reset(),v&&d[i].n&&(_=-b,S+=t.yOffset,S+=T?1:0,T=!1),u=(h=a.shapes?a.shapes[0].it:[]).length,y.scale(t.finalSize/100,t.finalSize/100),v&&this.applyTextPropertiesToMatrix(t,y,d[i].line,_,S),p=createSizedArray(u-1);var w=0;for(c=0;c<u;c+=1)if(h[c].ty==="sh"){for(l=h[c].ks.k.i.length,f=h[c].ks.k,m=[],o=1;o<l;o+=1)o===1&&m.push(y.applyToX(f.v[0][0],f.v[0][1],0),y.applyToY(f.v[0][0],f.v[0][1],0)),m.push(y.applyToX(f.o[o-1][0],f.o[o-1][1],0),y.applyToY(f.o[o-1][0],f.o[o-1][1],0),y.applyToX(f.i[o][0],f.i[o][1],0),y.applyToY(f.i[o][0],f.i[o][1],0),y.applyToX(f.v[o][0],f.v[o][1],0),y.applyToY(f.v[o][0],f.v[o][1],0));m.push(y.applyToX(f.o[o-1][0],f.o[o-1][1],0),y.applyToY(f.o[o-1][0],f.o[o-1][1],0),y.applyToX(f.i[0][0],f.i[0][1],0),y.applyToY(f.i[0][0],f.i[0][1],0),y.applyToX(f.v[0][0],f.v[0][1],0),y.applyToY(f.v[0][0],f.v[0][1],0)),p[w]=m,w+=1}v&&(_+=d[i].l,_+=b),this.textSpans[x]?this.textSpans[x].elem=p:this.textSpans[x]={elem:p},x+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,r,i,n,s,a=this.canvasContext;a.font=this.values.fValue,a.lineCap="butt",a.lineJoin="miter",a.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var o,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;e=h.length;var c,u,f=null,p=null,m=null;for(t=0;t<e;t+=1)if(!h[t].n){if((o=l[t])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(o.p),this.globalData.renderer.ctxOpacity(o.o)),this.fill){for(o&&o.fc?f!==o.fc&&(f=o.fc,a.fillStyle=o.fc):f!==this.values.fill&&(f=this.values.fill,a.fillStyle=this.values.fill),i=(c=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(s=(u=c[r]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),n=2;n<s;n+=6)this.globalData.canvasContext.bezierCurveTo(u[n],u[n+1],u[n+2],u[n+3],u[n+4],u[n+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(o&&o.sw?m!==o.sw&&(m=o.sw,a.lineWidth=o.sw):m!==this.values.sWidth&&(m=this.values.sWidth,a.lineWidth=this.values.sWidth),o&&o.sc?p!==o.sc&&(p=o.sc,a.strokeStyle=o.sc):p!==this.values.stroke&&(p=this.values.stroke,a.strokeStyle=this.values.stroke),i=(c=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(s=(u=c[r]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),n=2;n<s;n+=6)this.globalData.canvasContext.bezierCurveTo(u[n],u[n+1],u[n+2],u[n+3],u[n+4],u[n+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}o&&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 t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,r,i=t.getContext("2d"),n=this.img.width,s=this.img.height,a=n/s,o=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>o&&l==="xMidYMid slice"||a<o&&l!=="xMidYMid slice"?e=(r=s)*o:r=(e=n)/o,i.drawImage(this.img,(n-e)/2,(s-r)/2,e,r,0,0,this.assetData.w,this.assetData.h),this.img=t}},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(){var t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){if(t[0]!==1||t[1]!==0||t[4]!==0||t[5]!==1||t[12]!==0||t[13]!==0)if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(t);var e=this.contextData.cTr.props;this.transformMat.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var r=this.contextData.cTr.props;this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])}else this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=t<0?0:t,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=t<0?0:t,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(t){if(this.renderConfig.clearCanvas){t&&this.canvasContext.save();var e,r=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var i=this.contextData.saved[this.contextData.cArrPos];for(e=0;e<16;e+=1)i[e]=r[e];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var e,r=this.contextData.saved[this.contextData.cArrPos],i=this.contextData.cTr.props;for(e=0;e<16;e+=1)i[e]=r[e];this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),r=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=r,this.globalData.currentGlobalAlpha!==r&&(this.canvasContext.globalAlpha=r,this.globalData.currentGlobalAlpha=r)}else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var r="0px 0px 0px";e.transformOrigin=r,e.mozTransformOrigin=r,e.webkitTransformOrigin=r,e["-webkit-transform"]=r,e.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.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,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(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){var r,i,n,s;if(this.reset(),t?(r=t,i=e,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),this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var a=this.renderConfig.preserveAspectRatio.split(" "),o=a[1]||"meet",l=a[0]||"xMidYMid",h=l.substr(0,4),c=l.substr(4);n=r/i,(s=this.transformCanvas.w/this.transformCanvas.h)>n&&o==="meet"||s<n&&o==="slice"?(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=h==="xMid"&&(s<n&&o==="meet"||s>n&&o==="slice")?(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:h==="xMax"&&(s<n&&o==="meet"||s>n&&o==="slice")?(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty=c==="YMid"&&(s>n&&o==="meet"||s<n&&o==="slice")?(i-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:c==="YMax"&&(s>n&&o==="meet"||s<n&&o==="slice")?(i-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else this.renderConfig.preserveAspectRatio==="none"?(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 t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||this.renderConfig.clearCanvas!==!0||e)&&!this.destroyed&&t!==-1){var r;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=0;r<i;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?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();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&this.layers[t].ty!==99){var r=this.createItem(this.layers[t],this,this.globalData);e[t]=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"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,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),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.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 t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)e=t[r].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var r,i,n,s,a,o=t.sh.v,l=t.transformers,h=o._length;if(!(h<=1)){for(r=0;r<h-1;r+=1)i=this.getTransformedPoint(l,o.v[r]),n=this.getTransformedPoint(l,o.o[r]),s=this.getTransformedPoint(l,o.i[r+1]),a=this.getTransformedPoint(l,o.v[r+1]),this.checkBounds(i,n,s,a,e);o.c&&(i=this.getTransformedPoint(l,o.v[r]),n=this.getTransformedPoint(l,o.o[r]),s=this.getTransformedPoint(l,o.i[0]),a=this.getTransformedPoint(l,o.v[0]),this.checkBounds(i,n,s,a,e))}},HShapeElement.prototype.checkBounds=function(t,e,r,i,n){this.getBoundsOfCurve(t,e,r,i);var s=this.shapeBoundingBox;n.x=bmMin(s.left,n.x),n.xMax=bmMax(s.right,n.xMax),n.y=bmMin(s.top,n.y),n.yMax=bmMax(s.bottom,n.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(t,e,r,i){for(var n,s,a,o,l,h,c,u=[[t[0],i[0]],[t[1],i[1]]],f=0;f<2;++f)s=6*t[f]-12*e[f]+6*r[f],n=-3*t[f]+9*e[f]-9*r[f]+3*i[f],a=3*e[f]-3*t[f],s|=0,a|=0,(n|=0)===0&&s===0||(n===0?(o=-a/s)>0&&o<1&&u[f].push(this.calculateF(o,t,e,r,i,f)):(l=s*s-4*a*n)>=0&&((h=(-s+bmSqrt(l))/(2*n))>0&&h<1&&u[f].push(this.calculateF(h,t,e,r,i,f)),(c=(-s-bmSqrt(l))/(2*n))>0&&c<1&&u[f].push(this.calculateF(c,t,e,r,i,f))));this.shapeBoundingBox.left=bmMin.apply(null,u[0]),this.shapeBoundingBox.top=bmMin.apply(null,u[1]),this.shapeBoundingBox.right=bmMax.apply(null,u[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,u[1])},HShapeElement.prototype.calculateF=function(t,e,r,i,n,s){return bmPow(1-t,3)*e[s]+3*bmPow(1-t,2)*t*r[s]+3*(1-t)*bmPow(t,2)*i[s]+bmPow(t,3)*n[s]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)t[r]&&t[r].sh?this.calculateShapeBoundingBox(t[r],e):t[r]&&t[r].it?this.calculateBoundingBox(t[r].it,e):t[r]&&t[r].style&&t[r].w&&this.expandStrokeBoundingBox(t[r].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var r=0;if(t.keyframes){for(var i=0;i<t.keyframes.length;i+=1){var n=t.keyframes[i].s;n>r&&(r=n)}r*=t.mult}else r=t.v*t.mult;e.x-=r,e.xMax+=r,e.y-=r,e.yMax+=r},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var r=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),r=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),r=!0),r||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,n="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=n,i.webkitTransform=n}}},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 t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,r=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=r,e.color=r,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var i,n,s=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",s.fClass)this.innerElem.className=s.fClass;else{e.fontFamily=s.fFamily;var a=t.fWeight,o=t.fStyle;e.fontStyle=o,e.fontWeight=a}var l,h,c,u=t.l;n=u.length;var f,p=this.mHelper,m="",g=0;for(i=0;i<n;i+=1){if(this.globalData.fontManager.chars?(this.textPaths[g]?l=this.textPaths[g]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[g]?c=(h=this.textSpans[g]).children[0]:((h=createTag("div")).style.lineHeight=0,(c=createNS("svg")).appendChild(l),styleDiv(h)))):this.isMasked?l=this.textPaths[g]?this.textPaths[g]:createNS("text"):this.textSpans[g]?(h=this.textSpans[g],l=this.textPaths[g]):(styleDiv(h=createTag("span")),styleDiv(l=createTag("span")),h.appendChild(l)),this.globalData.fontManager.chars){var d,y=this.globalData.fontManager.getCharData(t.finalText[i],s.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(d=y?y.data:null,p.reset(),d&&d.shapes&&d.shapes.length&&(f=d.shapes[0].it,p.scale(t.finalSize/100,t.finalSize/100),m=this.createPathShape(p,f),l.setAttribute("d",m)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(h),d&&d.shapes){document.body.appendChild(c);var v=c.getBBox();c.setAttribute("width",v.width+2),c.setAttribute("height",v.height+2),c.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var b=c.style,_="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";b.transform=_,b.webkitTransform=_,u[i].yOffset=v.y-1}else c.setAttribute("width",1),c.setAttribute("height",1);h.appendChild(c)}}else if(l.textContent=u[i].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(h);var S=l.style,T="translate3d(0,"+-t.finalSize/1.2+"px,0)";S.transform=T,S.webkitTransform=T}this.isMasked?this.textSpans[g]=l:this.textSpans[g]=h,this.textSpans[g].style.display="block",this.textPaths[g]=l,g+=1}for(;g<this.textSpans.length;)this.textSpans[g].style.display="none",g+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(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),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,i,n,s,a,o=0,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;for(i=h.length,r=0;r<i;r+=1)h[r].n?o+=1:(s=this.textSpans[r],a=this.textPaths[r],n=l[o],o+=1,n._mdf.m&&(this.isMasked?s.setAttribute("transform",n.m):(s.style.webkitTransform=n.m,s.style.transform=n.m)),s.style.opacity=n.o,n.sw&&n._mdf.sw&&a.setAttribute("stroke-width",n.sw),n.sc&&n._mdf.sc&&a.setAttribute("stroke",n.sc),n.fc&&n._mdf.fc&&(a.setAttribute("fill",n.fc),a.style.color=n.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.innerElem.getBBox();if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.svgElement.setAttribute("width",c.width)),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.svgElement.setAttribute("height",c.height)),this.currentBBox.w!==c.width+2||this.currentBBox.h!==c.height+2||this.currentBBox.x!==c.x-1||this.currentBBox.y!==c.y-1){this.currentBBox.w=c.width+2,this.currentBBox.h=c.height+2,this.currentBBox.x=c.x-1,this.currentBBox.y=c.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var u="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=u,t.webkitTransform=u}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,r,i,n=this.comp.threeDElements.length;for(t=0;t<n;t+=1)if((e=this.comp.threeDElements[t]).type==="3d"){r=e.perspectiveElem.style,i=e.container.style;var s=this.pe.v+"px",a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=s,r.webkitPerspective=s,i.transformOrigin="0px 0px 0px",i.mozTransformOrigin="0px 0px 0px",i.webkitTransformOrigin="0px 0px 0px",r.transform=a,r.webkitTransform=a}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,r=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)r=this.hierarchy[t].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(t=e=this.hierarchy.length-1;t>=0;t-=1){var i=this.hierarchy[t].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 n;n=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 s=Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),a=[n[0]/s,n[1]/s,n[2]/s],o=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],o),h=Math.atan2(a[0],-a[2]);this.mat.rotateY(h).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 c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){var u,f,p;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if((u=this.comp.threeDElements[t]).type==="3d"){if(c){var m=this.mat.toCSS();(p=u.container.style).transform=m,p.webkitTransform=m}this.pe._mdf&&((f=u.perspectiveElem.style).perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!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 t=this.globalData.getAssetsPath(this.assetData),e=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",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,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(t,e){var r=t.getBaseElement();if(r){var i=this.layers[e];if(i.ddd&&this.supports3d)this.addTo3dContainer(r,e);else if(this.threeDElements)this.addTo3dContainer(r,e);else{for(var n,s,a=0;a<e;)this.elements[a]&&this.elements[a]!==!0&&this.elements[a].getBaseElement&&(s=this.elements[a],n=(this.layers[a].ddd?this.getThreeDContainerByPos(a):s.getBaseElement())||n),a+=1;n?i.ddd&&this.supports3d||this.layerElement.insertBefore(r,n):i.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,r=this.threeDElements.length;e<r;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var r,i,n=createTag("div");styleDiv(n);var s=createTag("div");if(styleDiv(s),e==="3d"){(r=n.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px",r.webkitTransformOrigin="50% 50%",r.mozTransformOrigin="50% 50%",r.transformOrigin="50% 50%";var a="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(i=s.style).transform=a,i.webkitTransform=a}n.appendChild(s);var o={container:s,perspectiveElem:n,startPos:t,endPos:t,type:e};return this.threeDElements.push(o),o},HybridRendererBase.prototype.build3dContainers=function(){var t,e,r=this.layers.length,i="";for(t=0;t<r;t+=1)this.layers[t].ddd&&this.layers[t].ty!==3?(i!=="3d"&&(i="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):(i!=="2d"&&(i="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(r=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var r=0,i=this.threeDElements.length;r<i;){if(e<=this.threeDElements[r].endPos){for(var n,s=this.threeDElements[r].startPos;s<e;)this.elements[s]&&this.elements[s].getBaseElement&&(n=this.elements[s].getBaseElement()),s+=1;n?this.threeDElements[r].container.insertBefore(t,n):this.threeDElements[r].container.appendChild(t);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),r=this.animationItem.wrapper,i=e.style;i.width=t.w+"px",i.height=t.h+"px",this.resizerElem=e,styleDiv(e),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),r.appendChild(e),i.overflow="hidden";var n=createNS("svg");n.setAttribute("width","1"),n.setAttribute("height","1"),styleDiv(n),this.resizerElem.appendChild(n);var s=createNS("defs");n.appendChild(s),this.data=t,this.setupGlobalData(t,n),this.globalData.defs=s,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,r,i,n=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,a=n/s;this.globalData.compSize.w/this.globalData.compSize.h>a?(t=n/this.globalData.compSize.w,e=n/this.globalData.compSize.w,r=0,i=(s-this.globalData.compSize.h*(n/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,r=(n-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,i=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+r+","+i+",0,1)",o.transform=o.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 t,e=this.globalData.compSize.w,r=this.globalData.compSize.h,i=this.threeDElements.length;for(t=0;t<i;t+=1){var n=this.threeDElements[t].perspectiveElem.style;n.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(r,2))+"px",n.perspective=n.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,r=t.length,i=createTag("div");for(e=0;e<r;e+=1)if(t[e].xt){var n=this.createComp(t[e],i,this.globalData.comp,null);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},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(t,e){for(var r,i=0;i<e;)this.elements[i]&&this.elements[i].getBaseElement&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(t,r):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=function(t){function e(r){for(var i=0,n=t.layers.length;i<n;){if(t.layers[i].nm===r||t.layers[i].ind===r)return t.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e},Expressions=function(){var t={};return t.initExpressions=function(e){var r=0,i=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){r+=1},e.renderer.globalData.popExpression=function(){(r-=1)===0&&function(){var n,s=i.length;for(n=0;n<s;n+=1)i[n].release();i.length=0}()},e.renderer.globalData.registerExpressionProperty=function(n){i.indexOf(n)===-1&&i.push(n)}},t}(),MaskManagerInterface=function(){function t(e,r){this._mask=e,this._data=r}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var r,i=createSizedArray(e.viewData.length),n=e.viewData.length;for(r=0;r<n;r+=1)i[r]=new t(e.viewData[r],e.masksProperties[r]);return function(s){for(r=0;r<n;){if(e.masksProperties[r].nm===s)return i[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function r(n,s,a){Object.defineProperty(n,"velocity",{get:function(){return s.getVelocityAtTime(s.comp.currentFrame)}}),n.numKeys=s.keyframes?s.keyframes.length:0,n.key=function(o){if(!n.numKeys)return 0;var l="";l="s"in s.keyframes[o-1]?s.keyframes[o-1].s:"e"in s.keyframes[o-2]?s.keyframes[o-2].e:s.keyframes[o-2].s;var h=a==="unidimensional"?new Number(l):Object.assign({},l);return h.time=s.keyframes[o-1].t/s.elem.comp.globalData.frameRate,h.value=a==="unidimensional"?l[0]:l,h},n.valueAtTime=s.getValueAtTime,n.speedAtTime=s.getSpeedAtTime,n.velocityAtTime=s.getVelocityAtTime,n.propertyGroup=s.propertyGroup}function i(){return t}return function(n){return n?n.propType==="unidimensional"?function(s){s&&"pv"in s||(s=t);var a=1/s.mult,o=s.pv*a,l=new Number(o);return l.value=o,r(l,s,"unidimensional"),function(){return s.k&&s.getValue(),o=s.v*a,l.value!==o&&((l=new Number(o)).value=o,r(l,s,"unidimensional")),l}}(n):function(s){s&&"pv"in s||(s=e);var a=1/s.mult,o=s.data&&s.data.l||s.pv.length,l=createTypedArray("float32",o),h=createTypedArray("float32",o);return l.value=h,r(l,s,"multidimensional"),function(){s.k&&s.getValue();for(var c=0;c<o;c+=1)h[c]=s.v[c]*a,l[c]=h[c];return l}}(n):i}}(),TransformExpressionInterface=function(t){function e(a){switch(a){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var r,i,n,s;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?s=ExpressionPropertyInterface(t.p):(r=ExpressionPropertyInterface(t.px),i=ExpressionPropertyInterface(t.py),t.pz&&(n=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?s():[r(),i(),n?n():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function t(h){var c=new Matrix;return h!==void 0?this._elem.finalTransform.mProp.getValueAtTime(h).clone(c):this._elem.finalTransform.mProp.applyToMatrix(c),c}function e(h,c){var u=this.getMatrix(c);return u.props[12]=0,u.props[13]=0,u.props[14]=0,this.applyPoint(u,h)}function r(h,c){var u=this.getMatrix(c);return this.applyPoint(u,h)}function i(h,c){var u=this.getMatrix(c);return u.props[12]=0,u.props[13]=0,u.props[14]=0,this.invertPoint(u,h)}function n(h,c){var u=this.getMatrix(c);return this.invertPoint(u,h)}function s(h,c){if(this._elem.hierarchy&&this._elem.hierarchy.length){var u,f=this._elem.hierarchy.length;for(u=0;u<f;u+=1)this._elem.hierarchy[u].finalTransform.mProp.applyToMatrix(h)}return h.applyToPointArray(c[0],c[1],c[2]||0)}function a(h,c){if(this._elem.hierarchy&&this._elem.hierarchy.length){var u,f=this._elem.hierarchy.length;for(u=0;u<f;u+=1)this._elem.hierarchy[u].finalTransform.mProp.applyToMatrix(h)}return h.inversePoint(c)}function o(h){var c=new Matrix;if(c.reset(),this._elem.finalTransform.mProp.applyToMatrix(c),this._elem.hierarchy&&this._elem.hierarchy.length){var u,f=this._elem.hierarchy.length;for(u=0;u<f;u+=1)this._elem.hierarchy[u].finalTransform.mProp.applyToMatrix(c);return c.inversePoint(h)}return c.inversePoint(h)}function l(){return[1,1,1,1]}return function(h){var c;function u(p){switch(p){case"ADBE Root Vectors Group":case"Contents":case 2:return u.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return u.effect;case"ADBE Text Properties":return u.textInterface;default:return null}}u.getMatrix=t,u.invertPoint=a,u.applyPoint=s,u.toWorld=r,u.toWorldVec=e,u.fromWorld=n,u.fromWorldVec=i,u.toComp=r,u.fromComp=o,u.sampleImage=l,u.sourceRectAtTime=h.sourceRectAtTime.bind(h),u._elem=h;var f=getDescriptor(c=TransformExpressionInterface(h.finalTransform.mProp),"anchorPoint");return Object.defineProperties(u,{hasParent:{get:function(){return h.hierarchy.length}},parent:{get:function(){return h.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:f,anchor_point:f,transform:{get:function(){return c}},active:{get:function(){return h.isInRange}}}),u.startTime=h.data.st,u.index=h.data.ind,u.source=h.data.refId,u.height=h.data.ty===0?h.data.h:100,u.width=h.data.ty===0?h.data.w:100,u.inPoint=h.data.ip/h.comp.globalData.frameRate,u.outPoint=h.data.op/h.comp.globalData.frameRate,u._name=h.data.nm,u.registerMaskInterface=function(p){u.mask=new MaskManagerInterface(p,h)},u.registerEffectsInterface=function(p){u.effect=p},u}}(),propertyGroupFactory=function(t,e){return function(r){return(r=r===void 0?1:r)<=0?t:e(r-1)}},PropertyInterface=function(t,e){var r={_name:t};return function(i){return(i=i===void 0?1:i)<=0?r:e(i-1)}},EffectsExpressionInterface=function(){function t(r,i,n,s){function a(u){for(var f=r.ef,p=0,m=f.length;p<m;){if(u===f[p].nm||u===f[p].mn||u===f[p].ix)return f[p].ty===5?h[p]:h[p]();p+=1}throw new Error}var o,l=propertyGroupFactory(a,n),h=[],c=r.ef.length;for(o=0;o<c;o+=1)r.ef[o].ty===5?h.push(t(r.ef[o],i.effectElements[o],i.effectElements[o].propertyGroup,s)):h.push(e(i.effectElements[o],r.ef[o].ty,s,l));return r.mn==="ADBE Color Control"&&Object.defineProperty(a,"color",{get:function(){return h[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:l}}),a.enabled=r.en!==0,a.active=a.enabled,a}function e(r,i,n,s){var a=ExpressionPropertyInterface(r.p);return r.p.setGroupProperty&&r.p.setGroupProperty(PropertyInterface("",s)),function(){return i===10?n.comp.compInterface(r.p.v):a()}}return{createEffectsInterface:function(r,i){if(r.effectsManager){var n,s=[],a=r.data.ef,o=r.effectsManager.effectElements.length;for(n=0;n<o;n+=1)s.push(t(a[n],r.effectsManager.effectElements[n],i,r));var l=r.data.ef||[],h=function(c){for(n=0,o=l.length;n<o;){if(c===l[n].nm||c===l[n].mn||c===l[n].ix)return s[n];n+=1}return null};return Object.defineProperty(h,"numProperties",{get:function(){return l.length}}),h}return null}}}(),ShapePathInterface=function(t,e,r){var i=e.sh;function n(a){return a==="Shape"||a==="shape"||a==="Path"||a==="path"||a==="ADBE Vector Shape"||a===2?n.path:null}var s=propertyGroupFactory(n,r);return i.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(n,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:r}}),n},ShapeExpressionInterface=function(){function t(p,m,g){var d,y=[],v=p?p.length:0;for(d=0;d<v;d+=1)p[d].ty==="gr"?y.push(e(p[d],m[d],g)):p[d].ty==="fl"?y.push(r(p[d],m[d],g)):p[d].ty==="st"?y.push(s(p[d],m[d],g)):p[d].ty==="tm"?y.push(a(p[d],m[d],g)):p[d].ty==="tr"||(p[d].ty==="el"?y.push(l(p[d],m[d],g)):p[d].ty==="sr"?y.push(h(p[d],m[d],g)):p[d].ty==="sh"?y.push(ShapePathInterface(p[d],m[d],g)):p[d].ty==="rc"?y.push(c(p[d],m[d],g)):p[d].ty==="rd"?y.push(u(p[d],m[d],g)):p[d].ty==="rp"?y.push(f(p[d],m[d],g)):p[d].ty==="gf"?y.push(i(p[d],m[d],g)):y.push(n(p[d],m[d])));return y}function e(p,m,g){var d=function(b){switch(b){case"ADBE Vectors Group":case"Contents":case 2:return d.content;default:return d.transform}};d.propertyGroup=propertyGroupFactory(d,g);var y=function(b,_,S){var T,x=function(M){for(var k=0,I=T.length;k<I;){if(T[k]._name===M||T[k].mn===M||T[k].propertyIndex===M||T[k].ix===M||T[k].ind===M)return T[k];k+=1}return typeof M=="number"?T[M-1]:null};x.propertyGroup=propertyGroupFactory(x,S),T=t(b.it,_.it,x.propertyGroup),x.numProperties=T.length;var w=o(b.it[b.it.length-1],_.it[_.it.length-1],x.propertyGroup);return x.transform=w,x.propertyIndex=b.cix,x._name=b.nm,x}(p,m,d.propertyGroup),v=o(p.it[p.it.length-1],m.it[m.it.length-1],d.propertyGroup);return d.content=y,d.transform=v,Object.defineProperty(d,"_name",{get:function(){return p.nm}}),d.numProperties=p.np,d.propertyIndex=p.ix,d.nm=p.nm,d.mn=p.mn,d}function r(p,m,g){function d(y){return y==="Color"||y==="color"?d.color:y==="Opacity"||y==="opacity"?d.opacity:null}return Object.defineProperties(d,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},_name:{value:p.nm},mn:{value:p.mn}}),m.c.setGroupProperty(PropertyInterface("Color",g)),m.o.setGroupProperty(PropertyInterface("Opacity",g)),d}function i(p,m,g){function d(y){return y==="Start Point"||y==="start point"?d.startPoint:y==="End Point"||y==="end point"?d.endPoint:y==="Opacity"||y==="opacity"?d.opacity:null}return Object.defineProperties(d,{startPoint:{get:ExpressionPropertyInterface(m.s)},endPoint:{get:ExpressionPropertyInterface(m.e)},opacity:{get:ExpressionPropertyInterface(m.o)},type:{get:function(){return"a"}},_name:{value:p.nm},mn:{value:p.mn}}),m.s.setGroupProperty(PropertyInterface("Start Point",g)),m.e.setGroupProperty(PropertyInterface("End Point",g)),m.o.setGroupProperty(PropertyInterface("Opacity",g)),d}function n(){return function(){return null}}function s(p,m,g){var d,y=propertyGroupFactory(T,g),v=propertyGroupFactory(S,y);function b(x){Object.defineProperty(S,p.d[x].nm,{get:ExpressionPropertyInterface(m.d.dataProps[x].p)})}var _=p.d?p.d.length:0,S={};for(d=0;d<_;d+=1)b(d),m.d.dataProps[d].p.setGroupProperty(v);function T(x){return x==="Color"||x==="color"?T.color:x==="Opacity"||x==="opacity"?T.opacity:x==="Stroke Width"||x==="stroke width"?T.strokeWidth:null}return Object.defineProperties(T,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},strokeWidth:{get:ExpressionPropertyInterface(m.w)},dash:{get:function(){return S}},_name:{value:p.nm},mn:{value:p.mn}}),m.c.setGroupProperty(PropertyInterface("Color",y)),m.o.setGroupProperty(PropertyInterface("Opacity",y)),m.w.setGroupProperty(PropertyInterface("Stroke Width",y)),T}function a(p,m,g){function d(v){return v===p.e.ix||v==="End"||v==="end"?d.end:v===p.s.ix?d.start:v===p.o.ix?d.offset:null}var y=propertyGroupFactory(d,g);return d.propertyIndex=p.ix,m.s.setGroupProperty(PropertyInterface("Start",y)),m.e.setGroupProperty(PropertyInterface("End",y)),m.o.setGroupProperty(PropertyInterface("Offset",y)),d.propertyIndex=p.ix,d.propertyGroup=g,Object.defineProperties(d,{start:{get:ExpressionPropertyInterface(m.s)},end:{get:ExpressionPropertyInterface(m.e)},offset:{get:ExpressionPropertyInterface(m.o)},_name:{value:p.nm}}),d.mn=p.mn,d}function o(p,m,g){function d(v){return p.a.ix===v||v==="Anchor Point"?d.anchorPoint:p.o.ix===v||v==="Opacity"?d.opacity:p.p.ix===v||v==="Position"?d.position:p.r.ix===v||v==="Rotation"||v==="ADBE Vector Rotation"?d.rotation:p.s.ix===v||v==="Scale"?d.scale:p.sk&&p.sk.ix===v||v==="Skew"?d.skew:p.sa&&p.sa.ix===v||v==="Skew Axis"?d.skewAxis:null}var y=propertyGroupFactory(d,g);return m.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",y)),m.transform.mProps.p.setGroupProperty(PropertyInterface("Position",y)),m.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",y)),m.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",y)),m.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",y)),m.transform.mProps.sk&&(m.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",y)),m.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",y))),m.transform.op.setGroupProperty(PropertyInterface("Opacity",y)),Object.defineProperties(d,{opacity:{get:ExpressionPropertyInterface(m.transform.mProps.o)},position:{get:ExpressionPropertyInterface(m.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(m.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(m.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(m.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(m.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(m.transform.mProps.sa)},_name:{value:p.nm}}),d.ty="tr",d.mn=p.mn,d.propertyGroup=g,d}function l(p,m,g){function d(b){return p.p.ix===b?d.position:p.s.ix===b?d.size:null}var y=propertyGroupFactory(d,g);d.propertyIndex=p.ix;var v=m.sh.ty==="tm"?m.sh.prop:m.sh;return v.s.setGroupProperty(PropertyInterface("Size",y)),v.p.setGroupProperty(PropertyInterface("Position",y)),Object.defineProperties(d,{size:{get:ExpressionPropertyInterface(v.s)},position:{get:ExpressionPropertyInterface(v.p)},_name:{value:p.nm}}),d.mn=p.mn,d}function h(p,m,g){function d(b){return p.p.ix===b?d.position:p.r.ix===b?d.rotation:p.pt.ix===b?d.points:p.or.ix===b||b==="ADBE Vector Star Outer Radius"?d.outerRadius:p.os.ix===b?d.outerRoundness:!p.ir||p.ir.ix!==b&&b!=="ADBE Vector Star Inner Radius"?p.is&&p.is.ix===b?d.innerRoundness:null:d.innerRadius}var y=propertyGroupFactory(d,g),v=m.sh.ty==="tm"?m.sh.prop:m.sh;return d.propertyIndex=p.ix,v.or.setGroupProperty(PropertyInterface("Outer Radius",y)),v.os.setGroupProperty(PropertyInterface("Outer Roundness",y)),v.pt.setGroupProperty(PropertyInterface("Points",y)),v.p.setGroupProperty(PropertyInterface("Position",y)),v.r.setGroupProperty(PropertyInterface("Rotation",y)),p.ir&&(v.ir.setGroupProperty(PropertyInterface("Inner Radius",y)),v.is.setGroupProperty(PropertyInterface("Inner Roundness",y))),Object.defineProperties(d,{position:{get:ExpressionPropertyInterface(v.p)},rotation:{get:ExpressionPropertyInterface(v.r)},points:{get:ExpressionPropertyInterface(v.pt)},outerRadius:{get:ExpressionPropertyInterface(v.or)},outerRoundness:{get:ExpressionPropertyInterface(v.os)},innerRadius:{get:ExpressionPropertyInterface(v.ir)},innerRoundness:{get:ExpressionPropertyInterface(v.is)},_name:{value:p.nm}}),d.mn=p.mn,d}function c(p,m,g){function d(b){return p.p.ix===b?d.position:p.r.ix===b?d.roundness:p.s.ix===b||b==="Size"||b==="ADBE Vector Rect Size"?d.size:null}var y=propertyGroupFactory(d,g),v=m.sh.ty==="tm"?m.sh.prop:m.sh;return d.propertyIndex=p.ix,v.p.setGroupProperty(PropertyInterface("Position",y)),v.s.setGroupProperty(PropertyInterface("Size",y)),v.r.setGroupProperty(PropertyInterface("Rotation",y)),Object.defineProperties(d,{position:{get:ExpressionPropertyInterface(v.p)},roundness:{get:ExpressionPropertyInterface(v.r)},size:{get:ExpressionPropertyInterface(v.s)},_name:{value:p.nm}}),d.mn=p.mn,d}function u(p,m,g){function d(b){return p.r.ix===b||b==="Round Corners 1"?d.radius:null}var y=propertyGroupFactory(d,g),v=m;return d.propertyIndex=p.ix,v.rd.setGroupProperty(PropertyInterface("Radius",y)),Object.defineProperties(d,{radius:{get:ExpressionPropertyInterface(v.rd)},_name:{value:p.nm}}),d.mn=p.mn,d}function f(p,m,g){function d(b){return p.c.ix===b||b==="Copies"?d.copies:p.o.ix===b||b==="Offset"?d.offset:null}var y=propertyGroupFactory(d,g),v=m;return d.propertyIndex=p.ix,v.c.setGroupProperty(PropertyInterface("Copies",y)),v.o.setGroupProperty(PropertyInterface("Offset",y)),Object.defineProperties(d,{copies:{get:ExpressionPropertyInterface(v.c)},offset:{get:ExpressionPropertyInterface(v.o)},_name:{value:p.nm}}),d.mn=p.mn,d}return function(p,m,g){var d;function y(v){if(typeof v=="number")return(v=v===void 0?1:v)===0?g:d[v-1];for(var b=0,_=d.length;b<_;){if(d[b]._name===v)return d[b];b+=1}return null}return y.propertyGroup=propertyGroupFactory(y,function(){return g}),d=t(p,m,y.propertyGroup),y.numProperties=d.length,y._name="Contents",y}}(),TextExpressionInterface=function(t){var e;function r(i){switch(i){case"ADBE Text Document":return r.sourceText;default:return null}}return Object.defineProperty(r,"sourceText",{get:function(){t.textProperty.getValue();var i=t.textProperty.currentData.t;return i!==void 0&&(t.textProperty.currentData.t=void 0,(e=new String(i)).value=i||new String(i)),e}}),r};function _typeof$2(t){return(_typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(r){return r==="Outline"?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(r){var i="",n=r.getFootageData();function s(a){if(n[a])return i=a,_typeof$2(n=n[a])==="object"?s:n;var o=a.indexOf(i);if(o!==-1){var l=parseInt(a.substr(o+i.length),10);return _typeof$2(n=n[l])==="object"?s:n}return""}return function(){return i="",n=r.getFootageData(),s}}(t),e},function(t){function e(r){return r==="Data"?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}function _typeof$1(t){return(_typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function seedRandom(t,e){var r=this,i=e.pow(256,6),n=e.pow(2,52),s=2*n;function a(c){var u,f=c.length,p=this,m=0,g=p.i=p.j=0,d=p.S=[];for(f||(c=[f++]);m<256;)d[m]=m++;for(m=0;m<256;m++)d[m]=d[g=255&g+c[m%f]+(u=d[m])],d[g]=u;p.g=function(y){for(var v,b=0,_=p.i,S=p.j,T=p.S;y--;)v=T[_=255&_+1],b=256*b+T[255&(T[_]=T[S=255&S+v])+(T[S]=v)];return p.i=_,p.j=S,b}}function o(c,u){return u.i=c.i,u.j=c.j,u.S=c.S.slice(),u}function l(c,u){for(var f,p=c+"",m=0;m<p.length;)u[255&m]=255&(f^=19*u[255&m])+p.charCodeAt(m++);return h(u)}function h(c){return String.fromCharCode.apply(0,c)}e.seedrandom=function(c,u,f){var p=[],m=l(function y(v,b){var _,S=[],T=_typeof$1(v);if(b&&T=="object")for(_ in v)try{S.push(y(v[_],b-1))}catch{}return S.length?S:T=="string"?v:v+"\0"}((u=u===!0?{entropy:!0}:u||{}).entropy?[c,h(t)]:c===null?function(){try{var y=new Uint8Array(256);return(r.crypto||r.msCrypto).getRandomValues(y),h(y)}catch{var v=r.navigator,b=v&&v.plugins;return[+new Date,r,b,r.screen,h(t)]}}():c,3),p),g=new a(p),d=function(){for(var y=g.g(6),v=i,b=0;y<n;)y=256*(y+b),v*=256,b=g.g(1);for(;y>=s;)y/=2,v/=2,b>>>=1;return(y+b)/v};return d.int32=function(){return 0|g.g(4)},d.quick=function(){return g.g(4)/4294967296},d.double=d,l(h(g.S),t),(u.pass||f||function(y,v,b,_){return _&&(_.S&&o(_,g),y.state=function(){return o(g,{})}),b?(e.random=y,v):y})(d,m,"global"in u?u.global:this==e,u.state)},l(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof(t){return(_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return t==="number"||t==="boolean"||t==="string"||e instanceof Number}function $bm_neg(t){var e=_typeof(t);if(e==="number"||e==="boolean"||t instanceof Number)return-t;if($bm_isInstanceOfArray(t)){var r,i=t.length,n=[];for(r=0;r<i;r+=1)n[r]=-t[r];return n}return t.propType?t.v:-t}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(t,e){var r=_typeof(t),i=_typeof(e);if(r==="string"||i==="string"||isNumerable(r,t)&&isNumerable(i,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,s=t.length,a=e.length,o=[];n<s||n<a;)(typeof t[n]=="number"||t[n]instanceof Number)&&(typeof e[n]=="number"||e[n]instanceof Number)?o[n]=t[n]+e[n]:o[n]=e[n]===void 0?t[n]:t[n]||e[n],n+=1;return o}return 0}var add=sum;function sub(t,e){var r=_typeof(t),i=_typeof(e);if(isNumerable(r,t)&&isNumerable(i,e))return r==="string"&&(t=parseInt(t,10)),i==="string"&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,s=t.length,a=e.length,o=[];n<s||n<a;)(typeof t[n]=="number"||t[n]instanceof Number)&&(typeof e[n]=="number"||e[n]instanceof Number)?o[n]=t[n]-e[n]:o[n]=e[n]===void 0?t[n]:t[n]||e[n],n+=1;return o}return 0}function mul(t,e){var r,i,n,s=_typeof(t),a=_typeof(e);if(isNumerable(s,t)&&isNumerable(a,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(n=t.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t[i]*e;return r}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t*e[i];return r}return 0}function div(t,e){var r,i,n,s=_typeof(t),a=_typeof(e);if(isNumerable(s,t)&&isNumerable(a,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(n=t.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t[i]/e;return r}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t/e[i];return r}return 0}function mod(t,e){return typeof t=="string"&&(t=parseInt(t,10)),typeof e=="string"&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,r){if(e>r){var i=r;r=e,e=i}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if(typeof t=="number"||t instanceof Number)return e=e||0,Math.abs(t-e);var r;e||(e=helperLengthArray);var i=Math.min(t.length,e.length),n=0;for(r=0;r<i;r+=1)n+=Math.pow(e[r]-t[r],2);return Math.sqrt(n)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,r,i=t[0],n=t[1],s=t[2],a=Math.max(i,n,s),o=Math.min(i,n,s),l=(a+o)/2;if(a===o)e=0,r=0;else{var h=a-o;switch(r=l>.5?h/(2-a-o):h/(a+o),a){case i:e=(n-s)/h+(n<s?6:0);break;case n:e=(s-i)/h+2;break;case s:e=(i-n)/h+4}e/=6}return[e,r,l,t[3]]}function hue2rgb(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e,r,i,n=t[0],s=t[1],a=t[2];if(s===0)e=a,i=a,r=a;else{var o=a<.5?a*(1+s):a+s-a*s,l=2*a-o;e=hue2rgb(l,o,n+1/3),r=hue2rgb(l,o,n),i=hue2rgb(l,o,n-1/3)}return[e,r,i,t[3]]}function linear(t,e,r,i,n){if(i!==void 0&&n!==void 0||(i=e,n=r,e=0,r=1),r<e){var s=r;r=e,e=s}if(t<=e)return i;if(t>=r)return n;var a,o=r===e?0:(t-e)/(r-e);if(!i.length)return i+(n-i)*o;var l=i.length,h=createTypedArray("float32",l);for(a=0;a<l;a+=1)h[a]=i[a]+(n[a]-i[a])*o;return h}function random(t,e){if(e===void 0&&(t===void 0?(t=0,e=1):(e=t,t=void 0)),e.length){var r,i=e.length;t||(t=createTypedArray("float32",i));var n=createTypedArray("float32",i),s=BMMath.random();for(r=0;r<i;r+=1)n[r]=t[r]+s*(e[r]-t[r]);return n}return t===void 0&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,r,i){var n,s=t.length,a=shapePool.newElement();a.setPathData(!!i,s);var o,l,h=[0,0];for(n=0;n<s;n+=1)o=e&&e[n]?e[n]:h,l=r&&r[n]?r[n]:h,a.setTripleAt(t[n][0],t[n][1],l[0]+t[n][0],l[1]+t[n][1],o[0]+t[n][0],o[1]+t[n][1],n,!0);return a}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;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||this.data.hd!==!0,wiggle=function(t,e){var r,i,n=this.pv.length?this.pv.length:1,s=createTypedArray("float32",n),a=Math.floor(5*time);for(r=0,i=0;r<a;){for(i=0;i<n;i+=1)s[i]+=-e+2*e*BMMath.random();r+=1}var o=5*time,l=o-Math.floor(o),h=createTypedArray("float32",n);if(n>1){for(i=0;i<n;i+=1)h[i]=this.pv[i]+s[i]+(-e+2*e*BMMath.random())*l;return h}return this.pv+s[0]+(-e+2*e*BMMath.random())*l}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!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(t,e){var r=[e[0]-t[0],e[1]-t[1],e[2]-t[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(t,e,r,i,n){return applyEase(easeOutBez,t,e,r,i,n)}function easeIn(t,e,r,i,n){return applyEase(easeInBez,t,e,r,i,n)}function ease(t,e,r,i,n){return applyEase(easeInOutBez,t,e,r,i,n)}function applyEase(t,e,r,i,n,s){n===void 0?(n=r,s=i):e=(e-r)/(i-r),e>1?e=1:e<0&&(e=0);var a=t(e);if($bm_isInstanceOfArray(n)){var o,l=n.length,h=createTypedArray("float32",l);for(o=0;o<l;o+=1)h[o]=(s[o]-n[o])*a+n[o];return h}return(s-n)*a+n}function nearestKey(t){var e,r,i,n=data.k.length;if(data.k.length&&typeof data.k[0]!="number")if(r=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,i=data.k[0].t;else{for(e=0;e<n-1;e+=1){if(t===data.k[e].t){r=e+1,i=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(r=e+2,i=data.k[e+1].t):(r=e+1,i=data.k[e].t);break}}r===-1&&(r=e+1,i=data.k[e].t)}else r=0,i=0;var s={};return s.index=r,s.time=i/elem.comp.globalData.frameRate,s}function key(t){var e,r,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var n=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(i=n.length,r=0;r<i;r+=1)e[r]=n[r],e.value[r]=n[r];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||t===0||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return typeof value=="string"?e===void 0?value.substring(t):value.substring(t,e):""}function substr(t,e){return typeof value=="string"?e===void 0?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=t===0?0:Math.floor(time*t)/t,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(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(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)),elemType!==4||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],ob}(),expressionHelpers={searchExpressions:function(t,e,r){e.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(t,e,r).bind(r)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),r=this.getValueAtTime(t+-.01),i=0;if(e.length){var n;for(n=0;n<e.length;n+=1)i+=Math.pow(r[n]-e[n],2);i=100*Math.sqrt(i)}else i=0;return i},getVelocityAtTime:function(t){if(this.vel!==void 0)return this.vel;var e,r,i=this.getValueAtTime(t),n=this.getValueAtTime(t+-.001);if(i.length)for(e=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)e[r]=(n[r]-i[r])/-.001;else e=(n-i)/-.001;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function t(u,f,p){if(!this.k||!this.keyframes)return this.pv;u=u?u.toLowerCase():"";var m,g,d,y,v,b=this.comp.renderedFrame,_=this.keyframes,S=_[_.length-1].t;if(b<=S)return this.pv;if(p?g=S-(m=f?Math.abs(S-this.elem.comp.globalData.frameRate*f):Math.max(0,S-this.elem.data.ip)):((!f||f>_.length-1)&&(f=_.length-1),m=S-(g=_[_.length-1-f].t)),u==="pingpong"){if(Math.floor((b-g)/m)%2!=0)return this.getValueAtTime((m-(b-g)%m+g)/this.comp.globalData.frameRate,0)}else{if(u==="offset"){var T=this.getValueAtTime(g/this.comp.globalData.frameRate,0),x=this.getValueAtTime(S/this.comp.globalData.frameRate,0),w=this.getValueAtTime(((b-g)%m+g)/this.comp.globalData.frameRate,0),M=Math.floor((b-g)/m);if(this.pv.length){for(y=(v=new Array(T.length)).length,d=0;d<y;d+=1)v[d]=(x[d]-T[d])*M+w[d];return v}return(x-T)*M+w}if(u==="continue"){var k=this.getValueAtTime(S/this.comp.globalData.frameRate,0),I=this.getValueAtTime((S-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(y=(v=new Array(k.length)).length,d=0;d<y;d+=1)v[d]=k[d]+(k[d]-I[d])*((b-S)/this.comp.globalData.frameRate)/5e-4;return v}return k+(b-S)/.001*(k-I)}}return this.getValueAtTime(((b-g)%m+g)/this.comp.globalData.frameRate,0)}function e(u,f,p){if(!this.k)return this.pv;u=u?u.toLowerCase():"";var m,g,d,y,v,b=this.comp.renderedFrame,_=this.keyframes,S=_[0].t;if(b>=S)return this.pv;if(p?g=S+(m=f?Math.abs(this.elem.comp.globalData.frameRate*f):Math.max(0,this.elem.data.op-S)):((!f||f>_.length-1)&&(f=_.length-1),m=(g=_[f].t)-S),u==="pingpong"){if(Math.floor((S-b)/m)%2==0)return this.getValueAtTime(((S-b)%m+S)/this.comp.globalData.frameRate,0)}else{if(u==="offset"){var T=this.getValueAtTime(S/this.comp.globalData.frameRate,0),x=this.getValueAtTime(g/this.comp.globalData.frameRate,0),w=this.getValueAtTime((m-(S-b)%m+S)/this.comp.globalData.frameRate,0),M=Math.floor((S-b)/m)+1;if(this.pv.length){for(y=(v=new Array(T.length)).length,d=0;d<y;d+=1)v[d]=w[d]-(x[d]-T[d])*M;return v}return w-(x-T)*M}if(u==="continue"){var k=this.getValueAtTime(S/this.comp.globalData.frameRate,0),I=this.getValueAtTime((S+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(y=(v=new Array(k.length)).length,d=0;d<y;d+=1)v[d]=k[d]+(k[d]-I[d])*(S-b)/.001;return v}return k+(k-I)*(S-b)/.001}}return this.getValueAtTime((m-((S-b)%m+S))/this.comp.globalData.frameRate,0)}function r(u,f){if(!this.k)return this.pv;if(u=.5*(u||.4),(f=Math.floor(f||5))<=1)return this.pv;var p,m,g=this.comp.renderedFrame/this.comp.globalData.frameRate,d=g-u,y=f>1?(g+u-d)/(f-1):1,v=0,b=0;for(p=this.pv.length?createTypedArray("float32",this.pv.length):0;v<f;){if(m=this.getValueAtTime(d+v*y),this.pv.length)for(b=0;b<this.pv.length;b+=1)p[b]+=m[b];else p+=m;v+=1}if(this.pv.length)for(b=0;b<this.pv.length;b+=1)p[b]/=f;else p/=f;return p}function i(u){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var f=this._transformCachingAtTime.v;if(f.cloneFromProps(this.pre.props),this.appliedTransformations<1){var p=this.a.getValueAtTime(u);f.translate(-p[0]*this.a.mult,-p[1]*this.a.mult,p[2]*this.a.mult)}if(this.appliedTransformations<2){var m=this.s.getValueAtTime(u);f.scale(m[0]*this.s.mult,m[1]*this.s.mult,m[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var g=this.sk.getValueAtTime(u),d=this.sa.getValueAtTime(u);f.skewFromAxis(-g*this.sk.mult,d*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var y=this.r.getValueAtTime(u);f.rotate(-y*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var v=this.rz.getValueAtTime(u),b=this.ry.getValueAtTime(u),_=this.rx.getValueAtTime(u),S=this.or.getValueAtTime(u);f.rotateZ(-v*this.rz.mult).rotateY(b*this.ry.mult).rotateX(_*this.rx.mult).rotateZ(-S[2]*this.or.mult).rotateY(S[1]*this.or.mult).rotateX(S[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var T=this.px.getValueAtTime(u),x=this.py.getValueAtTime(u);if(this.data.p.z){var w=this.pz.getValueAtTime(u);f.translate(T*this.px.mult,x*this.py.mult,-w*this.pz.mult)}else f.translate(T*this.px.mult,x*this.py.mult,0)}else{var M=this.p.getValueAtTime(u);f.translate(M[0]*this.p.mult,M[1]*this.p.mult,-M[2]*this.p.mult)}return f}function n(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(u,f,p){var m=s(u,f,p);return m.dynamicProperties.length?m.getValueAtTime=i.bind(m):m.getValueAtTime=n.bind(m),m.setGroupProperty=expressionHelpers.setGroupProperty,m};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(u,f,p,m,g){var d=a(u,f,p,m,g);d.kf?d.getValueAtTime=expressionHelpers.getValueAtTime.bind(d):d.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(d),d.setGroupProperty=expressionHelpers.setGroupProperty,d.loopOut=t,d.loopIn=e,d.smooth=r,d.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(d),d.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(d),d.numKeys=f.a===1?f.k.length:0,d.propertyIndex=f.ix;var y=0;return p!==0&&(y=createTypedArray("float32",f.a===1?f.k[0].s.length:f.k.length)),d._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:y},expressionHelpers.searchExpressions(u,f,d),d.k&&g.addDynamicProperty(d),d};var o=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function h(){}h.prototype={vertices:function(u,f){this.k&&this.getValue();var p,m=this.v;f!==void 0&&(m=this.getValueAtTime(f,0));var g=m._length,d=m[u],y=m.v,v=createSizedArray(g);for(p=0;p<g;p+=1)v[p]=u==="i"||u==="o"?[d[p][0]-y[p][0],d[p][1]-y[p][1]]:[d[p][0],d[p][1]];return v},points:function(u){return this.vertices("v",u)},inTangents:function(u){return this.vertices("i",u)},outTangents:function(u){return this.vertices("o",u)},isClosed:function(){return this.v.c},pointOnPath:function(u,f){var p=this.v;f!==void 0&&(p=this.getValueAtTime(f,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(p));for(var m,g=this._segmentsLength,d=g.lengths,y=g.totalLength*u,v=0,b=d.length,_=0;v<b;){if(_+d[v].addedLength>y){var S=v,T=p.c&&v===b-1?0:v+1,x=(y-_)/d[v].addedLength;m=bez.getPointInSegment(p.v[S],p.v[T],p.o[S],p.i[T],x,d[v]);break}_+=d[v].addedLength,v+=1}return m||(m=p.c?[p.v[0][0],p.v[0][1]]:[p.v[p._length-1][0],p.v[p._length-1][1]]),m},vectorOnPath:function(u,f,p){u==1?u=this.v.c:u==0&&(u=.999);var m=this.pointOnPath(u,f),g=this.pointOnPath(u+.001,f),d=g[0]-m[0],y=g[1]-m[1],v=Math.sqrt(Math.pow(d,2)+Math.pow(y,2));return v===0?[0,0]:p==="tangent"?[d/v,y/v]:[-y/v,d/v]},tangentOnPath:function(u,f){return this.vectorOnPath(u,f,"tangent")},normalOnPath:function(u,f){return this.vectorOnPath(u,f,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([h],o),extendPrototype([h],l),l.prototype.getValueAtTime=function(u){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),u*=this.elem.globalData.frameRate,(u-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<u?this._caching.lastIndex:0,this._cachingAtTime.lastTime=u,this.interpolateShape(u,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(u,f,p,m,g){var d=c(u,f,p,m,g);return d.propertyIndex=f.ix,d.lock=!1,p===3?expressionHelpers.searchExpressions(u,f.pt,d):p===4&&expressionHelpers.searchExpressions(u,f.ks,d),d.k&&u.addDynamicProperty(d),d}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var r=this.calculateExpression(e);if(t.t!==r){var i={};return this.copyData(i,t),i.t=r.toString(),i.__complete=!1,i}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,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(){}function SVGTintFilter(t,e,r,i,n){this.filterManager=e;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.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"),s.setAttribute("result",i+"_tint_1"),t.appendChild(s),(s=createNS("feColorMatrix")).setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",i+"_tint_2"),t.appendChild(s),this.matrixFilter=s;var a=this.createMergeNode(i,[n,i+"_tint_1",i+"_tint_2"]);t.appendChild(a)}function SVGFillFilter(t,e,r,i){this.filterManager=e;var n=createNS("feColorMatrix");n.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),t.appendChild(n),this.matrixFilter=n}function SVGStrokeEffect(t,e,r){this.initialized=!1,this.filterManager=e,this.elem=r,this.paths=[]}function SVGTritoneFilter(t,e,r,i){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.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"),t.appendChild(n);var s=createNS("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",i),this.matrixFilter=s;var a=createNS("feFuncR");a.setAttribute("type","table"),s.appendChild(a),this.feFuncR=a;var o=createNS("feFuncG");o.setAttribute("type","table"),s.appendChild(o),this.feFuncG=o;var l=createNS("feFuncB");l.setAttribute("type","table"),s.appendChild(l),this.feFuncB=l,t.appendChild(s)}function SVGProLevelsFilter(t,e,r,i){this.filterManager=e;var n=this.filterManager.effectElements,s=createNS("feComponentTransfer");(n[10].p.k||n[10].p.v!==0||n[11].p.k||n[11].p.v!==1||n[12].p.k||n[12].p.v!==1||n[13].p.k||n[13].p.v!==0||n[14].p.k||n[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(n[17].p.k||n[17].p.v!==0||n[18].p.k||n[18].p.v!==1||n[19].p.k||n[19].p.v!==1||n[20].p.k||n[20].p.v!==0||n[21].p.k||n[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(n[24].p.k||n[24].p.v!==0||n[25].p.k||n[25].p.v!==1||n[26].p.k||n[26].p.v!==1||n[27].p.k||n[27].p.v!==0||n[28].p.k||n[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(n[31].p.k||n[31].p.v!==0||n[32].p.k||n[32].p.v!==1||n[33].p.k||n[33].p.v!==1||n[34].p.k||n[34].p.v!==0||n[35].p.k||n[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s)),(n[3].p.k||n[3].p.v!==0||n[4].p.k||n[4].p.v!==1||n[5].p.k||n[5].p.v!==1||n[6].p.k||n[6].p.v!==0||n[7].p.k||n[7].p.v!==1)&&((s=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",i),t.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}function SVGDropShadowEffect(t,e,r,i,n){var s=e.container.globalData.renderConfig.filterSize,a=e.data.fs||s;t.setAttribute("x",a.x||s.x),t.setAttribute("y",a.y||s.y),t.setAttribute("width",a.width||s.width),t.setAttribute("height",a.height||s.height),this.filterManager=e;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",i+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,t.appendChild(o);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,t.appendChild(l);var h=createNS("feFlood");h.setAttribute("flood-color","#00ff00"),h.setAttribute("flood-opacity","1"),h.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=h,t.appendChild(h);var c=createNS("feComposite");c.setAttribute("in",i+"_drop_shadow_3"),c.setAttribute("in2",i+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",i+"_drop_shadow_4"),t.appendChild(c);var u=this.createMergeNode(i,[i+"_drop_shadow_4",n]);t.appendChild(u)}SVGComposableEffect.prototype={createMergeNode:function(t,e){var r,i,n=createNS("feMerge");for(n.setAttribute("result",t),i=0;i<e.length;i+=1)(r=createNS("feMergeNode")).setAttribute("in",e[i]),n.appendChild(r),n.appendChild(r);return n}},extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,r,i,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(this.filterManager.effectElements[1].p.v===1?(i=this.elem.maskManager.masksProperties.length,r=0):i=(r=this.filterManager.effectElements[0].p.v-1)+1,(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);r<i;r+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:r});if(this.filterManager.effectElements[10].p.v===3){var s=createNS("mask"),a=createElementID();s.setAttribute("id",a),s.setAttribute("mask-type","alpha"),s.appendChild(e),this.elem.globalData.defs.appendChild(s);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+a+")");n[0];)o.appendChild(n[0]);this.elem.layerElement.appendChild(o),this.masker=s,e.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(n=this.elem.layerElement.children||this.elem.layerElement.childNodes;n.length;)this.elem.layerElement.removeChild(n[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){var e;this.initialized||this.initialize();var r,i,n=this.paths.length;for(e=0;e<n;e+=1)if(this.paths[e].m!==-1&&(r=this.elem.maskManager.viewData[this.paths[e].m],i=this.paths[e].p,(t||this.filterManager._mdf||r.prop._mdf)&&i.setAttribute("d",r.lastPath),t||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 s;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=i.getTotalLength();s="0 0 0 "+l*a+" ";var h,c=l*(o-a),u=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,f=Math.floor(c/u);for(h=0;h<f;h+=1)s+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";s+="0 "+10*l+" 0 0"}else s="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;i.setAttribute("stroke-dasharray",s)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(t||this.filterManager.effectElements[3].p._mdf)){var p=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*p[0])+","+bmFloor(255*p[1])+","+bmFloor(255*p[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,n=i[0]+" "+r[0]+" "+e[0],s=i[1]+" "+r[1]+" "+e[1],a=i[2]+" "+r[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var r=createNS(t);return r.setAttribute("type","table"),e.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(t,e,r,i,n){for(var s,a,o=0,l=Math.min(t,e),h=Math.max(t,e),c=Array.call(null,{length:256}),u=0,f=n-i,p=e-t;o<=256;)a=(s=o/256)<=l?p<0?n:i:s>=h?p<0?i:n:i+f*Math.pow((s-t)/p,1/r),c[u]=a,u+=1,o+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=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",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=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",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=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",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=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",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=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",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||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,n=r*Math.cos(i),s=r*Math.sin(i);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(t,e,r,i){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var n=createNS("feGaussianBlur");n.setAttribute("result",i),t.appendChild(n),this.feGaussianBlur=n}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e<r;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var r=t.layerElement.parentNode;if(r){for(var i,n=r.children,s=0,a=n.length;s<a&&n[s]!==t.layerElement;)s+=1;s<=a-2&&(i=n[s+1]);var o=createNS("use");o.setAttribute("href","#"+e),i?r.insertBefore(o,i):r.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",e.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var n=t.globalData.defs;n.appendChild(i);var s=createNS("symbol");s.setAttribute("id",r),this.replaceInParent(e,r),s.appendChild(e.layerElement),n.appendChild(s);var a=createNS("use");a.setAttribute("href","#"+r),i.appendChild(a),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,r=0,i=e.length;r<i;)e[r]&&e[r].data.ind===t&&this.setElementAsMask(this.elem,e[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=r==3?0:e,n=r==2?0:e;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+n);var s=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}},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(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie})}),Su,s0=qg(Su||(Su=ki([`
28
28
  * {
29
29
  box-sizing: border-box;
30
30
  }
@@ -182,7 +182,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
182
182
  height: 100%;
183
183
  align-items: center;
184
184
  }
185
- `]))),Eu={},o0=function(t,e,r,i,n){var s=new Worker(Eu[e]||(Eu[e]=URL.createObjectURL(new Blob([t+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return s.onmessage=function(a){var o=a.data,l=o.$e$;if(l){var h=new Error(l[0]);h.code=l[1],h.stack=l[2],n(h,null)}else n(null,o)},s.postMessage(r,i),s},ye=Uint8Array,et=Uint16Array,Li=Uint32Array,Bi=new ye([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Vi=new ye([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),kn=new ye([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),op=function(t,e){for(var r=new et(31),i=0;i<31;++i)r[i]=e+=1<<t[i-1];var n=new Li(r[30]);for(i=1;i<30;++i)for(var s=r[i];s<r[i+1];++s)n[s]=s-r[i]<<5|i;return[r,n]},lp=op(Bi,2),Pl=lp[0],Ks=lp[1];Pl[28]=258,Ks[258]=28;for(rl=op(Vi,0),Al=rl[0],Qs=rl[1],Di=new et(32768),we=0;we<32768;++we)ir=(43690&we)>>>1|(21845&we)<<1,ir=(52428&ir)>>>2|(13107&ir)<<2,ir=(61680&ir)>>>4|(3855&ir)<<4,Di[we]=((65280&ir)>>>8|(255&ir)<<8)>>>1;var ir,rl,Al,Qs,Di,we;for(xt=function(e,r,i){for(var n=e.length,s=0,a=new et(r);s<n;++s)e[s]&&++a[e[s]-1];var o,l=new et(r);for(s=0;s<r;++s)l[s]=l[s-1]+a[s-1]<<1;if(i){o=new et(1<<r);var h=15-r;for(s=0;s<n;++s)if(e[s])for(var c=s<<4|e[s],u=r-e[s],f=l[e[s]-1]++<<u,p=f|(1<<u)-1;f<=p;++f)o[Di[f]>>>h]=c}else for(o=new et(n),s=0;s<n;++s)e[s]&&(o[s]=Di[l[e[s]-1]++]>>>15-e[s]);return o},Zt=new ye(288),we=0;we<144;++we)Zt[we]=8;var xt,Zt,we;for(we=144;we<256;++we)Zt[we]=9;var we;for(we=256;we<280;++we)Zt[we]=7;var we;for(we=280;we<288;++we)Zt[we]=8;var we;for(Qr=new ye(32),we=0;we<32;++we)Qr[we]=5;var Qr,we,hp=xt(Zt,9,0),cp=xt(Zt,9,1),up=xt(Qr,5,0),pp=xt(Qr,5,1),Vs=function(t){for(var e=t[0],r=1;r<t.length;++r)t[r]>e&&(e=t[r]);return e},Mt=function(t,e,r){var i=e/8|0;return(t[i]|t[i+1]<<8)>>(7&e)&r},Ns=function(t,e){var r=e/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(7&e)},En=function(t){return(t+7)/8|0},Dt=function(t,e,r){(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length);var i=new(t.BYTES_PER_ELEMENT==2?et:t.BYTES_PER_ELEMENT==4?Li:ye)(r-e);return i.set(t.subarray(e,r)),i},k_={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},dp=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],ee=function(t,e,r){var i=new Error(e||dp[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,ee),!r)throw i;return i},Pn=function(t,e,r){var i=t.length;if(!i||r&&r.f&&!r.l)return e||new ye(0);var n=!e||r,s=!r||r.i;r||(r={}),e||(e=new ye(3*i));var a=function(le){var se=e.length;if(le>se){var te=new ye(Math.max(2*se,le));te.set(e),e=te}},o=r.f||0,l=r.p||0,h=r.b||0,c=r.l,u=r.d,f=r.m,p=r.n,m=8*i;do{if(!c){o=Mt(t,l,1);var g=Mt(t,l+1,3);if(l+=3,!g){var d=t[(I=En(l)+4)-4]|t[I-3]<<8,y=I+d;if(y>i){s&&ee(0);break}n&&a(h+d),e.set(t.subarray(I,y),h),r.b=h+=d,r.p=l=8*y,r.f=o;continue}if(g==1)c=cp,u=pp,f=9,p=5;else if(g==2){var v=Mt(t,l,31)+257,b=Mt(t,l+10,15)+4,_=v+Mt(t,l+5,31)+1;l+=14;for(var S=new ye(_),T=new ye(19),x=0;x<b;++x)T[kn[x]]=Mt(t,l+3*x,7);l+=3*b;var w=Vs(T),M=(1<<w)-1,k=xt(T,w,1);for(x=0;x<_;){var I,P=k[Mt(t,l,M)];if(l+=15&P,(I=P>>>4)<16)S[x++]=I;else{var A=0,E=0;for(I==16?(E=3+Mt(t,l,3),l+=2,A=S[x-1]):I==17?(E=3+Mt(t,l,7),l+=3):I==18&&(E=11+Mt(t,l,127),l+=7);E--;)S[x++]=A}}var F=S.subarray(0,v),$=S.subarray(v);f=Vs(F),p=Vs($),c=xt(F,f,1),u=xt($,p,1)}else ee(1);if(l>m){s&&ee(0);break}}n&&a(h+131072);for(var D=(1<<f)-1,C=(1<<p)-1,R=l;;R=l){var B=(A=c[Ns(t,l)&D])>>>4;if((l+=15&A)>m){s&&ee(0);break}if(A||ee(2),B<256)e[h++]=B;else{if(B==256){R=l,c=null;break}var U=B-254;if(B>264){var Z=Bi[x=B-257];U=Mt(t,l,(1<<Z)-1)+Pl[x],l+=Z}var X=u[Ns(t,l)&C],H=X>>>4;if(X||ee(3),l+=15&X,$=Al[H],H>3&&(Z=Vi[H],$+=Ns(t,l)&(1<<Z)-1,l+=Z),l>m){s&&ee(0);break}n&&a(h+131072);for(var ie=h+U;h<ie;h+=4)e[h]=e[h-$],e[h+1]=e[h+1-$],e[h+2]=e[h+2-$],e[h+3]=e[h+3-$];h=ie}}r.l=c,r.p=R,r.b=h,r.f=o,c&&(o=1,r.m=f,r.d=u,r.n=p)}while(!o);return h==e.length?e:Dt(e,0,h)},Wt=function(t,e,r){r<<=7&e;var i=e/8|0;t[i]|=r,t[i+1]|=r>>>8},Ei=function(t,e,r){r<<=7&e;var i=e/8|0;t[i]|=r,t[i+1]|=r>>>8,t[i+2]|=r>>>16},zs=function(t,e){for(var r=[],i=0;i<t.length;++i)t[i]&&r.push({s:i,f:t[i]});var n=r.length,s=r.slice();if(!n)return[or,0];if(n==1){var a=new ye(r[0].s+1);return a[r[0].s]=1,[a,1]}r.sort(function(S,T){return S.f-T.f}),r.push({s:-1,f:25001});var o=r[0],l=r[1],h=0,c=1,u=2;for(r[0]={s:-1,f:o.f+l.f,l:o,r:l};c!=n-1;)o=r[r[h].f<r[u].f?h++:u++],l=r[h!=c&&r[h].f<r[u].f?h++:u++],r[c++]={s:-1,f:o.f+l.f,l:o,r:l};var f=s[0].s;for(i=1;i<n;++i)s[i].s>f&&(f=s[i].s);var p=new et(f+1),m=ea(r[c-1],p,0);if(m>e){i=0;var g=0,d=m-e,y=1<<d;for(s.sort(function(S,T){return p[T.s]-p[S.s]||S.f-T.f});i<n;++i){var v=s[i].s;if(!(p[v]>e))break;g+=y-(1<<m-p[v]),p[v]=e}for(g>>>=d;g>0;){var b=s[i].s;p[b]<e?g-=1<<e-p[b]++-1:++i}for(;i>=0&&g;--i){var _=s[i].s;p[_]==e&&(--p[_],++g)}m=e}return[new ye(p),m]},ea=function(t,e,r){return t.s==-1?Math.max(ea(t.l,e,r+1),ea(t.r,e,r+1)):e[t.s]=r},cl=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new et(++e),i=0,n=t[0],s=1,a=function(l){r[i++]=l},o=1;o<=e;++o)if(t[o]==n&&o!=e)++s;else{if(!n&&s>2){for(;s>138;s-=138)a(32754);s>2&&(a(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(a(n),--s;s>6;s-=6)a(8304);s>2&&(a(s-3<<5|8208),s=0)}for(;s--;)a(n);s=1,n=t[o]}return[r.subarray(0,i),e]},Pi=function(t,e){for(var r=0,i=0;i<e.length;++i)r+=t[i]*e[i];return r},ta=function(t,e,r){var i=r.length,n=En(e+2);t[n]=255&i,t[n+1]=i>>>8,t[n+2]=255^t[n],t[n+3]=255^t[n+1];for(var s=0;s<i;++s)t[n+s+4]=r[s];return 8*(n+4+i)},ul=function(t,e,r,i,n,s,a,o,l,h,c){Wt(e,c++,r),++n[256];for(var u=zs(n,15),f=u[0],p=u[1],m=zs(s,15),g=m[0],d=m[1],y=cl(f),v=y[0],b=y[1],_=cl(g),S=_[0],T=_[1],x=new et(19),w=0;w<v.length;++w)x[31&v[w]]++;for(w=0;w<S.length;++w)x[31&S[w]]++;for(var M=zs(x,7),k=M[0],I=M[1],P=19;P>4&&!k[kn[P-1]];--P);var A,E,F,$,D=h+5<<3,C=Pi(n,Zt)+Pi(s,Qr)+a,R=Pi(n,f)+Pi(s,g)+a+14+3*P+Pi(x,k)+(2*x[16]+3*x[17]+7*x[18]);if(D<=C&&D<=R)return ta(e,c,t.subarray(l,l+h));if(Wt(e,c,1+(R<C)),c+=2,R<C){A=xt(f,p,0),E=f,F=xt(g,d,0),$=g;var B=xt(k,I,0);for(Wt(e,c,b-257),Wt(e,c+5,T-1),Wt(e,c+10,P-4),c+=14,w=0;w<P;++w)Wt(e,c+3*w,k[kn[w]]);c+=3*P;for(var U=[v,S],Z=0;Z<2;++Z){var X=U[Z];for(w=0;w<X.length;++w){var H=31&X[w];Wt(e,c,B[H]),c+=k[H],H>15&&(Wt(e,c,X[w]>>>5&127),c+=X[w]>>>12)}}}else A=hp,E=Zt,F=up,$=Qr;for(w=0;w<o;++w)if(i[w]>255){H=i[w]>>>18&31,Ei(e,c,A[H+257]),c+=E[H+257],H>7&&(Wt(e,c,i[w]>>>23&31),c+=Bi[H]);var ie=31&i[w];Ei(e,c,F[ie]),c+=$[ie],ie>3&&(Ei(e,c,i[w]>>>5&8191),c+=Vi[ie])}else Ei(e,c,A[i[w]]),c+=E[i[w]];return Ei(e,c,A[256]),c+E[256]},fp=new Li([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),or=new ye(0),mp=function(t,e,r,i,n,s){var a=t.length,o=new ye(i+a+5*(1+Math.ceil(a/7e3))+n),l=o.subarray(i,o.length-n),h=0;if(!e||a<8)for(var c=0;c<=a;c+=65535){var u=c+65535;u>=a&&(l[h>>3]=s),h=ta(l,h+1,t.subarray(c,u))}else{for(var f=fp[e-1],p=f>>>13,m=8191&f,g=(1<<r)-1,d=new et(32768),y=new et(g+1),v=Math.ceil(r/3),b=2*v,_=function(Pe){return(t[Pe]^t[Pe+1]<<v^t[Pe+2]<<b)&g},S=new Li(25e3),T=new et(288),x=new et(32),w=0,M=0,k=(c=0,0),I=0,P=0;c<a;++c){var A=_(c),E=32767&c,F=y[A];if(d[E]=F,y[A]=E,I<=c){var $=a-c;if((w>7e3||k>24576)&&$>423){h=ul(t,l,0,S,T,x,M,k,P,c-P,h),k=w=M=0,P=c;for(var D=0;D<286;++D)T[D]=0;for(D=0;D<30;++D)x[D]=0}var C=2,R=0,B=m,U=E-F&32767;if($>2&&A==_(c-U))for(var Z=Math.min(p,$)-1,X=Math.min(32767,c),H=Math.min(258,$);U<=X&&--B&&E!=F;){if(t[c+C]==t[c+C-U]){for(var ie=0;ie<H&&t[c+ie]==t[c+ie-U];++ie);if(ie>C){if(C=ie,R=U,ie>Z)break;var le=Math.min(U,ie-2),se=0;for(D=0;D<le;++D){var te=c-U+D+32768&32767,Ee=te-d[te]+32768&32767;Ee>se&&(se=Ee,F=te)}}}U+=(E=F)-(F=d[E])+32768&32767}if(R){S[k++]=268435456|Ks[C]<<18|Qs[R];var ge=31&Ks[C],Me=31&Qs[R];M+=Bi[ge]+Vi[Me],++T[257+ge],++x[Me],I=c+C,++w}else S[k++]=t[c],++T[t[c]]}}h=ul(t,l,s,S,T,x,M,k,P,c-P,h),!s&&7&h&&(h=ta(l,h+1,or))}return Dt(o,0,i+En(h)+n)},gp=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var r=e,i=9;--i;)r=(1&r&&-306674912)^r>>>1;t[e]=r}return t}(),Ni=function(){var t=-1;return{p:function(e){for(var r=t,i=0;i<e.length;++i)r=gp[255&r^e[i]]^r>>>8;t=r},d:function(){return~t}}},Cl=function(){var t=1,e=0;return{p:function(r){for(var i=t,n=e,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)n+=i+=r[a];i=(65535&i)+15*(i>>16),n=(65535&n)+15*(n>>16)}t=i,e=n},d:function(){return(255&(t%=65521))<<24|t>>>8<<16|(255&(e%=65521))<<8|e>>>8}}},ti=function(t,e,r,i,n){return mp(t,e.level==null?6:e.level,e.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,r,i,!n)},An=function(t,e){var r={};for(var i in t)r[i]=t[i];for(var i in e)r[i]=e[i];return r},Pu=function(t,e,r){for(var i=t(),n=t.toString(),s=n.slice(n.indexOf("[")+1,n.lastIndexOf("]")).replace(/\s+/g,"").split(","),a=0;a<i.length;++a){var o=i[a],l=s[a];if(typeof o=="function"){e+=";"+l+"=";var h=o.toString();if(o.prototype)if(h.indexOf("[native code]")!=-1){var c=h.indexOf(" ",8)+1;e+=h.slice(c,h.indexOf("(",c))}else for(var u in e+=h,o.prototype)e+=";"+l+".prototype."+u+"="+o.prototype[u].toString();else e+=h}else r[l]=o}return[e,r]},Rs=[],l0=function(t){var e=[];for(var r in t)t[r].buffer&&e.push((t[r]=new t[r].constructor(t[r])).buffer);return e},yp=function(t,e,r,i){var n;if(!Rs[r]){for(var s="",a={},o=t.length-1,l=0;l<o;++l)s=(n=Pu(t[l],s,a))[0],a=n[1];Rs[r]=Pu(t[o],s,a)}var h=An({},Rs[r][1]);return o0(Rs[r][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+e.toString()+"}",r,h,l0(h),i)},zi=function(){return[ye,et,Li,Bi,Vi,kn,Pl,Al,cp,pp,Di,dp,xt,Vs,Mt,Ns,En,Dt,ee,Pn,Cn,wr,Tl]},ji=function(){return[ye,et,Li,Bi,Vi,kn,Ks,Qs,hp,Zt,up,Qr,Di,fp,or,xt,Wt,Ei,zs,ea,cl,Pi,ta,ul,En,Dt,mp,ti,aa,wr]},vp=function(){return[Il,Dl,Se,Ni,gp]},bp=function(){return[Ml,xp]},_p=function(){return[Fl,Se,Cl]},wp=function(){return[Sp]},wr=function(t){return postMessage(t,[t.buffer])},Tl=function(t){return t&&t.size&&new ye(t.size)},Gi=function(t,e,r,i,n,s){var a=yp(r,i,n,function(o,l){a.terminate(),s(o,l)});return a.postMessage([t,e],e.consume?[t.buffer]:[]),function(){a.terminate()}},Ft=function(t){return t.ondata=function(e,r){return postMessage([e,r],[e.buffer])},function(e){return t.push(e.data[0],e.data[1])}},Hi=function(t,e,r,i,n){var s,a=yp(t,i,n,function(o,l){o?(a.terminate(),e.ondata.call(e,o)):(l[1]&&a.terminate(),e.ondata.call(e,o,l[0],l[1]))});a.postMessage(r),e.push=function(o,l){e.ondata||ee(5),s&&e.ondata(ee(4,0,1),null,!!l),a.postMessage([o,s=l],[o.buffer])},e.terminate=function(){a.terminate()}},at=function(t,e){return t[e]|t[e+1]<<8},$e=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},il=function(t,e){return $e(t,e)+4294967296*$e(t,e+4)},Se=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8},Il=function(t,e){var r=e.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=e.level<2?4:e.level==9?2:0,t[9]=3,e.mtime!=0&&Se(t,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),r){t[3]=8;for(var i=0;i<=r.length;++i)t[i+10]=r.charCodeAt(i)}},Ml=function(t){t[0]==31&&t[1]==139&&t[2]==8||ee(6,"invalid gzip data");var e=t[3],r=10;4&e&&(r+=t[10]|2+(t[11]<<8));for(var i=(e>>3&1)+(e>>4&1);i>0;i-=!t[r++]);return r+(2&e)},xp=function(t){var e=t.length;return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0},Dl=function(t){return 10+(t.filename&&t.filename.length+1||0)},Fl=function(t,e){var r=e.level,i=r==0?0:r<6?1:r==9?3:2;t[0]=120,t[1]=i<<6|(i?32-2*i:1)},Sp=function(t){((15&t[0])!=8||t[0]>>>4>7||(t[0]<<8|t[1])%31)&&ee(6,"invalid zlib data"),32&t[1]&&ee(6,"invalid zlib data: preset dictionaries not supported")};function $l(t,e){return e||typeof t!="function"||(e=t,t={}),this.ondata=e,t}var lr=function(){function t(e,r){r||typeof e!="function"||(r=e,e={}),this.ondata=r,this.o=e||{}}return t.prototype.p=function(e,r){this.ondata(ti(e,this.o,0,0,!r),r)},t.prototype.push=function(e,r){this.ondata||ee(5),this.d&&ee(4),this.d=r,this.p(e,r||!1)},t}(),h0=function(){return function(t,e){Hi([ji,function(){return[Ft,lr]}],this,$l.call(this,t,e),function(r){var i=new lr(r.data);onmessage=Ft(i)},6)}}();function c0(t,e,r){return r||(r=e,e={}),typeof r!="function"&&ee(7),Gi(t,e,[ji],function(i){return wr(aa(i.data[0],i.data[1]))},0,r)}function aa(t,e){return ti(t,e||{},0,0)}var St=function(){function t(e){this.s={},this.p=new ye(0),this.ondata=e}return t.prototype.e=function(e){this.ondata||ee(5),this.d&&ee(4);var r=this.p.length,i=new ye(r+e.length);i.set(this.p),i.set(e,r),this.p=i},t.prototype.c=function(e){this.d=this.s.i=e||!1;var r=this.s.b,i=Pn(this.p,this.o,this.s);this.ondata(Dt(i,r,this.s.b),this.d),this.o=Dt(i,this.s.b-32768),this.s.b=this.o.length,this.p=Dt(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(e,r){this.e(e),this.c(r)},t}(),kp=function(){return function(t){this.ondata=t,Hi([zi,function(){return[Ft,St]}],this,0,function(){var e=new St;onmessage=Ft(e)},7)}}();function Ep(t,e,r){return r||(r=e,e={}),typeof r!="function"&&ee(7),Gi(t,e,[zi],function(i){return wr(Cn(i.data[0],Tl(i.data[1])))},1,r)}function Cn(t,e){return Pn(t,e)}var Au=function(){function t(e,r){this.c=Ni(),this.l=0,this.v=1,lr.call(this,e,r)}return t.prototype.push=function(e,r){lr.prototype.push.call(this,e,r)},t.prototype.p=function(e,r){this.c.p(e),this.l+=e.length;var i=ti(e,this.o,this.v&&Dl(this.o),r&&8,!r);this.v&&(Il(i,this.o),this.v=0),r&&(Se(i,i.length-8,this.c.d()),Se(i,i.length-4,this.l)),this.ondata(i,r)},t}(),E_=function(){return function(t,e){Hi([ji,vp,function(){return[Ft,lr,Au]}],this,$l.call(this,t,e),function(r){var i=new Au(r.data);onmessage=Ft(i)},8)}}();function P_(t,e,r){return r||(r=e,e={}),typeof r!="function"&&ee(7),Gi(t,e,[ji,vp,function(){return[Cu]}],function(i){return wr(Cu(i.data[0],i.data[1]))},2,r)}function Cu(t,e){e||(e={});var r=Ni(),i=t.length;r.p(t);var n=ti(t,e,Dl(e),8),s=n.length;return Il(n,e),Se(n,s-8,r.d()),Se(n,s-4,i),n}var pl=function(){function t(e){this.v=1,St.call(this,e)}return t.prototype.push=function(e,r){if(St.prototype.e.call(this,e),this.v){var i=this.p.length>3?Ml(this.p):4;if(i>=this.p.length&&!r)return;this.p=this.p.subarray(i),this.v=0}r&&(this.p.length<8&&ee(6,"invalid gzip data"),this.p=this.p.subarray(0,-8)),St.prototype.c.call(this,r)},t}(),u0=function(){return function(t){this.ondata=t,Hi([zi,bp,function(){return[Ft,St,pl]}],this,0,function(){var e=new pl;onmessage=Ft(e)},9)}}();function p0(t,e,r){return r||(r=e,e={}),typeof r!="function"&&ee(7),Gi(t,e,[zi,bp,function(){return[dl]}],function(i){return wr(dl(i.data[0]))},3,r)}function dl(t,e){return Pn(t.subarray(Ml(t),-8),e||new ye(xp(t)))}var Tu=function(){function t(e,r){this.c=Cl(),this.v=1,lr.call(this,e,r)}return t.prototype.push=function(e,r){lr.prototype.push.call(this,e,r)},t.prototype.p=function(e,r){this.c.p(e);var i=ti(e,this.o,this.v&&2,r&&4,!r);this.v&&(Fl(i,this.o),this.v=0),r&&Se(i,i.length-4,this.c.d()),this.ondata(i,r)},t}(),A_=function(){return function(t,e){Hi([ji,_p,function(){return[Ft,lr,Tu]}],this,$l.call(this,t,e),function(r){var i=new Tu(r.data);onmessage=Ft(i)},10)}}();function C_(t,e,r){return r||(r=e,e={}),typeof r!="function"&&ee(7),Gi(t,e,[ji,_p,function(){return[Iu]}],function(i){return wr(Iu(i.data[0],i.data[1]))},4,r)}function Iu(t,e){e||(e={});var r=Cl();r.p(t);var i=ti(t,e,2,4);return Fl(i,e),Se(i,i.length-4,r.d()),i}var fl=function(){function t(e){this.v=1,St.call(this,e)}return t.prototype.push=function(e,r){if(St.prototype.e.call(this,e),this.v){if(this.p.length<2&&!r)return;this.p=this.p.subarray(2),this.v=0}r&&(this.p.length<4&&ee(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),St.prototype.c.call(this,r)},t}(),d0=function(){return function(t){this.ondata=t,Hi([zi,wp,function(){return[Ft,St,fl]}],this,0,function(){var e=new fl;onmessage=Ft(e)},11)}}();function f0(t,e,r){return r||(r=e,e={}),typeof r!="function"&&ee(7),Gi(t,e,[zi,wp,function(){return[ml]}],function(i){return wr(ml(i.data[0],Tl(i.data[1])))},5,r)}function ml(t,e){return Pn((Sp(t),t.subarray(2,-4)),e)}var m0=function(){function t(e){this.G=pl,this.I=St,this.Z=fl,this.ondata=e}return t.prototype.push=function(e,r){if(this.ondata||ee(5),this.s)this.s.push(e,r);else{if(this.p&&this.p.length){var i=new ye(this.p.length+e.length);i.set(this.p),i.set(e,this.p.length)}else this.p=e;if(this.p.length>2){var n=this,s=function(){n.ondata.apply(n,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(s):(15&this.p[0])!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(s):new this.Z(s),this.s.push(this.p,r),this.p=null}}},t}(),T_=function(){function t(e){this.G=u0,this.I=kp,this.Z=d0,this.ondata=e}return t.prototype.push=function(e,r){m0.prototype.push.call(this,e,r)},t}();function I_(t,e,r){return r||(r=e,e={}),typeof r!="function"&&ee(7),t[0]==31&&t[1]==139&&t[2]==8?p0(t,e,r):(15&t[0])!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?Ep(t,e,r):f0(t,e,r)}function M_(t,e){return t[0]==31&&t[1]==139&&t[2]==8?dl(t,e):(15&t[0])!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?Cn(t,e):ml(t,e)}var Ol=function(t,e,r,i){for(var n in t){var s=t[n],a=e+n,o=i;Array.isArray(s)&&(o=An(i,s[1]),s=s[0]),s instanceof ye?r[a]=[s,o]:(r[a+="/"]=[new ye(0),o],Ol(s,a,r,i))}},Mu=typeof TextEncoder<"u"&&new TextEncoder,gl=typeof TextDecoder<"u"&&new TextDecoder,Pp=0;try{gl.decode(or,{stream:!0}),Pp=1}catch(t){}var Ap=function(t){for(var e="",r=0;;){var i=t[r++],n=(i>127)+(i>223)+(i>239);if(r+n>t.length)return[e,Dt(t,r-1)];n?n==3?(i=((15&i)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,e+=String.fromCharCode(55296|i>>10,56320|1023&i)):e+=1&n?String.fromCharCode((31&i)<<6|63&t[r++]):String.fromCharCode((15&i)<<12|(63&t[r++])<<6|63&t[r++]):e+=String.fromCharCode(i)}},D_=function(){function t(e){this.ondata=e,Pp?this.t=new TextDecoder:this.p=or}return t.prototype.push=function(e,r){if(this.ondata||ee(5),r=!!r,this.t)return this.ondata(this.t.decode(e,{stream:!0}),r),void(r&&(this.t.decode().length&&ee(8),this.t=null));this.p||ee(4);var i=new ye(this.p.length+e.length);i.set(this.p),i.set(e,this.p.length);var n=Ap(i),s=n[0],a=n[1];r?(a.length&&ee(8),this.p=null):this.p=a,this.ondata(s,r)},t}(),F_=function(){function t(e){this.ondata=e}return t.prototype.push=function(e,r){this.ondata||ee(5),this.d&&ee(4),this.ondata(ei(e),this.d=r||!1)},t}();function ei(t,e){if(e){for(var r=new ye(t.length),i=0;i<t.length;++i)r[i]=t.charCodeAt(i);return r}if(Mu)return Mu.encode(t);var n=t.length,s=new ye(t.length+(t.length>>1)),a=0,o=function(c){s[a++]=c};for(i=0;i<n;++i){if(a+5>s.length){var l=new ye(a+8+(n-i<<1));l.set(s),s=l}var h=t.charCodeAt(i);h<128||e?o(h):h<2048?(o(192|h>>6),o(128|63&h)):h>55295&&h<57344?(o(240|(h=65536+(1047552&h)|1023&t.charCodeAt(++i))>>18),o(128|h>>12&63),o(128|h>>6&63),o(128|63&h)):(o(224|h>>12),o(128|h>>6&63),o(128|63&h))}return Dt(s,0,a)}function bn(t,e){if(e){for(var r="",i=0;i<t.length;i+=16384)r+=String.fromCharCode.apply(null,t.subarray(i,i+16384));return r}if(gl)return gl.decode(t);var n=Ap(t),s=n[0];return n[1].length&&ee(8),s}var Cp=function(t){return t==1?3:t<6?2:t==9?1:0},Tp=function(t,e){return e+30+at(t,e+26)+at(t,e+28)},Ip=function(t,e,r){var i=at(t,e+28),n=bn(t.subarray(e+46,e+46+i),!(2048&at(t,e+8))),s=e+46+i,a=$e(t,e+20),o=r&&a==4294967295?Mp(t,s):[a,$e(t,e+24),$e(t,e+42)],l=o[0],h=o[1],c=o[2];return[at(t,e+10),l,h,n,s+at(t,e+30)+at(t,e+32),c]},Mp=function(t,e){for(;at(t,e)!=1;e+=4+at(t,e+2));return[il(t,e+12),il(t,e+4),il(t,e+20)]},_r=function(t){var e=0;if(t)for(var r in t){var i=t[r].length;i>65535&&ee(9),e+=i+4}return e},Fi=function(t,e,r,i,n,s,a,o){var l=i.length,h=r.extra,c=o&&o.length,u=_r(h);Se(t,e,a!=null?33639248:67324752),e+=4,a!=null&&(t[e++]=20,t[e++]=r.os),t[e]=20,e+=2,t[e++]=r.flag<<1|(s<0&&8),t[e++]=n&&8,t[e++]=255&r.compression,t[e++]=r.compression>>8;var f=new Date(r.mtime==null?Date.now():r.mtime),p=f.getFullYear()-1980;if((p<0||p>119)&&ee(10),Se(t,e,p<<25|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>>1),e+=4,s!=-1&&(Se(t,e,r.crc),Se(t,e+4,s<0?-s-2:s),Se(t,e+8,r.size)),Se(t,e+12,l),Se(t,e+14,u),e+=16,a!=null&&(Se(t,e,c),Se(t,e+6,r.attrs),Se(t,e+10,a),e+=14),t.set(i,e),e+=l,u)for(var m in h){var g=h[m],d=g.length;Se(t,e,+m),Se(t,e+2,d),t.set(g,e+4),e+=4+d}return c&&(t.set(o,e),e+=c),e},Rl=function(t,e,r,i,n){Se(t,e,101010256),Se(t,e+8,r),Se(t,e+10,r),Se(t,e+12,i),Se(t,e+16,n)},ra=function(){function t(e){this.filename=e,this.c=Ni(),this.size=0,this.compression=0}return t.prototype.process=function(e,r){this.ondata(null,e,r)},t.prototype.push=function(e,r){this.ondata||ee(5),this.c.p(e),this.size+=e.length,r&&(this.crc=this.c.d()),this.process(e,r||!1)},t}(),$_=function(){function t(e,r){var i=this;r||(r={}),ra.call(this,e),this.d=new lr(r,function(n,s){i.ondata(null,n,s)}),this.compression=8,this.flag=Cp(r.level)}return t.prototype.process=function(e,r){try{this.d.push(e,r)}catch(i){this.ondata(i,null,r)}},t.prototype.push=function(e,r){ra.prototype.push.call(this,e,r)},t}(),O_=function(){function t(e,r){var i=this;r||(r={}),ra.call(this,e),this.d=new h0(r,function(n,s,a){i.ondata(n,s,a)}),this.compression=8,this.flag=Cp(r.level),this.terminate=this.d.terminate}return t.prototype.process=function(e,r){this.d.push(e,r)},t.prototype.push=function(e,r){ra.prototype.push.call(this,e,r)},t}(),R_=function(){function t(e){this.ondata=e,this.u=[],this.d=1}return t.prototype.add=function(e){var r=this;if(this.ondata||ee(5),2&this.d)this.ondata(ee(4+8*(1&this.d),0,1),null,!1);else{var i=ei(e.filename),n=i.length,s=e.comment,a=s&&ei(s),o=n!=e.filename.length||a&&s.length!=a.length,l=n+_r(e.extra)+30;n>65535&&this.ondata(ee(11,0,1),null,!1);var h=new ye(l);Fi(h,0,e,i,o,-1);var c=[h],u=function(){for(var d=0,y=c;d<y.length;d++){var v=y[d];r.ondata(null,v,!1)}c=[]},f=this.d;this.d=0;var p=this.u.length,m=An(e,{f:i,u:o,o:a,t:function(){e.terminate&&e.terminate()},r:function(){if(u(),f){var d=r.u[p+1];d?d.r():r.d=1}f=1}}),g=0;e.ondata=function(d,y,v){if(d)r.ondata(d,y,v),r.terminate();else if(g+=y.length,c.push(y),v){var b=new ye(16);Se(b,0,134695760),Se(b,4,e.crc),Se(b,8,g),Se(b,12,e.size),c.push(b),m.c=g,m.b=l+g+16,m.crc=e.crc,m.size=e.size,f&&m.r(),f=1}else f&&u()},this.u.push(m)}},t.prototype.end=function(){var e=this;2&this.d?this.ondata(ee(4+8*(1&this.d),0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&e.d&&(e.u.splice(-1,1),e.e())},t:function(){}}),this.d=3)},t.prototype.e=function(){for(var e=0,r=0,i=0,n=0,s=this.u;n<s.length;n++)i+=46+(h=s[n]).f.length+_r(h.extra)+(h.o?h.o.length:0);for(var a=new ye(i+22),o=0,l=this.u;o<l.length;o++){var h=l[o];Fi(a,e,h,h.f,h.u,-h.c-2,r,h.o),e+=46+h.f.length+_r(h.extra)+(h.o?h.o.length:0),r+=h.b}Rl(a,e,this.u.length,i,r),this.ondata(null,a,!0),this.d=2},t.prototype.terminate=function(){for(var e=0,r=this.u;e<r.length;e++)r[e].t();this.d=2},t}();function L_(t,e,r){r||(r=e,e={}),typeof r!="function"&&ee(7);var i={};Ol(t,"",i,e);var n=Object.keys(i),s=n.length,a=0,o=0,l=s,h=new Array(s),c=[],u=function(){for(var d=0;d<c.length;++d)c[d]()},f=function(d,y){ia(function(){r(d,y)})};ia(function(){f=r});var p=function(){var d=new ye(o+22),y=a,v=o-a;o=0;for(var b=0;b<l;++b){var _=h[b];try{var S=_.c.length;Fi(d,o,_,_.f,_.u,S);var T=30+_.f.length+_r(_.extra),x=o+T;d.set(_.c,x),Fi(d,a,_,_.f,_.u,S,o,_.m),a+=16+T+(_.m?_.m.length:0),o=x+S}catch(w){return f(w,null)}}Rl(d,a,h.length,v,y),f(null,d)};s||p();for(var m=function(d){var y=n[d],v=i[y],b=v[0],_=v[1],S=Ni(),T=b.length;S.p(b);var x=ei(y),w=x.length,M=_.comment,k=M&&ei(M),I=k&&k.length,P=_r(_.extra),A=_.level==0?0:8,E=function(F,$){if(F)u(),f(F,null);else{var D=$.length;h[d]=An(_,{size:T,crc:S.d(),c:$,f:x,m:k,u:w!=y.length||k&&M.length!=I,compression:A}),a+=30+w+P+D,o+=76+2*(w+P)+(I||0)+D,--s||p()}};if(w>65535&&E(ee(11,0,1),null),A)if(T<16e4)try{E(null,aa(b,_))}catch(F){E(F,null)}else c.push(c0(b,_,E));else E(null,b)},g=0;g<l;++g)m(g);return u}function B_(t,e){e||(e={});var r={},i=[];Ol(t,"",r,e);var n=0,s=0;for(var a in r){var o=r[a],l=o[0],h=o[1],c=h.level==0?0:8,u=(x=ei(a)).length,f=h.comment,p=f&&ei(f),m=p&&p.length,g=_r(h.extra);u>65535&&ee(11);var d=c?aa(l,h):l,y=d.length,v=Ni();v.p(l),i.push(An(h,{size:l.length,crc:v.d(),c:d,f:x,m:p,u:u!=a.length||p&&f.length!=m,o:n,compression:c})),n+=30+u+g+y,s+=76+2*(u+g)+(m||0)+y}for(var b=new ye(s+22),_=n,S=s-n,T=0;T<i.length;++T){var x=i[T];Fi(b,x.o,x,x.f,x.u,x.c.length);var w=30+x.f.length+_r(x.extra);b.set(x.c,x.o+w),Fi(b,n,x,x.f,x.u,x.c.length,x.o,x.m),n+=16+w+(x.m?x.m.length:0)}return Rl(b,n,i.length,S,_),b}var g0=function(){function t(){}return t.prototype.push=function(e,r){this.ondata(null,e,r)},t.compression=0,t}(),V_=function(){function t(){var e=this;this.i=new St(function(r,i){e.ondata(null,r,i)})}return t.prototype.push=function(e,r){try{this.i.push(e,r)}catch(i){this.ondata(i,null,r)}},t.compression=8,t}(),N_=function(){function t(e,r){var i=this;r<32e4?this.i=new St(function(n,s){i.ondata(null,n,s)}):(this.i=new kp(function(n,s,a){i.ondata(n,s,a)}),this.terminate=this.i.terminate)}return t.prototype.push=function(e,r){this.i.terminate&&(e=Dt(e,0)),this.i.push(e,r)},t.compression=8,t}(),z_=function(){function t(e){this.onfile=e,this.k=[],this.o={0:g0},this.p=or}return t.prototype.push=function(e,r){var i=this;if(this.onfile||ee(5),this.p||ee(4),this.c>0){var n=Math.min(this.c,e.length),s=e.subarray(0,n);if(this.c-=n,this.d?this.d.push(s,!this.c):this.k[0].push(s),(e=e.subarray(n)).length)return this.push(e,r)}else{var a=0,o=0,l=void 0,h=void 0;this.p.length?e.length?((h=new ye(this.p.length+e.length)).set(this.p),h.set(e,this.p.length)):h=this.p:h=e;for(var c=h.length,u=this.c,f=u&&this.d,p=function(){var d,y=$e(h,o);if(y==67324752){a=1,l=o,m.d=null,m.c=0;var v=at(h,o+6),b=at(h,o+8),_=2048&v,S=8&v,T=at(h,o+26),x=at(h,o+28);if(c>o+30+T+x){var w=[];m.k.unshift(w),a=2;var M,k=$e(h,o+18),I=$e(h,o+22),P=bn(h.subarray(o+30,o+=30+T),!_);k==4294967295?(d=S?[-2]:Mp(h,o),k=d[0],I=d[1]):S&&(k=-1),o+=x,m.c=k;var A={name:P,compression:b,start:function(){if(A.ondata||ee(5),k){var E=i.o[b];E||A.ondata(ee(14,"unknown compression type "+b,1),null,!1),(M=k<0?new E(P):new E(P,k,I)).ondata=function(C,R,B){A.ondata(C,R,B)};for(var F=0,$=w;F<$.length;F++){var D=$[F];M.push(D,!1)}i.k[0]==w&&i.c?i.d=M:M.push(or,!0)}else A.ondata(null,or,!0)},terminate:function(){M&&M.terminate&&M.terminate()}};k>=0&&(A.size=k,A.originalSize=I),m.onfile(A)}return"break"}if(u){if(y==134695760)return l=o+=12+(u==-2&&8),a=3,m.c=0,"break";if(y==33639248)return l=o-=4,a=3,m.c=0,"break"}},m=this;o<c-4&&p()!=="break";++o);if(this.p=or,u<0){var g=a?h.subarray(0,l-12-(u==-2&&8)-($e(h,l-16)==134695760&&4)):h.subarray(0,o);f?f.push(g,!!a):this.k[+(a==2)].push(g)}if(2&a)return this.push(h.subarray(o),r);this.p=h.subarray(o)}r&&(this.c&&ee(13),this.p=null)},t.prototype.register=function(e){this.o[e.compression]=e},t}(),ia=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(t){t()};function y0(t,e,r){r||(r=e,e={}),typeof r!="function"&&ee(7);var i=[],n=function(){for(var d=0;d<i.length;++d)i[d]()},s={},a=function(d,y){ia(function(){r(d,y)})};ia(function(){a=r});for(var o=t.length-22;$e(t,o)!=101010256;--o)if(!o||t.length-o>65558)return a(ee(13,0,1),null),n;var l=at(t,o+8);if(l){var h=l,c=$e(t,o+16),u=c==4294967295||h==65535;if(u){var f=$e(t,o-12);(u=$e(t,f)==101075792)&&(h=l=$e(t,f+32),c=$e(t,f+48))}for(var p=e&&e.filter,m=function(d){var y=Ip(t,c,u),v=y[0],b=y[1],_=y[2],S=y[3],T=y[4],x=y[5],w=Tp(t,x);c=T;var M=function(I,P){I?(n(),a(I,null)):(P&&(s[S]=P),--l||a(null,s))};if(!p||p({name:S,size:b,originalSize:_,compression:v}))if(v)if(v==8){var k=t.subarray(w,w+b);if(b<32e4)try{M(null,Cn(k,new ye(_)))}catch(I){M(I,null)}else i.push(Ep(k,{size:_},M))}else M(ee(14,"unknown compression type "+v,1),null);else M(null,Dt(t,w,w+b));else M(null,null)},g=0;g<h;++g)m()}else a(null,{});return n}function j_(t,e){for(var r={},i=t.length-22;$e(t,i)!=101010256;--i)(!i||t.length-i>65558)&&ee(13);var n=at(t,i+8);if(!n)return{};var s=$e(t,i+16),a=s==4294967295||n==65535;if(a){var o=$e(t,i-12);(a=$e(t,o)==101075792)&&(n=$e(t,o+32),s=$e(t,o+48))}for(var l=e&&e.filter,h=0;h<n;++h){var c=Ip(t,s,a),u=c[0],f=c[1],p=c[2],m=c[3],g=c[4],d=c[5],y=Tp(t,d);s=g,l&&!l({name:m,size:f,originalSize:p,compression:u})||(u?u==8?r[m]=Cn(t.subarray(y,y+f),new ye(p)):ee(14,"unknown compression type "+u):r[m]=Dt(t,y,y+f))}return r}var v0="@dotlottie/player-component",b0="1.4.2",_0="dotlottie animation player web component.",w0="dist/dotlottie-player.js",x0="dist/dotlottie-player.esm.js",S0="dist/dotlottie-player.esm.d.ts",k0="https://dotlottie.com/players",E0="https://github.com/dotlottie/player-component.git",P0="https://github.com/dotlottie/player-component/issues",A0="Jawish Hameed <jawish@lottiefiles.com>",C0="MIT",T0={build:"yarn build-dotlottie",buildtsup:"tsup","build-with-coverage":"CODE_COVERAGE=true yarn build-dotlottie","build-dotlottie":"yarn cleanup && rollup -c","build:types":"tsc --declaration",dev:"yarn cleanup && rollup -c --watch",lint:"eslint","lint:fix":"eslint --fix",cleanup:"shx rm -rf dist && shx mkdir dist",serve:"node ./cypress/pages/server.js -p 8000 &","start-cypress":"npx cypress run && npx nyc report --reporter=text-summary","run-tests":"yarn build-with-coverage && yarn serve && yarn start-cypress","postrun-tests":"kill $(lsof -t -i:8000)"},I0={"@rollup/plugin-json":"^6.0.0",fflate:"^0.7.3",lit:"^2.4.1","lottie-web":"^5.10.0",tsup:"^6.1.3"},M0={"@babel/core":"^7.11.0","@babel/plugin-proposal-class-properties":"^7.10.4","@babel/plugin-proposal-decorators":"^7.10.5","@babel/preset-env":"^7.11.0","@babel/preset-typescript":"^7.10.4","@changesets/cli":"^2.24.4","@cypress/code-coverage":"^3.9.12","@istanbuljs/nyc-config-typescript":"^1.0.2","@rollup/plugin-babel":"^5.1.0","@rollup/plugin-commonjs":"^14.0.0","@rollup/plugin-node-resolve":"^8.4.0","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","babel-plugin-istanbul":"^6.1.1",changesets:"^1.0.2",cypress:"^9.4.1",eslint:"^6.6.0","eslint-config-prettier":"^6.5.0","eslint-plugin-prettier":"^3.1.1",fastify:"^3.27.1","fastify-static":"^4.5.0",lerna:"^4.0.0","parcel-bundler":"^1.12.4",prettier:"1.18.2",rollup:"^2.23.0","rollup-plugin-alias":"^2.2.0","rollup-plugin-copy":"^3.3.0","rollup-plugin-filesize":"^9.0.2","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-serve":"^1.0.3","rollup-plugin-terser":"^6.1.0","rollup-plugin-typescript2":"^0.27.1","rollup-plugin-visualizer":"^4.0.4",shx:"^0.3.3","source-map-support":"^0.5.21","ts-node":"^10.5.0",typescript:"^3.7.5"},D0=["dist"],F0=["dotlottie","animation","web component","component","lit-element","player"],$0=["> 3%"],O0={access:"public"},R0={extends:"@istanbuljs/nyc-config-typescript",all:!0},Du={name:v0,version:b0,description:_0,main:w0,module:x0,types:S0,homepage:k0,repository:E0,bugs:P0,author:A0,license:C0,scripts:T0,dependencies:I0,devDependencies:M0,files:D0,keywords:F0,browserslist:$0,publishConfig:O0,nyc:R0},ut=t=>new Error("[dotLottie-player-component] ".concat(t)),Fu=t=>{let e="[dotLottie-player-component] ".concat(t);console.error(e)},nl=t=>{let e="[dotLottie-player-component] ".concat(t);console.warn(e)},$u,Ou,Ru,Lu,Bu,Ae,nr,je;(function(t){t.Loading="loading",t.Playing="playing",t.Paused="paused",t.Stopped="stopped",t.Frozen="frozen",t.Error="error"})(Ae||(Ae={})),function(t){t.Normal="normal",t.Bounce="bounce"}(nr||(nr={})),function(t){t.Load="load",t.Error="error",t.Ready="ready",t.Play="play",t.Pause="pause",t.Stop="stop",t.Freeze="freeze",t.Loop="loop",t.Complete="complete",t.Rendered="rendered",t.Frame="frame"}(je||(je={}));var Vu="dotlottie-player",qe=class t extends Jr{constructor(){super(),this.mode=nr.Normal,this.autoplay=!1,this.background="transparent",this.controls=!1,this.direction=1,this.hover=!1,this.renderer="svg",this.speed=1,this.currentState=Ae.Loading,this.intermission=1,this.activeAnimationId=null,this._counter=1,this._activeAnimationIndex=0,this._manifest={animations:[]}}static get properties(){return{mode:{type:String},autoplay:{type:Boolean},background:{type:String},controls:{type:Boolean},direction:{type:Number},hover:{type:Boolean},loop:{type:String},renderer:{type:String},speed:{type:Number},src:{type:String},currentState:{type:String},seeker:{type:Object},intermission:{type:Number},activeAnimationId:{type:String}}}_parseLoop(e){let r=parseInt(e,10);return Number.isInteger(r)&&r>0?(this._count=r,this._loop=!0,!0):typeof e=="string"&&["true","false"].includes(e)?(this._loop=e==="true",this._loop):(nl("loop must be a positive integer or a boolean"),!1)}_onVisibilityChange(){document.hidden&&this.currentState===Ae.Playing?this.freeze():this.currentState===Ae.Frozen&&this.play()}_handleSeekChange(e){if(!this._lottie||isNaN(e.target.value))return;let r=e.target.value/100*this._lottie.totalFrames;this.seek(r)}isLottie(e){let r=!1;return e.animations&&e.animations.length?(e.animations.forEach(i=>{this.isLottie(i)||(r=!0)}),r):["v","ip","op","layers","fr","w","h"].every(i=>Object.prototype.hasOwnProperty.call(e,i))}parseSrc(e){if(typeof e=="object")return e;try{return JSON.parse(e)}catch{return new URL(e,window.location.href).toString()}}async _fetchDotLottie(e){return await fetch(e,{method:"GET",mode:"cors",headers:{"Response-Type":"arraybuffer"}}).then(r=>r.arrayBuffer()).then(async r=>{let i=[],n={animations:[],manifest:void 0},s=await new Promise((o,l)=>{y0(new Uint8Array(r),(h,c)=>{h&&l(h),o(c)})}),a;if(s["manifest.json"]){let o=bn(s["manifest.json"]),l=JSON.parse(o);if(!("animations"in l))throw ut("Manifest not found");if(l.animations.length===0)throw ut("No animations listed in the manifest");n.manifest=l;for(let h of l.animations)a=JSON.parse(bn(s["animations/".concat(h.id,".json")])),"assets"in a&&a.assets.map(c=>{if(!c.p||!s["images/".concat(c.p)])return;let u=btoa(bn(s["images/".concat(c.p)],!0));c.p="data:;base64,"+u,c.e=1}),i.push(a);return n.manifest=l,n.animations=i,n}throw ut("No manifest found in file.")}).catch(r=>{throw ut(r)})}async _fetchJsonFile(e){return await fetch(e,{method:"GET",mode:"cors",headers:{"Response-Type":"json"}}).then(r=>r.json()).then(r=>{let i=[],n={animations:[{id:e.substring(e.lastIndexOf("/")+1,e.lastIndexOf(".")),speed:1,loop:"true",direction:1}],description:"",author:"",generator:"dotLottie-player-component",revision:1,version:"1.0.0"},s={animations:[],manifest:void 0};return i.push(r),s.animations=i,s.manifest=n,s}).catch(r=>{throw ut(r)})}async _fetchFileAndLoad(e){var r;let i={animations:[],manifest:void 0};if(i=((r=e.split(/[#?]/)[0].split(".").pop())===null||r===void 0?void 0:r.toLowerCase())==="json"?await this._fetchJsonFile(e):await this._fetchDotLottie(e),!i.animations||!i.manifest||i.animations.length===0)throw this.currentState=Ae.Error,this.dispatchEvent(new CustomEvent(je.Error)),ut(i.animations&&i.animations.length?"Manifest not found":"Animations are empty");if(this._animations=i.animations,this._manifest=i.manifest,this.activeAnimationId){let s=this._manifest.animations.findIndex(a=>a.id===this.activeAnimationId);s!==-1?this._activeAnimationIndex=s:nl("Active animation not found in manifest")}else if(this._manifest&&this._manifest.activeAnimationId){let s=this._manifest.animations.findIndex(a=>a.id===this._manifest.activeAnimationId);s!==-1?this._activeAnimationIndex=s:nl("Active animation not found in manifest")}let n=this._animations[this._activeAnimationIndex];if(n===void 0)throw ut("No animation to load!");return n}_loadManifestOptions(e){if(this._requireAnimationsInTheManifest(),this._manifest.animations[e]===void 0)throw ut("Animation not found in manifest");let{autoplay:r,direction:i,loop:n,playMode:s,speed:a,hover:o,intermission:l}=this._manifest.animations[e];r!==void 0&&(this.autoplay=r),i!==void 0&&(this.direction=i),n!==void 0&&(this.loop=n),s!==void 0&&(this.mode=s),a!==void 0&&(this.speed=a),o!==void 0&&(this.hover=o),l!==void 0&&(this.intermission=l)}_initListeners(){this.dispatchEvent(new CustomEvent(je.Load)),this._lottie.addEventListener("enterFrame",()=>{this.seeker=this._lottie.currentFrame/this._lottie.totalFrames*100,this.dispatchEvent(new CustomEvent(je.Frame,{detail:{frame:this._lottie.currentFrame,seeker:this.seeker}}))}),this._lottie.addEventListener("complete",()=>{if(this.currentState===Ae.Playing){if((!this._loop||this._count&&this._counter>=this._count)&&(this.dispatchEvent(new CustomEvent(je.Complete)),this.mode!==nr.Bounce||this._lottie.currentFrame===0))return;this.mode===nr.Bounce?(this._count&&(this._counter+=.5),setTimeout(()=>{this.dispatchEvent(new CustomEvent(je.Loop)),this.currentState===Ae.Playing&&(this._lottie.setDirection(-1*this._lottie.playDirection),this._lottie.play())},this.intermission)):(this._count&&(this._counter+=1),window.setTimeout(()=>{this.dispatchEvent(new CustomEvent(je.Loop)),this.currentState===Ae.Playing&&(this.direction===-1?(this.seek("99%"),this.play()):(this._lottie.stop(),this.play()))},this.intermission))}else this.dispatchEvent(new CustomEvent(je.Complete))}),this._lottie.addEventListener("DOMLoaded",()=>{this.dispatchEvent(new CustomEvent(je.Ready))}),this._lottie.addEventListener("data_ready",()=>{this.dispatchEvent(new CustomEvent(je.Load))}),this._lottie.addEventListener("data_failed",()=>{this.currentState=Ae.Error,this.dispatchEvent(new CustomEvent(je.Error))}),this.container.addEventListener("mouseenter",()=>{this.hover&&this.currentState!==Ae.Playing&&this.play()}),this.container.addEventListener("mouseleave",()=>{this.hover&&this.currentState===Ae.Playing&&this.stop()})}async load(e,r,i){if(!this.shadowRoot)return;let n={container:this.container,loop:!1,autoplay:!1,renderer:this.renderer,rendererSettings:r||{scaleMode:"noScale",clearCanvas:!1,progressiveLoad:!0,hideOnTransparent:!0}};try{let s=this.parseSrc(e),a=null;if(typeof s=="string")a=await this._fetchFileAndLoad(s);else if(typeof s=="object"&&!this.isLottie(s))throw ut("Load method failing. Object is not a valid Lottie.");if(this._lottie&&this._lottie.destroy(),i!==void 0)for(let[o,l]of Object.entries(i))o==="playMode"?this.mode=l==="normal"?nr.Normal:nr.Bounce:l!==void 0&&(this[o]=l);else if(this._activeAnimationIndex===0||this._manifest.animations[this._activeAnimationIndex].id===this.activeAnimationId||this._manifest.animations[this._activeAnimationIndex].id===this._manifest.activeAnimationId){let o=this._manifest.animations[this._activeAnimationIndex],l=Object.keys(t.properties),h=Array.from(this.getAttributeNames());for(let u of h){let f=this.getAttribute(u);f&&(this[u]=f)}let c=l.filter(u=>!h.includes(u.toLowerCase())&&this._manifest.animations[this._activeAnimationIndex].hasOwnProperty(u));for(let u of c){let f=o[u];f!==void 0&&(u==="playMode"?this.mode=f==="normal"?nr.Normal:nr.Bounce:this[u]=f)}}else this._loadManifestOptions(this._activeAnimationIndex);this._lottie=s0.loadAnimation(Object.assign(Object.assign({},n),{animationData:a!==null?a:s}))}catch(s){return this.currentState=Ae.Error,this.dispatchEvent(new CustomEvent(je.Error)),void console.error(s)}if(!this._lottie)throw this.currentState=Ae.Error,this.dispatchEvent(new CustomEvent(je.Error)),ut("Player failed to initialize.");this._initListeners(),this.setSpeed(this.speed),this.setDirection(this.direction),this.autoplay&&(this.direction===-1&&this.seek("99%"),this.play())}getActiveId(){return this._manifest.animations?this._manifest.animations[this._activeAnimationIndex].id:null}getActiveAnimationIndex(){return this._activeAnimationIndex}animationCount(){return this._animations?this._animations.length:0}getManifest(){return this._manifest}getLottie(){return this._lottie}getVersions(){return{lottieWebVersion:"".concat(Du.dependencies["lottie-web"]),dotLottiePlayerVersion:"".concat(Du.version)}}_requireAnimationsInTheManifest(){if(!this._manifest.animations.length)throw ut("No animations found in manifest.")}_requireAnimationsToBeLoaded(){var e;if(!(!((e=this._animations)===null||e===void 0)&&e.length))throw ut("No animations have been loaded.")}previous(e){this._activeAnimationIndex=(this._activeAnimationIndex-1+this._manifest.animations.length)%this._manifest.animations.length,this.play(this._activeAnimationIndex,e)}next(e){this._activeAnimationIndex=(this._activeAnimationIndex+1)%this._manifest.animations.length,this.play(this._activeAnimationIndex,e)}reset(){this._manifest&&this._manifest.activeAnimationId?this.play(this._manifest.activeAnimationId):this.activeAnimationId?this.play(this.activeAnimationId):this.play(0)}_validateAnimationIndex(e){if(isNaN(e)||e<0||e>=this._manifest.animations.length)throw ut("Animation index ".concat(e," is out of bounds."))}play(e,r){if(this._lottie){if(this._requireAnimationsInTheManifest(),this._requireAnimationsToBeLoaded(),e===void 0)return this._lottie.play(),this.currentState=Ae.Playing,void this.dispatchEvent(new CustomEvent(je.Play));if(this._requireAnimationsToBeLoaded(),this._requireAnimationsInTheManifest(),e!==void 0){if(!this._animations)throw ut("No animations have been loaded.");if(this._requireAnimationsInTheManifest(),typeof e=="string"){let i=this._manifest.animations.findIndex(n=>n.id===e);i!==-1?(this._activeAnimationIndex=i,this.load(this._animations[this._activeAnimationIndex],{playbackOptions:r})):Fu("No animation with the id '".concat(e,"' was found."))}else typeof e=="number"&&(this._validateAnimationIndex(e),this._manifest.animations&&this._manifest.animations[e]?(this._activeAnimationIndex=e,this.load(this._animations[this._activeAnimationIndex],{playbackOptions:r})):Fu("Animation not found at index: ".concat(e)))}}}pause(){this._lottie&&(this._lottie.pause(),this.currentState=Ae.Paused,this.dispatchEvent(new CustomEvent(je.Pause)))}stop(){this._lottie&&(this._counter=0,this._lottie.stop(),this.direction===-1&&this._lottie.goToAndStop(this._lottie.totalFrames,!0),this.currentState=Ae.Stopped,this.dispatchEvent(new CustomEvent(je.Stop)))}seek(e){if(!this._lottie)return;typeof e=="number"&&(e=Math.round(e));let r=/^(\d+)(%?)$/.exec(e.toString());if(!r)return;let i=r[2]==="%"?this._lottie.totalFrames*Number(r[1])/100:Number(r[1]);this.seeker=i,this.currentState===Ae.Playing?this._lottie.goToAndPlay(i,!0):(this._lottie.goToAndStop(i,!0),this._lottie.pause())}snapshot(){let e=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];if(!this.shadowRoot)return;let r=this.shadowRoot.querySelector(".animation svg"),i=new XMLSerializer().serializeToString(r);if(e){let n=document.createElement("a");n.href="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(i),n.download="download_"+this.seeker+".svg",document.body.appendChild(n),n.click(),document.body.removeChild(n)}return i}freeze(){this._lottie&&(this._lottie.pause(),this.currentState=Ae.Frozen,this.dispatchEvent(new CustomEvent(je.Freeze)))}setSpeed(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this._lottie&&this._lottie.setSpeed(e)}setDirection(e){this._lottie&&this._lottie.setDirection(e)}setLooping(e){this._lottie&&(this._lottie.loop=this._parseLoop(e))}isLooping(){return!!this._loop&&this._loop}togglePlay(){return this.currentState===Ae.Playing?this.pause():this.play()}toggleLooping(){let e=!this._loop;this.setLooping(e.toString())}static get styles(){return a0}async firstUpdated(){"IntersectionObserver"in window&&(this._io=new IntersectionObserver(e=>{e[0].isIntersecting?this.currentState===Ae.Frozen&&this.play():this.currentState===Ae.Playing&&this.freeze()}),this._io.observe(this.container)),document.hidden!==void 0&&document.addEventListener("visibilitychange",()=>this._onVisibilityChange()),this.loop?this._parseLoop(this.loop):this.hasAttribute("loop")&&this._parseLoop("true"),this.src&&await this.load(this.src),this.dispatchEvent(new CustomEvent(je.Rendered))}disconnectedCallback(){this._io&&(this._io.disconnect(),this._io=void 0),this._lottie&&this._lottie.destroy(),document.removeEventListener("visibilitychange",()=>this._onVisibilityChange())}renderControls(){let e=this.currentState===Ae.Playing,r=this.currentState===Ae.Paused,i=this.currentState===Ae.Stopped;return Os($u||($u=ki([`
185
+ `]))),ku={},a0=function(t,e,r,i,n){var s=new Worker(ku[e]||(ku[e]=URL.createObjectURL(new Blob([t+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return s.onmessage=function(a){var o=a.data,l=o.$e$;if(l){var h=new Error(l[0]);h.code=l[1],h.stack=l[2],n(h,null)}else n(null,o)},s.postMessage(r,i),s},ye=Uint8Array,et=Uint16Array,Li=Uint32Array,Bi=new ye([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Vi=new ye([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),kn=new ye([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ap=function(t,e){for(var r=new et(31),i=0;i<31;++i)r[i]=e+=1<<t[i-1];var n=new Li(r[30]);for(i=1;i<30;++i)for(var s=r[i];s<r[i+1];++s)n[s]=s-r[i]<<5|i;return[r,n]},op=ap(Bi,2),El=op[0],Ks=op[1];El[28]=258,Ks[258]=28;for(tl=ap(Vi,0),Pl=tl[0],Qs=tl[1],Di=new et(32768),we=0;we<32768;++we)ir=(43690&we)>>>1|(21845&we)<<1,ir=(52428&ir)>>>2|(13107&ir)<<2,ir=(61680&ir)>>>4|(3855&ir)<<4,Di[we]=((65280&ir)>>>8|(255&ir)<<8)>>>1;var ir,tl,Pl,Qs,Di,we;for(xt=function(e,r,i){for(var n=e.length,s=0,a=new et(r);s<n;++s)e[s]&&++a[e[s]-1];var o,l=new et(r);for(s=0;s<r;++s)l[s]=l[s-1]+a[s-1]<<1;if(i){o=new et(1<<r);var h=15-r;for(s=0;s<n;++s)if(e[s])for(var c=s<<4|e[s],u=r-e[s],f=l[e[s]-1]++<<u,p=f|(1<<u)-1;f<=p;++f)o[Di[f]>>>h]=c}else for(o=new et(n),s=0;s<n;++s)e[s]&&(o[s]=Di[l[e[s]-1]++]>>>15-e[s]);return o},Zt=new ye(288),we=0;we<144;++we)Zt[we]=8;var xt,Zt,we;for(we=144;we<256;++we)Zt[we]=9;var we;for(we=256;we<280;++we)Zt[we]=7;var we;for(we=280;we<288;++we)Zt[we]=8;var we;for(Qr=new ye(32),we=0;we<32;++we)Qr[we]=5;var Qr,we,lp=xt(Zt,9,0),hp=xt(Zt,9,1),cp=xt(Qr,5,0),up=xt(Qr,5,1),Vs=function(t){for(var e=t[0],r=1;r<t.length;++r)t[r]>e&&(e=t[r]);return e},Mt=function(t,e,r){var i=e/8|0;return(t[i]|t[i+1]<<8)>>(7&e)&r},Ns=function(t,e){var r=e/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(7&e)},En=function(t){return(t+7)/8|0},Dt=function(t,e,r){(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length);var i=new(t.BYTES_PER_ELEMENT==2?et:t.BYTES_PER_ELEMENT==4?Li:ye)(r-e);return i.set(t.subarray(e,r)),i},S_={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},pp=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],ee=function(t,e,r){var i=new Error(e||pp[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,ee),!r)throw i;return i},Pn=function(t,e,r){var i=t.length;if(!i||r&&r.f&&!r.l)return e||new ye(0);var n=!e||r,s=!r||r.i;r||(r={}),e||(e=new ye(3*i));var a=function(le){var se=e.length;if(le>se){var te=new ye(Math.max(2*se,le));te.set(e),e=te}},o=r.f||0,l=r.p||0,h=r.b||0,c=r.l,u=r.d,f=r.m,p=r.n,m=8*i;do{if(!c){o=Mt(t,l,1);var g=Mt(t,l+1,3);if(l+=3,!g){var d=t[(I=En(l)+4)-4]|t[I-3]<<8,y=I+d;if(y>i){s&&ee(0);break}n&&a(h+d),e.set(t.subarray(I,y),h),r.b=h+=d,r.p=l=8*y,r.f=o;continue}if(g==1)c=hp,u=up,f=9,p=5;else if(g==2){var v=Mt(t,l,31)+257,b=Mt(t,l+10,15)+4,_=v+Mt(t,l+5,31)+1;l+=14;for(var S=new ye(_),T=new ye(19),x=0;x<b;++x)T[kn[x]]=Mt(t,l+3*x,7);l+=3*b;var w=Vs(T),M=(1<<w)-1,k=xt(T,w,1);for(x=0;x<_;){var I,P=k[Mt(t,l,M)];if(l+=15&P,(I=P>>>4)<16)S[x++]=I;else{var A=0,E=0;for(I==16?(E=3+Mt(t,l,3),l+=2,A=S[x-1]):I==17?(E=3+Mt(t,l,7),l+=3):I==18&&(E=11+Mt(t,l,127),l+=7);E--;)S[x++]=A}}var F=S.subarray(0,v),$=S.subarray(v);f=Vs(F),p=Vs($),c=xt(F,f,1),u=xt($,p,1)}else ee(1);if(l>m){s&&ee(0);break}}n&&a(h+131072);for(var D=(1<<f)-1,C=(1<<p)-1,R=l;;R=l){var B=(A=c[Ns(t,l)&D])>>>4;if((l+=15&A)>m){s&&ee(0);break}if(A||ee(2),B<256)e[h++]=B;else{if(B==256){R=l,c=null;break}var U=B-254;if(B>264){var W=Bi[x=B-257];U=Mt(t,l,(1<<W)-1)+El[x],l+=W}var X=u[Ns(t,l)&C],H=X>>>4;if(X||ee(3),l+=15&X,$=Pl[H],H>3&&(W=Vi[H],$+=Ns(t,l)&(1<<W)-1,l+=W),l>m){s&&ee(0);break}n&&a(h+131072);for(var ie=h+U;h<ie;h+=4)e[h]=e[h-$],e[h+1]=e[h+1-$],e[h+2]=e[h+2-$],e[h+3]=e[h+3-$];h=ie}}r.l=c,r.p=R,r.b=h,r.f=o,c&&(o=1,r.m=f,r.d=u,r.n=p)}while(!o);return h==e.length?e:Dt(e,0,h)},Wt=function(t,e,r){r<<=7&e;var i=e/8|0;t[i]|=r,t[i+1]|=r>>>8},Ei=function(t,e,r){r<<=7&e;var i=e/8|0;t[i]|=r,t[i+1]|=r>>>8,t[i+2]|=r>>>16},zs=function(t,e){for(var r=[],i=0;i<t.length;++i)t[i]&&r.push({s:i,f:t[i]});var n=r.length,s=r.slice();if(!n)return[or,0];if(n==1){var a=new ye(r[0].s+1);return a[r[0].s]=1,[a,1]}r.sort(function(S,T){return S.f-T.f}),r.push({s:-1,f:25001});var o=r[0],l=r[1],h=0,c=1,u=2;for(r[0]={s:-1,f:o.f+l.f,l:o,r:l};c!=n-1;)o=r[r[h].f<r[u].f?h++:u++],l=r[h!=c&&r[h].f<r[u].f?h++:u++],r[c++]={s:-1,f:o.f+l.f,l:o,r:l};var f=s[0].s;for(i=1;i<n;++i)s[i].s>f&&(f=s[i].s);var p=new et(f+1),m=ea(r[c-1],p,0);if(m>e){i=0;var g=0,d=m-e,y=1<<d;for(s.sort(function(S,T){return p[T.s]-p[S.s]||S.f-T.f});i<n;++i){var v=s[i].s;if(!(p[v]>e))break;g+=y-(1<<m-p[v]),p[v]=e}for(g>>>=d;g>0;){var b=s[i].s;p[b]<e?g-=1<<e-p[b]++-1:++i}for(;i>=0&&g;--i){var _=s[i].s;p[_]==e&&(--p[_],++g)}m=e}return[new ye(p),m]},ea=function(t,e,r){return t.s==-1?Math.max(ea(t.l,e,r+1),ea(t.r,e,r+1)):e[t.s]=r},hl=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new et(++e),i=0,n=t[0],s=1,a=function(l){r[i++]=l},o=1;o<=e;++o)if(t[o]==n&&o!=e)++s;else{if(!n&&s>2){for(;s>138;s-=138)a(32754);s>2&&(a(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(a(n),--s;s>6;s-=6)a(8304);s>2&&(a(s-3<<5|8208),s=0)}for(;s--;)a(n);s=1,n=t[o]}return[r.subarray(0,i),e]},Pi=function(t,e){for(var r=0,i=0;i<e.length;++i)r+=t[i]*e[i];return r},ta=function(t,e,r){var i=r.length,n=En(e+2);t[n]=255&i,t[n+1]=i>>>8,t[n+2]=255^t[n],t[n+3]=255^t[n+1];for(var s=0;s<i;++s)t[n+s+4]=r[s];return 8*(n+4+i)},cl=function(t,e,r,i,n,s,a,o,l,h,c){Wt(e,c++,r),++n[256];for(var u=zs(n,15),f=u[0],p=u[1],m=zs(s,15),g=m[0],d=m[1],y=hl(f),v=y[0],b=y[1],_=hl(g),S=_[0],T=_[1],x=new et(19),w=0;w<v.length;++w)x[31&v[w]]++;for(w=0;w<S.length;++w)x[31&S[w]]++;for(var M=zs(x,7),k=M[0],I=M[1],P=19;P>4&&!k[kn[P-1]];--P);var A,E,F,$,D=h+5<<3,C=Pi(n,Zt)+Pi(s,Qr)+a,R=Pi(n,f)+Pi(s,g)+a+14+3*P+Pi(x,k)+(2*x[16]+3*x[17]+7*x[18]);if(D<=C&&D<=R)return ta(e,c,t.subarray(l,l+h));if(Wt(e,c,1+(R<C)),c+=2,R<C){A=xt(f,p,0),E=f,F=xt(g,d,0),$=g;var B=xt(k,I,0);for(Wt(e,c,b-257),Wt(e,c+5,T-1),Wt(e,c+10,P-4),c+=14,w=0;w<P;++w)Wt(e,c+3*w,k[kn[w]]);c+=3*P;for(var U=[v,S],W=0;W<2;++W){var X=U[W];for(w=0;w<X.length;++w){var H=31&X[w];Wt(e,c,B[H]),c+=k[H],H>15&&(Wt(e,c,X[w]>>>5&127),c+=X[w]>>>12)}}}else A=lp,E=Zt,F=cp,$=Qr;for(w=0;w<o;++w)if(i[w]>255){H=i[w]>>>18&31,Ei(e,c,A[H+257]),c+=E[H+257],H>7&&(Wt(e,c,i[w]>>>23&31),c+=Bi[H]);var ie=31&i[w];Ei(e,c,F[ie]),c+=$[ie],ie>3&&(Ei(e,c,i[w]>>>5&8191),c+=Vi[ie])}else Ei(e,c,A[i[w]]),c+=E[i[w]];return Ei(e,c,A[256]),c+E[256]},dp=new Li([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),or=new ye(0),fp=function(t,e,r,i,n,s){var a=t.length,o=new ye(i+a+5*(1+Math.ceil(a/7e3))+n),l=o.subarray(i,o.length-n),h=0;if(!e||a<8)for(var c=0;c<=a;c+=65535){var u=c+65535;u>=a&&(l[h>>3]=s),h=ta(l,h+1,t.subarray(c,u))}else{for(var f=dp[e-1],p=f>>>13,m=8191&f,g=(1<<r)-1,d=new et(32768),y=new et(g+1),v=Math.ceil(r/3),b=2*v,_=function(Pe){return(t[Pe]^t[Pe+1]<<v^t[Pe+2]<<b)&g},S=new Li(25e3),T=new et(288),x=new et(32),w=0,M=0,k=(c=0,0),I=0,P=0;c<a;++c){var A=_(c),E=32767&c,F=y[A];if(d[E]=F,y[A]=E,I<=c){var $=a-c;if((w>7e3||k>24576)&&$>423){h=cl(t,l,0,S,T,x,M,k,P,c-P,h),k=w=M=0,P=c;for(var D=0;D<286;++D)T[D]=0;for(D=0;D<30;++D)x[D]=0}var C=2,R=0,B=m,U=E-F&32767;if($>2&&A==_(c-U))for(var W=Math.min(p,$)-1,X=Math.min(32767,c),H=Math.min(258,$);U<=X&&--B&&E!=F;){if(t[c+C]==t[c+C-U]){for(var ie=0;ie<H&&t[c+ie]==t[c+ie-U];++ie);if(ie>C){if(C=ie,R=U,ie>W)break;var le=Math.min(U,ie-2),se=0;for(D=0;D<le;++D){var te=c-U+D+32768&32767,Ee=te-d[te]+32768&32767;Ee>se&&(se=Ee,F=te)}}}U+=(E=F)-(F=d[E])+32768&32767}if(R){S[k++]=268435456|Ks[C]<<18|Qs[R];var me=31&Ks[C],Me=31&Qs[R];M+=Bi[me]+Vi[Me],++T[257+me],++x[Me],I=c+C,++w}else S[k++]=t[c],++T[t[c]]}}h=cl(t,l,s,S,T,x,M,k,P,c-P,h),!s&&7&h&&(h=ta(l,h+1,or))}return Dt(o,0,i+En(h)+n)},mp=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var r=e,i=9;--i;)r=(1&r&&-306674912)^r>>>1;t[e]=r}return t}(),Ni=function(){var t=-1;return{p:function(e){for(var r=t,i=0;i<e.length;++i)r=mp[255&r^e[i]]^r>>>8;t=r},d:function(){return~t}}},Al=function(){var t=1,e=0;return{p:function(r){for(var i=t,n=e,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)n+=i+=r[a];i=(65535&i)+15*(i>>16),n=(65535&n)+15*(n>>16)}t=i,e=n},d:function(){return(255&(t%=65521))<<24|t>>>8<<16|(255&(e%=65521))<<8|e>>>8}}},ti=function(t,e,r,i,n){return fp(t,e.level==null?6:e.level,e.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,r,i,!n)},An=function(t,e){var r={};for(var i in t)r[i]=t[i];for(var i in e)r[i]=e[i];return r},Eu=function(t,e,r){for(var i=t(),n=t.toString(),s=n.slice(n.indexOf("[")+1,n.lastIndexOf("]")).replace(/\s+/g,"").split(","),a=0;a<i.length;++a){var o=i[a],l=s[a];if(typeof o=="function"){e+=";"+l+"=";var h=o.toString();if(o.prototype)if(h.indexOf("[native code]")!=-1){var c=h.indexOf(" ",8)+1;e+=h.slice(c,h.indexOf("(",c))}else for(var u in e+=h,o.prototype)e+=";"+l+".prototype."+u+"="+o.prototype[u].toString();else e+=h}else r[l]=o}return[e,r]},Rs=[],o0=function(t){var e=[];for(var r in t)t[r].buffer&&e.push((t[r]=new t[r].constructor(t[r])).buffer);return e},gp=function(t,e,r,i){var n;if(!Rs[r]){for(var s="",a={},o=t.length-1,l=0;l<o;++l)s=(n=Eu(t[l],s,a))[0],a=n[1];Rs[r]=Eu(t[o],s,a)}var h=An({},Rs[r][1]);return a0(Rs[r][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+e.toString()+"}",r,h,o0(h),i)},zi=function(){return[ye,et,Li,Bi,Vi,kn,El,Pl,hp,up,Di,pp,xt,Vs,Mt,Ns,En,Dt,ee,Pn,Cn,wr,Cl]},ji=function(){return[ye,et,Li,Bi,Vi,kn,Ks,Qs,lp,Zt,cp,Qr,Di,dp,or,xt,Wt,Ei,zs,ea,hl,Pi,ta,cl,En,Dt,fp,ti,aa,wr]},yp=function(){return[Tl,Ml,Se,Ni,mp]},vp=function(){return[Il,wp]},bp=function(){return[Dl,Se,Al]},_p=function(){return[xp]},wr=function(t){return postMessage(t,[t.buffer])},Cl=function(t){return t&&t.size&&new ye(t.size)},Gi=function(t,e,r,i,n,s){var a=gp(r,i,n,function(o,l){a.terminate(),s(o,l)});return a.postMessage([t,e],e.consume?[t.buffer]:[]),function(){a.terminate()}},Ft=function(t){return t.ondata=function(e,r){return postMessage([e,r],[e.buffer])},function(e){return t.push(e.data[0],e.data[1])}},Hi=function(t,e,r,i,n){var s,a=gp(t,i,n,function(o,l){o?(a.terminate(),e.ondata.call(e,o)):(l[1]&&a.terminate(),e.ondata.call(e,o,l[0],l[1]))});a.postMessage(r),e.push=function(o,l){e.ondata||ee(5),s&&e.ondata(ee(4,0,1),null,!!l),a.postMessage([o,s=l],[o.buffer])},e.terminate=function(){a.terminate()}},at=function(t,e){return t[e]|t[e+1]<<8},$e=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},rl=function(t,e){return $e(t,e)+4294967296*$e(t,e+4)},Se=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8},Tl=function(t,e){var r=e.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=e.level<2?4:e.level==9?2:0,t[9]=3,e.mtime!=0&&Se(t,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),r){t[3]=8;for(var i=0;i<=r.length;++i)t[i+10]=r.charCodeAt(i)}},Il=function(t){t[0]==31&&t[1]==139&&t[2]==8||ee(6,"invalid gzip data");var e=t[3],r=10;4&e&&(r+=t[10]|2+(t[11]<<8));for(var i=(e>>3&1)+(e>>4&1);i>0;i-=!t[r++]);return r+(2&e)},wp=function(t){var e=t.length;return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0},Ml=function(t){return 10+(t.filename&&t.filename.length+1||0)},Dl=function(t,e){var r=e.level,i=r==0?0:r<6?1:r==9?3:2;t[0]=120,t[1]=i<<6|(i?32-2*i:1)},xp=function(t){((15&t[0])!=8||t[0]>>>4>7||(t[0]<<8|t[1])%31)&&ee(6,"invalid zlib data"),32&t[1]&&ee(6,"invalid zlib data: preset dictionaries not supported")};function Fl(t,e){return e||typeof t!="function"||(e=t,t={}),this.ondata=e,t}var lr=function(){function t(e,r){r||typeof e!="function"||(r=e,e={}),this.ondata=r,this.o=e||{}}return t.prototype.p=function(e,r){this.ondata(ti(e,this.o,0,0,!r),r)},t.prototype.push=function(e,r){this.ondata||ee(5),this.d&&ee(4),this.d=r,this.p(e,r||!1)},t}(),l0=function(){return function(t,e){Hi([ji,function(){return[Ft,lr]}],this,Fl.call(this,t,e),function(r){var i=new lr(r.data);onmessage=Ft(i)},6)}}();function h0(t,e,r){return r||(r=e,e={}),typeof r!="function"&&ee(7),Gi(t,e,[ji],function(i){return wr(aa(i.data[0],i.data[1]))},0,r)}function aa(t,e){return ti(t,e||{},0,0)}var St=function(){function t(e){this.s={},this.p=new ye(0),this.ondata=e}return t.prototype.e=function(e){this.ondata||ee(5),this.d&&ee(4);var r=this.p.length,i=new ye(r+e.length);i.set(this.p),i.set(e,r),this.p=i},t.prototype.c=function(e){this.d=this.s.i=e||!1;var r=this.s.b,i=Pn(this.p,this.o,this.s);this.ondata(Dt(i,r,this.s.b),this.d),this.o=Dt(i,this.s.b-32768),this.s.b=this.o.length,this.p=Dt(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(e,r){this.e(e),this.c(r)},t}(),Sp=function(){return function(t){this.ondata=t,Hi([zi,function(){return[Ft,St]}],this,0,function(){var e=new St;onmessage=Ft(e)},7)}}();function kp(t,e,r){return r||(r=e,e={}),typeof r!="function"&&ee(7),Gi(t,e,[zi],function(i){return wr(Cn(i.data[0],Cl(i.data[1])))},1,r)}function Cn(t,e){return Pn(t,e)}var Pu=function(){function t(e,r){this.c=Ni(),this.l=0,this.v=1,lr.call(this,e,r)}return t.prototype.push=function(e,r){lr.prototype.push.call(this,e,r)},t.prototype.p=function(e,r){this.c.p(e),this.l+=e.length;var i=ti(e,this.o,this.v&&Ml(this.o),r&&8,!r);this.v&&(Tl(i,this.o),this.v=0),r&&(Se(i,i.length-8,this.c.d()),Se(i,i.length-4,this.l)),this.ondata(i,r)},t}(),k_=function(){return function(t,e){Hi([ji,yp,function(){return[Ft,lr,Pu]}],this,Fl.call(this,t,e),function(r){var i=new Pu(r.data);onmessage=Ft(i)},8)}}();function E_(t,e,r){return r||(r=e,e={}),typeof r!="function"&&ee(7),Gi(t,e,[ji,yp,function(){return[Au]}],function(i){return wr(Au(i.data[0],i.data[1]))},2,r)}function Au(t,e){e||(e={});var r=Ni(),i=t.length;r.p(t);var n=ti(t,e,Ml(e),8),s=n.length;return Tl(n,e),Se(n,s-8,r.d()),Se(n,s-4,i),n}var ul=function(){function t(e){this.v=1,St.call(this,e)}return t.prototype.push=function(e,r){if(St.prototype.e.call(this,e),this.v){var i=this.p.length>3?Il(this.p):4;if(i>=this.p.length&&!r)return;this.p=this.p.subarray(i),this.v=0}r&&(this.p.length<8&&ee(6,"invalid gzip data"),this.p=this.p.subarray(0,-8)),St.prototype.c.call(this,r)},t}(),c0=function(){return function(t){this.ondata=t,Hi([zi,vp,function(){return[Ft,St,ul]}],this,0,function(){var e=new ul;onmessage=Ft(e)},9)}}();function u0(t,e,r){return r||(r=e,e={}),typeof r!="function"&&ee(7),Gi(t,e,[zi,vp,function(){return[pl]}],function(i){return wr(pl(i.data[0]))},3,r)}function pl(t,e){return Pn(t.subarray(Il(t),-8),e||new ye(wp(t)))}var Cu=function(){function t(e,r){this.c=Al(),this.v=1,lr.call(this,e,r)}return t.prototype.push=function(e,r){lr.prototype.push.call(this,e,r)},t.prototype.p=function(e,r){this.c.p(e);var i=ti(e,this.o,this.v&&2,r&&4,!r);this.v&&(Dl(i,this.o),this.v=0),r&&Se(i,i.length-4,this.c.d()),this.ondata(i,r)},t}(),P_=function(){return function(t,e){Hi([ji,bp,function(){return[Ft,lr,Cu]}],this,Fl.call(this,t,e),function(r){var i=new Cu(r.data);onmessage=Ft(i)},10)}}();function A_(t,e,r){return r||(r=e,e={}),typeof r!="function"&&ee(7),Gi(t,e,[ji,bp,function(){return[Tu]}],function(i){return wr(Tu(i.data[0],i.data[1]))},4,r)}function Tu(t,e){e||(e={});var r=Al();r.p(t);var i=ti(t,e,2,4);return Dl(i,e),Se(i,i.length-4,r.d()),i}var dl=function(){function t(e){this.v=1,St.call(this,e)}return t.prototype.push=function(e,r){if(St.prototype.e.call(this,e),this.v){if(this.p.length<2&&!r)return;this.p=this.p.subarray(2),this.v=0}r&&(this.p.length<4&&ee(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),St.prototype.c.call(this,r)},t}(),p0=function(){return function(t){this.ondata=t,Hi([zi,_p,function(){return[Ft,St,dl]}],this,0,function(){var e=new dl;onmessage=Ft(e)},11)}}();function d0(t,e,r){return r||(r=e,e={}),typeof r!="function"&&ee(7),Gi(t,e,[zi,_p,function(){return[fl]}],function(i){return wr(fl(i.data[0],Cl(i.data[1])))},5,r)}function fl(t,e){return Pn((xp(t),t.subarray(2,-4)),e)}var f0=function(){function t(e){this.G=ul,this.I=St,this.Z=dl,this.ondata=e}return t.prototype.push=function(e,r){if(this.ondata||ee(5),this.s)this.s.push(e,r);else{if(this.p&&this.p.length){var i=new ye(this.p.length+e.length);i.set(this.p),i.set(e,this.p.length)}else this.p=e;if(this.p.length>2){var n=this,s=function(){n.ondata.apply(n,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(s):(15&this.p[0])!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(s):new this.Z(s),this.s.push(this.p,r),this.p=null}}},t}(),C_=function(){function t(e){this.G=c0,this.I=Sp,this.Z=p0,this.ondata=e}return t.prototype.push=function(e,r){f0.prototype.push.call(this,e,r)},t}();function T_(t,e,r){return r||(r=e,e={}),typeof r!="function"&&ee(7),t[0]==31&&t[1]==139&&t[2]==8?u0(t,e,r):(15&t[0])!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?kp(t,e,r):d0(t,e,r)}function I_(t,e){return t[0]==31&&t[1]==139&&t[2]==8?pl(t,e):(15&t[0])!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?Cn(t,e):fl(t,e)}var $l=function(t,e,r,i){for(var n in t){var s=t[n],a=e+n,o=i;Array.isArray(s)&&(o=An(i,s[1]),s=s[0]),s instanceof ye?r[a]=[s,o]:(r[a+="/"]=[new ye(0),o],$l(s,a,r,i))}},Iu=typeof TextEncoder<"u"&&new TextEncoder,ml=typeof TextDecoder<"u"&&new TextDecoder,Ep=0;try{ml.decode(or,{stream:!0}),Ep=1}catch(t){}var Pp=function(t){for(var e="",r=0;;){var i=t[r++],n=(i>127)+(i>223)+(i>239);if(r+n>t.length)return[e,Dt(t,r-1)];n?n==3?(i=((15&i)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,e+=String.fromCharCode(55296|i>>10,56320|1023&i)):e+=1&n?String.fromCharCode((31&i)<<6|63&t[r++]):String.fromCharCode((15&i)<<12|(63&t[r++])<<6|63&t[r++]):e+=String.fromCharCode(i)}},M_=function(){function t(e){this.ondata=e,Ep?this.t=new TextDecoder:this.p=or}return t.prototype.push=function(e,r){if(this.ondata||ee(5),r=!!r,this.t)return this.ondata(this.t.decode(e,{stream:!0}),r),void(r&&(this.t.decode().length&&ee(8),this.t=null));this.p||ee(4);var i=new ye(this.p.length+e.length);i.set(this.p),i.set(e,this.p.length);var n=Pp(i),s=n[0],a=n[1];r?(a.length&&ee(8),this.p=null):this.p=a,this.ondata(s,r)},t}(),D_=function(){function t(e){this.ondata=e}return t.prototype.push=function(e,r){this.ondata||ee(5),this.d&&ee(4),this.ondata(ei(e),this.d=r||!1)},t}();function ei(t,e){if(e){for(var r=new ye(t.length),i=0;i<t.length;++i)r[i]=t.charCodeAt(i);return r}if(Iu)return Iu.encode(t);var n=t.length,s=new ye(t.length+(t.length>>1)),a=0,o=function(c){s[a++]=c};for(i=0;i<n;++i){if(a+5>s.length){var l=new ye(a+8+(n-i<<1));l.set(s),s=l}var h=t.charCodeAt(i);h<128||e?o(h):h<2048?(o(192|h>>6),o(128|63&h)):h>55295&&h<57344?(o(240|(h=65536+(1047552&h)|1023&t.charCodeAt(++i))>>18),o(128|h>>12&63),o(128|h>>6&63),o(128|63&h)):(o(224|h>>12),o(128|h>>6&63),o(128|63&h))}return Dt(s,0,a)}function bn(t,e){if(e){for(var r="",i=0;i<t.length;i+=16384)r+=String.fromCharCode.apply(null,t.subarray(i,i+16384));return r}if(ml)return ml.decode(t);var n=Pp(t),s=n[0];return n[1].length&&ee(8),s}var Ap=function(t){return t==1?3:t<6?2:t==9?1:0},Cp=function(t,e){return e+30+at(t,e+26)+at(t,e+28)},Tp=function(t,e,r){var i=at(t,e+28),n=bn(t.subarray(e+46,e+46+i),!(2048&at(t,e+8))),s=e+46+i,a=$e(t,e+20),o=r&&a==4294967295?Ip(t,s):[a,$e(t,e+24),$e(t,e+42)],l=o[0],h=o[1],c=o[2];return[at(t,e+10),l,h,n,s+at(t,e+30)+at(t,e+32),c]},Ip=function(t,e){for(;at(t,e)!=1;e+=4+at(t,e+2));return[rl(t,e+12),rl(t,e+4),rl(t,e+20)]},_r=function(t){var e=0;if(t)for(var r in t){var i=t[r].length;i>65535&&ee(9),e+=i+4}return e},Fi=function(t,e,r,i,n,s,a,o){var l=i.length,h=r.extra,c=o&&o.length,u=_r(h);Se(t,e,a!=null?33639248:67324752),e+=4,a!=null&&(t[e++]=20,t[e++]=r.os),t[e]=20,e+=2,t[e++]=r.flag<<1|(s<0&&8),t[e++]=n&&8,t[e++]=255&r.compression,t[e++]=r.compression>>8;var f=new Date(r.mtime==null?Date.now():r.mtime),p=f.getFullYear()-1980;if((p<0||p>119)&&ee(10),Se(t,e,p<<25|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>>1),e+=4,s!=-1&&(Se(t,e,r.crc),Se(t,e+4,s<0?-s-2:s),Se(t,e+8,r.size)),Se(t,e+12,l),Se(t,e+14,u),e+=16,a!=null&&(Se(t,e,c),Se(t,e+6,r.attrs),Se(t,e+10,a),e+=14),t.set(i,e),e+=l,u)for(var m in h){var g=h[m],d=g.length;Se(t,e,+m),Se(t,e+2,d),t.set(g,e+4),e+=4+d}return c&&(t.set(o,e),e+=c),e},Ol=function(t,e,r,i,n){Se(t,e,101010256),Se(t,e+8,r),Se(t,e+10,r),Se(t,e+12,i),Se(t,e+16,n)},ra=function(){function t(e){this.filename=e,this.c=Ni(),this.size=0,this.compression=0}return t.prototype.process=function(e,r){this.ondata(null,e,r)},t.prototype.push=function(e,r){this.ondata||ee(5),this.c.p(e),this.size+=e.length,r&&(this.crc=this.c.d()),this.process(e,r||!1)},t}(),F_=function(){function t(e,r){var i=this;r||(r={}),ra.call(this,e),this.d=new lr(r,function(n,s){i.ondata(null,n,s)}),this.compression=8,this.flag=Ap(r.level)}return t.prototype.process=function(e,r){try{this.d.push(e,r)}catch(i){this.ondata(i,null,r)}},t.prototype.push=function(e,r){ra.prototype.push.call(this,e,r)},t}(),$_=function(){function t(e,r){var i=this;r||(r={}),ra.call(this,e),this.d=new l0(r,function(n,s,a){i.ondata(n,s,a)}),this.compression=8,this.flag=Ap(r.level),this.terminate=this.d.terminate}return t.prototype.process=function(e,r){this.d.push(e,r)},t.prototype.push=function(e,r){ra.prototype.push.call(this,e,r)},t}(),O_=function(){function t(e){this.ondata=e,this.u=[],this.d=1}return t.prototype.add=function(e){var r=this;if(this.ondata||ee(5),2&this.d)this.ondata(ee(4+8*(1&this.d),0,1),null,!1);else{var i=ei(e.filename),n=i.length,s=e.comment,a=s&&ei(s),o=n!=e.filename.length||a&&s.length!=a.length,l=n+_r(e.extra)+30;n>65535&&this.ondata(ee(11,0,1),null,!1);var h=new ye(l);Fi(h,0,e,i,o,-1);var c=[h],u=function(){for(var d=0,y=c;d<y.length;d++){var v=y[d];r.ondata(null,v,!1)}c=[]},f=this.d;this.d=0;var p=this.u.length,m=An(e,{f:i,u:o,o:a,t:function(){e.terminate&&e.terminate()},r:function(){if(u(),f){var d=r.u[p+1];d?d.r():r.d=1}f=1}}),g=0;e.ondata=function(d,y,v){if(d)r.ondata(d,y,v),r.terminate();else if(g+=y.length,c.push(y),v){var b=new ye(16);Se(b,0,134695760),Se(b,4,e.crc),Se(b,8,g),Se(b,12,e.size),c.push(b),m.c=g,m.b=l+g+16,m.crc=e.crc,m.size=e.size,f&&m.r(),f=1}else f&&u()},this.u.push(m)}},t.prototype.end=function(){var e=this;2&this.d?this.ondata(ee(4+8*(1&this.d),0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&e.d&&(e.u.splice(-1,1),e.e())},t:function(){}}),this.d=3)},t.prototype.e=function(){for(var e=0,r=0,i=0,n=0,s=this.u;n<s.length;n++)i+=46+(h=s[n]).f.length+_r(h.extra)+(h.o?h.o.length:0);for(var a=new ye(i+22),o=0,l=this.u;o<l.length;o++){var h=l[o];Fi(a,e,h,h.f,h.u,-h.c-2,r,h.o),e+=46+h.f.length+_r(h.extra)+(h.o?h.o.length:0),r+=h.b}Ol(a,e,this.u.length,i,r),this.ondata(null,a,!0),this.d=2},t.prototype.terminate=function(){for(var e=0,r=this.u;e<r.length;e++)r[e].t();this.d=2},t}();function R_(t,e,r){r||(r=e,e={}),typeof r!="function"&&ee(7);var i={};$l(t,"",i,e);var n=Object.keys(i),s=n.length,a=0,o=0,l=s,h=new Array(s),c=[],u=function(){for(var d=0;d<c.length;++d)c[d]()},f=function(d,y){ia(function(){r(d,y)})};ia(function(){f=r});var p=function(){var d=new ye(o+22),y=a,v=o-a;o=0;for(var b=0;b<l;++b){var _=h[b];try{var S=_.c.length;Fi(d,o,_,_.f,_.u,S);var T=30+_.f.length+_r(_.extra),x=o+T;d.set(_.c,x),Fi(d,a,_,_.f,_.u,S,o,_.m),a+=16+T+(_.m?_.m.length:0),o=x+S}catch(w){return f(w,null)}}Ol(d,a,h.length,v,y),f(null,d)};s||p();for(var m=function(d){var y=n[d],v=i[y],b=v[0],_=v[1],S=Ni(),T=b.length;S.p(b);var x=ei(y),w=x.length,M=_.comment,k=M&&ei(M),I=k&&k.length,P=_r(_.extra),A=_.level==0?0:8,E=function(F,$){if(F)u(),f(F,null);else{var D=$.length;h[d]=An(_,{size:T,crc:S.d(),c:$,f:x,m:k,u:w!=y.length||k&&M.length!=I,compression:A}),a+=30+w+P+D,o+=76+2*(w+P)+(I||0)+D,--s||p()}};if(w>65535&&E(ee(11,0,1),null),A)if(T<16e4)try{E(null,aa(b,_))}catch(F){E(F,null)}else c.push(h0(b,_,E));else E(null,b)},g=0;g<l;++g)m(g);return u}function L_(t,e){e||(e={});var r={},i=[];$l(t,"",r,e);var n=0,s=0;for(var a in r){var o=r[a],l=o[0],h=o[1],c=h.level==0?0:8,u=(x=ei(a)).length,f=h.comment,p=f&&ei(f),m=p&&p.length,g=_r(h.extra);u>65535&&ee(11);var d=c?aa(l,h):l,y=d.length,v=Ni();v.p(l),i.push(An(h,{size:l.length,crc:v.d(),c:d,f:x,m:p,u:u!=a.length||p&&f.length!=m,o:n,compression:c})),n+=30+u+g+y,s+=76+2*(u+g)+(m||0)+y}for(var b=new ye(s+22),_=n,S=s-n,T=0;T<i.length;++T){var x=i[T];Fi(b,x.o,x,x.f,x.u,x.c.length);var w=30+x.f.length+_r(x.extra);b.set(x.c,x.o+w),Fi(b,n,x,x.f,x.u,x.c.length,x.o,x.m),n+=16+w+(x.m?x.m.length:0)}return Ol(b,n,i.length,S,_),b}var m0=function(){function t(){}return t.prototype.push=function(e,r){this.ondata(null,e,r)},t.compression=0,t}(),B_=function(){function t(){var e=this;this.i=new St(function(r,i){e.ondata(null,r,i)})}return t.prototype.push=function(e,r){try{this.i.push(e,r)}catch(i){this.ondata(i,null,r)}},t.compression=8,t}(),V_=function(){function t(e,r){var i=this;r<32e4?this.i=new St(function(n,s){i.ondata(null,n,s)}):(this.i=new Sp(function(n,s,a){i.ondata(n,s,a)}),this.terminate=this.i.terminate)}return t.prototype.push=function(e,r){this.i.terminate&&(e=Dt(e,0)),this.i.push(e,r)},t.compression=8,t}(),N_=function(){function t(e){this.onfile=e,this.k=[],this.o={0:m0},this.p=or}return t.prototype.push=function(e,r){var i=this;if(this.onfile||ee(5),this.p||ee(4),this.c>0){var n=Math.min(this.c,e.length),s=e.subarray(0,n);if(this.c-=n,this.d?this.d.push(s,!this.c):this.k[0].push(s),(e=e.subarray(n)).length)return this.push(e,r)}else{var a=0,o=0,l=void 0,h=void 0;this.p.length?e.length?((h=new ye(this.p.length+e.length)).set(this.p),h.set(e,this.p.length)):h=this.p:h=e;for(var c=h.length,u=this.c,f=u&&this.d,p=function(){var d,y=$e(h,o);if(y==67324752){a=1,l=o,m.d=null,m.c=0;var v=at(h,o+6),b=at(h,o+8),_=2048&v,S=8&v,T=at(h,o+26),x=at(h,o+28);if(c>o+30+T+x){var w=[];m.k.unshift(w),a=2;var M,k=$e(h,o+18),I=$e(h,o+22),P=bn(h.subarray(o+30,o+=30+T),!_);k==4294967295?(d=S?[-2]:Ip(h,o),k=d[0],I=d[1]):S&&(k=-1),o+=x,m.c=k;var A={name:P,compression:b,start:function(){if(A.ondata||ee(5),k){var E=i.o[b];E||A.ondata(ee(14,"unknown compression type "+b,1),null,!1),(M=k<0?new E(P):new E(P,k,I)).ondata=function(C,R,B){A.ondata(C,R,B)};for(var F=0,$=w;F<$.length;F++){var D=$[F];M.push(D,!1)}i.k[0]==w&&i.c?i.d=M:M.push(or,!0)}else A.ondata(null,or,!0)},terminate:function(){M&&M.terminate&&M.terminate()}};k>=0&&(A.size=k,A.originalSize=I),m.onfile(A)}return"break"}if(u){if(y==134695760)return l=o+=12+(u==-2&&8),a=3,m.c=0,"break";if(y==33639248)return l=o-=4,a=3,m.c=0,"break"}},m=this;o<c-4&&p()!=="break";++o);if(this.p=or,u<0){var g=a?h.subarray(0,l-12-(u==-2&&8)-($e(h,l-16)==134695760&&4)):h.subarray(0,o);f?f.push(g,!!a):this.k[+(a==2)].push(g)}if(2&a)return this.push(h.subarray(o),r);this.p=h.subarray(o)}r&&(this.c&&ee(13),this.p=null)},t.prototype.register=function(e){this.o[e.compression]=e},t}(),ia=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(t){t()};function g0(t,e,r){r||(r=e,e={}),typeof r!="function"&&ee(7);var i=[],n=function(){for(var d=0;d<i.length;++d)i[d]()},s={},a=function(d,y){ia(function(){r(d,y)})};ia(function(){a=r});for(var o=t.length-22;$e(t,o)!=101010256;--o)if(!o||t.length-o>65558)return a(ee(13,0,1),null),n;var l=at(t,o+8);if(l){var h=l,c=$e(t,o+16),u=c==4294967295||h==65535;if(u){var f=$e(t,o-12);(u=$e(t,f)==101075792)&&(h=l=$e(t,f+32),c=$e(t,f+48))}for(var p=e&&e.filter,m=function(d){var y=Tp(t,c,u),v=y[0],b=y[1],_=y[2],S=y[3],T=y[4],x=y[5],w=Cp(t,x);c=T;var M=function(I,P){I?(n(),a(I,null)):(P&&(s[S]=P),--l||a(null,s))};if(!p||p({name:S,size:b,originalSize:_,compression:v}))if(v)if(v==8){var k=t.subarray(w,w+b);if(b<32e4)try{M(null,Cn(k,new ye(_)))}catch(I){M(I,null)}else i.push(kp(k,{size:_},M))}else M(ee(14,"unknown compression type "+v,1),null);else M(null,Dt(t,w,w+b));else M(null,null)},g=0;g<h;++g)m()}else a(null,{});return n}function z_(t,e){for(var r={},i=t.length-22;$e(t,i)!=101010256;--i)(!i||t.length-i>65558)&&ee(13);var n=at(t,i+8);if(!n)return{};var s=$e(t,i+16),a=s==4294967295||n==65535;if(a){var o=$e(t,i-12);(a=$e(t,o)==101075792)&&(n=$e(t,o+32),s=$e(t,o+48))}for(var l=e&&e.filter,h=0;h<n;++h){var c=Tp(t,s,a),u=c[0],f=c[1],p=c[2],m=c[3],g=c[4],d=c[5],y=Cp(t,d);s=g,l&&!l({name:m,size:f,originalSize:p,compression:u})||(u?u==8?r[m]=Cn(t.subarray(y,y+f),new ye(p)):ee(14,"unknown compression type "+u):r[m]=Dt(t,y,y+f))}return r}var y0="@dotlottie/player-component",v0="1.4.2",b0="dotlottie animation player web component.",_0="dist/dotlottie-player.js",w0="dist/dotlottie-player.esm.js",x0="dist/dotlottie-player.esm.d.ts",S0="https://dotlottie.com/players",k0="https://github.com/dotlottie/player-component.git",E0="https://github.com/dotlottie/player-component/issues",P0="Jawish Hameed <jawish@lottiefiles.com>",A0="MIT",C0={build:"yarn build-dotlottie",buildtsup:"tsup","build-with-coverage":"CODE_COVERAGE=true yarn build-dotlottie","build-dotlottie":"yarn cleanup && rollup -c","build:types":"tsc --declaration",dev:"yarn cleanup && rollup -c --watch",lint:"eslint","lint:fix":"eslint --fix",cleanup:"shx rm -rf dist && shx mkdir dist",serve:"node ./cypress/pages/server.js -p 8000 &","start-cypress":"npx cypress run && npx nyc report --reporter=text-summary","run-tests":"yarn build-with-coverage && yarn serve && yarn start-cypress","postrun-tests":"kill $(lsof -t -i:8000)"},T0={"@rollup/plugin-json":"^6.0.0",fflate:"^0.7.3",lit:"^2.4.1","lottie-web":"^5.10.0",tsup:"^6.1.3"},I0={"@babel/core":"^7.11.0","@babel/plugin-proposal-class-properties":"^7.10.4","@babel/plugin-proposal-decorators":"^7.10.5","@babel/preset-env":"^7.11.0","@babel/preset-typescript":"^7.10.4","@changesets/cli":"^2.24.4","@cypress/code-coverage":"^3.9.12","@istanbuljs/nyc-config-typescript":"^1.0.2","@rollup/plugin-babel":"^5.1.0","@rollup/plugin-commonjs":"^14.0.0","@rollup/plugin-node-resolve":"^8.4.0","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","babel-plugin-istanbul":"^6.1.1",changesets:"^1.0.2",cypress:"^9.4.1",eslint:"^6.6.0","eslint-config-prettier":"^6.5.0","eslint-plugin-prettier":"^3.1.1",fastify:"^3.27.1","fastify-static":"^4.5.0",lerna:"^4.0.0","parcel-bundler":"^1.12.4",prettier:"1.18.2",rollup:"^2.23.0","rollup-plugin-alias":"^2.2.0","rollup-plugin-copy":"^3.3.0","rollup-plugin-filesize":"^9.0.2","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-serve":"^1.0.3","rollup-plugin-terser":"^6.1.0","rollup-plugin-typescript2":"^0.27.1","rollup-plugin-visualizer":"^4.0.4",shx:"^0.3.3","source-map-support":"^0.5.21","ts-node":"^10.5.0",typescript:"^3.7.5"},M0=["dist"],D0=["dotlottie","animation","web component","component","lit-element","player"],F0=["> 3%"],$0={access:"public"},O0={extends:"@istanbuljs/nyc-config-typescript",all:!0},Mu={name:y0,version:v0,description:b0,main:_0,module:w0,types:x0,homepage:S0,repository:k0,bugs:E0,author:P0,license:A0,scripts:C0,dependencies:T0,devDependencies:I0,files:M0,keywords:D0,browserslist:F0,publishConfig:$0,nyc:O0},ut=t=>new Error("[dotLottie-player-component] ".concat(t)),Du=t=>{let e="[dotLottie-player-component] ".concat(t);console.error(e)},il=t=>{let e="[dotLottie-player-component] ".concat(t);console.warn(e)},Fu,$u,Ou,Ru,Lu,Ae,nr,je;(function(t){t.Loading="loading",t.Playing="playing",t.Paused="paused",t.Stopped="stopped",t.Frozen="frozen",t.Error="error"})(Ae||(Ae={})),function(t){t.Normal="normal",t.Bounce="bounce"}(nr||(nr={})),function(t){t.Load="load",t.Error="error",t.Ready="ready",t.Play="play",t.Pause="pause",t.Stop="stop",t.Freeze="freeze",t.Loop="loop",t.Complete="complete",t.Rendered="rendered",t.Frame="frame"}(je||(je={}));var Bu="dotlottie-player",qe=class t extends Jr{constructor(){super(),this.mode=nr.Normal,this.autoplay=!1,this.background="transparent",this.controls=!1,this.direction=1,this.hover=!1,this.renderer="svg",this.speed=1,this.currentState=Ae.Loading,this.intermission=1,this.activeAnimationId=null,this._counter=1,this._activeAnimationIndex=0,this._manifest={animations:[]}}static get properties(){return{mode:{type:String},autoplay:{type:Boolean},background:{type:String},controls:{type:Boolean},direction:{type:Number},hover:{type:Boolean},loop:{type:String},renderer:{type:String},speed:{type:Number},src:{type:String},currentState:{type:String},seeker:{type:Object},intermission:{type:Number},activeAnimationId:{type:String}}}_parseLoop(e){let r=parseInt(e,10);return Number.isInteger(r)&&r>0?(this._count=r,this._loop=!0,!0):typeof e=="string"&&["true","false"].includes(e)?(this._loop=e==="true",this._loop):(il("loop must be a positive integer or a boolean"),!1)}_onVisibilityChange(){document.hidden&&this.currentState===Ae.Playing?this.freeze():this.currentState===Ae.Frozen&&this.play()}_handleSeekChange(e){if(!this._lottie||isNaN(e.target.value))return;let r=e.target.value/100*this._lottie.totalFrames;this.seek(r)}isLottie(e){let r=!1;return e.animations&&e.animations.length?(e.animations.forEach(i=>{this.isLottie(i)||(r=!0)}),r):["v","ip","op","layers","fr","w","h"].every(i=>Object.prototype.hasOwnProperty.call(e,i))}parseSrc(e){if(typeof e=="object")return e;try{return JSON.parse(e)}catch{return new URL(e,window.location.href).toString()}}async _fetchDotLottie(e){return await fetch(e,{method:"GET",mode:"cors",headers:{"Response-Type":"arraybuffer"}}).then(r=>r.arrayBuffer()).then(async r=>{let i=[],n={animations:[],manifest:void 0},s=await new Promise((o,l)=>{g0(new Uint8Array(r),(h,c)=>{h&&l(h),o(c)})}),a;if(s["manifest.json"]){let o=bn(s["manifest.json"]),l=JSON.parse(o);if(!("animations"in l))throw ut("Manifest not found");if(l.animations.length===0)throw ut("No animations listed in the manifest");n.manifest=l;for(let h of l.animations)a=JSON.parse(bn(s["animations/".concat(h.id,".json")])),"assets"in a&&a.assets.map(c=>{if(!c.p||!s["images/".concat(c.p)])return;let u=btoa(bn(s["images/".concat(c.p)],!0));c.p="data:;base64,"+u,c.e=1}),i.push(a);return n.manifest=l,n.animations=i,n}throw ut("No manifest found in file.")}).catch(r=>{throw ut(r)})}async _fetchJsonFile(e){return await fetch(e,{method:"GET",mode:"cors",headers:{"Response-Type":"json"}}).then(r=>r.json()).then(r=>{let i=[],n={animations:[{id:e.substring(e.lastIndexOf("/")+1,e.lastIndexOf(".")),speed:1,loop:"true",direction:1}],description:"",author:"",generator:"dotLottie-player-component",revision:1,version:"1.0.0"},s={animations:[],manifest:void 0};return i.push(r),s.animations=i,s.manifest=n,s}).catch(r=>{throw ut(r)})}async _fetchFileAndLoad(e){var r;let i={animations:[],manifest:void 0};if(i=((r=e.split(/[#?]/)[0].split(".").pop())===null||r===void 0?void 0:r.toLowerCase())==="json"?await this._fetchJsonFile(e):await this._fetchDotLottie(e),!i.animations||!i.manifest||i.animations.length===0)throw this.currentState=Ae.Error,this.dispatchEvent(new CustomEvent(je.Error)),ut(i.animations&&i.animations.length?"Manifest not found":"Animations are empty");if(this._animations=i.animations,this._manifest=i.manifest,this.activeAnimationId){let s=this._manifest.animations.findIndex(a=>a.id===this.activeAnimationId);s!==-1?this._activeAnimationIndex=s:il("Active animation not found in manifest")}else if(this._manifest&&this._manifest.activeAnimationId){let s=this._manifest.animations.findIndex(a=>a.id===this._manifest.activeAnimationId);s!==-1?this._activeAnimationIndex=s:il("Active animation not found in manifest")}let n=this._animations[this._activeAnimationIndex];if(n===void 0)throw ut("No animation to load!");return n}_loadManifestOptions(e){if(this._requireAnimationsInTheManifest(),this._manifest.animations[e]===void 0)throw ut("Animation not found in manifest");let{autoplay:r,direction:i,loop:n,playMode:s,speed:a,hover:o,intermission:l}=this._manifest.animations[e];r!==void 0&&(this.autoplay=r),i!==void 0&&(this.direction=i),n!==void 0&&(this.loop=n),s!==void 0&&(this.mode=s),a!==void 0&&(this.speed=a),o!==void 0&&(this.hover=o),l!==void 0&&(this.intermission=l)}_initListeners(){this.dispatchEvent(new CustomEvent(je.Load)),this._lottie.addEventListener("enterFrame",()=>{this.seeker=this._lottie.currentFrame/this._lottie.totalFrames*100,this.dispatchEvent(new CustomEvent(je.Frame,{detail:{frame:this._lottie.currentFrame,seeker:this.seeker}}))}),this._lottie.addEventListener("complete",()=>{if(this.currentState===Ae.Playing){if((!this._loop||this._count&&this._counter>=this._count)&&(this.dispatchEvent(new CustomEvent(je.Complete)),this.mode!==nr.Bounce||this._lottie.currentFrame===0))return;this.mode===nr.Bounce?(this._count&&(this._counter+=.5),setTimeout(()=>{this.dispatchEvent(new CustomEvent(je.Loop)),this.currentState===Ae.Playing&&(this._lottie.setDirection(-1*this._lottie.playDirection),this._lottie.play())},this.intermission)):(this._count&&(this._counter+=1),window.setTimeout(()=>{this.dispatchEvent(new CustomEvent(je.Loop)),this.currentState===Ae.Playing&&(this.direction===-1?(this.seek("99%"),this.play()):(this._lottie.stop(),this.play()))},this.intermission))}else this.dispatchEvent(new CustomEvent(je.Complete))}),this._lottie.addEventListener("DOMLoaded",()=>{this.dispatchEvent(new CustomEvent(je.Ready))}),this._lottie.addEventListener("data_ready",()=>{this.dispatchEvent(new CustomEvent(je.Load))}),this._lottie.addEventListener("data_failed",()=>{this.currentState=Ae.Error,this.dispatchEvent(new CustomEvent(je.Error))}),this.container.addEventListener("mouseenter",()=>{this.hover&&this.currentState!==Ae.Playing&&this.play()}),this.container.addEventListener("mouseleave",()=>{this.hover&&this.currentState===Ae.Playing&&this.stop()})}async load(e,r,i){if(!this.shadowRoot)return;let n={container:this.container,loop:!1,autoplay:!1,renderer:this.renderer,rendererSettings:r||{scaleMode:"noScale",clearCanvas:!1,progressiveLoad:!0,hideOnTransparent:!0}};try{let s=this.parseSrc(e),a=null;if(typeof s=="string")a=await this._fetchFileAndLoad(s);else if(typeof s=="object"&&!this.isLottie(s))throw ut("Load method failing. Object is not a valid Lottie.");if(this._lottie&&this._lottie.destroy(),i!==void 0)for(let[o,l]of Object.entries(i))o==="playMode"?this.mode=l==="normal"?nr.Normal:nr.Bounce:l!==void 0&&(this[o]=l);else if(this._activeAnimationIndex===0||this._manifest.animations[this._activeAnimationIndex].id===this.activeAnimationId||this._manifest.animations[this._activeAnimationIndex].id===this._manifest.activeAnimationId){let o=this._manifest.animations[this._activeAnimationIndex],l=Object.keys(t.properties),h=Array.from(this.getAttributeNames());for(let u of h){let f=this.getAttribute(u);f&&(this[u]=f)}let c=l.filter(u=>!h.includes(u.toLowerCase())&&this._manifest.animations[this._activeAnimationIndex].hasOwnProperty(u));for(let u of c){let f=o[u];f!==void 0&&(u==="playMode"?this.mode=f==="normal"?nr.Normal:nr.Bounce:this[u]=f)}}else this._loadManifestOptions(this._activeAnimationIndex);this._lottie=n0.loadAnimation(Object.assign(Object.assign({},n),{animationData:a!==null?a:s}))}catch(s){return this.currentState=Ae.Error,this.dispatchEvent(new CustomEvent(je.Error)),void console.error(s)}if(!this._lottie)throw this.currentState=Ae.Error,this.dispatchEvent(new CustomEvent(je.Error)),ut("Player failed to initialize.");this._initListeners(),this.setSpeed(this.speed),this.setDirection(this.direction),this.autoplay&&(this.direction===-1&&this.seek("99%"),this.play())}getActiveId(){return this._manifest.animations?this._manifest.animations[this._activeAnimationIndex].id:null}getActiveAnimationIndex(){return this._activeAnimationIndex}animationCount(){return this._animations?this._animations.length:0}getManifest(){return this._manifest}getLottie(){return this._lottie}getVersions(){return{lottieWebVersion:"".concat(Mu.dependencies["lottie-web"]),dotLottiePlayerVersion:"".concat(Mu.version)}}_requireAnimationsInTheManifest(){if(!this._manifest.animations.length)throw ut("No animations found in manifest.")}_requireAnimationsToBeLoaded(){var e;if(!(!((e=this._animations)===null||e===void 0)&&e.length))throw ut("No animations have been loaded.")}previous(e){this._activeAnimationIndex=(this._activeAnimationIndex-1+this._manifest.animations.length)%this._manifest.animations.length,this.play(this._activeAnimationIndex,e)}next(e){this._activeAnimationIndex=(this._activeAnimationIndex+1)%this._manifest.animations.length,this.play(this._activeAnimationIndex,e)}reset(){this._manifest&&this._manifest.activeAnimationId?this.play(this._manifest.activeAnimationId):this.activeAnimationId?this.play(this.activeAnimationId):this.play(0)}_validateAnimationIndex(e){if(isNaN(e)||e<0||e>=this._manifest.animations.length)throw ut("Animation index ".concat(e," is out of bounds."))}play(e,r){if(this._lottie){if(this._requireAnimationsInTheManifest(),this._requireAnimationsToBeLoaded(),e===void 0)return this._lottie.play(),this.currentState=Ae.Playing,void this.dispatchEvent(new CustomEvent(je.Play));if(this._requireAnimationsToBeLoaded(),this._requireAnimationsInTheManifest(),e!==void 0){if(!this._animations)throw ut("No animations have been loaded.");if(this._requireAnimationsInTheManifest(),typeof e=="string"){let i=this._manifest.animations.findIndex(n=>n.id===e);i!==-1?(this._activeAnimationIndex=i,this.load(this._animations[this._activeAnimationIndex],{playbackOptions:r})):Du("No animation with the id '".concat(e,"' was found."))}else typeof e=="number"&&(this._validateAnimationIndex(e),this._manifest.animations&&this._manifest.animations[e]?(this._activeAnimationIndex=e,this.load(this._animations[this._activeAnimationIndex],{playbackOptions:r})):Du("Animation not found at index: ".concat(e)))}}}pause(){this._lottie&&(this._lottie.pause(),this.currentState=Ae.Paused,this.dispatchEvent(new CustomEvent(je.Pause)))}stop(){this._lottie&&(this._counter=0,this._lottie.stop(),this.direction===-1&&this._lottie.goToAndStop(this._lottie.totalFrames,!0),this.currentState=Ae.Stopped,this.dispatchEvent(new CustomEvent(je.Stop)))}seek(e){if(!this._lottie)return;typeof e=="number"&&(e=Math.round(e));let r=/^(\d+)(%?)$/.exec(e.toString());if(!r)return;let i=r[2]==="%"?this._lottie.totalFrames*Number(r[1])/100:Number(r[1]);this.seeker=i,this.currentState===Ae.Playing?this._lottie.goToAndPlay(i,!0):(this._lottie.goToAndStop(i,!0),this._lottie.pause())}snapshot(){let e=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];if(!this.shadowRoot)return;let r=this.shadowRoot.querySelector(".animation svg"),i=new XMLSerializer().serializeToString(r);if(e){let n=document.createElement("a");n.href="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(i),n.download="download_"+this.seeker+".svg",document.body.appendChild(n),n.click(),document.body.removeChild(n)}return i}freeze(){this._lottie&&(this._lottie.pause(),this.currentState=Ae.Frozen,this.dispatchEvent(new CustomEvent(je.Freeze)))}setSpeed(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this._lottie&&this._lottie.setSpeed(e)}setDirection(e){this._lottie&&this._lottie.setDirection(e)}setLooping(e){this._lottie&&(this._lottie.loop=this._parseLoop(e))}isLooping(){return!!this._loop&&this._loop}togglePlay(){return this.currentState===Ae.Playing?this.pause():this.play()}toggleLooping(){let e=!this._loop;this.setLooping(e.toString())}static get styles(){return s0}async firstUpdated(){"IntersectionObserver"in window&&(this._io=new IntersectionObserver(e=>{e[0].isIntersecting?this.currentState===Ae.Frozen&&this.play():this.currentState===Ae.Playing&&this.freeze()}),this._io.observe(this.container)),document.hidden!==void 0&&document.addEventListener("visibilitychange",()=>this._onVisibilityChange()),this.loop?this._parseLoop(this.loop):this.hasAttribute("loop")&&this._parseLoop("true"),this.src&&await this.load(this.src),this.dispatchEvent(new CustomEvent(je.Rendered))}disconnectedCallback(){this._io&&(this._io.disconnect(),this._io=void 0),this._lottie&&this._lottie.destroy(),document.removeEventListener("visibilitychange",()=>this._onVisibilityChange())}renderControls(){let e=this.currentState===Ae.Playing,r=this.currentState===Ae.Paused,i=this.currentState===Ae.Stopped;return Os(Fu||(Fu=ki([`
186
186
  <div id="lottie-controls" aria-label="lottie-animation-controls" class="toolbar">
187
187
  <button
188
188
  id="lottie-play-button"
@@ -239,60 +239,57 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
239
239
  </svg>
240
240
  </button>
241
241
  </div>
242
- `])),this.togglePlay,e||r?"active":"",Os(e?Ou||(Ou=ki([`
242
+ `])),this.togglePlay,e||r?"active":"",Os(e?$u||($u=ki([`
243
243
  <svg width="24" height="24" aria-hidden="true" focusable="false">
244
244
  <path d="M14.016 5.016H18v13.969h-3.984V5.016zM6 18.984V5.015h3.984v13.969H6z" />
245
245
  </svg>
246
- `])):Ru||(Ru=ki([`
246
+ `])):Ou||(Ou=ki([`
247
247
  <svg width="24" height="24" aria-hidden="true" focusable="false">
248
248
  <path d="M8.016 5.016L18.985 12 8.016 18.984V5.015z" />
249
249
  </svg>
250
- `]))),this.stop,i?"active":"",this.seeker,this._handleSeekChange,()=>{this._prevState=this.currentState,this.freeze()},()=>{this._prevState===Ae.Playing&&this.play(),this.seek(this._lottie.currentFrame)},this.seeker,this.toggleLooping,this._loop?"active":"")}render(){let e=this.controls?"main controls":"main",r=this.controls?"animation controls":"animation";return Os(Lu||(Lu=ki([`
250
+ `]))),this.stop,i?"active":"",this.seeker,this._handleSeekChange,()=>{this._prevState=this.currentState,this.freeze()},()=>{this._prevState===Ae.Playing&&this.play(),this.seek(this._lottie.currentFrame)},this.seeker,this.toggleLooping,this._loop?"active":"")}render(){let e=this.controls?"main controls":"main",r=this.controls?"animation controls":"animation";return Os(Ru||(Ru=ki([`
251
251
  <div id="animation-container" class=`,` lang="en" role="img">
252
252
  <div id="animation" class=`,' style="background:',`;">
253
253
  `,`
254
254
  </div>
255
255
  `,`
256
256
  </div>
257
- `])),e,r,this.background,this.currentState===Ae.Error?Os(Bu||(Bu=ki([' <div class="error">\u26A0\uFE0F</div> ']))):void 0,this.controls?this.renderControls():void 0)}};nt([e0(".animation")],qe.prototype,"container",void 0),nt([st()],qe.prototype,"mode",void 0),nt([st({type:Boolean})],qe.prototype,"autoplay",void 0),nt([st({type:String})],qe.prototype,"background",void 0),nt([st({type:Boolean})],qe.prototype,"controls",void 0),nt([st({type:Number})],qe.prototype,"direction",void 0),nt([st({type:Boolean})],qe.prototype,"hover",void 0),nt([st({type:String})],qe.prototype,"loop",void 0),nt([st({type:String})],qe.prototype,"renderer",void 0),nt([st({type:Number})],qe.prototype,"speed",void 0),nt([st({type:String})],qe.prototype,"src",void 0),nt([st({type:String})],qe.prototype,"currentState",void 0),nt([st()],qe.prototype,"seeker",void 0),nt([st()],qe.prototype,"intermission",void 0),nt([st({type:String})],qe.prototype,"activeAnimationId",void 0),customElements.get(Vu)||Kg(Vu)(qe);var oa,Tn=class extends Fe(ke){constructor(){super();de(this,"render",()=>me`
257
+ `])),e,r,this.background,this.currentState===Ae.Error?Os(Lu||(Lu=ki([' <div class="error">\u26A0\uFE0F</div> ']))):void 0,this.controls?this.renderControls():void 0)}};nt([Qg(".animation")],qe.prototype,"container",void 0),nt([st()],qe.prototype,"mode",void 0),nt([st({type:Boolean})],qe.prototype,"autoplay",void 0),nt([st({type:String})],qe.prototype,"background",void 0),nt([st({type:Boolean})],qe.prototype,"controls",void 0),nt([st({type:Number})],qe.prototype,"direction",void 0),nt([st({type:Boolean})],qe.prototype,"hover",void 0),nt([st({type:String})],qe.prototype,"loop",void 0),nt([st({type:String})],qe.prototype,"renderer",void 0),nt([st({type:Number})],qe.prototype,"speed",void 0),nt([st({type:String})],qe.prototype,"src",void 0),nt([st({type:String})],qe.prototype,"currentState",void 0),nt([st()],qe.prototype,"seeker",void 0),nt([st()],qe.prototype,"intermission",void 0),nt([st({type:String})],qe.prototype,"activeAnimationId",void 0),customElements.get(Bu)||Xg(Bu)(qe);var Tn=class extends Fe(ke){constructor(){super();de(this,"render",()=>ge`
258
258
  <button class="leading-0 relative inline-block h-14 w-14 rounded-full shadow-xl">
259
- <!-- -->
260
- ${L(this,oa).call(this)}
261
- </button>
262
- `);W(this,oa,()=>me`
263
- <div class="h-full w-full rounded-full bg-slate-800 text-sm text-white transition-transform hover:scale-105 active:scale-90">
264
- <div class="${this.dialogShown?"invisible opacity-0":"visible opacity-100"} absolute bottom-0 left-0 right-0 top-0 inline-flex items-center justify-center transition-opacity">
265
- ${this.bubbleImageURL?me`
266
- <!-- -->
267
- <img class="h-full w-full rounded-full" src="${this.bubbleImageURL}" />
268
- `:me`
269
- <!-- -->
270
- <dotlottie-player autoplay loop mode="normal" src="https://assets5.lottiefiles.com/dotlotties/dlf10_hISLmVmo2x.lottie"></dotlottie-player>
271
- `}
272
- </div>
273
- <div class="${this.dialogShown?"visible opacity-100":"invisible opacity-0"} absolute bottom-0 left-0 right-0 top-0 inline-flex items-center justify-center transition-opacity">
274
- <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
275
- <path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5" />
276
- </svg>
259
+ <div class="${this.bubbleImageURL?"":"bg-slate-800"} h-full w-full rounded-full text-sm text-white transition-transform hover:scale-105 active:scale-90">
260
+ <div class="${this.dialogShown?"invisible opacity-0":"visible opacity-100"} absolute bottom-0 left-0 right-0 top-0 inline-flex items-center justify-center transition-opacity">
261
+ ${this.bubbleImageURL?ge`
262
+ <!-- -->
263
+ <img class="h-full w-full rounded-full" src="${this.bubbleImageURL}" />
264
+ `:ge`
265
+ <!-- -->
266
+ <dotlottie-player autoplay loop mode="normal" src="https://assets5.lottiefiles.com/dotlotties/dlf10_hISLmVmo2x.lottie"></dotlottie-player>
267
+ `}
268
+ </div>
269
+ <div class="${this.dialogShown?"visible opacity-100":"invisible opacity-0"} absolute bottom-0 left-0 right-0 top-0 inline-flex items-center justify-center transition-opacity">
270
+ <svg class="h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
271
+ <path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5" />
272
+ </svg>
273
+ </div>
277
274
  </div>
278
- </div>
279
- `);this.dialogShown=!1,this.bubbleImageURL=""}};oa=new WeakMap,de(Tn,"styles",Ao`
275
+ </button>
276
+ `);this.dialogShown=!1,this.bubbleImageURL=""}};de(Tn,"styles",Po`
280
277
  :host {
281
278
  line-height: 0;
282
279
  }
283
- `),de(Tn,"properties",{dialogShown:{type:Boolean,attribute:"dialog-shown"},bubbleImageURL:{type:String,attribute:"bubble-image-url"}});customElements.define("mw-bubble",Tn);function L0(t){return!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&t.keyCode==13}var ha,Dp,ca,Fp,ua,$p,pa,Op,da,Rp,la=class extends Fe(ke){constructor(){super();W(this,ha);W(this,ca);W(this,ua);W(this,pa);W(this,da);de(this,"render",()=>me`
284
- <form class="flex items-center space-x-4 border-t bg-white px-4" @submit="${pe(this,ua,$p)}">
280
+ `),de(Tn,"properties",{dialogShown:{type:Boolean,attribute:"dialog-shown"},bubbleImageURL:{type:String,attribute:"bubble-image-url"}});customElements.define("mw-bubble",Tn);function R0(t){return!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&t.keyCode==13}var la,Mp,ha,Dp,ca,Fp,ua,$p,pa,Op,oa=class extends Fe(ke){constructor(){super();Z(this,la);Z(this,ha);Z(this,ca);Z(this,ua);Z(this,pa);de(this,"render",()=>ge`
281
+ <form class="flex items-center space-x-4 border-t bg-white px-4" @submit="${pe(this,ca,Fp)}">
285
282
  <!-- text input -->
286
- <textarea name="input" @keydown="${pe(this,ca,Fp)}" class="my-2 block w-full flex-1 resize-none rounded py-2 text-[16px] text-gray-800 outline-none transition-colors" placeholder="${this.config.input.placeholder}" autofocus></textarea>
283
+ <textarea name="input" @keydown="${pe(this,ha,Dp)}" class="my-2 block w-full flex-1 resize-none rounded py-2 text-[16px] text-gray-800 outline-none transition-colors" placeholder="${this.config.input.placeholder}" autofocus></textarea>
287
284
 
288
285
  <!-- send/cancel button -->
289
286
  <div class="py-2">
290
287
  <button type="submit" class="select-none">
291
- ${this.disabled?me`
288
+ ${this.disabled?ge`
292
289
  <svg class="hover:bg-[${this.config.color}]/80 inline-block h-8 w-8 rounded-full bg-[${this.config.color}] fill-current p-2 text-white transition-colors" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
293
290
  <path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z" />
294
291
  </svg>
295
- `:me`
292
+ `:ge`
296
293
  <svg class="hover:bg-[${this.config.color}]/80 inline-block h-8 w-8 rounded-full bg-[${this.config.color}] fill-current p-2 text-white transition-colors" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
297
294
  <path d="m4.01 6.03 7.51 3.22-7.52-1 .01-2.22m7.5 8.72L4 17.97v-2.22l7.51-1M2.01 3 2 10l15 2-15 2 .01 7L23 12 2.01 3z" />
298
295
  </svg>
@@ -300,7 +297,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
300
297
  </button>
301
298
  </div>
302
299
  </form>
303
- `);this.disabled=!1,this.config}};ha=new WeakSet,Dp=function(){return this.shadowRoot?.querySelector("button")},ca=new WeakSet,Fp=function(r){L0(r)&&(r.preventDefault(),this.disabled||L(this,ha,Dp)?.click())},ua=new WeakSet,$p=function(r){if(r.preventDefault(),this.disabled){pe(this,da,Rp).call(this);return}let i=r.target?.input,n=i.value;n&&(i.value="",pe(this,pa,Op).call(this,n))},pa=new WeakSet,Op=function(r){let i={value:r};this.dispatchEvent(new CustomEvent("mw-submit",{detail:i}))},da=new WeakSet,Rp=function(){let r={};this.dispatchEvent(new CustomEvent("mw-cancel",{detail:r}))},de(la,"properties",{disabled:{type:Boolean},config:{type:Object}});customElements.define("mw-chat-input",la);var In=class extends yr{constructor(e){if(super(e),this.et=De,e.type!==bi.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===De||e==null)return this.vt=void 0,this.et=e;if(e===_t)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;let r=[e];return r.raw=r,this.vt={_$litType$:this.constructor.resultType,strings:r,values:[]}}};In.directiveName="unsafeHTML",In.resultType=1;var qi=_i(In);var fa=class extends Fe(ke){constructor(){super(),this.side="assistant",this.config}render(){switch(this.side){case"user":return me`
300
+ `);this.disabled=!1,this.config}};la=new WeakSet,Mp=function(){return this.shadowRoot?.querySelector("button")},ha=new WeakSet,Dp=function(r){R0(r)&&(r.preventDefault(),this.disabled||L(this,la,Mp)?.click())},ca=new WeakSet,Fp=function(r){if(r.preventDefault(),this.disabled){pe(this,pa,Op).call(this);return}let i=r.target?.input,n=i.value;n&&(i.value="",pe(this,ua,$p).call(this,n))},ua=new WeakSet,$p=function(r){let i={value:r};this.dispatchEvent(new CustomEvent("mw-submit",{detail:i}))},pa=new WeakSet,Op=function(){let r={};this.dispatchEvent(new CustomEvent("mw-cancel",{detail:r}))},de(oa,"properties",{disabled:{type:Boolean},config:{type:Object}});customElements.define("mw-chat-input",oa);var In=class extends yr{constructor(e){if(super(e),this.et=De,e.type!==bi.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===De||e==null)return this.vt=void 0,this.et=e;if(e===_t)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;let r=[e];return r.raw=r,this.vt={_$litType$:this.constructor.resultType,strings:r,values:[]}}};In.directiveName="unsafeHTML",In.resultType=1;var qi=_i(In);var da=class extends Fe(ke){constructor(){super(),this.side="assistant",this.config}render(){switch(this.side){case"user":return ge`
304
301
  <div class="ml-20 flex justify-end">
305
302
  <div class="max-w-full">
306
303
  <!--
@@ -311,14 +308,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
311
308
  </div>
312
309
  </div>
313
310
  </div>
314
- `;case"assistant":return me`
311
+ `;case"assistant":return ge`
315
312
  <div class="mr-8 flex justify-start">
316
313
  <div class="flex max-w-full space-x-2">
317
314
  <!--
318
315
  mt-[9px] because the message is 50px tall, the icon is 32px tall, we want to center it
319
316
  -->
320
317
  <div class="mt-[9px] h-8 w-8 flex-shrink-0 flex-grow-0 overflow-hidden rounded-full">
321
- ${this.config.logoSvg?qi(this.config.logoSvg):me`<img class="h-full w-full bg-white object-cover" src="${this.config.logoUrl||""}" alt="Logo" />`}
318
+ ${this.config.logoSvg?qi(this.config.logoSvg):ge`<img class="h-full w-full bg-white object-cover" src="${this.config.logoUrl||""}" alt="Logo" />`}
322
319
  </div>
323
320
 
324
321
  <!--
@@ -329,11 +326,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
329
326
  </div>
330
327
  </div>
331
328
  </div>
332
- `;default:throw new Error(`unknown side: ${this.side}`)}}};de(fa,"properties",{side:{type:String},config:{type:Object}});customElements.define("mw-chat-message",fa);var ga,Lp,ya,Bp,ma=class extends Fe(ke){constructor(){super();W(this,ga);W(this,ya);de(this,"render",()=>me`
329
+ `;default:throw new Error(`unknown side: ${this.side}`)}}};de(da,"properties",{side:{type:String},config:{type:Object}});customElements.define("mw-chat-message",da);var ma,Rp,ga,Lp,fa=class extends Fe(ke){constructor(){super();Z(this,ma);Z(this,ga);de(this,"render",()=>ge`
333
330
  <div class="flex items-center justify-between space-x-4 p-4">
334
331
  <mw-pulse-dot class="contents" position="bottom-right" color="green-500">
335
332
  <div class="h-10 w-10 overflow-hidden rounded">
336
- ${this.config.logoSvg?qi(this.config.logoSvg):me`<img class="h-full w-full bg-white object-cover" src="${this.config.logoUrl||""}" alt="Logo" />`}
333
+ ${this.config.logoSvg?qi(this.config.logoSvg):ge`<img class="h-full w-full bg-white object-cover" src="${this.config.logoUrl||""}" alt="Logo" />`}
337
334
  </div>
338
335
  </mw-pulse-dot>
339
336
 
@@ -345,19 +342,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
345
342
 
346
343
  <div class="flex-grow"></div>
347
344
 
348
- <button @click=${pe(this,ya,Bp)} class="${this.messages>0?"inline-flex":"hidden"} items-center justify-center rounded-lg bg-gray-100 p-3 text-gray-400 transition-colors hover:bg-gray-50">
345
+ <button @click=${pe(this,ga,Lp)} class="${this.messages>0?"inline-flex":"hidden"} items-center justify-center rounded-lg bg-gray-100 p-3 text-gray-400 transition-colors hover:bg-gray-50">
349
346
  <!-- -->
350
347
  <p class="inline-flex h-6 w-6 items-center justify-center">
351
348
  <span class="text-[11px] font-medium leading-[15px]">NEW<br />CHAT</span>
352
349
  </p>
353
350
  </button>
354
351
 
355
- <button @click=${pe(this,ga,Lp)} class="inline-flex items-center justify-center rounded-lg bg-gray-100 p-3 text-gray-400 transition-colors hover:bg-gray-50 sm:hidden">
352
+ <button @click=${pe(this,ma,Rp)} class="inline-flex items-center justify-center rounded-lg bg-gray-100 p-3 text-gray-400 transition-colors hover:bg-gray-50 sm:hidden">
356
353
  <!-- -->
357
354
  <span class="inline-block h-6 w-6 leading-6">✕</span>
358
355
  </button>
359
356
  </div>
360
- `);this.config,this.messages=0}};ga=new WeakSet,Lp=function(){let r={};this.dispatchEvent(new CustomEvent("mw-close",{detail:r}))},ya=new WeakSet,Bp=function(){let r={};this.dispatchEvent(new CustomEvent("mw-delete-history",{detail:r}))},de(ma,"properties",{config:{type:Object},messages:{type:Number}});customElements.define("mw-header",ma);var Ll=class extends Fe(ke){constructor(){super(...arguments);de(this,"render",()=>me`
357
+ `);this.config,this.messages=0}};ma=new WeakSet,Rp=function(){let r={};this.dispatchEvent(new CustomEvent("mw-close",{detail:r}))},ga=new WeakSet,Lp=function(){let r={};this.dispatchEvent(new CustomEvent("mw-delete-history",{detail:r}))},de(fa,"properties",{config:{type:Object},messages:{type:Number}});customElements.define("mw-header",fa);var Rl=class extends Fe(ke){constructor(){super(...arguments);de(this,"render",()=>ge`
361
358
  <svg class="leading-0 inline-block h-full w-full" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" xml:space="preserve">
362
359
  <circle fill="currentFill" stroke="none" cx="27" cy="50" r="6">
363
360
  <animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.1" />
@@ -369,7 +366,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
369
366
  <animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.3" />
370
367
  </circle>
371
368
  </svg>
372
- `)}};customElements.define("mw-loading",Ll);var Bl=class extends Fe(ke){constructor(){super(...arguments);de(this,"render",()=>me`
369
+ `)}};customElements.define("mw-loading",Rl);var Ll=class extends Fe(ke){constructor(){super(...arguments);de(this,"render",()=>ge`
373
370
  <p class="flex items-center justify-center space-x-1 text-xs text-gray-400">
374
371
  <span class="pointer-events-none">Powered by</span>
375
372
  <a class="inline-flex items-center space-x-1 text-gray-600 underline" href="https://molin.ai/?utm_source=molin-shop-ai&utm_medium=widget&utm_campaign=poweredby" target="_blank">
@@ -386,14 +383,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
386
383
  <span>Molin AI</span>
387
384
  </a>
388
385
  </p>
389
- `)}};customElements.define("mw-powered-by",Bl);var hr,xr,Mn=class{constructor(e){W(this,hr,[]);W(this,xr,new AbortController);e.addController(this),this.hostConnected()}deferCleanup(e){L(this,hr).push(e)}get signal(){return L(this,xr).signal}hostConnected(){fe(this,hr,L(this,hr)||[]),fe(this,xr,L(this,xr)||new AbortController)}hostDisconnected(){for(;L(this,hr).length>0;)L(this,hr).pop()?.();fe(this,hr,[]),L(this,xr).abort(),fe(this,xr,new AbortController)}};hr=new WeakMap,xr=new WeakMap;var Dn,va=class{constructor(e,r,i){W(this,Dn,void 0);de(this,"delay");de(this,"callback");this.delay=r,this.callback=i,e.addController(this)}hostConnected(){fe(this,Dn,setTimeout(()=>this.callback(),this.delay))}hostDisconnected(){clearTimeout(L(this,Dn))}};Dn=new WeakMap;var _a,Yt,Fn,$n,wa,Vp,xa,Np,Sa,zp,ka,jp,Ea,Gp,ba=class extends Fe(ke){constructor(){super();W(this,wa);W(this,xa);W(this,Sa);W(this,ka);W(this,Ea);W(this,_a,void 0);W(this,Yt,!1);W(this,Fn,!1);W(this,$n,new Mn(this));de(this,"_handleInteraction",()=>{L(this,Fn)||(fe(this,Fn,!0),window.removeEventListener("click",this._handleInteraction),window.removeEventListener("keydown",this._handleInteraction),pe(this,Ea,Gp).call(this))});this.position={},this.aiName="Molin AI",this.aiColor="#601feb",this.dialogShown=!1,this.popupDelayMs=5e3,this.popupText="Hello there. How can we help?"}render(){return me`
386
+ `)}};customElements.define("mw-powered-by",Ll);var hr,xr,Mn=class{constructor(e){Z(this,hr,[]);Z(this,xr,new AbortController);e.addController(this),this.hostConnected()}deferCleanup(e){L(this,hr).push(e)}get signal(){return L(this,xr).signal}hostConnected(){fe(this,hr,L(this,hr)||[]),fe(this,xr,L(this,xr)||new AbortController)}hostDisconnected(){for(;L(this,hr).length>0;)L(this,hr).pop()?.();fe(this,hr,[]),L(this,xr).abort(),fe(this,xr,new AbortController)}};hr=new WeakMap,xr=new WeakMap;var Dn,ya=class{constructor(e,r,i){Z(this,Dn,void 0);de(this,"delay");de(this,"callback");this.delay=r,this.callback=i,e.addController(this)}hostConnected(){fe(this,Dn,setTimeout(()=>this.callback(),this.delay))}hostDisconnected(){clearTimeout(L(this,Dn))}};Dn=new WeakMap;var ba,Yt,Fn,$n,_a,Bp,wa,Vp,xa,Np,Sa,zp,ka,jp,va=class extends Fe(ke){constructor(){super();Z(this,_a);Z(this,wa);Z(this,xa);Z(this,Sa);Z(this,ka);Z(this,ba,void 0);Z(this,Yt,!1);Z(this,Fn,!1);Z(this,$n,new Mn(this));de(this,"_handleInteraction",()=>{L(this,Fn)||(fe(this,Fn,!0),window.removeEventListener("click",this._handleInteraction),window.removeEventListener("keydown",this._handleInteraction),pe(this,ka,jp).call(this))});this.position={},this.aiName="Molin AI",this.aiColor="#601feb",this.dialogShown=!1,this.popupDelayMs=5e3,this.popupText="Hello there. How can we help?"}render(){return ge`
390
387
  <!-- shadow backdrop -->
391
388
  <div class="${L(this,Yt)?"visible opacity-100":"invisible opacity-0"} fixed inset-0 z-[2147483647] bg-black bg-opacity-50 transition-[opacity,visibility] sm:hidden"></div>
392
389
 
393
390
  <!-- popup itself -->
394
- <div class="${L(this,Yt)?"visible opacity-100 translate-y-0":"invisible opacity-0 translate-y-3"} ${Object.keys(this.position).join(" ")} group fixed bottom-0 left-0 right-0 z-[2147483647] overflow-visible rounded-t-2xl bg-white p-4 text-left font-sans text-[16px] leading-normal text-gray-800 shadow-2xl transition-all sm:left-auto sm:top-auto sm:h-auto sm:w-[300px] sm:rounded-2xl" @click="${pe(this,Sa,zp)}">
391
+ <div class="${L(this,Yt)?"visible opacity-100 translate-y-0":"invisible opacity-0 translate-y-3"} ${Object.keys(this.position).join(" ")} group fixed bottom-0 left-0 right-0 z-[2147483647] overflow-visible rounded-t-2xl bg-white p-4 text-left font-sans text-[16px] leading-normal text-gray-800 shadow-2xl transition-all sm:left-auto sm:top-auto sm:h-auto sm:w-[300px] sm:rounded-2xl" @click="${pe(this,xa,Np)}">
395
392
  <!-- close button -->
396
- <button class="absolute right-2 inline-flex h-6 w-6 items-center justify-center rounded-full bg-gray-300 bg-opacity-50 text-center font-sans shadow-none duration-300 ease-in-out hover:scale-105 hover:text-gray-700 focus:outline-none sm:-top-2 sm:opacity-0 sm:shadow sm:transition-opacity sm:group-hover:opacity-100" @click="${pe(this,xa,Np)}" aria-label="Close dialog">×</button>
393
+ <button class="absolute right-2 inline-flex h-6 w-6 items-center justify-center rounded-full bg-gray-300 bg-opacity-50 text-center font-sans shadow-none duration-300 ease-in-out hover:scale-105 hover:text-gray-700 focus:outline-none sm:-top-2 sm:opacity-0 sm:shadow sm:transition-opacity sm:group-hover:opacity-100" @click="${pe(this,wa,Vp)}" aria-label="Close dialog">×</button>
397
394
 
398
395
  <!-- popup text -->
399
396
  <div class="mb-8 text-center sm:mb-0">
@@ -404,41 +401,41 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
404
401
 
405
402
  <mw-powered-by class="sm:hidden"></mw-powered-by>
406
403
  </div>
407
- `}updated(r){let i=r.has("dialogShown"),n=this.dialogShown;i&&n===!0&&L(this,Yt)&&(fe(this,Yt,!1),this.requestUpdate())}firstUpdated(){pe(this,ka,jp).call(this)}};_a=new WeakMap,Yt=new WeakMap,Fn=new WeakMap,$n=new WeakMap,wa=new WeakSet,Vp=function(){new Audio("https://molin.ai/sounds/widget/popup.aac").play().then(()=>{console.log("Audio played successfully.")}).catch(i=>{console.error("Error playing audio:",i)}),fe(this,Yt,!0),this.requestUpdate()},xa=new WeakSet,Np=function(r){r.preventDefault(),r.stopPropagation(),fe(this,Yt,!1),sessionStorage.setItem("_molin_popup","user_dismissed"),this.requestUpdate()},Sa=new WeakSet,zp=function(){fe(this,Yt,!1),this.dispatchEvent(new CustomEvent("popup-chat-open",{})),this.requestUpdate()},ka=new WeakSet,jp=function(){window.addEventListener("click",this._handleInteraction,{signal:L(this,$n).signal}),window.addEventListener("keydown",this._handleInteraction,{signal:L(this,$n).signal})},Ea=new WeakSet,Gp=function(){fe(this,_a,new va(this,this.popupDelayMs,()=>{let r=!this.dialogShown,i=sessionStorage.getItem("_molin_popup")!=="user_dismissed";r&&i&&pe(this,wa,Vp).call(this)}))},de(ba,"properties",{position:{type:Object},aiName:{type:String,attribute:"ai-name"},aiColor:{type:String,attribute:"ai-color"},dialogShown:{type:Boolean,attribute:"dialog-shown"},popupDelayMs:{type:Number,attribute:"popup-delay-ms"},popupText:{type:String,attribute:"popup-text"}});customElements.define("mw-popup",ba);var Aa,Hp,Pa=class extends Fe(ke){constructor(){super();W(this,Aa);this.color="sky-500",this.animated=!1,this.position="top-right"}render(){return me`
404
+ `}updated(r){let i=r.has("dialogShown"),n=this.dialogShown;i&&n===!0&&L(this,Yt)&&(fe(this,Yt,!1),this.requestUpdate())}firstUpdated(){pe(this,Sa,zp).call(this)}};ba=new WeakMap,Yt=new WeakMap,Fn=new WeakMap,$n=new WeakMap,_a=new WeakSet,Bp=function(){new Audio("https://molin.ai/sounds/widget/popup.aac").play().then(()=>{console.log("Audio played successfully.")}).catch(i=>{console.error("Error playing audio:",i)}),fe(this,Yt,!0),this.requestUpdate()},wa=new WeakSet,Vp=function(r){r.preventDefault(),r.stopPropagation(),fe(this,Yt,!1),sessionStorage.setItem("_molin_popup","user_dismissed"),this.requestUpdate()},xa=new WeakSet,Np=function(){fe(this,Yt,!1),this.dispatchEvent(new CustomEvent("popup-chat-open",{})),this.requestUpdate()},Sa=new WeakSet,zp=function(){window.addEventListener("click",this._handleInteraction,{signal:L(this,$n).signal}),window.addEventListener("keydown",this._handleInteraction,{signal:L(this,$n).signal})},ka=new WeakSet,jp=function(){fe(this,ba,new ya(this,this.popupDelayMs,()=>{let r=!this.dialogShown,i=sessionStorage.getItem("_molin_popup")!=="user_dismissed";r&&i&&pe(this,_a,Bp).call(this)}))},de(va,"properties",{position:{type:Object},aiName:{type:String,attribute:"ai-name"},aiColor:{type:String,attribute:"ai-color"},dialogShown:{type:Boolean,attribute:"dialog-shown"},popupDelayMs:{type:Number,attribute:"popup-delay-ms"},popupText:{type:String,attribute:"popup-text"}});customElements.define("mw-popup",va);var Pa,Gp,Ea=class extends Fe(ke){constructor(){super();Z(this,Pa);this.color="sky-500",this.animated=!1,this.position="top-right"}render(){return ge`
408
405
  <span class="relative inline-flex">
409
406
  <slot></slot>
410
- <span class="${L(this,Aa,Hp)} pointer-events-none absolute flex h-3 w-3">
407
+ <span class="${L(this,Pa,Gp)} pointer-events-none absolute flex h-3 w-3">
411
408
  <span class="bg-${this.color} absolute inline-flex h-3 w-3 animate-ping rounded-full opacity-75"></span>
412
409
  <span class="bg-${this.color} relative inline-flex h-3 w-3 rounded-full"></span>
413
410
  </span>
414
411
  </span>
415
- `}};Aa=new WeakSet,Hp=function(){switch(this.position){case"top-left":return"top-0 left-0 -mt-1 -ml-1";case"top-right":return"top-0 right-0 -mt-1 -mr-1";case"bottom-left":return"bottom-0 left-0 -mb-1 -ml-1";case"bottom-right":return"bottom-0 right-0 -mb-1 -mr-1";default:return""}},de(Pa,"properties",{color:{type:String,attribute:"color"},animated:{type:Boolean,attribute:"animated"},position:{type:String,attribute:"position"}});customElements.define("mw-pulse-dot",Pa);var Ca=class extends Fe(ke){constructor(){super(),this.position={},this.popupText="Try it out"}render(){return me`
412
+ `}};Pa=new WeakSet,Gp=function(){switch(this.position){case"top-left":return"top-0 left-0 -mt-1 -ml-1";case"top-right":return"top-0 right-0 -mt-1 -mr-1";case"bottom-left":return"bottom-0 left-0 -mb-1 -ml-1";case"bottom-right":return"bottom-0 right-0 -mb-1 -mr-1";default:return""}},de(Ea,"properties",{color:{type:String,attribute:"color"},animated:{type:Boolean,attribute:"animated"},position:{type:String,attribute:"position"}});customElements.define("mw-pulse-dot",Ea);var Aa=class extends Fe(ke){constructor(){super(),this.position={},this.popupText="Try it out"}render(){return ge`
416
413
  <div class="fixed bottom-24 right-6 flex animate-bounce flex-col items-center justify-center font-sans">
417
414
  <p class="text-md mb-2 -translate-x-4 -rotate-12 transform text-lg font-bold leading-normal text-gray-800">${this.popupText}</p>
418
415
  <svg class="h-14 w-14" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 55 58" fill="none">
419
416
  <path d="M1.41089 1.17749C13.4657 11.874 23.3966 26.992 30.4581 41.4117C31.9751 44.5093 33.1523 47.7224 34.4136 50.9242C34.6288 51.4705 35.4719 52.2988 34.8747 51.5309C33.1064 49.2574 28.9356 48.4966 26.3813 47.9151C23.973 47.3669 17.1432 44.725 19.1984 46.0951C22.9606 48.6033 26.6842 51.3163 30.5552 53.7391C32.8502 55.1756 34.9449 57.9465 37.0101 55.8018C41.8322 50.7943 47.8486 46.2228 53.4629 42.1397" stroke="#303132" stroke-width="2" stroke-linecap="round"></path>
420
417
  </svg>
421
418
  </div>
422
- `}};de(Ca,"properties",{position:{type:Object},popupText:{type:String,attribute:"popup-text"}});customElements.define("mw-try-it-out",Ca);var qp=_i(class extends yr{constructor(t){if(super(t),t.type!==bi.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.it===void 0){this.it=new Set,t.strings!==void 0&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.st?.has(i)&&this.it.add(i);return this.render(e)}let r=t.element.classList;for(let i of this.it)i in e||(r.remove(i),this.it.delete(i));for(let i in e){let n=!!e[i];n===this.it.has(i)||this.st?.has(i)||(n?(r.add(i),this.it.add(i)):(r.remove(i),this.it.delete(i)))}return _t}});var Ta=t=>t??De;var On,pt,zt,Rn,Vl,Ia=class{constructor(e,r){W(this,Rn);W(this,On,void 0);W(this,pt,void 0);W(this,zt,void 0);if(!e)throw new Error("host is required");if(!r)throw new Error("config is required");fe(this,On,e),L(this,On).addController(this),fe(this,pt,r)}reconnect(e){fe(this,pt,e),L(this,zt)?.close(),fe(this,zt,pe(this,Rn,Vl).call(this))}hostConnected(){fe(this,zt,pe(this,Rn,Vl).call(this))}hostDisconnected(){L(this,zt)?.close(),fe(this,zt,void 0)}send(e){L(this,zt)?.send(e)}close(){L(this,zt)?.close(1e3,"new_chat")}render(e={}){switch(L(this,zt)?.readyState){case WebSocket.CLOSED:return e.closed?.();case WebSocket.CLOSING:return e.closing?.();case WebSocket.CONNECTING:return e.connecting?.();case WebSocket.OPEN:return e.open?.()}}};On=new WeakMap,pt=new WeakMap,zt=new WeakMap,Rn=new WeakSet,Vl=function(){let e=new WebSocket(L(this,pt).url());return L(this,pt).onClose&&(e.onclose=L(this,pt).onClose),L(this,pt).onOpen&&(e.onopen=L(this,pt).onOpen),L(this,pt).onError&&(e.onerror=L(this,pt).onError),L(this,pt).onMessage&&(e.onmessage=L(this,pt).onMessage),e};var Ma,B0=new Uint8Array(16);function Nl(){if(!Ma&&(Ma=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ma))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ma(B0)}var Ye=[];for(let t=0;t<256;++t)Ye.push((t+256).toString(16).slice(1));function Up(t,e=0){return Ye[t[e+0]]+Ye[t[e+1]]+Ye[t[e+2]]+Ye[t[e+3]]+"-"+Ye[t[e+4]]+Ye[t[e+5]]+"-"+Ye[t[e+6]]+Ye[t[e+7]]+"-"+Ye[t[e+8]]+Ye[t[e+9]]+"-"+Ye[t[e+10]]+Ye[t[e+11]]+Ye[t[e+12]]+Ye[t[e+13]]+Ye[t[e+14]]+Ye[t[e+15]]}var V0=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),zl={randomUUID:V0};function N0(t,e,r){if(zl.randomUUID&&!e&&!t)return zl.randomUUID();t=t||{};let i=t.random||(t.rng||Nl)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){r=r||0;for(let n=0;n<16;++n)e[r+n]=i[n];return e}return Up(i)}var Da=N0;var jt,tt,ri,Ui,Wi,Zi,Fa,Ln,jl,Bn,Gl,Vn,Hl,Nn,ql,Oa,Wp,$a=class{constructor(e,r){W(this,Zi);W(this,Ln);W(this,Bn);W(this,Vn);W(this,Nn);W(this,Oa);W(this,jt,void 0);W(this,tt,void 0);W(this,ri,void 0);de(this,"isStreaming",!1);de(this,"messages",[]);de(this,"conversationId","");W(this,Ui,0);W(this,Wi,!1);e.addController(this),fe(this,jt,e),fe(this,tt,r),fe(this,ri,new Ia(e,{url:()=>L(this,tt).url(this.conversationId,{}),onOpen:i=>pe(this,Ln,jl).call(this,i),onMessage:i=>pe(this,Bn,Gl).call(this,JSON.parse(i.data)),onError:i=>pe(this,Vn,Hl).call(this,i),onClose:i=>pe(this,Nn,ql).call(this,i)}))}sendUserInput(e){pe(this,Zi,Fa).call(this,{type:"USER_INPUT",value:e},{expectStreaming:!0})}sendUserCancel(){pe(this,Zi,Fa).call(this,{type:"USER_CANCEL"})}reconnect(){setTimeout(()=>{L(this,tt).onReconnect?.(),L(this,ri).reconnect({url:()=>L(this,tt).url(this.conversationId,{resume:!0}),onOpen:e=>pe(this,Ln,jl).call(this,e),onMessage:e=>pe(this,Bn,Gl).call(this,JSON.parse(e.data)),onError:e=>pe(this,Vn,Hl).call(this,e),onClose:e=>pe(this,Nn,ql).call(this,e)})},1e3*L(this,Ui)),Eh(this,Ui)._++}hostConnected(){let e=L(this,tt).restoreConversationState?.()||{conversationId:Da(),messages:[]};this.messages=e.messages,this.conversationId=e.conversationId}reset(){L(this,ri).close(),L(this,tt).onReset?.(),this.isStreaming=!1,this.messages=[],this.conversationId=Da(),this.reconnect(),fe(this,Wi,!0),L(this,jt).requestUpdate()}};jt=new WeakMap,tt=new WeakMap,ri=new WeakMap,Ui=new WeakMap,Wi=new WeakMap,Zi=new WeakSet,Fa=function(e,{expectStreaming:r=!1}={}){r&&(this.isStreaming=!0,L(this,jt).requestUpdate()),L(this,ri).send(JSON.stringify(e))},Ln=new WeakSet,jl=function(e){this.messages.length>0&&setTimeout(()=>{pe(this,Zi,Fa).call(this,{type:"RESUME",messages:pe(this,Oa,Wp).call(this)})},10),fe(this,Ui,0),fe(this,Wi,!1)},Bn=new WeakSet,Gl=function(e){switch(e.type){case"NEW_MESSAGE":{this.messages.push(e.message),L(this,jt).requestUpdate(),L(this,tt).onNewMessage?.(e.message);break}case"UPDATE_MESSAGE":{let r=this.messages.find(i=>i.id===e.message.id);if(r)Object.assign(r,e.message),L(this,jt).requestUpdate(),L(this,tt).onUpdateMessage?.(e);else throw new Error(`Message with id ${e.message.id} not found`);break}case"MESSAGE_DONE":{let r=this.messages.find(i=>i.id===e.message.id);if(r?.content==="\xB7 \xB7 \xB7")this.messages=this.messages.filter(i=>i.id!==e.message.id);else if(r)Object.assign(r,e.message);else throw new Error(`Message with id ${e.message.id} not found`);L(this,tt).persistConversationState?.(this.conversationId,this.messages),this.isStreaming=!1,L(this,jt).requestUpdate(),L(this,tt).onMessageDone?.(e);break}case"ERROR":{L(this,tt).onMessageError?.(e);break}default:console.warn(`Unknown message type: ${JSON.stringify(e)}`)}},Vn=new WeakSet,Hl=function(e){L(this,tt).onError?.(e)},Nn=new WeakSet,ql=function(e){this.isStreaming=!1,L(this,jt).requestUpdate(),L(this,jt).isConnected&&!L(this,Wi)&&this.reconnect(),L(this,tt).onClose?.()},Oa=new WeakSet,Wp=function(){return this.messages.map(({id:e,role:r,content:i,timestamp:n})=>({id:e,role:r,content:i,timestamp:n}))};function Zp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function ne(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Zp(Object(r),!0).forEach(function(i){Y(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zp(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Xl(t){return Xl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xl(t)}function Oe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yp(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Re(t,e,r){return e&&Yp(t.prototype,e),r&&Yp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Y(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ad(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Kl(t,e)}function Wa(t){return Wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wa(t)}function Kl(t,e){return Kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Kl(t,e)}function z0(t,e){if(t==null)return{};var r,i,n=function(a,o){if(a==null)return{};var l,h,c={},u=Object.keys(a);for(h=0;h<u.length;h++)l=u[h],o.indexOf(l)>=0||(c[l]=a[l]);return c}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function j0(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(t)}function Cd(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Wa(t);if(e){var n=Wa(this).constructor;r=Reflect.construct(i,arguments,n)}else r=i.apply(this,arguments);return j0(this,r)}}function Gt(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var n=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(n!=null){var s,a,o=[],l=!0,h=!1;try{for(n=n.call(r);!(l=(s=n.next()).done)&&(o.push(s.value),!i||o.length!==i);l=!0);}catch(c){h=!0,a=c}finally{try{l||n.return==null||n.return()}finally{if(h)throw a}}return o}}(t,e)||fh(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
423
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ql(t){return function(e){if(Array.isArray(e))return eh(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||fh(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
424
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function fh(t,e){if(t){if(typeof t=="string")return eh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?eh(t,e):void 0}}function eh(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function oi(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=fh(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
425
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,a=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return a=l.done,l},e:function(l){o=!0,s=l},f:function(){try{a||r.return==null||r.return()}finally{if(o)throw s}}}}var li={DEBUG:!1,LIB_VERSION:"1.96.1"},G0=Array.isArray,Td=Object.prototype,Id=Td.hasOwnProperty,Jn=Td.toString,We=G0||function(t){return Jn.call(t)==="[object Array]"},Jp=function(t){return Jn.call(t)==="[object Uint8Array]"},Ht=function(t){return typeof t=="function"},Ar=function(t){return t===Object(t)&&!We(t)},H0=function(t){if(Ar(t)){for(var e in t)if(Id.call(t,e))return!1;return!0}return!1},ve=function(t){return t===void 0},kt=function(t){return Jn.call(t)=="[object String]"},$t=function(t){return t===null},ur=function(t){return Jn.call(t)=="[object Number]"},th=function(t){return Jn.call(t)==="[object Boolean]"},Md=Array.prototype,Xp=Md.forEach,Kp=Md.indexOf,O=typeof window<"u"?window:void 0,Qp=O?.navigator,K=O?.document,Ge=Qp?.userAgent,rt=O??{},ed="[PostHog.js]",j={_log:function(t){if(O&&(li.DEBUG||rt.POSTHOG_DEBUG)&&!ve(O.console)&&O.console){for(var e=("__rrweb_original__"in O.console[t])?O.console[t].__rrweb_original__:O.console[t],r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];e.apply(void 0,[ed].concat(i))}},info:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];j._log.apply(j,["log"].concat(e))},warn:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];j._log.apply(j,["warn"].concat(e))},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];j._log.apply(j,["error"].concat(e))},critical:function(){for(var t,e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];(t=console).error.apply(t,[ed].concat(r))},uninitializedWarning:function(t){j.error("You must initialize PostHog before calling ".concat(t))}},mh={},Za=function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function Ki(t,e,r){if(We(t)){if(Xp&&t.forEach===Xp)t.forEach(e,r);else if("length"in t&&t.length===+t.length){for(var i=0,n=t.length;i<n;i++)if(i in t&&e.call(r,t[i],i)===mh)return}}}function Ce(t,e,r){if(!$t(t)&&!ve(t)){if(We(t))return Ki(t,e,r);for(var i in t)if(Id.call(t,i)&&e.call(r,t[i],i)===mh)return}}var Je=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return Ki(r,function(n){for(var s in n)n[s]!==void 0&&(t[s]=n[s])}),t};function xe(t,e){return t.indexOf(e)!==-1}function za(t){for(var e=Object.keys(t),r=e.length,i=new Array(r);r--;)i[r]=[e[r],t[e[r]]];return i}var Dd=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},td=function(t){try{return t()}catch{return}},Fd=function(t){return function(){try{for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t.apply(this,r)}catch(n){j.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),j.critical(n)}}},rh=function(t){var e={};return Ce(t,function(r,i){kt(r)&&r.length>0&&(e[i]=r)}),e},q0=["$performance_raw"];function U0(t,e){return r=t,i=function(s,a){return a&&q0.indexOf(a)>-1?s:kt(s)&&!$t(e)?s.slice(0,e):s},n=new Set,function s(a,o){return a!==Object(a)?i?i(a,o):a:n.has(a)?void 0:(n.add(a),We(a)?(l=[],Ki(a,function(h){l.push(s(h))})):(l={},Ce(a,function(h,c){n.has(h)||(l[c]=s(h,c))})),l);var l}(r);var r,i,n}function gh(t){var e,r,i,n,s,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o=0,l=0,h="",c=[];if(!t)return t;t=W0(t);do e=(s=t.charCodeAt(o++)<<16|t.charCodeAt(o++)<<8|t.charCodeAt(o++))>>18&63,r=s>>12&63,i=s>>6&63,n=63&s,c[l++]=a.charAt(e)+a.charAt(r)+a.charAt(i)+a.charAt(n);while(o<t.length);switch(h=c.join(""),t.length%3){case 1:h=h.slice(0,-2)+"==";break;case 2:h=h.slice(0,-1)+"="}return h}var W0=function(t){var e,r,i,n,s="";for(e=r=0,i=(t=(t+"").replace(/\r\n/g,`
419
+ `}};de(Aa,"properties",{position:{type:Object},popupText:{type:String,attribute:"popup-text"}});customElements.define("mw-try-it-out",Aa);var Hp=_i(class extends yr{constructor(t){if(super(t),t.type!==bi.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.it===void 0){this.it=new Set,t.strings!==void 0&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!this.st?.has(i)&&this.it.add(i);return this.render(e)}let r=t.element.classList;for(let i of this.it)i in e||(r.remove(i),this.it.delete(i));for(let i in e){let n=!!e[i];n===this.it.has(i)||this.st?.has(i)||(n?(r.add(i),this.it.add(i)):(r.remove(i),this.it.delete(i)))}return _t}});var Ca=t=>t??De;var On,pt,zt,Rn,Bl,Ta=class{constructor(e,r){Z(this,Rn);Z(this,On,void 0);Z(this,pt,void 0);Z(this,zt,void 0);if(!e)throw new Error("host is required");if(!r)throw new Error("config is required");fe(this,On,e),L(this,On).addController(this),fe(this,pt,r)}reconnect(e){fe(this,pt,e),L(this,zt)?.close(),fe(this,zt,pe(this,Rn,Bl).call(this))}hostConnected(){fe(this,zt,pe(this,Rn,Bl).call(this))}hostDisconnected(){L(this,zt)?.close(),fe(this,zt,void 0)}send(e){L(this,zt)?.send(e)}close(){L(this,zt)?.close(1e3,"new_chat")}render(e={}){switch(L(this,zt)?.readyState){case WebSocket.CLOSED:return e.closed?.();case WebSocket.CLOSING:return e.closing?.();case WebSocket.CONNECTING:return e.connecting?.();case WebSocket.OPEN:return e.open?.()}}};On=new WeakMap,pt=new WeakMap,zt=new WeakMap,Rn=new WeakSet,Bl=function(){let e=new WebSocket(L(this,pt).url());return L(this,pt).onClose&&(e.onclose=L(this,pt).onClose),L(this,pt).onOpen&&(e.onopen=L(this,pt).onOpen),L(this,pt).onError&&(e.onerror=L(this,pt).onError),L(this,pt).onMessage&&(e.onmessage=L(this,pt).onMessage),e};var Ia,L0=new Uint8Array(16);function Vl(){if(!Ia&&(Ia=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ia))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ia(L0)}var Ye=[];for(let t=0;t<256;++t)Ye.push((t+256).toString(16).slice(1));function qp(t,e=0){return Ye[t[e+0]]+Ye[t[e+1]]+Ye[t[e+2]]+Ye[t[e+3]]+"-"+Ye[t[e+4]]+Ye[t[e+5]]+"-"+Ye[t[e+6]]+Ye[t[e+7]]+"-"+Ye[t[e+8]]+Ye[t[e+9]]+"-"+Ye[t[e+10]]+Ye[t[e+11]]+Ye[t[e+12]]+Ye[t[e+13]]+Ye[t[e+14]]+Ye[t[e+15]]}var B0=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Nl={randomUUID:B0};function V0(t,e,r){if(Nl.randomUUID&&!e&&!t)return Nl.randomUUID();t=t||{};let i=t.random||(t.rng||Vl)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){r=r||0;for(let n=0;n<16;++n)e[r+n]=i[n];return e}return qp(i)}var Ma=V0;var jt,tt,ri,Ui,Wi,Zi,Da,Ln,zl,Bn,jl,Vn,Gl,Nn,Hl,$a,Up,Fa=class{constructor(e,r){Z(this,Zi);Z(this,Ln);Z(this,Bn);Z(this,Vn);Z(this,Nn);Z(this,$a);Z(this,jt,void 0);Z(this,tt,void 0);Z(this,ri,void 0);de(this,"isStreaming",!1);de(this,"messages",[]);de(this,"conversationId","");Z(this,Ui,0);Z(this,Wi,!1);e.addController(this),fe(this,jt,e),fe(this,tt,r),fe(this,ri,new Ta(e,{url:()=>L(this,tt).url(this.conversationId,{}),onOpen:i=>pe(this,Ln,zl).call(this,i),onMessage:i=>pe(this,Bn,jl).call(this,JSON.parse(i.data)),onError:i=>pe(this,Vn,Gl).call(this,i),onClose:i=>pe(this,Nn,Hl).call(this,i)}))}sendUserInput(e){pe(this,Zi,Da).call(this,{type:"USER_INPUT",value:e},{expectStreaming:!0})}sendUserCancel(){pe(this,Zi,Da).call(this,{type:"USER_CANCEL"})}reconnect(){setTimeout(()=>{L(this,tt).onReconnect?.(),L(this,ri).reconnect({url:()=>L(this,tt).url(this.conversationId,{resume:!0}),onOpen:e=>pe(this,Ln,zl).call(this,e),onMessage:e=>pe(this,Bn,jl).call(this,JSON.parse(e.data)),onError:e=>pe(this,Vn,Gl).call(this,e),onClose:e=>pe(this,Nn,Hl).call(this,e)})},1e3*L(this,Ui)),kh(this,Ui)._++}hostConnected(){let e=L(this,tt).restoreConversationState?.()||{conversationId:Ma(),messages:[]};this.messages=e.messages,this.conversationId=e.conversationId}reset(){L(this,ri).close(),L(this,tt).onReset?.(),this.isStreaming=!1,this.messages=[],this.conversationId=Ma(),this.reconnect(),fe(this,Wi,!0),L(this,jt).requestUpdate()}};jt=new WeakMap,tt=new WeakMap,ri=new WeakMap,Ui=new WeakMap,Wi=new WeakMap,Zi=new WeakSet,Da=function(e,{expectStreaming:r=!1}={}){r&&(this.isStreaming=!0,L(this,jt).requestUpdate()),L(this,ri).send(JSON.stringify(e))},Ln=new WeakSet,zl=function(e){this.messages.length>0&&setTimeout(()=>{pe(this,Zi,Da).call(this,{type:"RESUME",messages:pe(this,$a,Up).call(this)})},10),fe(this,Ui,0),fe(this,Wi,!1)},Bn=new WeakSet,jl=function(e){switch(e.type){case"NEW_MESSAGE":{this.messages.push(e.message),L(this,jt).requestUpdate(),L(this,tt).onNewMessage?.(e.message);break}case"UPDATE_MESSAGE":{let r=this.messages.find(i=>i.id===e.message.id);if(r)Object.assign(r,e.message),L(this,jt).requestUpdate(),L(this,tt).onUpdateMessage?.(e);else throw new Error(`Message with id ${e.message.id} not found`);break}case"MESSAGE_DONE":{let r=this.messages.find(i=>i.id===e.message.id);if(r?.content==="\xB7 \xB7 \xB7")this.messages=this.messages.filter(i=>i.id!==e.message.id);else if(r)Object.assign(r,e.message);else throw new Error(`Message with id ${e.message.id} not found`);L(this,tt).persistConversationState?.(this.conversationId,this.messages),this.isStreaming=!1,L(this,jt).requestUpdate(),L(this,tt).onMessageDone?.(e);break}case"ERROR":{L(this,tt).onMessageError?.(e);break}default:console.warn(`Unknown message type: ${JSON.stringify(e)}`)}},Vn=new WeakSet,Gl=function(e){L(this,tt).onError?.(e)},Nn=new WeakSet,Hl=function(e){this.isStreaming=!1,L(this,jt).requestUpdate(),L(this,jt).isConnected&&!L(this,Wi)&&this.reconnect(),L(this,tt).onClose?.()},$a=new WeakSet,Up=function(){return this.messages.map(({id:e,role:r,content:i,timestamp:n})=>({id:e,role:r,content:i,timestamp:n}))};function Wp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function ne(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Wp(Object(r),!0).forEach(function(i){Y(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wp(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Jl(t){return Jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jl(t)}function Oe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zp(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Re(t,e,r){return e&&Zp(t.prototype,e),r&&Zp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Y(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xl(t,e)}function Ua(t){return Ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ua(t)}function Xl(t,e){return Xl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Xl(t,e)}function N0(t,e){if(t==null)return{};var r,i,n=function(a,o){if(a==null)return{};var l,h,c={},u=Object.keys(a);for(h=0;h<u.length;h++)l=u[h],o.indexOf(l)>=0||(c[l]=a[l]);return c}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function z0(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(t)}function Ad(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Ua(t);if(e){var n=Ua(this).constructor;r=Reflect.construct(i,arguments,n)}else r=i.apply(this,arguments);return z0(this,r)}}function Gt(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var n=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(n!=null){var s,a,o=[],l=!0,h=!1;try{for(n=n.call(r);!(l=(s=n.next()).done)&&(o.push(s.value),!i||o.length!==i);l=!0);}catch(c){h=!0,a=c}finally{try{l||n.return==null||n.return()}finally{if(h)throw a}}return o}}(t,e)||dh(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
420
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Kl(t){return function(e){if(Array.isArray(e))return Ql(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||dh(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
421
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function dh(t,e){if(t){if(typeof t=="string")return Ql(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ql(t,e):void 0}}function Ql(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function oi(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=dh(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
422
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,a=!0,o=!1;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return a=l.done,l},e:function(l){o=!0,s=l},f:function(){try{a||r.return==null||r.return()}finally{if(o)throw s}}}}var li={DEBUG:!1,LIB_VERSION:"1.96.1"},j0=Array.isArray,Cd=Object.prototype,Td=Cd.hasOwnProperty,Jn=Cd.toString,We=j0||function(t){return Jn.call(t)==="[object Array]"},Yp=function(t){return Jn.call(t)==="[object Uint8Array]"},Ht=function(t){return typeof t=="function"},Ar=function(t){return t===Object(t)&&!We(t)},G0=function(t){if(Ar(t)){for(var e in t)if(Td.call(t,e))return!1;return!0}return!1},ve=function(t){return t===void 0},kt=function(t){return Jn.call(t)=="[object String]"},$t=function(t){return t===null},ur=function(t){return Jn.call(t)=="[object Number]"},eh=function(t){return Jn.call(t)==="[object Boolean]"},Id=Array.prototype,Jp=Id.forEach,Xp=Id.indexOf,O=typeof window<"u"?window:void 0,Kp=O?.navigator,K=O?.document,Ge=Kp?.userAgent,rt=O??{},Qp="[PostHog.js]",j={_log:function(t){if(O&&(li.DEBUG||rt.POSTHOG_DEBUG)&&!ve(O.console)&&O.console){for(var e=("__rrweb_original__"in O.console[t])?O.console[t].__rrweb_original__:O.console[t],r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];e.apply(void 0,[Qp].concat(i))}},info:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];j._log.apply(j,["log"].concat(e))},warn:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];j._log.apply(j,["warn"].concat(e))},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];j._log.apply(j,["error"].concat(e))},critical:function(){for(var t,e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];(t=console).error.apply(t,[Qp].concat(r))},uninitializedWarning:function(t){j.error("You must initialize PostHog before calling ".concat(t))}},fh={},Wa=function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function Ki(t,e,r){if(We(t)){if(Jp&&t.forEach===Jp)t.forEach(e,r);else if("length"in t&&t.length===+t.length){for(var i=0,n=t.length;i<n;i++)if(i in t&&e.call(r,t[i],i)===fh)return}}}function Ce(t,e,r){if(!$t(t)&&!ve(t)){if(We(t))return Ki(t,e,r);for(var i in t)if(Td.call(t,i)&&e.call(r,t[i],i)===fh)return}}var Je=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return Ki(r,function(n){for(var s in n)n[s]!==void 0&&(t[s]=n[s])}),t};function xe(t,e){return t.indexOf(e)!==-1}function Na(t){for(var e=Object.keys(t),r=e.length,i=new Array(r);r--;)i[r]=[e[r],t[e[r]]];return i}var Md=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},ed=function(t){try{return t()}catch{return}},Dd=function(t){return function(){try{for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t.apply(this,r)}catch(n){j.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),j.critical(n)}}},th=function(t){var e={};return Ce(t,function(r,i){kt(r)&&r.length>0&&(e[i]=r)}),e},H0=["$performance_raw"];function q0(t,e){return r=t,i=function(s,a){return a&&H0.indexOf(a)>-1?s:kt(s)&&!$t(e)?s.slice(0,e):s},n=new Set,function s(a,o){return a!==Object(a)?i?i(a,o):a:n.has(a)?void 0:(n.add(a),We(a)?(l=[],Ki(a,function(h){l.push(s(h))})):(l={},Ce(a,function(h,c){n.has(h)||(l[c]=s(h,c))})),l);var l}(r);var r,i,n}function mh(t){var e,r,i,n,s,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o=0,l=0,h="",c=[];if(!t)return t;t=U0(t);do e=(s=t.charCodeAt(o++)<<16|t.charCodeAt(o++)<<8|t.charCodeAt(o++))>>18&63,r=s>>12&63,i=s>>6&63,n=63&s,c[l++]=a.charAt(e)+a.charAt(r)+a.charAt(i)+a.charAt(n);while(o<t.length);switch(h=c.join(""),t.length%3){case 1:h=h.slice(0,-2)+"==";break;case 2:h=h.slice(0,-1)+"="}return h}var U0=function(t){var e,r,i,n,s="";for(e=r=0,i=(t=(t+"").replace(/\r\n/g,`
426
423
  `).replace(/\r/g,`
427
- `)).length,n=0;n<i;n++){var a=t.charCodeAt(n),o=null;a<128?r++:o=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),$t(o)||(r>e&&(s+=t.substring(e,r)),s+=o,e=r=n+1)}return r>e&&(s+=t.substring(e,t.length)),s},Un=function(){function t(e){return e&&(e.preventDefault=t.preventDefault,e.stopPropagation=t.stopPropagation),e}return t.preventDefault=function(){this.returnValue=!1},t.stopPropagation=function(){this.cancelBubble=!0},function(e,r,i,n,s){if(e)if(e.addEventListener&&!n)e.addEventListener(r,i,!!s);else{var a="on"+r,o=e[a];e[a]=function(l,h,c){return function(u){if(u=u||t(O?.event)){var f,p=!0;Ht(c)&&(f=c(u));var m=h.call(l,u);return f!==!1&&m!==!1||(p=!1),p}}}(e,i,o)}else j.error("No valid element provided to register_event")}}();function Wn(t,e){var r=function(){if(!K)return e("document not found");var i=K.createElement("script");i.type="text/javascript",i.src=t,i.onload=function(a){return e(void 0,a)},i.onerror=function(a){return e(a)};var n,s=K.querySelectorAll("body > script");s.length>0?(n=s[0].parentNode)===null||n===void 0||n.insertBefore(i,s[0]):K.body.appendChild(i)};K!=null&&K.body?r():K?.addEventListener("DOMContentLoaded",r)}function yh(t){return t?Za(t).split(/\s+/):[]}function Ya(t){var e="";switch(Xl(t.className)){case"string":e=t.className;break;case"object":e=("baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";break;default:e=""}return yh(e)}function Ja(t){var e="";return ja(t)&&!Od(t)&&t.childNodes&&t.childNodes.length&&Ce(t.childNodes,function(r){$d(r)&&r.textContent&&(e+=Za(r.textContent).split(/(\s+)/).filter(Yi).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),Za(e)}function rd(t){return!!t&&t.nodeType===1}function ai(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function $d(t){return!!t&&t.nodeType===3}function id(t){return!!t&&t.nodeType===11}var Ul=["a","button","form","input","select","textarea","label"];function ja(t){for(var e=t;e.parentNode&&!ai(e,"body");e=e.parentNode){var r=Ya(e);if(xe(r,"ph-sensitive")||xe(r,"ph-no-capture"))return!1}if(xe(Ya(t),"ph-include"))return!0;var i=t.type||"";if(kt(i))switch(i.toLowerCase()){case"hidden":case"password":return!1}var n=t.name||t.id||"";return!(kt(n)&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(n.replace(/[^a-zA-Z0-9]/g,"")))}function Od(t){return!!(ai(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||ai(t,"select")||ai(t,"textarea")||t.getAttribute("contenteditable")==="true")}function Yi(t){return!($t(t)||ve(t)||kt(t)&&(t=Za(t),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((t||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(t)))}function nd(t){var e=Ja(t);return Yi(e="".concat(e," ").concat(Rd(t)).trim())?e:""}function Rd(t){var e="";return t&&t.childNodes&&t.childNodes.length&&Ce(t.childNodes,function(r){var i;if(r&&((i=r.tagName)===null||i===void 0?void 0:i.toLowerCase())==="span")try{var n=Ja(r);e="".concat(e," ").concat(n).trim(),r.childNodes&&r.childNodes.length&&(e="".concat(e," ").concat(Rd(r)).trim())}catch(s){j.error(s)}}),e}function Z0(t){return function(e){var r=e.map(function(i){var n,s,a="";if(i.tag_name&&(a+=i.tag_name),i.attr_class){i.attr_class.sort();var o,l=oi(i.attr_class);try{for(l.s();!(o=l.n()).done;){var h=o.value;a+=".".concat(h.replace(/"/g,""))}}catch(f){l.e(f)}finally{l.f()}}var c=ne(ne(ne(ne({},i.text?{text:i.text}:{}),{},{"nth-child":(n=i.nth_child)!==null&&n!==void 0?n:0,"nth-of-type":(s=i.nth_of_type)!==null&&s!==void 0?s:0},i.href?{href:i.href}:{}),i.attr_id?{attr_id:i.attr_id}:{}),i.attributes),u={};return za(c).sort(function(f,p){var m=Gt(f,1)[0],g=Gt(p,1)[0];return m.localeCompare(g)}).forEach(function(f){var p=Gt(f,2),m=p[0],g=p[1];return u[sd(m.toString())]=sd(g.toString())}),a+=":",a+=za(c).map(function(f){var p=Gt(f,2),m=p[0],g=p[1];return"".concat(m,'="').concat(g,'"')}).join("")});return r.join(";")}(function(e){return e.map(function(r){var i,n,s={text:(i=r.$el_text)===null||i===void 0?void 0:i.slice(0,400),tag_name:r.tag_name,href:(n=r.attr__href)===null||n===void 0?void 0:n.slice(0,2048),attr_class:Y0(r),attr_id:r.attr__id,nth_child:r.nth_child,nth_of_type:r.nth_of_type,attributes:{}};return za(r).filter(function(a){return Gt(a,1)[0].indexOf("attr__")===0}).forEach(function(a){var o=Gt(a,2),l=o[0],h=o[1];return s.attributes[l]=h}),s})}(t))}function sd(t){return t.replace(/"|\\"/g,'\\"')}function Y0(t){var e=t.attr__class;return e?We(e)?e:yh(e):void 0}var J0=function(){function t(e){Oe(this,t),this.clicks=[],this.enabled=e}return Re(t,[{key:"isRageClick",value:function(e,r,i){if(!this.enabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(r-n.y)<30&&i-n.timestamp<1e3){if(this.clicks.push({x:e,y:r,timestamp:i}),this.clicks.length===3)return!0}else this.clicks=[{x:e,y:r,timestamp:i}];return!1}}]),t}(),Ld="$people_distinct_id",Ga="__alias",Hn="__timers",ad="$autocapture_disabled_server_side",ih="$session_recording_enabled_server_side",od="$console_log_recording_enabled_server_side",ld="$session_recording_recorder_version_server_side",hd="$session_recording_network_payload_capture",Xa="$sesid",Ha="$session_is_sampled",Ji="$enabled_feature_flags",nh="$early_access_features",Xi="$stored_person_properties",Er="$stored_group_properties",sh="$surveys",Ka="$flag_call_reported",ah="$user_state",oh="$posthog_quota_limited",lh="$client_session_props",X0=[Ld,Ga,"__cmpns",Hn,ih,Xa,Ji,ah,oh,nh,Er,Xi,sh,Ka,lh];function Wl(t,e){return e.length>t?e.slice(0,t)+"...":e}var Pr={_initializedTokens:[],_isDisabledServerSide:null,_isAutocaptureEnabled:!1,_setIsAutocaptureEnabled:function(t){var e,r=$t(this._isDisabledServerSide)?!((e=t.persistence)===null||e===void 0||!e.props[ad]):this._isDisabledServerSide,i=!!t.config.autocapture;this._isAutocaptureEnabled=i&&!r},_previousElementSibling:function(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do e=e.previousSibling;while(e&&!rd(e));return e},_getAugmentPropertiesFromElement:function(t){if(!ja(t))return{};var e={};return Ce(t.attributes,function(r){if(r.name.indexOf("data-ph-capture-attribute")===0){var i=r.name.replace("data-ph-capture-attribute-",""),n=r.value;i&&n&&Yi(n)&&(e[i]=n)}}),e},_getPropertiesFromElement:function(t,e,r){var i,n=t.tagName.toLowerCase(),s={tag_name:n};Ul.indexOf(n)>-1&&!r&&(n.toLowerCase()==="a"||n.toLowerCase()==="button"?s.$el_text=Wl(1024,nd(t)):s.$el_text=Wl(1024,Ja(t)));var a=Ya(t);a.length>0&&(s.classes=a.filter(function(u){return u!==""}));var o=(i=this.config)===null||i===void 0?void 0:i.element_attribute_ignorelist;Ce(t.attributes,function(u){var f;if((!Od(t)||["name","id","class"].indexOf(u.name)!==-1)&&(o==null||!o.includes(u.name))&&!e&&Yi(u.value)&&(f=u.name,!kt(f)||f.substring(0,10)!=="_ngcontent"&&f.substring(0,7)!=="_nghost")){var p=u.value;u.name==="class"&&(p=yh(p).join(" ")),s["attr__"+u.name]=Wl(1024,p)}});for(var l=1,h=1,c=t;c=this._previousElementSibling(c);)l++,c.tagName===t.tagName&&h++;return s.nth_child=l,s.nth_of_type=h,s},_getDefaultProperties:function(t){return{$event_type:t,$ce_version:1}},_extractCustomPropertyValue:function(t){var e=[];return Ce(K?.querySelectorAll(t.css_selector),function(r){var i;["input","select"].indexOf(r.tagName.toLowerCase())>-1?i=r.value:r.textContent&&(i=r.textContent),Yi(i)&&e.push(i)}),e.join(", ")},_getCustomProperties:function(t){var e=this,r={};return Ce(this._customProperties,function(i){Ce(i.event_selectors,function(n){Ce(K?.querySelectorAll(n),function(s){xe(t,s)&&ja(s)&&(r[i.name]=e._extractCustomPropertyValue(i))})})}),r},_getEventTarget:function(t){return ve(t.target)?t.srcElement||null:(e=t.target)!==null&&e!==void 0&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e},_captureEvent:function(t,e){var r,i=this,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",s=this._getEventTarget(t);if($d(s)&&(s=s.parentNode||null),n==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&(r=this.rageclicks)!==null&&r!==void 0&&r.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this._captureEvent(t,e,"$rageclick"),s&&function(g,d){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!O||!g||ai(g,"html")||!rd(g))return!1;if(y!=null&&y.url_allowlist){var v=O.location.href,b=y.url_allowlist;if(b&&!b.some(function(E){return v.match(E)}))return!1}if(y!=null&&y.dom_event_allowlist){var _=y.dom_event_allowlist;if(_&&!_.some(function(E){return d.type===E}))return!1}if(y!=null&&y.element_allowlist){var S=y.element_allowlist;if(S&&!S.some(function(E){return g.tagName.toLowerCase()===E}))return!1}if(y!=null&&y.css_selector_allowlist){var T=y.css_selector_allowlist;if(T&&!T.some(function(E){return g.matches(E)}))return!1}for(var x=!1,w=[g],M=!0,k=g;k.parentNode&&!ai(k,"body");)if(id(k.parentNode))w.push(k.parentNode.host),k=k.parentNode.host;else{if(!(M=k.parentNode||!1))break;if(Ul.indexOf(M.tagName.toLowerCase())>-1)x=!0;else{var I=O.getComputedStyle(M);I&&I.getPropertyValue("cursor")==="pointer"&&(x=!0)}w.push(M),k=M}var P=O.getComputedStyle(g);if(P&&P.getPropertyValue("cursor")==="pointer"&&d.type==="click")return!0;var A=g.tagName.toLowerCase();switch(A){case"html":return!1;case"form":return d.type==="submit";case"input":case"select":case"textarea":return d.type==="change"||d.type==="click";default:return x?d.type==="click":d.type==="click"&&(Ul.indexOf(A)>-1||g.getAttribute("contenteditable")==="true")}}(s,t,this.config)){for(var a,o,l=[s],h=s;h.parentNode&&!ai(h,"body");)id(h.parentNode)?(l.push(h.parentNode.host),h=h.parentNode.host):(l.push(h.parentNode),h=h.parentNode);var c,u=[],f={},p=!1;if(Ce(l,function(g){var d=ja(g);g.tagName.toLowerCase()==="a"&&(c=g.getAttribute("href"),c=d&&Yi(c)&&c),xe(Ya(g),"ph-no-capture")&&(p=!0),u.push(i._getPropertiesFromElement(g,e.config.mask_all_element_attributes,e.config.mask_all_text));var y=i._getAugmentPropertiesFromElement(g);Je(f,y)}),e.config.mask_all_text||(s.tagName.toLowerCase()==="a"||s.tagName.toLowerCase()==="button"?u[0].$el_text=nd(s):u[0].$el_text=Ja(s)),c&&(u[0].attr__href=c),p)return!1;var m=Je(this._getDefaultProperties(t.type),e.elementsChainAsString?{$elements_chain:Z0(u)}:{$elements:u},(a=u[0])!==null&&a!==void 0&&a.$el_text?{$el_text:(o=u[0])===null||o===void 0?void 0:o.$el_text}:{},this._getCustomProperties(l),f);return e.capture(n,m),!0}},_navigate:function(t){O&&(O.location.href=t)},_addDomEventHandlers:function(t){var e=this;if(O&&K){var r=function(i){i=i||O?.event,e._captureEvent(i,t)};Un(K,"submit",r,!1,!0),Un(K,"change",r,!1,!0),Un(K,"click",r,!1,!0)}},_customProperties:[],rageclicks:null,config:void 0,init:function(t){var e;th(t.__autocapture)||(this.config=t.__autocapture),(e=this.config)!==null&&e!==void 0&&e.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(r){return new RegExp(r)})),this.rageclicks=new J0(t.config.rageclick)},afterDecideResponse:function(t,e){var r=e.config.token;this._initializedTokens.indexOf(r)>-1?j.info('autocapture already initialized for token "'+r+'"'):(e.persistence&&e.persistence.register(Y({},ad,!!t.autocapture_opt_out)),this._isDisabledServerSide=!!t.autocapture_opt_out,this._setIsAutocaptureEnabled(e),this._initializedTokens.push(r),t&&t.config&&t.config.enable_collect_everything&&this._isAutocaptureEnabled?(t.custom_properties&&(this._customProperties=t.custom_properties),this._addDomEventHandlers(e)):e.__autocapture=!1)},enabledForProject:function(t,e,r){if(!t)return!0;e=ve(e)?10:e,r=ve(r)?10:r;for(var i=0,n=0;n<t.length;n++)i+=t.charCodeAt(n);return i%e<r},isBrowserSupported:function(){return Ht(K?.querySelectorAll)}};(function(t){for(var e in t)Ht(t[e])&&(t[e]=t[e].bind(t))})(Pr),function(t){for(var e in t)Ht(t[e])&&(t[e]=Fd(t[e]))}(Pr);var Zl="$active_feature_flags",Ra="$override_feature_flags",cd="$feature_flag_payloads",ud=function(t){var e,r={},i=oi(za(t||{}));try{for(i.s();!(e=i.n()).done;){var n=Gt(e.value,2),s=n[0],a=n[1];a&&(r[s]=a)}}catch(o){i.e(o)}finally{i.f()}return r},K0=function(){function t(e){Oe(this,t),this.instance=e,this._override_warning=!1,this.featureFlagEventHandlers=[],this.reloadFeatureFlagsQueued=!1,this.reloadFeatureFlagsInAction=!1}return Re(t,[{key:"getFlags",value:function(){return Object.keys(this.getFlagVariants())}},{key:"getFlagVariants",value:function(){var e=this.instance.get_property(Ji),r=this.instance.get_property(Ra);if(!r)return e||{};for(var i=Je({},e),n=Object.keys(r),s=0;s<n.length;s++)r[n[s]]===!1?delete i[n[s]]:i[n[s]]=r[n[s]];return this._override_warning||(j.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:r,finalFlags:i}),this._override_warning=!0),i}},{key:"getFlagPayloads",value:function(){return this.instance.get_property(cd)||{}}},{key:"reloadFeatureFlags",value:function(){this.reloadFeatureFlagsQueued||(this.reloadFeatureFlagsQueued=!0,this._startReloadTimer())}},{key:"setAnonymousDistinctId",value:function(e){this.$anon_distinct_id=e}},{key:"setReloadingPaused",value:function(e){this.reloadFeatureFlagsInAction=e}},{key:"resetRequestQueue",value:function(){this.reloadFeatureFlagsQueued=!1}},{key:"_startReloadTimer",value:function(){var e=this;this.reloadFeatureFlagsQueued&&!this.reloadFeatureFlagsInAction&&setTimeout(function(){!e.reloadFeatureFlagsInAction&&e.reloadFeatureFlagsQueued&&(e.reloadFeatureFlagsQueued=!1,e._reloadFeatureFlagsRequest())},5)}},{key:"_reloadFeatureFlagsRequest",value:function(){var e=this;if(!this.instance.config.advanced_disable_feature_flags){this.setReloadingPaused(!0);var r=this.instance.config.token,i=this.instance.get_property(Xi),n=this.instance.get_property(Er),s=gh(JSON.stringify({token:r,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:i,group_properties:n,disable_flags:this.instance.config.advanced_disable_feature_flags||void 0}));this.instance._send_request(this.instance.config.api_host+"/decide/?v=3",{data:s},{method:"POST"},this.instance._prepare_callback(function(a){e.$anon_distinct_id=void 0,e.receivedFeatureFlags(a),e.setReloadingPaused(!1),e._startReloadTimer()}))}}},{key:"getFeatureFlag",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var i,n=this.getFlagVariants()[e],s="".concat(n),a=this.instance.get_property(Ka)||{};return(r.send_event||!("send_event"in r))&&(!(e in a)||!a[e].includes(s))&&(We(a[e])?a[e].push(s):a[e]=[s],(i=this.instance.persistence)===null||i===void 0||i.register(Y({},Ka,a)),this.instance.capture("$feature_flag_called",{$feature_flag:e,$feature_flag_response:n})),n}j.warn('getFeatureFlag for key "'+e+`" failed. Feature flags didn't load in time.`)}},{key:"getFeatureFlagPayload",value:function(e){return this.getFlagPayloads()[e]}},{key:"isFeatureEnabled",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(e,r);j.warn('isFeatureEnabled for key "'+e+`" failed. Feature flags didn't load in time.`)}},{key:"addFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers.push(e)}},{key:"removeFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(r){return r!==e})}},{key:"receivedFeatureFlags",value:function(e){if(this.instance.persistence){this.instance.decideEndpointWasHit=!0;var r=this.getFlagVariants(),i=this.getFlagPayloads();(function(n,s){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=n.featureFlags,h=n.featureFlagPayloads;if(l)if(We(l)){var c,u={};if(l)for(var f=0;f<l.length;f++)u[l[f]]=!0;s&&s.register((Y(c={},Zl,l),Y(c,Ji,u),c))}else{var p,m=l,g=h;n.errorsWhileComputingFlags&&(m=ne(ne({},a),m),g=ne(ne({},o),g)),s&&s.register((Y(p={},Zl,Object.keys(ud(m))),Y(p,Ji,m||{}),Y(p,cd,g||{}),p))}})(e,this.instance.persistence,r,i),this._fireFeatureFlagsCallbacks()}}},{key:"override",value:function(e){if(!this.instance.__loaded||!this.instance.persistence)return j.uninitializedWarning("posthog.feature_flags.override");if(this._override_warning=!1,e===!1)this.instance.persistence.unregister(Ra);else if(We(e)){for(var r={},i=0;i<e.length;i++)r[e[i]]=!0;this.instance.persistence.register(Y({},Ra,r))}else this.instance.persistence.register(Y({},Ra,e))}},{key:"onFeatureFlags",value:function(e){var r=this;if(this.addFeatureFlagsHandler(e),this.instance.decideEndpointWasHit){var i=this._prepareFeatureFlagsForCallbacks(),n=i.flags,s=i.flagVariants;e(n,s)}return function(){return r.removeFeatureFlagsHandler(e)}}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,r){var i,n,s=Y({},"$feature_enrollment/".concat(e),r);this.instance.capture("$feature_enrollment_update",{$feature_flag:e,$feature_enrollment:r,$set:s}),this.setPersonPropertiesForFlags(s,!1);var a=ne(ne({},this.getFlagVariants()),{},Y({},e,r));(i=this.instance.persistence)===null||i===void 0||i.register((Y(n={},Zl,Object.keys(ud(a))),Y(n,Ji,a),n)),this._fireFeatureFlagsCallbacks()}},{key:"getEarlyAccessFeatures",value:function(e){var r=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=this.instance.get_property(nh);if(n&&!i)return e(n);this.instance._send_request("".concat(this.instance.config.api_host,"/api/early_access_features/?token=").concat(this.instance.config.token),{},{method:"GET"},function(s){var a,o=s.earlyAccessFeatures;return(a=r.instance.persistence)===null||a===void 0||a.register(Y({},nh,o)),e(o)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var e=this.getFlags(),r=this.getFlagVariants();return{flags:e.filter(function(i){return r[i]}),flagVariants:Object.keys(r).filter(function(i){return r[i]}).reduce(function(i,n){return i[n]=r[n],i},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var e=this._prepareFeatureFlagsForCallbacks(),r=e.flags,i=e.flagVariants;this.featureFlagEventHandlers.forEach(function(n){return n(r,i)})}},{key:"setPersonPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this.instance.get_property(Xi)||{};this.instance.register(Y({},Xi,ne(ne({},i),e))),r&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(Xi)}},{key:"setGroupPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this.instance.get_property(Er)||{};Object.keys(i).length!==0&&Object.keys(i).forEach(function(n){i[n]=ne(ne({},i[n]),e[n]),delete e[n]}),this.instance.register(Y({},Er,ne(ne({},i),e))),r&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(e){if(e){var r=this.instance.get_property(Er)||{};this.instance.register(Y({},Er,ne(ne({},r),{},Y({},e,{}))))}else this.instance.unregister(Er)}}]),t}();Math.trunc||(Math.trunc=function(t){return t<0?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return ur(t)&&isFinite(t)&&Math.floor(t)===t});var pd="0123456789abcdef",Q0=function(){function t(e){if(Oe(this,t),this.bytes=e,e.length!==16)throw new TypeError("not 128-bit length")}return Re(t,[{key:"toString",value:function(){for(var e="",r=0;r<this.bytes.length;r++)e=e+pd.charAt(this.bytes[r]>>>4)+pd.charAt(15&this.bytes[r]),r!==3&&r!==5&&r!==7&&r!==9||(e+="-");if(e.length!==36)throw new Error("Invalid UUIDv7 was generated");return e}},{key:"clone",value:function(){return new t(this.bytes.slice(0))}},{key:"equals",value:function(e){return this.compareTo(e)===0}},{key:"compareTo",value:function(e){for(var r=0;r<16;r++){var i=this.bytes[r]-e.bytes[r];if(i!==0)return Math.sign(i)}return 0}}],[{key:"fromFieldsV7",value:function(e,r,i,n){if(!Number.isInteger(e)||!Number.isInteger(r)||!Number.isInteger(i)||!Number.isInteger(n)||e<0||r<0||i<0||n<0||e>0xffffffffffff||r>4095||i>1073741823||n>4294967295)throw new RangeError("invalid field value");var s=new Uint8Array(16);return s[0]=e/Math.pow(2,40),s[1]=e/Math.pow(2,32),s[2]=e/Math.pow(2,24),s[3]=e/Math.pow(2,16),s[4]=e/Math.pow(2,8),s[5]=e,s[6]=112|r>>>8,s[7]=r,s[8]=128|i>>>24,s[9]=i>>>16,s[10]=i>>>8,s[11]=i,s[12]=n>>>24,s[13]=n>>>16,s[14]=n>>>8,s[15]=n,new t(s)}}]),t}(),ey=function(){function t(){Oe(this,t),Y(this,"timestamp",0),Y(this,"counter",0),Y(this,"random",new ty)}return Re(t,[{key:"generate",value:function(){var e=this.generateOrAbort();if(ve(e)){this.timestamp=0;var r=this.generateOrAbort();if(ve(r))throw new Error("Could not generate UUID after timestamp reset");return r}return e}},{key:"generateOrAbort",value:function(){var e=Date.now();if(e>this.timestamp)this.timestamp=e,this.resetCounter();else{if(!(e+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return Q0.fromFieldsV7(this.timestamp,Math.trunc(this.counter/Math.pow(2,30)),this.counter&Math.pow(2,30)-1,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),t}(),Bd=function(t){if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var e=0;e<t.length;e++)t[e]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return t};O&&!ve(O.crypto)&&crypto.getRandomValues&&(Bd=function(t){return crypto.getRandomValues(t)});var dd,ty=function(){function t(){Oe(this,t),Y(this,"buffer",new Uint32Array(8)),Y(this,"cursor",1/0)}return Re(t,[{key:"nextUint32",value:function(){return this.cursor>=this.buffer.length&&(Bd(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),t}(),si=function(){return ry().toString()},ry=function(){return(dd||(dd=new ey)).generate()},iy="Thu, 01 Jan 1970 00:00:00 GMT",zn="",ny=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,sy=function(t){var e=t.match(ny);return e?e[0]:""};function ay(t,e){if(e){var r=function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:K;if(zn)return zn;if(!s||["localhost","127.0.0.1"].includes(n))return"";for(var a=n.split("."),o=Math.min(a.length,8),l="dmn_chk_"+si(),h=new RegExp("(^|;)\\s*"+l+"=1");!zn&&o--;){var c=a.slice(o).join("."),u=l+"=1;domain=."+c;s.cookie=u,h.test(s.cookie)&&(s.cookie=u+";expires="+iy,zn=c)}return zn}(t);if(!r){var i=sy(t);i!==r&&j.info("Warning: cookie subdomain discovery mismatch",i,r),r=i}return r?"; domain=."+r:""}return""}var Xt={is_supported:function(){return!!K},error:function(t){j.error("cookieStore error: "+t)},get:function(t){if(K){try{for(var e=t+"=",r=K.cookie.split(";").filter(function(s){return s.length}),i=0;i<r.length;i++){for(var n=r[i];n.charAt(0)==" ";)n=n.substring(1,n.length);if(n.indexOf(e)===0)return decodeURIComponent(n.substring(e.length,n.length))}}catch{}return null}},parse:function(t){var e;try{e=JSON.parse(Xt.get(t))||{}}catch{}return e},set:function(t,e,r,i,n){if(K)try{var s="",a="",o=ay(K.location.hostname,i);if(r){var l=new Date;l.setTime(l.getTime()+24*r*60*60*1e3),s="; expires="+l.toUTCString()}n&&(a="; secure");var h=t+"="+encodeURIComponent(JSON.stringify(e))+s+"; SameSite=Lax; path=/"+o+a;return h.length>3686.4&&j.warn("cookieStore warning: large cookie, len="+h.length),K.cookie=h,h}catch{return}},remove:function(t,e){try{Xt.set(t,"",-1,e)}catch{return}}},Yl=null,Le={is_supported:function(){if(!$t(Yl))return Yl;var t=!0;if(ve(O))t=!1;else try{var e="__mplssupport__";Le.set(e,"xyz"),Le.get(e)!=='"xyz"'&&(t=!1),Le.remove(e)}catch{t=!1}return t||j.error("localStorage unsupported; falling back to cookie store"),Yl=t,t},error:function(t){j.error("localStorage error: "+t)},get:function(t){try{return O?.localStorage.getItem(t)}catch(e){Le.error(e)}return null},parse:function(t){try{return JSON.parse(Le.get(t))||{}}catch{}return null},set:function(t,e){try{O?.localStorage.setItem(t,JSON.stringify(e))}catch(r){Le.error(r)}},remove:function(t){try{O?.localStorage.removeItem(t)}catch(e){Le.error(e)}}},oy=["distinct_id",Xa,Ha],qn=ne(ne({},Le),{},{parse:function(t){try{var e={};try{e=Xt.parse(t)||{}}catch{}var r=Je(e,JSON.parse(Le.get(t)||"{}"));return Le.set(t,r),r}catch{}return null},set:function(t,e,r,i,n){try{Le.set(t,e);var s={};oy.forEach(function(a){e[a]&&(s[a]=e[a])}),Object.keys(s).length&&Xt.set(t,s,r,i,n)}catch(a){Le.error(a)}},remove:function(t,e){try{O?.localStorage.removeItem(t),Xt.remove(t,e)}catch(r){Le.error(r)}}}),La={},ly={is_supported:function(){return!0},error:function(t){j.error("memoryStorage error: "+t)},get:function(t){return La[t]||null},parse:function(t){return La[t]||null},set:function(t,e){La[t]=e},remove:function(t){delete La[t]}},ii=null,Ke={is_supported:function(){if(!$t(ii))return ii;if(ii=!0,ve(O))ii=!1;else try{var t="__support__";Ke.set(t,"xyz"),Ke.get(t)!=='"xyz"'&&(ii=!1),Ke.remove(t)}catch{ii=!1}return ii},error:function(t){j.error("sessionStorage error: ",t)},get:function(t){try{return O?.sessionStorage.getItem(t)}catch(e){Ke.error(e)}return null},parse:function(t){try{return JSON.parse(Ke.get(t))||null}catch{}return null},set:function(t,e){try{O?.sessionStorage.setItem(t,JSON.stringify(e))}catch(r){Ke.error(r)}},remove:function(t){try{O?.sessionStorage.removeItem(t)}catch(e){Ke.error(e)}}},hy=["localhost","127.0.0.1"],Vd=function(t){var e=K?.createElement("a");return ve(e)?null:(e.href=t,e)},cy=function(t,e){return!!function(r){try{new RegExp(r)}catch{return!1}return!0}(e)&&new RegExp(e).test(t)},fd=function(t,e){for(var r,i=((t.split("#")[0]||"").split("?")[1]||"").split("&"),n=0;n<i.length;n++){var s=i[n].split("=");if(s[0]===e){r=s;break}}if(!We(r)||r.length<2)return"";var a=r[1];try{a=decodeURIComponent(a)}catch{j.error("Skipping decoding for malformed query param: "+a)}return a.replace(/\+/g," ")},Qa=function(t,e){var r=t.match(new RegExp(e+"=([^&]*)"));return r?r[1]:null},He={campaignParams:function(t){var e=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","gad_source","gbraid","wbraid","fbclid","msclkid"].concat(t||[]),r={};return Ce(e,function(i){var n=K?fd(K.URL,i):"";n.length&&(r[i]=n)}),r},searchEngine:function(){var t=K?.referrer;return t?t.search("https?://(.*)google.([^/?]*)")===0?"google":t.search("https?://(.*)bing.com")===0?"bing":t.search("https?://(.*)yahoo.com")===0?"yahoo":t.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var t=He.searchEngine(),e=t!="yahoo"?"q":"p",r={};if(!$t(t)){r.$search_engine=t;var i=K?fd(K.referrer,e):"";i.length&&(r.ph_keyword=i)}return r},browser:function(t,e,r){return e=e||"",r||xe(t," OPR/")?xe(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":xe(t,"IEMobile")||xe(t,"WPDesktop")?"Internet Explorer Mobile":xe(t,"SamsungBrowser/")?"Samsung Internet":xe(t,"Edge")||xe(t,"Edg/")?"Microsoft Edge":xe(t,"FBIOS")?"Facebook Mobile":xe(t,"Chrome")?"Chrome":xe(t,"CriOS")?"Chrome iOS":xe(t,"UCWEB")||xe(t,"UCBrowser")?"UC Browser":xe(t,"FxiOS")?"Firefox iOS":xe(e,"Apple")||function(i){return xe(i,"Safari")&&!xe(i,"Chrome")&&!xe(i,"Android")}(t)?xe(t,"Mobile")?"Mobile Safari":"Safari":xe(t,"Android")?"Android Mobile":xe(t,"Konqueror")||xe(t,"konqueror")?"Konqueror":xe(t,"Firefox")?"Firefox":xe(t,"MSIE")||xe(t,"Trident/")?"Internet Explorer":xe(t,"Gecko")?"Mozilla":""},browserVersion:function(t,e,r){var i={"Internet Explorer Mobile":[/rv:(\d+(\.\d+)?)/],"Microsoft Edge":[/Edge?\/(\d+(\.\d+)?)/],Chrome:[/Chrome\/(\d+(\.\d+)?)/],"Chrome iOS":[/CriOS\/(\d+(\.\d+)?)/],"UC Browser":[/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/],Safari:[/Version\/(\d+(\.\d+)?)/],"Mobile Safari":[/Version\/(\d+(\.\d+)?)/],Opera:[/(Opera|OPR)\/(\d+(\.\d+)?)/],Firefox:[/Firefox\/(\d+(\.\d+)?)/],"Firefox iOS":[/FxiOS\/(\d+(\.\d+)?)/],Konqueror:[/Konqueror[:/]?(\d+(\.\d+)?)/i],BlackBerry:[/BlackBerry (\d+(\.\d+)?)/,/Version\/(\d+(\.\d+)?)/],"Android Mobile":[/android\s(\d+(\.\d+)?)/],"Samsung Internet":[/SamsungBrowser\/(\d+(\.\d+)?)/],"Internet Explorer":[/(rv:|MSIE )(\d+(\.\d+)?)/],Mozilla:[/rv:(\d+(\.\d+)?)/]}[He.browser(t,e,r)];if(ve(i))return null;for(var n=0;n<i.length;n++){var s=i[n],a=t.match(s);if(a)return parseFloat(a[a.length-2])}return null},browserLanguage:function(){return navigator.language||navigator.userLanguage},os:function(t){if(/Windows/i.test(t)){if(/Phone/.test(t)||/WPDesktop/.test(t))return{os_name:"Windows Phone",os_version:""};var e=/Windows NT ([0-9.]+)/i.exec(t);return e&&e[1]?{os_name:"Windows",os_version:e[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(t)){var r=/OS (\d+)_(\d+)_?(\d+)?/i.exec(t);return r&&r[1]?{os_name:"iOS",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(t)){var i=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(t);return i&&i[1]?{os_name:"Android",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(t))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(t)){var n=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(t);return n&&n[1]?{os_name:"Mac OS X",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(t)?{os_name:"Linux",os_version:""}:/CrOS/.test(t)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)&&!/Mobile/.test(t)?"Android Tablet":/Android/.test(t)?"Android":""},deviceType:function(t){var e=this.device(t);return e==="iPad"||e==="Android Tablet"?"Tablet":e?"Mobile":"Desktop"},referrer:function(){return K?.referrer||"$direct"},referringDomain:function(){var t;return K!=null&&K.referrer&&((t=Vd(K.referrer))===null||t===void 0?void 0:t.host)||"$direct"},properties:function(){if(!Ge)return{};var t=He.os(Ge),e=t.os_name,r=t.os_version;return Je(rh({$os:e,$os_version:r,$browser:He.browser(Ge,navigator.vendor,rt.opera),$device:He.device(Ge),$device_type:He.deviceType(Ge)}),{$current_url:O?.location.href,$host:O?.location.host,$pathname:O?.location.pathname,$raw_user_agent:Ge.length>1e3?Ge.substring(0,997)+"...":Ge,$browser_version:He.browserVersion(Ge,navigator.vendor,rt.opera),$browser_language:He.browserLanguage(),$screen_height:O?.screen.height,$screen_width:O?.screen.width,$viewport_height:O?.innerHeight,$viewport_width:O?.innerWidth,$lib:"web",$lib_version:li.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Dd()/1e3})},people_properties:function(){if(!Ge)return{};var t=He.os(Ge),e=t.os_name,r=t.os_version;return Je(rh({$os:e,$os_version:r,$browser:He.browser(Ge,navigator.vendor,rt.opera)}),{$browser_version:He.browserVersion(Ge,navigator.vendor,rt.opera)})}},uy=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],md=function(){function t(e){Oe(this,t);var r="";e.token&&(r=e.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),this.props={},this.campaign_params_saved=!1,this.custom_campaign_params=e.custom_campaign_params||[],e.persistence_name?this.name="ph_"+e.persistence_name:this.name="ph_"+r+"_posthog",uy.indexOf(e.persistence.toLowerCase())===-1&&(j.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var i=e.persistence.toLowerCase();i==="localstorage"&&Le.is_supported()?this.storage=Le:i==="localstorage+cookie"&&qn.is_supported()?this.storage=qn:i==="sessionstorage"&&Ke.is_supported()?this.storage=Ke:i==="memory"?this.storage=ly:i==="cookie"?this.storage=Xt:qn.is_supported()?this.storage=qn:this.storage=Xt,this.user_state="anonymous",this.load(),this.update_config(e),this.save()}return Re(t,[{key:"properties",value:function(){var e={};return Ce(this.props,function(r,i){if(i===Ji&&Ar(r))for(var n=Object.keys(r),s=0;s<n.length;s++)e["$feature/".concat(n[s])]=r[n[s]];else o=i,l=!1,($t(a=X0)?l:Kp&&a.indexOf===Kp?a.indexOf(o)!=-1:(Ce(a,function(h){if(l||(l=h===o))return mh}),l))||(e[i]=r);var a,o,l}),e}},{key:"load",value:function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=Je({},e))}}},{key:"save",value:function(){this.disabled||this.storage.set(this.name,this.props,this.expire_days,this.cross_subdomain,this.secure)}},{key:"remove",value:function(){this.storage.remove(this.name,!1),this.storage.remove(this.name,!0)}},{key:"clear",value:function(){this.remove(),this.props={}}},{key:"register_once",value:function(e,r,i){var n=this;if(Ar(e)){ve(r)&&(r="None"),this.expire_days=ve(i)?this.default_expiry:i;var s=!1;if(Ce(e,function(a,o){n.props.hasOwnProperty(o)&&n.props[o]!==r||(n.props[o]=a,s=!0)}),s)return this.save(),!0}return!1}},{key:"register",value:function(e,r){var i=this;if(Ar(e)){this.expire_days=ve(r)?this.default_expiry:r;var n=!1;if(Ce(e,function(s,a){e.hasOwnProperty(a)&&i.props[a]!==s&&(i.props[a]=s,n=!0)}),n)return this.save(),!0}return!1}},{key:"unregister",value:function(e){e in this.props&&(delete this.props[e],this.save())}},{key:"update_campaign_params",value:function(){this.campaign_params_saved||(this.register(He.campaignParams(this.custom_campaign_params)),this.campaign_params_saved=!0)}},{key:"update_search_keyword",value:function(){this.register(He.searchInfo())}},{key:"update_referrer_info",value:function(){this.register({$referrer:this.props.$referrer||He.referrer(),$referring_domain:this.props.$referring_domain||He.referringDomain()})}},{key:"get_referrer_info",value:function(){return rh({$referrer:this.props.$referrer,$referring_domain:this.props.$referring_domain})}},{key:"safe_merge",value:function(e){return Ce(this.props,function(r,i){i in e||(e[i]=r)}),e}},{key:"update_config",value:function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)}},{key:"set_disabled",value:function(e){this.disabled=e,this.disabled?this.remove():this.save()}},{key:"set_cross_subdomain",value:function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())}},{key:"get_cross_subdomain",value:function(){return!!this.cross_subdomain}},{key:"set_secure",value:function(e){e!==this.secure&&(this.secure=e,this.remove(),this.save())}},{key:"set_event_timer",value:function(e,r){var i=this.props[Hn]||{};i[e]=r,this.props[Hn]=i,this.save()}},{key:"remove_event_timer",value:function(e){var r=(this.props[Hn]||{})[e];return ve(r)||(delete this.props[Hn][e],this.save()),r}},{key:"get_user_state",value:function(){return this.props[ah]||"anonymous"}},{key:"set_user_state",value:function(e){this.props[ah]=e,this.save()}},{key:"get_quota_limits",value:function(){return this.props[oh]||{}}},{key:"set_quota_limits",value:function(e){this.props[oh]=e,this.save()}}]),t}(),gd=2,py=4,Nd=3,dy=6,fy=0,my="rrweb/console@1",gy=Re(function t(e){var r,i,n=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Oe(this,t),Y(this,"bucketSize",100),Y(this,"refillRate",10),Y(this,"mutationBuckets",{}),Y(this,"loggedTracker",{}),Y(this,"refillBuckets",function(){Object.keys(n.mutationBuckets).forEach(function(a){n.mutationBuckets[a]=n.mutationBuckets[a]+n.refillRate,n.mutationBuckets[a]>=n.bucketSize&&delete n.mutationBuckets[a]})}),Y(this,"getNodeOrRelevantParent",function(a){var o=n.rrweb.mirror.getNode(a);if(o?.nodeName!=="svg"&&o instanceof Element){var l=o.closest("svg");if(l)return[n.rrweb.mirror.getId(l),l]}return[a,o]}),Y(this,"numberOfChanges",function(a){var o,l,h,c,u,f,p,m;return((o=(l=a.removes)===null||l===void 0?void 0:l.length)!==null&&o!==void 0?o:0)+((h=(c=a.attributes)===null||c===void 0?void 0:c.length)!==null&&h!==void 0?h:0)+((u=(f=a.texts)===null||f===void 0?void 0:f.length)!==null&&u!==void 0?u:0)+((p=(m=a.adds)===null||m===void 0?void 0:m.length)!==null&&p!==void 0?p:0)}),Y(this,"throttleMutations",function(a){if(a.type!==Nd||a.data.source!==fy)return a;var o=a.data,l=n.numberOfChanges(o);o.attributes&&(o.attributes=o.attributes.filter(function(c){var u,f,p,m=Gt(n.getNodeOrRelevantParent(c.id),2),g=m[0],d=m[1];return n.mutationBuckets[g]===0?!1:(n.mutationBuckets[g]=(u=n.mutationBuckets[g])!==null&&u!==void 0?u:n.bucketSize,n.mutationBuckets[g]=Math.max(n.mutationBuckets[g]-1,0),n.mutationBuckets[g]===0&&(n.loggedTracker[g]||(n.loggedTracker[g]=!0,(f=(p=n.options).onBlockedNode)===null||f===void 0||f.call(p,g,d))),c)}));var h=n.numberOfChanges(o);return h!==0||l===h?a:void 0}),this.rrweb=e,this.options=s,this.refillRate=(r=this.options.refillRate)!==null&&r!==void 0?r:this.refillRate,this.bucketSize=(i=this.options.bucketSize)!==null&&i!==void 0?i:this.bucketSize,setInterval(function(){n.refillBuckets()},1e3)}),zd=function(t){return t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t}(zd||{}),yy={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],maskRequestFn:function(t){return t},recordHeaders:!1,recordBody:!1,recordInitialRequests:!1,recordPerformance:!1,performanceEntryTypeToObserve:["first-input","navigation","paint","resource"],payloadSizeLimitBytes:1e6},vy=["authorization","x-forwarded-for","authorization","cookie","set-cookie","x-api-key","x-real-ip","remote-addr","forwarded","proxy-authorization","x-csrf-token","x-csrftoken","x-xsrf-token"],by=["/s/","/e/","/i/vo/e/"];function yd(t,e,r,i){var n=e?.["content-length"];return n&&parseInt(n)>r?"".concat(i," body too large to record"):t}var Jt,_y=function(t,e){var r,i,n,s=t.session_recording,a=s.recordHeaders!==!1&&e.recordHeaders,o=s.recordBody!==!1&&e.recordBody,l=s.recordPerformance!==!1&&e.recordPerformance,h=(r=s,n=Math.min(1e6,(i=r.payloadSizeLimitBytes)!==null&&i!==void 0?i:1e6),function(f){return f!=null&&f.requestBody&&(f.requestBody=yd(f.requestBody,f.requestHeaders,n,"Request")),f!=null&&f.responseBody&&(f.responseBody=yd(f.responseBody,f.responseHeaders,n,"Response")),f}),c=function(f){return h(function(g){var d=Vd(g.name);if(!(d&&d.pathname&&by.includes(d.pathname)))return g}((p=f,Object.keys((m=p.requestHeaders)!==null&&m!==void 0?m:{}).forEach(function(g){var d;vy.includes(g.toLowerCase())&&((d=p.requestHeaders)===null||d===void 0||delete d[g])}),p)));var p,m},u=Ht(t.session_recording.maskNetworkRequestFn);return u&&Ht(t.session_recording.maskCapturedNetworkRequestFn)&&j.warn("Both `maskNetworkRequestFn` and `maskCapturedNetworkRequestFn` are defined. `maskNetworkRequestFn` will be ignored."),u&&(t.session_recording.maskCapturedNetworkRequestFn=function(f){var p=t.session_recording.maskNetworkRequestFn({url:f.name});return ne(ne({},f),{},{name:p?.url})}),s.maskRequestFn=Ht(t.session_recording.maskCapturedNetworkRequestFn)?function(f){var p,m,g,d=c(f);return d&&(p=(m=(g=t.session_recording).maskCapturedNetworkRequestFn)===null||m===void 0?void 0:m.call(g,d))!==null&&p!==void 0?p:void 0}:void 0,s.maskRequestFn||(s.maskRequestFn=c),ne(ne(ne({},yy),s),{},{recordHeaders:a,recordBody:o,recordPerformance:l,recordInitialRequests:l})},wy="/s/",vd=3e5;(function(t){t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet"})(Jt||(Jt={}));var xy=[Jt.MouseMove,Jt.MouseInteraction,Jt.Scroll,Jt.ViewportResize,Jt.Input,Jt.TouchMove,Jt.MediaInteraction,Jt.Drag],Sy=function(){function t(e){var r=this;if(Oe(this,t),Y(this,"isIdle",!1),Y(this,"_linkedFlagSeen",!1),Y(this,"_lastActivityTimestamp",Date.now()),Y(this,"windowId",null),Y(this,"sessionId",null),Y(this,"_linkedFlag",null),Y(this,"_sampleRate",null),Y(this,"_minimumDuration",null),Y(this,"_forceAllowLocalhostNetworkCapture",!1),this.instance=e,this._captureStarted=!1,this._endpoint=wy,this.stopRrweb=void 0,this.receivedDecide=!1,O?.addEventListener("beforeunload",function(){r._flushBuffer()}),!this.instance.sessionManager)throw j.error("Session recording started without valid sessionManager"),new Error("Session recording started without valid sessionManager. This is a bug.");this.buffer=this.clearBuffer()}return Re(t,[{key:"started",get:function(){return this._captureStarted}},{key:"sessionManager",get:function(){if(!this.instance.sessionManager)throw j.error("Session recording started without valid sessionManager"),new Error("Session recording started without valid sessionManager. This is a bug.");return this.instance.sessionManager}},{key:"isSampled",get:function(){return ur(this._sampleRate)?this.instance.get_property(Ha):null}},{key:"sessionDuration",get:function(){var e,r,i=(e=this.buffer)===null||e===void 0?void 0:e.data[((r=this.buffer)===null||r===void 0?void 0:r.data.length)-1],n=this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionStartTimestamp;return i?i.timestamp-n:null}},{key:"isRecordingEnabled",get:function(){var e=!!this.instance.get_property(ih),r=!this.instance.config.disable_session_recording;return O&&e&&r}},{key:"isConsoleLogCaptureEnabled",get:function(){var e=!!this.instance.get_property(od),r=this.instance.config.enable_recording_console_log;return r??e}},{key:"recordingVersion",get:function(){var e,r=this.instance.get_property(ld);return((e=this.instance.config.session_recording)===null||e===void 0?void 0:e.recorderVersion)||r||"v1"}},{key:"networkPayloadCapture",get:function(){var e,r,i=this.instance.get_property(hd),n={recordHeaders:(e=this.instance.config.session_recording)===null||e===void 0?void 0:e.recordHeaders,recordBody:(r=this.instance.config.session_recording)===null||r===void 0?void 0:r.recordBody},s=n?.recordHeaders||i?.recordHeaders,a=n?.recordBody||i?.recordBody,o=this.instance.config.capture_performance||i?.capturePerformance;return s||a||o?{recordHeaders:s,recordBody:a,recordPerformance:o}:void 0}},{key:"status",get:function(){return this.receivedDecide?this.isRecordingEnabled?kt(this._linkedFlag)&&!this._linkedFlagSeen?"buffering":th(this.isSampled)?this.isSampled?"sampled":"disabled":"active":"disabled":"buffering"}},{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled?this.startCaptureAndTrySendingQueuedSnapshots():(this.stopRecording(),this.clearBuffer())}},{key:"stopRecording",value:function(){this._captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this._captureStarted=!1)}},{key:"makeSamplingDecision",value:function(e){var r,i=this.sessionId!==e;if(ur(this._sampleRate)){var n,s=this.isSampled;i||!th(s)?n=Math.random()<this._sampleRate:n=s,n||j.warn("[SessionSampling] Sample rate (".concat(this._sampleRate,") has determined that this sessionId (").concat(e,") will not be sent to the server.")),(r=this.instance.persistence)===null||r===void 0||r.register(Y({},Ha,n))}else{var a;(a=this.instance.persistence)===null||a===void 0||a.register(Y({},Ha,null))}}},{key:"afterDecideResponse",value:function(e){var r,i,n,s,a,o,l,h,c=this;this.instance.persistence&&this.instance.persistence.register((Y(h={},ih,!!e.sessionRecording),Y(h,od,(a=e.sessionRecording)===null||a===void 0?void 0:a.consoleLogRecordingEnabled),Y(h,ld,(o=e.sessionRecording)===null||o===void 0?void 0:o.recorderVersion),Y(h,hd,ne({capturePerformance:e.capturePerformance},(l=e.sessionRecording)===null||l===void 0?void 0:l.networkPayloadCapture)),h));var u=(r=e.sessionRecording)===null||r===void 0?void 0:r.sampleRate;this._sampleRate=ve(u)||$t(u)?null:parseFloat(u);var f,p=(i=e.sessionRecording)===null||i===void 0?void 0:i.minimumDurationMilliseconds;if(this._minimumDuration=ve(p)?null:p,this._linkedFlag=((n=e.sessionRecording)===null||n===void 0?void 0:n.linkedFlag)||null,(s=e.sessionRecording)!==null&&s!==void 0&&s.endpoint&&(this._endpoint=(f=e.sessionRecording)===null||f===void 0?void 0:f.endpoint),ur(this._sampleRate)&&this.sessionManager.onSessionId(function(g){c.makeSamplingDecision(g)}),kt(this._linkedFlag)){var m=this._linkedFlag;this.instance.onFeatureFlags(function(g){c._linkedFlagSeen=g.includes(m)})}this.receivedDecide=!0,this.startRecordingIfEnabled()}},{key:"log",value:function(e){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log";(r=this.instance.sessionRecording)===null||r===void 0||r.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:i,trace:[],payload:[JSON.stringify(e)]}},timestamp:Dd()})}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){this._startCapture()}},{key:"_startCapture",value:function(){var e=this;if(!ve(Object.assign)&&!this._captureStarted&&!this.instance.config.disable_session_recording){this._captureStarted=!0,this.sessionManager.checkAndGetSessionAndWindowId();var r=this.recordingVersion==="v2"?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.recordingVersion?Wn(this.instance.config.api_host+"/static/".concat(r,"?v=").concat(li.LIB_VERSION),function(i){if(i)return j.error("Could not load ".concat(r),i);e._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(e){var r;return e.type===Nd&&xy.indexOf((r=e.data)===null||r===void 0?void 0:r.source)!==-1}},{key:"_updateWindowAndSessionIds",value:function(e){var r=this._isInteractiveEvent(e);if(r||this.isIdle||e.timestamp-this._lastActivityTimestamp>vd&&(this.isIdle=!0,this._tryAddCustomEvent("sessionIdle",{reason:"user inactivity",timeSinceLastActive:e.timestamp-this._lastActivityTimestamp,threshold:vd})),r&&(this._lastActivityTimestamp=e.timestamp,this.isIdle&&(this.isIdle=!1,this._tryAddCustomEvent("sessionNoLongerIdle",{reason:"user activity",type:e.type}),this._tryTakeFullSnapshot())),!this.isIdle){var i=this.sessionManager.checkAndGetSessionAndWindowId(!r,e.timestamp),n=i.windowId,s=i.sessionId,a=this.sessionId!==s,o=this.windowId!==n;[gd,py].indexOf(e.type)===-1&&(o||a)&&this._tryTakeFullSnapshot(),this.windowId=n,this.sessionId=s}}},{key:"_tryRRwebMethod",value:function(e){if(!this._captureStarted)return!1;try{return e(),!0}catch(r){return j.error("[Session-Recording] using rrweb when not started.",r),!1}}},{key:"_tryAddCustomEvent",value:function(e,r){var i=this;return this._tryRRwebMethod(function(){var n;return(n=i.rrwebRecord)===null||n===void 0?void 0:n.addCustomEvent(e,r)})}},{key:"_tryTakeFullSnapshot",value:function(){var e=this;return this._tryRRwebMethod(function(){var r;return(r=e.rrwebRecord)===null||r===void 0?void 0:r.takeFullSnapshot()})}},{key:"_onScriptLoaded",value:function(){var e,r=this,i={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=O.rrweb?O.rrweb.record:O.rrwebRecord;for(var n=this.instance.config.session_recording,s=0,a=Object.entries(n||{});s<a.length;s++){var o=Gt(a[s],2),l=o[0],h=o[1];l in i&&(i[l]=h)}this.rrwebRecord?(this.mutationRateLimiter=(e=this.mutationRateLimiter)!==null&&e!==void 0?e:new gy(this.rrwebRecord,{onBlockedNode:function(c,u){var f="Too many mutations on node '".concat(c,"'. Rate limiting. This could be due to SVG animations or something similar");j.info(f,{node:u}),r.log("[PostHog Recorder] "+f,"warn")}}),this.stopRrweb=this.rrwebRecord(ne({emit:function(c){r.onRRwebEmit(c)},plugins:this._gatherRRWebPlugins()},i)),this.instance._addCaptureHook(function(c){try{if(c==="$pageview"){var u=O?r._maskUrl(O.location.href):"";if(!u)return;r._tryAddCustomEvent("$pageview",{href:u})}}catch(f){j.error("Could not add $pageview to rrweb session",f)}}),this._lastActivityTimestamp=Date.now(),this.isIdle=!1):j.error("onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.")}},{key:"_gatherRRWebPlugins",value:function(){var e=[];return rt.rrwebConsoleRecord&&this.isConsoleLogCaptureEnabled&&e.push(rt.rrwebConsoleRecord.getRecordConsolePlugin()),this.networkPayloadCapture&&Ht(rt.getRecordNetworkPlugin)&&(!hy.includes(location.hostname)||this._forceAllowLocalhostNetworkCapture?e.push(rt.getRecordNetworkPlugin(_y(this.instance.config,this.networkPayloadCapture))):j.info("[SessionReplay-NetworkCapture] not started because we are on localhost.")),e}},{key:"onRRwebEmit",value:function(e){if(e&&Ar(e)){if(e.type===zd.Meta){var r=this._maskUrl(e.data.href);if(!r)return;e.data.href=r}var i=this.mutationRateLimiter?this.mutationRateLimiter.throttleMutations(e):e;if(i){var n=function(o){var l=o;if(l&&Ar(l)&&l.type===dy&&Ar(l.data)&&l.data.plugin===my){l.data.payload.payload.length>10&&(l.data.payload.payload=l.data.payload.payload.slice(0,10),l.data.payload.payload.push("...[truncated]"));for(var h=[],c=0;c<l.data.payload.payload.length;c++)l.data.payload.payload[c]&&l.data.payload.payload[c].length>2e3?h.push(l.data.payload.payload[c].slice(0,2e3)+"...[truncated]"):h.push(l.data.payload.payload[c]);return l.data.payload.payload=h,o}return o}(i),s=JSON.stringify(n).length;if(this._updateWindowAndSessionIds(n),!this.isIdle){var a={$snapshot_bytes:s,$snapshot_data:n,$session_id:this.sessionId,$window_id:this.windowId};this.status!=="disabled"?this._captureSnapshotBuffered(a):this.clearBuffer()}}}}},{key:"_maskUrl",value:function(e){var r=this.instance.config.session_recording;if(r.maskNetworkRequestFn){var i,n={url:e};return(i=n=r.maskNetworkRequestFn(n))===null||i===void 0?void 0:i.url}return e}},{key:"clearBuffer",value:function(){return this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_flushBuffer",value:function(){var e=this;this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0);var r=this._minimumDuration,i=this.sessionDuration,n=ur(i)&&i>=0,s=ur(r)&&n&&i<r;return this.status==="buffering"||s?(this.flushBufferTimer=setTimeout(function(){e._flushBuffer()},2e3),this.buffer||this.clearBuffer()):this.buffer&&this.buffer.data.length!==0?(this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.clearBuffer()):this.buffer||this.clearBuffer()}},{key:"_captureSnapshotBuffered",value:function(e){var r,i=this,n=2+(((r=this.buffer)===null||r===void 0?void 0:r.data.length)||0);(!this.buffer||this.buffer.size+e.$snapshot_bytes+n>943718.4||this.buffer.sessionId&&this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),$t(this.buffer.sessionId)&&!$t(this.sessionId)&&(this.buffer.sessionId=this.sessionId,this.buffer.windowId=this.windowId),this.buffer.size+=e.$snapshot_bytes,this.buffer.data.push(e.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){i._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(e){this.instance.capture("$snapshot",e,{transport:"XHR",method:"POST",endpoint:this._endpoint,_noTruncate:!0,_batchKey:"recordings",_metrics:{rrweb_full_snapshot:e.$snapshot_data.type===gd}})}}]),t}(),ky=function(){function t(e){Oe(this,t),this.instance=e,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return Re(t,[{key:"call",value:function(){var e=this,r=gh(JSON.stringify({token:this.instance.config.token,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(Xi),group_properties:this.instance.get_property(Er),disable_flags:this.instance.config.advanced_disable_feature_flags||this.instance.config.advanced_disable_feature_flags_on_first_load||void 0}));this.instance._send_request("".concat(this.instance.config.api_host,"/decide/?v=3"),{data:r,verbose:!0},{method:"POST"},function(i){return e.parseDecideResponse(i)})}},{key:"parseDecideResponse",value:function(e){var r,i=this;if(this.instance.featureFlags.setReloadingPaused(!1),this.instance.featureFlags._startReloadTimer(),e?.status!==0){if(!K||!K.body)return j.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){i.parseDecideResponse(e)},500);this.instance.toolbar.afterDecideResponse(e),(r=this.instance.sessionRecording)===null||r===void 0||r.afterDecideResponse(e),Pr.afterDecideResponse(e,this.instance),this.instance._afterDecideResponse(e),this.instance.config.advanced_disable_feature_flags_on_first_load||this.instance.config.advanced_disable_feature_flags||this.instance.featureFlags.receivedFeatureFlags(e);var n=O?.extendPostHogWithSurveys;e.surveys&&!n&&Wn(this.instance.config.api_host+"/static/surveys.js",function(c){if(c)return j.error("Could not load surveys script",c);O.extendPostHogWithSurveys(i.instance)});var s=O?.extendPostHogWithExceptionAutoCapture;if(e.autocaptureExceptions&&e.autocaptureExceptions&&ve(s)&&Wn(this.instance.config.api_host+"/static/exception-autocapture.js",function(c){if(c)return j.error("Could not load exception autocapture script",c);O.extendPostHogWithExceptionAutocapture(i.instance,e)}),e.siteApps)if(this.instance.config.opt_in_site_apps){var a,o=this.instance.config.api_host,l=oi(e.siteApps);try{var h=function(){var c=a.value,u=c.id,f=c.url,p=[o,o[o.length-1]==="/"&&f[0]==="/"?f.substring(1):f].join("");rt["__$$ph_site_app_".concat(u)]=i.instance,Wn(p,function(m){m&&j.error("Error while initializing PostHog app with config id ".concat(u),m)})};for(l.s();!(a=l.n()).done;)h()}catch(c){l.e(c)}finally{l.f()}}else e.siteApps.length>0&&j.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else j.error("Failed to fetch feature flags from PostHog.")}}]),t}(),Ey=["https://app.posthog.com","https://eu.posthog.com"],Py=["source"],Ay=O!=null&&O.location?Qa(O.location.hash,"__posthog")||Qa(location.hash,"state"):null,Cy=function(){function t(e){Oe(this,t),this.instance=e}return Re(t,[{key:"afterDecideResponse",value:function(e){var r=e.toolbarParams||e.editorParams||(e.toolbarVersion?{toolbarVersion:e.toolbarVersion}:{});e.isAuthenticated&&r.toolbarVersion&&r.toolbarVersion.indexOf("toolbar")===0&&this.loadToolbar(ne({},r))}},{key:"maybeLoadToolbar",value:function(){var e,r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!O||!K)return!1;i=(e=i)!==null&&e!==void 0?e:O.location,s=(r=s)!==null&&r!==void 0?r:O.history;try{if(!n){try{O.localStorage.setItem("test","test"),O.localStorage.removeItem("test")}catch{return!1}n=O?.localStorage}var a,o=Ay||Qa(i.hash,"__posthog")||Qa(i.hash,"state"),l=o?td(function(){return JSON.parse(atob(decodeURIComponent(o)))})||td(function(){return JSON.parse(decodeURIComponent(o))}):null;return l&&l.action==="ph_authorize"?((a=l).source="url",a&&Object.keys(a).length>0&&(l.desiredHash?i.hash=l.desiredHash:s?s.replaceState("",K.title,i.pathname+i.search):i.hash="")):((a=JSON.parse(n.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete a.userIntent),!(!a.token||this.instance.config.token!==a.token)&&(this.loadToolbar(a),!0)}catch{return!1}}},{key:"loadToolbar",value:function(e){var r=this;if(!O||rt._postHogToolbarLoaded)return!1;rt._postHogToolbarLoaded=!0;var i=this.instance.config.api_host,n=3e5,s=Math.floor(Date.now()/n)*n,a="".concat(i).concat(i.endsWith("/")?"":"/","static/toolbar.js?t=").concat(s),o=!Ey.includes(this.instance.config.api_host)&&this.instance.config.advanced_disable_toolbar_metrics,l=ne(ne({token:this.instance.config.token},e),{},{apiURL:i},o?{instrument:!1}:{});l.source;var h=z0(l,Py);return O.localStorage.setItem("_postHogToolbarParams",JSON.stringify(h)),Wn(a,function(c){c?j.error("Failed to load toolbar",c):(rt.ph_load_toolbar||rt.ph_load_editor)(l,r.instance)}),Un(O,"turbolinks:load",function(){rt._postHogToolbarLoaded=!1,r.loadToolbar(l)}),!0}},{key:"_loadEditor",value:function(e){return this.loadToolbar(e)}},{key:"maybeLoadEditor",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;return this.maybeLoadToolbar(e,r,i)}}]),t}(),Ty="__ph_opt_in_out_";function Iy(t,e){Gd(!0,t,e)}function My(t,e){Gd(!1,t,e)}function Dy(t,e){return jd(t,e)==="1"}function bd(t,e){return!!function(r){if(r&&r.respectDnt){var i=r&&r.window||O,n=i?.navigator,s=!1;return Ce([n?.doNotTrack,n.msDoNotTrack,i.doNotTrack],function(a){xe([!0,1,"1","yes"],a)&&(s=!0)}),s}return!1}(e)||jd(t,e)==="0"}function Fy(t,e){vh(e=e||{}).remove(bh(t,e),!!e.crossSubdomainCookie)}function vh(t){return(t=t||{}).persistenceType==="localStorage"?Le:t.persistenceType==="localStorage+cookie"?qn:Xt}function bh(t,e){return((e=e||{}).persistencePrefix||Ty)+t}function jd(t,e){return vh(e).get(bh(t,e))}function Gd(t,e,r){kt(e)&&e.length?(vh(r=r||{}).set(bh(e,r),t?1:0,ur(r.cookieExpiration)?r.cookieExpiration:null,r.crossSubdomainCookie,r.secureCookie),r.capture&&t&&r.capture(r.captureEventName||"$opt_in",r.captureProperties||{},{send_instantly:!0})):j.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token")}var Hd=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3e3;Oe(this,t),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=e}return Re(t,[{key:"setPollInterval",value:function(e){this._pollInterval=e,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return new Date().getTime()}}]),t}(),$y=function(t){Ad(r,Hd);var e=Cd(r);function r(i){var n,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3e3;return Oe(this,r),(n=e.call(this,s)).handlePollRequest=i,n}return Re(r,[{key:"enqueue",value:function(i,n,s){this._event_queue.push({url:i,data:n,options:s}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var i=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(i._event_queue.length>0){var n=i.formatQueue(),s=function(o){var l=n[o],h=l.url,c=l.data,u=l.options;Ce(c,function(f,p){c[p].offset=Math.abs(c[p].timestamp-i.getTime()),delete c[p].timestamp}),i.handlePollRequest(h,c,u)};for(var a in n)s(a);i._event_queue.length=0,i._empty_queue_count=0}else i._empty_queue_count++;i._empty_queue_count>4&&(i.isPolling=!1,i._empty_queue_count=0),i.isPolling&&i.poll()},this._pollInterval)}},{key:"unload",value:function(){var i=this;clearTimeout(this._poller);var n=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var s=Object.values(n);[].concat(Ql(s.filter(function(a){return a.url.indexOf("/e")===0})),Ql(s.filter(function(a){return a.url.indexOf("/e")!==0}))).map(function(a){var o=a.url,l=a.data,h=a.options;i.handlePollRequest(o,l,ne(ne({},h),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var i={};return Ce(this._event_queue,function(n){var s=n.url,a=n.data,o=n.options,l=(o?o._batchKey:null)||s;ve(i[l])&&(i[l]={data:[],url:s,options:o}),o&&i[l].options&&i[l].options._metrics&&!i[l].options._metrics.rrweb_full_snapshot&&(i[l].options._metrics.rrweb_full_snapshot=o._metrics.rrweb_full_snapshot),i[l].data.push(a)}),i}}]),r}(),Et=Uint8Array,ot=Uint16Array,Qi=Uint32Array,_h=new Et([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),wh=new Et([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),_d=new Et([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qd=function(t,e){for(var r=new ot(31),i=0;i<31;++i)r[i]=e+=1<<t[i-1];var n=new Qi(r[30]);for(i=1;i<30;++i)for(var s=r[i];s<r[i+1];++s)n[s]=s-r[i]<<5|i;return[r,n]},Ud=qd(_h,2),Oy=Ud[0],hh=Ud[1];Oy[28]=258,hh[258]=28;for(ch=qd(wh,0)[1],eo=new ot(32768),Ie=0;Ie<32768;++Ie)Sr=(43690&Ie)>>>1|(21845&Ie)<<1,Sr=(61680&(Sr=(52428&Sr)>>>2|(13107&Sr)<<2))>>>4|(3855&Sr)<<4,eo[Ie]=((65280&Sr)>>>8|(255&Sr)<<8)>>>1;var Sr,ch,eo,Ie,Zn=function(t,e,r){for(var i=t.length,n=0,s=new ot(e);n<i;++n)++s[t[n]-1];var a,o=new ot(e);for(n=0;n<e;++n)o[n]=o[n-1]+s[n-1]<<1;if(r){a=new ot(1<<e);var l=15-e;for(n=0;n<i;++n)if(t[n])for(var h=n<<4|t[n],c=e-t[n],u=o[t[n]-1]++<<c,f=u|(1<<c)-1;u<=f;++u)a[eo[u]>>>l]=h}else for(a=new ot(i),n=0;n<i;++n)a[n]=eo[o[t[n]-1]++]>>>15-t[n];return a},hi=new Et(288);for(Ie=0;Ie<144;++Ie)hi[Ie]=8;for(Ie=144;Ie<256;++Ie)hi[Ie]=9;for(Ie=256;Ie<280;++Ie)hi[Ie]=7;for(Ie=280;Ie<288;++Ie)hi[Ie]=8;var to=new Et(32);for(Ie=0;Ie<32;++Ie)to[Ie]=5;var ni,Ry=Zn(hi,9,0),Ly=Zn(to,5,0),Wd=function(t){return(t/8>>0)+(7&t&&1)},Zd=function(t,e,r){(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length);var i=new(t instanceof ot?ot:t instanceof Qi?Qi:Et)(r-e);return i.set(t.subarray(e,r)),i},cr=function(t,e,r){r<<=7&e;var i=e/8>>0;t[i]|=r,t[i+1]|=r>>>8},jn=function(t,e,r){r<<=7&e;var i=e/8>>0;t[i]|=r,t[i+1]|=r>>>8,t[i+2]|=r>>>16},Jl=function(t,e){for(var r=[],i=0;i<t.length;++i)t[i]&&r.push({s:i,f:t[i]});var n=r.length,s=r.slice();if(!n)return[new Et(0),0];if(n==1){var a=new Et(r[0].s+1);return a[r[0].s]=1,[a,1]}r.sort(function(S,T){return S.f-T.f}),r.push({s:-1,f:25001});var o=r[0],l=r[1],h=0,c=1,u=2;for(r[0]={s:-1,f:o.f+l.f,l:o,r:l};c!=n-1;)o=r[r[h].f<r[u].f?h++:u++],l=r[h!=c&&r[h].f<r[u].f?h++:u++],r[c++]={s:-1,f:o.f+l.f,l:o,r:l};var f=s[0].s;for(i=1;i<n;++i)s[i].s>f&&(f=s[i].s);var p=new ot(f+1),m=By(r[c-1],p,0);if(m>e){i=0;var g=0,d=m-e,y=1<<d;for(s.sort(function(S,T){return p[T.s]-p[S.s]||S.f-T.f});i<n;++i){var v=s[i].s;if(!(p[v]>e))break;g+=y-(1<<m-p[v]),p[v]=e}for(g>>>=d;g>0;){var b=s[i].s;p[b]<e?g-=1<<e-p[b]++-1:++i}for(;i>=0&&g;--i){var _=s[i].s;p[_]==e&&(--p[_],++g)}m=e}return[new Et(p),m]},By=function t(e,r,i){return e.s==-1?Math.max(t(e.l,r,i+1),t(e.r,r,i+1)):r[e.s]=i},wd=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new ot(++e),i=0,n=t[0],s=1,a=function(l){r[i++]=l},o=1;o<=e;++o)if(t[o]==n&&o!=e)++s;else{if(!n&&s>2){for(;s>138;s-=138)a(32754);s>2&&(a(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(a(n),--s;s>6;s-=6)a(8304);s>2&&(a(s-3<<5|8208),s=0)}for(;s--;)a(n);s=1,n=t[o]}return[r.subarray(0,i),e]},Gn=function(t,e){for(var r=0,i=0;i<e.length;++i)r+=t[i]*e[i];return r},qa=function(t,e,r){var i=r.length,n=Wd(e+2);t[n]=255&i,t[n+1]=i>>>8,t[n+2]=255^t[n],t[n+3]=255^t[n+1];for(var s=0;s<i;++s)t[n+s+4]=r[s];return 8*(n+4+i)},xd=function(t,e,r,i,n,s,a,o,l,h,c){cr(e,c++,r),++n[256];for(var u=Jl(n,15),f=u[0],p=u[1],m=Jl(s,15),g=m[0],d=m[1],y=wd(f),v=y[0],b=y[1],_=wd(g),S=_[0],T=_[1],x=new ot(19),w=0;w<v.length;++w)x[31&v[w]]++;for(w=0;w<S.length;++w)x[31&S[w]]++;for(var M=Jl(x,7),k=M[0],I=M[1],P=19;P>4&&!k[_d[P-1]];--P);var A,E,F,$,D=h+5<<3,C=Gn(n,hi)+Gn(s,to)+a,R=Gn(n,f)+Gn(s,g)+a+14+3*P+Gn(x,k)+(2*x[16]+3*x[17]+7*x[18]);if(D<=C&&D<=R)return qa(e,c,t.subarray(l,l+h));if(cr(e,c,1+(R<C)),c+=2,R<C){A=Zn(f,p,0),E=f,F=Zn(g,d,0),$=g;var B=Zn(k,I,0);for(cr(e,c,b-257),cr(e,c+5,T-1),cr(e,c+10,P-4),c+=14,w=0;w<P;++w)cr(e,c+3*w,k[_d[w]]);c+=3*P;for(var U=[v,S],Z=0;Z<2;++Z){var X=U[Z];for(w=0;w<X.length;++w){var H=31&X[w];cr(e,c,B[H]),c+=k[H],H>15&&(cr(e,c,X[w]>>>5&127),c+=X[w]>>>12)}}}else A=Ry,E=hi,F=Ly,$=to;for(w=0;w<o;++w)if(i[w]>255){H=i[w]>>>18&31,jn(e,c,A[H+257]),c+=E[H+257],H>7&&(cr(e,c,i[w]>>>23&31),c+=_h[H]);var ie=31&i[w];jn(e,c,F[ie]),c+=$[ie],ie>3&&(jn(e,c,i[w]>>>5&8191),c+=wh[ie])}else jn(e,c,A[i[w]]),c+=E[i[w]];return jn(e,c,A[256]),c+E[256]},Vy=new Qi([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ny=new Et(0),zy=function(){for(var t=new Qi(256),e=0;e<256;++e){for(var r=e,i=9;--i;)r=(1&r&&3988292384)^r>>>1;t[e]=r}return t}(),jy=function(){var t=4294967295;return{p:function(e){for(var r=t,i=0;i<e.length;++i)r=zy[255&r^e[i]]^r>>>8;t=r},d:function(){return 4294967295^t}}},Gy=function(t,e,r,i,n){return function(s,a,o,l,h,c){var u=s.length,f=new Et(l+u+5*(1+Math.floor(u/7e3))+h),p=f.subarray(l,f.length-h),m=0;if(!a||u<8)for(var g=0;g<=u;g+=65535){var d=g+65535;d<u?m=qa(p,m,s.subarray(g,d)):(p[g]=c,m=qa(p,m,s.subarray(g,u)))}else{for(var y=Vy[a-1],v=y>>>13,b=8191&y,_=(1<<o)-1,S=new ot(32768),T=new ot(_+1),x=Math.ceil(o/3),w=2*x,M=function(lt){return(s[lt]^s[lt+1]<<x^s[lt+2]<<w)&_},k=new Qi(25e3),I=new ot(288),P=new ot(32),A=0,E=0,F=(g=0,0),$=0,D=0;g<u;++g){var C=M(g),R=32767&g,B=T[C];if(S[R]=B,T[C]=R,$<=g){var U=u-g;if((A>7e3||F>24576)&&U>423){m=xd(s,p,0,k,I,P,E,F,D,g-D,m),F=A=E=0,D=g;for(var Z=0;Z<286;++Z)I[Z]=0;for(Z=0;Z<30;++Z)P[Z]=0}var X=2,H=0,ie=b,le=R-B&32767;if(U>2&&C==M(g-le))for(var se=Math.min(v,U)-1,te=Math.min(32767,g),Ee=Math.min(258,U);le<=te&&--ie&&R!=B;){if(s[g+X]==s[g+X-le]){for(var ge=0;ge<Ee&&s[g+ge]==s[g+ge-le];++ge);if(ge>X){if(X=ge,H=le,ge>se)break;var Me=Math.min(le,ge-2),Pe=0;for(Z=0;Z<Me;++Z){var J=g-le+Z+32768&32767,Ze=J-S[J]+32768&32767;Ze>Pe&&(Pe=Ze,B=J)}}}le+=(R=B)-(B=S[R])+32768&32767}if(H){k[F++]=268435456|hh[X]<<18|ch[H];var Pt=31&hh[X],At=31&ch[H];E+=_h[Pt]+wh[At],++I[257+Pt],++P[At],$=g+X,++A}else k[F++]=s[g],++I[s[g]]}}m=xd(s,p,c,k,I,P,E,F,D,g-D,m),c||(m=qa(p,m,Ny))}return Zd(f,0,l+Wd(m)+h)}(t,e.level==null?6:e.level,e.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,r,i,!n)},uh=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8},Hy=function(t,e){var r=e.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=e.level<2?4:e.level==9?2:0,t[9]=3,e.mtime!=0&&uh(t,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),r){t[3]=8;for(var i=0;i<=r.length;++i)t[i+10]=r.charCodeAt(i)}},qy=function(t){return 10+(t.filename&&t.filename.length+1||0)};function Uy(t,e){e===void 0&&(e={});var r=jy(),i=t.length;r.p(t);var n=Gy(t,e,qy(e),8),s=n.length;return Hy(n,e),uh(n,s-8,r.d()),uh(n,s-4,i),n}function Wy(t,e){var r=t.length;if(!e&&typeof TextEncoder<"u")return new TextEncoder().encode(t);for(var i=new Et(t.length+(t.length>>>1)),n=0,s=function(h){i[n++]=h},a=0;a<r;++a){if(n+5>i.length){var o=new Et(n+8+(r-a<<1));o.set(i),i=o}var l=t.charCodeAt(a);l<128||e?s(l):l<2048?(s(192|l>>>6),s(128|63&l)):l>55295&&l<57344?(s(240|(l=65536+(1047552&l)|1023&t.charCodeAt(++a))>>>18),s(128|l>>>12&63),s(128|l>>>6&63),s(128|63&l)):(s(224|l>>>12),s(128|l>>>6&63),s(128|63&l))}return Zd(i,0,n)}(function(t){t.GZipJS="gzip-js",t.Base64="base64"})(ni||(ni={}));var Yd=function(t,e,r){var i=e||{};i.ip=r.ip?1:0,i._=new Date().getTime().toString(),i.ver=li.LIB_VERSION;var n=t.split("?");if(n.length>1){var s,a=oi(n[1].split("&"));try{for(a.s();!(s=a.n()).done;){var o=s.value.split("=")[0];ve(i[o])||delete i[o]}}catch(h){a.e(h)}finally{a.f()}}var l=t.indexOf("?")>-1?"&":"?";return t+l+function(h){var c,u,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&",p=[];return Ce(h,function(m,g){ve(m)||ve(g)||g==="undefined"||(c=encodeURIComponent(m.toString()),u=encodeURIComponent(g),p[p.length]=u+"="+c)}),p.join(f)}(i)},xh=function t(e,r){if(r.blob&&e.buffer)return new Blob([Jp(e)?e:e.buffer],{type:"text/plain"});if(r.sendBeacon||r.blob){var i=t(e,{method:"POST"});return new Blob([i],{type:"application/x-www-form-urlencoded"})}return r.method!=="POST"?null:(n=We(e)||Jp(e)?"data="+encodeURIComponent(e):"data="+encodeURIComponent(e.data),"compression"in e&&e.compression&&(n+="&compression="+e.compression),n);var n},Jd=function(t){var e=t.url,r=t.data,i=t.headers,n=t.options,s=t.callback,a=t.retriesPerformedSoFar,o=t.retryQueue,l=t.onXHRError,h=t.timeout,c=h===void 0?6e4:h,u=t.onResponse;ur(a)&&a>0&&(e=Yd(e,{retry_count:a},{}));var f=new XMLHttpRequest;f.open(n.method||"GET",e,!0);var p=xh(r,n);Ce(i,function(m,g){f.setRequestHeader(g,m)}),n.method!=="POST"||n.blob||f.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),f.timeout=c,f.withCredentials=!0,f.onreadystatechange=function(){if(f.readyState===4)if(u?.(f),f.status===200){if(s){var m;try{m=JSON.parse(f.responseText)}catch(g){return void j.error(g)}s(m)}}else Ht(l)&&l(f),(f.status<400||f.status>500)&&o.enqueue({url:e,data:r,options:n,headers:i,retriesPerformedSoFar:(a||0)+1,callback:s}),s?.({status:0})},f.send(p)},Zy=18e5,Yy=function(t){Ad(r,Hd);var e=Cd(r);function r(i,n){var s;return Oe(this,r),(s=e.call(this)).isPolling=!1,s.queue=[],s.areWeOnline=!0,s.onXHRError=i,s.rateLimiter=n,!ve(O)&&"onLine"in O.navigator&&(s.areWeOnline=O.navigator.onLine,O.addEventListener("online",function(){s._handleWeAreNowOnline()}),O.addEventListener("offline",function(){s.areWeOnline=!1})),s}return Re(r,[{key:"enqueue",value:function(i){var n=i.retriesPerformedSoFar||0;if(!(n>=10)){var s=function(l){var h=3e3*Math.pow(2,l),c=h/2,u=Math.min(Zy,h),f=(Math.random()-.5)*(u-c);return Math.ceil(u+f)}(n),a=new Date(Date.now()+s);this.queue.push({retryAt:a,requestData:i});var o="Enqueued failed request for retry in ".concat(s);navigator.onLine||(o+=" (Browser is offline)"),j.warn(o),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var i=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){i.areWeOnline&&i.queue.length>0&&i.flush(),i.poll()},this._pollInterval)}},{key:"flush",value:function(){var i=new Date(Date.now()),n=this.queue.filter(function(l){return l.retryAt<i});if(n.length>0){this.queue=this.queue.filter(function(l){return l.retryAt>=i});var s,a=oi(n);try{for(a.s();!(s=a.n()).done;){var o=s.value.requestData;this._executeXhrRequest(o)}}catch(l){a.e(l)}finally{a.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var i,n=oi(this.queue);try{for(n.s();!(i=n.n()).done;){var s=i.value.requestData,a=s.url,o=s.data,l=s.options;if(this.rateLimiter.isRateLimited(l._batchKey))j.warn("[RetryQueue] is quota limited. Dropping request.");else try{O?.navigator.sendBeacon(a,xh(o,ne(ne({},l),{},{sendBeacon:!0})))}catch(h){j.error(h)}}}catch(h){n.e(h)}finally{n.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(i){var n=i.url,s=i.data,a=i.options,o=i.headers,l=i.callback,h=i.retriesPerformedSoFar;this.rateLimiter.isRateLimited(a._batchKey)||Jd({url:n,data:s||{},options:a||{},headers:o||{},retriesPerformedSoFar:h||0,callback:l,retryQueue:this,onXHRError:this.onXHRError,onResponse:this.rateLimiter.checkForLimiting})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),r}(),Ba=1800,Sd=60,Jy=864e5,Xy=function(){function t(e,r,i,n){Oe(this,t),Y(this,"_sessionIdChangedHandlers",[]),this.config=e,this.persistence=r,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this._sessionIdGenerator=i||si,this._windowIdGenerator=n||si;var s=e.persistence_name||e.token,a=e.session_idle_timeout_seconds||Ba;if(ur(a)?a>Ba?j.warn("session_idle_timeout_seconds cannot be greater than 30 minutes. Using 30 minutes instead."):a<Sd&&j.warn("session_idle_timeout_seconds cannot be less than 60 seconds. Using 60 seconds instead."):(j.warn("session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),a=Ba),this._sessionTimeoutMs=1e3*Math.min(Math.max(a,Sd),Ba),this._window_id_storage_key="ph_"+s+"_window_id",this._primary_window_exists_storage_key="ph_"+s+"_primary_window_exists",this._canUseSessionStorage()){var o=Ke.parse(this._window_id_storage_key),l=Ke.parse(this._primary_window_exists_storage_key);o&&!l?this._windowId=o:Ke.remove(this._window_id_storage_key),Ke.set(this._primary_window_exists_storage_key,!0)}this._listenToReloadWindow()}return Re(t,[{key:"onSessionId",value:function(e){var r=this;return ve(this._sessionIdChangedHandlers)&&(this._sessionIdChangedHandlers=[]),this._sessionIdChangedHandlers.push(e),this._sessionId&&e(this._sessionId,this._windowId),function(){r._sessionIdChangedHandlers=r._sessionIdChangedHandlers.filter(function(i){return i!==e})}}},{key:"_canUseSessionStorage",value:function(){return this.config.persistence!=="memory"&&!this.persistence.disabled&&Ke.is_supported()}},{key:"_setWindowId",value:function(e){e!==this._windowId&&(this._windowId=e,this._canUseSessionStorage()&&Ke.set(this._window_id_storage_key,e))}},{key:"_getWindowId",value:function(){return this._windowId?this._windowId:this._canUseSessionStorage()?Ke.parse(this._window_id_storage_key):null}},{key:"_setSessionId",value:function(e,r,i){e===this._sessionId&&r===this._sessionActivityTimestamp&&i===this._sessionStartTimestamp||(this._sessionStartTimestamp=i,this._sessionActivityTimestamp=r,this._sessionId=e,this.persistence.register(Y({},Xa,[r,e,i])))}},{key:"_getSessionId",value:function(){if(this._sessionId&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this._sessionId,this._sessionStartTimestamp];var e=this.persistence.props[Xa];return We(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}},{key:"resetSessionId",value:function(){this._setSessionId(null,null,null)}},{key:"_listenToReloadWindow",value:function(){var e=this;O?.addEventListener("beforeunload",function(){e._canUseSessionStorage()&&Ke.remove(e._primary_window_exists_storage_key)})}},{key:"checkAndGetSessionAndWindowId",value:function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime(),i=Gt(this._getSessionId(),3),n=i[0],s=i[1],a=i[2],o=this._getWindowId(),l=a&&a>0&&Math.abs(r-a)>Jy,h=!1,c=!s,u=!e&&Math.abs(r-n)>this._sessionTimeoutMs;c||u||l?(s=this._sessionIdGenerator(),o=this._windowIdGenerator(),a=r,h=!0):o||(o=this._windowIdGenerator(),h=!0);var f=n===0||!e||l?r:n,p=a===0?new Date().getTime():a;return this._setWindowId(o),this._setSessionId(s,f,p),h&&this._sessionIdChangedHandlers.forEach(function(m){return m(s,o)}),{sessionId:s,windowId:o,sessionStartTimestamp:p}}}]),t}(),Ky=Re(function t(e,r,i,n){Oe(this,t),this.name="posthog-js",this.setupOnce=function(s){s(function(a){var o,l,h,c,u;if(a.level!=="error"||!e.__loaded)return a;a.tags||(a.tags={});var f=e.config.ui_host||e.config.api_host;a.tags["PostHog Person URL"]=f+"/person/"+e.get_distinct_id(),e.sessionRecordingStarted()&&(a.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var p=((o=a.exception)===null||o===void 0?void 0:o.values)||[],m={$exception_message:(l=p[0])===null||l===void 0?void 0:l.value,$exception_type:(h=p[0])===null||h===void 0?void 0:h.type,$exception_personURL:f+"/person/"+e.get_distinct_id(),$sentry_event_id:a.event_id,$sentry_exception:a.exception,$sentry_exception_message:(c=p[0])===null||c===void 0?void 0:c.value,$sentry_exception_type:(u=p[0])===null||u===void 0?void 0:u.type,$sentry_tags:a.tags};return r&&i&&(m.$sentry_url=(n||"https://sentry.io/organizations/")+r+"/issues/?project="+i+"&query="+a.event_id),e.capture("$exception",m),a})}}),Qy=function(t){Promise&&Promise.resolve||j.warn("This browser does not have Promise support, and can not use the segment integration");var e=function(r,i){r.event.userId||r.event.anonymousId===t.get_distinct_id()||t.reset(),r.event.userId&&r.event.userId!==t.get_distinct_id()&&(t.register({distinct_id:r.event.userId}),t.reloadFeatureFlags());var n=t._calculate_event_properties(i,r.event.properties);return r.event.properties=Object.assign({},n,r.event.properties),r};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(r){return e(r,r.event.event)},page:function(r){return e(r,"$pageview")},identify:function(r){return e(r,"$identify")},screen:function(r){return e(r,"$screen")}}},ev=function(){function t(){var e=this;Oe(this,t),Y(this,"_hasSeenPageView",!1),Y(this,"_updateScrollData",function(){var r,i,n,s;e._pageViewData||(e._pageViewData=e._createPageViewData());var a=e._pageViewData,o=e._scrollY(),l=e._scrollHeight(),h=e._contentY(),c=e._contentHeight();a.lastScrollY=o,a.maxScrollY=Math.max(o,(r=a.maxScrollY)!==null&&r!==void 0?r:0),a.maxScrollHeight=Math.max(l,(i=a.maxScrollHeight)!==null&&i!==void 0?i:0),a.lastContentY=h,a.maxContentY=Math.max(h,(n=a.maxContentY)!==null&&n!==void 0?n:0),a.maxContentHeight=Math.max(c,(s=a.maxContentHeight)!==null&&s!==void 0?s:0)})}return Re(t,[{key:"_createPageViewData",value:function(){var e;return{pathname:(e=O?.location.pathname)!==null&&e!==void 0?e:""}}},{key:"doPageView",value:function(){var e,r;return this._hasSeenPageView?(r=this._pageViewData,this._pageViewData=this._createPageViewData()):(this._hasSeenPageView=!0,r=void 0,this._pageViewData||(this._pageViewData=this._createPageViewData())),setTimeout(this._updateScrollData,0),ne({$prev_pageview_pathname:(e=r)===null||e===void 0?void 0:e.pathname},this._calculatePrevPageScrollProperties(r))}},{key:"doPageLeave",value:function(){var e=this._pageViewData;return ne({$prev_pageview_pathname:e?.pathname},this._calculatePrevPageScrollProperties(e))}},{key:"_calculatePrevPageScrollProperties",value:function(e){if(!e||e.maxScrollHeight==null||e.lastScrollY==null||e.maxScrollY==null||e.maxContentHeight==null||e.lastContentY==null||e.maxContentY==null)return{};var r=e.maxScrollHeight,i=e.lastScrollY,n=e.maxScrollY,s=e.maxContentHeight,a=e.lastContentY,o=e.maxContentY;return r=Math.ceil(r),i=Math.ceil(i),n=Math.ceil(n),s=Math.ceil(s),a=Math.ceil(a),o=Math.ceil(o),{$prev_pageview_last_scroll:i,$prev_pageview_last_scroll_percentage:r<=1?1:Va(i/r,0,1),$prev_pageview_max_scroll:n,$prev_pageview_max_scroll_percentage:r<=1?1:Va(n/r,0,1),$prev_pageview_last_content:a,$prev_pageview_last_content_percentage:s<=1?1:Va(a/s,0,1),$prev_pageview_max_content:o,$prev_pageview_max_content_percentage:s<=1?1:Va(o/s,0,1)}}},{key:"startMeasuringScrollPosition",value:function(){O?.addEventListener("scroll",this._updateScrollData),O?.addEventListener("scrollend",this._updateScrollData),O?.addEventListener("resize",this._updateScrollData)}},{key:"stopMeasuringScrollPosition",value:function(){O?.removeEventListener("scroll",this._updateScrollData),O?.removeEventListener("scrollend",this._updateScrollData),O?.removeEventListener("resize",this._updateScrollData)}},{key:"_scrollHeight",value:function(){return O?Math.max(0,O.document.documentElement.scrollHeight-O.document.documentElement.clientHeight):0}},{key:"_scrollY",value:function(){return O&&(O.scrollY||O.pageYOffset||O.document.documentElement.scrollTop)||0}},{key:"_contentHeight",value:function(){return O?.document.documentElement.scrollHeight||0}},{key:"_contentY",value:function(){var e=O?.document.documentElement.clientHeight||0;return this._scrollY()+e}}]),t}();function Va(t,e,r){return Math.max(e,Math.min(t,r))}var Yn,Sh,Xe,tv={icontains:function(t){return!!O&&O.location.href.toLowerCase().indexOf(t.toLowerCase())>-1},regex:function(t){return!!O&&cy(O.location.href,t)},exact:function(t){return O?.location.href===t}},rv=function(){function t(e){Oe(this,t),this.instance=e}return Re(t,[{key:"getSurveys",value:function(e){var r=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=this.instance.get_property(sh);if(n&&!i)return e(n);this.instance._send_request("".concat(this.instance.config.api_host,"/api/surveys/?token=").concat(this.instance.config.token),{},{method:"GET"},function(s){var a,o=s.surveys||[];return(a=r.instance.persistence)===null||a===void 0||a.register(Y({},sh,o)),e(o)})}},{key:"getActiveMatchingSurveys",value:function(e){var r=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.getSurveys(function(n){var s=n.filter(function(a){return!(!a.start_date||a.end_date)}).filter(function(a){var o,l,h,c;if(!a.conditions)return!0;var u=(o=a.conditions)===null||o===void 0||!o.url||tv[(l=(h=a.conditions)===null||h===void 0?void 0:h.urlMatchType)!==null&&l!==void 0?l:"icontains"](a.conditions.url),f=(c=a.conditions)===null||c===void 0||!c.selector||K?.querySelector(a.conditions.selector);return u&&f}).filter(function(a){if(!a.linked_flag_key&&!a.targeting_flag_key)return!0;var o=!a.linked_flag_key||r.instance.featureFlags.isFeatureEnabled(a.linked_flag_key),l=!a.targeting_flag_key||r.instance.featureFlags.isFeatureEnabled(a.targeting_flag_key);return o&&l});return e(s)},i)}}]),t}(),iv=6e4,nv=function(){function t(){var e=this;Oe(this,t),Y(this,"limits",{}),Y(this,"checkForLimiting",function(r){try{var i=r.responseText;if(!i||!i.length)return;(JSON.parse(i).quota_limited||[]).forEach(function(n){j.info("[RateLimiter] ".concat(n||"events"," is quota limited.")),e.limits[n]=new Date().getTime()+iv})}catch(n){return void j.error(n)}})}return Re(t,[{key:"isRateLimited",value:function(e){var r=this.limits[e||"events"]||!1;return r!==!1&&new Date().getTime()<r}}]),t}(),sv=function(){return ne({initialPathName:O?.location.pathname||"",referringDomain:He.referringDomain()},He.campaignParams())},av=function(){function t(e,r,i){var n=this;Oe(this,t),Y(this,"_onSessionIdCallback",function(s){var a=n._getStoredProps();if(!a||a.sessionId!==s){var o={sessionId:s,props:n._sessionSourceParamGenerator()};n._persistence.register(Y({},lh,o))}}),this._sessionIdManager=e,this._persistence=r,this._sessionSourceParamGenerator=i||sv,this._sessionIdManager.onSessionId(this._onSessionIdCallback)}return Re(t,[{key:"_getStoredProps",value:function(){return this._persistence.props[lh]}},{key:"getSessionProps",value:function(){var e,r=(e=this._getStoredProps())===null||e===void 0?void 0:e.props;return r?{$client_session_initial_referring_host:r.referringDomain,$client_session_initial_pathname:r.initialPathName,$client_session_initial_utm_source:r.utm_source,$client_session_initial_utm_campaign:r.utm_campaign,$client_session_initial_utm_medium:r.utm_medium,$client_session_initial_utm_content:r.utm_content,$client_session_initial_utm_term:r.utm_term}:{}}}]),t}(),ov=["ahrefsbot","ahrefssiteaudit","applebot","baiduspider","bingbot","bingpreview","bot.htm","bot.php","crawler","duckduckbot","facebookexternal","facebookcatalog","gptbot","http://yandex.com/bots","hubspot","ia_archiver","linkedinbot","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","semrushbot","sitebulb","slurp","turnitin","twitterbot","vercelbot","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"],lv=function(t,e){if(!t)return!1;var r=t.toLowerCase();return ov.concat(e||[]).some(function(i){var n=i.toLowerCase();return r.includes?r.includes(n):r.indexOf(n)!==-1})};(function(t){t[t.INIT_MODULE=0]="INIT_MODULE",t[t.INIT_SNIPPET=1]="INIT_SNIPPET"})(Yn||(Yn={}));var ph=function(){},Na={},dt="posthog",Ua=O?.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Xd=!Ua&&Ge?.indexOf("MSIE")===-1&&Ge?.indexOf("Mozilla")===-1,kd=function(){var t,e,r;return{api_host:"https://app.posthog.com",api_method:"POST",api_transport:"XHR",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:(e=K?.location,r=e?.hostname,!!kt(r)&&r.split(".").slice(-2).join(".")!=="herokuapp.com"),persistence:"localStorage+cookie",persistence_name:"",cookie_name:"",loaded:ph,store_google:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageview:!0,capture_pageleave:!0,debug:!1,verbose:!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_cookie:!1,enable_recording_console_log:void 0,secure_cookie:(O==null||(t=O.location)===null||t===void 0?void 0:t.protocol)==="https:",ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_blacklist:[],respect_dnt:!1,sanitize_properties:null,xhr_headers:{},inapp_protocol:"//",inapp_link_new_window:!1,request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_disable_toolbar_metrics:!1,on_xhr_error:function(i){var n="Bad HTTP status: "+i.status+" "+i.statusText;j.error(n)},get_device_id:function(i){return i},_onCapture:ph,capture_performance:void 0,name:"posthog",callback_fn:"posthog._jsc",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800}},dh=function(t,e,r,i){var n,s=r!==dt&&Xe?r?Xe[r]:void 0:Xe,a={initComplete:!1,syncCode:!1},o=function(l){return function(h){a[l]||(a[l]=!0,a.initComplete&&a.syncCode&&i?.(h))}};if(s&&Sh===Yn.INIT_MODULE)n=s;else{if(s&&!We(s))return void j.error("You have already initialized "+r);n=new kh}return n._init(t,e,r,o("initComplete")),n.toolbar.maybeLoadToolbar(),n.sessionRecording=new Sy(n),n.sessionRecording.startRecordingIfEnabled(),n.config.__preview_measure_pageview_stats&&n.pageViewManager.startMeasuringScrollPosition(),n.__autocapture=n.config.autocapture,Pr._setIsAutocaptureEnabled(n),Pr._isAutocaptureEnabled&&(n.__autocapture=n.config.autocapture,Pr.enabledForProject(n.config.token,100,100)?Pr.isBrowserSupported()?Pr.init(n):(n.__autocapture=!1,j.info("Disabling Automatic Event Collection because this browser is not supported")):(n.__autocapture=!1,j.info("Not in active bucket: disabling Automatic Event Collection."))),li.DEBUG=li.DEBUG||n.config.debug,!ve(s)&&We(s)&&(n._execute_array.call(n.people,s.people),n._execute_array(s)),o("syncCode")(n),n},hv=function(){function t(){Oe(this,t),Y(this,"__forceAllowLocalhost",!1)}return Re(t,[{key:"_forceAllowLocalhost",get:function(){return this.__forceAllowLocalhost},set:function(e){j.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}]),t}(),kh=function(){function t(){var e=this;Oe(this,t),Y(this,"webPerformance",new hv),this.config=kd(),this.compression={},this.decideEndpointWasHit=!1,this.SentryIntegration=Ky,this.segmentIntegration=function(){return Qy(e)},this.__captureHooks=[],this.__request_queue=[],this.__loaded=!1,this.__loaded_recorder_version=void 0,this.__autocapture=void 0,this._jsc=function(){},this.analyticsDefaultEndpoint="/e/",this.elementsChainAsString=!1,this.featureFlags=new K0(this),this.toolbar=new Cy(this),this.pageViewManager=new ev,this.surveys=new rv(this),this.rateLimiter=new nv,this.people={set:function(r,i,n){var s=kt(r)?Y({},r,i):r;e.setPersonProperties(s),n?.({})},set_once:function(r,i,n){var s=kt(r)?Y({},r,i):r;e.setPersonProperties(void 0,s),n?.({})}}}return Re(t,[{key:"init",value:function(e,r,i){if(ve(i))j.critical("You must name your new library: init(token, config, name)");else{if(i!==dt){var n=dh(e,r,i,function(s){Xe[i]=s,s._loaded()});return Xe[i]=n,n}j.critical("You must initialize the main posthog object right after you include the PostHog js snippet")}}},{key:"_init",value:function(e){var r,i,n,s=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var h,c={segmentRegister:!1,syncCode:!1},u=function(S){return function(){c[S]||(c[S]=!0,c.segmentRegister&&c.syncCode&&l?.(s))}};if(this.set_config(Je({},kd(),a,{name:o,token:e,callback_fn:(o===dt?o:dt+"."+o)+"._jsc"})),this._jsc=function(){},(O!=null&&(r=O.rrweb)!==null&&r!==void 0&&r.record||O!=null&&O.rrwebRecord)&&(this.__loaded_recorder_version=O==null||(h=O.rrweb)===null||h===void 0?void 0:h.version),this.persistence=new md(this.config),this._requestQueue=new $y(this._handle_queued_event.bind(this)),this._retryQueue=new Yy(this.config.on_xhr_error,this.rateLimiter),this.__captureHooks=[],this.__request_queue=[],this.sessionManager=new Xy(this.config,this.persistence),this.sessionPropsManager=new av(this.sessionManager,this.persistence),this.sessionPersistence=this.config.persistence==="sessionStorage"?this.persistence:new md(ne(ne({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),a.segment?(this.config.get_device_id=function(){return a.segment.user().anonymousId()},a.segment.user().id()&&(this.register({distinct_id:a.segment.user().id()}),this.persistence.set_user_state("identified")),a.segment.register(this.segmentIntegration()).then(u("segmentRegister"))):u("segmentRegister")(),((i=a.bootstrap)===null||i===void 0?void 0:i.distinctID)!==void 0){var f,p,m=this.config.get_device_id(si()),g=(f=a.bootstrap)!==null&&f!==void 0&&f.isIdentifiedID?m:a.bootstrap.distinctID;this.persistence.set_user_state((p=a.bootstrap)!==null&&p!==void 0&&p.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:a.bootstrap.distinctID,$device_id:g})}if(this._hasBootstrappedFeatureFlags()){var d,y,v=Object.keys(((d=a.bootstrap)===null||d===void 0?void 0:d.featureFlags)||{}).filter(function(S){var T,x;return!((T=a.bootstrap)===null||T===void 0||(x=T.featureFlags)===null||x===void 0||!x[S])}).reduce(function(S,T){var x,w;return S[T]=((x=a.bootstrap)===null||x===void 0||(w=x.featureFlags)===null||w===void 0?void 0:w[T])||!1,S},{}),b=Object.keys(((y=a.bootstrap)===null||y===void 0?void 0:y.featureFlagPayloads)||{}).filter(function(S){return v[S]}).reduce(function(S,T){var x,w,M,k;return(x=a.bootstrap)!==null&&x!==void 0&&(w=x.featureFlagPayloads)!==null&&w!==void 0&&w[T]&&(S[T]=(M=a.bootstrap)===null||M===void 0||(k=M.featureFlagPayloads)===null||k===void 0?void 0:k[T]),S},{});this.featureFlags.receivedFeatureFlags({featureFlags:v,featureFlagPayloads:b})}if(!this.get_distinct_id()){var _=this.config.get_device_id(si());this.register_once({distinct_id:_,$device_id:_},""),this.persistence.set_user_state("anonymous")}O==null||(n=O.addEventListener)===null||n===void 0||n.call(O,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),u("syncCode")()}},{key:"_afterDecideResponse",value:function(e){var r;if(this.compression={},e.supportedCompression&&!this.config.disable_compression){var i,n={},s=oi(e.supportedCompression);try{for(s.s();!(i=s.n()).done;)n[i.value]=!0}catch(a){s.e(a)}finally{s.f()}this.compression=n}(r=e.analytics)!==null&&r!==void 0&&r.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),e.elementsChainAsString&&(this.elementsChainAsString=e.elementsChainAsString)}},{key:"_loaded",value:function(){var e=this.config.advanced_disable_decide;e||this.featureFlags.setReloadingPaused(!0);try{this.config.loaded(this)}catch(r){j.critical("`loaded` function failed",r)}this._start_queue_if_opted_in(),this.config.capture_pageview&&K&&this.capture("$pageview",{title:K.title},{send_instantly:!0}),e||(new ky(this).call(),this.featureFlags.resetRequestQueue())}},{key:"_start_queue_if_opted_in",value:function(){var e;this.has_opted_out_capturing()||this.config.request_batching&&((e=this._requestQueue)===null||e===void 0||e.poll())}},{key:"_dom_loaded",value:function(){var e=this;this.has_opted_out_capturing()||Ki(this.__request_queue,function(r){e._send_request.apply(e,Ql(r))}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(e,r){if(ve(e))return null;if(Ua)return function(a){e(a,r)};var i=this._jsc,n=""+Math.floor(1e8*Math.random()),s=this.config.callback_fn+"["+n+"]";return i[n]=function(a){delete i[n],e(a,r)},s}},{key:"_handle_unload",value:function(){var e,r;this.config.request_batching?(this.config.capture_pageview&&this.config.capture_pageleave&&this.capture("$pageleave"),(e=this._requestQueue)===null||e===void 0||e.unload(),(r=this._retryQueue)===null||r===void 0||r.unload()):this.config.capture_pageview&&this.config.capture_pageleave&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(e,r,i){var n=JSON.stringify(r);this.__compress_and_send_json_request(e,n,i||Na,ph)}},{key:"__compress_and_send_json_request",value:function(e,r,i,n){var s=function(h,c,u){return h===ni.GZipJS?[Uy(Wy(c),{mtime:0}),ne(ne({},u),{},{blob:!0,urlQueryArgs:{compression:ni.GZipJS}})]:[{data:gh(c)},u]}(this.compression[ni.GZipJS]?ni.GZipJS:ni.Base64,r,i),a=Gt(s,2),o=a[0],l=a[1];this._send_request(e,o,l,n)}},{key:"_send_request",value:function(e,r,i,n){if(this.__loaded&&this._retryQueue&&!this.rateLimiter.isRateLimited(i._batchKey))if(Xd)this.__request_queue.push([e,r,i,n]);else{var s={method:this.config.api_method,transport:this.config.api_transport,verbose:this.config.verbose};i=Je(s,i||{}),Ua||(i.method="GET");var a=O&&"sendBeacon"in O.navigator&&i.transport==="sendBeacon";if(e=Yd(e,i.urlQueryArgs||{},{ip:this.config.ip}),a)try{O?.navigator.sendBeacon(e,xh(r,ne(ne({},i),{},{sendBeacon:!0})))}catch{}else if(Ua||!K)try{Jd({url:e,data:r,headers:this.config.xhr_headers,options:i,callback:n,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.config.on_xhr_error,onResponse:this.rateLimiter.checkForLimiting})}catch(c){j.error(c)}else{var o,l=K.createElement("script");l.type="text/javascript",l.async=!0,l.defer=!0,l.src=e;var h=K.getElementsByTagName("script")[0];(o=h.parentNode)===null||o===void 0||o.insertBefore(l,h)}}}},{key:"_execute_array",value:function(e){var r,i=this,n=[],s=[],a=[];Ki(e,function(l){l&&(r=l[0],We(r)?a.push(l):Ht(l)?l.call(i):We(l)&&r==="alias"?n.push(l):We(l)&&r.indexOf("capture")!==-1&&Ht(i[r])?a.push(l):s.push(l))});var o=function(l,h){Ki(l,function(c){if(We(c[0])){var u=h;Ce(c,function(f){u=u[f[0]].apply(u,f.slice(1))})}else this[c[0]].apply(this,c.slice(1))},h)};o(n,this),o(s,this),o(a,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var e,r;return((e=this.config.bootstrap)===null||e===void 0?void 0:e.featureFlags)&&Object.keys((r=this.config.bootstrap)===null||r===void 0?void 0:r.featureFlags).length>0||!1}},{key:"push",value:function(e){this._execute_array([e])}},{key:"capture",value:function(e,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Na;if(!this.__loaded||!this.sessionPersistence||!this._requestQueue)return j.uninitializedWarning("posthog.capture");if(!function(c){var u=!1;try{var f=c.config.token,p=c.config.respect_dnt,m=c.config.opt_out_capturing_persistence_type,g=c.config.opt_out_capturing_cookie_prefix||void 0,d=c.config.window;f&&(u=bd(f,{respectDnt:p,persistenceType:m,persistencePrefix:g,window:d}))}catch(y){j.error("Unexpected error when checking capturing opt-out status: "+y)}return u}(this)){var n=(i=i||Na).transport;if(n&&(i.transport=n),!ve(e)&&kt(e)){if(!Ge||!lv(Ge,this.config.custom_blocked_useragents)){this.sessionPersistence.update_search_keyword(),this.config.store_google&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info();var s={uuid:si(),event:e,properties:this._calculate_event_properties(e,r||{})};e==="$identify"&&(s.$set=i.$set,s.$set_once=i.$set_once),(s=U0(s,i._noTruncate?null:this.config.properties_string_max_length)).timestamp=i.timestamp||new Date;var a=ne(ne({},s.properties.$set),s.$set);H0(a)||this.setPersonPropertiesForFlags(a),j.info("send",s);var o=JSON.stringify(s),l=this.config.api_host+(i.endpoint||this.analyticsDefaultEndpoint),h=i!==Na;return!this.config.request_batching||h&&!i._batchKey||i.send_instantly?this.__compress_and_send_json_request(l,o,i):this._requestQueue.enqueue(l,s,i),this._invokeCaptureHooks(e,s),s}}else j.error("No event name provided to posthog.capture")}}},{key:"_addCaptureHook",value:function(e){this.__captureHooks.push(e)}},{key:"_invokeCaptureHooks",value:function(e,r){this.config._onCapture(e,r),Ce(this.__captureHooks,function(i){return i(e)})}},{key:"_calculate_event_properties",value:function(e,r){if(!this.persistence||!this.sessionPersistence)return r;var i=this.persistence.remove_event_timer(e),n=ne({},r);if(n.token=this.config.token,e==="$snapshot"){var s=ne(ne({},this.persistence.properties()),this.sessionPersistence.properties());return n.distinct_id=s.distinct_id,n}var a=He.properties();if(this.sessionManager){var o=this.sessionManager.checkAndGetSessionAndWindowId(),l=o.sessionId,h=o.windowId;n.$session_id=l,n.$window_id=h}if(this.sessionPropsManager&&this.config.__preview_send_client_session_params&&(e==="$pageview"||e==="$pageleave"||e==="$autocapture")){var c=this.sessionPropsManager.getSessionProps();n=Je(n,c)}if(this.config.__preview_measure_pageview_stats){var u={};e==="$pageview"?u=this.pageViewManager.doPageView():e==="$pageleave"&&(u=this.pageViewManager.doPageLeave()),n=Je(n,u)}if(e==="$pageview"&&K&&(n.title=K.title),e==="$performance_event"){var f=this.persistence.properties();return n.distinct_id=f.distinct_id,n.$current_url=a.$current_url,n}if(!ve(i)){var p=new Date().getTime()-i;n.$duration=parseFloat((p/1e3).toFixed(3))}n=Je({},He.properties(),this.persistence.properties(),this.sessionPersistence.properties(),n);var m=this.config.property_blacklist;We(m)?Ce(m,function(d){delete n[d]}):j.error("Invalid value for property_blacklist config: "+m);var g=this.config.sanitize_properties;return g&&(n=g(n,e)),n}},{key:"register",value:function(e,r){var i;(i=this.persistence)===null||i===void 0||i.register(e,r)}},{key:"register_once",value:function(e,r,i){var n;(n=this.persistence)===null||n===void 0||n.register_once(e,r,i)}},{key:"register_for_session",value:function(e){var r;(r=this.sessionPersistence)===null||r===void 0||r.register(e)}},{key:"unregister",value:function(e){var r;(r=this.persistence)===null||r===void 0||r.unregister(e)}},{key:"unregister_for_session",value:function(e){var r;(r=this.sessionPersistence)===null||r===void 0||r.unregister(e)}},{key:"_register_single",value:function(e,r){this.register(Y({},e,r))}},{key:"getFeatureFlag",value:function(e,r){return this.featureFlags.getFeatureFlag(e,r)}},{key:"getFeatureFlagPayload",value:function(e){var r=this.featureFlags.getFeatureFlagPayload(e);try{return JSON.parse(r)}catch{return r}}},{key:"isFeatureEnabled",value:function(e,r){return this.featureFlags.isFeatureEnabled(e,r)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,r){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,r)}},{key:"getEarlyAccessFeatures",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(e,r)}},{key:"onFeatureFlags",value:function(e){return this.featureFlags.onFeatureFlags(e)}},{key:"onSessionId",value:function(e){var r,i;return(r=(i=this.sessionManager)===null||i===void 0?void 0:i.onSessionId(e))!==null&&r!==void 0?r:function(){}}},{key:"getSurveys",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getSurveys(e,r)}},{key:"getActiveMatchingSurveys",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getActiveMatchingSurveys(e,r)}},{key:"identify",value:function(e,r,i){if(!this.__loaded||!this.persistence)return j.uninitializedWarning("posthog.identify");if(e)if(["distinct_id","distinctid"].includes(e.toLowerCase()))j.critical('The string "'.concat(e,'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'));else{var n=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var s=n;this.register_once({$had_persisted_distinct_id:!0,$device_id:s},"")}e!==n&&e!==this.get_property(Ga)&&(this.unregister(Ga),this.register({distinct_id:e}));var a=this.persistence.get_user_state()==="anonymous";e!==n&&a?(this.persistence.set_user_state("identified"),this.setPersonPropertiesForFlags(r||{},!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:n},{$set:r||{},$set_once:i||{}}),this.featureFlags.setAnonymousDistinctId(n)):(r||i)&&this.setPersonProperties(r,i),e!==n&&(this.reloadFeatureFlags(),this.unregister(Ka))}else j.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(e,r){(e||r)&&(this.setPersonPropertiesForFlags(e||{}),this.capture("$set",{$set:e||{},$set_once:r||{}}))}},{key:"group",value:function(e,r,i){if(e&&r){var n=this.getGroups();n[e]!==r&&this.resetGroupPropertiesForFlags(e),this.register({$groups:ne(ne({},n),{},Y({},e,r))}),i&&(this.capture("$groupidentify",{$group_type:e,$group_key:r,$group_set:i}),this.setGroupPropertiesForFlags(Y({},e,i))),n[e]===r||i||this.reloadFeatureFlags()}else j.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setPersonPropertiesForFlags(e,r)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setGroupPropertiesForFlags(e,r)}},{key:"resetGroupPropertiesForFlags",value:function(e){this.featureFlags.resetGroupPropertiesForFlags(e)}},{key:"reset",value:function(e){var r,i,n,s;if(!this.__loaded)return j.uninitializedWarning("posthog.reset");var a=this.get_property("$device_id");(r=this.persistence)===null||r===void 0||r.clear(),(i=this.sessionPersistence)===null||i===void 0||i.clear(),(n=this.persistence)===null||n===void 0||n.set_user_state("anonymous"),(s=this.sessionManager)===null||s===void 0||s.resetSessionId();var o=this.config.get_device_id(si());this.register_once({distinct_id:o,$device_id:e?o:a},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){var e,r;return(e=(r=this.sessionManager)===null||r===void 0?void 0:r.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&e!==void 0?e:""}},{key:"get_session_replay_url",value:function(e){if(!this.sessionManager)return"";var r=this.config.ui_host||this.config.api_host,i=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=i.sessionId,s=i.sessionStartTimestamp,a=r+"/replay/"+n;if(e!=null&&e.withTimestamp&&s){var o,l=(o=e.timestampLookBack)!==null&&o!==void 0?o:10;if(!s)return a;var h=Math.max(Math.floor((new Date().getTime()-s)/1e3)-l,0);a+="?t=".concat(h)}return a}},{key:"alias",value:function(e,r){return e===this.get_property(Ld)?(j.critical("Attempting to create alias for existing People user - aborting."),-2):(ve(r)&&(r=this.get_distinct_id()),e!==r?(this._register_single(Ga,e),this.capture("$create_alias",{alias:e,distinct_id:r})):(j.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1))}},{key:"set_config",value:function(e){var r,i,n=ne({},this.config);Ar(e)&&(Je(this.config,e),this.config.persistence_name||(this.config.persistence_name=this.config.cookie_name),this.config.disable_persistence||(this.config.disable_persistence=this.config.disable_cookie),this.config.api_host=this.config.api_host.replace(/\/$/,""),(r=this.persistence)===null||r===void 0||r.update_config(this.config),(i=this.sessionPersistence)===null||i===void 0||i.update_config(this.config),Le.is_supported()&&Le.get("ph_debug")==="true"&&(this.config.debug=!0),this.config.debug&&(li.DEBUG=!0),this.sessionRecording&&!ve(e.disable_session_recording)&&n.disable_session_recording!==e.disable_session_recording&&(e.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var e;return!((e=this.sessionRecording)===null||e===void 0||!e.started)}},{key:"loadToolbar",value:function(e){return this.toolbar.loadToolbar(e)}},{key:"get_property",value:function(e){var r;return(r=this.persistence)===null||r===void 0?void 0:r.props[e]}},{key:"getSessionProperty",value:function(e){var r;return(r=this.sessionPersistence)===null||r===void 0?void 0:r.props[e]}},{key:"toString",value:function(){var e,r=(e=this.config.name)!==null&&e!==void 0?e:dt;return r!==dt&&(r=dt+"."+r),r}},{key:"_gdpr_init",value:function(){this.config.opt_out_capturing_persistence_type==="localStorage"&&Le.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.config.opt_out_capturing_by_default&&!Xt.get("ph_optout")||(Xt.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.config.opt_out_persistence_by_default}))}},{key:"_gdpr_update_persistence",value:function(e){var r,i,n,s,a;if(e&&e.clear_persistence)n=!0;else{if(!e||!e.enable_persistence)return;n=!1}this.config.disable_persistence||((r=this.persistence)===null||r===void 0?void 0:r.disabled)===n||(s=this.persistence)===null||s===void 0||s.set_disabled(n),this.config.disable_persistence||((i=this.sessionPersistence)===null||i===void 0?void 0:i.disabled)===n||(a=this.sessionPersistence)===null||a===void 0||a.set_disabled(n)}},{key:"_gdpr_call_func",value:function(e,r){return r=Je({capture:this.capture.bind(this),persistence_type:this.config.opt_out_capturing_persistence_type,cookie_prefix:this.config.opt_out_capturing_cookie_prefix,cookie_expiration:this.config.cookie_expiration,cross_subdomain_cookie:this.config.cross_subdomain_cookie,secure_cookie:this.config.secure_cookie},r||{}),Le.is_supported()||r.persistence_type!=="localStorage"||(r.persistence_type="cookie"),e(this.config.token,{capture:r.capture,captureEventName:r.capture_event_name,captureProperties:r.capture_properties,persistenceType:r.persistence_type,persistencePrefix:r.cookie_prefix,cookieExpiration:r.cookie_expiration,crossSubdomainCookie:r.cross_subdomain_cookie,secureCookie:r.secure_cookie})}},{key:"opt_in_capturing",value:function(e){e=Je({enable_persistence:!0},e||{}),this._gdpr_call_func(Iy,e),this._gdpr_update_persistence(e)}},{key:"opt_out_capturing",value:function(e){var r=Je({clear_persistence:!0},e||{});this._gdpr_call_func(My,r),this._gdpr_update_persistence(r)}},{key:"has_opted_in_capturing",value:function(e){return this._gdpr_call_func(Dy,e)}},{key:"has_opted_out_capturing",value:function(e){return this._gdpr_call_func(bd,e)}},{key:"clear_opt_in_out_capturing",value:function(e){var r=Je({enable_persistence:!0},e??{});this._gdpr_call_func(Fy,r),this._gdpr_update_persistence(r)}},{key:"debug",value:function(e){e===!1?(O?.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(O?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),t}();(function(t,e){for(var r=0;r<e.length;r++)t.prototype[e[r]]=Fd(t.prototype[e[r]])})(kh,["identify"]);var Ed,Pd,kr={},cv=function(){Xe.init=function(t,e,r){if(r)return Xe[r]||(Xe[r]=kr[r]=dh(t||"",e||{},r,function(n){Xe[r]=kr[r]=n,n._loaded()})),Xe[r];var i=Xe;return kr[dt]?i=kr[dt]:t&&(i=dh(t,e||{},dt,function(n){kr[dt]=n,n._loaded()}),kr[dt]=i),Xe=i,Sh===Yn.INIT_SNIPPET&&(rt[dt]=Xe),Ce(kr,function(n,s){s!==dt&&(Xe[s]=n)}),i}},uv=function(){function t(){t.done||(t.done=!0,Xd=!1,Ce(kr,function(e){e._dom_loaded()}))}K!=null&&K.addEventListener&&(K.readyState==="complete"?t():K.addEventListener("DOMContentLoaded",t,!1)),O&&Un(O,"load",t,!0)};(function(t){t.Popover="popover",t.API="api",t.Widget="widget"})(Ed||(Ed={})),function(t){t.Open="open",t.MultipleChoice="multiple_choice",t.SingleChoice="single_choice",t.Rating="rating",t.Link="link"}(Pd||(Pd={}));var Kd=(Sh=Yn.INIT_MODULE,Xe=new kh,cv(),Xe.init(),uv(),Xe);var Qd=Kd.init("phc_OTZ3wJ6VemgVupCRKS5Sbqb9Ks0JYe0hMYZPtLwl0nu",{api_host:"https://pheu.molin.ai",ui_host:"https://eu.posthog.com",secure_cookie:document.location.protocol==="https:",persistence:"cookie",autocapture:!1,rageclick:!1,capture_pageview:!0,disable_session_recording:!0},"MolinShopAI");function ft(t,e){if(!Qd)throw new Error("Failed to initialize PostHog");Qd.capture(t,e)}var en,io,no,ef,Ot,Be,so,tf,ao,rf,oo,nf,lo,sf,ho,af,co,of,uo,lf,po,hf,ro=class extends Fe(ke){constructor(){super();W(this,en);W(this,no);W(this,so);W(this,ao);W(this,oo);W(this,lo);W(this,ho);W(this,co);W(this,uo);W(this,po);W(this,Ot,new $a(this,{url:(r,{resume:i}={})=>{let n=new URL(this.config.wsApiUrl);return n.searchParams.set("widgetId",this.widgetId),n.searchParams.set("resume",i?"1":""),n.searchParams.set("conversationId",r),n.searchParams.set("pageUrl",window.location.href),n},onReconnect:()=>{},onError:r=>{console.error("ws error",r),ft("ShopAssistant: error",{widgetId:this.widgetId,error:"websocket onError"})},onClose:()=>{},onNewMessage:r=>{r.role==="assistant"&&ft("ShopAssistant: user received bot message (streaming started)",{widgetId:this.widgetId,message:r})},onUpdateMessage:r=>{},onMessageDone:r=>{let i={...L(this,Ot)?.messages.find(n=>n.id===r.message?.id)};Object.assign(i,r.message),i.role==="assistant"&&ft("ShopAssistant: user received bot message (streaming ended)",{widgetId:this.widgetId,text:i.content??"",message:i,usage_TOKENS_COMPLETION:r.message.usage.TOKENS_COMPLETION})},onMessageError:r=>{console.error("ws message error",r),r.message&&L(this,Be)&&alert(r.message),ft("ShopAssistant: error",{widgetId:this.widgetId,error:"websocket ERROR message type: "+r.message})},persistConversationState:(r,i)=>{let n={conversationId:r,messages:i};localStorage.setItem(L(this,en,io),JSON.stringify(n))},restoreConversationState:()=>{try{let r=JSON.parse(localStorage.getItem(L(this,en,io))||"{}");return!(typeof r.conversationId=="string"&&r.conversationId)||!(Array.isArray(r.messages)&&r.messages.every(i=>typeof i=="object"&&i))?void 0:{conversationId:r.conversationId,messages:r.messages}}catch(r){console.error(r)}},onReset:()=>{localStorage.removeItem(L(this,en,io))}}));W(this,Be,!1);this.widgetId="",this.config}render(){console.assert(this.widgetId,"widget id is required"),console.assert(this.config,"config is required");let r=Object.entries(this.config.bubble.position).filter(([o,l])=>l).map(([o,l])=>`${o}-[${l}]`).reduce((o,l)=>(o[l]=!0,o),{}),i=Object.entries(this.config.bubble.position).filter(([o,l])=>l).map(([o,l])=>`${o}-[${l}]`).reduce((o,l)=>(o[l]=!0,o),{}),n={bottom:"72px"},s=Object.entries(this.config.bubble.position).filter(([o,l])=>l).map(([o,l])=>`sm:${o}-[calc(${[n[o],l].filter(h=>!!h).join("+")})]`).reduce((o,l)=>(o[l]=!0,o),{}),a=s;return this.config.hidden&&!L(this,no,ef)?De:me`
428
- <mw-bubble class="${qp(r)} fixed z-[2147483647]" @click=${pe(this,lo,sf)} ?dialog-shown="${L(this,Be)}" bubble-image-url="${this.config.bubble?.imageUrl||""}"></mw-bubble>
424
+ `)).length,n=0;n<i;n++){var a=t.charCodeAt(n),o=null;a<128?r++:o=a>127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),$t(o)||(r>e&&(s+=t.substring(e,r)),s+=o,e=r=n+1)}return r>e&&(s+=t.substring(e,t.length)),s},Un=function(){function t(e){return e&&(e.preventDefault=t.preventDefault,e.stopPropagation=t.stopPropagation),e}return t.preventDefault=function(){this.returnValue=!1},t.stopPropagation=function(){this.cancelBubble=!0},function(e,r,i,n,s){if(e)if(e.addEventListener&&!n)e.addEventListener(r,i,!!s);else{var a="on"+r,o=e[a];e[a]=function(l,h,c){return function(u){if(u=u||t(O?.event)){var f,p=!0;Ht(c)&&(f=c(u));var m=h.call(l,u);return f!==!1&&m!==!1||(p=!1),p}}}(e,i,o)}else j.error("No valid element provided to register_event")}}();function Wn(t,e){var r=function(){if(!K)return e("document not found");var i=K.createElement("script");i.type="text/javascript",i.src=t,i.onload=function(a){return e(void 0,a)},i.onerror=function(a){return e(a)};var n,s=K.querySelectorAll("body > script");s.length>0?(n=s[0].parentNode)===null||n===void 0||n.insertBefore(i,s[0]):K.body.appendChild(i)};K!=null&&K.body?r():K?.addEventListener("DOMContentLoaded",r)}function gh(t){return t?Wa(t).split(/\s+/):[]}function Za(t){var e="";switch(Jl(t.className)){case"string":e=t.className;break;case"object":e=("baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";break;default:e=""}return gh(e)}function Ya(t){var e="";return za(t)&&!$d(t)&&t.childNodes&&t.childNodes.length&&Ce(t.childNodes,function(r){Fd(r)&&r.textContent&&(e+=Wa(r.textContent).split(/(\s+)/).filter(Yi).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),Wa(e)}function td(t){return!!t&&t.nodeType===1}function ai(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function Fd(t){return!!t&&t.nodeType===3}function rd(t){return!!t&&t.nodeType===11}var ql=["a","button","form","input","select","textarea","label"];function za(t){for(var e=t;e.parentNode&&!ai(e,"body");e=e.parentNode){var r=Za(e);if(xe(r,"ph-sensitive")||xe(r,"ph-no-capture"))return!1}if(xe(Za(t),"ph-include"))return!0;var i=t.type||"";if(kt(i))switch(i.toLowerCase()){case"hidden":case"password":return!1}var n=t.name||t.id||"";return!(kt(n)&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(n.replace(/[^a-zA-Z0-9]/g,"")))}function $d(t){return!!(ai(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||ai(t,"select")||ai(t,"textarea")||t.getAttribute("contenteditable")==="true")}function Yi(t){return!($t(t)||ve(t)||kt(t)&&(t=Wa(t),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((t||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(t)))}function id(t){var e=Ya(t);return Yi(e="".concat(e," ").concat(Od(t)).trim())?e:""}function Od(t){var e="";return t&&t.childNodes&&t.childNodes.length&&Ce(t.childNodes,function(r){var i;if(r&&((i=r.tagName)===null||i===void 0?void 0:i.toLowerCase())==="span")try{var n=Ya(r);e="".concat(e," ").concat(n).trim(),r.childNodes&&r.childNodes.length&&(e="".concat(e," ").concat(Od(r)).trim())}catch(s){j.error(s)}}),e}function W0(t){return function(e){var r=e.map(function(i){var n,s,a="";if(i.tag_name&&(a+=i.tag_name),i.attr_class){i.attr_class.sort();var o,l=oi(i.attr_class);try{for(l.s();!(o=l.n()).done;){var h=o.value;a+=".".concat(h.replace(/"/g,""))}}catch(f){l.e(f)}finally{l.f()}}var c=ne(ne(ne(ne({},i.text?{text:i.text}:{}),{},{"nth-child":(n=i.nth_child)!==null&&n!==void 0?n:0,"nth-of-type":(s=i.nth_of_type)!==null&&s!==void 0?s:0},i.href?{href:i.href}:{}),i.attr_id?{attr_id:i.attr_id}:{}),i.attributes),u={};return Na(c).sort(function(f,p){var m=Gt(f,1)[0],g=Gt(p,1)[0];return m.localeCompare(g)}).forEach(function(f){var p=Gt(f,2),m=p[0],g=p[1];return u[nd(m.toString())]=nd(g.toString())}),a+=":",a+=Na(c).map(function(f){var p=Gt(f,2),m=p[0],g=p[1];return"".concat(m,'="').concat(g,'"')}).join("")});return r.join(";")}(function(e){return e.map(function(r){var i,n,s={text:(i=r.$el_text)===null||i===void 0?void 0:i.slice(0,400),tag_name:r.tag_name,href:(n=r.attr__href)===null||n===void 0?void 0:n.slice(0,2048),attr_class:Z0(r),attr_id:r.attr__id,nth_child:r.nth_child,nth_of_type:r.nth_of_type,attributes:{}};return Na(r).filter(function(a){return Gt(a,1)[0].indexOf("attr__")===0}).forEach(function(a){var o=Gt(a,2),l=o[0],h=o[1];return s.attributes[l]=h}),s})}(t))}function nd(t){return t.replace(/"|\\"/g,'\\"')}function Z0(t){var e=t.attr__class;return e?We(e)?e:gh(e):void 0}var Y0=function(){function t(e){Oe(this,t),this.clicks=[],this.enabled=e}return Re(t,[{key:"isRageClick",value:function(e,r,i){if(!this.enabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(r-n.y)<30&&i-n.timestamp<1e3){if(this.clicks.push({x:e,y:r,timestamp:i}),this.clicks.length===3)return!0}else this.clicks=[{x:e,y:r,timestamp:i}];return!1}}]),t}(),Rd="$people_distinct_id",ja="__alias",Hn="__timers",sd="$autocapture_disabled_server_side",rh="$session_recording_enabled_server_side",ad="$console_log_recording_enabled_server_side",od="$session_recording_recorder_version_server_side",ld="$session_recording_network_payload_capture",Ja="$sesid",Ga="$session_is_sampled",Ji="$enabled_feature_flags",ih="$early_access_features",Xi="$stored_person_properties",Er="$stored_group_properties",nh="$surveys",Xa="$flag_call_reported",sh="$user_state",ah="$posthog_quota_limited",oh="$client_session_props",J0=[Rd,ja,"__cmpns",Hn,rh,Ja,Ji,sh,ah,ih,Er,Xi,nh,Xa,oh];function Ul(t,e){return e.length>t?e.slice(0,t)+"...":e}var Pr={_initializedTokens:[],_isDisabledServerSide:null,_isAutocaptureEnabled:!1,_setIsAutocaptureEnabled:function(t){var e,r=$t(this._isDisabledServerSide)?!((e=t.persistence)===null||e===void 0||!e.props[sd]):this._isDisabledServerSide,i=!!t.config.autocapture;this._isAutocaptureEnabled=i&&!r},_previousElementSibling:function(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do e=e.previousSibling;while(e&&!td(e));return e},_getAugmentPropertiesFromElement:function(t){if(!za(t))return{};var e={};return Ce(t.attributes,function(r){if(r.name.indexOf("data-ph-capture-attribute")===0){var i=r.name.replace("data-ph-capture-attribute-",""),n=r.value;i&&n&&Yi(n)&&(e[i]=n)}}),e},_getPropertiesFromElement:function(t,e,r){var i,n=t.tagName.toLowerCase(),s={tag_name:n};ql.indexOf(n)>-1&&!r&&(n.toLowerCase()==="a"||n.toLowerCase()==="button"?s.$el_text=Ul(1024,id(t)):s.$el_text=Ul(1024,Ya(t)));var a=Za(t);a.length>0&&(s.classes=a.filter(function(u){return u!==""}));var o=(i=this.config)===null||i===void 0?void 0:i.element_attribute_ignorelist;Ce(t.attributes,function(u){var f;if((!$d(t)||["name","id","class"].indexOf(u.name)!==-1)&&(o==null||!o.includes(u.name))&&!e&&Yi(u.value)&&(f=u.name,!kt(f)||f.substring(0,10)!=="_ngcontent"&&f.substring(0,7)!=="_nghost")){var p=u.value;u.name==="class"&&(p=gh(p).join(" ")),s["attr__"+u.name]=Ul(1024,p)}});for(var l=1,h=1,c=t;c=this._previousElementSibling(c);)l++,c.tagName===t.tagName&&h++;return s.nth_child=l,s.nth_of_type=h,s},_getDefaultProperties:function(t){return{$event_type:t,$ce_version:1}},_extractCustomPropertyValue:function(t){var e=[];return Ce(K?.querySelectorAll(t.css_selector),function(r){var i;["input","select"].indexOf(r.tagName.toLowerCase())>-1?i=r.value:r.textContent&&(i=r.textContent),Yi(i)&&e.push(i)}),e.join(", ")},_getCustomProperties:function(t){var e=this,r={};return Ce(this._customProperties,function(i){Ce(i.event_selectors,function(n){Ce(K?.querySelectorAll(n),function(s){xe(t,s)&&za(s)&&(r[i.name]=e._extractCustomPropertyValue(i))})})}),r},_getEventTarget:function(t){return ve(t.target)?t.srcElement||null:(e=t.target)!==null&&e!==void 0&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e},_captureEvent:function(t,e){var r,i=this,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",s=this._getEventTarget(t);if(Fd(s)&&(s=s.parentNode||null),n==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&(r=this.rageclicks)!==null&&r!==void 0&&r.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this._captureEvent(t,e,"$rageclick"),s&&function(g,d){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!O||!g||ai(g,"html")||!td(g))return!1;if(y!=null&&y.url_allowlist){var v=O.location.href,b=y.url_allowlist;if(b&&!b.some(function(E){return v.match(E)}))return!1}if(y!=null&&y.dom_event_allowlist){var _=y.dom_event_allowlist;if(_&&!_.some(function(E){return d.type===E}))return!1}if(y!=null&&y.element_allowlist){var S=y.element_allowlist;if(S&&!S.some(function(E){return g.tagName.toLowerCase()===E}))return!1}if(y!=null&&y.css_selector_allowlist){var T=y.css_selector_allowlist;if(T&&!T.some(function(E){return g.matches(E)}))return!1}for(var x=!1,w=[g],M=!0,k=g;k.parentNode&&!ai(k,"body");)if(rd(k.parentNode))w.push(k.parentNode.host),k=k.parentNode.host;else{if(!(M=k.parentNode||!1))break;if(ql.indexOf(M.tagName.toLowerCase())>-1)x=!0;else{var I=O.getComputedStyle(M);I&&I.getPropertyValue("cursor")==="pointer"&&(x=!0)}w.push(M),k=M}var P=O.getComputedStyle(g);if(P&&P.getPropertyValue("cursor")==="pointer"&&d.type==="click")return!0;var A=g.tagName.toLowerCase();switch(A){case"html":return!1;case"form":return d.type==="submit";case"input":case"select":case"textarea":return d.type==="change"||d.type==="click";default:return x?d.type==="click":d.type==="click"&&(ql.indexOf(A)>-1||g.getAttribute("contenteditable")==="true")}}(s,t,this.config)){for(var a,o,l=[s],h=s;h.parentNode&&!ai(h,"body");)rd(h.parentNode)?(l.push(h.parentNode.host),h=h.parentNode.host):(l.push(h.parentNode),h=h.parentNode);var c,u=[],f={},p=!1;if(Ce(l,function(g){var d=za(g);g.tagName.toLowerCase()==="a"&&(c=g.getAttribute("href"),c=d&&Yi(c)&&c),xe(Za(g),"ph-no-capture")&&(p=!0),u.push(i._getPropertiesFromElement(g,e.config.mask_all_element_attributes,e.config.mask_all_text));var y=i._getAugmentPropertiesFromElement(g);Je(f,y)}),e.config.mask_all_text||(s.tagName.toLowerCase()==="a"||s.tagName.toLowerCase()==="button"?u[0].$el_text=id(s):u[0].$el_text=Ya(s)),c&&(u[0].attr__href=c),p)return!1;var m=Je(this._getDefaultProperties(t.type),e.elementsChainAsString?{$elements_chain:W0(u)}:{$elements:u},(a=u[0])!==null&&a!==void 0&&a.$el_text?{$el_text:(o=u[0])===null||o===void 0?void 0:o.$el_text}:{},this._getCustomProperties(l),f);return e.capture(n,m),!0}},_navigate:function(t){O&&(O.location.href=t)},_addDomEventHandlers:function(t){var e=this;if(O&&K){var r=function(i){i=i||O?.event,e._captureEvent(i,t)};Un(K,"submit",r,!1,!0),Un(K,"change",r,!1,!0),Un(K,"click",r,!1,!0)}},_customProperties:[],rageclicks:null,config:void 0,init:function(t){var e;eh(t.__autocapture)||(this.config=t.__autocapture),(e=this.config)!==null&&e!==void 0&&e.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(r){return new RegExp(r)})),this.rageclicks=new Y0(t.config.rageclick)},afterDecideResponse:function(t,e){var r=e.config.token;this._initializedTokens.indexOf(r)>-1?j.info('autocapture already initialized for token "'+r+'"'):(e.persistence&&e.persistence.register(Y({},sd,!!t.autocapture_opt_out)),this._isDisabledServerSide=!!t.autocapture_opt_out,this._setIsAutocaptureEnabled(e),this._initializedTokens.push(r),t&&t.config&&t.config.enable_collect_everything&&this._isAutocaptureEnabled?(t.custom_properties&&(this._customProperties=t.custom_properties),this._addDomEventHandlers(e)):e.__autocapture=!1)},enabledForProject:function(t,e,r){if(!t)return!0;e=ve(e)?10:e,r=ve(r)?10:r;for(var i=0,n=0;n<t.length;n++)i+=t.charCodeAt(n);return i%e<r},isBrowserSupported:function(){return Ht(K?.querySelectorAll)}};(function(t){for(var e in t)Ht(t[e])&&(t[e]=t[e].bind(t))})(Pr),function(t){for(var e in t)Ht(t[e])&&(t[e]=Dd(t[e]))}(Pr);var Wl="$active_feature_flags",Oa="$override_feature_flags",hd="$feature_flag_payloads",cd=function(t){var e,r={},i=oi(Na(t||{}));try{for(i.s();!(e=i.n()).done;){var n=Gt(e.value,2),s=n[0],a=n[1];a&&(r[s]=a)}}catch(o){i.e(o)}finally{i.f()}return r},X0=function(){function t(e){Oe(this,t),this.instance=e,this._override_warning=!1,this.featureFlagEventHandlers=[],this.reloadFeatureFlagsQueued=!1,this.reloadFeatureFlagsInAction=!1}return Re(t,[{key:"getFlags",value:function(){return Object.keys(this.getFlagVariants())}},{key:"getFlagVariants",value:function(){var e=this.instance.get_property(Ji),r=this.instance.get_property(Oa);if(!r)return e||{};for(var i=Je({},e),n=Object.keys(r),s=0;s<n.length;s++)r[n[s]]===!1?delete i[n[s]]:i[n[s]]=r[n[s]];return this._override_warning||(j.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:r,finalFlags:i}),this._override_warning=!0),i}},{key:"getFlagPayloads",value:function(){return this.instance.get_property(hd)||{}}},{key:"reloadFeatureFlags",value:function(){this.reloadFeatureFlagsQueued||(this.reloadFeatureFlagsQueued=!0,this._startReloadTimer())}},{key:"setAnonymousDistinctId",value:function(e){this.$anon_distinct_id=e}},{key:"setReloadingPaused",value:function(e){this.reloadFeatureFlagsInAction=e}},{key:"resetRequestQueue",value:function(){this.reloadFeatureFlagsQueued=!1}},{key:"_startReloadTimer",value:function(){var e=this;this.reloadFeatureFlagsQueued&&!this.reloadFeatureFlagsInAction&&setTimeout(function(){!e.reloadFeatureFlagsInAction&&e.reloadFeatureFlagsQueued&&(e.reloadFeatureFlagsQueued=!1,e._reloadFeatureFlagsRequest())},5)}},{key:"_reloadFeatureFlagsRequest",value:function(){var e=this;if(!this.instance.config.advanced_disable_feature_flags){this.setReloadingPaused(!0);var r=this.instance.config.token,i=this.instance.get_property(Xi),n=this.instance.get_property(Er),s=mh(JSON.stringify({token:r,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:i,group_properties:n,disable_flags:this.instance.config.advanced_disable_feature_flags||void 0}));this.instance._send_request(this.instance.config.api_host+"/decide/?v=3",{data:s},{method:"POST"},this.instance._prepare_callback(function(a){e.$anon_distinct_id=void 0,e.receivedFeatureFlags(a),e.setReloadingPaused(!1),e._startReloadTimer()}))}}},{key:"getFeatureFlag",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var i,n=this.getFlagVariants()[e],s="".concat(n),a=this.instance.get_property(Xa)||{};return(r.send_event||!("send_event"in r))&&(!(e in a)||!a[e].includes(s))&&(We(a[e])?a[e].push(s):a[e]=[s],(i=this.instance.persistence)===null||i===void 0||i.register(Y({},Xa,a)),this.instance.capture("$feature_flag_called",{$feature_flag:e,$feature_flag_response:n})),n}j.warn('getFeatureFlag for key "'+e+`" failed. Feature flags didn't load in time.`)}},{key:"getFeatureFlagPayload",value:function(e){return this.getFlagPayloads()[e]}},{key:"isFeatureEnabled",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(e,r);j.warn('isFeatureEnabled for key "'+e+`" failed. Feature flags didn't load in time.`)}},{key:"addFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers.push(e)}},{key:"removeFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(r){return r!==e})}},{key:"receivedFeatureFlags",value:function(e){if(this.instance.persistence){this.instance.decideEndpointWasHit=!0;var r=this.getFlagVariants(),i=this.getFlagPayloads();(function(n,s){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=n.featureFlags,h=n.featureFlagPayloads;if(l)if(We(l)){var c,u={};if(l)for(var f=0;f<l.length;f++)u[l[f]]=!0;s&&s.register((Y(c={},Wl,l),Y(c,Ji,u),c))}else{var p,m=l,g=h;n.errorsWhileComputingFlags&&(m=ne(ne({},a),m),g=ne(ne({},o),g)),s&&s.register((Y(p={},Wl,Object.keys(cd(m))),Y(p,Ji,m||{}),Y(p,hd,g||{}),p))}})(e,this.instance.persistence,r,i),this._fireFeatureFlagsCallbacks()}}},{key:"override",value:function(e){if(!this.instance.__loaded||!this.instance.persistence)return j.uninitializedWarning("posthog.feature_flags.override");if(this._override_warning=!1,e===!1)this.instance.persistence.unregister(Oa);else if(We(e)){for(var r={},i=0;i<e.length;i++)r[e[i]]=!0;this.instance.persistence.register(Y({},Oa,r))}else this.instance.persistence.register(Y({},Oa,e))}},{key:"onFeatureFlags",value:function(e){var r=this;if(this.addFeatureFlagsHandler(e),this.instance.decideEndpointWasHit){var i=this._prepareFeatureFlagsForCallbacks(),n=i.flags,s=i.flagVariants;e(n,s)}return function(){return r.removeFeatureFlagsHandler(e)}}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,r){var i,n,s=Y({},"$feature_enrollment/".concat(e),r);this.instance.capture("$feature_enrollment_update",{$feature_flag:e,$feature_enrollment:r,$set:s}),this.setPersonPropertiesForFlags(s,!1);var a=ne(ne({},this.getFlagVariants()),{},Y({},e,r));(i=this.instance.persistence)===null||i===void 0||i.register((Y(n={},Wl,Object.keys(cd(a))),Y(n,Ji,a),n)),this._fireFeatureFlagsCallbacks()}},{key:"getEarlyAccessFeatures",value:function(e){var r=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=this.instance.get_property(ih);if(n&&!i)return e(n);this.instance._send_request("".concat(this.instance.config.api_host,"/api/early_access_features/?token=").concat(this.instance.config.token),{},{method:"GET"},function(s){var a,o=s.earlyAccessFeatures;return(a=r.instance.persistence)===null||a===void 0||a.register(Y({},ih,o)),e(o)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var e=this.getFlags(),r=this.getFlagVariants();return{flags:e.filter(function(i){return r[i]}),flagVariants:Object.keys(r).filter(function(i){return r[i]}).reduce(function(i,n){return i[n]=r[n],i},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var e=this._prepareFeatureFlagsForCallbacks(),r=e.flags,i=e.flagVariants;this.featureFlagEventHandlers.forEach(function(n){return n(r,i)})}},{key:"setPersonPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this.instance.get_property(Xi)||{};this.instance.register(Y({},Xi,ne(ne({},i),e))),r&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(Xi)}},{key:"setGroupPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this.instance.get_property(Er)||{};Object.keys(i).length!==0&&Object.keys(i).forEach(function(n){i[n]=ne(ne({},i[n]),e[n]),delete e[n]}),this.instance.register(Y({},Er,ne(ne({},i),e))),r&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(e){if(e){var r=this.instance.get_property(Er)||{};this.instance.register(Y({},Er,ne(ne({},r),{},Y({},e,{}))))}else this.instance.unregister(Er)}}]),t}();Math.trunc||(Math.trunc=function(t){return t<0?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return ur(t)&&isFinite(t)&&Math.floor(t)===t});var ud="0123456789abcdef",K0=function(){function t(e){if(Oe(this,t),this.bytes=e,e.length!==16)throw new TypeError("not 128-bit length")}return Re(t,[{key:"toString",value:function(){for(var e="",r=0;r<this.bytes.length;r++)e=e+ud.charAt(this.bytes[r]>>>4)+ud.charAt(15&this.bytes[r]),r!==3&&r!==5&&r!==7&&r!==9||(e+="-");if(e.length!==36)throw new Error("Invalid UUIDv7 was generated");return e}},{key:"clone",value:function(){return new t(this.bytes.slice(0))}},{key:"equals",value:function(e){return this.compareTo(e)===0}},{key:"compareTo",value:function(e){for(var r=0;r<16;r++){var i=this.bytes[r]-e.bytes[r];if(i!==0)return Math.sign(i)}return 0}}],[{key:"fromFieldsV7",value:function(e,r,i,n){if(!Number.isInteger(e)||!Number.isInteger(r)||!Number.isInteger(i)||!Number.isInteger(n)||e<0||r<0||i<0||n<0||e>0xffffffffffff||r>4095||i>1073741823||n>4294967295)throw new RangeError("invalid field value");var s=new Uint8Array(16);return s[0]=e/Math.pow(2,40),s[1]=e/Math.pow(2,32),s[2]=e/Math.pow(2,24),s[3]=e/Math.pow(2,16),s[4]=e/Math.pow(2,8),s[5]=e,s[6]=112|r>>>8,s[7]=r,s[8]=128|i>>>24,s[9]=i>>>16,s[10]=i>>>8,s[11]=i,s[12]=n>>>24,s[13]=n>>>16,s[14]=n>>>8,s[15]=n,new t(s)}}]),t}(),Q0=function(){function t(){Oe(this,t),Y(this,"timestamp",0),Y(this,"counter",0),Y(this,"random",new ey)}return Re(t,[{key:"generate",value:function(){var e=this.generateOrAbort();if(ve(e)){this.timestamp=0;var r=this.generateOrAbort();if(ve(r))throw new Error("Could not generate UUID after timestamp reset");return r}return e}},{key:"generateOrAbort",value:function(){var e=Date.now();if(e>this.timestamp)this.timestamp=e,this.resetCounter();else{if(!(e+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return K0.fromFieldsV7(this.timestamp,Math.trunc(this.counter/Math.pow(2,30)),this.counter&Math.pow(2,30)-1,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),t}(),Ld=function(t){if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var e=0;e<t.length;e++)t[e]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return t};O&&!ve(O.crypto)&&crypto.getRandomValues&&(Ld=function(t){return crypto.getRandomValues(t)});var pd,ey=function(){function t(){Oe(this,t),Y(this,"buffer",new Uint32Array(8)),Y(this,"cursor",1/0)}return Re(t,[{key:"nextUint32",value:function(){return this.cursor>=this.buffer.length&&(Ld(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),t}(),si=function(){return ty().toString()},ty=function(){return(pd||(pd=new Q0)).generate()},ry="Thu, 01 Jan 1970 00:00:00 GMT",zn="",iy=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,ny=function(t){var e=t.match(iy);return e?e[0]:""};function sy(t,e){if(e){var r=function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:K;if(zn)return zn;if(!s||["localhost","127.0.0.1"].includes(n))return"";for(var a=n.split("."),o=Math.min(a.length,8),l="dmn_chk_"+si(),h=new RegExp("(^|;)\\s*"+l+"=1");!zn&&o--;){var c=a.slice(o).join("."),u=l+"=1;domain=."+c;s.cookie=u,h.test(s.cookie)&&(s.cookie=u+";expires="+ry,zn=c)}return zn}(t);if(!r){var i=ny(t);i!==r&&j.info("Warning: cookie subdomain discovery mismatch",i,r),r=i}return r?"; domain=."+r:""}return""}var Xt={is_supported:function(){return!!K},error:function(t){j.error("cookieStore error: "+t)},get:function(t){if(K){try{for(var e=t+"=",r=K.cookie.split(";").filter(function(s){return s.length}),i=0;i<r.length;i++){for(var n=r[i];n.charAt(0)==" ";)n=n.substring(1,n.length);if(n.indexOf(e)===0)return decodeURIComponent(n.substring(e.length,n.length))}}catch{}return null}},parse:function(t){var e;try{e=JSON.parse(Xt.get(t))||{}}catch{}return e},set:function(t,e,r,i,n){if(K)try{var s="",a="",o=sy(K.location.hostname,i);if(r){var l=new Date;l.setTime(l.getTime()+24*r*60*60*1e3),s="; expires="+l.toUTCString()}n&&(a="; secure");var h=t+"="+encodeURIComponent(JSON.stringify(e))+s+"; SameSite=Lax; path=/"+o+a;return h.length>3686.4&&j.warn("cookieStore warning: large cookie, len="+h.length),K.cookie=h,h}catch{return}},remove:function(t,e){try{Xt.set(t,"",-1,e)}catch{return}}},Zl=null,Le={is_supported:function(){if(!$t(Zl))return Zl;var t=!0;if(ve(O))t=!1;else try{var e="__mplssupport__";Le.set(e,"xyz"),Le.get(e)!=='"xyz"'&&(t=!1),Le.remove(e)}catch{t=!1}return t||j.error("localStorage unsupported; falling back to cookie store"),Zl=t,t},error:function(t){j.error("localStorage error: "+t)},get:function(t){try{return O?.localStorage.getItem(t)}catch(e){Le.error(e)}return null},parse:function(t){try{return JSON.parse(Le.get(t))||{}}catch{}return null},set:function(t,e){try{O?.localStorage.setItem(t,JSON.stringify(e))}catch(r){Le.error(r)}},remove:function(t){try{O?.localStorage.removeItem(t)}catch(e){Le.error(e)}}},ay=["distinct_id",Ja,Ga],qn=ne(ne({},Le),{},{parse:function(t){try{var e={};try{e=Xt.parse(t)||{}}catch{}var r=Je(e,JSON.parse(Le.get(t)||"{}"));return Le.set(t,r),r}catch{}return null},set:function(t,e,r,i,n){try{Le.set(t,e);var s={};ay.forEach(function(a){e[a]&&(s[a]=e[a])}),Object.keys(s).length&&Xt.set(t,s,r,i,n)}catch(a){Le.error(a)}},remove:function(t,e){try{O?.localStorage.removeItem(t),Xt.remove(t,e)}catch(r){Le.error(r)}}}),Ra={},oy={is_supported:function(){return!0},error:function(t){j.error("memoryStorage error: "+t)},get:function(t){return Ra[t]||null},parse:function(t){return Ra[t]||null},set:function(t,e){Ra[t]=e},remove:function(t){delete Ra[t]}},ii=null,Ke={is_supported:function(){if(!$t(ii))return ii;if(ii=!0,ve(O))ii=!1;else try{var t="__support__";Ke.set(t,"xyz"),Ke.get(t)!=='"xyz"'&&(ii=!1),Ke.remove(t)}catch{ii=!1}return ii},error:function(t){j.error("sessionStorage error: ",t)},get:function(t){try{return O?.sessionStorage.getItem(t)}catch(e){Ke.error(e)}return null},parse:function(t){try{return JSON.parse(Ke.get(t))||null}catch{}return null},set:function(t,e){try{O?.sessionStorage.setItem(t,JSON.stringify(e))}catch(r){Ke.error(r)}},remove:function(t){try{O?.sessionStorage.removeItem(t)}catch(e){Ke.error(e)}}},ly=["localhost","127.0.0.1"],Bd=function(t){var e=K?.createElement("a");return ve(e)?null:(e.href=t,e)},hy=function(t,e){return!!function(r){try{new RegExp(r)}catch{return!1}return!0}(e)&&new RegExp(e).test(t)},dd=function(t,e){for(var r,i=((t.split("#")[0]||"").split("?")[1]||"").split("&"),n=0;n<i.length;n++){var s=i[n].split("=");if(s[0]===e){r=s;break}}if(!We(r)||r.length<2)return"";var a=r[1];try{a=decodeURIComponent(a)}catch{j.error("Skipping decoding for malformed query param: "+a)}return a.replace(/\+/g," ")},Ka=function(t,e){var r=t.match(new RegExp(e+"=([^&]*)"));return r?r[1]:null},He={campaignParams:function(t){var e=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","gad_source","gbraid","wbraid","fbclid","msclkid"].concat(t||[]),r={};return Ce(e,function(i){var n=K?dd(K.URL,i):"";n.length&&(r[i]=n)}),r},searchEngine:function(){var t=K?.referrer;return t?t.search("https?://(.*)google.([^/?]*)")===0?"google":t.search("https?://(.*)bing.com")===0?"bing":t.search("https?://(.*)yahoo.com")===0?"yahoo":t.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var t=He.searchEngine(),e=t!="yahoo"?"q":"p",r={};if(!$t(t)){r.$search_engine=t;var i=K?dd(K.referrer,e):"";i.length&&(r.ph_keyword=i)}return r},browser:function(t,e,r){return e=e||"",r||xe(t," OPR/")?xe(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":xe(t,"IEMobile")||xe(t,"WPDesktop")?"Internet Explorer Mobile":xe(t,"SamsungBrowser/")?"Samsung Internet":xe(t,"Edge")||xe(t,"Edg/")?"Microsoft Edge":xe(t,"FBIOS")?"Facebook Mobile":xe(t,"Chrome")?"Chrome":xe(t,"CriOS")?"Chrome iOS":xe(t,"UCWEB")||xe(t,"UCBrowser")?"UC Browser":xe(t,"FxiOS")?"Firefox iOS":xe(e,"Apple")||function(i){return xe(i,"Safari")&&!xe(i,"Chrome")&&!xe(i,"Android")}(t)?xe(t,"Mobile")?"Mobile Safari":"Safari":xe(t,"Android")?"Android Mobile":xe(t,"Konqueror")||xe(t,"konqueror")?"Konqueror":xe(t,"Firefox")?"Firefox":xe(t,"MSIE")||xe(t,"Trident/")?"Internet Explorer":xe(t,"Gecko")?"Mozilla":""},browserVersion:function(t,e,r){var i={"Internet Explorer Mobile":[/rv:(\d+(\.\d+)?)/],"Microsoft Edge":[/Edge?\/(\d+(\.\d+)?)/],Chrome:[/Chrome\/(\d+(\.\d+)?)/],"Chrome iOS":[/CriOS\/(\d+(\.\d+)?)/],"UC Browser":[/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/],Safari:[/Version\/(\d+(\.\d+)?)/],"Mobile Safari":[/Version\/(\d+(\.\d+)?)/],Opera:[/(Opera|OPR)\/(\d+(\.\d+)?)/],Firefox:[/Firefox\/(\d+(\.\d+)?)/],"Firefox iOS":[/FxiOS\/(\d+(\.\d+)?)/],Konqueror:[/Konqueror[:/]?(\d+(\.\d+)?)/i],BlackBerry:[/BlackBerry (\d+(\.\d+)?)/,/Version\/(\d+(\.\d+)?)/],"Android Mobile":[/android\s(\d+(\.\d+)?)/],"Samsung Internet":[/SamsungBrowser\/(\d+(\.\d+)?)/],"Internet Explorer":[/(rv:|MSIE )(\d+(\.\d+)?)/],Mozilla:[/rv:(\d+(\.\d+)?)/]}[He.browser(t,e,r)];if(ve(i))return null;for(var n=0;n<i.length;n++){var s=i[n],a=t.match(s);if(a)return parseFloat(a[a.length-2])}return null},browserLanguage:function(){return navigator.language||navigator.userLanguage},os:function(t){if(/Windows/i.test(t)){if(/Phone/.test(t)||/WPDesktop/.test(t))return{os_name:"Windows Phone",os_version:""};var e=/Windows NT ([0-9.]+)/i.exec(t);return e&&e[1]?{os_name:"Windows",os_version:e[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(t)){var r=/OS (\d+)_(\d+)_?(\d+)?/i.exec(t);return r&&r[1]?{os_name:"iOS",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(t)){var i=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(t);return i&&i[1]?{os_name:"Android",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(t))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(t)){var n=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(t);return n&&n[1]?{os_name:"Mac OS X",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(t)?{os_name:"Linux",os_version:""}:/CrOS/.test(t)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)&&!/Mobile/.test(t)?"Android Tablet":/Android/.test(t)?"Android":""},deviceType:function(t){var e=this.device(t);return e==="iPad"||e==="Android Tablet"?"Tablet":e?"Mobile":"Desktop"},referrer:function(){return K?.referrer||"$direct"},referringDomain:function(){var t;return K!=null&&K.referrer&&((t=Bd(K.referrer))===null||t===void 0?void 0:t.host)||"$direct"},properties:function(){if(!Ge)return{};var t=He.os(Ge),e=t.os_name,r=t.os_version;return Je(th({$os:e,$os_version:r,$browser:He.browser(Ge,navigator.vendor,rt.opera),$device:He.device(Ge),$device_type:He.deviceType(Ge)}),{$current_url:O?.location.href,$host:O?.location.host,$pathname:O?.location.pathname,$raw_user_agent:Ge.length>1e3?Ge.substring(0,997)+"...":Ge,$browser_version:He.browserVersion(Ge,navigator.vendor,rt.opera),$browser_language:He.browserLanguage(),$screen_height:O?.screen.height,$screen_width:O?.screen.width,$viewport_height:O?.innerHeight,$viewport_width:O?.innerWidth,$lib:"web",$lib_version:li.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Md()/1e3})},people_properties:function(){if(!Ge)return{};var t=He.os(Ge),e=t.os_name,r=t.os_version;return Je(th({$os:e,$os_version:r,$browser:He.browser(Ge,navigator.vendor,rt.opera)}),{$browser_version:He.browserVersion(Ge,navigator.vendor,rt.opera)})}},cy=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],fd=function(){function t(e){Oe(this,t);var r="";e.token&&(r=e.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),this.props={},this.campaign_params_saved=!1,this.custom_campaign_params=e.custom_campaign_params||[],e.persistence_name?this.name="ph_"+e.persistence_name:this.name="ph_"+r+"_posthog",cy.indexOf(e.persistence.toLowerCase())===-1&&(j.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var i=e.persistence.toLowerCase();i==="localstorage"&&Le.is_supported()?this.storage=Le:i==="localstorage+cookie"&&qn.is_supported()?this.storage=qn:i==="sessionstorage"&&Ke.is_supported()?this.storage=Ke:i==="memory"?this.storage=oy:i==="cookie"?this.storage=Xt:qn.is_supported()?this.storage=qn:this.storage=Xt,this.user_state="anonymous",this.load(),this.update_config(e),this.save()}return Re(t,[{key:"properties",value:function(){var e={};return Ce(this.props,function(r,i){if(i===Ji&&Ar(r))for(var n=Object.keys(r),s=0;s<n.length;s++)e["$feature/".concat(n[s])]=r[n[s]];else o=i,l=!1,($t(a=J0)?l:Xp&&a.indexOf===Xp?a.indexOf(o)!=-1:(Ce(a,function(h){if(l||(l=h===o))return fh}),l))||(e[i]=r);var a,o,l}),e}},{key:"load",value:function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=Je({},e))}}},{key:"save",value:function(){this.disabled||this.storage.set(this.name,this.props,this.expire_days,this.cross_subdomain,this.secure)}},{key:"remove",value:function(){this.storage.remove(this.name,!1),this.storage.remove(this.name,!0)}},{key:"clear",value:function(){this.remove(),this.props={}}},{key:"register_once",value:function(e,r,i){var n=this;if(Ar(e)){ve(r)&&(r="None"),this.expire_days=ve(i)?this.default_expiry:i;var s=!1;if(Ce(e,function(a,o){n.props.hasOwnProperty(o)&&n.props[o]!==r||(n.props[o]=a,s=!0)}),s)return this.save(),!0}return!1}},{key:"register",value:function(e,r){var i=this;if(Ar(e)){this.expire_days=ve(r)?this.default_expiry:r;var n=!1;if(Ce(e,function(s,a){e.hasOwnProperty(a)&&i.props[a]!==s&&(i.props[a]=s,n=!0)}),n)return this.save(),!0}return!1}},{key:"unregister",value:function(e){e in this.props&&(delete this.props[e],this.save())}},{key:"update_campaign_params",value:function(){this.campaign_params_saved||(this.register(He.campaignParams(this.custom_campaign_params)),this.campaign_params_saved=!0)}},{key:"update_search_keyword",value:function(){this.register(He.searchInfo())}},{key:"update_referrer_info",value:function(){this.register({$referrer:this.props.$referrer||He.referrer(),$referring_domain:this.props.$referring_domain||He.referringDomain()})}},{key:"get_referrer_info",value:function(){return th({$referrer:this.props.$referrer,$referring_domain:this.props.$referring_domain})}},{key:"safe_merge",value:function(e){return Ce(this.props,function(r,i){i in e||(e[i]=r)}),e}},{key:"update_config",value:function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)}},{key:"set_disabled",value:function(e){this.disabled=e,this.disabled?this.remove():this.save()}},{key:"set_cross_subdomain",value:function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())}},{key:"get_cross_subdomain",value:function(){return!!this.cross_subdomain}},{key:"set_secure",value:function(e){e!==this.secure&&(this.secure=e,this.remove(),this.save())}},{key:"set_event_timer",value:function(e,r){var i=this.props[Hn]||{};i[e]=r,this.props[Hn]=i,this.save()}},{key:"remove_event_timer",value:function(e){var r=(this.props[Hn]||{})[e];return ve(r)||(delete this.props[Hn][e],this.save()),r}},{key:"get_user_state",value:function(){return this.props[sh]||"anonymous"}},{key:"set_user_state",value:function(e){this.props[sh]=e,this.save()}},{key:"get_quota_limits",value:function(){return this.props[ah]||{}}},{key:"set_quota_limits",value:function(e){this.props[ah]=e,this.save()}}]),t}(),md=2,uy=4,Vd=3,py=6,dy=0,fy="rrweb/console@1",my=Re(function t(e){var r,i,n=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Oe(this,t),Y(this,"bucketSize",100),Y(this,"refillRate",10),Y(this,"mutationBuckets",{}),Y(this,"loggedTracker",{}),Y(this,"refillBuckets",function(){Object.keys(n.mutationBuckets).forEach(function(a){n.mutationBuckets[a]=n.mutationBuckets[a]+n.refillRate,n.mutationBuckets[a]>=n.bucketSize&&delete n.mutationBuckets[a]})}),Y(this,"getNodeOrRelevantParent",function(a){var o=n.rrweb.mirror.getNode(a);if(o?.nodeName!=="svg"&&o instanceof Element){var l=o.closest("svg");if(l)return[n.rrweb.mirror.getId(l),l]}return[a,o]}),Y(this,"numberOfChanges",function(a){var o,l,h,c,u,f,p,m;return((o=(l=a.removes)===null||l===void 0?void 0:l.length)!==null&&o!==void 0?o:0)+((h=(c=a.attributes)===null||c===void 0?void 0:c.length)!==null&&h!==void 0?h:0)+((u=(f=a.texts)===null||f===void 0?void 0:f.length)!==null&&u!==void 0?u:0)+((p=(m=a.adds)===null||m===void 0?void 0:m.length)!==null&&p!==void 0?p:0)}),Y(this,"throttleMutations",function(a){if(a.type!==Vd||a.data.source!==dy)return a;var o=a.data,l=n.numberOfChanges(o);o.attributes&&(o.attributes=o.attributes.filter(function(c){var u,f,p,m=Gt(n.getNodeOrRelevantParent(c.id),2),g=m[0],d=m[1];return n.mutationBuckets[g]===0?!1:(n.mutationBuckets[g]=(u=n.mutationBuckets[g])!==null&&u!==void 0?u:n.bucketSize,n.mutationBuckets[g]=Math.max(n.mutationBuckets[g]-1,0),n.mutationBuckets[g]===0&&(n.loggedTracker[g]||(n.loggedTracker[g]=!0,(f=(p=n.options).onBlockedNode)===null||f===void 0||f.call(p,g,d))),c)}));var h=n.numberOfChanges(o);return h!==0||l===h?a:void 0}),this.rrweb=e,this.options=s,this.refillRate=(r=this.options.refillRate)!==null&&r!==void 0?r:this.refillRate,this.bucketSize=(i=this.options.bucketSize)!==null&&i!==void 0?i:this.bucketSize,setInterval(function(){n.refillBuckets()},1e3)}),Nd=function(t){return t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t}(Nd||{}),gy={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],maskRequestFn:function(t){return t},recordHeaders:!1,recordBody:!1,recordInitialRequests:!1,recordPerformance:!1,performanceEntryTypeToObserve:["first-input","navigation","paint","resource"],payloadSizeLimitBytes:1e6},yy=["authorization","x-forwarded-for","authorization","cookie","set-cookie","x-api-key","x-real-ip","remote-addr","forwarded","proxy-authorization","x-csrf-token","x-csrftoken","x-xsrf-token"],vy=["/s/","/e/","/i/vo/e/"];function gd(t,e,r,i){var n=e?.["content-length"];return n&&parseInt(n)>r?"".concat(i," body too large to record"):t}var Jt,by=function(t,e){var r,i,n,s=t.session_recording,a=s.recordHeaders!==!1&&e.recordHeaders,o=s.recordBody!==!1&&e.recordBody,l=s.recordPerformance!==!1&&e.recordPerformance,h=(r=s,n=Math.min(1e6,(i=r.payloadSizeLimitBytes)!==null&&i!==void 0?i:1e6),function(f){return f!=null&&f.requestBody&&(f.requestBody=gd(f.requestBody,f.requestHeaders,n,"Request")),f!=null&&f.responseBody&&(f.responseBody=gd(f.responseBody,f.responseHeaders,n,"Response")),f}),c=function(f){return h(function(g){var d=Bd(g.name);if(!(d&&d.pathname&&vy.includes(d.pathname)))return g}((p=f,Object.keys((m=p.requestHeaders)!==null&&m!==void 0?m:{}).forEach(function(g){var d;yy.includes(g.toLowerCase())&&((d=p.requestHeaders)===null||d===void 0||delete d[g])}),p)));var p,m},u=Ht(t.session_recording.maskNetworkRequestFn);return u&&Ht(t.session_recording.maskCapturedNetworkRequestFn)&&j.warn("Both `maskNetworkRequestFn` and `maskCapturedNetworkRequestFn` are defined. `maskNetworkRequestFn` will be ignored."),u&&(t.session_recording.maskCapturedNetworkRequestFn=function(f){var p=t.session_recording.maskNetworkRequestFn({url:f.name});return ne(ne({},f),{},{name:p?.url})}),s.maskRequestFn=Ht(t.session_recording.maskCapturedNetworkRequestFn)?function(f){var p,m,g,d=c(f);return d&&(p=(m=(g=t.session_recording).maskCapturedNetworkRequestFn)===null||m===void 0?void 0:m.call(g,d))!==null&&p!==void 0?p:void 0}:void 0,s.maskRequestFn||(s.maskRequestFn=c),ne(ne(ne({},gy),s),{},{recordHeaders:a,recordBody:o,recordPerformance:l,recordInitialRequests:l})},_y="/s/",yd=3e5;(function(t){t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet"})(Jt||(Jt={}));var wy=[Jt.MouseMove,Jt.MouseInteraction,Jt.Scroll,Jt.ViewportResize,Jt.Input,Jt.TouchMove,Jt.MediaInteraction,Jt.Drag],xy=function(){function t(e){var r=this;if(Oe(this,t),Y(this,"isIdle",!1),Y(this,"_linkedFlagSeen",!1),Y(this,"_lastActivityTimestamp",Date.now()),Y(this,"windowId",null),Y(this,"sessionId",null),Y(this,"_linkedFlag",null),Y(this,"_sampleRate",null),Y(this,"_minimumDuration",null),Y(this,"_forceAllowLocalhostNetworkCapture",!1),this.instance=e,this._captureStarted=!1,this._endpoint=_y,this.stopRrweb=void 0,this.receivedDecide=!1,O?.addEventListener("beforeunload",function(){r._flushBuffer()}),!this.instance.sessionManager)throw j.error("Session recording started without valid sessionManager"),new Error("Session recording started without valid sessionManager. This is a bug.");this.buffer=this.clearBuffer()}return Re(t,[{key:"started",get:function(){return this._captureStarted}},{key:"sessionManager",get:function(){if(!this.instance.sessionManager)throw j.error("Session recording started without valid sessionManager"),new Error("Session recording started without valid sessionManager. This is a bug.");return this.instance.sessionManager}},{key:"isSampled",get:function(){return ur(this._sampleRate)?this.instance.get_property(Ga):null}},{key:"sessionDuration",get:function(){var e,r,i=(e=this.buffer)===null||e===void 0?void 0:e.data[((r=this.buffer)===null||r===void 0?void 0:r.data.length)-1],n=this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionStartTimestamp;return i?i.timestamp-n:null}},{key:"isRecordingEnabled",get:function(){var e=!!this.instance.get_property(rh),r=!this.instance.config.disable_session_recording;return O&&e&&r}},{key:"isConsoleLogCaptureEnabled",get:function(){var e=!!this.instance.get_property(ad),r=this.instance.config.enable_recording_console_log;return r??e}},{key:"recordingVersion",get:function(){var e,r=this.instance.get_property(od);return((e=this.instance.config.session_recording)===null||e===void 0?void 0:e.recorderVersion)||r||"v1"}},{key:"networkPayloadCapture",get:function(){var e,r,i=this.instance.get_property(ld),n={recordHeaders:(e=this.instance.config.session_recording)===null||e===void 0?void 0:e.recordHeaders,recordBody:(r=this.instance.config.session_recording)===null||r===void 0?void 0:r.recordBody},s=n?.recordHeaders||i?.recordHeaders,a=n?.recordBody||i?.recordBody,o=this.instance.config.capture_performance||i?.capturePerformance;return s||a||o?{recordHeaders:s,recordBody:a,recordPerformance:o}:void 0}},{key:"status",get:function(){return this.receivedDecide?this.isRecordingEnabled?kt(this._linkedFlag)&&!this._linkedFlagSeen?"buffering":eh(this.isSampled)?this.isSampled?"sampled":"disabled":"active":"disabled":"buffering"}},{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled?this.startCaptureAndTrySendingQueuedSnapshots():(this.stopRecording(),this.clearBuffer())}},{key:"stopRecording",value:function(){this._captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this._captureStarted=!1)}},{key:"makeSamplingDecision",value:function(e){var r,i=this.sessionId!==e;if(ur(this._sampleRate)){var n,s=this.isSampled;i||!eh(s)?n=Math.random()<this._sampleRate:n=s,n||j.warn("[SessionSampling] Sample rate (".concat(this._sampleRate,") has determined that this sessionId (").concat(e,") will not be sent to the server.")),(r=this.instance.persistence)===null||r===void 0||r.register(Y({},Ga,n))}else{var a;(a=this.instance.persistence)===null||a===void 0||a.register(Y({},Ga,null))}}},{key:"afterDecideResponse",value:function(e){var r,i,n,s,a,o,l,h,c=this;this.instance.persistence&&this.instance.persistence.register((Y(h={},rh,!!e.sessionRecording),Y(h,ad,(a=e.sessionRecording)===null||a===void 0?void 0:a.consoleLogRecordingEnabled),Y(h,od,(o=e.sessionRecording)===null||o===void 0?void 0:o.recorderVersion),Y(h,ld,ne({capturePerformance:e.capturePerformance},(l=e.sessionRecording)===null||l===void 0?void 0:l.networkPayloadCapture)),h));var u=(r=e.sessionRecording)===null||r===void 0?void 0:r.sampleRate;this._sampleRate=ve(u)||$t(u)?null:parseFloat(u);var f,p=(i=e.sessionRecording)===null||i===void 0?void 0:i.minimumDurationMilliseconds;if(this._minimumDuration=ve(p)?null:p,this._linkedFlag=((n=e.sessionRecording)===null||n===void 0?void 0:n.linkedFlag)||null,(s=e.sessionRecording)!==null&&s!==void 0&&s.endpoint&&(this._endpoint=(f=e.sessionRecording)===null||f===void 0?void 0:f.endpoint),ur(this._sampleRate)&&this.sessionManager.onSessionId(function(g){c.makeSamplingDecision(g)}),kt(this._linkedFlag)){var m=this._linkedFlag;this.instance.onFeatureFlags(function(g){c._linkedFlagSeen=g.includes(m)})}this.receivedDecide=!0,this.startRecordingIfEnabled()}},{key:"log",value:function(e){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"log";(r=this.instance.sessionRecording)===null||r===void 0||r.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:i,trace:[],payload:[JSON.stringify(e)]}},timestamp:Md()})}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){this._startCapture()}},{key:"_startCapture",value:function(){var e=this;if(!ve(Object.assign)&&!this._captureStarted&&!this.instance.config.disable_session_recording){this._captureStarted=!0,this.sessionManager.checkAndGetSessionAndWindowId();var r=this.recordingVersion==="v2"?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.recordingVersion?Wn(this.instance.config.api_host+"/static/".concat(r,"?v=").concat(li.LIB_VERSION),function(i){if(i)return j.error("Could not load ".concat(r),i);e._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(e){var r;return e.type===Vd&&wy.indexOf((r=e.data)===null||r===void 0?void 0:r.source)!==-1}},{key:"_updateWindowAndSessionIds",value:function(e){var r=this._isInteractiveEvent(e);if(r||this.isIdle||e.timestamp-this._lastActivityTimestamp>yd&&(this.isIdle=!0,this._tryAddCustomEvent("sessionIdle",{reason:"user inactivity",timeSinceLastActive:e.timestamp-this._lastActivityTimestamp,threshold:yd})),r&&(this._lastActivityTimestamp=e.timestamp,this.isIdle&&(this.isIdle=!1,this._tryAddCustomEvent("sessionNoLongerIdle",{reason:"user activity",type:e.type}),this._tryTakeFullSnapshot())),!this.isIdle){var i=this.sessionManager.checkAndGetSessionAndWindowId(!r,e.timestamp),n=i.windowId,s=i.sessionId,a=this.sessionId!==s,o=this.windowId!==n;[md,uy].indexOf(e.type)===-1&&(o||a)&&this._tryTakeFullSnapshot(),this.windowId=n,this.sessionId=s}}},{key:"_tryRRwebMethod",value:function(e){if(!this._captureStarted)return!1;try{return e(),!0}catch(r){return j.error("[Session-Recording] using rrweb when not started.",r),!1}}},{key:"_tryAddCustomEvent",value:function(e,r){var i=this;return this._tryRRwebMethod(function(){var n;return(n=i.rrwebRecord)===null||n===void 0?void 0:n.addCustomEvent(e,r)})}},{key:"_tryTakeFullSnapshot",value:function(){var e=this;return this._tryRRwebMethod(function(){var r;return(r=e.rrwebRecord)===null||r===void 0?void 0:r.takeFullSnapshot()})}},{key:"_onScriptLoaded",value:function(){var e,r=this,i={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=O.rrweb?O.rrweb.record:O.rrwebRecord;for(var n=this.instance.config.session_recording,s=0,a=Object.entries(n||{});s<a.length;s++){var o=Gt(a[s],2),l=o[0],h=o[1];l in i&&(i[l]=h)}this.rrwebRecord?(this.mutationRateLimiter=(e=this.mutationRateLimiter)!==null&&e!==void 0?e:new my(this.rrwebRecord,{onBlockedNode:function(c,u){var f="Too many mutations on node '".concat(c,"'. Rate limiting. This could be due to SVG animations or something similar");j.info(f,{node:u}),r.log("[PostHog Recorder] "+f,"warn")}}),this.stopRrweb=this.rrwebRecord(ne({emit:function(c){r.onRRwebEmit(c)},plugins:this._gatherRRWebPlugins()},i)),this.instance._addCaptureHook(function(c){try{if(c==="$pageview"){var u=O?r._maskUrl(O.location.href):"";if(!u)return;r._tryAddCustomEvent("$pageview",{href:u})}}catch(f){j.error("Could not add $pageview to rrweb session",f)}}),this._lastActivityTimestamp=Date.now(),this.isIdle=!1):j.error("onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.")}},{key:"_gatherRRWebPlugins",value:function(){var e=[];return rt.rrwebConsoleRecord&&this.isConsoleLogCaptureEnabled&&e.push(rt.rrwebConsoleRecord.getRecordConsolePlugin()),this.networkPayloadCapture&&Ht(rt.getRecordNetworkPlugin)&&(!ly.includes(location.hostname)||this._forceAllowLocalhostNetworkCapture?e.push(rt.getRecordNetworkPlugin(by(this.instance.config,this.networkPayloadCapture))):j.info("[SessionReplay-NetworkCapture] not started because we are on localhost.")),e}},{key:"onRRwebEmit",value:function(e){if(e&&Ar(e)){if(e.type===Nd.Meta){var r=this._maskUrl(e.data.href);if(!r)return;e.data.href=r}var i=this.mutationRateLimiter?this.mutationRateLimiter.throttleMutations(e):e;if(i){var n=function(o){var l=o;if(l&&Ar(l)&&l.type===py&&Ar(l.data)&&l.data.plugin===fy){l.data.payload.payload.length>10&&(l.data.payload.payload=l.data.payload.payload.slice(0,10),l.data.payload.payload.push("...[truncated]"));for(var h=[],c=0;c<l.data.payload.payload.length;c++)l.data.payload.payload[c]&&l.data.payload.payload[c].length>2e3?h.push(l.data.payload.payload[c].slice(0,2e3)+"...[truncated]"):h.push(l.data.payload.payload[c]);return l.data.payload.payload=h,o}return o}(i),s=JSON.stringify(n).length;if(this._updateWindowAndSessionIds(n),!this.isIdle){var a={$snapshot_bytes:s,$snapshot_data:n,$session_id:this.sessionId,$window_id:this.windowId};this.status!=="disabled"?this._captureSnapshotBuffered(a):this.clearBuffer()}}}}},{key:"_maskUrl",value:function(e){var r=this.instance.config.session_recording;if(r.maskNetworkRequestFn){var i,n={url:e};return(i=n=r.maskNetworkRequestFn(n))===null||i===void 0?void 0:i.url}return e}},{key:"clearBuffer",value:function(){return this.buffer=void 0,{size:0,data:[],sessionId:this.sessionId,windowId:this.windowId}}},{key:"_flushBuffer",value:function(){var e=this;this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0);var r=this._minimumDuration,i=this.sessionDuration,n=ur(i)&&i>=0,s=ur(r)&&n&&i<r;return this.status==="buffering"||s?(this.flushBufferTimer=setTimeout(function(){e._flushBuffer()},2e3),this.buffer||this.clearBuffer()):this.buffer&&this.buffer.data.length!==0?(this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.clearBuffer()):this.buffer||this.clearBuffer()}},{key:"_captureSnapshotBuffered",value:function(e){var r,i=this,n=2+(((r=this.buffer)===null||r===void 0?void 0:r.data.length)||0);(!this.buffer||this.buffer.size+e.$snapshot_bytes+n>943718.4||this.buffer.sessionId&&this.buffer.sessionId!==this.sessionId)&&(this.buffer=this._flushBuffer()),$t(this.buffer.sessionId)&&!$t(this.sessionId)&&(this.buffer.sessionId=this.sessionId,this.buffer.windowId=this.windowId),this.buffer.size+=e.$snapshot_bytes,this.buffer.data.push(e.$snapshot_data),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){i._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(e){this.instance.capture("$snapshot",e,{transport:"XHR",method:"POST",endpoint:this._endpoint,_noTruncate:!0,_batchKey:"recordings",_metrics:{rrweb_full_snapshot:e.$snapshot_data.type===md}})}}]),t}(),Sy=function(){function t(e){Oe(this,t),this.instance=e,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return Re(t,[{key:"call",value:function(){var e=this,r=mh(JSON.stringify({token:this.instance.config.token,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(Xi),group_properties:this.instance.get_property(Er),disable_flags:this.instance.config.advanced_disable_feature_flags||this.instance.config.advanced_disable_feature_flags_on_first_load||void 0}));this.instance._send_request("".concat(this.instance.config.api_host,"/decide/?v=3"),{data:r,verbose:!0},{method:"POST"},function(i){return e.parseDecideResponse(i)})}},{key:"parseDecideResponse",value:function(e){var r,i=this;if(this.instance.featureFlags.setReloadingPaused(!1),this.instance.featureFlags._startReloadTimer(),e?.status!==0){if(!K||!K.body)return j.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){i.parseDecideResponse(e)},500);this.instance.toolbar.afterDecideResponse(e),(r=this.instance.sessionRecording)===null||r===void 0||r.afterDecideResponse(e),Pr.afterDecideResponse(e,this.instance),this.instance._afterDecideResponse(e),this.instance.config.advanced_disable_feature_flags_on_first_load||this.instance.config.advanced_disable_feature_flags||this.instance.featureFlags.receivedFeatureFlags(e);var n=O?.extendPostHogWithSurveys;e.surveys&&!n&&Wn(this.instance.config.api_host+"/static/surveys.js",function(c){if(c)return j.error("Could not load surveys script",c);O.extendPostHogWithSurveys(i.instance)});var s=O?.extendPostHogWithExceptionAutoCapture;if(e.autocaptureExceptions&&e.autocaptureExceptions&&ve(s)&&Wn(this.instance.config.api_host+"/static/exception-autocapture.js",function(c){if(c)return j.error("Could not load exception autocapture script",c);O.extendPostHogWithExceptionAutocapture(i.instance,e)}),e.siteApps)if(this.instance.config.opt_in_site_apps){var a,o=this.instance.config.api_host,l=oi(e.siteApps);try{var h=function(){var c=a.value,u=c.id,f=c.url,p=[o,o[o.length-1]==="/"&&f[0]==="/"?f.substring(1):f].join("");rt["__$$ph_site_app_".concat(u)]=i.instance,Wn(p,function(m){m&&j.error("Error while initializing PostHog app with config id ".concat(u),m)})};for(l.s();!(a=l.n()).done;)h()}catch(c){l.e(c)}finally{l.f()}}else e.siteApps.length>0&&j.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else j.error("Failed to fetch feature flags from PostHog.")}}]),t}(),ky=["https://app.posthog.com","https://eu.posthog.com"],Ey=["source"],Py=O!=null&&O.location?Ka(O.location.hash,"__posthog")||Ka(location.hash,"state"):null,Ay=function(){function t(e){Oe(this,t),this.instance=e}return Re(t,[{key:"afterDecideResponse",value:function(e){var r=e.toolbarParams||e.editorParams||(e.toolbarVersion?{toolbarVersion:e.toolbarVersion}:{});e.isAuthenticated&&r.toolbarVersion&&r.toolbarVersion.indexOf("toolbar")===0&&this.loadToolbar(ne({},r))}},{key:"maybeLoadToolbar",value:function(){var e,r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!O||!K)return!1;i=(e=i)!==null&&e!==void 0?e:O.location,s=(r=s)!==null&&r!==void 0?r:O.history;try{if(!n){try{O.localStorage.setItem("test","test"),O.localStorage.removeItem("test")}catch{return!1}n=O?.localStorage}var a,o=Py||Ka(i.hash,"__posthog")||Ka(i.hash,"state"),l=o?ed(function(){return JSON.parse(atob(decodeURIComponent(o)))})||ed(function(){return JSON.parse(decodeURIComponent(o))}):null;return l&&l.action==="ph_authorize"?((a=l).source="url",a&&Object.keys(a).length>0&&(l.desiredHash?i.hash=l.desiredHash:s?s.replaceState("",K.title,i.pathname+i.search):i.hash="")):((a=JSON.parse(n.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete a.userIntent),!(!a.token||this.instance.config.token!==a.token)&&(this.loadToolbar(a),!0)}catch{return!1}}},{key:"loadToolbar",value:function(e){var r=this;if(!O||rt._postHogToolbarLoaded)return!1;rt._postHogToolbarLoaded=!0;var i=this.instance.config.api_host,n=3e5,s=Math.floor(Date.now()/n)*n,a="".concat(i).concat(i.endsWith("/")?"":"/","static/toolbar.js?t=").concat(s),o=!ky.includes(this.instance.config.api_host)&&this.instance.config.advanced_disable_toolbar_metrics,l=ne(ne({token:this.instance.config.token},e),{},{apiURL:i},o?{instrument:!1}:{});l.source;var h=N0(l,Ey);return O.localStorage.setItem("_postHogToolbarParams",JSON.stringify(h)),Wn(a,function(c){c?j.error("Failed to load toolbar",c):(rt.ph_load_toolbar||rt.ph_load_editor)(l,r.instance)}),Un(O,"turbolinks:load",function(){rt._postHogToolbarLoaded=!1,r.loadToolbar(l)}),!0}},{key:"_loadEditor",value:function(e){return this.loadToolbar(e)}},{key:"maybeLoadEditor",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;return this.maybeLoadToolbar(e,r,i)}}]),t}(),Cy="__ph_opt_in_out_";function Ty(t,e){jd(!0,t,e)}function Iy(t,e){jd(!1,t,e)}function My(t,e){return zd(t,e)==="1"}function vd(t,e){return!!function(r){if(r&&r.respectDnt){var i=r&&r.window||O,n=i?.navigator,s=!1;return Ce([n?.doNotTrack,n.msDoNotTrack,i.doNotTrack],function(a){xe([!0,1,"1","yes"],a)&&(s=!0)}),s}return!1}(e)||zd(t,e)==="0"}function Dy(t,e){yh(e=e||{}).remove(vh(t,e),!!e.crossSubdomainCookie)}function yh(t){return(t=t||{}).persistenceType==="localStorage"?Le:t.persistenceType==="localStorage+cookie"?qn:Xt}function vh(t,e){return((e=e||{}).persistencePrefix||Cy)+t}function zd(t,e){return yh(e).get(vh(t,e))}function jd(t,e,r){kt(e)&&e.length?(yh(r=r||{}).set(vh(e,r),t?1:0,ur(r.cookieExpiration)?r.cookieExpiration:null,r.crossSubdomainCookie,r.secureCookie),r.capture&&t&&r.capture(r.captureEventName||"$opt_in",r.captureProperties||{},{send_instantly:!0})):j.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token")}var Gd=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3e3;Oe(this,t),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=e}return Re(t,[{key:"setPollInterval",value:function(e){this._pollInterval=e,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return new Date().getTime()}}]),t}(),Fy=function(t){Pd(r,Gd);var e=Ad(r);function r(i){var n,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3e3;return Oe(this,r),(n=e.call(this,s)).handlePollRequest=i,n}return Re(r,[{key:"enqueue",value:function(i,n,s){this._event_queue.push({url:i,data:n,options:s}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var i=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(i._event_queue.length>0){var n=i.formatQueue(),s=function(o){var l=n[o],h=l.url,c=l.data,u=l.options;Ce(c,function(f,p){c[p].offset=Math.abs(c[p].timestamp-i.getTime()),delete c[p].timestamp}),i.handlePollRequest(h,c,u)};for(var a in n)s(a);i._event_queue.length=0,i._empty_queue_count=0}else i._empty_queue_count++;i._empty_queue_count>4&&(i.isPolling=!1,i._empty_queue_count=0),i.isPolling&&i.poll()},this._pollInterval)}},{key:"unload",value:function(){var i=this;clearTimeout(this._poller);var n=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var s=Object.values(n);[].concat(Kl(s.filter(function(a){return a.url.indexOf("/e")===0})),Kl(s.filter(function(a){return a.url.indexOf("/e")!==0}))).map(function(a){var o=a.url,l=a.data,h=a.options;i.handlePollRequest(o,l,ne(ne({},h),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var i={};return Ce(this._event_queue,function(n){var s=n.url,a=n.data,o=n.options,l=(o?o._batchKey:null)||s;ve(i[l])&&(i[l]={data:[],url:s,options:o}),o&&i[l].options&&i[l].options._metrics&&!i[l].options._metrics.rrweb_full_snapshot&&(i[l].options._metrics.rrweb_full_snapshot=o._metrics.rrweb_full_snapshot),i[l].data.push(a)}),i}}]),r}(),Et=Uint8Array,ot=Uint16Array,Qi=Uint32Array,bh=new Et([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),_h=new Et([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),bd=new Et([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Hd=function(t,e){for(var r=new ot(31),i=0;i<31;++i)r[i]=e+=1<<t[i-1];var n=new Qi(r[30]);for(i=1;i<30;++i)for(var s=r[i];s<r[i+1];++s)n[s]=s-r[i]<<5|i;return[r,n]},qd=Hd(bh,2),$y=qd[0],lh=qd[1];$y[28]=258,lh[258]=28;for(hh=Hd(_h,0)[1],Qa=new ot(32768),Ie=0;Ie<32768;++Ie)Sr=(43690&Ie)>>>1|(21845&Ie)<<1,Sr=(61680&(Sr=(52428&Sr)>>>2|(13107&Sr)<<2))>>>4|(3855&Sr)<<4,Qa[Ie]=((65280&Sr)>>>8|(255&Sr)<<8)>>>1;var Sr,hh,Qa,Ie,Zn=function(t,e,r){for(var i=t.length,n=0,s=new ot(e);n<i;++n)++s[t[n]-1];var a,o=new ot(e);for(n=0;n<e;++n)o[n]=o[n-1]+s[n-1]<<1;if(r){a=new ot(1<<e);var l=15-e;for(n=0;n<i;++n)if(t[n])for(var h=n<<4|t[n],c=e-t[n],u=o[t[n]-1]++<<c,f=u|(1<<c)-1;u<=f;++u)a[Qa[u]>>>l]=h}else for(a=new ot(i),n=0;n<i;++n)a[n]=Qa[o[t[n]-1]++]>>>15-t[n];return a},hi=new Et(288);for(Ie=0;Ie<144;++Ie)hi[Ie]=8;for(Ie=144;Ie<256;++Ie)hi[Ie]=9;for(Ie=256;Ie<280;++Ie)hi[Ie]=7;for(Ie=280;Ie<288;++Ie)hi[Ie]=8;var eo=new Et(32);for(Ie=0;Ie<32;++Ie)eo[Ie]=5;var ni,Oy=Zn(hi,9,0),Ry=Zn(eo,5,0),Ud=function(t){return(t/8>>0)+(7&t&&1)},Wd=function(t,e,r){(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length);var i=new(t instanceof ot?ot:t instanceof Qi?Qi:Et)(r-e);return i.set(t.subarray(e,r)),i},cr=function(t,e,r){r<<=7&e;var i=e/8>>0;t[i]|=r,t[i+1]|=r>>>8},jn=function(t,e,r){r<<=7&e;var i=e/8>>0;t[i]|=r,t[i+1]|=r>>>8,t[i+2]|=r>>>16},Yl=function(t,e){for(var r=[],i=0;i<t.length;++i)t[i]&&r.push({s:i,f:t[i]});var n=r.length,s=r.slice();if(!n)return[new Et(0),0];if(n==1){var a=new Et(r[0].s+1);return a[r[0].s]=1,[a,1]}r.sort(function(S,T){return S.f-T.f}),r.push({s:-1,f:25001});var o=r[0],l=r[1],h=0,c=1,u=2;for(r[0]={s:-1,f:o.f+l.f,l:o,r:l};c!=n-1;)o=r[r[h].f<r[u].f?h++:u++],l=r[h!=c&&r[h].f<r[u].f?h++:u++],r[c++]={s:-1,f:o.f+l.f,l:o,r:l};var f=s[0].s;for(i=1;i<n;++i)s[i].s>f&&(f=s[i].s);var p=new ot(f+1),m=Ly(r[c-1],p,0);if(m>e){i=0;var g=0,d=m-e,y=1<<d;for(s.sort(function(S,T){return p[T.s]-p[S.s]||S.f-T.f});i<n;++i){var v=s[i].s;if(!(p[v]>e))break;g+=y-(1<<m-p[v]),p[v]=e}for(g>>>=d;g>0;){var b=s[i].s;p[b]<e?g-=1<<e-p[b]++-1:++i}for(;i>=0&&g;--i){var _=s[i].s;p[_]==e&&(--p[_],++g)}m=e}return[new Et(p),m]},Ly=function t(e,r,i){return e.s==-1?Math.max(t(e.l,r,i+1),t(e.r,r,i+1)):r[e.s]=i},_d=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new ot(++e),i=0,n=t[0],s=1,a=function(l){r[i++]=l},o=1;o<=e;++o)if(t[o]==n&&o!=e)++s;else{if(!n&&s>2){for(;s>138;s-=138)a(32754);s>2&&(a(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(a(n),--s;s>6;s-=6)a(8304);s>2&&(a(s-3<<5|8208),s=0)}for(;s--;)a(n);s=1,n=t[o]}return[r.subarray(0,i),e]},Gn=function(t,e){for(var r=0,i=0;i<e.length;++i)r+=t[i]*e[i];return r},Ha=function(t,e,r){var i=r.length,n=Ud(e+2);t[n]=255&i,t[n+1]=i>>>8,t[n+2]=255^t[n],t[n+3]=255^t[n+1];for(var s=0;s<i;++s)t[n+s+4]=r[s];return 8*(n+4+i)},wd=function(t,e,r,i,n,s,a,o,l,h,c){cr(e,c++,r),++n[256];for(var u=Yl(n,15),f=u[0],p=u[1],m=Yl(s,15),g=m[0],d=m[1],y=_d(f),v=y[0],b=y[1],_=_d(g),S=_[0],T=_[1],x=new ot(19),w=0;w<v.length;++w)x[31&v[w]]++;for(w=0;w<S.length;++w)x[31&S[w]]++;for(var M=Yl(x,7),k=M[0],I=M[1],P=19;P>4&&!k[bd[P-1]];--P);var A,E,F,$,D=h+5<<3,C=Gn(n,hi)+Gn(s,eo)+a,R=Gn(n,f)+Gn(s,g)+a+14+3*P+Gn(x,k)+(2*x[16]+3*x[17]+7*x[18]);if(D<=C&&D<=R)return Ha(e,c,t.subarray(l,l+h));if(cr(e,c,1+(R<C)),c+=2,R<C){A=Zn(f,p,0),E=f,F=Zn(g,d,0),$=g;var B=Zn(k,I,0);for(cr(e,c,b-257),cr(e,c+5,T-1),cr(e,c+10,P-4),c+=14,w=0;w<P;++w)cr(e,c+3*w,k[bd[w]]);c+=3*P;for(var U=[v,S],W=0;W<2;++W){var X=U[W];for(w=0;w<X.length;++w){var H=31&X[w];cr(e,c,B[H]),c+=k[H],H>15&&(cr(e,c,X[w]>>>5&127),c+=X[w]>>>12)}}}else A=Oy,E=hi,F=Ry,$=eo;for(w=0;w<o;++w)if(i[w]>255){H=i[w]>>>18&31,jn(e,c,A[H+257]),c+=E[H+257],H>7&&(cr(e,c,i[w]>>>23&31),c+=bh[H]);var ie=31&i[w];jn(e,c,F[ie]),c+=$[ie],ie>3&&(jn(e,c,i[w]>>>5&8191),c+=_h[ie])}else jn(e,c,A[i[w]]),c+=E[i[w]];return jn(e,c,A[256]),c+E[256]},By=new Qi([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Vy=new Et(0),Ny=function(){for(var t=new Qi(256),e=0;e<256;++e){for(var r=e,i=9;--i;)r=(1&r&&3988292384)^r>>>1;t[e]=r}return t}(),zy=function(){var t=4294967295;return{p:function(e){for(var r=t,i=0;i<e.length;++i)r=Ny[255&r^e[i]]^r>>>8;t=r},d:function(){return 4294967295^t}}},jy=function(t,e,r,i,n){return function(s,a,o,l,h,c){var u=s.length,f=new Et(l+u+5*(1+Math.floor(u/7e3))+h),p=f.subarray(l,f.length-h),m=0;if(!a||u<8)for(var g=0;g<=u;g+=65535){var d=g+65535;d<u?m=Ha(p,m,s.subarray(g,d)):(p[g]=c,m=Ha(p,m,s.subarray(g,u)))}else{for(var y=By[a-1],v=y>>>13,b=8191&y,_=(1<<o)-1,S=new ot(32768),T=new ot(_+1),x=Math.ceil(o/3),w=2*x,M=function(lt){return(s[lt]^s[lt+1]<<x^s[lt+2]<<w)&_},k=new Qi(25e3),I=new ot(288),P=new ot(32),A=0,E=0,F=(g=0,0),$=0,D=0;g<u;++g){var C=M(g),R=32767&g,B=T[C];if(S[R]=B,T[C]=R,$<=g){var U=u-g;if((A>7e3||F>24576)&&U>423){m=wd(s,p,0,k,I,P,E,F,D,g-D,m),F=A=E=0,D=g;for(var W=0;W<286;++W)I[W]=0;for(W=0;W<30;++W)P[W]=0}var X=2,H=0,ie=b,le=R-B&32767;if(U>2&&C==M(g-le))for(var se=Math.min(v,U)-1,te=Math.min(32767,g),Ee=Math.min(258,U);le<=te&&--ie&&R!=B;){if(s[g+X]==s[g+X-le]){for(var me=0;me<Ee&&s[g+me]==s[g+me-le];++me);if(me>X){if(X=me,H=le,me>se)break;var Me=Math.min(le,me-2),Pe=0;for(W=0;W<Me;++W){var J=g-le+W+32768&32767,Ze=J-S[J]+32768&32767;Ze>Pe&&(Pe=Ze,B=J)}}}le+=(R=B)-(B=S[R])+32768&32767}if(H){k[F++]=268435456|lh[X]<<18|hh[H];var Pt=31&lh[X],At=31&hh[H];E+=bh[Pt]+_h[At],++I[257+Pt],++P[At],$=g+X,++A}else k[F++]=s[g],++I[s[g]]}}m=wd(s,p,c,k,I,P,E,F,D,g-D,m),c||(m=Ha(p,m,Vy))}return Wd(f,0,l+Ud(m)+h)}(t,e.level==null?6:e.level,e.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,r,i,!n)},ch=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8},Gy=function(t,e){var r=e.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=e.level<2?4:e.level==9?2:0,t[9]=3,e.mtime!=0&&ch(t,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),r){t[3]=8;for(var i=0;i<=r.length;++i)t[i+10]=r.charCodeAt(i)}},Hy=function(t){return 10+(t.filename&&t.filename.length+1||0)};function qy(t,e){e===void 0&&(e={});var r=zy(),i=t.length;r.p(t);var n=jy(t,e,Hy(e),8),s=n.length;return Gy(n,e),ch(n,s-8,r.d()),ch(n,s-4,i),n}function Uy(t,e){var r=t.length;if(!e&&typeof TextEncoder<"u")return new TextEncoder().encode(t);for(var i=new Et(t.length+(t.length>>>1)),n=0,s=function(h){i[n++]=h},a=0;a<r;++a){if(n+5>i.length){var o=new Et(n+8+(r-a<<1));o.set(i),i=o}var l=t.charCodeAt(a);l<128||e?s(l):l<2048?(s(192|l>>>6),s(128|63&l)):l>55295&&l<57344?(s(240|(l=65536+(1047552&l)|1023&t.charCodeAt(++a))>>>18),s(128|l>>>12&63),s(128|l>>>6&63),s(128|63&l)):(s(224|l>>>12),s(128|l>>>6&63),s(128|63&l))}return Wd(i,0,n)}(function(t){t.GZipJS="gzip-js",t.Base64="base64"})(ni||(ni={}));var Zd=function(t,e,r){var i=e||{};i.ip=r.ip?1:0,i._=new Date().getTime().toString(),i.ver=li.LIB_VERSION;var n=t.split("?");if(n.length>1){var s,a=oi(n[1].split("&"));try{for(a.s();!(s=a.n()).done;){var o=s.value.split("=")[0];ve(i[o])||delete i[o]}}catch(h){a.e(h)}finally{a.f()}}var l=t.indexOf("?")>-1?"&":"?";return t+l+function(h){var c,u,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&",p=[];return Ce(h,function(m,g){ve(m)||ve(g)||g==="undefined"||(c=encodeURIComponent(m.toString()),u=encodeURIComponent(g),p[p.length]=u+"="+c)}),p.join(f)}(i)},wh=function t(e,r){if(r.blob&&e.buffer)return new Blob([Yp(e)?e:e.buffer],{type:"text/plain"});if(r.sendBeacon||r.blob){var i=t(e,{method:"POST"});return new Blob([i],{type:"application/x-www-form-urlencoded"})}return r.method!=="POST"?null:(n=We(e)||Yp(e)?"data="+encodeURIComponent(e):"data="+encodeURIComponent(e.data),"compression"in e&&e.compression&&(n+="&compression="+e.compression),n);var n},Yd=function(t){var e=t.url,r=t.data,i=t.headers,n=t.options,s=t.callback,a=t.retriesPerformedSoFar,o=t.retryQueue,l=t.onXHRError,h=t.timeout,c=h===void 0?6e4:h,u=t.onResponse;ur(a)&&a>0&&(e=Zd(e,{retry_count:a},{}));var f=new XMLHttpRequest;f.open(n.method||"GET",e,!0);var p=wh(r,n);Ce(i,function(m,g){f.setRequestHeader(g,m)}),n.method!=="POST"||n.blob||f.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),f.timeout=c,f.withCredentials=!0,f.onreadystatechange=function(){if(f.readyState===4)if(u?.(f),f.status===200){if(s){var m;try{m=JSON.parse(f.responseText)}catch(g){return void j.error(g)}s(m)}}else Ht(l)&&l(f),(f.status<400||f.status>500)&&o.enqueue({url:e,data:r,options:n,headers:i,retriesPerformedSoFar:(a||0)+1,callback:s}),s?.({status:0})},f.send(p)},Wy=18e5,Zy=function(t){Pd(r,Gd);var e=Ad(r);function r(i,n){var s;return Oe(this,r),(s=e.call(this)).isPolling=!1,s.queue=[],s.areWeOnline=!0,s.onXHRError=i,s.rateLimiter=n,!ve(O)&&"onLine"in O.navigator&&(s.areWeOnline=O.navigator.onLine,O.addEventListener("online",function(){s._handleWeAreNowOnline()}),O.addEventListener("offline",function(){s.areWeOnline=!1})),s}return Re(r,[{key:"enqueue",value:function(i){var n=i.retriesPerformedSoFar||0;if(!(n>=10)){var s=function(l){var h=3e3*Math.pow(2,l),c=h/2,u=Math.min(Wy,h),f=(Math.random()-.5)*(u-c);return Math.ceil(u+f)}(n),a=new Date(Date.now()+s);this.queue.push({retryAt:a,requestData:i});var o="Enqueued failed request for retry in ".concat(s);navigator.onLine||(o+=" (Browser is offline)"),j.warn(o),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var i=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){i.areWeOnline&&i.queue.length>0&&i.flush(),i.poll()},this._pollInterval)}},{key:"flush",value:function(){var i=new Date(Date.now()),n=this.queue.filter(function(l){return l.retryAt<i});if(n.length>0){this.queue=this.queue.filter(function(l){return l.retryAt>=i});var s,a=oi(n);try{for(a.s();!(s=a.n()).done;){var o=s.value.requestData;this._executeXhrRequest(o)}}catch(l){a.e(l)}finally{a.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var i,n=oi(this.queue);try{for(n.s();!(i=n.n()).done;){var s=i.value.requestData,a=s.url,o=s.data,l=s.options;if(this.rateLimiter.isRateLimited(l._batchKey))j.warn("[RetryQueue] is quota limited. Dropping request.");else try{O?.navigator.sendBeacon(a,wh(o,ne(ne({},l),{},{sendBeacon:!0})))}catch(h){j.error(h)}}}catch(h){n.e(h)}finally{n.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(i){var n=i.url,s=i.data,a=i.options,o=i.headers,l=i.callback,h=i.retriesPerformedSoFar;this.rateLimiter.isRateLimited(a._batchKey)||Yd({url:n,data:s||{},options:a||{},headers:o||{},retriesPerformedSoFar:h||0,callback:l,retryQueue:this,onXHRError:this.onXHRError,onResponse:this.rateLimiter.checkForLimiting})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),r}(),La=1800,xd=60,Yy=864e5,Jy=function(){function t(e,r,i,n){Oe(this,t),Y(this,"_sessionIdChangedHandlers",[]),this.config=e,this.persistence=r,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this._sessionIdGenerator=i||si,this._windowIdGenerator=n||si;var s=e.persistence_name||e.token,a=e.session_idle_timeout_seconds||La;if(ur(a)?a>La?j.warn("session_idle_timeout_seconds cannot be greater than 30 minutes. Using 30 minutes instead."):a<xd&&j.warn("session_idle_timeout_seconds cannot be less than 60 seconds. Using 60 seconds instead."):(j.warn("session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),a=La),this._sessionTimeoutMs=1e3*Math.min(Math.max(a,xd),La),this._window_id_storage_key="ph_"+s+"_window_id",this._primary_window_exists_storage_key="ph_"+s+"_primary_window_exists",this._canUseSessionStorage()){var o=Ke.parse(this._window_id_storage_key),l=Ke.parse(this._primary_window_exists_storage_key);o&&!l?this._windowId=o:Ke.remove(this._window_id_storage_key),Ke.set(this._primary_window_exists_storage_key,!0)}this._listenToReloadWindow()}return Re(t,[{key:"onSessionId",value:function(e){var r=this;return ve(this._sessionIdChangedHandlers)&&(this._sessionIdChangedHandlers=[]),this._sessionIdChangedHandlers.push(e),this._sessionId&&e(this._sessionId,this._windowId),function(){r._sessionIdChangedHandlers=r._sessionIdChangedHandlers.filter(function(i){return i!==e})}}},{key:"_canUseSessionStorage",value:function(){return this.config.persistence!=="memory"&&!this.persistence.disabled&&Ke.is_supported()}},{key:"_setWindowId",value:function(e){e!==this._windowId&&(this._windowId=e,this._canUseSessionStorage()&&Ke.set(this._window_id_storage_key,e))}},{key:"_getWindowId",value:function(){return this._windowId?this._windowId:this._canUseSessionStorage()?Ke.parse(this._window_id_storage_key):null}},{key:"_setSessionId",value:function(e,r,i){e===this._sessionId&&r===this._sessionActivityTimestamp&&i===this._sessionStartTimestamp||(this._sessionStartTimestamp=i,this._sessionActivityTimestamp=r,this._sessionId=e,this.persistence.register(Y({},Ja,[r,e,i])))}},{key:"_getSessionId",value:function(){if(this._sessionId&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this._sessionId,this._sessionStartTimestamp];var e=this.persistence.props[Ja];return We(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}},{key:"resetSessionId",value:function(){this._setSessionId(null,null,null)}},{key:"_listenToReloadWindow",value:function(){var e=this;O?.addEventListener("beforeunload",function(){e._canUseSessionStorage()&&Ke.remove(e._primary_window_exists_storage_key)})}},{key:"checkAndGetSessionAndWindowId",value:function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime(),i=Gt(this._getSessionId(),3),n=i[0],s=i[1],a=i[2],o=this._getWindowId(),l=a&&a>0&&Math.abs(r-a)>Yy,h=!1,c=!s,u=!e&&Math.abs(r-n)>this._sessionTimeoutMs;c||u||l?(s=this._sessionIdGenerator(),o=this._windowIdGenerator(),a=r,h=!0):o||(o=this._windowIdGenerator(),h=!0);var f=n===0||!e||l?r:n,p=a===0?new Date().getTime():a;return this._setWindowId(o),this._setSessionId(s,f,p),h&&this._sessionIdChangedHandlers.forEach(function(m){return m(s,o)}),{sessionId:s,windowId:o,sessionStartTimestamp:p}}}]),t}(),Xy=Re(function t(e,r,i,n){Oe(this,t),this.name="posthog-js",this.setupOnce=function(s){s(function(a){var o,l,h,c,u;if(a.level!=="error"||!e.__loaded)return a;a.tags||(a.tags={});var f=e.config.ui_host||e.config.api_host;a.tags["PostHog Person URL"]=f+"/person/"+e.get_distinct_id(),e.sessionRecordingStarted()&&(a.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var p=((o=a.exception)===null||o===void 0?void 0:o.values)||[],m={$exception_message:(l=p[0])===null||l===void 0?void 0:l.value,$exception_type:(h=p[0])===null||h===void 0?void 0:h.type,$exception_personURL:f+"/person/"+e.get_distinct_id(),$sentry_event_id:a.event_id,$sentry_exception:a.exception,$sentry_exception_message:(c=p[0])===null||c===void 0?void 0:c.value,$sentry_exception_type:(u=p[0])===null||u===void 0?void 0:u.type,$sentry_tags:a.tags};return r&&i&&(m.$sentry_url=(n||"https://sentry.io/organizations/")+r+"/issues/?project="+i+"&query="+a.event_id),e.capture("$exception",m),a})}}),Ky=function(t){Promise&&Promise.resolve||j.warn("This browser does not have Promise support, and can not use the segment integration");var e=function(r,i){r.event.userId||r.event.anonymousId===t.get_distinct_id()||t.reset(),r.event.userId&&r.event.userId!==t.get_distinct_id()&&(t.register({distinct_id:r.event.userId}),t.reloadFeatureFlags());var n=t._calculate_event_properties(i,r.event.properties);return r.event.properties=Object.assign({},n,r.event.properties),r};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(r){return e(r,r.event.event)},page:function(r){return e(r,"$pageview")},identify:function(r){return e(r,"$identify")},screen:function(r){return e(r,"$screen")}}},Qy=function(){function t(){var e=this;Oe(this,t),Y(this,"_hasSeenPageView",!1),Y(this,"_updateScrollData",function(){var r,i,n,s;e._pageViewData||(e._pageViewData=e._createPageViewData());var a=e._pageViewData,o=e._scrollY(),l=e._scrollHeight(),h=e._contentY(),c=e._contentHeight();a.lastScrollY=o,a.maxScrollY=Math.max(o,(r=a.maxScrollY)!==null&&r!==void 0?r:0),a.maxScrollHeight=Math.max(l,(i=a.maxScrollHeight)!==null&&i!==void 0?i:0),a.lastContentY=h,a.maxContentY=Math.max(h,(n=a.maxContentY)!==null&&n!==void 0?n:0),a.maxContentHeight=Math.max(c,(s=a.maxContentHeight)!==null&&s!==void 0?s:0)})}return Re(t,[{key:"_createPageViewData",value:function(){var e;return{pathname:(e=O?.location.pathname)!==null&&e!==void 0?e:""}}},{key:"doPageView",value:function(){var e,r;return this._hasSeenPageView?(r=this._pageViewData,this._pageViewData=this._createPageViewData()):(this._hasSeenPageView=!0,r=void 0,this._pageViewData||(this._pageViewData=this._createPageViewData())),setTimeout(this._updateScrollData,0),ne({$prev_pageview_pathname:(e=r)===null||e===void 0?void 0:e.pathname},this._calculatePrevPageScrollProperties(r))}},{key:"doPageLeave",value:function(){var e=this._pageViewData;return ne({$prev_pageview_pathname:e?.pathname},this._calculatePrevPageScrollProperties(e))}},{key:"_calculatePrevPageScrollProperties",value:function(e){if(!e||e.maxScrollHeight==null||e.lastScrollY==null||e.maxScrollY==null||e.maxContentHeight==null||e.lastContentY==null||e.maxContentY==null)return{};var r=e.maxScrollHeight,i=e.lastScrollY,n=e.maxScrollY,s=e.maxContentHeight,a=e.lastContentY,o=e.maxContentY;return r=Math.ceil(r),i=Math.ceil(i),n=Math.ceil(n),s=Math.ceil(s),a=Math.ceil(a),o=Math.ceil(o),{$prev_pageview_last_scroll:i,$prev_pageview_last_scroll_percentage:r<=1?1:Ba(i/r,0,1),$prev_pageview_max_scroll:n,$prev_pageview_max_scroll_percentage:r<=1?1:Ba(n/r,0,1),$prev_pageview_last_content:a,$prev_pageview_last_content_percentage:s<=1?1:Ba(a/s,0,1),$prev_pageview_max_content:o,$prev_pageview_max_content_percentage:s<=1?1:Ba(o/s,0,1)}}},{key:"startMeasuringScrollPosition",value:function(){O?.addEventListener("scroll",this._updateScrollData),O?.addEventListener("scrollend",this._updateScrollData),O?.addEventListener("resize",this._updateScrollData)}},{key:"stopMeasuringScrollPosition",value:function(){O?.removeEventListener("scroll",this._updateScrollData),O?.removeEventListener("scrollend",this._updateScrollData),O?.removeEventListener("resize",this._updateScrollData)}},{key:"_scrollHeight",value:function(){return O?Math.max(0,O.document.documentElement.scrollHeight-O.document.documentElement.clientHeight):0}},{key:"_scrollY",value:function(){return O&&(O.scrollY||O.pageYOffset||O.document.documentElement.scrollTop)||0}},{key:"_contentHeight",value:function(){return O?.document.documentElement.scrollHeight||0}},{key:"_contentY",value:function(){var e=O?.document.documentElement.clientHeight||0;return this._scrollY()+e}}]),t}();function Ba(t,e,r){return Math.max(e,Math.min(t,r))}var Yn,xh,Xe,ev={icontains:function(t){return!!O&&O.location.href.toLowerCase().indexOf(t.toLowerCase())>-1},regex:function(t){return!!O&&hy(O.location.href,t)},exact:function(t){return O?.location.href===t}},tv=function(){function t(e){Oe(this,t),this.instance=e}return Re(t,[{key:"getSurveys",value:function(e){var r=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=this.instance.get_property(nh);if(n&&!i)return e(n);this.instance._send_request("".concat(this.instance.config.api_host,"/api/surveys/?token=").concat(this.instance.config.token),{},{method:"GET"},function(s){var a,o=s.surveys||[];return(a=r.instance.persistence)===null||a===void 0||a.register(Y({},nh,o)),e(o)})}},{key:"getActiveMatchingSurveys",value:function(e){var r=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.getSurveys(function(n){var s=n.filter(function(a){return!(!a.start_date||a.end_date)}).filter(function(a){var o,l,h,c;if(!a.conditions)return!0;var u=(o=a.conditions)===null||o===void 0||!o.url||ev[(l=(h=a.conditions)===null||h===void 0?void 0:h.urlMatchType)!==null&&l!==void 0?l:"icontains"](a.conditions.url),f=(c=a.conditions)===null||c===void 0||!c.selector||K?.querySelector(a.conditions.selector);return u&&f}).filter(function(a){if(!a.linked_flag_key&&!a.targeting_flag_key)return!0;var o=!a.linked_flag_key||r.instance.featureFlags.isFeatureEnabled(a.linked_flag_key),l=!a.targeting_flag_key||r.instance.featureFlags.isFeatureEnabled(a.targeting_flag_key);return o&&l});return e(s)},i)}}]),t}(),rv=6e4,iv=function(){function t(){var e=this;Oe(this,t),Y(this,"limits",{}),Y(this,"checkForLimiting",function(r){try{var i=r.responseText;if(!i||!i.length)return;(JSON.parse(i).quota_limited||[]).forEach(function(n){j.info("[RateLimiter] ".concat(n||"events"," is quota limited.")),e.limits[n]=new Date().getTime()+rv})}catch(n){return void j.error(n)}})}return Re(t,[{key:"isRateLimited",value:function(e){var r=this.limits[e||"events"]||!1;return r!==!1&&new Date().getTime()<r}}]),t}(),nv=function(){return ne({initialPathName:O?.location.pathname||"",referringDomain:He.referringDomain()},He.campaignParams())},sv=function(){function t(e,r,i){var n=this;Oe(this,t),Y(this,"_onSessionIdCallback",function(s){var a=n._getStoredProps();if(!a||a.sessionId!==s){var o={sessionId:s,props:n._sessionSourceParamGenerator()};n._persistence.register(Y({},oh,o))}}),this._sessionIdManager=e,this._persistence=r,this._sessionSourceParamGenerator=i||nv,this._sessionIdManager.onSessionId(this._onSessionIdCallback)}return Re(t,[{key:"_getStoredProps",value:function(){return this._persistence.props[oh]}},{key:"getSessionProps",value:function(){var e,r=(e=this._getStoredProps())===null||e===void 0?void 0:e.props;return r?{$client_session_initial_referring_host:r.referringDomain,$client_session_initial_pathname:r.initialPathName,$client_session_initial_utm_source:r.utm_source,$client_session_initial_utm_campaign:r.utm_campaign,$client_session_initial_utm_medium:r.utm_medium,$client_session_initial_utm_content:r.utm_content,$client_session_initial_utm_term:r.utm_term}:{}}}]),t}(),av=["ahrefsbot","ahrefssiteaudit","applebot","baiduspider","bingbot","bingpreview","bot.htm","bot.php","crawler","duckduckbot","facebookexternal","facebookcatalog","gptbot","http://yandex.com/bots","hubspot","ia_archiver","linkedinbot","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","semrushbot","sitebulb","slurp","turnitin","twitterbot","vercelbot","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"],ov=function(t,e){if(!t)return!1;var r=t.toLowerCase();return av.concat(e||[]).some(function(i){var n=i.toLowerCase();return r.includes?r.includes(n):r.indexOf(n)!==-1})};(function(t){t[t.INIT_MODULE=0]="INIT_MODULE",t[t.INIT_SNIPPET=1]="INIT_SNIPPET"})(Yn||(Yn={}));var uh=function(){},Va={},dt="posthog",qa=O?.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Jd=!qa&&Ge?.indexOf("MSIE")===-1&&Ge?.indexOf("Mozilla")===-1,Sd=function(){var t,e,r;return{api_host:"https://app.posthog.com",api_method:"POST",api_transport:"XHR",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:(e=K?.location,r=e?.hostname,!!kt(r)&&r.split(".").slice(-2).join(".")!=="herokuapp.com"),persistence:"localStorage+cookie",persistence_name:"",cookie_name:"",loaded:uh,store_google:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageview:!0,capture_pageleave:!0,debug:!1,verbose:!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_cookie:!1,enable_recording_console_log:void 0,secure_cookie:(O==null||(t=O.location)===null||t===void 0?void 0:t.protocol)==="https:",ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_blacklist:[],respect_dnt:!1,sanitize_properties:null,xhr_headers:{},inapp_protocol:"//",inapp_link_new_window:!1,request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_disable_toolbar_metrics:!1,on_xhr_error:function(i){var n="Bad HTTP status: "+i.status+" "+i.statusText;j.error(n)},get_device_id:function(i){return i},_onCapture:uh,capture_performance:void 0,name:"posthog",callback_fn:"posthog._jsc",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800}},ph=function(t,e,r,i){var n,s=r!==dt&&Xe?r?Xe[r]:void 0:Xe,a={initComplete:!1,syncCode:!1},o=function(l){return function(h){a[l]||(a[l]=!0,a.initComplete&&a.syncCode&&i?.(h))}};if(s&&xh===Yn.INIT_MODULE)n=s;else{if(s&&!We(s))return void j.error("You have already initialized "+r);n=new Sh}return n._init(t,e,r,o("initComplete")),n.toolbar.maybeLoadToolbar(),n.sessionRecording=new xy(n),n.sessionRecording.startRecordingIfEnabled(),n.config.__preview_measure_pageview_stats&&n.pageViewManager.startMeasuringScrollPosition(),n.__autocapture=n.config.autocapture,Pr._setIsAutocaptureEnabled(n),Pr._isAutocaptureEnabled&&(n.__autocapture=n.config.autocapture,Pr.enabledForProject(n.config.token,100,100)?Pr.isBrowserSupported()?Pr.init(n):(n.__autocapture=!1,j.info("Disabling Automatic Event Collection because this browser is not supported")):(n.__autocapture=!1,j.info("Not in active bucket: disabling Automatic Event Collection."))),li.DEBUG=li.DEBUG||n.config.debug,!ve(s)&&We(s)&&(n._execute_array.call(n.people,s.people),n._execute_array(s)),o("syncCode")(n),n},lv=function(){function t(){Oe(this,t),Y(this,"__forceAllowLocalhost",!1)}return Re(t,[{key:"_forceAllowLocalhost",get:function(){return this.__forceAllowLocalhost},set:function(e){j.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}]),t}(),Sh=function(){function t(){var e=this;Oe(this,t),Y(this,"webPerformance",new lv),this.config=Sd(),this.compression={},this.decideEndpointWasHit=!1,this.SentryIntegration=Xy,this.segmentIntegration=function(){return Ky(e)},this.__captureHooks=[],this.__request_queue=[],this.__loaded=!1,this.__loaded_recorder_version=void 0,this.__autocapture=void 0,this._jsc=function(){},this.analyticsDefaultEndpoint="/e/",this.elementsChainAsString=!1,this.featureFlags=new X0(this),this.toolbar=new Ay(this),this.pageViewManager=new Qy,this.surveys=new tv(this),this.rateLimiter=new iv,this.people={set:function(r,i,n){var s=kt(r)?Y({},r,i):r;e.setPersonProperties(s),n?.({})},set_once:function(r,i,n){var s=kt(r)?Y({},r,i):r;e.setPersonProperties(void 0,s),n?.({})}}}return Re(t,[{key:"init",value:function(e,r,i){if(ve(i))j.critical("You must name your new library: init(token, config, name)");else{if(i!==dt){var n=ph(e,r,i,function(s){Xe[i]=s,s._loaded()});return Xe[i]=n,n}j.critical("You must initialize the main posthog object right after you include the PostHog js snippet")}}},{key:"_init",value:function(e){var r,i,n,s=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var h,c={segmentRegister:!1,syncCode:!1},u=function(S){return function(){c[S]||(c[S]=!0,c.segmentRegister&&c.syncCode&&l?.(s))}};if(this.set_config(Je({},Sd(),a,{name:o,token:e,callback_fn:(o===dt?o:dt+"."+o)+"._jsc"})),this._jsc=function(){},(O!=null&&(r=O.rrweb)!==null&&r!==void 0&&r.record||O!=null&&O.rrwebRecord)&&(this.__loaded_recorder_version=O==null||(h=O.rrweb)===null||h===void 0?void 0:h.version),this.persistence=new fd(this.config),this._requestQueue=new Fy(this._handle_queued_event.bind(this)),this._retryQueue=new Zy(this.config.on_xhr_error,this.rateLimiter),this.__captureHooks=[],this.__request_queue=[],this.sessionManager=new Jy(this.config,this.persistence),this.sessionPropsManager=new sv(this.sessionManager,this.persistence),this.sessionPersistence=this.config.persistence==="sessionStorage"?this.persistence:new fd(ne(ne({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),a.segment?(this.config.get_device_id=function(){return a.segment.user().anonymousId()},a.segment.user().id()&&(this.register({distinct_id:a.segment.user().id()}),this.persistence.set_user_state("identified")),a.segment.register(this.segmentIntegration()).then(u("segmentRegister"))):u("segmentRegister")(),((i=a.bootstrap)===null||i===void 0?void 0:i.distinctID)!==void 0){var f,p,m=this.config.get_device_id(si()),g=(f=a.bootstrap)!==null&&f!==void 0&&f.isIdentifiedID?m:a.bootstrap.distinctID;this.persistence.set_user_state((p=a.bootstrap)!==null&&p!==void 0&&p.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:a.bootstrap.distinctID,$device_id:g})}if(this._hasBootstrappedFeatureFlags()){var d,y,v=Object.keys(((d=a.bootstrap)===null||d===void 0?void 0:d.featureFlags)||{}).filter(function(S){var T,x;return!((T=a.bootstrap)===null||T===void 0||(x=T.featureFlags)===null||x===void 0||!x[S])}).reduce(function(S,T){var x,w;return S[T]=((x=a.bootstrap)===null||x===void 0||(w=x.featureFlags)===null||w===void 0?void 0:w[T])||!1,S},{}),b=Object.keys(((y=a.bootstrap)===null||y===void 0?void 0:y.featureFlagPayloads)||{}).filter(function(S){return v[S]}).reduce(function(S,T){var x,w,M,k;return(x=a.bootstrap)!==null&&x!==void 0&&(w=x.featureFlagPayloads)!==null&&w!==void 0&&w[T]&&(S[T]=(M=a.bootstrap)===null||M===void 0||(k=M.featureFlagPayloads)===null||k===void 0?void 0:k[T]),S},{});this.featureFlags.receivedFeatureFlags({featureFlags:v,featureFlagPayloads:b})}if(!this.get_distinct_id()){var _=this.config.get_device_id(si());this.register_once({distinct_id:_,$device_id:_},""),this.persistence.set_user_state("anonymous")}O==null||(n=O.addEventListener)===null||n===void 0||n.call(O,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),u("syncCode")()}},{key:"_afterDecideResponse",value:function(e){var r;if(this.compression={},e.supportedCompression&&!this.config.disable_compression){var i,n={},s=oi(e.supportedCompression);try{for(s.s();!(i=s.n()).done;)n[i.value]=!0}catch(a){s.e(a)}finally{s.f()}this.compression=n}(r=e.analytics)!==null&&r!==void 0&&r.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),e.elementsChainAsString&&(this.elementsChainAsString=e.elementsChainAsString)}},{key:"_loaded",value:function(){var e=this.config.advanced_disable_decide;e||this.featureFlags.setReloadingPaused(!0);try{this.config.loaded(this)}catch(r){j.critical("`loaded` function failed",r)}this._start_queue_if_opted_in(),this.config.capture_pageview&&K&&this.capture("$pageview",{title:K.title},{send_instantly:!0}),e||(new Sy(this).call(),this.featureFlags.resetRequestQueue())}},{key:"_start_queue_if_opted_in",value:function(){var e;this.has_opted_out_capturing()||this.config.request_batching&&((e=this._requestQueue)===null||e===void 0||e.poll())}},{key:"_dom_loaded",value:function(){var e=this;this.has_opted_out_capturing()||Ki(this.__request_queue,function(r){e._send_request.apply(e,Kl(r))}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(e,r){if(ve(e))return null;if(qa)return function(a){e(a,r)};var i=this._jsc,n=""+Math.floor(1e8*Math.random()),s=this.config.callback_fn+"["+n+"]";return i[n]=function(a){delete i[n],e(a,r)},s}},{key:"_handle_unload",value:function(){var e,r;this.config.request_batching?(this.config.capture_pageview&&this.config.capture_pageleave&&this.capture("$pageleave"),(e=this._requestQueue)===null||e===void 0||e.unload(),(r=this._retryQueue)===null||r===void 0||r.unload()):this.config.capture_pageview&&this.config.capture_pageleave&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(e,r,i){var n=JSON.stringify(r);this.__compress_and_send_json_request(e,n,i||Va,uh)}},{key:"__compress_and_send_json_request",value:function(e,r,i,n){var s=function(h,c,u){return h===ni.GZipJS?[qy(Uy(c),{mtime:0}),ne(ne({},u),{},{blob:!0,urlQueryArgs:{compression:ni.GZipJS}})]:[{data:mh(c)},u]}(this.compression[ni.GZipJS]?ni.GZipJS:ni.Base64,r,i),a=Gt(s,2),o=a[0],l=a[1];this._send_request(e,o,l,n)}},{key:"_send_request",value:function(e,r,i,n){if(this.__loaded&&this._retryQueue&&!this.rateLimiter.isRateLimited(i._batchKey))if(Jd)this.__request_queue.push([e,r,i,n]);else{var s={method:this.config.api_method,transport:this.config.api_transport,verbose:this.config.verbose};i=Je(s,i||{}),qa||(i.method="GET");var a=O&&"sendBeacon"in O.navigator&&i.transport==="sendBeacon";if(e=Zd(e,i.urlQueryArgs||{},{ip:this.config.ip}),a)try{O?.navigator.sendBeacon(e,wh(r,ne(ne({},i),{},{sendBeacon:!0})))}catch{}else if(qa||!K)try{Yd({url:e,data:r,headers:this.config.xhr_headers,options:i,callback:n,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.config.on_xhr_error,onResponse:this.rateLimiter.checkForLimiting})}catch(c){j.error(c)}else{var o,l=K.createElement("script");l.type="text/javascript",l.async=!0,l.defer=!0,l.src=e;var h=K.getElementsByTagName("script")[0];(o=h.parentNode)===null||o===void 0||o.insertBefore(l,h)}}}},{key:"_execute_array",value:function(e){var r,i=this,n=[],s=[],a=[];Ki(e,function(l){l&&(r=l[0],We(r)?a.push(l):Ht(l)?l.call(i):We(l)&&r==="alias"?n.push(l):We(l)&&r.indexOf("capture")!==-1&&Ht(i[r])?a.push(l):s.push(l))});var o=function(l,h){Ki(l,function(c){if(We(c[0])){var u=h;Ce(c,function(f){u=u[f[0]].apply(u,f.slice(1))})}else this[c[0]].apply(this,c.slice(1))},h)};o(n,this),o(s,this),o(a,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var e,r;return((e=this.config.bootstrap)===null||e===void 0?void 0:e.featureFlags)&&Object.keys((r=this.config.bootstrap)===null||r===void 0?void 0:r.featureFlags).length>0||!1}},{key:"push",value:function(e){this._execute_array([e])}},{key:"capture",value:function(e,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Va;if(!this.__loaded||!this.sessionPersistence||!this._requestQueue)return j.uninitializedWarning("posthog.capture");if(!function(c){var u=!1;try{var f=c.config.token,p=c.config.respect_dnt,m=c.config.opt_out_capturing_persistence_type,g=c.config.opt_out_capturing_cookie_prefix||void 0,d=c.config.window;f&&(u=vd(f,{respectDnt:p,persistenceType:m,persistencePrefix:g,window:d}))}catch(y){j.error("Unexpected error when checking capturing opt-out status: "+y)}return u}(this)){var n=(i=i||Va).transport;if(n&&(i.transport=n),!ve(e)&&kt(e)){if(!Ge||!ov(Ge,this.config.custom_blocked_useragents)){this.sessionPersistence.update_search_keyword(),this.config.store_google&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info();var s={uuid:si(),event:e,properties:this._calculate_event_properties(e,r||{})};e==="$identify"&&(s.$set=i.$set,s.$set_once=i.$set_once),(s=q0(s,i._noTruncate?null:this.config.properties_string_max_length)).timestamp=i.timestamp||new Date;var a=ne(ne({},s.properties.$set),s.$set);G0(a)||this.setPersonPropertiesForFlags(a),j.info("send",s);var o=JSON.stringify(s),l=this.config.api_host+(i.endpoint||this.analyticsDefaultEndpoint),h=i!==Va;return!this.config.request_batching||h&&!i._batchKey||i.send_instantly?this.__compress_and_send_json_request(l,o,i):this._requestQueue.enqueue(l,s,i),this._invokeCaptureHooks(e,s),s}}else j.error("No event name provided to posthog.capture")}}},{key:"_addCaptureHook",value:function(e){this.__captureHooks.push(e)}},{key:"_invokeCaptureHooks",value:function(e,r){this.config._onCapture(e,r),Ce(this.__captureHooks,function(i){return i(e)})}},{key:"_calculate_event_properties",value:function(e,r){if(!this.persistence||!this.sessionPersistence)return r;var i=this.persistence.remove_event_timer(e),n=ne({},r);if(n.token=this.config.token,e==="$snapshot"){var s=ne(ne({},this.persistence.properties()),this.sessionPersistence.properties());return n.distinct_id=s.distinct_id,n}var a=He.properties();if(this.sessionManager){var o=this.sessionManager.checkAndGetSessionAndWindowId(),l=o.sessionId,h=o.windowId;n.$session_id=l,n.$window_id=h}if(this.sessionPropsManager&&this.config.__preview_send_client_session_params&&(e==="$pageview"||e==="$pageleave"||e==="$autocapture")){var c=this.sessionPropsManager.getSessionProps();n=Je(n,c)}if(this.config.__preview_measure_pageview_stats){var u={};e==="$pageview"?u=this.pageViewManager.doPageView():e==="$pageleave"&&(u=this.pageViewManager.doPageLeave()),n=Je(n,u)}if(e==="$pageview"&&K&&(n.title=K.title),e==="$performance_event"){var f=this.persistence.properties();return n.distinct_id=f.distinct_id,n.$current_url=a.$current_url,n}if(!ve(i)){var p=new Date().getTime()-i;n.$duration=parseFloat((p/1e3).toFixed(3))}n=Je({},He.properties(),this.persistence.properties(),this.sessionPersistence.properties(),n);var m=this.config.property_blacklist;We(m)?Ce(m,function(d){delete n[d]}):j.error("Invalid value for property_blacklist config: "+m);var g=this.config.sanitize_properties;return g&&(n=g(n,e)),n}},{key:"register",value:function(e,r){var i;(i=this.persistence)===null||i===void 0||i.register(e,r)}},{key:"register_once",value:function(e,r,i){var n;(n=this.persistence)===null||n===void 0||n.register_once(e,r,i)}},{key:"register_for_session",value:function(e){var r;(r=this.sessionPersistence)===null||r===void 0||r.register(e)}},{key:"unregister",value:function(e){var r;(r=this.persistence)===null||r===void 0||r.unregister(e)}},{key:"unregister_for_session",value:function(e){var r;(r=this.sessionPersistence)===null||r===void 0||r.unregister(e)}},{key:"_register_single",value:function(e,r){this.register(Y({},e,r))}},{key:"getFeatureFlag",value:function(e,r){return this.featureFlags.getFeatureFlag(e,r)}},{key:"getFeatureFlagPayload",value:function(e){var r=this.featureFlags.getFeatureFlagPayload(e);try{return JSON.parse(r)}catch{return r}}},{key:"isFeatureEnabled",value:function(e,r){return this.featureFlags.isFeatureEnabled(e,r)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,r){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,r)}},{key:"getEarlyAccessFeatures",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(e,r)}},{key:"onFeatureFlags",value:function(e){return this.featureFlags.onFeatureFlags(e)}},{key:"onSessionId",value:function(e){var r,i;return(r=(i=this.sessionManager)===null||i===void 0?void 0:i.onSessionId(e))!==null&&r!==void 0?r:function(){}}},{key:"getSurveys",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getSurveys(e,r)}},{key:"getActiveMatchingSurveys",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];this.surveys.getActiveMatchingSurveys(e,r)}},{key:"identify",value:function(e,r,i){if(!this.__loaded||!this.persistence)return j.uninitializedWarning("posthog.identify");if(e)if(["distinct_id","distinctid"].includes(e.toLowerCase()))j.critical('The string "'.concat(e,'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'));else{var n=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var s=n;this.register_once({$had_persisted_distinct_id:!0,$device_id:s},"")}e!==n&&e!==this.get_property(ja)&&(this.unregister(ja),this.register({distinct_id:e}));var a=this.persistence.get_user_state()==="anonymous";e!==n&&a?(this.persistence.set_user_state("identified"),this.setPersonPropertiesForFlags(r||{},!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:n},{$set:r||{},$set_once:i||{}}),this.featureFlags.setAnonymousDistinctId(n)):(r||i)&&this.setPersonProperties(r,i),e!==n&&(this.reloadFeatureFlags(),this.unregister(Xa))}else j.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(e,r){(e||r)&&(this.setPersonPropertiesForFlags(e||{}),this.capture("$set",{$set:e||{},$set_once:r||{}}))}},{key:"group",value:function(e,r,i){if(e&&r){var n=this.getGroups();n[e]!==r&&this.resetGroupPropertiesForFlags(e),this.register({$groups:ne(ne({},n),{},Y({},e,r))}),i&&(this.capture("$groupidentify",{$group_type:e,$group_key:r,$group_set:i}),this.setGroupPropertiesForFlags(Y({},e,i))),n[e]===r||i||this.reloadFeatureFlags()}else j.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setPersonPropertiesForFlags(e,r)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setGroupPropertiesForFlags(e,r)}},{key:"resetGroupPropertiesForFlags",value:function(e){this.featureFlags.resetGroupPropertiesForFlags(e)}},{key:"reset",value:function(e){var r,i,n,s;if(!this.__loaded)return j.uninitializedWarning("posthog.reset");var a=this.get_property("$device_id");(r=this.persistence)===null||r===void 0||r.clear(),(i=this.sessionPersistence)===null||i===void 0||i.clear(),(n=this.persistence)===null||n===void 0||n.set_user_state("anonymous"),(s=this.sessionManager)===null||s===void 0||s.resetSessionId();var o=this.config.get_device_id(si());this.register_once({distinct_id:o,$device_id:e?o:a},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){var e,r;return(e=(r=this.sessionManager)===null||r===void 0?void 0:r.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&e!==void 0?e:""}},{key:"get_session_replay_url",value:function(e){if(!this.sessionManager)return"";var r=this.config.ui_host||this.config.api_host,i=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=i.sessionId,s=i.sessionStartTimestamp,a=r+"/replay/"+n;if(e!=null&&e.withTimestamp&&s){var o,l=(o=e.timestampLookBack)!==null&&o!==void 0?o:10;if(!s)return a;var h=Math.max(Math.floor((new Date().getTime()-s)/1e3)-l,0);a+="?t=".concat(h)}return a}},{key:"alias",value:function(e,r){return e===this.get_property(Rd)?(j.critical("Attempting to create alias for existing People user - aborting."),-2):(ve(r)&&(r=this.get_distinct_id()),e!==r?(this._register_single(ja,e),this.capture("$create_alias",{alias:e,distinct_id:r})):(j.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1))}},{key:"set_config",value:function(e){var r,i,n=ne({},this.config);Ar(e)&&(Je(this.config,e),this.config.persistence_name||(this.config.persistence_name=this.config.cookie_name),this.config.disable_persistence||(this.config.disable_persistence=this.config.disable_cookie),this.config.api_host=this.config.api_host.replace(/\/$/,""),(r=this.persistence)===null||r===void 0||r.update_config(this.config),(i=this.sessionPersistence)===null||i===void 0||i.update_config(this.config),Le.is_supported()&&Le.get("ph_debug")==="true"&&(this.config.debug=!0),this.config.debug&&(li.DEBUG=!0),this.sessionRecording&&!ve(e.disable_session_recording)&&n.disable_session_recording!==e.disable_session_recording&&(e.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var e;return!((e=this.sessionRecording)===null||e===void 0||!e.started)}},{key:"loadToolbar",value:function(e){return this.toolbar.loadToolbar(e)}},{key:"get_property",value:function(e){var r;return(r=this.persistence)===null||r===void 0?void 0:r.props[e]}},{key:"getSessionProperty",value:function(e){var r;return(r=this.sessionPersistence)===null||r===void 0?void 0:r.props[e]}},{key:"toString",value:function(){var e,r=(e=this.config.name)!==null&&e!==void 0?e:dt;return r!==dt&&(r=dt+"."+r),r}},{key:"_gdpr_init",value:function(){this.config.opt_out_capturing_persistence_type==="localStorage"&&Le.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.config.opt_out_capturing_by_default&&!Xt.get("ph_optout")||(Xt.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.config.opt_out_persistence_by_default}))}},{key:"_gdpr_update_persistence",value:function(e){var r,i,n,s,a;if(e&&e.clear_persistence)n=!0;else{if(!e||!e.enable_persistence)return;n=!1}this.config.disable_persistence||((r=this.persistence)===null||r===void 0?void 0:r.disabled)===n||(s=this.persistence)===null||s===void 0||s.set_disabled(n),this.config.disable_persistence||((i=this.sessionPersistence)===null||i===void 0?void 0:i.disabled)===n||(a=this.sessionPersistence)===null||a===void 0||a.set_disabled(n)}},{key:"_gdpr_call_func",value:function(e,r){return r=Je({capture:this.capture.bind(this),persistence_type:this.config.opt_out_capturing_persistence_type,cookie_prefix:this.config.opt_out_capturing_cookie_prefix,cookie_expiration:this.config.cookie_expiration,cross_subdomain_cookie:this.config.cross_subdomain_cookie,secure_cookie:this.config.secure_cookie},r||{}),Le.is_supported()||r.persistence_type!=="localStorage"||(r.persistence_type="cookie"),e(this.config.token,{capture:r.capture,captureEventName:r.capture_event_name,captureProperties:r.capture_properties,persistenceType:r.persistence_type,persistencePrefix:r.cookie_prefix,cookieExpiration:r.cookie_expiration,crossSubdomainCookie:r.cross_subdomain_cookie,secureCookie:r.secure_cookie})}},{key:"opt_in_capturing",value:function(e){e=Je({enable_persistence:!0},e||{}),this._gdpr_call_func(Ty,e),this._gdpr_update_persistence(e)}},{key:"opt_out_capturing",value:function(e){var r=Je({clear_persistence:!0},e||{});this._gdpr_call_func(Iy,r),this._gdpr_update_persistence(r)}},{key:"has_opted_in_capturing",value:function(e){return this._gdpr_call_func(My,e)}},{key:"has_opted_out_capturing",value:function(e){return this._gdpr_call_func(vd,e)}},{key:"clear_opt_in_out_capturing",value:function(e){var r=Je({enable_persistence:!0},e??{});this._gdpr_call_func(Dy,r),this._gdpr_update_persistence(r)}},{key:"debug",value:function(e){e===!1?(O?.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(O?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),t}();(function(t,e){for(var r=0;r<e.length;r++)t.prototype[e[r]]=Dd(t.prototype[e[r]])})(Sh,["identify"]);var kd,Ed,kr={},hv=function(){Xe.init=function(t,e,r){if(r)return Xe[r]||(Xe[r]=kr[r]=ph(t||"",e||{},r,function(n){Xe[r]=kr[r]=n,n._loaded()})),Xe[r];var i=Xe;return kr[dt]?i=kr[dt]:t&&(i=ph(t,e||{},dt,function(n){kr[dt]=n,n._loaded()}),kr[dt]=i),Xe=i,xh===Yn.INIT_SNIPPET&&(rt[dt]=Xe),Ce(kr,function(n,s){s!==dt&&(Xe[s]=n)}),i}},cv=function(){function t(){t.done||(t.done=!0,Jd=!1,Ce(kr,function(e){e._dom_loaded()}))}K!=null&&K.addEventListener&&(K.readyState==="complete"?t():K.addEventListener("DOMContentLoaded",t,!1)),O&&Un(O,"load",t,!0)};(function(t){t.Popover="popover",t.API="api",t.Widget="widget"})(kd||(kd={})),function(t){t.Open="open",t.MultipleChoice="multiple_choice",t.SingleChoice="single_choice",t.Rating="rating",t.Link="link"}(Ed||(Ed={}));var Xd=(xh=Yn.INIT_MODULE,Xe=new Sh,hv(),Xe.init(),cv(),Xe);var Kd=Xd.init("phc_OTZ3wJ6VemgVupCRKS5Sbqb9Ks0JYe0hMYZPtLwl0nu",{api_host:"https://pheu.molin.ai",ui_host:"https://eu.posthog.com",secure_cookie:document.location.protocol==="https:",persistence:"cookie",autocapture:!1,rageclick:!1,capture_pageview:!0,disable_session_recording:!0},"MolinShopAI");function ft(t,e){if(!Kd)throw new Error("Failed to initialize PostHog");Kd.capture(t,e)}var en,ro,io,Qd,Ot,Be,no,ef,so,tf,ao,rf,oo,nf,lo,sf,ho,af,co,of,uo,lf,to=class extends Fe(ke){constructor(){super();Z(this,en);Z(this,io);Z(this,no);Z(this,so);Z(this,ao);Z(this,oo);Z(this,lo);Z(this,ho);Z(this,co);Z(this,uo);Z(this,Ot,new Fa(this,{url:(r,{resume:i}={})=>{let n=new URL(this.config.wsApiUrl);return n.searchParams.set("widgetId",this.widgetId),n.searchParams.set("resume",i?"1":""),n.searchParams.set("conversationId",r),n.searchParams.set("pageUrl",window.location.href),n},onReconnect:()=>{},onError:r=>{console.error("ws error",r),ft("ShopAssistant: error",{widgetId:this.widgetId,error:"websocket onError"})},onClose:()=>{},onNewMessage:r=>{r.role==="assistant"&&ft("ShopAssistant: user received bot message (streaming started)",{widgetId:this.widgetId,message:r})},onUpdateMessage:r=>{},onMessageDone:r=>{let i={...L(this,Ot)?.messages.find(n=>n.id===r.message?.id)};Object.assign(i,r.message),i.role==="assistant"&&ft("ShopAssistant: user received bot message (streaming ended)",{widgetId:this.widgetId,text:i.content??"",message:i,usage_TOKENS_COMPLETION:r.message.usage.TOKENS_COMPLETION})},onMessageError:r=>{console.error("ws message error",r),r.message&&L(this,Be)&&alert(r.message),ft("ShopAssistant: error",{widgetId:this.widgetId,error:"websocket ERROR message type: "+r.message})},persistConversationState:(r,i)=>{let n={conversationId:r,messages:i};localStorage.setItem(L(this,en,ro),JSON.stringify(n))},restoreConversationState:()=>{try{let r=JSON.parse(localStorage.getItem(L(this,en,ro))||"{}");return!(typeof r.conversationId=="string"&&r.conversationId)||!(Array.isArray(r.messages)&&r.messages.every(i=>typeof i=="object"&&i))?void 0:{conversationId:r.conversationId,messages:r.messages}}catch(r){console.error(r)}},onReset:()=>{localStorage.removeItem(L(this,en,ro))}}));Z(this,Be,!1);this.widgetId="",this.config}render(){console.assert(this.widgetId,"widget id is required"),console.assert(this.config,"config is required");let r=Object.entries(this.config.bubble.position).filter(([o,l])=>l).map(([o,l])=>`${o}-[${l}]`).reduce((o,l)=>(o[l]=!0,o),{}),i=Object.entries(this.config.bubble.position).filter(([o,l])=>l).map(([o,l])=>`${o}-[${l}]`).reduce((o,l)=>(o[l]=!0,o),{}),n={bottom:"72px"},s=Object.entries(this.config.bubble.position).filter(([o,l])=>l).map(([o,l])=>`sm:${o}-[calc(${[n[o],l].filter(h=>!!h).join("+")})]`).reduce((o,l)=>(o[l]=!0,o),{}),a=s;return this.config.hidden&&!L(this,io,Qd)?De:ge`
425
+ <mw-bubble class="${Hp(r)} fixed z-[2147483647]" @click=${pe(this,oo,nf)} ?dialog-shown="${L(this,Be)}" bubble-image-url="${this.config.bubble?.imageUrl||""}"></mw-bubble>
429
426
 
430
- ${this.config?.popup?.mobileEnabled||this.config?.popup?.desktopEnabled?me`
427
+ ${this.config?.popup?.mobileEnabled||this.config?.popup?.desktopEnabled?ge`
431
428
  <!-- -->
432
- <mw-popup class="${this.config?.popup?.mobileEnabled?"visible":"invisible"} ${this.config?.popup?.desktopEnabled?"sm:visible":"sm:invisible"}" .position="${a}" ai-name="${this.config.title}" ai-color="${this.config.color}" ?dialog-shown="${L(this,Be)}" popup-delay-ms="${Ta(this.config.popup?.delayMs)}" popup-text="${Ta(this.config.popup?.text)}" @popup-chat-open="${pe(this,ao,rf)}"></mw-popup>
429
+ <mw-popup class="${this.config?.popup?.mobileEnabled?"visible":"invisible"} ${this.config?.popup?.desktopEnabled?"sm:visible":"sm:invisible"}" .position="${a}" ai-name="${this.config.title}" ai-color="${this.config.color}" ?dialog-shown="${L(this,Be)}" popup-delay-ms="${Ca(this.config.popup?.delayMs)}" popup-text="${Ca(this.config.popup?.text)}" @popup-chat-open="${pe(this,so,tf)}"></mw-popup>
433
430
  `:""}
434
- ${this.config?.tryItOut?.mobileEnabled||this.config?.tryItOut?.desktopEnabled?me`
431
+ ${this.config?.tryItOut?.mobileEnabled||this.config?.tryItOut?.desktopEnabled?ge`
435
432
  <!-- -->
436
- <mw-try-it-out class="${this.config?.tryItOut?.mobileEnabled?"visible":"invisible"} ${this.config?.tryItOut?.desktopEnabled?"sm:visible":"sm:invisible"}" .position="${i}" popup-text="${Ta(this.config.tryItOut?.text)}"></mw-try-it-out>
433
+ <mw-try-it-out class="${this.config?.tryItOut?.mobileEnabled?"visible":"invisible"} ${this.config?.tryItOut?.desktopEnabled?"sm:visible":"sm:invisible"}" .position="${i}" popup-text="${Ca(this.config.tryItOut?.text)}"></mw-try-it-out>
437
434
  `:""}
438
435
 
439
436
  <div id="dialog" class="${L(this,Be)?"visible opacity-100 translate-y-0":"invisible opacity-0 translate-y-3"} ${Object.keys(s).join(" ")} fixed bottom-0 left-0 right-0 top-0 z-[2147483647] overflow-hidden bg-white font-sans text-[16px] leading-normal text-gray-800 subpixel-antialiased shadow-2xl transition-all sm:left-auto sm:top-auto sm:h-4/5 sm:max-h-[800px] sm:w-5/6 sm:max-w-[400px] sm:rounded-2xl 2xl:max-w-[420px]">
440
437
  <div class="mx-auto flex h-full w-full max-w-4xl flex-col">
441
- <mw-header class="z-10 border-b bg-[${this.config.header.background}] text-lg" .messages="${L(this,Ot).messages.length}" .config="${this.config}" @mw-close="${pe(this,ho,af)}" @mw-delete-history="${pe(this,co,of)}"></mw-header>
438
+ <mw-header class="z-10 border-b bg-[${this.config.header.background}] text-lg" .messages="${L(this,Ot).messages.length}" .config="${this.config}" @mw-close="${pe(this,lo,sf)}" @mw-delete-history="${pe(this,ho,af)}"></mw-header>
442
439
 
443
440
  <!-- used by the dashboard to inject content -->
444
441
  <div id="banner"></div>
@@ -446,7 +443,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
446
443
  <!-- this structure of 2 divs is required for the native scroll to bottom -->
447
444
  <div class="flex h-full flex-shrink flex-grow flex-col-reverse overflow-auto bg-[#FDFDFD] pt-4">
448
445
  <!-- this is the 2nd (inner) div that will natively scroll to bottom -->
449
- ${this.config?.showStillLearningBanner?me`
446
+ ${this.config?.showStillLearningBanner?ge`
450
447
  <div class="flex justify-center">
451
448
  <div class="mb-2 flex w-1/2 items-center justify-center rounded-full bg-black p-3">
452
449
  <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="h-6 w-6">
@@ -459,25 +456,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
459
456
  `:""}
460
457
 
461
458
  <div class="">
462
- ${ks(L(this,Ot)?.messages??[],o=>o.id,o=>me`
463
- <mw-chat-message class="mx-4 mb-4 block" .config="${this.config}" side="${o.role}" @click="${pe(this,so,tf)}">
459
+ ${ks(L(this,Ot)?.messages??[],o=>o.id,o=>ge`
460
+ <mw-chat-message class="mx-4 mb-4 block" .config="${this.config}" side="${o.role}" @click="${pe(this,no,ef)}">
464
461
  <div class="prose break-words text-inherit">
465
- ${o.content==="\xB7 \xB7 \xB7"?me`<mw-loading class="-mx-2 block h-8 max-h-[24px] w-8 fill-[${this.config.color}]"></mw-loading>`:o.content_html?qi(o.content_html):me`<p>${o.content}</p>`}
462
+ ${o.content==="\xB7 \xB7 \xB7"?ge`<mw-loading class="-mx-2 block h-8 max-h-[24px] w-8 fill-[${this.config.color}]"></mw-loading>`:o.content_html?qi(o.content_html):ge`<p>${o.content}</p>`}
466
463
  </div>
467
464
  </mw-chat-message>
468
465
  `)}
469
466
  </div>
470
467
  <!-- chat background (show/hide display logic is handled inside depending on message count) -->
471
- <mw-background class="mx-auto max-w-sm flex-grow" messages="${L(this,Ot)?.messages?.length??0}" .config="${this.config}" @mw-example-click="${pe(this,oo,nf)}"></mw-background>
468
+ <mw-background class="mx-auto max-w-sm flex-grow" messages="${L(this,Ot)?.messages?.length??0}" .config="${this.config}" @mw-example-click="${pe(this,ao,rf)}"></mw-background>
472
469
  </div>
473
470
 
474
471
  <div class="flex-shrink-0 flex-grow-0 space-y-2 pb-2">
475
- <mw-chat-input @mw-submit="${pe(this,uo,lf)}" @mw-cancel="${pe(this,po,hf)}" .config="${this.config}" ?disabled="${L(this,Ot)?.isStreaming??!0}"></mw-chat-input>
472
+ <mw-chat-input @mw-submit="${pe(this,co,of)}" @mw-cancel="${pe(this,uo,lf)}" .config="${this.config}" ?disabled="${L(this,Ot)?.isStreaming??!0}"></mw-chat-input>
476
473
  <mw-powered-by></mw-powered-by>
477
474
  </div>
478
475
  </div>
479
476
  </div>
480
- `}openChat(){L(this,Be)||(fe(this,Be,!0),this.requestUpdate(),ft("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"programmatic-method",state:L(this,Be)?"open":"close"}))}closeChat(){L(this,Be)&&(fe(this,Be,!1),this.requestUpdate(),ft("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"programmatic-method",state:L(this,Be)?"open":"close"}))}injectConfig(r){this.config=r,this.requestUpdate()}};en=new WeakSet,io=function(){if(!this.widgetId)throw new Error("widgetId is required");return`_molin_${this.widgetId}`},no=new WeakSet,ef=function(){return window.location.hostname==="molin.ai"},Ot=new WeakMap,Be=new WeakMap,so=new WeakSet,tf=function(r){let i=r.target;i&&i instanceof HTMLAnchorElement&&i.tagName==="A"&&ft("ShopAssistant: user clicked link",{widgetId:this.widgetId,url:i.href})},ao=new WeakSet,rf=function(){fe(this,Be,!0),this.requestUpdate(),ft("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"popup-click",state:L(this,Be)?"open":"close"})},oo=new WeakSet,nf=function(r){let i=r.detail.example;L(this,Ot)?.sendUserInput(i),ft("ShopAssistant: user sent input",{widgetId:this.widgetId,text:i,example:!0})},lo=new WeakSet,sf=function(){fe(this,Be,!L(this,Be)),this.requestUpdate(),ft("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"bubble-toggle",state:L(this,Be)?"open":"close"})},ho=new WeakSet,af=function(r){fe(this,Be,!1),this.requestUpdate(),ft("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"top-right-close-button",state:L(this,Be)?"open":"close"})},co=new WeakSet,of=function(r){L(this,Ot)?.reset()},uo=new WeakSet,lf=function(r){let i=r.detail.value;L(this,Ot)?.sendUserInput(i),ft("ShopAssistant: user sent input",{widgetId:this.widgetId,text:i,example:!1})},po=new WeakSet,hf=function(r){L(this,Ot)?.sendUserCancel(),ft("ShopAssistant: user canceled streaming",{widgetId:this.widgetId})},de(ro,"properties",{widgetId:{type:String,attribute:"widget"},config:{type:Object,attribute:!1}});customElements.define("molin-shop-ai",ro);
477
+ `}openChat(){L(this,Be)||(fe(this,Be,!0),this.requestUpdate(),ft("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"programmatic-method",state:L(this,Be)?"open":"close"}))}closeChat(){L(this,Be)&&(fe(this,Be,!1),this.requestUpdate(),ft("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"programmatic-method",state:L(this,Be)?"open":"close"}))}injectConfig(r){this.config=r,this.requestUpdate()}};en=new WeakSet,ro=function(){if(!this.widgetId)throw new Error("widgetId is required");return`_molin_${this.widgetId}`},io=new WeakSet,Qd=function(){return window.location.hostname==="molin.ai"},Ot=new WeakMap,Be=new WeakMap,no=new WeakSet,ef=function(r){let i=r.target;i&&i instanceof HTMLAnchorElement&&i.tagName==="A"&&ft("ShopAssistant: user clicked link",{widgetId:this.widgetId,url:i.href})},so=new WeakSet,tf=function(){fe(this,Be,!0),this.requestUpdate(),ft("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"popup-click",state:L(this,Be)?"open":"close"})},ao=new WeakSet,rf=function(r){let i=r.detail.example;L(this,Ot)?.sendUserInput(i),ft("ShopAssistant: user sent input",{widgetId:this.widgetId,text:i,example:!0})},oo=new WeakSet,nf=function(){fe(this,Be,!L(this,Be)),this.requestUpdate(),ft("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"bubble-toggle",state:L(this,Be)?"open":"close"})},lo=new WeakSet,sf=function(r){fe(this,Be,!1),this.requestUpdate(),ft("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"top-right-close-button",state:L(this,Be)?"open":"close"})},ho=new WeakSet,af=function(r){L(this,Ot)?.reset()},co=new WeakSet,of=function(r){let i=r.detail.value;L(this,Ot)?.sendUserInput(i),ft("ShopAssistant: user sent input",{widgetId:this.widgetId,text:i,example:!1})},uo=new WeakSet,lf=function(r){L(this,Ot)?.sendUserCancel(),ft("ShopAssistant: user canceled streaming",{widgetId:this.widgetId})},de(to,"properties",{widgetId:{type:String,attribute:"widget"},config:{type:Object,attribute:!1}});customElements.define("molin-shop-ai",to);
481
478
  /*! Bundled license information:
482
479
 
483
480
  @lit/reactive-element/css-tag.js: