@lottiefiles/lottie-player 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@
9
9
  \f\r](?:([^\\s"'>=/]+)([
10
10
  \f\r]*=[
11
11
  \f\r]*(?:[^
12
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Fa=/'/g,Ra=/"/g,Oa=/^(?:script|style|textarea|title)$/i,Na=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),de=Na(1),Wt=Symbol.for("lit-noChange"),tt=Symbol.for("lit-nothing"),Ba=new WeakMap,he=pe.createTreeWalker(pe,129,null,!1),Go=(t,e)=>{let i=t.length-1,r=[],a,s=e===2?"<svg>":"",o=Re;for(let d=0;d<i;d++){let l=t[d],h,m,u=-1,p=0;for(;p<l.length&&(o.lastIndex=p,m=o.exec(l),m!==null);)p=o.lastIndex,o===Re?m[1]==="!--"?o=Da:m[1]!==void 0?o=Ia:m[2]!==void 0?(Oa.test(m[2])&&(a=RegExp("</"+m[2],"g")),o=qt):m[3]!==void 0&&(o=qt):o===qt?m[0]===">"?(o=a??Re,u=-1):m[1]===void 0?u=-2:(u=o.lastIndex-m[2].length,h=m[1],o=m[3]===void 0?qt:m[3]==='"'?Ra:Fa):o===Ra||o===Fa?o=qt:o===Da||o===Ia?o=Re:(o=qt,a=void 0);let c=o===qt&&t[d+1].startsWith("/>")?" ":"";s+=o===Re?l+No:u>=0?(r.push(h),l.slice(0,u)+"$lit$"+l.slice(u)+Bt+c):l+Bt+(u===-2?(r.push(void 0),d):c);}let n=s+(t[i]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return [Ma!==void 0?Ma.createHTML(n):n,r]},Yt=class{constructor({strings:e,_$litType$:i},r){let a;this.parts=[];let s=0,o=0,n=e.length-1,d=this.parts,[l,h]=Go(e,i);if(this.el=Yt.createElement(l,r),he.currentNode=this.el.content,i===2){let m=this.el.content,u=m.firstChild;u.remove(),m.append(...u.childNodes);}for(;(a=he.nextNode())!==null&&d.length<n;){if(a.nodeType===1){if(a.hasAttributes()){let m=[];for(let u of a.getAttributeNames())if(u.endsWith("$lit$")||u.startsWith(Bt)){let p=h[o++];if(m.push(u),p!==void 0){let c=a.getAttribute(p.toLowerCase()+"$lit$").split(Bt),g=/([.?@])?(.*)/.exec(p);d.push({type:1,index:s,name:g[2],strings:c,ctor:g[1]==="."?qi:g[1]==="?"?Wi:g[1]==="@"?Yi:ce});}else d.push({type:6,index:s});}for(let u of m)a.removeAttribute(u);}if(Oa.test(a.tagName)){let m=a.textContent.split(Bt),u=m.length-1;if(u>0){a.textContent=le?le.emptyScript:"";for(let p=0;p<u;p++)a.append(m[p],Be()),he.nextNode(),d.push({type:2,index:++s});a.append(m[u],Be());}}}else if(a.nodeType===8)if(a.data===za)d.push({type:2,index:s});else {let m=-1;for(;(m=a.data.indexOf(Bt,m+1))!==-1;)d.push({type:7,index:s}),m+=Bt.length-1;}s++;}}static createElement(e,i){let r=pe.createElement("template");return r.innerHTML=e,r}};function fe(t,e,i=t,r){var a,s,o,n;if(e===Wt)return e;let d=r!==void 0?(a=i._$Co)===null||a===void 0?void 0:a[r]:i._$Cl,l=Le(e)?void 0:e._$litDirective$;return d?.constructor!==l&&((s=d?._$AO)===null||s===void 0||s.call(d,!1),l===void 0?d=void 0:(d=new l(t),d._$AT(t,i,r)),r!==void 0?((o=(n=i)._$Co)!==null&&o!==void 0?o:n._$Co=[])[r]=d:i._$Cl=d),d!==void 0&&(e=fe(t,d._$AS(t,e.values),d,r)),e}var Zi=class{constructor(e,i){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var i;let{el:{content:r},parts:a}=this._$AD,s=((i=e?.creationScope)!==null&&i!==void 0?i:pe).importNode(r,!0);he.currentNode=s;let o=he.nextNode(),n=0,d=0,l=a[0];for(;l!==void 0;){if(n===l.index){let h;l.type===2?h=new Xt(o,o.nextSibling,this,e):l.type===1?h=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(h=new Xi(o,this,e)),this.u.push(h),l=a[++d];}n!==l?.index&&(o=he.nextNode(),n++);}return s}p(e){let i=0;for(let r of this.u)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++;}},Xt=class{constructor(e,i,r,a){var s;this.type=2,this._$AH=tt,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=a,this._$Cm=(s=a?.isConnected)===null||s===void 0||s;}get _$AU(){var e,i;return (i=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&i!==void 0?i:this._$Cm}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=fe(this,e,i),Le(e)?e===tt||e==null||e===""?(this._$AH!==tt&&this._$AR(),this._$AH=tt):e!==this._$AH&&e!==Wt&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):$o(e)?this.k(e):this.g(e);}O(e,i=this._$AB){return this._$AA.parentNode.insertBefore(e,i)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e));}g(e){this._$AH!==tt&&Le(this._$AH)?this._$AA.nextSibling.data=e:this.T(pe.createTextNode(e)),this._$AH=e;}$(e){var i;let{values:r,_$litType$:a}=e,s=typeof a=="number"?this._$AC(e):(a.el===void 0&&(a.el=Yt.createElement(a.h,this.options)),a);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===s)this._$AH.p(r);else {let o=new Zi(s,this),n=o.v(this.options);o.p(r),this.T(n),this._$AH=o;}}_$AC(e){let i=Ba.get(e.strings);return i===void 0&&Ba.set(e.strings,i=new Yt(e)),i}k(e){Va(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,a=0;for(let s of e)a===i.length?i.push(r=new Xt(this.O(Be()),this.O(Be()),this,this.options)):r=i[a],r._$AI(s),a++;a<i.length&&(this._$AR(r&&r._$AB.nextSibling,a),i.length=a);}_$AR(e=this._$AA.nextSibling,i){var r;for((r=this._$AP)===null||r===void 0||r.call(this,!1,!0,i);e&&e!==this._$AB;){let a=e.nextSibling;e.remove(),e=a;}}setConnected(e){var i;this._$AM===void 0&&(this._$Cm=e,(i=this._$AP)===null||i===void 0||i.call(this,e));}},ce=class{constructor(e,i,r,a,s){this.type=1,this._$AH=tt,this._$AN=void 0,this.element=e,this.name=i,this._$AM=a,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=tt;}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,i=this,r,a){let s=this.strings,o=!1;if(s===void 0)e=fe(this,e,i,0),o=!Le(e)||e!==this._$AH&&e!==Wt,o&&(this._$AH=e);else {let n=e,d,l;for(e=s[0],d=0;d<s.length-1;d++)l=fe(this,n[r+d],i,d),l===Wt&&(l=this._$AH[d]),o||(o=!Le(l)||l!==this._$AH[d]),l===tt?e=tt:e!==tt&&(e+=(l??"")+s[d+1]),this._$AH[d]=l;}o&&!a&&this.j(e);}j(e){e===tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"");}},qi=class extends ce{constructor(){super(...arguments),this.type=3;}j(e){this.element[this.name]=e===tt?void 0:e;}},Ho=le?le.emptyScript:"",Wi=class extends ce{constructor(){super(...arguments),this.type=4;}j(e){e&&e!==tt?this.element.setAttribute(this.name,Ho):this.element.removeAttribute(this.name);}},Yi=class extends ce{constructor(e,i,r,a,s){super(e,i,r,a,s),this.type=5;}_$AI(e,i=this){var r;if((e=(r=fe(this,e,i,0))!==null&&r!==void 0?r:tt)===Wt)return;let a=this._$AH,s=e===tt&&a!==tt||e.capture!==a.capture||e.once!==a.once||e.passive!==a.passive,o=e!==tt&&(a===tt||s);s&&this.element.removeEventListener(this.name,this,a),o&&this.element.addEventListener(this.name,this,e),this._$AH=e;}handleEvent(e){var i,r;typeof this._$AH=="function"?this._$AH.call((r=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&r!==void 0?r:this.element,e):this._$AH.handleEvent(e);}},Xi=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r;}get _$AU(){return this._$AM._$AU}_$AI(e){fe(this,e);}};var La=si.litHtmlPolyfillSupport;La?.(Yt,Xt),((Ui=si.litHtmlVersions)!==null&&Ui!==void 0?Ui:si.litHtmlVersions=[]).push("2.4.0");var $a=(t,e,i)=>{var r,a;let s=(r=i?.renderBefore)!==null&&r!==void 0?r:e,o=s._$litPart$;if(o===void 0){let n=(a=i?.renderBefore)!==null&&a!==void 0?a:null;s._$litPart$=o=new Xt(e.insertBefore(Be(),n),n,void 0,i??{});}return o._$AI(t),o};var Ki,Ji;var Lt=class extends At{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var e,i;let r=super.createRenderRoot();return (e=(i=this.renderOptions).renderBefore)!==null&&e!==void 0||(i.renderBefore=r.firstChild),r}update(e){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=$a(i,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 Wt}};Lt.finalized=!0,Lt._$litElement$=!0,(Ki=globalThis.litElementHydrateSupport)===null||Ki===void 0||Ki.call(globalThis,{LitElement:Lt});var Ga=globalThis.litElementPolyfillSupport;Ga?.({LitElement:Lt});((Ji=globalThis.litElementVersions)!==null&&Ji!==void 0?Ji:globalThis.litElementVersions=[]).push("3.2.2");var oi=Ka(Ha());var Qi={name:"@lottiefiles/lottie-player",version:"2.0.0",description:"Lottie animation and Telegram Sticker player web components.",repository:"https://github.com/LottieFiles/lottie-player.git",homepage:"https://lottiefiles.com/web-player",bugs:"https://github.com/LottieFiles/lottie-player/issues",author:"Jawish Hameed <jawish@lottiefiles.com>",license:"MIT",main:"dist/lottie-player.js",module:"dist/lottie-player.mjs",types:"dist/lottie-player.d.ts",files:["dist/"],keywords:["lottie","animation","lottiefiles","web component","component","lit-element","player","telegram sticker","tgs"],scripts:{build:"tsup",changelog:"changeset add","changelog:check":"changeset status --since=main",dev:"tsup --watch",format:"pnpm run format:prettier","format:prettier":"prettier --loglevel=warn --no-editorconfig --write .","format:remark":"remark . --output --ignore-path .remarkignore --silently-ignore",lint:"eslint . --ext .ts,.tsx,.js","lint:fix":"eslint . --ext .ts,.tsx,.js --fix",open:"cypress open",preinstall:"npx only-allow pnpm",release:"pnpm release:version && pnpm release:publish","release:publish":"pnpm build && changeset publish","release:tag":"changeset tag","release:version":"changeset version",test:"cypress run --component","type-check":"turbo run type-check"},dependencies:{"@changesets/cli":"^2.26.1","@types/pako":"^1.0.4",lit:"^2.4.1","lottie-web":"^5.12.0",pako:"^2.1.0","resize-observer-polyfill":"^1.5.1"},devDependencies:{"@commitlint/cli":"^16.3.0","@commitlint/config-conventional":"^16.2.4","@lottiefiles/eslint-plugin":"^3.0.0","@lottiefiles/prettier-config":"^3.0.0",cypress:"^12.13.0","cypress-ct-lit":"^0.3.2","cypress-real-events":"^1.7.4",eslint:"^7.32.0","eslint-plugin-only-warn":"^1.0.3",husky:"^8.0.2","lint-staged":"^12.5.0",prettier:"^2.8.0","ts-node":"^10.9.1",tsup:"^6.7.0",turbo:"^1.10.2",typescript:"^4.9.3","unicode-canonical-property-names-ecmascript":"^2.0.0",vite:"^4.3.9"},publishConfig:{access:"public"},browserslist:["> 3%"],husky:{hooks:{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{css,scss,md}":["prettier --write"],"src/**/*.{js,jsx,ts,tsx,json}":["eslint . --ext .ts,.tsx,.js --fix"]},nyc:{extends:"@istanbuljs/nyc-config-typescript",all:!0}};var ni=Fe`
12
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Fa=/'/g,Ra=/"/g,Oa=/^(?:script|style|textarea|title)$/i,Na=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),de=Na(1),Wt=Symbol.for("lit-noChange"),tt=Symbol.for("lit-nothing"),Ba=new WeakMap,he=pe.createTreeWalker(pe,129,null,!1),Go=(t,e)=>{let i=t.length-1,r=[],a,s=e===2?"<svg>":"",o=Re;for(let d=0;d<i;d++){let l=t[d],h,m,u=-1,p=0;for(;p<l.length&&(o.lastIndex=p,m=o.exec(l),m!==null);)p=o.lastIndex,o===Re?m[1]==="!--"?o=Da:m[1]!==void 0?o=Ia:m[2]!==void 0?(Oa.test(m[2])&&(a=RegExp("</"+m[2],"g")),o=qt):m[3]!==void 0&&(o=qt):o===qt?m[0]===">"?(o=a??Re,u=-1):m[1]===void 0?u=-2:(u=o.lastIndex-m[2].length,h=m[1],o=m[3]===void 0?qt:m[3]==='"'?Ra:Fa):o===Ra||o===Fa?o=qt:o===Da||o===Ia?o=Re:(o=qt,a=void 0);let c=o===qt&&t[d+1].startsWith("/>")?" ":"";s+=o===Re?l+No:u>=0?(r.push(h),l.slice(0,u)+"$lit$"+l.slice(u)+Bt+c):l+Bt+(u===-2?(r.push(void 0),d):c);}let n=s+(t[i]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return [Ma!==void 0?Ma.createHTML(n):n,r]},Yt=class{constructor({strings:e,_$litType$:i},r){let a;this.parts=[];let s=0,o=0,n=e.length-1,d=this.parts,[l,h]=Go(e,i);if(this.el=Yt.createElement(l,r),he.currentNode=this.el.content,i===2){let m=this.el.content,u=m.firstChild;u.remove(),m.append(...u.childNodes);}for(;(a=he.nextNode())!==null&&d.length<n;){if(a.nodeType===1){if(a.hasAttributes()){let m=[];for(let u of a.getAttributeNames())if(u.endsWith("$lit$")||u.startsWith(Bt)){let p=h[o++];if(m.push(u),p!==void 0){let c=a.getAttribute(p.toLowerCase()+"$lit$").split(Bt),g=/([.?@])?(.*)/.exec(p);d.push({type:1,index:s,name:g[2],strings:c,ctor:g[1]==="."?qi:g[1]==="?"?Wi:g[1]==="@"?Yi:ce});}else d.push({type:6,index:s});}for(let u of m)a.removeAttribute(u);}if(Oa.test(a.tagName)){let m=a.textContent.split(Bt),u=m.length-1;if(u>0){a.textContent=le?le.emptyScript:"";for(let p=0;p<u;p++)a.append(m[p],Be()),he.nextNode(),d.push({type:2,index:++s});a.append(m[u],Be());}}}else if(a.nodeType===8)if(a.data===za)d.push({type:2,index:s});else {let m=-1;for(;(m=a.data.indexOf(Bt,m+1))!==-1;)d.push({type:7,index:s}),m+=Bt.length-1;}s++;}}static createElement(e,i){let r=pe.createElement("template");return r.innerHTML=e,r}};function fe(t,e,i=t,r){var a,s,o,n;if(e===Wt)return e;let d=r!==void 0?(a=i._$Co)===null||a===void 0?void 0:a[r]:i._$Cl,l=Le(e)?void 0:e._$litDirective$;return d?.constructor!==l&&((s=d?._$AO)===null||s===void 0||s.call(d,!1),l===void 0?d=void 0:(d=new l(t),d._$AT(t,i,r)),r!==void 0?((o=(n=i)._$Co)!==null&&o!==void 0?o:n._$Co=[])[r]=d:i._$Cl=d),d!==void 0&&(e=fe(t,d._$AS(t,e.values),d,r)),e}var Zi=class{constructor(e,i){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var i;let{el:{content:r},parts:a}=this._$AD,s=((i=e?.creationScope)!==null&&i!==void 0?i:pe).importNode(r,!0);he.currentNode=s;let o=he.nextNode(),n=0,d=0,l=a[0];for(;l!==void 0;){if(n===l.index){let h;l.type===2?h=new Xt(o,o.nextSibling,this,e):l.type===1?h=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(h=new Xi(o,this,e)),this.u.push(h),l=a[++d];}n!==l?.index&&(o=he.nextNode(),n++);}return s}p(e){let i=0;for(let r of this.u)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++;}},Xt=class{constructor(e,i,r,a){var s;this.type=2,this._$AH=tt,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=a,this._$Cm=(s=a?.isConnected)===null||s===void 0||s;}get _$AU(){var e,i;return (i=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&i!==void 0?i:this._$Cm}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=fe(this,e,i),Le(e)?e===tt||e==null||e===""?(this._$AH!==tt&&this._$AR(),this._$AH=tt):e!==this._$AH&&e!==Wt&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):$o(e)?this.k(e):this.g(e);}O(e,i=this._$AB){return this._$AA.parentNode.insertBefore(e,i)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e));}g(e){this._$AH!==tt&&Le(this._$AH)?this._$AA.nextSibling.data=e:this.T(pe.createTextNode(e)),this._$AH=e;}$(e){var i;let{values:r,_$litType$:a}=e,s=typeof a=="number"?this._$AC(e):(a.el===void 0&&(a.el=Yt.createElement(a.h,this.options)),a);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===s)this._$AH.p(r);else {let o=new Zi(s,this),n=o.v(this.options);o.p(r),this.T(n),this._$AH=o;}}_$AC(e){let i=Ba.get(e.strings);return i===void 0&&Ba.set(e.strings,i=new Yt(e)),i}k(e){Va(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,a=0;for(let s of e)a===i.length?i.push(r=new Xt(this.O(Be()),this.O(Be()),this,this.options)):r=i[a],r._$AI(s),a++;a<i.length&&(this._$AR(r&&r._$AB.nextSibling,a),i.length=a);}_$AR(e=this._$AA.nextSibling,i){var r;for((r=this._$AP)===null||r===void 0||r.call(this,!1,!0,i);e&&e!==this._$AB;){let a=e.nextSibling;e.remove(),e=a;}}setConnected(e){var i;this._$AM===void 0&&(this._$Cm=e,(i=this._$AP)===null||i===void 0||i.call(this,e));}},ce=class{constructor(e,i,r,a,s){this.type=1,this._$AH=tt,this._$AN=void 0,this.element=e,this.name=i,this._$AM=a,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=tt;}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,i=this,r,a){let s=this.strings,o=!1;if(s===void 0)e=fe(this,e,i,0),o=!Le(e)||e!==this._$AH&&e!==Wt,o&&(this._$AH=e);else {let n=e,d,l;for(e=s[0],d=0;d<s.length-1;d++)l=fe(this,n[r+d],i,d),l===Wt&&(l=this._$AH[d]),o||(o=!Le(l)||l!==this._$AH[d]),l===tt?e=tt:e!==tt&&(e+=(l??"")+s[d+1]),this._$AH[d]=l;}o&&!a&&this.j(e);}j(e){e===tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"");}},qi=class extends ce{constructor(){super(...arguments),this.type=3;}j(e){this.element[this.name]=e===tt?void 0:e;}},Ho=le?le.emptyScript:"",Wi=class extends ce{constructor(){super(...arguments),this.type=4;}j(e){e&&e!==tt?this.element.setAttribute(this.name,Ho):this.element.removeAttribute(this.name);}},Yi=class extends ce{constructor(e,i,r,a,s){super(e,i,r,a,s),this.type=5;}_$AI(e,i=this){var r;if((e=(r=fe(this,e,i,0))!==null&&r!==void 0?r:tt)===Wt)return;let a=this._$AH,s=e===tt&&a!==tt||e.capture!==a.capture||e.once!==a.once||e.passive!==a.passive,o=e!==tt&&(a===tt||s);s&&this.element.removeEventListener(this.name,this,a),o&&this.element.addEventListener(this.name,this,e),this._$AH=e;}handleEvent(e){var i,r;typeof this._$AH=="function"?this._$AH.call((r=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&r!==void 0?r:this.element,e):this._$AH.handleEvent(e);}},Xi=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r;}get _$AU(){return this._$AM._$AU}_$AI(e){fe(this,e);}};var La=si.litHtmlPolyfillSupport;La?.(Yt,Xt),((Ui=si.litHtmlVersions)!==null&&Ui!==void 0?Ui:si.litHtmlVersions=[]).push("2.4.0");var $a=(t,e,i)=>{var r,a;let s=(r=i?.renderBefore)!==null&&r!==void 0?r:e,o=s._$litPart$;if(o===void 0){let n=(a=i?.renderBefore)!==null&&a!==void 0?a:null;s._$litPart$=o=new Xt(e.insertBefore(Be(),n),n,void 0,i??{});}return o._$AI(t),o};var Ki,Ji;var Lt=class extends At{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var e,i;let r=super.createRenderRoot();return (e=(i=this.renderOptions).renderBefore)!==null&&e!==void 0||(i.renderBefore=r.firstChild),r}update(e){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=$a(i,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 Wt}};Lt.finalized=!0,Lt._$litElement$=!0,(Ki=globalThis.litElementHydrateSupport)===null||Ki===void 0||Ki.call(globalThis,{LitElement:Lt});var Ga=globalThis.litElementPolyfillSupport;Ga?.({LitElement:Lt});((Ji=globalThis.litElementVersions)!==null&&Ji!==void 0?Ji:globalThis.litElementVersions=[]).push("3.2.2");var oi=Ka(Ha());var Qi={name:"@lottiefiles/lottie-player",version:"2.0.1",description:"Lottie animation and Telegram Sticker player web components.",repository:"https://github.com/LottieFiles/lottie-player.git",homepage:"https://lottiefiles.com/web-player",bugs:"https://github.com/LottieFiles/lottie-player/issues",author:"Jawish Hameed <jawish@lottiefiles.com>",license:"MIT",main:"dist/lottie-player.js",module:"dist/lottie-player.mjs",types:"dist/lottie-player.d.ts",files:["dist/"],keywords:["lottie","animation","lottiefiles","web component","component","lit-element","player","telegram sticker","tgs"],scripts:{build:"tsup",changelog:"changeset add","changelog:check":"changeset status --since=main",dev:"tsup --watch",format:"pnpm run format:prettier","format:prettier":"prettier --loglevel=warn --no-editorconfig --write .","format:remark":"remark . --output --ignore-path .remarkignore --silently-ignore",lint:"eslint . --ext .ts,.tsx,.js","lint:fix":"eslint . --ext .ts,.tsx,.js --fix",open:"cypress open",preinstall:"npx only-allow pnpm",release:"pnpm release:version && pnpm release:publish","release:publish":"pnpm build && changeset publish","release:tag":"changeset tag","release:version":"changeset version",test:"cypress run --component","type-check":"turbo run type-check"},dependencies:{"@changesets/cli":"^2.26.1","@types/pako":"^1.0.4",lit:"^2.4.1","lottie-web":"^5.12.0",pako:"^2.1.0","resize-observer-polyfill":"^1.5.1"},devDependencies:{"@commitlint/cli":"^16.3.0","@commitlint/config-conventional":"^16.2.4","@lottiefiles/eslint-plugin":"^3.0.0","@lottiefiles/prettier-config":"^3.0.0",cypress:"^12.13.0","cypress-ct-lit":"^0.3.2","cypress-real-events":"^1.7.4",eslint:"^7.32.0","eslint-plugin-only-warn":"^1.0.3",husky:"^8.0.2","lint-staged":"^12.5.0",prettier:"^2.8.0","ts-node":"^10.9.1",tsup:"^6.7.0",turbo:"^1.10.2",typescript:"^4.9.3","unicode-canonical-property-names-ecmascript":"^2.0.0",vite:"^4.3.9"},publishConfig:{access:"public"},browserslist:["> 3%"],husky:{hooks:{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{css,scss,md}":["prettier --write"],"src/**/*.{js,jsx,ts,tsx,json}":["eslint . --ext .ts,.tsx,.js --fix"]},nyc:{extends:"@istanbuljs/nyc-config-typescript",all:!0}};var ni=Fe`
13
13
  * {
14
14
  box-sizing: border-box;
15
15
  }