PageSourceSearch

https://oscus-75618.firebaseapp.com/79.118b130bf75b8e9b.js

js oscus-75618.firebaseapp.com collected 2026-10-03 08:13:39 UTC 224,015 bytes, 1 lines download raw bytes

1(self.webpackChunkoscus=self.webpackChunkoscus||[]).push([[79],{6079:(qt,Re,ie)=>{"use strict";ie.r(Re),ie.d(Re,{AdvertsModule:()=>xn,HttpLoaderFactory:()=>xi});var de=ie(6895),D=ie(4496),e=ie(4650),B=ie(4006);function U(r,i){if(1&r&&(e.TgZ(0,"div",24),e._UZ(1,"div",25),e.TgZ(2,"div",26)(3,"div",27)(4,"div",28),e._uU(5),e.qZA()(),e.TgZ(6,"div",29),e._uU(7),e.qZA(),e.TgZ(8,"div",30),e._uU(9),e.qZA()()()),2&r){const t=i.$implicit;e.xp6(1),e.Udp("background-image","url("+t.photo+")"),e.xp6(4),e.hij(" $",t.price," "),e.xp6(2),e.hij(" ",t.ubication," "),e.xp6(2),e.hij(" ",t.title," ")}}function O(r,i){if(1&r){const t=e.EpF();e.TgZ(0,"li",31)(1,"a",32),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw();return e.KtG(s.onPageChange(a))}),e._uU(2),e.qZA()()}if(2&r){const t=i.$implicit,n=e.oxw();e.xp6(1),e.ekj("active",t===n.currentPage),e.xp6(1),e.hij(" ",t,"")}}let f=(()=>{class r{constructor(){this.allCards=[{photo:"https://m.media-amazon.com/images/I/51B5us02JgL.__AC_SY445_SX342_QL70_FMwebp_.jpg",title:"Laptop Mac",ubication:"Ambato, Tungurahua",price:"800"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"},{photo:"https://scontent.fuio3-1.fna.fbcdn.net/v/t39.30808-6/385502743_887924236017773_8233406353859182834_n.jpg?stp=cp6_dst-jpg&_nc_cat=110&ccb=1-7&_nc_sid=5f2048&_nc_eui2=AeFliuxAeMYzEQ5b1lvAd1M5akjBX8KP8y9qSMFfwo_zL7trv26jqrz24GTwI2ZM0AyYUzIWFR_bVkhKE4dTsO36&_nc_ohc=Tuw34AYPFZgAX-vmPmg&_nc_ht=scontent.fuio3-1.fna&oh=00_AfAl5HGpKNeYZvolFH1P2_p6p7ab67TvLrnf8w1UX3_uCw&oe=656A87A0",title:"Chompa jean",ubication:"Latacunga, Cotopaxi",price:"40"},{photo:"https://m.media-amazon.com/images/I/614ukzbB8KL._AC_SY300_SX300_.jpg",title:"Luz smart",ubication:"Riobamba, Chimborazo",price:"15"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"},{photo:"https://m.media-amazon.com/images/I/51B5us02JgL.__AC_SY445_SX342_QL70_FMwebp_.jpg",title:"Laptop Mac",ubication:"Ambato, Tungurahua",price:"800"},{photo:"https://m.media-amazon.com/images/I/614ukzbB8KL._AC_SY300_SX300_.jpg",title:"Luz smart",ubication:"Riobamba, Chimborazo",price:"15"},{photo:"https://scontent.fuio3-1.fna.fbcdn.net/v/t39.30808-6/385502743_887924236017773_8233406353859182834_n.jpg?stp=cp6_dst-jpg&_nc_cat=110&ccb=1-7&_nc_sid=5f2048&_nc_eui2=AeFliuxAeMYzEQ5b1lvAd1M5akjBX8KP8y9qSMFfwo_zL7trv26jqrz24GTwI2ZM0AyYUzIWFR_bVkhKE4dTsO36&_nc_ohc=Tuw34AYPFZgAX-vmPmg&_nc_ht=scontent.fuio3-1.fna&oh=00_AfAl5HGpKNeYZvolFH1P2_p6p7ab67TvLrnf8w1UX3_uCw&oe=656A87A0",title:"Chompa jean",ubication:"Latacunga, Cotopaxi",price:"40"},{photo:"https://scontent.fuio3-1.fna.fbcdn.net/v/t39.30808-6/385502743_887924236017773_8233406353859182834_n.jpg?stp=cp6_dst-jpg&_nc_cat=110&ccb=1-7&_nc_sid=5f2048&_nc_eui2=AeFliuxAeMYzEQ5b1lvAd1M5akjBX8KP8y9qSMFfwo_zL7trv26jqrz24GTwI2ZM0AyYUzIWFR_bVkhKE4dTsO36&_nc_ohc=Tuw34AYPFZgAX-vmPmg&_nc_ht=scontent.fuio3-1.fna&oh=00_AfAl5HGpKNeYZvolFH1P2_p6p7ab67TvLrnf8w1UX3_uCw&oe=656A87A0",title:"Chompa jean",ubication:"Latacunga, Cotopaxi",price:"40"},{photo:"https://m.media-amazon.com/images/I/614ukzbB8KL._AC_SY300_SX300_.jpg",title:"Luz smart",ubication:"Riobamba, Chimborazo",price:"15"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"},{photo:"https://m.media-amazon.com/images/I/51B5us02JgL.__AC_SY445_SX342_QL70_FMwebp_.jpg",title:"Laptop Mac",ubication:"Ambato, Tungurahua",price:"800"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"},{photo:"https://scontent.fuio3-1.fna.fbcdn.net/v/t39.30808-6/385502743_887924236017773_8233406353859182834_n.jpg?stp=cp6_dst-jpg&_nc_cat=110&ccb=1-7&_nc_sid=5f2048&_nc_eui2=AeFliuxAeMYzEQ5b1lvAd1M5akjBX8KP8y9qSMFfwo_zL7trv26jqrz24GTwI2ZM0AyYUzIWFR_bVkhKE4dTsO36&_nc_ohc=Tuw34AYPFZgAX-vmPmg&_nc_ht=scontent.fuio3-1.fna&oh=00_AfAl5HGpKNeYZvolFH1P2_p6p7ab67TvLrnf8w1UX3_uCw&oe=656A87A0",title:"Chompa jean",ubication:"Latacunga, Cotopaxi",price:"40"},{photo:"https://m.media-amazon.com/images/I/614ukzbB8KL._AC_SY300_SX300_.jpg",title:"Luz smart",ubication:"Riobamba, Chimborazo",price:"15"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"},{photo:"https://m.media-amazon.com/images/I/614ukzbB8KL._AC_SY300_SX300_.jpg",title:"Luz smart",ubication:"Riobamba, Chimborazo",price:"15"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"},{photo:"https://m.media-amazon.com/images/I/51B5us02JgL.__AC_SY445_SX342_QL70_FMwebp_.jpg",title:"Laptop Mac",ubication:"Ambato, Tungurahua",price:"800"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"},{photo:"https://scontent.fuio3-1.fna.fbcdn.net/v/t39.30808-6/385502743_887924236017773_8233406353859182834_n.jpg?stp=cp6_dst-jpg&_nc_cat=110&ccb=1-7&_nc_sid=5f2048&_nc_eui2=AeFliuxAeMYzEQ5b1lvAd1M5akjBX8KP8y9qSMFfwo_zL7trv26jqrz24GTwI2ZM0AyYUzIWFR_bVkhKE4dTsO36&_nc_ohc=Tuw34AYPFZgAX-vmPmg&_nc_ht=scontent.fuio3-1.fna&oh=00_AfAl5HGpKNeYZvolFH1P2_p6p7ab67TvLrnf8w1UX3_uCw&oe=656A87A0",title:"Chompa jean",ubication:"Latacunga, Cotopaxi",price:"40"},{photo:"https://m.media-amazon.com/images/I/614ukzbB8KL._AC_SY300_SX300_.jpg",title:"Luz smart",ubication:"Riobamba, Chimborazo",price:"15"},{photo:"https://m.media-amazon.com/images/I/614ukzbB8KL._AC_SY300_SX300_.jpg",title:"Luz smart",ubication:"Riobamba, Chimborazo",price:"15"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"},{photo:"https://m.media-amazon.com/images/I/614ukzbB8KL._AC_SY300_SX300_.jpg",title:"Luz smart",ubication:"Riobamba, Chimborazo",price:"15"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"},{photo:"https://scontent.fuio3-1.fna.fbcdn.net/v/t39.30808-6/385502743_887924236017773_8233406353859182834_n.jpg?stp=cp6_dst-jpg&_nc_cat=110&ccb=1-7&_nc_sid=5f2048&_nc_eui2=AeFliuxAeMYzEQ5b1lvAd1M5akjBX8KP8y9qSMFfwo_zL7trv26jqrz24GTwI2ZM0AyYUzIWFR_bVkhKE4dTsO36&_nc_ohc=Tuw34AYPFZgAX-vmPmg&_nc_ht=scontent.fuio3-1.fna&oh=00_AfAl5HGpKNeYZvolFH1P2_p6p7ab67TvLrnf8w1UX3_uCw&oe=656A87A0",title:"Chompa jean",ubication:"Latacunga, Cotopaxi",price:"40"},{photo:"https://m.media-amazon.com/images/I/614ukzbB8KL._AC_SY300_SX300_.jpg",title:"Luz smart",ubication:"Riobamba, Chimborazo",price:"15"},{photo:"https://m.media-amazon.com/images/I/614ukzbB8KL._AC_SY300_SX300_.jpg",title:"Luz smart",ubication:"Riobamba, Chimborazo",price:"15"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"}],this.filterCards=[],this.pagedCards=[],this.pageSize=16,this.currentPage=1,this.totalItems=0,this._searchTerm=""}getProducts(){this.filterCards=this.allCards,this.totalItems=this.filterCards.length}ngOnInit(){this.totalItems=this.allCards.length,this.getProducts(),this.updatePage()}onPageChange(t){this.currentPage=t,this.updatePage()}updatePage(){const t=(this.currentPage-1)*this.pageSize;this.filterCards=this.allCards.slice(t,t+this.pageSize)}getPages(){const t=Math.ceil(this.totalItems/this.pageSize);return Array.from({length:t},(n,o)=>o+1)}get searchTerm(){return this._searchTerm}set searchTerm(t){this._searchTerm=t,this.filterCards=this.filter(t)}filter(t){return this.allCards.filter(n=>{const o=n.title.toLowerCase(),a=n.ubication.toLowerCase(),s=t.toLowerCase();return o.includes(s)||a.includes(s)})}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-search-engine"]],decls:34,vars:3,consts:[[1,"container"],[1,"div_search_zone"],[1,"search-container"],["type","text","placeholder","Buscar en Anuncios OSCUS",1,"search-input",3,"ngModel","ngModelChange"],[1,"search-icon-container"],[1,"fa","fa-search"],[1,"div_name"],[1,"div_logout"],[1,"div_header_result"],[1,"navbar","navbar-expand-lg","navbar-light"],["type","button","data-toggle","collapse","data-target","#navbarTogglerDemo01","aria-controls","navbarTogglerDemo01","aria-expanded","fal
1se","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],["id","navbarTogglerDemo01",1,"collapse","navbar-collapse"],[1,"navbar-nav","mr-auto","mt-2","mt-lg-0"],[1,"div_title_header"],[1,"form-inline","my-2","my-lg-0"],[1,"div_options_header"],["type","submit",1,"btn","btn-primary","btn_send"],[1,"card-list"],["class","card",4,"ngFor","ngForOf"],[1,"pagination"],["aria-label","Page navigation example"],[1,"pagination","justify-content-center"],["class","page-item",4,"ngFor","ngForOf"],[1,"card"],[1,"card_photo"],[1,"card-body","card_text"],[1,"div_btn_price"],[1,"div_price"],[1,"div_location"],[1,"div_title_product"],[1,"page-item"],[1,"page-link",3,"click"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"input",3),e.NdJ("ngModelChange",function(a){return n.searchTerm=a}),e.qZA(),e.TgZ(4,"div",4),e._UZ(5,"i",5),e.qZA()(),e.TgZ(6,"div",6),e._uU(7," Hola, Evelyn "),e.qZA(),e.TgZ(8,"div",7),e._uU(9," Cerrar sesi\xf3n "),e.qZA()(),e.TgZ(10,"div",8)(11,"nav",9)(12,"button",10),e._UZ(13,"span",11),e.qZA(),e.TgZ(14,"div",12)(15,"ul",13)(16,"div",14),e._uU(17," Resultado de tu b\xfasqueda "),e.qZA()(),e.TgZ(18,"form",15)(19,"div",16),e._uU(20," Nuevo "),e.qZA(),e.TgZ(21,"div",16),e._uU(22," Usado "),e.qZA(),e.TgZ(23,"div",16),e._uU(24," Ubicaci\xf3n "),e.qZA(),e.TgZ(25,"div",16)(26,"button",17),e._uU(27,"Vende ahora"),e.qZA()()()()()(),e.TgZ(28,"div",18),e.YNc(29,U,10,5,"div",19),e.qZA(),e.TgZ(30,"div",20)(31,"nav",21)(32,"ul",22),e.YNc(33,O,3,3,"li",23),e.qZA()()()()),2&t&&(e.xp6(3),e.Q6J("ngModel",n.searchTerm),e.xp6(26),e.Q6J("ngForOf",n.filterCards),e.xp6(4),e.Q6J("ngForOf",n.getPages()))},dependencies:[de.sg,B._Y,B.Fj,B.JJ,B.JL,B.On,B.F],styles:[".div_search_zone[_ngcontent-%COMP%]{margin-top:10vh;display:flex}.search-container[_ngcontent-%COMP%]{position:relative;display:inline-block}.search-input[_ngcontent-%COMP%]{border:1px solid #efefef;border-radius:25px;padding:8px 30px 8px 8px;width:780px;height:50px;font-size:16px;background-color:#efefef}.search-icon-container[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);right:5px;cursor:pointer;background-color:#2e56a1;border-radius:25px}.fa-search[_ngcontent-%COMP%]{font-size:16px;color:#fff;padding:12px}.div_name[_ngcontent-%COMP%]{display:flex;align-items:center;width:10%;font-size:16px;margin-left:40px}.div_logout[_ngcontent-%COMP%]{display:flex;align-items:center;width:20%;font-size:16px}.div_title_header[_ngcontent-%COMP%]{font-size:20px;font-weight:700}.div_options_header[_ngcontent-%COMP%]{margin-right:2px;font-size:16px;padding:15px}.btn_send[_ngcontent-%COMP%]{width:130px;height:40px;font-size:16px}.card-list[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:16px}.card[_ngcontent-%COMP%]{border:1px solid #efefef;border-radius:25px}.card_photo[_ngcontent-%COMP%]{width:100%;height:300px;background-size:100% auto;background-repeat:no-repeat;background-position:center;border-radius:25px 25px 0 0}.card_text[_ngcontent-%COMP%]{background-color:#efefef;border-radius:0 0 25px 25px}.card_text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:12px}.div_btn_price[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.div_price[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;height:25px;display:flex;align-items:center;justify-content:center;font-size:18px;padding:12px;border-radius:5px;font-weight:700}.div_location[_ngcontent-%COMP%]{font-size:11px}.div_title_product[_ngcontent-%COMP%]{font-size:14px;color:#2e56a1;font-weight:700}.pagination[_ngcontent-%COMP%]{margin-top:16px}.pagination[_ngcontent-%COMP%]   .page-item[_ngcontent-%COMP%]   .page-link[_ngcontent-%COMP%]{background-color:#d9d9d9;border-color:#d9d9d9;color:#fff;font-size:20px;width:50px;height:50px;display:flex;justify-content:center;align-items:center;margin-right:5px}.pagination[_ngcontent-%COMP%]   .page-item[_ngcontent-%COMP%]   .page-link.active[_ngcontent-%COMP%]{background-color:#2e56a1;border-color:#2e56a1;color:#fff;font-size:20px}@media (max-width: 768px){.div_search_zone[_ngcontent-%COMP%]{flex-direction:column}.search-input[_ngcontent-%COMP%]{width:375px}.div_name[_ngcontent-%COMP%]{margin-top:5px;width:100%;margin-left:0}.div_logout[_ngcontent-%COMP%]{width:100%}
1.card-list[_ngcontent-%COMP%]{display:flex;flex-direction:column}}"]}),r})();var g=ie(7340),m=ie(189),_=ie(5226),l=ie.n(_),u=ie(4707),I=ie(7579);class A extends I.x{constructor(){super(...arguments),this._value=null,this._hasValue=!1,this._isComplete=!1}_checkFinalizedStatuses(i){const{hasError:t,_hasValue:n,_value:o,thrownError:a,isStopped:s,_isComplete:c}=this;t?i.error(a):(s||c)&&(n&&i.next(o),i.complete())}next(i){this.isStopped||(this._value=i,this._hasValue=!0)}complete(){const{_hasValue:i,_value:t,_isComplete:n}=this;n||(this._isComplete=!0,i&&super.next(t),super.complete())}}class v{constructor(){}loadScript(i,t,n,o=null){if(typeof document<"u"&&!document.getElementById(i)){let a=document.createElement("script");a.async=!0,a.src=t,a.onload=n,o||(o=document.head),o.appendChild(a)}}}class b{}let x=(()=>{class r extends v{constructor(t,n={scope:"email"}){super(),this.clientId=t,this.initOptions=n}initialize(){return new Promise((t,n)=>{try{this.loadScript(r.PROVIDER_ID,"https://apis.google.com/js/api.js",()=>{gapi.load("client:auth2",()=>{gapi.client.init(Object.assign(Object.assign({},this.initOptions),{client_id:this.clientId})).then(()=>{this.auth2=gapi.auth2.getAuthInstance(),t()}).catch(o=>{n(o)})})})}catch(o){n(o)}})}getLoginStatus(t){const n=Object.assign(Object.assign({},this.initOptions),t);return new Promise((o,a)=>{if(this.auth2.isSignedIn.get()){const s=new b,c=this.auth2.currentUser.get().getBasicProfile(),d=this.auth2.currentUser.get().getAuthResponse(!0);this.setUserProfile(s,c),s.response=d;const h=M=>{s.authToken=M.access_token,s.idToken=M.id_token,o(s)};n.refreshToken?this.auth2.currentUser.get().reloadAuthResponse().then(h):h(d)}else a(`No user is currently logged in with ${r.PROVIDER_ID}`)})}signIn(t){const n=Object.assign(Object.assign({},this.initOptions),t);return new Promise((o,a)=>{(n&&n.offline_access?this.auth2.grantOfflineAccess(t):this.auth2.signIn(t)).then(d=>{const h=new b;if(d&&d.code)h.authorizationCode=d.code;else{const M=this.auth2.currentUser.get().getBasicProfile(),F=this.auth2.currentUser.get().getAuthResponse(!0),Q=F.access_token,J=F.id_token;this.setUserProfile(h,M),h.authToken=Q,h.idToken=J,h.response=F}o(h)},d=>{a(d)}).catch(d=>{a(d)})})}signOut(t){return new Promise((n,o)=>{let a;a=t?this.auth2.disconnect():this.auth2.signOut(),a.then(s=>{s?o(s):n()}).catch(s=>{o(s)})})}setUserProfile(t,n){t.id=n.getId(),t.name=n.getName(),t.email=n.getEmail(),t.photoUrl=n.getImageUrl(),t.firstName=n.getGivenName(),t.lastName=n.getFamilyName()}}return r.PROVIDER_ID="GOOGLE",r})(),P=(()=>{class r{constructor(t){this.providers=new Map,this.autoLogin=!1,this._user=null,this._authState=new u.t(1),this.initialized=!1,this._initState=new A,t instanceof Promise?t.then(n=>{this.initialize(n)}):this.initialize(t)}get authState(){return this._authState.asObservable()}get initState(){return this._initState.asObservable()}initialize(t){this.autoLogin=void 0!==t.autoLogin&&t.autoLogin;const{onError:n=console.error}=t;t.providers.forEach(o=>{this.providers.set(o.id,o.provider)}),Promise.all(Array.from(this.providers.values()).map(o=>o.initialize())).then(()=>{if(this.autoLogin){const o=[];let a=!1;this.providers.forEach((s,c)=>{let d=s.getLoginStatus();o.push(d),d.then(h=>{h.provider=c,this._user=h,this._authState.next(h),a=!0}).catch(console.debug)}),Promise.all(o).catch(()=>{a||(this._user=null,this._authState.next(null))})}}).catch(o=>{n(o)}).finally(()=>{this.initialized=!0,this._initState.next(this.initialized),this._initState.complete()})}refreshAuthToken(t){return new Promise((n,o)=>{if(this.initialized)if(t!==x.PROVIDER_ID)o(r.ERR_NOT_SUPPORTED_FOR_REFRESH_TOKEN);else{const a=this.providers.get(t);a?a.getLoginStatus({refreshToken:!0}).then(s=>{s.provider=t,this._user=s,this._authState.next(s),n()}).catch(s=>{o(s)}):o(r.ERR_LOGIN_PROVIDER_NOT_FOUND)}else o(r.ERR_NOT_INITIALIZED)})}signIn(t,n){return new Promise((o,a)=>{if(this.initialized){let s=this.providers.get(t);s?s.signIn(n).then(c=>{c.provider=t,o(c),this._user=c,this._authState.next(c)}).catch(c=>{a(c)}):a(r.ERR_LOGIN_PROVIDER_NOT_FOUND)}else a(r.ERR_NOT_INITIALIZED)})}signOut(t=!1){return new Promise((n,o)=>
1{if(this.initialized)if(this._user){let s=this.providers.get(this._user.provider);s?s.signOut(t).then(()=>{n(),this._user=null,this._authState.next(null)}).catch(c=>{o(c)}):o(r.ERR_LOGIN_PROVIDER_NOT_FOUND)}else o(r.ERR_NOT_LOGGED_IN);else o(r.ERR_NOT_INITIALIZED)})}}return r.ERR_LOGIN_PROVIDER_NOT_FOUND="Login provider not found",r.ERR_NOT_LOGGED_IN="Not logged in",r.ERR_NOT_INITIALIZED="Login providers not ready yet. Are there errors on your console?",r.ERR_NOT_SUPPORTED_FOR_REFRESH_TOKEN="Chosen login provider is not supported for refreshing a token",r.\u0275fac=function(t){return new(t||r)(e.LFG("SocialAuthServiceConfig"))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac}),r})(),S=(()=>{class r{constructor(t){if(t)throw new Error("SocialLoginModule is already loaded. Import it in the AppModule only")}static initialize(t){return{ngModule:r,providers:[P,{provide:"SocialAuthServiceConfig",useValue:t}]}}}return r.\u0275fac=function(t){return new(t||r)(e.LFG(r,12))},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({providers:[P],imports:[[de.ez]]}),r})(),R=(()=>{class r extends v{constructor(t,n={}){super(),this.clientId=t,this.requestOptions={scope:"email,public_profile",locale:"en_US",fields:"name,email,picture,first_name,last_name",version:"v10.0"},this.requestOptions=Object.assign(Object.assign({},this.requestOptions),n)}initialize(){return new Promise((t,n)=>{try{this.loadScript(r.PROVIDER_ID,`//connect.facebook.net/${this.requestOptions.locale}/sdk.js`,()=>{FB.init({appId:this.clientId,autoLogAppEvents:!0,cookie:!0,xfbml:!0,version:this.requestOptions.version}),t()})}catch(o){n(o)}})}getLoginStatus(){return new Promise((t,n)=>{FB.getLoginStatus(o=>{if("connected"===o.status){let a=o.authResponse;FB.api(`/me?fields=${this.requestOptions.fields}`,s=>{let c=new b;c.id=s.id,c.name=s.name,c.email=s.email,c.photoUrl="https://graph.facebook.com/"+s.id+"/picture?type=normal&access_token="+a.accessToken,c.firstName=s.first_name,c.lastName=s.last_name,c.authToken=a.accessToken,c.response=s,t(c)})}else n(`No user is currently logged in with ${r.PROVIDER_ID}`)})})}signIn(t){const n=Object.assign(Object.assign({},this.requestOptions),t);return new Promise((o,a)=>{FB.login(s=>{if(s.authResponse){let c=s.authResponse;FB.api(`/me?fields=${n.fields}`,d=>{let h=new b;h.id=d.id,h.name=d.name,h.email=d.email,h.photoUrl="https://graph.facebook.com/"+d.id+"/picture?type=normal",h.firstName=d.first_name,h.lastName=d.last_name,h.authToken=c.accessToken,h.response=d,o(h)})}else a("User cancelled login or did not fully authorize.")},n)})}signOut(){return new Promise((t,n)=>{FB.logout(o=>{t()})})}}return r.PROVIDER_ID="FACEBOOK",r})();const ge=class{constructor(i,t){this.document=i,this.platformId=t,this.documentIsAccessible=(0,de.NF)(this.platformId)}static getCookieRegExp(i){const t=i.replace(/([\[\]{}()|=;+?,.*^$])/gi,"\\$1");return new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(i){try{return decodeURIComponent(i)}catch{return i}}check(i){return!!this.documentIsAccessible&&(i=encodeURIComponent(i),ge.getCookieRegExp(i).test(this.document.cookie))}get(i){if(this.documentIsAccessible&&this.check(i)){i=encodeURIComponent(i);const n=ge.getCookieRegExp(i).exec(this.document.cookie);return n[1]?ge.safeDecodeURIComponent(n[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const i={},t=this.document;return t.cookie&&""!==t.cookie&&t.cookie.split(";").forEach(n=>{const[o,a]=n.split("=");i[ge.safeDecodeURIComponent(o.replace(/^ /,""))]=ge.safeDecodeURIComponent(a)}),i}set(i,t,n,o,a,s,c,d){if(!this.documentIsAccessible)return;if("number"==typeof n||n instanceof Date||o||a||s||c)return void this.set(i,t,{expires:n,path:o,domain:a,secure:s,sameSite:c||"Lax",partitioned:d});let h=encodeURIComponent(i)+"="+encodeURIComponent(t)+";";const M=n||{};M.expires&&(h+="number"==typeof M.expires?"expires="+new Date((new Date).getTime()+1e3*M.expires*60*60*24).toUTCString()+";":"expires="+M.expires.toUTCString()+";"),M.path&&(h+="path="+M.path+";"),M.domain&&(h+="domain="+M.domain+";"),!1===M.secure&&"None"===M.sameSite&&(M.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${i} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),M.secure&&(h+="secure;"),M.sameSite||(M.sameSite="Lax"),h+="sameSite="+M.sameSite+";",M.partitioned&&(h+="Partitioned;"),this.document.cookie=h}delete(i,t,n,o,a="Lax"){if(!this.documentIsAccessible)return;const s=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(i,"",{expires:s,path:t,domain:n,secure:o,sameSite:a})}deleteAll(i,t,n,o="Lax"){if(!this.documentIsAccessible)return;const a=this.getAll();for(const s in a)a.hasOwnProperty(s)&&this.delete(s,i,t,n,o)}};let k=ge;ge.\u0275fac=function(t){return new(t||ge)(e.LFG(de.K0),e.LFG(e.Lbi))},ge.\u0275prov=e.Yz7({token:ge,factory:ge.\u0275fac,providedIn:"root"});var K=ie(1085);let G=(()=>
1{class r{constructor(t){this.firestore=t,this.TasaRef=this.firestore.collection("userfb")}obtenerUsuario(t){return this.firestore.collection("userfb",a=>a.where("id","==",t)).snapshotChanges()}insertarUsuario(t){return this.firestore.collection("userfb").add(t)}putVisibleTasa(t,n){return this.TasaRef.doc(t).update(n)}actualizarTasa(t,n){return this.TasaRef.doc(t).update(n)}}return r.\u0275fac=function(t){return new(t||r)(e.LFG(K.ST))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var $=ie(9383);function W(r,i){if(1&r){const t=e.EpF();e.TgZ(0,"div",126)(1,"a",127),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.signOut())}),e._uU(2,"Cerrar Sesi\xf3n"),e.qZA()()}}function p(r,i){1&r&&(e.TgZ(0,"div",126)(1,"a",128),e._uU(2,"Iniciar Sesi\xf3n"),e.qZA()())}function y(r,i){if(1&r){const t=e.EpF();e.TgZ(0,"p",133),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.redireccionarAPaginaInterna())}),e._uU(1,"Perfil"),e.qZA()}}function C(r,i){if(1&r){const t=e.EpF();e.TgZ(0,"div",129)(1,"div",130)(2,"p",131),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.toggleMostrarPerfil())}),e._uU(3),e.qZA(),e.YNc(4,y,2,0,"p",132),e.qZA()()}if(2&r){const t=e.oxw();e.xp6(3),e.AsE("Hola, ",null==t.user?null:t.user.firstName," ",null==t.user?null:t.user.lastName,""),e.xp6(1),e.Q6J("ngIf",t.mostrarPerfil)}}function T(r,i){if(1&r&&(e.TgZ(0,"div",135),e._UZ(1,"img",136),e.qZA()),2&r){const t=e.oxw().$implicit;e.Q6J("@fade",void 0),e.xp6(1),e.Q6J("src",t,e.LSH)}}function w(r,i){if(1&r&&(e.ynx(0),e.YNc(1,T,2,2,"div",134),e.BQk()),2&r){const t=i.index,n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.current==t)}}function X(r,i){if(1&r&&(e.TgZ(0,"div",138),e._UZ(1,"img",136),e.qZA()),2&r){const t=e.oxw().$implicit;e.Q6J("@fade",void 0),e.xp6(1),e.Q6J("src",t,e.LSH)}}function H(r,i){if(1&r&&(e.ynx(0),e.YNc(1,X,2,2,"div",137),e.BQk()),2&r){const t=i.index,n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.current==t)}}function Y(r,i){if(1&r){const t=e.EpF();e.TgZ(0,"div",139)(1,"button",140),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.signInWithFacebook())}),e._UZ(2,"i",141),e._uU(3," Inicia sesi\xf3n con Facebook"),e.qZA()()}}function ee(r,i){if(1&r&&(e.TgZ(0,"div")(1,"p",142),e._uU(2),e.qZA()()),2&r){const t=e.oxw();e.xp6(2),e.AsE("Hola, ",null==t.user?null:t.user.firstName," ",null==t.user?null:t.user.lastName,"! Bienvenido.")}}let ae=(()=>{class r{constructor(t,n,o,a,s){this.cookieService=t,this.router=n,this.AnunOscusLogService=o,this.translate=a,this.authService=s,this.usuariosfb=[],this.img_list=["../../../../assets/img/Anuncioscus/banner1.png"],this.img_list2=["../../../../assets/img/Anuncioscus/banner2.png"],this.current=0,this.current2=0,this.mostrarPerfil=!1,this.translate.setDefaultLang("es"),this.translate.use("es")}ngOnInit(){window.scrollTo(0,0),setInterval(()=>{this.current=++this.current%this.img_list.length,this.current2=++this.current2%this.img_list2.length},1e4)}enviarFormulario(){const F={isSwitchChecked:document.getElementById("flexSwitchCheckDefault").checked,name:document.getElementById("name").value,ci:document.getElementById("ci").value,email:document.getElementById("email").value,phone:document.getElementById("phone").value,incidentType:document.getElementById("incidentType").value,office:document.getElementById("office").value,description:document.getElementById("descripcion").value};this.limpiarCampos();const Q=document.getElementById("quejasModal");if(Q){Q.classList.remove("show"),Q.setAttribute("aria-hidden","true"),Q.style.display="none";const J=document.getElementsByClassName("modal-backdrop");for(let te=0;te<J.length;te++)document.body.removeChild(J[te])}m.lW("service_i7c6p4j","template_o3gdceg",F,"QekKrKlm9ek-tBkiR").then(function(J){l().fire("\xa1Enviado!","Tu mensaje se ha enviado correctamente.","success"),setTimeout(()=>{l().close()},1e3)}).catch(function(J){l().fire("\xa1Error!","Ha ocurrido un error al enviar tu mensaje. Por favor, int\xe9ntalo de nuevo m\xe1s tarde.","error")})}limpiarCampos(){document.getElementById("flexSwitchCheckDefault").checked=!1,document.getElementById("name").value="",document.getElementById("ci").value="",document.getElementById("email").value="",document.getElementById("phone").value="",document.getElementById("incidentType").value="",document.getElementById("office").value="",document.getElementById("descripcion").value=""}signInWithFacebook(){this.authService.signIn(R.PROVIDER_ID).then(t=>{this.user=t,this.obtenerUser(t),this.loggedIn=!0,this.guardarUsuarioEnCookies(t)}
1).catch(t=>{console.error("Erro no login social:",t)})}signOut(){this.authService.signOut().then(()=>{this.user=void 0,this.loggedIn=!1}).catch(t=>{console.error("Erro ao fazer logout:",t)})}obtenerUser(t){this.AnunOscusLogService.obtenerUsuario(t.id).subscribe(n=>{this.usuariosfb=[],n.forEach(o=>{this.usuariosfb.push({id:o.payload.doc.id,...o.payload.doc.data()})}),this.usuariosfb&&this.usuariosfb.length>0||this.llamarinseter({id:t.id,name:t.name,mail:t.email,photourl:t.photoUrl,authtoken:t.authToken,firstname:t.firstName,lastname:t.lastName,provider:t.provider,telefono:"000000000000",img:t.response.picture.data.url})},n=>{console.error(n)})}llamarinseter(t){this.AnunOscusLogService.insertarUsuario(t)}toggleMostrarPerfil(){this.mostrarPerfil=!this.mostrarPerfil}redireccionarAPaginaInterna(){this.router.navigate(["/anuncioscus/vendedor"])}guardarUsuarioEnCookies(t){let n={id:t.id,name:t.name,mail:t.email,photourl:t.photoUrl,authtoken:t.authToken,firstname:t.firstName,lastname:t.lastName,provider:t.provider,telefono:"000000000000",img:t.response.picture.data.url};console.log(n),this.cookieService.set("usuario",JSON.stringify(n))}obtenerUsuarioDesdeCookies(){const t=this.cookieService.get("usuario");JSON.parse(t)}}return r.\u0275fac=function(t){return new(t||r)(e.Y36(k),e.Y36(D.F0),e.Y36(G),e.Y36($.sK),e.Y36(P))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-home-adverts"]],decls:419,vars:19,consts:[[1,"container"],[1,"div_zone_question"],[1,"div_search_zone"],[1,"search-container"],["type","text","placeholder","Buscar en Anuncios OSCUS",1,"search-input"],[1,"search-icon-container"],[1,"fa","fa-search"],["class","div_name",4,"ngIf"],["class","div_logout",4,"ngIf"],[1,"sliders"],[4,"ngFor","ngForOf"],[1,"div_title_categories"],[1,"row"],[1,"card-list"],[1,"div_options"],[1,"div_contain_img"],["src","../../../../assets/img/Anuncioscus/ICONO001.png","alt","","width","100%"],[1,"div_contain_title"],["src","../../../../assets/img/Anuncioscus/ICONO004.png","alt","","width","100%"],["src","../../../../assets/img/Anuncioscus/ICONO007.png","alt","","width","100%"],["src","../../../../assets/img/Anuncioscus/ICONO002.png","alt","","width","100%"],["src","../../../../assets/img/Anuncioscus/ICONO005.png","alt","","width","100%"],["src","../../../../assets/img/Anuncioscus/ICONO008.png","alt","","width","100%"],["src","../../../../assets/img/Anuncioscus/ICONO003.png","alt","","width","100%"],["src","../../../../assets/img/Anuncioscus/ICONO006.png","alt","","width","100%"],["src","../../../../assets/img/Anuncioscus/ICONO009.png","alt","","width","100%"],[1,"sliders_second"],[1,"div_background_form"],[1,"card","card_description_form"],[1,"div_icon_form"],["src","../../../../assets/img/RECURSOS-quejasyreclamos/ICONO-QUEJAS.png","alt",""],[1,"card-body","card_text_form"],[1,"p_title_form"],[1,"p_title_form2"],[1,"p_description"],[1,"div_background_button_form"],[1,"div_button_form"],["type","button","data-toggle","modal","data-target","#quejasModal",1,"btn","btn-primary"],["src","../../../../assets/img/RECURSOS-productos/FLECHA.png","alt",""],[1,"card","card_form_img"],["id","quejasModal","tabindex","-1","role","dialog","aria-labelledby","quejasModalLabel","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],["id","quejasModalLabel",1,"modal-title"],["src","../../../../assets/img/logo-home.png","alt","Logo",1,"logo-img"],["type","button","data-dismiss","modal","aria-label","Cerrar",1,"close"],["aria-hidden","true"],[1,"modal-body"],["id","quejas"],[1,"card","mb-3"],[1,"card-body"],[1,"card-title"],[1,"custom-control","custom-switch"],[1,"form-check","form-switch"],["type","checkbox","id","flexSwitchCheckDefault",1,"form-check-input"],["for","",1,"form-check-label"],[1,"form-group"],[1,"input-group"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fas","fa-user"],["type","text","id","name","placeholder","Nombre y apellido",1,"form-control"],[1,"far","fa-id-card"],["type","text","id","ci","placeholder","C\xe9dula",1,"form-control"],[1,"far","fa-envelope"],["type","email","id","email","placeholder","Correo electr\xf3nico",1,"form-control"],[1,"fas","fa-phone"],["type","text","id","phone","placeholder","N\xfamero de tel\xe9fono",1,"form-control"],["id","incidentType","aria-label","Default select example",1,"form-select"],["value",""],["value","CDP"],["value","Cr\xe9dito"],["value","Tarjetas de d\xe9bito"],["value","Tarjetas de cr\xe9dito"],["value","OSCUS ONLINE"],["value","P\xe1gina Web"],["value","Transferencias"],["value","Recaudaciones"],["value","Dep\xf3sito o Retiro a trav\xe9s de Terceros"],["value","Remesas"],["value","Pago de Servicios Varios"],["value","Red M\xe9dica"],["value","CAPACIOSCUS"],["value","Cajero Autom\xe1tico"],["value","Atenci\xf3n al Cliente"],["value","Servipagos"],["value","Seguros"],["value","1800-OSCUS1"],["value","Afectaci\xf3n Ambiental Financiera"],["id","office","aria-label","Default select example",1,"form-select"],["value","Ambato Matriz"],["value","Ambato Mall de los Andes"],["value","Ambato Norte Izamba"],["value","Ambato Sur Huachi Chico"],["value","Ba\xf1os"],["value","Pelileo"],["value","P\xedllaro"],["value","Latacunga"],["value","Salcedo"],["value","Riobamba"],["value","Guayaquil"],["value","Quito Centro Hist\xf3rico"],["value","Quito Sur \u2013 C.C El Recreo"],["value","Puyo"],["value","Tena"],["value","Ambato Ventanilla de Extensi\xf3n"],["value","Quito Ventanilla de Extensi\xf3n"],["value","Pujil\xed Ventanilla de Extensi\xf3n"],["value","Riobamba Ventanilla de Extensi\xf3n"],["for","descripcion ",1,"requerimiento"],["id","descripcion","rows","5","placeholder","Ingrese aqu\xed la descripci\xf3n",1,"form-control"],[1,"custom-control","custom-checkbox"],["type","checkbox","id","aceptarTerminos",1,"custom-control-input"],["for","aceptarTerminos",1,"custom-control-label","text"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-secondary"],["type","button",1,"btn","btn-primary",3,"click"],["id","inicioSesionModal","tabindex","-1","role","dialog","aria-labelledby","inicioSesionModal","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal
1-dialog-centered"],[1,"modal-header","border-0"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],[1,"divpopiniciosesion"],[1,"centrboton"],["class","",4,"ngIf"],[4,"ngIf"],[1,"div_name"],["target","_blank","data-toggle","modal",3,"click"],["target","_blank","data-toggle","modal","data-target","#inicioSesionModal"],[1,"div_logout"],[1,"menu-container"],[3,"click"],["class","perfil-menu",3,"click",4,"ngIf"],[1,"perfil-menu",3,"click"],["class","slider",4,"ngIf"],[1,"slider"],[1,"img",3,"src"],["class","slider_second",4,"ngIf"],[1,"slider_second"],[1,""],[1,"boton",3,"click"],[1,"fab","fa-facebook"],[1,"textobien"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1),e._uU(2," \xbfQue comprar\xe1s hoy? "),e.qZA(),e.TgZ(3,"div",2)(4,"div",3),e._UZ(5,"input",4),e.TgZ(6,"div",5),e._UZ(7,"i",6),e.qZA()(),e.YNc(8,W,3,0,"div",7),e.YNc(9,p,3,0,"div",7),e.YNc(10,C,5,3,"div",8),e.qZA()(),e.TgZ(11,"div",9),e.YNc(12,w,2,1,"ng-container",10),e.qZA(),e.TgZ(13,"div",0)(14,"div",11)(15,"h2"),e._uU(16," Explora estas categor\xedas! "),e.qZA()(),e.TgZ(17,"div",12)(18,"div",13)(19,"div",14)(20,"div",15),e._UZ(21,"img",16),e.qZA(),e.TgZ(22,"div",17)(23,"p"),e._uU(24," Autom\xf3viles "),e.qZA()()(),e.TgZ(25,"div",14)(26,"div",15),e._UZ(27,"img",18),e.qZA(),e.TgZ(28,"div",17)(29,"p"),e._uU(30," Art\xedculos para el hogar "),e.qZA()()(),e.TgZ(31,"div",14)(32,"div",15),e._UZ(33,"img",19),e.qZA(),e.TgZ(34,"div",17)(35,"p"),e._uU(36," Celulares "),e.qZA()()(),e.TgZ(37,"div",14)(38,"div",15),e._UZ(39,"img",20),e.qZA(),e.TgZ(40,"div",17)(41,"p"),e._uU(42," Ropa "),e.qZA()()(),e.TgZ(43,"div",14)(44,"div",15),e._UZ(45,"img",21),e.qZA(),e.TgZ(46,"div",17)(47,"p"),e._uU(48," Videojuegos "),e.qZA()()(),e.TgZ(49,"div",14)(50,"div",15),e._UZ(51,"img",22),e.qZA(),e.TgZ(52,"div",17)(53,"p"),e._uU(54," Comida "),e.qZA()()(),e.TgZ(55,"div",14)(56,"div",15),e._UZ(57,"img",23),e.qZA(),e.TgZ(58,"div",17)(59,"p"),e._uU(60," Computadoras "),e.qZA()()(),e.TgZ(61,"div",14)(62,"div",15),e._UZ(63,"img",24),e.qZA(),e.TgZ(64,"div",17)(65,"p"),e._uU(66," Fotograf\xeda y video "),e.qZA()()(),e.TgZ(67,"div",14)(68,"div",15),e._UZ(69,"img",25),e.qZA(),e.TgZ(70,"div",17)(71,"p"),e._uU(72," Propiedades "),e.qZA()()()()(),e.TgZ(73,"div",26),e.YNc(74,H,2,1,"ng-container",10),e.qZA()(),e._UZ(75,"head"),e.TgZ(76,"div",27)(77,"div",28)(78,"div",29),e._UZ(79,"img",30),e.qZA(),e.TgZ(80,"div",31)(81,"p",32),e._uU(82),e.ALo(83,"translate"),e.qZA(),e.TgZ(84,"p",33),e._uU(85),e.ALo(86,"translate"),e.qZA(),e.TgZ(87,"p",34),e._uU(88),e.ALo(89,"translate"),e.qZA(),e.TgZ(90,"div",35)(91,"div",36)(92,"button",37),e._uU(93),e.ALo(94,"translate"),e._UZ(95,"img",38),e.qZA()()()()(),e._UZ(96,"div",39),e.qZA(),e.TgZ(97,"div",40)(98,"div",41)(99,"div",42)(100,"div",43)(101,"h5",44),e._uU(102,"Formulario de Quejas y Reclamos"),e.qZA(),e._UZ(103,"img",45),e.TgZ(104,"button",46)(105,"span",47),e._uU(106,"\xd7"),e.qZA()()(),e.TgZ(107,"div",48)(108,"form",49)(109,"div",50)(110,"div",51)(111,"h5",52),e._uU(112,"\xbfEs el afectado menor de edad?"),e.qZA(),e.TgZ(113,"div",53)(114,"div",54),e._UZ(115,"input",55),e.TgZ(116,"label",56),e._uU(117,"Si"),e.qZA()()()(),e.TgZ(118,"div",50)(119,"div",51)(120,"h5",52),e._uU(121,"Datos personales"),e.qZA(),e.TgZ(122,"div",57)(123,"div",58)(124,"div",59)(125,"span",60),e._UZ(126,"i",61),e.qZA()(),e._UZ(127,"input",62),e.qZA()(),e.TgZ(128,"div",57)(129,"div",58)(130,"div",59)(131,"span",60),e._UZ(132,"i",63),e.qZA()(),e._UZ(133,"input",64),e.qZA()(),e.TgZ(134,"div",57)(135,"div",58)(136,"div",59)(137,"span",60),e._UZ(138,"i",65),e.qZA()(),e._UZ(139,"input",66),e.qZA()(),e.TgZ(140,"div",57)(141,"div",58)(142,"div",59)(143,"span",60),e._UZ(144,"i",67),e.qZA()(),e._UZ(145,"input",68),e.qZA()()()(),e.TgZ(146,"div",50)(147,"div",51)(148,"h5",52),e._uU(149,"Detalle del incidente"),e.qZA(),e.TgZ(150,"div",57)(151,"select",69)(152,"option",70),e._uU(153,"Seleccione una opci\xf3n"),e.qZA(),e.TgZ(154,"option",71),e._uU(155,"CDP"),e.qZA(),e.TgZ(156,"option",72),e._uU(157,"Cr\xe9dito"),e.qZA(),e.TgZ(158,"option",73),e._uU(159,"Tarjetas de d\xe9bito"),e.qZA(),e.TgZ(160,"option",74),e._uU(161,"Tarjetas de cr\xe9dito"),e.qZA(),e.TgZ(162,"option",75),e._uU(163,"OSCUS ONLINE"),e.qZA(),e.TgZ(164,"option",76),e._uU(165,"P\xe1gina Web"),e.qZA(),e.TgZ(166,"option",77),e._uU(167,"Transferencias"),e.qZA(),e.TgZ(168,"option",78),e._uU(169,"Recaudaciones"),e.qZA(),e.TgZ(170,"option",79),e._uU(171,"Dep\xf3sito o Retiro a trav\xe9s de Terceros"),e.qZA(),e.TgZ(172,"option",80),e._uU(173,"Remesas"),e.qZA(),e.TgZ(174,"option",81),e._uU(175,"Pago de Servicios Varios"),e.qZA(),e.TgZ(176,"option",82),e._uU(177,"Red M\xe9dica"),e.qZA(),e.TgZ(178,"option",83),e._uU(179,"CAPACIOSCUS"),e.qZA(),e.TgZ(180,"option",84),e._uU(181,"Cajero Autom\xe1tico"),e.qZA(),e.TgZ(182,"option",85),e._uU(183,"Atenci\xf3n al Cliente"),e.qZA(),e.TgZ(184,"o
1ption",86),e._uU(185,"Servipagos"),e.qZA(),e.TgZ(186,"option",87),e._uU(187,"Seguros"),e.qZA(),e.TgZ(188,"option",88),e._uU(189,"1800-OSCUS1"),e.qZA(),e.TgZ(190,"option",89),e._uU(191,"Afectaci\xf3n Ambiental Financiera"),e.qZA()()(),e.TgZ(192,"div",57)(193,"select",90)(194,"option",70),e._uU(195,"Seleccione una oficina"),e.qZA(),e.TgZ(196,"option",91),e._uU(197,"Ambato Matriz"),e.qZA(),e.TgZ(198,"option",92),e._uU(199,"Ambato Mall de los Andes"),e.qZA(),e.TgZ(200,"option",93),e._uU(201,"Ambato Norte Izamba"),e.qZA(),e.TgZ(202,"option",94),e._uU(203,"Ambato Sur Huachi Chico"),e.qZA(),e.TgZ(204,"option",95),e._uU(205,"Ba\xf1os"),e.qZA(),e.TgZ(206,"option",95),e._uU(207,"Patate"),e.qZA(),e.TgZ(208,"option",96),e._uU(209,"Pelileo"),e.qZA(),e.TgZ(210,"option",97),e._uU(211,"P\xedllaro"),e.qZA(),e.TgZ(212,"option",98),e._uU(213,"Latacunga"),e.qZA(),e.TgZ(214,"option",99),e._uU(215,"Salcedo"),e.qZA(),e.TgZ(216,"option",100),e._uU(217,"Riobamba"),e.qZA(),e.TgZ(218,"option",101),e._uU(219,"Guayaquil"),e.qZA(),e.TgZ(220,"option",102),e._uU(221,"Quito Centro Hist\xf3rico"),e.qZA(),e.TgZ(222,"option",103),e._uU(223,"Quito Sur \u2013 C.C El Recreo"),e.qZA(),e.TgZ(224,"option",104),e._uU(225,"Puyo"),e.qZA(),e.TgZ(226,"option",105),e._uU(227,"Tena"),e.qZA(),e.TgZ(228,"option",106),e._uU(229,"Ambato Ventanilla de Extensi\xf3n"),e.qZA(),e.TgZ(230,"option",107),e._uU(231,"Quito Ventanilla de Extensi\xf3n"),e.qZA(),e.TgZ(232,"option",108),e._uU(233,"Pujil\xed Ventanilla de Extensi\xf3n"),e.qZA(),e.TgZ(234,"option",109),e._uU(235,"Riobamba Ventanilla de Extensi\xf3n"),e.qZA()()(),e.TgZ(236,"div",57)(237,"label",110),e._uU(238,"Descripci\xf3n del requerimiento"),e.qZA(),e._UZ(239,"textarea",111),e.qZA()()(),e.TgZ(240,"div",57)(241,"div",112),e._UZ(242,"input",113),e.TgZ(243,"label",114),e._uU(244,"Declaro que el requerimiento antes mencionado lo realizo a nombre propio y no por interpuestas personas; as\xed como, que los datos descritos son aut\xe9nticos, por lo que autorizo a OSCUS a realizar la validaci\xf3n de los mismos, los que en caso de no corresponder facultan a la Cooperativa a la anulaci\xf3n del tr\xe1mite de este requerimiento."),e.qZA()()()(),e.TgZ(245,"div",115)(246,"button",116),e._uU(247,"Cerrar"),e.qZA(),e.TgZ(248,"button",117),e.NdJ("click",function(){return n.enviarFormulario()}),e._uU(249,"Enviar"),e.qZA()()()()()()(),e.TgZ(250,"div",40)(251,"div",41)(252,"div",42)(253,"div",43)(254,"h5",44),e._uU(255,"Formulario de Quejas y Reclamos"),e.qZA(),e._UZ(256,"img",45),e.TgZ(257,"button",46)(258,"span",47),e._uU(259,"\xd7"),e.qZA()()(),e.TgZ(260,"div",48)(261,"form",49)(262,"div",50)(263,"div",51)(264,"h5",52),e._uU(265,"\xbfEs el afectado menor de edad?"),e.qZA(),e.TgZ(266,"div",53)(267,"div",54),e._UZ(268,"input",55),e.TgZ(269,"label",56),e._uU(270,"Si"),e.qZA()()()(),e.TgZ(271,"div",50)(272,"div",51)(273,"h5",52),e._uU(274,"Datos personales"),e.qZA(),e.TgZ(275,"div",57)(276,"div",58)(277,"div",59)(278,"span",60),e._UZ(279,"i",61),e.qZA()(),e._UZ(280,"input",62),e.qZA()(),e.TgZ(281,"div",57)(282,"div",58)(283,"div",59)(284,"span",60),e._UZ(285,"i",63),e.qZA()(),e._UZ(286,"input",64),e.qZA()(),e.TgZ(287,"div",57)(288,"div",58)(289,"div",59)(290,"span",60),e._UZ(291,"i",65),e.qZA()(),e._UZ(292,"input",66),e.qZA()(),e.TgZ(293,"div",57)(294,"div",58)(295,"div",59)(296,"span",60),e._UZ(297,"i",67),e.qZA()(),e._UZ(298,"input",68),e.qZA()()()(),e.TgZ(299,"div",50)(300,"div",51)(301,"h5",52),e._uU(302,"Detalle del incidente"),e.qZA(),e.TgZ(303,"div",57)(304,"
1select",69)(305,"option",70),e._uU(306,"Seleccione una opci\xf3n"),e.qZA(),e.TgZ(307,"option",71),e._uU(308,"CDP"),e.qZA(),e.TgZ(309,"option",72),e._uU(310,"Cr\xe9dito"),e.qZA(),e.TgZ(311,"option",73),e._uU(312,"Tarjetas de d\xe9bito"),e.qZA(),e.TgZ(313,"option",74),e._uU(314,"Tarjetas de cr\xe9dito"),e.qZA(),e.TgZ(315,"option",75),e._uU(316,"OSCUS ONLINE"),e.qZA(),e.TgZ(317,"option",76),e._uU(318,"P\xe1gina Web"),e.qZA(),e.TgZ(319,"option",77),e._uU(320,"Transferencias"),e.qZA(),e.TgZ(321,"option",78),e._uU(322,"Recaudaciones"),e.qZA(),e.TgZ(323,"option",79),e._uU(324,"Dep\xf3sito o Retiro a trav\xe9s de Terceros"),e.qZA(),e.TgZ(325,"option",80),e._uU(326,"Remesas"),e.qZA(),e.TgZ(327,"option",81),e._uU(328,"Pago de Servicios Varios"),e.qZA(),e.TgZ(329,"option",82),e._uU(330,"Red M\xe9dica"),e.qZA(),e.TgZ(331,"option",83),e._uU(332,"CAPACIOSCUS"),e.qZA(),e.TgZ(333,"option",84),e._uU(334,"Cajero Autom\xe1tico"),e.qZA(),e.TgZ(335,"option",85),e._uU(336,"Atenci\xf3n al Cliente"),e.qZA(),e.TgZ(337,"option",86),e._uU(338,"Servipagos"),e.qZA(),e.TgZ(339,"option",87),e._uU(340,"Seguros"),e.qZA(),e.TgZ(341,"option",88),e._uU(342,"1800-OSCUS1"),e.qZA(),e.TgZ(343,"option",89),e._uU(344,"Afectaci\xf3n Ambiental Financiera"),e.qZA()()(),e.TgZ(345,"div",57)(346,"select",90)(347,"option",70),e._uU(348,"Seleccione una oficina"),e.qZA(),e.TgZ(349,"option",91),e._uU(350,"Ambato Matriz"),e.qZA(),e.TgZ(351,"option",92),e._uU(352,"Ambato Mall de los Andes"),e.qZA(),e.TgZ(353,"option",93),e._uU(354,"Ambato Norte Izamba"),e.qZA(),e.TgZ(355,"option",94),e._uU(356,"Ambato Sur Huachi Chico"),e.qZA(),e.TgZ(357,"option",95),e._uU(358,"Ba\xf1os"),e.qZA(),e.TgZ(359,"option",95),e._uU(360,"Patate"),e.qZA(),e.TgZ(361,"option",96),e._uU(362,"Pelileo"),e.qZA(),e.TgZ(363,"option",97),e._uU(364,"P\xedllaro"),e.qZA(),e.TgZ(365,"option",98),e._uU(366,"Latacunga"),e.qZA(),e.TgZ(367,"option",99),e._uU(368,"Salcedo"),e.qZA(),e.TgZ(369,"option",100),e._uU(370,"Riobamba"),e.qZA(),e.TgZ(371,"option",101),e._uU(372,"Guayaquil"),e.qZA(),e.TgZ(373,"option",102),e._uU(374,"Quito Centro Hist\xf3rico"),e.qZA(),e.TgZ(375,"option",103),e._uU(376,"Quito Sur \u2013 C.C El Recreo"),e.qZA(),e.TgZ(377,"option",104),e._uU(378,"Puyo"),e.qZA(),e.TgZ(379,"option",105),e._uU(380,"Tena"),e.qZA(),e.TgZ(381,"option",106),e._uU(382,"Ambato Ventanilla de Extensi\xf3n"),e.qZA(),e.TgZ(383,"option",107),e._uU(384,"Quito Ventanilla de Extensi\xf3n"),e.qZA(),e.TgZ(385,"option",108),e._uU(386,"Pujil\xed Ventanilla de Extensi\xf3n"),e.qZA(),e.TgZ(387,"option",109),e._uU(388,"Riobamba Ventanilla de Extensi\xf3n"),e.qZA()()(),e.TgZ(389,"div",57)(390,"label",110),e._uU(391,"Descripci\xf3n del requerimiento"),e.qZA(),e._UZ(392,"textarea",111),e.qZA()()(),e.TgZ(393,"div",57)(394,"div",112),e._UZ(395,"input",113),e.TgZ(396,"label",114),e._uU(397,"Declaro que el requerimiento antes mencionado lo realizo a nombre propio y no por interpuestas personas; as\xed como, que los datos descritos son aut\xe9nticos, por lo que autorizo a OSCUS a realizar la validaci\xf3n de los mismos, los que en caso de no corresponder facultan a la Cooperativa a la anulaci\xf3n del tr\xe1mite de este requerimiento."),e.qZA()()()(),e.TgZ(398,"div",115)(399,"button",116),e._uU(400,"Cerrar"),e.qZA(),e.TgZ(401,"button",117),e.NdJ("click",function(){return n.enviarFormulario()}),e._uU(402,"Enviar"),e.qZA()()()()()()(),e.TgZ(403,"div",118)(404,"div",119)(405,"div",42)(406,"div",120)(407,"button",121)(408,"span",47),e._uU(409,"\xd7"),e.qZA()()(),e.TgZ(410,"div",48)(411,"div",122)(412,"p"),e._uU(413," Inicia sesi\xf3n en "),e.qZA(),e.TgZ(414,"h1"),e._uU(415," Anuncios OSCUS "),e.qZA()(),e.TgZ(416,"div",123),e.YNc(417,Y,4,0,"div",124),e.YNc(418,ee,3,2,"div",125),e.qZA()()()()()),2&t&&(e.xp6(8),e.Q6J("ngIf",n.loggedIn),e.xp6(1),e.Q6J("ngIf",!n.loggedIn),e.xp6(1),e.Q6J("ngIf",n.loggedIn),e.xp6(2),e.Q6J("ngForOf",n.img_list),e.xp6(62),e.Q6J("ngForOf",n.img_list2),e.xp6(8),e.hij(" ",e.lcZ(83,11,"COM-CLAIM-1")," "),e.xp6(3),e.Oqu(e.lcZ(86,13,"COM-CLAIM-2")),e.xp6(3),e.hij("",e.lcZ(89,15,"COM-CLAIM-3")," "),e.xp6(5),e.hij("",e.lcZ(94,17,"BTN-ENVIAR-FORM")," "),e.xp6(324),e.Q6J("ngIf",!n.loggedIn),e.xp6(1),e.Q6J("ngIf",n.loggedIn))},dependencies:[de.sg,de.O5,B._Y,B.YN,B.Kr,B.JL,B.F,$.X$],styles:[".div_zone_question[_ngcontent-%COMP%]{margin-top:10vh;margin-bottom:3vh;display:flex;justify-content:center;font-size:20px;font-weight:700;color:#2e56a1}.div_search_zone[_ngcontent-%COMP%]{display:flex}.search-container[_ngcontent-%COMP%]{position:relative;display:inline-block}.search-input[_ngcontent-%COMP%]{border:1px solid #efefef;border-radius:25px;padding:8px 30px 8px 8px;width:780px;height:50px;font-size:16px;background-color:#efefef}.search-icon-container[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);right:5px;cursor:pointer;background-color:#2e56a1;border-radius:25px}.fa-search[_ngcontent-%COMP%]{font-size:16px;color:#fff;padding:12px}.div_name[_ngcontent-%COMP%]{display:flex;align-items:center;width:10%;font-size:16px;margin-left:40px}.div_logout[_ngcontent-%COMP%]{display:flex;align-items:center;width:20%;font-size:16px}.sliders[_ngcontent-%COMP%]{position:relative;width:100%;height:53.3vh;margin-top:3rem}.slider[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.img[_ngcontent-%COMP%]{width:100%;height:100%}.sliders_second[_ngcontent-%COMP%]{position:relative;width:100%;height:53.3vh;margin-top:3rem}.slider_second[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.slider_second[_ngcontent-%COMP%]   .img[_ngcontent-%COMP%]{width:100%;height:100%}.div_title_categories[_ngcontent-%COMP%]{font-size:20px;color:#2e56a1;display:flex;justify-content:center;padding:3vh 0vh}.card-list[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:16px}.div_options[_ngcontent-%COMP%]{width:425px;height:8vh;background-color:#efefef;border-radius:10px;display:flex}.div_contain_img[_ngcontent-%COMP%]{width:20%;display:flex;justify-content:center;align-items:center;padding:10px}.div_contain_title[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}.div_contain_title[_ngcontent-%COMP%]{width:100%;display:flex;font-size:14pt;font-family:Poppins,sans-serif;color:#2e56a1;justify-content:center;flex-direction:row;flex-wrap:wrap;align-items:center;align-content:center}.div_background_form[_ngcontent-%COMP%]{display:flex;padding:5.2vh 0vh}.p_title_form[_ngcontent-%COMP%]{font-size:17pt;padding-top:20px;margin-bottom:0;color:#2e56a1}.p_title_form2[_ngcontent-%COMP%]{font-size:17pt;font-weight:700;margin-bottom:0;padding-bottom:20px;color:#2e56a1}.p_description[_ngcontent-%COMP%]{font-size:11pt;padding-right:10%;margin:0}.card_description_form[_ngcontent-%COMP%]{width:80%;box-shadow:5px 5px 5px 5px #b8b8b833;height:25vh;border-radius:0 25px 25px 0;z-index:1;top:3vh;border:0;display:flex;flex-direction:row}.div_icon_form[_ngcontent-%COMP%]{margin-left:335px;display:flex;justify-content:center;flex-direction:column-reverse;width:12%;padding-right:3%}.div_icon_form[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}
1.card_text_form[_ngcontent-%COMP%]{padding:0;min-width:60%;display:inline;text-align:justify}.card_form_img[_ngcontent-%COMP%]{width:30%;height:30vh;left:-80px;border-radius:20px;margin-right:200px;background-image:url(QUEJAS.890a1188df21a3f0.png);background-repeat:no-repeat;background-size:cover;border:0}.div_background_button_form[_ngcontent-%COMP%]{padding:10px 0 0;position:relative}.div_button_form[_ngcontent-%COMP%]{text-align:center;position:absolute;right:10%}.div_button_form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:215px;height:100%;border-radius:25px;background-color:#2e56a1;font-size:12pt;font-weight:700}.div_button_form[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:18px;margin-left:20px}@media screen and (min-width: 4000px) and (max-width: 5000px){.div_background_form[_ngcontent-%COMP%]{padding:1.2vh 0vh}.card_description_form[_ngcontent-%COMP%]{height:7vh;top:1vh}.div_icon_form[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}.card_form_img[_ngcontent-%COMP%]{height:9vh}.div_background_button_form[_ngcontent-%COMP%]{padding:40px 0 0;position:relative}.div_button_form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:1vh}}@media screen and (max-width: 1700px){.p_title_form[_ngcontent-%COMP%]{font-size:17pt;padding-top:15px}.p_title_form2[_ngcontent-%COMP%]{font-size:17pt;padding-bottom:15px}.p_description[_ngcontent-%COMP%]{font-size:10pt;padding-right:8%}.div_icon_form[_ngcontent-%COMP%]{margin-left:100px;width:15%}.card_description_form[_ngcontent-%COMP%]{height:21.8vh;top:2.5vh}.card_form_img[_ngcontent-%COMP%]{width:40%;height:26.52vh;margin-right:0}.div_background_button_form[_ngcontent-%COMP%]{padding:0}.div_button_form[_ngcontent-%COMP%]{text-align:center;position:absolute;right:8%}.div_button_form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:230px;height:4.2vh;font-size:12pt}.div_button_form[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:17px;margin-left:36px}.card_transfer_img[_ngcontent-%COMP%]{background-size:contain}}@media screen and (max-width:1200px){.card_description_form[_ngcontent-%COMP%]{height:22.8vh;top:2vh}.div_icon_form[_ngcontent-%COMP%]{margin-left:60px;width:18%}.div_background_button_form[_ngcontent-%COMP%]{padding:20px 0 0}}@media screen and (max-width: 1020px){.card_description_form[_ngcontent-%COMP%]{height:23.8vh;top:1vh}.div_icon_form[_ngcontent-%COMP%]{margin-left:20px;width:30%}.div_background_button_form[_ngcontent-%COMP%]{padding:20px 0 0}}@media screen and (max-width: 1280) and (max-height: 800px){.div_button_form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:215px;height:100vh;border-radius:25px;background-color:#2e56a1;font-size:12pt;font-weight:700}}@media screen and (max-width: 1024px) and (max-height: 800px){.card_description_form[_ngcontent-%COMP%]{height:60vh;top:4.5vh}.div_button_form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:10vh}.card_form_img[_ngcontent-%COMP%]{width:50%;height:70.52vh;margin-right:-60px}}@media screen and (max-width: 3000px) and (max-height: 800px){.card_description_form[_ngcontent-%COMP%]{height:40vh;top:4.5vh}.div_button_form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:6vh}.card_form_img[_ngcontent-%COMP%]{width:50%;height:50vh;margin-right:0}}@media screen and (max-width: 720px){.div_background_form[_ngcontent-%COMP%]{flex-direction:column;margin-top:-60px}.card_description_form[_ngcontent-%COMP%]{width:100%;height:28vh;border-radius:25px;font-size:12px}.div_icon_form[_ngcontent-%COMP%]{margin-left:5px;width:40%}.card_form_img[_ngcontent-%COMP%]{width:100%;height:36.52vh;left:0}.div_background_button_form[_ngcontent-%COMP%]{padding:10px 0 0}.div_button_form[_ngcontent-%COMP%]{right:20%}.div_button_form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:0;width:250px;height:4.2vh;font-size:12pt}.div_button_form[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:16px}}.modal-dialog[_ngcontent-%COMP%]{max-width:800px;margin:0 auto}.modal-body[_ngcontent-%COMP%]{padding:30px}.modal-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:16px}.card[_ngcontent-%COMP%]{margin-bottom:20px}.card-title[_ngcontent-%COMP%]{font-weight:700;color:#2e56a1}.requerimiento[_ngcontent-%COMP%]{color:#2e56a1}.custom-switch[_ngcontent-%COMP%]   .custom-control-label[_ngcontent-%COMP%]:before{border-radius:30px}.custom-control-label[_ngcontent-%COMP%]:before, .custom-control-label[_ngcontent-%COMP%]:after{width:20px;height:18px;margin-top:-.5rem;margin-left:1rem}.text[_ngcontent-%COMP%]{margin-left:2rem;color:#797473;font-size:10pt;text-align:justify}.btn[_ngcontent-%COMP%]{background-color:#2e56a1}.btn[_ngcontent-%COMP%]:hover{background-color:#fff;color:#2e56a1}.logo-img[_ngcontent-%COMP%]{height:40px;margin-right:0;margin-left:20px}@media screen and (min-width: 4000px) and (max-width: 5000px){.modal-dialog[_ngcontent-%COMP%]{max-width:1100px;margin:0 auto}.modal-body[_ngcontent-%COMP%]{padding:60px}.modal-title[_ngcontent-%COMP%]{font-size:24px}.card[_ngcontent-%COMP%]{margin-bottom:30px}.card-title[_ngcontent-%COMP%]{font-size:18px}.requerimiento[_ngcontent-%COMP%]{font-size:14px}.custom-control-label[_ngcontent-%COMP%]:before, .custom-control-label[_ngcontent-%COMP%]:after{width:24px;height:22px;margin-top:-.6rem;margin-left:1.5rem}.text[_ngcontent-%COMP%]{font-size:12pt}.btn[_ngcontent-%COMP%]{font-size:14px}.logo-img[_ngcontent-%COMP%]{height:60px;margin-right:10px;margin-left:30px}}@media (max-width: 768px){.div_search_zone[_ngcontent-%COMP%]{flex-direction:column}.search-input[_ngcontent-%COMP%]{width:375px}.div_name[_ngcontent-%COMP%]{margin-top:5px;width:100%;margin-left:0}.div_logout[_ngcontent-%COMP%]{width:100%}
1.card-list[_ngcontent-%COMP%]{display:flex;flex-direction:column}.sliders[_ngcontent-%COMP%], .sliders_second[_ngcontent-%COMP%]{height:20vh}.div_options[_ngcontent-%COMP%]{width:100%}}#inicioSesionModal[_ngcontent-%COMP%]   .modal-dialog[_ngcontent-%COMP%]{max-width:400px}.divpopiniciosesion[_ngcontent-%COMP%]{text-align:center;padding:0}.divpopiniciosesion[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:15px;color:#2e56a1}.divpopiniciosesion[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:25px;color:#2e56a1}.centrboton[_ngcontent-%COMP%]{text-align:center}.boton[_ngcontent-%COMP%]{background-color:#2e56a1;color:#fff;font-size:15px;border-radius:20px;box-shadow:0 4px 6px #0000001a;width:250px}.textobien[_ngcontent-%COMP%]{font-size:15px;color:#2e56a1}.div_logout[_ngcontent-%COMP%]{position:relative}.menu-container[_ngcontent-%COMP%]{position:relative;display:inline-block}.perfil-menu[_ngcontent-%COMP%]{display:none;position:absolute;top:100%;left:0;background-color:#fff;border:1px solid #ccc;box-shadow:0 2px 4px #0000001a;padding:10px;z-index:1}.menu-container[_ngcontent-%COMP%]:hover   .perfil-menu[_ngcontent-%COMP%]{display:block}"],data:{animation:[(0,g.X$)("fade",[(0,g.eR)("void => *",[(0,g.oB)({opacity:0}),(0,g.jt)("800ms",(0,g.oB)({opacity:1}))]),(0,g.eR)("* => void",[(0,g.oB)({opacity:1}),(0,g.jt)("800ms",(0,g.oB)({opacity:0}))])])]}}),r})();function Be(r,i){if(1&r){const t=e.EpF();e.TgZ(0,"img",60),e.NdJ("click",function(){const a=e.CHM(t).$implicit,s=e.oxw();return e.KtG(s.onImageClick(a))}),e.qZA()}if(2&r){const t=i.$implicit;e.Q6J("src",t.url,e.LSH)("alt",t.alt)}}let be=(()=>{class r{constructor(){this._searchTerm="",this.filterCards=[],this.pagedCards=[],this.pageSize=16,this.currentPage=1,this.totalItems=0,this.allCards=[{photo:"https://m.media-amazon.com/images/I/51B5us02JgL.__AC_SY445_SX342_QL70_FMwebp_.jpg",title:"Laptop Mac",ubication:"Ambato, Tungurahua",price:"800"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"},{photo:"https://scontent.fuio3-1.fna.fbcdn.net/v/t39.30808-6/385502743_887924236017773_8233406353859182834_n.jpg?stp=cp6_dst-jpg&_nc_cat=110&ccb=1-7&_nc_sid=5f2048&_nc_eui2=AeFliuxAeMYzEQ5b1lvAd1M5akjBX8KP8y9qSMFfwo_zL7trv26jqrz24GTwI2ZM0AyYUzIWFR_bVkhKE4dTsO36&_nc_ohc=Tuw34AYPFZgAX-vmPmg&_nc_ht=scontent.fuio3-1.fna&oh=00_AfAl5HGpKNeYZvolFH1P2_p6p7ab67TvLrnf8w1UX3_uCw&oe=656A87A0",title:"Chompa jean",ubication:"Latacunga, Cotopaxi",price:"40"},{photo:"https://m.media-amazon.com/images/I/614ukzbB8KL._AC_SY300_SX300_.jpg",title:"Luz smart",ubication:"Riobamba, Chimborazo",price:"15"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"},{photo:"https://m.media-amazon.com/images/I/51B5us02JgL.__AC_SY445_SX342_QL70_FMwebp_.jpg",title:"Laptop Mac",ubication:"Ambato, Tungurahua",price:"800"},{photo:"https://m.media-amazon.com/images/I/614ukzbB8KL._AC_SY300_SX300_.jpg",title:"Luz smart",ubication:"Riobamba, Chimborazo",price:"15"},{photo:"https://scontent.fuio3-1.fna.fbcdn.net/v/t39.30808-6/385502743_887924236017773_8233406353859182834_n.jpg?stp=cp6_dst-jpg&_nc_cat=110&ccb=1-7&_nc_sid=5f2048&_nc_eui2=AeFliuxAeMYzEQ5b1lvAd1M5akjBX8KP8y9qSMFfwo_zL7trv26jqrz24GTwI2ZM0AyYUzIWFR_bVkhKE4dTsO36&_nc_ohc=Tuw34AYPFZgAX-vmPmg&_nc_ht=scontent.fuio3-1.fna&oh=00_AfAl5HGpKNeYZvolFH1P2_p6p7ab67TvLrnf8w1UX3_uCw&oe=656A87A0",title:"Chompa jean",ubication:"Latacunga, Cotopaxi",price:"40"},{photo:"https://scontent.fuio3-1.fna.fbcdn.net/v/t39.30808-6/385502743_887924236017773_8233406353859182834_n.jpg?stp=cp6_dst-jpg&_nc_cat=110&ccb=1-7&_nc_sid=5f2048&_nc_eui2=AeFliuxAeMYzEQ5b1lvAd1M5akjBX8KP8y9qSMFfwo_zL7trv26jqrz24GTwI2ZM0AyYUzIWFR_bVkhKE4dTsO36&_nc_ohc=Tuw34AYPFZgAX-vmPmg&_nc_ht=scontent.fuio3-1.fna&oh=00_AfAl5HGpKNeYZvolFH1P2_p6p7ab67TvLrnf8w1UX3_uCw&oe=656A87A0",title:"Chompa jean",ubication:"Latacunga, Cotopaxi",price:"40"},{photo:"https://m.media-amazon.com/images/I/614ukzbB8KL._AC_SY300_SX300_.jpg",title:"Luz smart",ubication:"Riobamba, Chimborazo",price:"15"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"},{photo:"https://m.media-amazon.com/images/I/51B5us02JgL.__AC_SY445_SX342_QL70_FMwebp_.jpg",title:"Laptop Mac",ubication:"Ambato, Tungurahua",price:"800"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"},{photo:"https://scontent.fuio3-1.fna.fbcdn.net/v/t39.30808-6/385502743_887924236017773_8233406353859182834_n.jpg?stp=cp6_dst-jpg&_nc_cat=110&ccb=1-7&_nc_sid=5f2048&_nc_eui2=AeFliuxAeMYzEQ5b1lvAd1M5akjBX8KP8y9qSMFfwo_zL7trv26jqrz24GTwI2ZM0AyYUzIWFR_bVkhKE4dTsO36&_nc_ohc=Tuw34AYPFZgAX-vmPmg&_nc_ht=scontent.fuio3-1.fna&oh=00_AfAl5HGpKNeYZvolFH1P2_p6p7ab67TvLrnf8w1UX3_uCw&oe=656A87A0",title:"Chompa jean",ubication:"Latacunga, Cotopaxi",price:"40"},{photo:"https://m.media-amazon.com/images/I/614ukzbB8KL._AC_SY300_SX300_.jpg",title:"Luz smart",ubication:"Riobamba, Chimborazo",price:"15"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"},{photo:"https://m.media-amazon.com/images/I/614ukzbB8KL._AC_SY300_SX300_.jpg",title:"Luz smart",ubication:"Riobamba, Chimborazo",price:"15"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"},{photo:"https://m.media-amazon.com/images/I/51B5us02JgL.__AC_SY445_SX342_QL70_FMwebp_.jpg",title:"Laptop Mac",ubication:"Ambato, Tungurahua",price:"800"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"},{photo:"https://scontent.fuio3-1.fna.fbcdn.net/v/t39.30808-6/385502743_887924236017773_8233406353859182834_n.jpg?stp=cp6_dst-jpg&_nc_cat=110&ccb=1-7&_nc_sid=5f2048&_nc_eui2=AeFliuxAeMYzEQ5b1lvAd1M5akjBX8KP8y9qSMFfwo_zL7trv26jqrz24GTwI2ZM0AyYUzIWFR_bVkhKE4dTsO36&_nc_ohc=Tuw34AYPFZgAX-vmPmg&_nc_ht=scontent.fuio3-1.fna&oh=00_AfAl5HGpKNeYZvolFH1P2_p6p7ab67TvLrnf8w1UX3_uCw&oe=656A87A0",title:"Chompa jean",ubication:"Latacunga, Cotopaxi",price:"40"},{photo:"https://m.media-amazon.com/images/I/614ukzbB8KL._AC_SY300_SX300_.jpg",title:"Luz smart",ubication:"Riobamba, Chimborazo",price:"15"},{photo:"https://m.media-amazon.com/images/I/614ukzbB8KL._AC_SY300_SX300_.jpg",title:"Luz smart",ubication:"Riobamba, Chimborazo",price:"15"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"},{photo:"https://m.media-amazon.com/images/I/614ukzbB8KL._AC_SY300_SX300_.jpg",title:"Luz smart",ubication:"Riobamba, Chimborazo",price:"15"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"},{photo:"https://scontent.fuio3-1.fna.fbcdn.net/v/t39.30808-6/385502743_887924236017773_8233406353859182834_n.jpg?stp=cp6_dst-jpg&_nc_cat=110&ccb=1-7&_nc_sid=5f2048&_nc_eui2=AeFliuxAeMYzEQ5b1lvAd1M5akjBX8KP8y9qSMFfwo_zL7trv26jqrz24GTwI2ZM0AyYUzIWFR_bVkhKE4dTsO36&_nc_ohc=Tuw34AYPFZgAX-vmPmg&_nc_ht=scontent.fuio3-1.fna&oh=00_AfAl5HGpKNeYZvolFH1P2_p6p7ab67TvLrnf8w1UX3_uCw&oe=656A87A0",title:"Chompa jean",ubication:"Latacunga, Cotopaxi",price:"40"},{photo:"https://m.media-amazon.com/images/I/614ukzbB8KL._AC_SY300_SX300_.jpg",title:"Luz smart",ubication:"Riobamba, Chimborazo",price:"15"},{photo:"https://m.media-amazon.com/images/I/614ukzbB8KL._AC_SY300_SX300_.jpg",title:"Luz smart",ubication:"Riobamba, Chimborazo",price:"15"},{photo:"https://m.media-amazon.com/images/I/41ZrflcTznL._SX300_SY300_QL70_FMwebp_.jpg",title:"Carrito de bebe",ubication:"Pelileo, Tungurahua",price:"120"}],this.productImages=[{url:"../../../../assets/img/ejemplo-prod/1.png",alt:"Producto 1"},{url:"../../../../assets/img/ejemplo-prod/2.jpeg",alt:"Producto 2"},{url:"../../../../assets/img/ejemplo-prod/3.png",alt:"Producto 3"},{url:"../../../../assets/img/ejemplo-prod/4.png",alt:"Producto 4"},{url:"../../../../assets/img/ejemplo-prod/5.png",alt:"Producto 5"},{url:"../../../../assets/img/ejemplo-prod/6.png",alt:"Producto 6"},{url:"../../../../assets/img/ejemplo-prod/8.jpeg",alt:"Producto 7"},{url:"../../../../assets/img/ejemplo-prod/9.png",alt:"Producto 8"}],this.selectedImage={url:"",alt:"Imagen detallada del producto"}}onImageClick(t){this.selectedImage=t}getProducts(){this.filterCards=this.allCards,this.totalItems=this.filterCards.length}ngOnInit(){this.totalItems=this.allCards.length,this.getProducts(),this.updatePage(),this.productImages.length>0&&(this.selectedImage=this.productImages[0])}onPageChange(t){this.currentPage=t,this.updatePage()}updatePage(){const t=(this.currentPage-1)*this.pageSize;this.filterCards=this.allCards.slice(t,t+this.pageSize)}getPages(){const t=Math.ceil(this.totalItems/this.pageSize);return Array.from({length:t},(n,o)=>o+1)}get searchTerm(){return this._searchTerm}set searchTerm(t){this._searchTerm=t,this.filterCards=this.filter(t)}filter(t){return this.allCards.filter(n=>{const o=n.title.toLowerCase(),a=n.ubication.toLowerCase(),s=t.toLowerCase();return o.includes(s)||a.includes(s)})}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-product-description"]],decls:130,vars:4,consts:[[1,"div_mac"],[1,"div_blue_zone"],[1,"container"],[1,"row"],[1,"div_search_zone"],[1,"search-container"],["type","text","placeholder","Buscar en Anuncios OSCUS",1,"search-input",3,"ngModel","ngModelChange"],[1,"search-icon-container"],[1,"fa","fa-search"],[1,"div_name"],[1,"div_logout"],[1,"row","product-description"],[1,"col-12","col-md-2","resolution-movil"],[1,"product-images","scrollable"],["class","small-image",3,"src","alt","click",4,"ngFor","ngForOf"],[1,"col-12","col-md-6"],[1,"main-product-image"],[3,"src","alt"],[1,"col-12","col-md-4"],[1,"product-details"],[1,"product-title"],[1,"product-subtitle"],[1,"features-title"],[1,"card","shadow","border-light"],[1,"card-body","overflow-auto",2,"max-height","200px"],[1,"product-features"],[1,"product-info","d-flex","justify-content-between"],[1,"info-item"],[1,"text-primary-option","mb-0"],[1,"mb-0"],["
1id","confirmationModal","tabindex","-1","role","dialog","aria-labelledby","exampleModalLabel","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal-dialog-centered"],[1,"modal-content"],[1,"modal-header"],["id","exampleModalLabel",1,"modal-title","text-center","confirmation-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],[1,"modal-body","text-center"],["src","../../../../assets/img/ejemplo-prod/Sin t\xedtulo.png","alt","Carrito de compra"],[1,"mb-0","mt-3","text-center","confirmation"],[1,"text-center","confirmation"],[1,"mt-4"],["type","button","data-toggle","modal","data-target","#datosClienteModal",1,"btn","btn-primary","custom-btn-size-modal","mr-3"],["type","button","data-dismiss","modal",1,"btn","btn-primary","mr-3","custom-btn-size-modal"],["id","datosClienteModal","tabindex","-1","role","dialog","aria-labelledby","exampleModalLabel","aria-hidden","true",1,"modal","fade"],["role","document",1,"modal-dialog","modal-lg","modal-dialog-centered"],["aria-hidden","true"],[1,"modal-body"],[1,"text-center"],["src","../../../../assets/img/ejemplo-prod/confirmation.png","alt","Imagen del cliente",1,"img-client"],[1,"text-center","mt-4"],[1,"card","bg-light","mt-4","card-info"],[1,"card-body"],[1,"col-md-6"],["src","../../../../assets/img/ejemplo-prod/avatar.png","alt","Imagen del cliente",1,"info-client"],[1,"text-center","mt-4","name-client"],[1,"text-left","date-client-title","mt-4"],[1,"text-left","date-client"],["href","#","data-dismiss","modal",1,"link-style"],[1,"fas","fa-arrow-left"],["data-toggle","modal","data-target","#confirmationModal",1,"btn","btn-primary","custom-btn-size","contact-seller-btn"],[1,"small-image",3,"src","alt","click"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"input",6),e.NdJ("ngModelChange",function(a){return n.searchTerm=a}),e.qZA(),e.TgZ(7,"div",7),e._UZ(8,"i",8),e.qZA()(),e.TgZ(9,"div",9),e._uU(10," Hola, Evelyn "),e.qZA(),e.TgZ(11,"div",10),e._uU(12," Cerrar sesi\xf3n "),e.qZA()()(),e.TgZ(13,"div",11)(14,"div",12)(15,"div",13),e.YNc(16,Be,1,2,"img",14),e.qZA()(),e.TgZ(17,"div",15)(18,"div",16),e._UZ(19,"img",17),e.qZA()(),e.TgZ(20,"div",18)(21,"div",19)(22,"p"),e._uU(23,"Ambato, Tungurahua"),e.qZA(),e.TgZ(24,"h3",20),e._uU(25,"Gr\xe1fica Asus Rog Strix GeForce RTX 4090 24Gb GDDDR6X / PCle 4.0 / 16384 Cores / 2HDMI, 3DP / 357mm"),e.qZA(),e.TgZ(26,"h4",21),e._uU(27,"$ 2457"),e.qZA(),e.TgZ(28,"p",22),e._uU(29,"Caracter\xedsticas"),e.qZA(),e.TgZ(30,"div",23)(31,"div",24)(32,"p",25),e._uU(33," Este componente electr\xf3nico procesa la informaci\xf3n que llega al dispositivo y los transforma en im\xe1genes o videos para mostrarla visualmente. Es ideal para trabajar con aplicaciones gr\xe1ficas ya que permite obtener im\xe1genes m\xe1s n\xedtidas. Nvidia es el fabricante l\xedder de placas de video; su calidad asegura una experiencia positiva en el desarrollo del motor gr\xe1fico de tu computadora. Adem\xe1s, sus procesadores usan tecnolog\xeda de punta para que puedas disfrutar de un producto veloz y duradero. "),e.qZA(),e.TgZ(34,"p",25),e._uU(35," -GPU: Es la Unidad de Procesamiento Gr\xe1fico. Este circuito se encarga de procesar los gr\xe1ficos, aligerando la carga del trabajo del procesador central. -GRAM: Esta memoria gr\xe1fica de acceso aleatorio (GRAM) es clave para almacenar y transportar informaci\xf3n entre s\xed. Existen dos tipos de memorias gr\xe1ficas: las dedicadas y compartidas. "),e._UZ(36,"br"),e._uU(37," -RAMDAC: Este conversor de se\xf1al digital a se\xf1al anal\xf3gica, transforma las se\xf1ales digitales en el ordenador para que puedan ser interpretadas por el monitor. "),e._UZ(38,"br"),e._uU(39," -Dispositivos refrigerantes: Su funci\xf3n es eliminar el calor excesivo de la tarjeta gr\xe1fica. Se utilizan dos tipos en las tarjetas: disipadores o ventiladores. "),e._UZ(40,"br"),e._uU(41," -Salidas: Hay diferentes tipos de salidas que se pueden usar como las VGA, DVI, HDMI, DisplayPort o USB-C. "),e._UZ(42,"br"),e._uU(43," Garant\xeda del vendedor: 3 meses "),e.qZA()()(),e.TgZ(44,"div",26)(45,"div",27)(46,"p",28),e._uU(47,"Estado:"),e.qZA()(),e.TgZ(48,"div",27)(49,"p",29),e._uU(50,"Nuevo"),e.qZA()(),e.TgZ(51,"div",27)(52,"p",28),e._uU(53,"Categor\xeda:"),e.qZA()(),e.TgZ(54,"div",27)(55,"p",29),e._uU(56,"Computador"),e.qZA()()(),e.TgZ(57,"div",30)(58,"div",31)(59,"div",32)(60,"div",33)(61,"h5",34),e._uU(62,"Confirmaci\xf3n"),e.qZA(),e._UZ(63,"button",35),e.qZA(),e.TgZ(64,"div",36),e._UZ(65,"img",37),e.TgZ(66,"p",38),e._uU(67,"\xbfEst\xe1s seguro que"),e.qZA(),e.TgZ(68,"p",39)(69,"strong"),e._uU(70,"deseas realizar esta compra?"),e.qZA()(),e.TgZ(71,"div",40)(72,"button",41),e._uU(73,"Aceptar"),e.qZA(),e.TgZ(74,"button",42),e._uU(75,"Cancelar"),e.qZA()()()()()(),e.TgZ(76,"div",43)(77,"div",44)(78,"div",32)(79,"div",33)(80,"button",35)(81,"span",45),e._uU(82,"\xd7"),e.qZA()()(),e.TgZ(83,"div",46)(84,"div",47),e._UZ(85,"img",48),e.qZA(),e.TgZ(86,"p",49)(87,"strong"),e._uU(88,"\xa1Felicitaciones!"),e.qZA()(),e.TgZ(89,"p",47),e._uU(90,"Ahora, ponte en contacto con el vendedor para finalizar la compra."),e.qZA(),e.TgZ(91,"div",50)(92,"div",51)(93,"div",3)(94,"div",52),e._UZ(95,"img",53),e.TgZ(96,"p",54),e._uU(97," Nombre del cliente"),e.qZA(),e.TgZ(98,"p",47),e._uU(99,"Nombre del vendedor"),e.qZA()(),e.TgZ(100,"div",52)(101,"p",55)(102,"strong"),e._uU(103,"Tel\xe9fono:"),e.qZA()(),e.TgZ(104,"p",56),e._uU(105,"123-456-789"),e.qZA(),e._UZ(106,"hr"),e.TgZ(107,"p",55)(108,"strong"),e._uU(109,"Correo electr\xf3nico:"),e.qZA()(),e.TgZ(110,"p",56),e._uU(111,"correo.com"),e.qZA(),e._UZ(112,"hr"),e.TgZ(113,"p",55)(114,"strong"),e._uU(115,"Ciudad:"),e.qZA()(),e.TgZ(116,"p",56),e._uU(117,"Ambato"),e.qZA(),e._UZ(118,"hr"),e.TgZ(119,"p",55)(120,"strong"),e._uU(121,"Provincia:"),e.qZA()(),e.TgZ(122,"p",56),e._uU(123,"Tungurahua"),e.qZA()()()()(),e.TgZ(124,"div",49)(125,"a",57),e._UZ(126,"i",58),e._uU(127," Volver a Anuncios "),e.qZA()()()()()(),e.TgZ(128,"button",59),e._uU(129,"Contactar con el vendedor"),e.qZA()()()()()()()),2&t&&(e.xp6(6),e.Q6J("ngModel",n.searchTerm),e.xp6(10),e.Q6J("ngForOf",n.productImages),e.xp6(3),e.Q6J("src",n.selectedImage.url,e.LSH)("alt",n.selectedImage.alt))},dependencies:[de.sg,B.Fj,B.JJ,B.On],styles:[".div_search_zone[_ngcontent-%COMP%]{margin-top:10vh;display:flex}.search-container[_ngcontent-%COMP%]{position:relative;display:inline-block}.search-input[_ngcontent-%COMP%]{border:1px solid #efefef;border-radius:25px;padding:8px 30px 8px 8px;width:780px;height:50px;font-size:16px;background-color:#efefef}.search-icon-container[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);right:5px;cursor:pointer;background-color:#2e56a1;border-radius:25px}.fa-search[_ngcontent-%COMP%]{font-size:16px;color:#fff;padding:12px}.div_name[_ngcontent-%COMP%]{display:flex;align-items:center;width:10%;font-size:16px;margin-left:40px}.div_logout[_ngcontent-%COMP%]{display:flex;align-items:center;width:20%;font-size:16px}.div_title_header[_ngcontent-%COMP%]{font-size:20px;font-weight:700}.div_options_header[_ngcontent-%COMP%]{margin-right:2px;font-size:16px;padding:15px}.btn_send[_ngcontent-%COMP%]{width:130px;height:40px;font-size:16px}.product-images[_ngcontent-%COMP%]{max-height:300px;overflow-y:auto}.scrollable[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}.scrollable[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#888;border-radius:4px}.scrollable[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:#555}.product-description[_ngcontent-%COMP%]{margin-top:20px}.product-images[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;display:block;margin-bottom:10px}.main-product-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;padding:0 0 25px}.product-details[_ngcontent-%COMP%]{text-align:center}.product-details[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#2e56a1;font-size:14px;text-align:left}.product-details-p[_ngcontent-%COMP%]{color:#efefef;font-size:14px;text-align:left}.product-details[_ngcontent-%COMP%]   h3.product-title[_ngcontent-%COMP%]{color:#000;font-weight:700;font-size:20px;text-align:left}.text-primary-option[_ngcontent-%COMP%]{color:#2e56a1!important}.btn-primary[_ngcontent-%COMP%]{background-color:#2e56a1!important;border:#2e56a1!important;border-radius:.8rem;margin:0 0 25px}.product-details[_ngcontent-%COMP%]   h4.product-subtitle[_ngcontent-%COMP%]{color:#2e56a1;font-size:20px;text-align:left}.product-details[_ngcontent-%COMP%]   p.features-title[_ngcontent-%COMP%]{color:#2e56a1;font-size:16px;font-weight:700;margin-top:20px}.product-details[_ngcontent-%COMP%]   p.product-features[_ngcontent-%COMP%]{color:#888;font-size:14px;text-align:justify}.product-details[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:20px}.product-details[_ngcontent-%COMP%]   .info-item[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#888;font-size:14px}.product-details[_ngcontent-%COMP%]   .contact-seller-btn[_ngcontent-%COMP%]{margin-top:20px}.small-image[_ngcontent-%COMP%]{max-width:80%;height:auto;width:50px;margin-bottom:10px;border-radius:.8rem}.custom-btn-size[_ngcontent-%COMP%]{padding:15px 30px;font-size:1.5rem;font-weight:700}.custom-btn-size-modal[_ngcontent-%COMP%]{padding:5px 15px;height:35px;width:30%;font-size:1.5rem;font-weight:700}.confirmation-title[_ngcontent-%COMP%]{color:#2e56a1;margin:0 200px}.confirmation[_ngcontent-%COMP%]{color:#2e56a1}.img-client[_ngcontent-%COMP%]{width:30%;height:auto;border-radius:1rem}.name-client[_ngcontent-%COMP%]{color:#555!important;font-weight:700;margin:0}.info-client[_ngcontent-%COMP%]{width:50%;height:auto;border-radius:50%}.date-client-title[_ngcontent-%COMP%]{margin:0rem 5rem 0 0;color:#2e56a1!important}.date-client[_ngcontent-%COMP%]{margin:0rem 1rem 0 0;color:#888!important}.card-info[_ngcontent-%COMP%]{max-width:600px;margin:0 auto;border-radius:.8rem}@media (min-width: 320px) and (max-width: 850px){.resolution-movil[_ngcontent-%COMP%]{text-align:center;padding:15px 0}.small-image[_ngcontent-%COMP%]{justify-content:center;max-width:100%;height:auto;width:50px;margin-bottom:10px;border-radius:.8rem}.confirmation-title[_ngcontent-%COMP%]{color:#2e56a1;margin:0 160px}}@media screen and (min-width: 4000px) and (max-width: 5000px){.div_mac[_ngcontent-%COMP%]{max-width:1920px;margin:0 auto;transform-origin:top}}"]}),r})(),ut=(()=>
1{class r{constructor(t){this.cookieService=t}ngOnInit(){this.obtenerUsuarioDesdeCookies()}obtenerUsuarioDesdeCookies(){const t=this.cookieService.get("usuario");this.usuario=JSON.parse(t)}}return r.\u0275fac=function(t){return new(t||r)(e.Y36(k))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-sale-product"]],decls:145,vars:2,consts:[[1,"div_mac"],[1,"div_blue_zone"],[1,"container"],[1,"row"],[1,"div_search_zone"],[1,"row","justify-content-center"],[1,"col-12","col-md-3","mx-1"],[1,"card","shadow","border-light","card-info"],[1,"card-body","d-flex","flex-column","align-items-center"],[1,"text-center","mt-5"],["alt","Imagen de perfil",1,"rounded-circle","img-client",3,"src"],[1,"features-title","mt-3"],[1,"col-12","col-md-5","justify-content-center"],[1,"features-title"],[1,"card","shadow","border-light","card-info-form"],[1,"card-body"],[1,"form-group","mt-5"],["type","text","id","inputNombre","placeholder","Tus datos personales",1,"form-control","border-light"],[1,"form-group"],["type","text","id","inputApellido","placeholder","Tus datos personales",1,"form-control","border-light"],[1,"text-right"],[1,"btn","btn-primary","custom-btn-size","contact-seller-btn"],[1,"col-12","col-md-12"],[1,"div_background_header"],["id","myTab","role","tablist",1,"nav","nav-tabs","nav_header_tab"],[1,"nav-item"],["id","home-tab","data-toggle","tab","href","#generales","role","tab","aria-controls","home","aria-selected","true",1,"nav-link","active"],["id","profile-tab","data-toggle","tab","href","#dependencia","role","tab","aria-controls","profile","aria-selected","false",1,"nav-link"],[1,"container","text-center"],[1,"col-md-12"],[1,"container-card"],["id","myTabContent",1,"tab-content"],["id","generales","role","tabpanel","aria-labelledby","home-tab",1,"tab-pane","fade","show","active"],[1,"div_background_item_requirement"],[1,"card","card_requirement_img","required_background_img1"],[1,"card","card_requirement_description"],[1,"card-body","card_text_requirement","scroll-y"],[1,"card","card-product"],[1,"col-3"],["src","../../../../assets/img/ejemplo-prod/1.png","alt","Imagen",1,"small-image"],[1,"col-8"],[1,"product-details","mt-2"],[1,"product-subtitle"],[1,"product-title"],[1,"row","mt-3"],["id","dependencia","role","tabpanel","aria-labelledby","profile-tab",1,"tab-pane","fade"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e._UZ(4,"div",4),e.qZA(),e.TgZ(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9),e._UZ(10,"img",10),e.TgZ(11,"p",11),e._uU(12),e.qZA()()()()(),e.TgZ(13,"div",12)(14,"p",13),e._uU(15,"Tu perfil en"),e.qZA(),e.TgZ(16,"p",13)(17,"strong"),e._uU(18,"Anuncios OSCUS"),e.qZA()(),e.TgZ(19,"div",14)(20,"div",15)(21,"form")(22,"div",16),e._UZ(23,"input",17),e.qZA(),e.TgZ(24,"div",18),e._UZ(25,"input",19),e.qZA(),e.TgZ(26,"div",20)(27,"button",21),e._uU(28,"Cerrar sesi\xf3n"),e.qZA()()()()()(),e.TgZ(29,"div",3)(30,"div",22)(31,"div",2)(32,"div",23)(33,"ul",24)(34,"li",25)(35,"a",26),e._uU(36,"Tus compras"),e.qZA()(),e.TgZ(37,"li",25)(38,"a",27),e._uU(39,"Tus ventas"),e.qZA()()()(),e.TgZ(40,"div",28)(41,"div",5)(42,"div",29)(43,"div",30)(44,"div",31)(45,"div",32)(46,"div",33),e._UZ(47,"div",34),e.TgZ(48,"div",35)(49,"div",36)(50,"div",3)(51,"div",22)(52,"div",37)(53,"div",15)(54,"div",3)(55,"div",38),e._UZ(56,"img",39),e.qZA(),e.TgZ(57,"div",40)(58,"div",41)(59,"h4",42),e._uU(60,"$760"),e.qZA(),e.TgZ(61,"h3",43),e._uU(62,'Apple MacBook 2020 13" 256 gb chip M1'),e.qZA(),e.TgZ(63,"h4",42),e._uU(64,"Ambato-Tungurahua"),e.qZA()()()()()()()(),e.TgZ(65,"div",44)(66,"div",22)(67,"div",37)(68,"div",15)(69,"div",3)(70,"div",38),e._UZ(71,"img",39),e.qZA(),e.TgZ(72,"div",40)(73,"div",41)(74,"h4",42),e._uU(75,"$760"),e.qZA(),e.TgZ(76,"h3",43),e._uU(77,'Apple MacBook 2020 13" 256 gb chip M1'),e.qZA(),e.TgZ(78,"h4",42),e._uU(79,"Ambato-Tungurahua"),e.qZA()()()()()()()(),e.TgZ(80,"div",44)(81,"div",22)(82,"div",37)(83,"div",15)(84,"div",3)(85,"div",38),e._UZ(86,"img",39),e.qZA(),e.TgZ(87,"div",40)(88,"div",41)(89,"h4",42),e._uU(90,"$760"),e.qZA(),e.TgZ(91,"h3",43),e._uU(92,'Apple MacBook 2020 13" 256 gb chip M1'),e.qZA(),e.TgZ(93,"h4",42),e._uU(94,"Ambato-Tungurahua"),e.qZA()()()()()()()()()()()(),e.TgZ(95,"div",45)(96,"div",33),e._UZ(97,"div",34),e.TgZ(98,"div",35)(99,"div",36)(100,"div",3)(101,"div",22)(102,"div",37)(103,"div",15)(104,"div",3)(105,"div",38),e._UZ(106,"img",39),e.qZA(),e.TgZ(107,"div",40)(108,"div",41)(109,"h4",42),e._uU(110,"$760"),e.qZA(),e.TgZ(111,"h3",43),e._uU(112,'Apple MacBo
1ok 2020 13" 256 gb chip M1'),e.qZA(),e.TgZ(113,"h4",42),e._uU(114,"Ambato-Tungurahua"),e.qZA()()()()()()()(),e.TgZ(115,"div",44)(116,"div",22)(117,"div",37)(118,"div",15)(119,"div",3)(120,"div",38),e._UZ(121,"img",39),e.qZA(),e.TgZ(122,"div",40)(123,"div",41)(124,"h4",42),e._uU(125,"$760"),e.qZA(),e.TgZ(126,"h3",43),e._uU(127,'Apple MacBook 2020 13" 256 gb chip M1'),e.qZA(),e.TgZ(128,"h4",42),e._uU(129,"Ambato-Tungurahua"),e.qZA()()()()()()()(),e.TgZ(130,"div",44)(131,"div",22)(132,"div",37)(133,"div",15)(134,"div",3)(135,"div",38),e._UZ(136,"img",39),e.qZA(),e.TgZ(137,"div",40)(138,"div",41)(139,"h4",42),e._uU(140,"$760"),e.qZA(),e.TgZ(141,"h3",43),e._uU(142,'Apple MacBook 2020 13" 256 gb chip M1'),e.qZA(),e.TgZ(143,"h4",42),e._uU(144,"Ambato-Tungurahua"),e.qZA()()()()()()()()()()()()()()()()()()()()()()()()),2&t&&(e.xp6(10),e.Q6J("src",n.usuario.img,e.LSH),e.xp6(2),e.hij("",n.usuario.name," "))},dependencies:[B._Y,B.JL,B.F],styles:[".div_blue_zone[_ngcontent-%COMP%]{background-color:#ccc}.div_search_zone[_ngcontent-%COMP%]{margin-top:10vh;display:flex}.search-container[_ngcontent-%COMP%]{position:relative;display:inline-block}.search-input[_ngcontent-%COMP%]{border:1px solid #efefef;border-radius:25px;padding:8px 30px 8px 8px;width:780px;height:50px;font-size:16px;background-color:#efefef}.search-icon-container[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);right:5px;cursor:pointer;background-color:#2e56a1;border-radius:25px}.fa-search[_ngcontent-%COMP%]{font-size:16px;color:#fff;padding:12px}.div_name[_ngcontent-%COMP%]{display:flex;align-items:center;width:10%;font-size:16px;margin-left:40px}.div_logout[_ngcontent-%COMP%]{display:flex;align-items:center;width:20%;font-size:16px}.div_title_header[_ngcontent-%COMP%]{font-size:20px;font-weight:700}.div_options_header[_ngcontent-%COMP%]{margin-right:2px;font-size:16px;padding:15px}.btn_send[_ngcontent-%COMP%]{width:130px;height:40px;font-size:16px}.product-images[_ngcontent-%COMP%]{max-height:300px;overflow-y:auto}.scrollable[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}.scrollable[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#888;border-radius:4px}.scrollable[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:#555}.product-description[_ngcontent-%COMP%]{margin-top:20px}.product-images[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;display:block;margin-bottom:10px}.main-product-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;padding:0 0 25px}.product-details[_ngcontent-%COMP%]{text-align:center}.product-details[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#2e56a1;font-size:14px;text-align:left}.product-details-p[_ngcontent-%COMP%]{color:#efefef;font-size:14px;text-align:left}.product-details[_ngcontent-%COMP%]   h3.product-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:20px;text-align:left;margin:0rem}.text-primary-option[_ngcontent-%COMP%]{color:#2e56a1!important}.btn-primary[_ngcontent-%COMP%]{background-color:#2e56a1!important;border:#2e56a1!important;border-radius:.8rem;margin:0 0 25px}.product-details[_ngcontent-%COMP%]   h4.product-subtitle[_ngcontent-%COMP%]{color:#2e56a1;font-size:20px;text-align:left}p.features-title[_ngcontent-%COMP%]{color:#2e56a1!important;font-size:20px;margin-top:5px}.product-details[_ngcontent-%COMP%]   p.product-features[_ngcontent-%COMP%]{color:#888;font-size:14px;text-align:justify}.product-details[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:20px}.product-details[_ngcontent-%COMP%]   .info-item[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#888;font-size:14px}.product-details[_ngcontent-%COMP%]   .contact-seller-btn[_ngcontent-%COMP%]{margin-top:20px}.small-image[_ngcontent-%COMP%]{max-width:100%;height:auto;width:100%;margin-bottom:10px;border-radius:.8rem}.custom-btn-size[_ngcontent-%COMP%]{padding:15px 30px;font-size:1.1rem;font-weight:700}.custom-btn-size-modal[_ngcontent-%COMP%]{padding:5px 15px;height:35px;width:30%;font-size:1.5rem;font-weight:700}.confirmation-title[_ngcontent-%COMP%]{color:#2e56a1;margin:0 200px}.confirmation[_ngcontent-%COMP%]{color:#2e56a1}.img-client[_ngcontent-%COMP%]{width:150px;height:150px}.name-client[_ngcontent-%COMP%]{color:#555!important;font-weight:700;margin:0}.info-client[_ngcontent-%COMP%]{width:50%;height:auto;border-radius:50%}.date-client-title[_ngcontent-%COMP%]{margin:0rem 5rem 0 0;color:#2e56a1!important}.date-client[_ngcontent-%COMP%]{margin:0rem 1rem 0 0;color:#888!important}.card-info[_ngcontent-%COMP%]{max-width:100%;margin:0 auto;height:300px;border-radius:.8rem}.card-info-form[_ngcontent-%COMP%]{max-width:70%;height:210px;margin:0 0 20px;border-radius:.8rem}.card_requirement_description[_ngcontent-%COMP%]{border-radius:1rem}.container-card[_ngcontent-%COMP%]{width:68%;margin-right:200px;margin-left:200px}.card-product[_ngcontent-%COMP%]{background-color:#ccc}
1.card-text-informacion[_ngcontent-%COMP%]{color:#2e56a1;font-size:12px;font-weight:700;margin-left:1rem}.scroll-y[_ngcontent-%COMP%]{max-height:400px;overflow-y:auto}@media (min-width: 320px) and (max-width: 850px){.resolution-movil[_ngcontent-%COMP%]{text-align:center;padding:15px 0}.small-image[_ngcontent-%COMP%]{justify-content:center;max-width:100%;height:auto;width:100%;margin-bottom:10px;border-radius:.8rem}.confirmation-title[_ngcontent-%COMP%]{color:#2e56a1;margin:0 160px}p.features-title[_ngcontent-%COMP%]{color:#2e56a1;font-size:20px;margin-top:5px;text-align:center}.nav_header_tab[_ngcontent-%COMP%]{justify-content:center;margin-left:0!important;margin-right:0!important}.nav-item[_ngcontent-%COMP%]{width:100%!important;text-align:center}.card-info-form[_ngcontent-%COMP%]{max-width:100%;height:210px;margin:0 0 20px;border-radius:.8rem}.container-card[_ngcontent-%COMP%]{width:100%;margin-right:0;margin-left:0}.product-details[_ngcontent-%COMP%]   h3.product-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:10px;text-align:left;margin:0rem}.product-details[_ngcontent-%COMP%]   h4.product-subtitle[_ngcontent-%COMP%]{color:#2e56a1;font-size:10px;text-align:left}}.div_title_requirements[_ngcontent-%COMP%]{text-align:center;font-size:17pt;font-weight:700;padding:0vh 0vh 1.5vh;color:#2e56a1}.div_background_header[_ngcontent-%COMP%]{background-color:#ccc;padding:.3% 0% 0%}.nav_header_tab[_ngcontent-%COMP%]{justify-content:left;margin-left:200px;margin-right:335px}.nav-item[_ngcontent-%COMP%]{width:20%;text-align:center}.nav-link[_ngcontent-%COMP%]{color:#fff;background-color:#888;height:5vh;font-size:17px;border-radius:1rem}.nav-link.active[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700}@media screen and (min-width: 4000px) and (max-width: 5000px){.div_mac[_ngcontent-%COMP%]{max-width:1920px;margin:0 auto;transform-origin:top}}"]}),r})();var z=ie(5861),Ge=typeof self<"u"?self:global;const ze=typeof navigator<"u",Pi=ze&&typeof HTMLImageElement>"u",He=!(typeof global>"u"||typeof process>"u"||!process.versions||!process.versions.node),Ye=Ge.Buffer,Ve=Ge.BigInt,Xe=!!Ye,yi=r=>r;function Ke(r,i=yi){if(He)try{return"function"==typeof require?Promise.resolve(i(require(r))):import(r).then(i)}catch{console.warn(`Couldn't load ${r}`)}}let dt=Ge.fetch;if(!Ge.fetch){const r=Ke("http",n=>n),i=Ke("https",n=>n),t=(n,{headers:o}={})=>new Promise(function(){var a=(0,z.Z)(function*(s,c){let{port:d,hostname:h,pathname:M,protocol:F,search:Q}=new URL(n);const J={method:"GET",hostname:h,path:encodeURI(M)+Q,headers:o};""!==d&&(J.port=Number(d));const te=("https:"===F?yield i:yield r).request(J,Ae=>{if(301===Ae.statusCode||302===Ae.statusCode){let _e=new URL(Ae.headers.location,n).toString();return t(_e,{headers:o}).then(s).catch(c)}s({status:Ae.statusCode,arrayBuffer:()=>new Promise(_e=>{let je=[];Ae.on("data",Qt=>je.push(Qt)),Ae.on("end",()=>_e(Buffer.concat(je)))})})});te.on("error",c),te.end()});return function(s,c){return a.apply(this,arguments)}}());(r=>{dt=r})(t)}function N(r,i,t){return i in r?Object.defineProperty(r,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[i]=t,r}const We=r=>Nt(r)?void 0:r,Mi=r=>void 0!==r;function Nt(r){return void 0===r||(r instanceof Map?0===r.size:0===Object.values(r).filter(Mi).length)}function ne(r){let i=new Error(r);throw delete i.stack,i}function Se(r){return""===(r=function(i){for(;i.endsWith("\0");)i=i.slice(0,-1);return i}(r).trim())?void 0:r}function gt(r){let i=function(t){let n=0;return t.ifd0.enabled&&(n+=1024),t.exif.enabled&&(n+=2048),t.makerNote&&(n+=2048),t.userComment&&(n+=1024),t.gps.enabled&&(n+=512),t.interop.enabled&&(n+=100),t.ifd1.enabled&&(n+=1024),n+2048}(r);return r.jfif.enabled&&(i+=50),r.xmp.enabled&&(i+=2e4),r.iptc.enabled&&(i+=14e3),r.icc.enabled&&(i+=6e3),i}const pt=r=>String.fromCharCode.apply(null,r),jt=typeof TextDecoder<"u"?new TextDecoder("utf-8"):void 0;function Gt(r){return jt?jt.decode(r):Xe?Buffer.from(r).toString("utf8"):decodeURIComponent(escape(pt(r)))}class ue{static from(i,t){return i instanceof this&&i.le===t?i:new ue(i,void 0,void 0,t)}constructor(i,t=0,n,o){if("boolean"==typeof o&&(this.le=o),Array.isArray(i)&&(i=new Uint8Array(i)),0===i)this.byteOffset=0,this.byteLength=0;else if(i instanceof ArrayBuffer){void 0===n&&(n=i.byteLength-t);let a=new DataView(i,t,n);this._swapDataView(a)}else if(i instanceof Uint8Array||i instanceof DataView||i instanceof ue){void 0===n&&(n=i.byteLength-t),(t+=i.byteOffset)+n>i.byteOffset+i.byteLength&&ne("Creating view outside of available memory in ArrayBuffer");let a=new DataView(i.buffer,t,n);this._swapDataView(a)}else if("number"==typeof i){let a=new DataView(new ArrayBuffer(i));this._swapDataView(a)}else ne("Invalid input argument for BufferView: "+i)}_swapArrayBuffer(i){this._swapDataView(new DataView(i))}_swapBuffer(i){this._swapDataView(new DataView(i.buffer,i.byteOffset,i.byteLength))}_swapDataView(i){this.dataView=i,this.buffer=i.buffer,this.byteOffset=i.byteOffset,this.byteLength=i.byteLength}_lengthToEnd(i){return this.byteLength-i}set(i,t,n=ue){return i instanceof DataView||i instanceof ue?i=new Uint8Array(i.buffer,i.byteOffset,i.byteLength):i instanceof ArrayBuffer&&(i=new Uint8Array(i)),i instanceof Uint8Array||ne("BufferView.set(): Invalid data argument."),this.toUint8().set(i,t),new n(this,t,i.byteLength)}subarray(i,t){return t=t||this._lengthToEnd(i),new ue(this,i,t)}toUint8(){return new Uint8Array(this.buffer,this.byteOffset,this.byteLength)}getUint8Array(i,t){return new Uint8Array(this.buffer,this.byteOffset+i,t)}getString(i=0,t=this.byteLength){return Gt(this.getUint8Array(i,t))}getLatin1String(i=0,t=this.byteLength){let n=this.getUint8Array(i,t);return pt(n)}getUnicodeString(i=0,t=this.byteLength){const n=[];for(let o=0;o<t&&i+o<this.byteLength;o+=2)n.push(this.getUint16(i+o));return pt(n)}getInt8(i){return this.dataView.getInt8(i)}getUint8(i){return this.dataView.getUint8(i)}getInt16(i,t=this.le){return this.dataView.getInt16(i,t)}getInt32(i,t=this.le){return this.dataView.getInt32(i,t)}getUint16(i,t=this.le){return this.dataView.getUint16(i,t)}getUint32(i,t=this.le){return this.dataView.getUint32(i,t)}getFloat32(i,t=this.le){return this.dataView.getFloat32(i,t)}getFloat64(i,t=this.le){return this.dataView.getFloat64(i,t)}getFloat(i,t=this.le){return this.dataView.getFloat32(i,t)}getDouble(i,t=this.le){return this.dataView.getFloat64(i,t)}getUintBytes(i,t,n){switch(t){case 1:return this.getUint8(i,n);case 2:return this.getUint16(i,n);case 4:return this.getUint32(i,n);case 8:return this.getUint64&&this.getUint64(i,n)}}getUint(i,t,n){switch(t){case 8:return this.getUint8(i,n);case 16:return this.getUint16(i,n);case 32:return this.getUint32(i,n);case 64:return this.getUint64&&this.getUint64(i,n)}}toString(i){return this.dataView.toString(i,this.constructor.name)}ensureChunk(){}}function ht(r,i){ne(`${r} '${i}' was not loaded, try using full build of exifr.`)}class ft extends Map{constructor(i){super(),this.kind=i}get(i,t){return this.has(i)||ht(this.kind,i),t&&(i in t||ne(`Unknown ${this.kind} '${i}'.`),t[i].enabled||ht(this.kind,i)),super.get(i)}keyList(){return Array.from(this.keys())}}
1var fe=new ft("file parser"),re=new ft("segment parser"),me=new ft("file reader");function Yt(r,i){return(t=r).startsWith("data:")||t.length>1e4?_t(r,i,"base64"):He&&r.includes("://")?mt(r,i,"url",Oe):He?_t(r,i,"fs"):ze?mt(r,i,"url",Oe):void ne("Invalid input argument");var t}function mt(r,i,t,n){return At.apply(this,arguments)}function At(){return At=(0,z.Z)(function*(r,i,t,n){return me.has(t)?_t(r,i,t):n?(o=(0,z.Z)(function*(a,s){let c=yield s(a);return new ue(c)}),function(a,s){return o.apply(this,arguments)})(r,n):void ne(`Parser ${t} is not loaded`);var o}),At.apply(this,arguments)}function _t(r,i,t){return vt.apply(this,arguments)}function vt(){return(vt=(0,z.Z)(function*(r,i,t){let n=new(me.get(t))(r,i);return yield n.read(),n})).apply(this,arguments)}const Oe=r=>dt(r).then(i=>i.arrayBuffer()),Te=r=>new Promise((i,t)=>{let n=new FileReader;n.onloadend=()=>i(n.result||new ArrayBuffer),n.onerror=t,n.readAsArrayBuffer(r)});class Si extends Map{get tagKeys(){return this.allKeys||(this.allKeys=Array.from(this.keys())),this.allKeys}get tagValues(){return this.allValues||(this.allValues=Array.from(this.values())),this.allValues}}function se(r,i,t){let n=new Si;for(let[o,a]of t)n.set(o,a);if(Array.isArray(i))for(let o of i)r.set(o,n);else r.set(i,n);return n}function Ee(r,i,t){let n,o=r.get(i);for(n of t)o.set(n[0],n[1])}const ce=new Map,pe=new Map,Ce=new Map,Ie=["chunked","firstChunkSize","firstChunkSizeNode","firstChunkSizeBrowser","chunkSize","chunkLimit"],Fe=["jfif","xmp","icc","iptc","ihdr"],Ze=["tiff",...Fe],oe=["ifd0","ifd1","exif","gps","interop"],xe=[...Ze,...oe],Pe=["makerNote","userComment"],De=["translateKeys","translateValues","reviveValues","multiSegment"],ye=[...De,"sanitize","mergeOutput","silentErrors"];class Vt{get translate(){return this.translateKeys||this.translateValues||this.reviveValues}}class Qe extends Vt{get needed(){return this.enabled||this.deps.size>0}constructor(i,t,n,o){if(super(),N(this,"enabled",!1),N(this,"skip",new Set),N(this,"pick",
1new Set),N(this,"deps",new Set),N(this,"translateKeys",!1),N(this,"translateValues",!1),N(this,"reviveValues",!1),this.key=i,this.enabled=t,this.parse=this.enabled,this.applyInheritables(o),this.canBeFiltered=oe.includes(i),this.canBeFiltered&&(this.dict=ce.get(i)),void 0!==n)if(Array.isArray(n))this.parse=this.enabled=!0,this.canBeFiltered&&n.length>0&&this.translateTagSet(n,this.pick);else if("object"==typeof n){if(this.enabled=!0,this.parse=!1!==n.parse,this.canBeFiltered){let{pick:a,skip:s}=n;a&&a.length>0&&this.translateTagSet(a,this.pick),s&&s.length>0&&this.translateTagSet(s,this.skip)}this.applyInheritables(n)}else!0===n||!1===n?this.parse=this.enabled=n:ne(`Invalid options argument: ${n}`)}applyInheritables(i){let t,n;for(t of De)n=i[t],void 0!==n&&(this[t]=n)}translateTagSet(i,t){if(this.dict){let n,o,{tagKeys:a,tagValues:s}=this.dict;for(n of i)"string"==typeof n?(o=s.indexOf(n),-1===o&&(o=a.indexOf(Number(n))),-1!==o&&t.add(Number(a[o]))):t.add(n)}else for(let n of i)t.add(n)}finalizeFilters(){!this.enabled&&this.deps.size>0?(this.enabled=!0,Je(this.pick,this.deps)):this.enabled&&this.pick.size>0&&Je(this.pick,this.deps)}}var le={jfif:!1,tiff:!0,xmp:!1,icc:!1,iptc:!1,ifd0:!0,ifd1:!1,exif:!0,gps:!0,interop:!1,ihdr:void 0,makerNote:!1,userComment:!1,multiSegment:!1,skip:[],pick:[],translateKeys:!0,translateValues:!0,reviveValues:!0,sanitize:!0,mergeOutput:!0,silentErrors:!0,chunked:!0,firstChunkSize:void 0,firstChunkSizeNode:512,firstChunkSizeBrowser:65536,chunkSize:65536,chunkLimit:5},Xt=new Map;class we extends Vt{static useCached(i){let t=Xt.get(i);return void 0!==t||(t=new this(i),Xt.set(i,t)),t}constructor(i){super(),!0===i?this.setupFromTrue():void 0===i?this.setupFromUndefined():Array.isArray(i)?this.setupFromArray(i):"object"==typeof i?this.setupFromObject(i):ne(`Invalid options argument ${i}`),void 0===this.firstChunkSize&&(this.firstChunkSize=ze?this.firstChunkSizeBrowser:this.firstChunkSizeNode),this.mergeOutput&&(this.ifd1.enabled=!1),this.filterNestedSegmentTags(),this.traverseTiffDependencyTree(),this.checkLoadedPlugins()}setupFromUndefined(){let i;for(i of Ie)this[i]=le[i];for(i of ye)this[i]=le[i];for(i of Pe)this[i]=le[i];for(i of xe)this[i]=new Qe(i,le[i],void 0,this)}setupFromTrue(){let i;for(i of Ie)this[i]=le[i];for(i of ye)this[i]=le[i];for(i of Pe)this[i]=!0;for(i of xe)this[i]=new Qe(i,!0,void 0,this)}setupFromArray(i){let t;for(t of Ie)this[t]=le[t];for(t of ye)this[t]=le[t];for(t of Pe)this[t]=le[t];for(t of xe)this[t]=new Qe(t,!1,void 0,this);this.setupGlobalFilters(i,void 0,oe)}setupFromObject(i){let t;for(t of(oe.ifd0=oe.ifd0||oe.image,oe.ifd1=oe.ifd1||oe.thumbnail,Object.assign(this,i),Ie))this[t]=bt(i[t],le[t]);for(t of ye)this[t]=bt(i[t],le[t]);for(t of Pe)this[t]=bt(i[t],le[t]);for(t of Ze)this[t]=new Qe(t,le[t],i[t],this);for(t of oe)this[t]=new Qe(t,le[t],i[t],this.tiff);this.setupGlobalFilters(i.pick,i.skip,oe,xe),!0===i.tiff?this.batchEnableWithBool(oe,!0):!1===i.tiff?this.batchEnableWithUserValue(oe,i):Array.isArray(i.tiff)?this.setupGlobalFilters(i.tiff,void 0,oe):"object"==typeof i.tiff&&this.setupGlobalFilters(i.tiff.pick,i.tiff.skip,oe)}batchEnableWithBool(i,t){for(let n of i)this[n].enabled=t}batchEnableWithUserValue(i,t){for(let n of i){let o=t[n];this[n].enabled=!1!==o&&void 0!==o}}setupGlobalFilters(i,t,n,o=n){if(i&&i.length){for(let s of o)this[s].enabled=!1;let a=Kt(i,n);for(let[s,c]of a)Je(this[s].pick,c),this[s].enabled=!0}else if(t&&t.length){let a=Kt(t,n);for(let[s,c]of a)Je(this[s].skip,c)}}filterNestedSegmentTags(){let{ifd0:i,exif:t,xmp:n,iptc:o,icc:a}=this;this.makerNote?t.deps.add(37500):t.skip.add(37500),this.userComment?t.deps.add(37510):t.skip.add(37510),n.enabled||i.skip.add(700),o.enabled||i.skip.add(33723),a.enabled||i.skip.add(34675)}traverseTiffDependencyTree(){let{ifd0:i,exif:t,gps:n,interop:o}=this;o.needed&&(t.deps.add(40965),i.deps.add(40965)),t.needed&&i.deps.add(34665),n.needed&&i.deps.add(34853),this.tiff.enabled=oe.some(a=>!0===this[a].enabled)||this.makerNote||this.userComment;for(let a of oe)this[a].finalizeFilters()}get onlyTiff(){return!Fe.map(i=>this[i].enabled).some(i=>!0===i)&&this.tiff.enabled}checkLoadedPlugins(){for(let i of Ze)this[i].enabled&&!re.has(i)&&ht("segment parser",i)}}function Kt(r,i){let t,n,o,a,s=[];for(o of i){for(a of(t=ce.get(o),n=[],t))(r.includes(a[0])||r.includes(a[1]))&&n.push(a[0]);n.length&&s.push([o,n])}return s}function bt(r,i){return void 0!==r?r:void 0!==i?i:void 0}function Je(r,i){for(let t of i)r.add(t)}N(we,"default",le);class Me{constructor(i){N(this,"parsers",{}),N(this,"output",{}),N(this,"errors",[]),N(this,"pushToErrors",t=>this.errors.push(t)),this.options=we.useCached(i)}read(i){var t=this;return(0,z.Z)(function*(){t.file=yield function Ht(r,i){return"string"==typeof r?Yt(r,i):ze&&!Pi&&r instanceof HTMLImageElement?Yt(r.src,i):r instanceof Uint8Array||r instanceof ArrayBuffer||r instanceof DataView?new ue(r):ze&&r instanceof Blob?mt(r,i,"blob",Te):void ne("Invalid input argument")}(i,t.options)})()}setup(){if(this.fileParser)return;let{file:i}=this,t=i.getUint16(0);for(let[n,o]of fe)if(o.canHandle(i,t))return this.fileParser=new o(this.options,this.file,this.parsers),i[n]=!0;this.file.close&&this.file.close(),ne("Unknown file format")}parse(){var i=this;return(0,z.Z)(function*(){let{output:t,errors:n}=i;return i.setup(),i.options.silentErrors?(yield i.executeParsers().catch(i.pushToErrors),n.push(...i.fileParser.errors)):yield i.executeParsers(),i.file.close&&i.file.close(),i.options.silentErrors&&n.length>0&&(t.errors=n),We(t)})()}executeParsers(){var i=this;return(0,z.Z)(function*(){let{output:t}=i;yield i.fileParser.parse();let n=Object.values(i.parsers).map(function(){var o=(0,z.Z)(function*(a){let s=yield a.parse();a.assignToOutput(t,s)});return function(a){return o.apply(this,arguments)}}());i.options.silentErrors&&(n=n.map(o=>o.catch(i.pushToErrors))),yield Promise.all(n)})()}extractThumbnail(){var i=this;return(0,z.Z)(function*(){i.setup();let{options:t,file:n}=i,o=re.get("tiff",t);var a;if(n.tiff?a={start:0,type:"tiff"}:n.jpeg&&(a=yield i.fileParser.getOrFindSegment("tiff")),void 0===a)return;let s=yield i.fileParser.ensureSegmentChunk(a),c=i.parsers.tiff=new o(s,t,n),d=yield c.extractThumbnail();return n.close&&n.close(),d})()}}function $e(r,i){return Ct.apply(this,arguments)}function Ct(){return(Ct=(0,z.Z)(function*(r,i){let t=new Me(i);return yield t.read(r),t.parse()})).apply(this,arguments)}var Oi=Object.freeze({__proto__:null,parse:$e,Exifr:Me,fileParsers:fe,segmentParsers:re,fileReaders:me,tagKeys:ce,tagValues:pe,tagRevivers:Ce,createDictionary:se,extendDictionary:Ee,fetchUrlAsArrayBuffer:Oe,readBlobAsArrayBuffer:Te,chunkedProps:Ie,otherSegments:Fe,segments:Ze,tiffBlocks:oe,segmentsAndBlocks:xe,tiffExtractables:Pe,inheritables:De,allFormatters:ye,Options:we});class et{constructor(i,t,n){var o=this;N(this,"errors",[]),N(this,"ensureSegmentChunk",function(){var a=(0,z.Z)(function*(s){let c=s.start,d=s.size||65536;if(o.file.chunked)if(o.file.available(c,d))s.chunk=o.file.subarray(c,d);else try{s.chunk=yield o.file.readChunk(c,d)}catch(h){ne(`Couldn't read segment: ${JSON.stringify(s)}. ${h.message}`)}else o.file.byteLength>c+d?s.chunk=o.file.subarray(c,d):void 0===s.size?s.chunk=o.file.subarray(c):ne("Segment unreachable: "+JSON.stringify(s));return s.chunk});return function(s){return a.apply(this,arguments)}}()),this.extendOptions&&this.extendOptions(i),this.options=i,this.file=t,this.parsers=n}injectSegment(i,t){this.options[i].enabled&&this.createParser(i,t)}createParser(i,t){let n=new(re.get(i))(t,this.options,this.file);return this.parsers[i]=n}createParsers(i){for(let t of i){let{type:n,chunk:o}=t,a=this.options[n];if(a&&a.enabled){let s=this.parsers[n];s&&s.append||s||this.createParser(n,o)}}}readSegments(i){var t=this;return(0,z.Z)(function*(){let n=i.map(t.ensureSegmentChunk);yield Promise.all(n)})()}}class he{static findPosition(i,t){let n=i.getUint16(t+2)+2,o="function"==typeof this.headerLength?this.headerLength(i,t,n):this.headerLength,a=t+o,s=n-o;return{offset:t,length:n,headerLength:o,start:a,size:s,end:a+s}}static parse(i,t={}){return new this(i,new we({[this.type]:t}),i).parse()}normalizeInput(i){return i instanceof ue?i:new ue(i)}constructor(i,t={},n){N(this,"errors",[]),N(this,"raw",new Map),N(this,"handleError",o=>{if(!this.options.silentErrors)throw o;this.errors.push(o.message)}),this.chunk=this.normalizeInput(i),this.file=n,this.type=this.constructor.type,this.globalOptions=this.options=t,this.localOptions=t[this.type],this.canTranslate=this.localOptions&&this.localOptions.translate}translate(){this.canTranslate&&(this.translated=this.translateBlock(this.raw,this.type))}get output(){return this.translated?this.translated:this.raw?Object.fromEntries(this.raw):void 0}translateBlock(i,t){let n=Ce.get(t),o=pe.get(t),a=ce.get(t),s=this.options[t],c=s.reviveValues&&!!n,d=s.translateValues&&!!o,h=s.translateKeys&&!!a,M={};for(let[F,Q]of i)c&&n.has(F)?Q=n.get(F)(Q):d&&o.has(F)&&(Q=this.translateValue(Q,o.get(F))),h&&a.has(F)&&(F=a.get(F)||F),M[F]=Q;return M}translateValue(i,t){return t[i]||t.DEFAULT||i}assignToOutput(i,t){this.assignObjectToOutput(i,this.constructor.type,t)}assignObjectToOutput(i,t,n){if(this.globalOptions.mergeOutput)return Object.assign(i,n);i[t]?Object.assign(i[t],n):i[t]=n}}function Ti(r){return 192===r||194===r||196===r||219===r||221===r||218===r||254===r}function Zi(r,i,t){for(let[n,o]of re)if(o.canHandle(r,i,t))return n}N(he,"headerLength",4),N(he,"type",void 0),N(he,"multiSegment",!1),N(he,"canHandle",()=>!1);class Wt extends et{constructor(...i){super(...i),N(this,"appSegments",[]),N(this,"jpegSegments",[]),N(this,"unknownSegments",[])}static canHandle(i,t){return 65496===t}parse(){var i=this;return(0,z.Z)(function*(){yield i.findAppSegments(),yield i.readSegments(i.appSegments),i.mergeMultiSegments(),i.createParsers(i.mergedAppSegments||i.appSegments)})()}setupSegmentFinderArgs(i){!0===i?(this.findAll=!0,this.wanted=new Set(re.keyList())):(i=void 0===i?re.keyList().filter(t=>this.options[t].enabled):i.filter(t=>this.options[t].enabled&&re.has(t)),this.findAll=!1,this.remaining=new Set(i),this.wanted=new Set(i)),this.unfinishedMultiSegment=!1}findAppSegments(){var i=this;return(0,z.Z)(function*(t=0,n){i.setupSegmentFinderArgs(n);let{file:o,findAll:a,wanted:s,remaining:c}=i;
1if(!a&&i.file.chunked&&(a=Array.from(s).some(d=>re.get(d).multiSegment&&i.options[d].multiSegment),a&&(yield i.file.readWhole())),t=i.findAppSegmentsInRange(t,o.byteLength),!i.options.onlyTiff&&o.chunked){let d=!1;for(;c.size>0&&!d&&(o.canReadNextChunk||i.unfinishedMultiSegment);){let{nextChunkOffset:h}=o,M=i.appSegments.some(F=>!i.file.available(F.offset||F.start,F.length||F.size));if(d=t>h&&!M?!(yield o.readNextChunk(t)):!(yield o.readNextChunk(h)),void 0===(t=i.findAppSegmentsInRange(t,o.byteLength)))return}}}).apply(this,arguments)}findAppSegmentsInRange(i,t){t-=2;let n,o,a,s,c,d,{file:h,findAll:M,wanted:F,remaining:Q,options:J}=this;for(;i<t;i++)if(255===h.getUint8(i))if(n=h.getUint8(i+1),(r=n)>=224&&r<=239){if(o=h.getUint16(i+2),a=Zi(h,i,o),a&&F.has(a)&&(s=re.get(a),c=s.findPosition(h,i),d=J[a],c.type=a,this.appSegments.push(c),!M&&(s.multiSegment&&d.multiSegment?(this.unfinishedMultiSegment=c.chunkNumber<c.chunkCount,this.unfinishedMultiSegment||Q.delete(a)):Q.delete(a),0===Q.size)))break;J.recordUnknownSegments&&(c=
1he.findPosition(h,i),c.marker=n,this.unknownSegments.push(c)),i+=o+1}else if(Ti(n)){if(o=h.getUint16(i+2),218===n&&!1!==J.stopAfterSos)return;J.recordJpegSegments&&this.jpegSegments.push({offset:i,length:o,marker:n}),i+=o+1}var r;return i}mergeMultiSegments(){if(!this.appSegments.some(t=>t.multiSegment))return;let i=function(t,n){let o,a,s,c=new Map;for(let d=0;d<t.length;d++)o=t[d],a=o.type,c.has(a)?s=c.get(a):c.set(a,s=[]),s.push(o);return Array.from(c)}(this.appSegments);this.mergedAppSegments=i.map(([t,n])=>{let o=re.get(t,this.options);return o.handleMultiSegments?{type:t,chunk:o.handleMultiSegments(n)}:n[0]})}getSegment(i){return this.appSegments.find(t=>t.type===i)}getOrFindSegment(i){var t=this;return(0,z.Z)(function*(){let n=t.getSegment(i);return void 0===n&&(yield t.findAppSegments(0,[i]),n=t.getSegment(i)),n})()}}N(Wt,"type","jpeg"),fe.set("jpeg",Wt);const ki=[void 0,1,1,2,4,8,1,1,2,4,8,4,8,4];class Ui extends he{parseHeader(){var i=this.chunk.getUint16();18761===i?this.le=!0:19789===i&&(this.le=!1),this.chunk.le=this.le,this.headerParsed=!0}parseTags(i,t,n=new Map){let{pick:o,skip:a}=this.options[t];o=new Set(o);let s=o.size>0,c=0===a.size,d=this.chunk.getUint16(i);i+=2;for(let h=0;h<d;h++){let M=this.chunk.getUint16(i);if(s){if(o.has(M)&&(n.set(M,this.parseTag(i,M,t)),o.delete(M),0===o.size))break}else!c&&a.has(M)||n.set(M,this.parseTag(i,M,t));i+=12}return n}parseTag(i,t,n){let{chunk:o}=this,a=o.getUint16(i+2),s=o.getUint32(i+4),c=ki[a];if(c*s<=4?i+=8:i=o.getUint32(i+8),(a<1||a>13)&&ne(`Invalid TIFF value type. block: ${n.toUpperCase()}, tag: ${t.toString(16)}, type: ${a}, offset ${i}`),i>o.byteLength&&ne(`Invalid TIFF value offset. block: ${n.toUpperCase()}, tag: ${t.toString(16)}, type: ${a}, offset ${i} is outside of chunk size ${o.byteLength}`),1===a)return o.getUint8Array(i,s);if(2===a)return Se(o.getString(i,s));if(7===a)return o.getUint8Array(i,s);if(1===s)return this.parseTagValue(a,i);{let d=new(function(M){switch(M){case 1:return Uint8Array;case 3:return Uint16Array;case 4:return Uint32Array;case 5:case 10:default:return Array;case 6:return Int8Array;case 8:return Int16Array;case 9:return Int32Array;case 11:return Float32Array;case 12:return Float64Array}}(a))(s),h=c;for(let M=0;M<s;M++)d[M]=this.parseTagValue(a,i),i+=h;return d}}parseTagValue(i,t){let{chunk:n}=this;switch(i){case 1:return n.getUint8(t);case 3:return n.getUint16(t);case 4:case 13:return n.getUint32(t);case 5:return n.getUint32(t)/n.getUint32(t+4);case 6:return n.getInt8(t);case 8:return n.getInt16(t);case 9:return n.getInt32(t);case 10:return n.getInt32(t)/n.getInt32(t+4);case 11:return n.getFloat(t);case 12:return n.getDouble(t);default:ne(`Invalid tiff type ${i}`)}}}class It extends Ui{static canHandle(i,t){return 225===i.getUint8(t+1)&&1165519206===i.getUint32(t+4)&&0===i.getUint16(t+8)}parse(){var i=this;return(0,z.Z)(function*(){i.parseHeader();let{options:t}=i;return t.ifd0.enabled&&(yield i.parseIfd0Block()),t.exif.enabled&&(yield i.safeParse("parseExifBlock")),t.gps.enabled&&(yield i.safeParse("parseGpsBlock")),t.interop.enabled&&(yield i.safeParse("parseInteropBlock")),t.ifd1.enabled&&(yield i.safeParse("parseThumbnailBlock")),i.createOutput()})()}safeParse(i){let t=this[i]();return void 0!==t.catch&&(t=t.catch(this.handleError)),t}findIfd0Offset(){void 0===this.ifd0Offset&&(this.ifd0Offset=this.chunk.getUint32(4))}findIfd1Offset(){if(void 0===this.ifd1Offset){this.findIfd0Offset();let i=this.chunk.getUint16(this.ifd0Offset);this.ifd1Offset=this.chunk.getUint32(this.ifd0Offset+2+12*i)}}parseBlock(i,t){let n=new Map;return this[t]=n,this.parseTags(i,t,n),n}parseIfd0Block(){var i=this;return(0,z.Z)(function*(){if(i.ifd0)return;let{file:t}=i;i.findIfd0Offset(),i.ifd0Offset<8&&ne("Malformed EXIF data"),!t.chunked&&i.ifd0Offset>t.byteLength&&ne(`IFD0 offset points to outside of file.\nthis.ifd0Offset: ${i.ifd0Offset}, file.byteLength: ${t.byteLength}`),t.tiff&&(yield t.ensureChunk(i.ifd0Offset,gt(i.options)));let n=i.parseBlock(i.ifd0Offset,"ifd0");return 0!==n.size?(i.exifOffset=n.get(34665),i.interopOffset=n.get(40965),i.gpsOffset=n.get(34853),i.xmp=n.get(700),i.iptc=n.get(33723),i.icc=n.get(34675),i.options.sanitize&&(n.delete(34665),n.delete(40965),n.delete(34853),n.delete(700),n.delete(33723),n.delete(34675)),n):void 0})()}parseExifBlock(){var i=this;return(0,z.Z)(function*(){if(i.exif||(i.ifd0||(yield i.parseIfd0Block()),void 0===i.exifOffset))return;i.file.tiff&&(yield i.file.ensureChunk(i.exifOffset,gt(i.options)));let t=i.parseBlock(i.exifOffset,"exif");return i.interopOffset||(i.interopOffset=t.get(40965)),i.makerNote=t.get(37500),i.userComment=t.get(37510),i.options.sanitize&&(t.delete(40965),t.delete(37500),t.delete(37510)),i.unpack(t,41728),i.unpack(t,41729),t})()}unpack(i,t){let n=i.get(t);n&&1===n.length&&i.set(t,n[0])}parseGpsBlock(){var i=this;return(0,z.Z)(function*(){if(i.gps||(i.ifd0||(yield i.parseIfd0Block()),void 0===i.gpsOffset))return;let t=i.parseBlock(i.gpsOffset,"gps");return t&&t.has(2)&&t.has(4)&&(t.set("latitude",Jt(...t.get(2),t.get(1))),t.set("longitude",Jt(...t.get(4),t.get(3)))),t})()}parseInteropBlock(){var i=this;return(0,z.Z)(function*(){if(!i.interop&&(i.ifd0||(yield i.parseIfd0Block()),void 0!==i.interopOffset||i.exif||(yield i.parseExifBlock()),void 0!==i.interopOffset))return i.parseBlock(i.interopOffset,"interop")})()}parseThumbnailBlock(){var i=this;return(0,z.Z)(function*(t=!1){if(!i.ifd1&&!i.ifd1Parsed&&(!i.options.mergeOutput||t))return i.findIfd1Offset(),i.ifd1Offset>0&&(i.parseBlock(i.ifd1Offset,"ifd1"),i.ifd1Parsed=!0),i.ifd1}).apply(this,arguments)}extractThumbnail(){var i=this;return(0,z.Z)(function*(){if(i.headerParsed||i.parseHeader(),i.ifd1Parsed||(yield i.parseThumbnailBlock(!0)),void 0===i.ifd1)return;let t=i.ifd1.get(513),n=i.ifd1.get(514);return i.chunk.getUint8Array(t,n)})()}get image(){return this.ifd0}get thumbnail(){return this.ifd1}createOutput(){let i,t,n,o={};for(t of oe)if(i=this[t],!Nt(i))if(n=this.canTranslate?this.translateBlock(i,t):Object.fromEntries(i),this.options.mergeOutput){if("ifd1"===t)continue;Object.assign(o,n)}else o[t]=n;return this.makerNote&&(o.makerNote=this.makerNote),this.userComment&&(o.userComment=this.userComment),o}assignToOutput(i,t){if(this.globalOptions.mergeOutput)Object.assign(i,t);else for(let[n,o]of Object.entries(t))this.assignObjectToOutput(i,n,o)}}function Jt(r,i,t,n){var o=r+i/60+t/3600;return"S"!==n&&"W"!==n||(o*=-1),o}N(It,"type","tiff"),N(It,"headerLength",10),re.set("tiff",It);var Bi=Object.freeze({__proto__:null,default:Oi,Exifr:Me,fileParsers:fe,segmentParsers:re,fileReaders:me,tagKeys:ce,tagValues:pe,tagRevivers:Ce,createDictionary:se,extendDictionary:Ee,fetchUrlAsArrayBuffer:Oe,readBlobAsArrayBuffer:Te,chunkedProps:Ie,otherSegments:Fe,segments:Ze,tiffBlocks:oe,segmentsAndBlocks:xe,tiffExtractables:Pe,inheritables:De,allFormatters:ye,Options:we,parse:$e});const xt={ifd0:!1,ifd1:!1,exif:!1,gps:!1,interop:!1,sanitize:!1,reviveValues:!0,translateKeys:!1,translateValues:!1,mergeOutput:!1},Pt=Object.assign({},xt,{firstChunkSize:4e4,gps:[1,2,3,4]});function $t(r){return yt.apply(this,arguments)}function yt(){return(yt=(0,z.Z)(function*(r){let i=new Me(Pt);yield i.read(r);let t=yield i.parse();if(t&&t.gps){let{latitude:n,longitude:o}=t.gps;return{latitude:n,longitude:o}}})).apply(this,arguments)}const wt=Object.assign({},xt,{tiff:!1,ifd1:!0,mergeOutput:!1});function ei(r){return Mt.apply(this,arguments)}function Mt(){return(Mt=(0,z.Z)(function*(r){let i=new Me(wt);yield i.read(r);let t=yield i.extractThumbnail();return t&&Xe?Ye.from(t):t})).apply(this,arguments)}function ti(r){return St.apply(this,arguments)}function St(){return(St=(0,z.Z)(function*(r){let i=yield this.thumbnail(r);
1if(void 0!==i){let t=new Blob([i]);return URL.createObjectURL(t)}})).apply(this,arguments)}const Ot=Object.assign({},xt,{firstChunkSize:4e4,ifd0:[274]});function tt(r){return Tt.apply(this,arguments)}function Tt(){return(Tt=(0,z.Z)(function*(r){let i=new Me(Ot);yield i.read(r);let t=yield i.parse();if(t&&t.ifd0)return t.ifd0[274]})).apply(this,arguments)}const Et=Object.freeze({1:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:0,rad:0},2:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:0,rad:0},3:{dimensionSwapped:!1,scaleX:1,scaleY:1,deg:180,rad:180*Math.PI/180},4:{dimensionSwapped:!1,scaleX:-1,scaleY:1,deg:180,rad:180*Math.PI/180},5:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:90,rad:90*Math.PI/180},6:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:90,rad:90*Math.PI/180},7:{dimensionSwapped:!0,scaleX:1,scaleY:-1,deg:270,rad:270*Math.PI/180},8:{dimensionSwapped:!0,scaleX:1,scaleY:1,deg:270,rad:270*Math.PI/180}});let ke=!0,Ue=!0;if("object"==typeof navigator){let r=navigator.userAgent;if(r.includes("iPad")||r.includes("iPhone")){let i=r.match(/OS (\d+)_(\d+)/);if(i){let[,t,n]=i;ke=Number(t)+.1*Number(n)<13.4,Ue=!1}}else if(r.includes("OS X 10")){let[,i]=r.match(/OS X 10[_.](\d+)/);ke=Ue=Number(i)<15}if(r.includes("Chrome/")){let[,i]=r.match(/Chrome\/(\d+)/);ke=Ue=Number(i)<81}else if(r.includes("Firefox/")){let[,i]=r.match(/Firefox\/(\d+)/);ke=Ue=Number(i)<77}}function ii(r){return Zt.apply(this,arguments)}function Zt(){return(Zt=(0,z.Z)(function*(r){let i=yield tt(r);return Object.assign({canvas:ke,css:Ue},Et[i])})).apply(this,arguments)}class Fi extends ue{constructor(...i){super(...i),N(this,"ranges",new Di),0!==this.byteLength&&this.ranges.add(0,this.byteLength)}_tryExtend(i,t,n){if(0===i&&0===this.byteLength&&n){let o=new DataView(n.buffer||n,n.byteOffset,n.byteLength);this._swapDataView(o)}else{let o=i+t;if(o>this.byteLength){let{dataView:a}=this._extend(o);this._swapDataView(a)}}}_extend(i){let t;t=Xe?Ye.allocUnsafe(i):new Uint8Array(i);let n=new DataView(t.buffer,t.byteOffset,t.byteLength);return t.set(new Uint8Array(this.buffer,this.byteOffset,this.byteLength),0),{uintView:t,dataView:n}}subarray(i,t,n=!1){return t=t||this._lengthToEnd(i),n&&this._tryExtend(i,t),this.ranges.add(i,t),super.subarray(i,t)}set(i,t,n=!1){n&&this._tryExtend(t,i.byteLength,i);let o=super.set(i,t);return this.ranges.add(t,o.byteLength),o}ensureChunk(i,t){var n=this;return(0,z.Z)(function*(){n.chunked&&(n.ranges.available(i,t)||(yield n.readChunk(i,t)))})()}available(i,t){return this.ranges.available(i,t)}}class Di{constructor(){N(this,"list",[])}get length(){return this.list.length}add(i,t,n=0){let o=i+t,a=this.list.filter(s=>ni(i,s.offset,o)||ni(i,s.end,o));if(a.length>0){i=Math.min(i,...a.map(c=>c.offset)),o=Math.max(o,...a.map(c=>c.end)),t=o-i;let s=a.shift();s.offset=i,s.length=t,s.end=o,this.list=this.list.filter(c=>!a.includes(c))}else this.list.push({offset:i,length:t,end:o})}available(i,t){let n=i+t;return this.list.some(o=>o.offset<=i&&n<=o.end)}}function ni(r,i,t){return r<=i&&i<=t}class it extends Fi{constructor(i,t){super(0),N(this,"chunksRead",0),this.input=i,this.options=t}readWhole(){var i=this;return(0,z.Z)(function*(){i.chunked=!1,yield i.readChunk(i.nextChunkOffset)})()}readChunked(){var i=this;return(0,z.Z)(function*(){i.chunked=!0,yield i.readChunk(0,i.options.firstChunkSize)})()}readNextChunk(){var i=this;return(0,z.Z)(function*(t=i.nextChunkOffset){if(i.fullyRead)return i.chunksRead++,!1;let n=i.options.chunkSize,o=yield i.readChunk(t,n);return!!o&&o.byteLength===n}).apply(this,arguments)}readChunk(i,t){var n=this;return(0,z.Z)(function*(){if(n.chunksRead++,0!==(t=n.safeWrapAddress(i,t)))return n._readChunk(i,t)})()}safeWrapAddress(i,t){return void 0!==this.size&&i+t>this.size?Math.max(0,this.size-i):t}get nextChunkOffset(){if(0!==this.ranges.list.length)return this.ranges.list[0].length}get canReadNextChunk(){return this.chunksRead<this.options.chunkLimit}get fullyRead(){return void 0!==this.size&&this.nextChunkOffset===this.size}read(){return this.options.chunked?this.readChunked():this.readWhole()}close(){}}me.set("blob",class extends it{readWhole(){var r=this;return(0,z.Z)(function*(){r.chunked=!1;let i=yield Te(r.input);r._swapArrayBuffer(i)})()}readChunked(){return this.chunked=!0,this.size=this.input.size,super.readChunked()}_readChunk(r,i){var t=this;return(0,z.Z)(function*(){let o=t.input.slice(r,i?r+i:void 0),a=yield Te(o);return t.set(a,r,!0)})()}});var Li=Object.freeze({__proto__:null,default:Bi,Exifr:Me,fileParsers:fe,segmentParsers:re,fileReaders:me,tagKeys:ce,tagValues:pe,tagRevivers:Ce,createDictionary:se,extendDictionary:Ee,fetchUrlAsArrayBuffer:Oe,readBlobAsArrayBuffer:Te,chunkedProps:Ie,otherSegments:Fe,segments:Ze,tiffBlocks:oe,segmentsAndBlocks:xe,tiffExtractables:Pe,inheritables:De,allFormatters:ye,Options:we,parse:$e,gpsOnlyOptions:Pt,gps:$t,thumbnailOnlyOptions:wt,thumbnail:ei,thumbnailUrl:ti,orientationOnlyOptions:Ot,orientation:tt,rotations:Et,get rotateCanvas(){return ke},get rotateCss(){return Ue},rotation:ii});me.set("url",class extends it{readWhole(){var r=this;return(0,z.Z)(function*(){r.chunked=!1;let i=yield Oe(r.input);i instanceof ArrayBuffer?r._swapArrayBuffer(i):i instanceof Uint8Array&&r._swapBuffer(i)})()}_readChunk(r,i){var t=this;return(0,z.Z)(function*(){let n=i?r+i-1:void 0,o=t.options.httpHeaders||{};(r||n)&&(o.range=`bytes=${[r,n].join("-")}`);let a=yield dt(t.input,{headers:o}),s=yield a.arrayBuffer(),c=s.byteLength;if(416!==a.status)return c!==i&&(t.size=r+c),t.set(s,r,!0)})()}}),ue.prototype.getUint64=function(r){let i=this.getUint32(r),t=this.getUint32(r+4);return i<1048575?i<<32|t:void 0!==typeof Ve?(console.warn("Using BigInt because of type 64uint but JS can only handle 53b numbers."),Ve(i)<<Ve(32)|Ve(t)):void ne("Trying to read 64b value but JS can only handle 53b numbers.")};class Ri extends et{parseBoxes(i=0){let t=[];for(;i<this.file.byteLength-4;){let n=this.parseBoxHead(i);if(t.push(n),0===n.length)break;i+=n.length}return t}parseSubBoxes(i){i.boxes=this.parseBoxes(i.start)}findBox(i,t){return void 0===i.boxes&&this.parseSubBoxes(i),i.boxes.find(n=>n.kind===t)}parseBoxHead(i){let t=this.file.getUint32(i),n=this.file.getString(i+4,4),o=i+8;return 1===t&&(t=this.file.getUint64(i+8),o+=8),{offset:i,length:t,kind:n,start:o}}
1parseBoxFullHead(i){if(void 0!==i.version)return;let t=this.file.getUint32(i.start);i.version=t>>24,i.start+=4}}class ri extends Ri{static canHandle(i,t){if(0!==t)return!1;let n=i.getUint16(2);if(n>50)return!1;let o=16,a=[];for(;o<n;)a.push(i.getString(o,4)),o+=4;return a.includes(this.type)}parse(){var i=this;return(0,z.Z)(function*(){let t=i.file.getUint32(0),n=i.parseBoxHead(t);for(;"meta"!==n.kind;)t+=n.length,yield i.file.ensureChunk(t,16),n=i.parseBoxHead(t);yield i.file.ensureChunk(n.offset,n.length),i.parseBoxFullHead(n),i.parseSubBoxes(n),i.options.icc.enabled&&(yield i.findIcc(n)),i.options.tiff.enabled&&(yield i.findExif(n))})()}registerSegment(i,t,n){var o=this;return(0,z.Z)(function*(){yield o.file.ensureChunk(t,n);let a=o.file.subarray(t,n);o.createParser(i,a)})()}findIcc(i){var t=this;return(0,z.Z)(function*(){let n=t.findBox(i,"iprp");if(void 0===n)return;let o=t.findBox(n,"ipco");if(void 0===o)return;let a=t.findBox(o,"colr");void 0!==a&&(yield t.registerSegment("icc",a.offset+12,a.length))})()}findExif(i){var t=this;return(0,z.Z)(function*(){let n=t.findBox(i,"iinf");if(void 0===n)return;let o=t.findBox(i,"iloc");if(void 0===o)return;let a=t.findExifLocIdInIinf(n),s=t.findExtentInIloc(o,a);if(void 0===s)return;let[c,d]=s;yield t.file.ensureChunk(c,d);let h=4+t.file.getUint32(c);c+=h,d-=h,yield t.registerSegment("tiff",c,d)})()}findExifLocIdInIinf(i){this.parseBoxFullHead(i);let t,n,o,a,s=i.start,c=this.file.getUint16(s);for(s+=2;c--;){if(t=this.parseBoxHead(s),this.parseBoxFullHead(t),n=t.start,t.version>=2&&(o=3===t.version?4:2,a=this.file.getString(n+o+2,4),"Exif"===a))return this.file.getUintBytes(n,o);s+=t.length}}get8bits(i){let t=this.file.getUint8(i);return[t>>4,15&t]}findExtentInIloc(i,t){this.parseBoxFullHead(i);let n=i.start,[o,a]=this.get8bits(n++),[s,c]=this.get8bits(n++),d=2===i.version?4:2,h=1===i.version||2===i.version?2:0,M=c+o+a,F=2===i.version?4:2,Q=this.file.getUintBytes(n,F);for(n+=F;Q--;){let J=this.file.getUintBytes(n,d);n+=d+h+2+s;let te=this.file.getUint16(n);if(n+=2,J===t)return te>1&&console.warn("ILOC box has more than one extent but we're only processing one\nPlease create an issue at https://github.com/MikeKovarik/exifr with this file"),[this.file.getUintBytes(n+c,o),this.file.getUintBytes(n+c+o,a)];n+=te*M}}}class oi extends ri{}N(oi,"type","heic");class ai extends ri{}N(ai,"type","avif"),fe.set("heic",oi),fe.set("avif",ai),se(ce,["ifd0","ifd1"],[[256,"ImageWidth"],[257,"ImageHeight"],[258,"BitsPerSample"],[259,"Compression"],[262,"PhotometricInterpretation"],[270,"ImageDescription"],[271,"Make"],[272,"Model"],[273,"StripOffsets"],[274,"Orientation"],[277,"SamplesPerPixel"],[278,"RowsPerStrip"],[279,"StripByteCounts"],[282,"XResolution"],[283,"YResolution"],[284,"PlanarConfiguration"],[296,"ResolutionUnit"],[301,"TransferFunction"],[305,"Software"],[306,"ModifyDate"],[315,"Artist"],[316,"HostComputer"],[317,"Predictor"],[318,"WhitePoint"],[319,"PrimaryChromaticities"],[513,"ThumbnailOffset"],[514,"ThumbnailLength"],[529,"YCbCrCoefficients"],[530,"YCbCrSubSampling"],[531,"YCbCrPositioning"],[532,"ReferenceBlackWhite"],[700,"ApplicationNotes"],[33432,"Copyright"],[33723,"IPTC"],[34665,"ExifIFD"],[34675,"ICC"],[34853,"GpsIFD"],[330,"SubIFD"],[40965,"InteropIFD"],[40091,"XPTitle"],[40092,"XPComment"],[40093,"XPAuthor"],[40094,"XPKeywords"],[40095,"XPSubject"]]),se(ce,"exif",[[33434,"ExposureTime"],[33437,"FNumber"],[34850,"ExposureProgram"],[34852,"SpectralSensitivity"],[34855,"ISO"],[34858,"TimeZoneOffset"],[34859,"SelfTimerMode"],[34864,"SensitivityType"],[34865,"StandardOutputSensitivity"],[34866,"RecommendedExposureIndex"],[34867,"ISOSpeed"],[34868,"ISOSpeedLatitudeyyy"],[34869,"ISOSpeedLatitudezzz"],[36864,"ExifVersion"],[36867,"DateTimeOriginal"],[36868,"CreateDate"],[36873,"GooglePlusUploadCode"],[36880,"OffsetTime"],[36881,"OffsetTimeOriginal"],[36882,"OffsetTimeDigitized"],[37121,"ComponentsConfiguration"],[37122,"CompressedBitsPerPixel"],[37377,"ShutterSpeedValue"],[37378,"ApertureValue"],[37379,"BrightnessValue"],[37380,"ExposureCompensation"],[37381,"MaxApertureValue"],[37382,"SubjectDistance"],[37383,"MeteringMode"],[37384,"LightSource"],[37385,"Flash"],[37386,"FocalLength"],[37393,"ImageNumber"],[37394,"SecurityClassification"],[37395,"ImageHistory"],[37396,"SubjectArea"],[37500,"MakerNote"],[37510,"UserComment"],[37520,"SubSecTime"],[37521,"SubSecTimeOriginal"],[37522,"SubSecTimeDigitized"],[37888,"AmbientTemperature"],[37889,"Humidity"],[37890,"Pressure"],[37891,"WaterDepth"],[37892,"Acceleration"],[37893,"CameraElevationAngle"],[40960,"FlashpixVersion"],[40961,"ColorSpace"],[40962,"ExifImageWidth"],[40963,"ExifImageHeight"],[40964,"RelatedSoundFile"],[41483,"FlashEnergy"],[41486,"FocalPlaneXResolution"],[41487,"FocalPlaneYResolution"],[41488,"FocalPlaneResolutionUnit"],[41492,"SubjectLocation"],[41493,"ExposureIndex"],[41495,"SensingMethod"],[41728,"FileSource"],[41729,"SceneType"],[41730,"CFAPattern"],[41985,"CustomRendered"],[41986,"ExposureMode"],[41987,"WhiteBalance"],[41988,"DigitalZoomRatio"],[41989,"FocalLengthIn35mmFormat"],[41990,"Sce
1neCaptureType"],[41991,"GainControl"],[41992,"Contrast"],[41993,"Saturation"],[41994,"Sharpness"],[41996,"SubjectDistanceRange"],[42016,"ImageUniqueID"],[42032,"OwnerName"],[42033,"SerialNumber"],[42034,"LensInfo"],[42035,"LensMake"],[42036,"LensModel"],[42037,"LensSerialNumber"],[42080,"CompositeImage"],[42081,"CompositeImageCount"],[42082,"CompositeImageExposureTimes"],[42240,"Gamma"],[59932,"Padding"],[59933,"OffsetSchema"],[65e3,"OwnerName"],[65001,"SerialNumber"],[65002,"Lens"],[65100,"RawFile"],[65101,"Converter"],[65102,"WhiteBalance"],[65105,"Exposure"],[65106,"Shadows"],[65107,"Brightness"],[65108,"Contrast"],[65109,"Saturation"],[65110,"Sharpness"],[65111,"Smoothness"],[65112,"MoireFilter"],[40965,"InteropIFD"]]),se(ce,"gps",[[0,"GPSVersionID"],[1,"GPSLatitudeRef"],[2,"GPSLatitude"],[3,"GPSLongitudeRef"],[4,"GPSLongitude"],[5,"GPSAltitudeRef"],[6,"GPSAltitude"],[7,"GPSTimeStamp"],[8,"GPSSatellites"],[9,"GPSStatus"],[10,"GPSMeasureMode"],[11,"GPSDOP"],[12,"GPSSpeedRef"],[13,"GPSSpeed"],[14,"GPSTrackRef"],[15,"GPSTrack"],[16,"GPSImgDirectionRef"],[17,"GPSImgDirection"],[18,"GPSMapDatum"],[19,"GPSDestLatitudeRef"],[20,"GPSDestLatitude"],[21,"GPSDestLongitudeRef"],[22,"GPSDestLongitude"],[23,"GPSDestBearingRef"],[24,"GPSDestBearing"],[25,"GPSDestDistanceRef"],[26,"GPSDestDistance"],[27,"GPSProcessingMethod"],[28,"GPSAreaInformation"],[29,"GPSDateStamp"],[30,"GPSDifferential"],[31,"GPSHPositioningError"]]),se(pe,["ifd0","ifd1"],[[274,{1:"Horizontal (normal)",2:"Mirror horizontal",3:"Rotate 180",4:"Mirror vertical",5:"Mirror horizontal and rotate 270 CW",6:"Rotate 90 CW",7:"Mirror horizontal and rotate 90 CW",8:"Rotate 270 CW"}],[296,{1:"None",2:"inches",3:"cm"}]]);let qe=se(pe,"exif",[[34850,{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"}],[37121,{0:"-",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}],[37383,{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"}],[37384,{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"}],[37385,{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"}],[41495,{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"}],[41728,{1:"Film Scanner",2:"Reflection Print Scanner",3:"Digital Camera"}],[41729,{1:"Directly photographed"}],[41985,{0:"Normal",1:"Custom",2:"HDR (no original saved)",3:"HDR (original saved)",4:"Original (for HDR)",6:"Panorama",7:"Portrait HDR",8:"Portrait"}],[41986,{0:"Auto",1:"Manual",2:"Auto bracket"}],[41987,{0:"Auto",1:"Manual"}],[41990,{0:"Standard",1:"Landscape",2:"Portrait",3:"Night",4:"Other"}],[41991,{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"}],[41996,{0:"Unknown",1:"Macro",2:"Close",3:"Distant"}],[42080,{0:"Unknown",1:"Not a Composite Image",2:"General Composite Image",3:"Composite Image Captured While Shooting"}]]);const si={1:"No absolute unit of measurement",2:"Inch",3:"Centimeter"};qe.set(37392,si),qe.set(41488,si);const kt={0:"Normal",1:"Low",2:"High"};function ci(r){return"object"==typeof r&&void 0!==r.length?r[0]:r}function li(r){let i=Array.from(r).slice(1);return i[1]>15&&(i=i.map(t=>String.fromCharCode(t))),"0"!==i[2]&&0!==i[2]||i.pop(),i.join(".")}function Ut(r){if("string"==typeof r){var[i,t,n,o,a,s]=r.trim().split(/[-: ]/g).map(Number),c=new Date(i,t-1,n);return Number.isNaN(o)||Number.isNaN(a)||Number.isNaN(s)||(c.setHours(o),c.setMinutes(a),c.setSeconds(s)),Number.isNaN(+c)?r:c}}function Ne(r){if("string"==typeof r)return r;let i=[];if(0===r[1]&&0===r[r.length-1])for(let t=0;t<r.length;
vendor: 4,215 bytes, line 1
1t+=2)i.push(ui(r[t+1],r[t]));else for(let t=0;t<r.length;t+=2)i.push(ui(r[t],r[t+1]));return Se(String.fromCodePoint(...i))}function ui(r,i){return r<<8|i}qe.set(41992,kt),qe.set(41993,kt),qe.set(41994,kt),se(Ce,["ifd0","ifd1"],[[50827,function(r){return"string"!=typeof r?Gt(r):r}],[306,Ut],[40091,Ne],[40092,Ne],[40093,Ne],[40094,Ne],[40095,Ne]]),se(Ce,"exif",[[40960,li],[36864,li],[36867,Ut],[36868,Ut],[40962,ci],[40963,ci]]),se(Ce,"gps",[[0,r=>Array.from(r).join(".")],[7,r=>Array.from(r).join(":")]]);class Bt extends he{static canHandle(i,t){return 225===i.getUint8(t+1)&&1752462448===i.getUint32(t+4)&&"http://ns.adobe.com/"===i.getString(t+4,20)}static headerLength(i,t){return"http://ns.adobe.com/xmp/extension/"===i.getString(t+4,34)?79:33}static findPosition(i,t){let n=super.findPosition(i,t);return n.multiSegment=n.extended=79===n.headerLength,n.multiSegment?(n.chunkCount=i.getUint8(t+72),n.chunkNumber=i.getUint8(t+76),0!==i.getUint8(t+77)&&n.chunkNumber++):(n.chunkCount=1/0,n.chunkNumber=-1),n}static handleMultiSegments(i){return i.map(t=>t.chunk.getString()).join("")}normalizeInput(i){return"string"==typeof i?i:ue.from(i).getString()}parse(i=this.chunk){if(!this.localOptions.parse)return i;i=function(a){let s={},c={};for(let d of hi)s[d]=[],c[d]=0;return a.replace(Ni,(d,h,M)=>{if("<"===h){let F=++c[M];return s[M].push(F),`${d}#${F}`}return`${d}#${s[M].pop()}`})}(i);let t=Le.findAll(i,"rdf","Description");0===t.length&&t.push(new Le("rdf","Description",void 0,i));let n,o={};for(let a of t)for(let s of a.properties)n=qi(s.ns,o),di(s,n);return function(a){let s;for(let c in a)s=a[c]=We(a[c]),void 0===s&&delete a[c];return We(a)}(o)}assignToOutput(i,t){if(this.localOptions.parse)for(let[n,o]of Object.entries(t))switch(n){case"tiff":this.assignObjectToOutput(i,"ifd0",o);break;case"exif":this.assignObjectToOutput(i,"exif",o);break;case"xmlns":break;default:this.assignObjectToOutput(i,n,o)}else i.xmp=t}}N(Bt,"type","xmp"),N(Bt,"multiSegment",!0),re.set("xmp",Bt);class nt{static findAll(i){return gi(i,/([a-zA-Z0-9-]+):([a-zA-Z0-9-]+)=("[^"]*"|'[^']*')/gm).map(nt.unpackMatch)}static unpackMatch(i){let t=i[1],n=i[2],o=i[3].slice(1,-1);return o=pi(o),new nt(t,n,o)}constructor(i,t,n){this.ns=i,this.name=t,this.value=n}serialize(){return this.value}}class Le{static findAll(i,t,n){if(void 0!==t||void 0!==n){t=t||"[\\w\\d-]+",n=n||"[\\w\\d-]+";var o=new RegExp(`<(${t}):(${n})(#\\d+)?((\\s+?[\\w\\d-:]+=("[^"]*"|'[^']*'))*\\s*)(\\/>|>([\\s\\S]*?)<\\/\\1:\\2\\3>)`,"gm")}else o=/<([\w\d-]+):([\w\d-]+)(#\d+)?((\s+?[\w\d-:]+=("[^"]*"|'[^']*'))*\s*)(\/>|>([\s\S]*?)<\/\1:\2\3>)/gm;return gi(i,o).map(Le.unpackMatch)}static unpackMatch(i){return new Le(i[1],i[2],i[4],i[8])}constructor(i,t,n,o){this.ns=i,this.name=t,this.attrString=n,this.innerXml=o,this.attrs=nt.findAll(n),this.children=Le.findAll(o),this.value=0===this.children.length?pi(o):void 0,this.properties=[...this.attrs,...this.children]}get isPrimitive(){return void 0!==this.value&&0===this.attrs.length&&0===this.children.length}get isListContainer(){return 1===this.children.length&&this.children[0].isList}get isList(){let{ns:i,name:t}=this;return"rdf"===i&&("Seq"===t||"Bag"===t||"Alt"===t)}get isListItem(){return"rdf"===this.ns&&"li"===this.name}serialize(){if(0===this.properties.length&&void 0===this.value)return;if(this.isPrimitive)return this.value;if(this.isListContainer)return this.children[0].serialize();if(this.isList)return Qi(this.children.map(zi));if(this.isListItem&&1===this.children.length&&0===this.attrs.length)return this.children[0].serialize();let i={};for(let t of this.properties)di(t,i);return void 0!==this.value&&(i.value=this.value),We(i)}}function di(r,i){let t=r.serialize();void 0!==t&&(i[r.name]=t)}var zi=r=>r.serialize(),Qi=r=>1===r.length?r[0]:r,qi=(r,i)=>i[r]?i[r]:i[r]={};function gi(r,i){let t,n=[];if(!r)return n;for(;null!==(t=i.exec(r));)n.push(t);return n}function pi(r){if(null==(n=r)||"null"===n||"undefined"===n||""===n||""===n.trim())return;var n;let i=Number(r);if(!Number.isNaN(i))return i;let t=r.toLowerCase();return"true"===t||"false"!==t&&r.trim()}const hi=["rdf:li","rdf:Seq","rdf:Bag","rdf:Alt","rdf:Description"],Ni=new RegExp(`(<|\\/)(${hi.join("|")})`,"g");
1Object.freeze({__proto__:null,default:Li,Exifr:Me,fileParsers:fe,segmentParsers:re,fileReaders:me,tagKeys:ce,tagValues:pe,tagRevivers:Ce,createDictionary:se,extendDictionary:Ee,fetchUrlAsArrayBuffer:Oe,readBlobAsArrayBuffer:Te,chunkedProps:Ie,otherSegments:Fe,segments:Ze,tiffBlocks:oe,segmentsAndBlocks:xe,tiffExtractables:Pe,inheritables:De,allFormatters:ye,Options:we,parse:$e,gpsOnlyOptions:Pt,gps:$t,thumbnailOnlyOptions:wt,thumbnail:ei,thumbnailUrl:ti,orientationOnlyOptions:Ot,orientation:tt,rotations:Et,get rotateCanvas(){return ke},get rotateCss(){return Ue},rotation:ii});let fi=Ke("fs",r=>r.promises);me.set("fs",class extends it{readWhole(){var r=this;return(0,z.Z)(function*(){r.chunked=!1,r.fs=yield fi;let i=yield r.fs.readFile(r.input);r._swapBuffer(i)})()}readChunked(){var r=this;return(0,z.Z)(function*(){r.chunked=!0,r.fs=yield fi,yield r.open(),yield r.readChunk(0,r.options.firstChunkSize)})()}open(){var r=this;return(0,z.Z)(function*(){void 0===r.fh&&(r.fh=yield r.fs.open(r.input,"r"),r.size=(yield r.fh.stat(r.input)).size)})()}_readChunk(r,i){var t=this;return(0,z.Z)(function*(){void 0===t.fh&&(yield t.open()),r+i>t.size&&(i=t.size-r);var n=t.subarray(r,i,!0);return yield t.fh.read(n.dataView,0,i,r),n})()}close(){var r=this;return(0,z.Z)(function*(){if(r.fh){let i=r.fh;r.fh=void 0,yield i.close()}})()}}),me.set("base64",class extends it{constructor(...r){super(...r),this.input=this.input.replace(/^data:([^;]+);base64,/gim,""),this.size=this.input.length/4*3,this.input.endsWith("==")?this.size-=2:this.input.endsWith("=")&&(this.size-=1)}_readChunk(r,i){var t=this;return(0,z.Z)(function*(){let n,o,a=t.input;void 0===r?(r=0,n=0,o=0):(n=4*Math.floor(r/3),o=r-n/4*3),void 0===i&&(i=t.size);let c=n+4*Math.ceil((r+i)/3);a=a.slice(n,c);let d=Math.min(i,t.size-r);if(Xe){let h=Ye.from(a,"base64").slice(o,o+d);return t.set(h,r,!0)}{let h=t.subarray(r,d,!0),M=atob(a),F=h.toUint8();for(let Q=0;Q<d;Q++)F[Q]=M.charCodeAt(o+Q);return h}})()}});class mi extends et{static canHandle(i,t){return 18761===t||19789===t}extendOptions(i){let{ifd0:t,xmp:n,iptc:o,icc:a}=i;n.enabled&&t.deps.add(700),o.enabled&&t.deps.add(33723),a.enabled&&t.deps.add(34675),t.finalizeFilters()}parse(){var i=this;return(0,z.Z)(function*(){let{tiff:t,xmp:n,iptc:o,icc:a}=i.options;if(t.enabled||n.enabled||o.enabled||a.enabled){let s=Math.max(gt(i.options),i.options.chunkSize);yield i.file.ensureChunk(0,s),i.createParser("tiff",i.file),i.parsers.tiff.parseHeader(),yield i.parsers.tiff.parseIfd0Block(),i.adaptTiffPropAsSegment("xmp"),i.adaptTiffPropAsSegment("iptc"),i.adaptTiffPropAsSegment("icc")}})()}adaptTiffPropAsSegment(i){this.parsers.tiff[i]&&this.injectSegment(i,this.parsers.tiff[i])}}N(mi,"type","tiff"),fe.set("tiff",mi);let Gi=Ke("zlib");const Hi=["ihdr","iccp","text","itxt","exif"];class Ai extends et{constructor(...i){super(...i),N(this,"catchError",t=>this.errors.push(t)),N(this,"metaChunks",[]),N(this,"unknownChunks",[])}static canHandle(i,t){return 35152===t&&2303741511===i.getUint32(0)&&218765834===i.getUint32(4)}parse(){var i=this;return(0,z.Z)(function*(){let{file:t}=i;yield i.findPngChunksInRange(8,t.byteLength),yield i.readSegments(i.metaChunks),i.findIhdr(),i.parseTextChunks(),yield i.findExif().catch(i.catchError),yield i.findXmp().catch(i.catchError),yield i.findIcc().catch(i.catchError)})()}findPngChunksInRange(i,t){var n=this;return(0,z.Z)(function*(){let{file:o}=n;for(;i<t;){let a=o.getUint32(i),s=o.getUint32(i+4),c=o.getString(i+4,4).toLowerCase(),d=a+4+4+4,h={type:c,offset:i,length:d,start:i+4+4,size:a,marker:s};Hi.includes(c)?n.metaChunks.push(h):n.unknownChunks.push(h),i+=d}})()}parseTextChunks(){let i=this.metaChunks.filter(t=>"text"===t.type);for(let t of i){let[n,o]=this.file.getString(t.start,t.size).split("\0");this.injectKeyValToIhdr(n,o)}}injectKeyValToIhdr(i,t){let n=this.parsers.ihdr;n&&n.raw.set(i,t)}findIhdr(){let i=this.metaChunks.find(t=>"ihdr"===t.type);i&&!1!==this.options.ihdr.enabled&&this.createParser("ihdr",i.chunk)}findExif(){var i=this;return(0,z.Z)(function*(){let t=i.metaChunks.find(n=>"exif"===n.type);t&&i.injectSegment("tiff",t.chunk)})()}findXmp(){var i=this;return(0,z.Z)(function*(){let t=i.metaChunks.filter(n=>"itxt"===n.type);for(let n of t)"XML:com.adobe.xmp"===n.chunk.getString(0,17)&&i.injectSegment("xmp",n.chunk)})()}findIcc(){var i=this;return(0,z.Z)(function*(){let t=i.metaChunks.find(d=>"iccp"===d.type);if(!t)return;let{chunk:n}=t,o=n.getUint8Array(0,81),a=0;for(;a<80&&0!==o[a];)a++;let s=a+2,c=n.getString(0,a);if(i.injectKeyValToIhdr("ProfileName",c),He){let d=yield Gi,h=n.getUint8Array(s);h=d.inflateSync(h),i.injectSegment("icc",h)}})()}}N(Ai,"type","png"),fe.set("png",Ai),se(ce,"interop",[[1,"InteropIndex"],[2,"InteropVersion"],[4096,"RelatedImageFileFormat"],[4097,"RelatedImageWidth"],[4098,"RelatedImageHeight"]]),Ee(ce,"ifd0",[[11,"ProcessingSoftw
1are"],[254,"SubfileType"],[255,"OldSubfileType"],[263,"Thresholding"],[264,"CellWidth"],[265,"CellLength"],[266,"FillOrder"],[269,"DocumentName"],[280,"MinSampleValue"],[281,"MaxSampleValue"],[285,"PageName"],[286,"XPosition"],[287,"YPosition"],[290,"GrayResponseUnit"],[297,"PageNumber"],[321,"HalftoneHints"],[322,"TileWidth"],[323,"TileLength"],[332,"InkSet"],[337,"TargetPrinter"],[18246,"Rating"],[18249,"RatingPercent"],[33550,"PixelScale"],[34264,"ModelTransform"],[34377,"PhotoshopSettings"],[50706,"DNGVersion"],[50707,"DNGBackwardVersion"],[50708,"UniqueCameraModel"],[50709,"LocalizedCameraModel"],[50736,"DNGLensInfo"],[50739,"ShadowScale"],[50740,"DNGPrivateData"],[33920,"IntergraphMatrix"],[33922,"ModelTiePoint"],[34118,"SEMInfo"],[34735,"GeoTiffDirectory"],[34736,"GeoTiffDoubleParams"],[34737,"GeoTiffAsciiParams"],[50341,"PrintIM"],[50721,"ColorMatrix1"],[50722,"ColorMatrix2"],[50723,"CameraCalibration1"],[50724,"CameraCalibration2"],[50725,"ReductionMatrix1"],[50726,"ReductionMatrix2"],[50727,"AnalogBalance"],[50728,"AsShotNeutral"],[50729,"AsShotWhiteXY"],[50730,"BaselineExposure"],[50731,"BaselineNoise"],[50732,"BaselineSharpness"],[50734,"LinearResponseLimit"],[50735,"CameraSerialNumber"],[50741,"MakerNoteSafety"],[50778,"CalibrationIlluminant1"],[50779,"CalibrationIlluminant2"],[50781,"RawDataUniqueID"],[50827,"OriginalRawFileName"],[50828,"OriginalRawFileData"],[50831,"AsShotICCProfile"],[50832,"AsShotPreProfileMatrix"],[50833,"CurrentICCProfile"],[50834,"CurrentPreProfileMatrix"],[50879,"ColorimetricReference"],[50885,"SRawType"],[50898,"PanasonicTitle"],[50899,"PanasonicTitle2"],[50931,"CameraCalibrationSig"],[50932,"ProfileCalibrationSig"],[50933,"ProfileIFD"],[50934,"AsShotProfileName"],[50936,"ProfileName"],[50937,"ProfileHueSatMapDims"],[50938,"ProfileHueSatMapData1"],[50939,"ProfileHueSatMapData2"],[50940,"ProfileToneCurve"],[50941,"ProfileEmbedPolicy"],[50942,"ProfileCopyright"],[50964,"ForwardMatrix1"],[50965,"ForwardMatrix2"],[50966,"PreviewApplicationName"],[50967,"PreviewApplicationVersion"],[50968,"PreviewSettingsName"],[50969,"PreviewSettingsDigest"],[50970,"PreviewColorSpace"],[50971,"PreviewDateTime"],[50972,"RawImageDigest"],[50973,"OriginalRawFileDigest"],[50981,"ProfileLookTableDims"],[50982,"ProfileLookTableData"],[51043,"TimeCodes"],[51044,"FrameRate"],[51058,"TStop"],[51081,"ReelName"],[51089,"OriginalDefaultFinalSize"],[51090,"OriginalBestQualitySize"],[51091,"OriginalDefaultCropSize"],[51105,"CameraLabel"],[51107,"ProfileHueSatMapEncoding"],[51108,"ProfileLookTableEncoding"],[51109,"BaselineExposureOffset"],[51110,"DefaultBlackRender"],[51111,"NewRawImageDigest"],[51112,"RawToPreviewGain"]]);let _i=[[273,"StripOffsets"],[279,"StripByteCounts"],[288,"FreeOffsets"],[289,"FreeByteCounts"],[291,"GrayResponseCurve"],[292,"T4Options"],[293,"T6Options"],[300,"ColorResponseUnit"],[320,"ColorMap"],[324,"TileOffsets"],[325,"TileByteCounts"],[326,"BadFaxLines"],[327,"CleanFaxData"],[328,"ConsecutiveBadFaxLines"],[330,"SubIFD"],[333,"InkNames"],[334,"NumberofInks"],[336,"DotRange"],[338,"ExtraSamples"],[339,"SampleFormat"],[340,"SMinSampleValue"],[341,"SMaxSampleValue"],[342,"TransferRange"],[343,"ClipPath"],[344,"XClipPathUnits"],[345,"YClipPathUnits"],[346,"Indexed"],[347,"JPEGTables"],[351,"OPIProxy"],[400,"GlobalParametersIFD"],[401,"ProfileType"],[402,"FaxProfile"],[403,"CodingMethods"],[404,"VersionYear"],[405,"ModeNumber"],[433,"Decode"],[434,"DefaultImageColor"],[435,"T82Options"],[437,"JPEGTables"],[512,"JPEGProc"],[515,"JPEGRestartInterval"],[517,"JPEGLosslessPredictors"],[518,"JPEGPointTransforms"],[519,"JPEGQTables"],[520,"JPEGDCTables"],[521,"JPEGACTables"],[559,"StripRowCounts"],[999,"USPTOMiscellaneous"],[18247,"XP_DIP_XML"],[18248,"StitchInfo"],[28672,"SonyRawFileType"],[28688,"SonyToneCurve"],[28721,"VignettingCorrection"],[28722,"VignettingCorrParams"],[28724,"ChromaticAberrationCorrection"],[28725,"ChromaticAberrationCorrParams"],[28726,"DistortionCorrection"],[28727,"DistortionCorrParams"],[29895,"SonyCropTopLeft"],[29896,"SonyCropSize"],[32781,"ImageID"],[32931,"WangTag1"],[32932,"WangAnnotation"],[32933,"WangTag3"],[32934,"WangTag4"],[32953,"ImageReferencePoints"],[32954,"RegionXformTackPoint"],[32955,"WarpQuadrilateral"],[32956,"AffineTransformMat"],[32995,"Matteing"],[32996,"DataType"],[32997,"ImageDepth"],[32998,"TileDepth"],[33300,"ImageFullWidth"],[33301,"ImageFullHeight"],[33302,"TextureFormat"],[33303,"WrapModes"],[33304,"FovCot"],[33305,"MatrixWorldToScreen"],[33306,"MatrixWorldToCamera"],[33405,"Model2"],[33421,"CFARepeatPatternDim"],[33422,"CFAPattern2"],[33423,"BatteryLevel"],[33424,"KodakIFD"],[33445,"MDFileTag"],[33446,"MDScalePixel"],[33447,"MDColorTable"],[33448,"MDLabName"],[33449,"MDSampleInfo"],[33450,"MDPrepDate"],[33451,"MDPrepTime"],[33452,"MDFileUnits"],[33589,"AdventScale"],[33590,"AdventRevision"],[33628,"UIC1Tag"],[33629,"UIC2Tag"],[33630,"UIC3Tag"],[33631,"UIC4Tag"],[33918,"IntergraphPacketData"],[33919,"IntergraphFlagRegisters"],[33921,"INGRReserved"],[34016,"Site"],[34017,"ColorSequence"],[34018,"IT8Header"],[34019,"RasterPadding"],[34020,"BitsPerRunLength"],[34021,"BitsPerExtendedRunLength"],[34022,"ColorTable"],[34023,"ImageColorIndicator"],[34024,"Backgroun
1dColorIndicator"],[34025,"ImageColorValue"],[34026,"BackgroundColorValue"],[34027,"PixelIntensityRange"],[34028,"TransparencyIndicator"],[34029,"ColorCharacterization"],[34030,"HCUsage"],[34031,"TrapIndicator"],[34032,"CMYKEquivalent"],[34152,"AFCP_IPTC"],[34232,"PixelMagicJBIGOptions"],[34263,"JPLCartoIFD"],[34306,"WB_GRGBLevels"],[34310,"LeafData"],[34687,"TIFF_FXExtensions"],[34688,"MultiProfiles"],[34689,"SharedData"],[34690,"T88Options"],[34732,"ImageLayer"],[34750,"JBIGOptions"],[34856,"Opto-ElectricConvFactor"],[34857,"Interlace"],[34908,"FaxRecvParams"],[34909,"FaxSubAddress"],[34910,"FaxRecvTime"],[34929,"FedexEDR"],[34954,"LeafSubIFD"],[37387,"FlashEnergy"],[37388,"SpatialFrequencyResponse"],[37389,"Noise"],[37390,"FocalPlaneXResolution"],[37391,"FocalPlaneYResolution"],[37392,"FocalPlaneResolutionUnit"],[37397,"ExposureIndex"],[37398,"TIFF-EPStandardID"],[37399,"SensingMethod"],[37434,"CIP3DataFile"],[37435,"CIP3Sheet"],[37436,"CIP3Side"],[37439,"StoNits"],[37679,"MSDocumentText"],[37680,"MSPropertySetStorage"],[37681,"MSDocumentTextPosition"],[37724,"ImageSourceData"],[40965,"InteropIFD"],[40976,"SamsungRawPointersOffset"],[40977,"SamsungRawPointersLength"],[41217,"SamsungRawByteOrder"],[41218,"SamsungRawUnknown"],[41484,"SpatialFrequencyResponse"],[41485,"Noise"],[41489,"ImageNumber"],[41490,"SecurityClassification"],[41491,"ImageHistory"],[41494,"TIFF-EPStandardID"],[41995,"DeviceSettingDescription"],[42112,"GDALMetadata"],[42113,"GDALNoData"],[44992,"ExpandSoftware"],[44993,"ExpandLens"],[44994,"ExpandFilm"],[44995,"ExpandFilterLens"],[44996,"ExpandScanner"],[44997,"ExpandFlashLamp"],[46275,"HasselbladRawImage"],[48129,"PixelFormat"],[48130,"Transformation"],[48131,"Uncompressed"],[48132,"ImageType"],[48256,"ImageWidth"],[48257,"ImageHeight"],[48258,"WidthResolution"],[48259,"HeightResolution"],[48320,"ImageOffset"],[48321,"ImageByteCount"],[48322,"AlphaOffset"],[48323,"AlphaByteCount"],[48324,"ImageDataDiscard"],[48325,"AlphaDataDiscard"],[50215,"OceScanjobDesc"],[50216,"OceApplicationSelector"],[50217,"OceIDNumber"],[50218,"OceImageLogic"],[50255,"Annotations"],[50459,"HasselbladExif"],[50547,"OriginalFileName"],[50560,"USPTOOriginalContentType"],[50656,"CR2CFAPattern"],[50710,"CFAPlaneColor"],[50711,"CFALayout"],[50712,"LinearizationTable"],[50713,"BlackLevelRepeatDim"],[50714,"BlackLevel"],[50715,"BlackLevelDeltaH"],[50716,"BlackLevelDeltaV"],[50717,"WhiteLevel"],[50718,"DefaultScale"],[50719,"DefaultCropOrigin"],[50720,"DefaultCropSize"],[50733,"BayerGreenSplit"],[50737,"ChromaBlurRadius"],[50738,"AntiAliasStrength"],[50752,"RawImageSegmentation"],[50780,"BestQualityScale"],[50784,"AliasLayerMetadata"],[50829,"ActiveArea"],[50830,"MaskedAreas"],[50935,"NoiseReductionApplied"],[50974,"SubTileBlockSize"],[50975,"RowInterleaveFactor"],[51008,"OpcodeList1"],[51009,"OpcodeList2"],[51022,"OpcodeList3"],[51041,"NoiseProfile"],[51114,"CacheVersion"],[51125,"DefaultUserCrop"],[51157,"NikonNEFInfo"],[65024,"KdcIFD"]];Ee(ce,"ifd0",_i),Ee(ce,"exif",_i),se(pe,"gps",[[23,{M:"Magnetic North",T:"True North"}],[25,{K:"Kilometers",M:"Miles",N:"Nautical Miles"}]]);class zt extends he{static canHandle(i,t){return 224===i.getUint8(t+1)&&1246120262===i.getUint32(t+4)&&0===i.getUint8(t+8)}parse(){return this.parseTags(),this.translate(),this.output}parseTags(){this.raw=new Map([[0,this.chunk.getUint16(0)],[2,this.chunk.getUint8(2)],[3,this.chunk.getUint16(3)],[5,this.chunk.getUint16(5)],[7,this.chunk.getUint8(7)],[8,this.chunk.getUint8(8)]])}}N(zt,"type","jfif"),N(zt,"headerLength",9),re.set("jfif",zt),se(ce,"jfif",[[0,"JFIFVersion"],[2,"ResolutionUnit"],[3,"XResolution"],[5,"YResolution"],[7,"ThumbnailWidth"],[8,"ThumbnailHeight"]]);class vi extends he{parse(){return this.parseTags(),this.translate(),this.output}parseTags(){this.raw=new Map([[0,this.chunk.getUint32(0)],[4,this.chunk.getUint32(4)],[8,this.chunk.getUint8(8)],[9,this.chunk.getUint8(9)],[10,this.chunk.getUint8(10)],[11,this.chunk.getUint8(11)],[12,this.chunk.getUint8(12)],...Array.from(this.raw)])}}N(vi,"type","ihdr"),re.set("ihdr",vi),se(ce,"ihdr",[[0,"ImageWidth"],[4,"ImageHeight"],[8,"BitDepth"],[9,"ColorType"],[10,"Compression"],[11,"Filter"],[12,"Interlace"]]),se(pe,"ihdr",[[9,{0:"Grayscale",2:"RGB",3:"Palette",4:"Grayscale with Alpha",6:"RGB with Alpha",DEFAULT:"Unknown"}],[10,{0:"Deflate/Inflate",DEFAULT:"Unknown"}],[11,{0:"Adaptive",DEFAULT:"Unknown"}],[12,{0:"Noninterlaced",1:"Adam7 Interlace",DEFAULT:"Unknown"}]]);class rt extends he{static canHandle(i,t){return 226===i.getUint8(t+1)&&1229144927===i.getUint32(t+4)}static findPosition(i,t){let n=super.findPosition(i,t);return n.chunkNumber=i.getUint8(t+16),n.chunkCount=i.getUint8(t+17),n.multiSegment=n.chunkCount>1,n}static handleMultiSegments(i){return function(t){let n=function(o){let a=o[0].constructor,s=0;for(let h of o)s+=h.length;let c=new a(s),d=0;for(let h of o)c.set(h,d),d+=h.length;return c}(t.map(o=>o.chunk.toUint8()));return new ue(n)}(i)}parse(){return this.raw=new Map,this.parseHeader(),this.parseTags(),this.translate(),this.output}parseHeader(){let{raw:i}=this;this.chunk.byteLength<84&&ne("ICC header is too short");for(let[t,n]of Object.entries(Yi)){t=parseInt(t,10);let o=n(this.chunk,t);"\0\0\0\0"!==o&&i.set(t,o)}}parseTags(){let i,t,n,o,a,{raw:s}=this,c=this.chunk.getUint32(128),d=132,h=this.chunk.byteLength;for(;c--;){if(i=this.chunk.getString(d,4),t=this.chunk.getUint32(d+4),n=this.chunk.getUint32(d+8),o=this.chunk.getString(t,4),t+n>h)return void console.warn("reached the end of the first ICC chunk. Enable options.tiff.multiSegment to read all ICC segments.");a=this.parseTag(o,t,n),void 0!==a&&"\0\0\0\0"!==a&&s.set(i,a),d+=12}}
vendor: 3,347 bytes, line 1
1parseTag(i,t,n){switch(i){case"desc":return this.parseDesc(t);case"mluc":return this.parseMluc(t);case"text":return this.parseText(t,n);case"sig ":return this.parseSig(t)}if(!(t+n>this.chunk.byteLength))return this.chunk.getUint8Array(t,n)}parseDesc(i){let t=this.chunk.getUint32(i+8)-1;return Se(this.chunk.getString(i+12,t))}parseText(i,t){return Se(this.chunk.getString(i+8,t-8))}parseSig(i){return Se(this.chunk.getString(i+8,4))}parseMluc(i){let{chunk:t}=this,n=t.getUint32(i+8),o=t.getUint32(i+12),a=i+16,s=[];for(let c=0;c<n;c++){let d=t.getString(a+0,2),h=t.getString(a+2,2),M=t.getUint32(a+4),F=t.getUint32(a+8)+i,Q=Se(t.getUnicodeString(F,M));s.push({lang:d,country:h,text:Q}),a+=o}return 1===n?s[0].text:s}translateValue(i,t){return"string"==typeof i?t[i]||t[i.toLowerCase()]||i:t[i]||i}}N(rt,"type","icc"),N(rt,"multiSegment",!0),N(rt,"headerLength",18);const Yi={4:ve,8:function(r,i){return[r.getUint8(i),r.getUint8(i+1)>>4,r.getUint8(i+1)%16].map(t=>t.toString(10)).join(".")},12:ve,16:ve,20:ve,24:function(r,i){const t=r.getUint16(i),n=r.getUint16(i+2)-1,o=r.getUint16(i+4),a=r.getUint16(i+6),s=r.getUint16(i+8),c=r.getUint16(i+10);return new Date(Date.UTC(t,n,o,a,s,c))},36:ve,40:ve,48:ve,52:ve,64:(r,i)=>r.getUint32(i),80:ve};function ve(r,i){return Se(r.getString(i,4))}re.set("icc",rt),se(ce,"icc",[[4,"ProfileCMMType"],[8,"ProfileVersion"],[12,"ProfileClass"],[16,"ColorSpaceData"],[20,"ProfileConnectionSpace"],[24,"ProfileDateTime"],[36,"ProfileFileSignature"],[40,"PrimaryPlatform"],[44,"CMMFlags"],[48,"DeviceManufacturer"],[52,"DeviceModel"],[56,"DeviceAttributes"],[64,"RenderingIntent"],[68,"ConnectionSpaceIlluminant"],[80,"ProfileCreator"],[84,"ProfileID"],["Header","ProfileHeader"],["MS00","WCSProfiles"],["bTRC","BlueTRC"],["bXYZ","BlueMatrixColumn"],["bfd","UCRBG"],["bkpt","MediaBlackPoint"],["calt","CalibrationDateTime"],["chad","ChromaticAdaptation"],["chrm","Chromaticity"],["ciis","ColorimetricIntentImageState"],["clot","ColorantTableOut"],["clro","ColorantOrder"],["clrt","ColorantTable"],["cprt","ProfileCopyright"],["crdi","CRDInfo"],["desc","ProfileDescription"],["devs","DeviceSettings"],["dmdd","DeviceModelDesc"],["dmnd","DeviceMfgDesc"],["dscm","ProfileDescriptionML"],["fpce","FocalPlaneColorimetryEstimates"],["gTRC","GreenTRC"],["gXYZ","GreenMatrixColumn"],["gamt","Gamut"],["kTRC","GrayTRC"],["lumi","Luminance"],["meas","Measurement"],["meta","Metadata"],["mmod","MakeAndModel"],["ncl2","NamedColor2"],["ncol","NamedColor"],["ndin","NativeDisplayInfo"],["pre0","Preview0"],["pre1","Preview1"],["pre2","Preview2"],["ps2i","PS2RenderingIntent"],["ps2s","PostScript2CSA"],["psd0","PostScript2CRD0"],["psd1","PostScript2CRD1"],["psd2","PostScript2CRD2"],["psd3","PostScript2CRD3"],["pseq","ProfileSequenceDesc"],["psid","ProfileSequenceIdentifier"],["psvm","PS2CRDVMSize"],["rTRC","RedTRC"],["rXYZ","RedMatrixColumn"],["resp","OutputResponse"],["rhoc","ReflectionHardcopyOrigColorimetry"],["rig0","PerceptualRenderingIntentGamut"],["rig2","SaturationRenderingIntentGamut"],["rpoc","ReflectionPrintOutputColorimetry"],["sape","SceneAppearanceEstimates"],["scoe","SceneColorimetryEstimates"],["scrd","ScreeningDesc"],["scrn","Screening"],["targ","CharTarget"],["tech","Technology"],["vcgt","VideoCardGamma"],["view","ViewingConditions"],["vued","ViewingCondDesc"],["wtpt","MediaWhitePoint"]]);const o
vendor: 5,572 bytes, line 1
1t={"4d2p":"Erdt Systems",AAMA:"Aamazing Technologies",ACER:"Acer",ACLT:"Acolyte Color Research",ACTI:"Actix Sytems",ADAR:"Adara Technology",ADBE:"Adobe",ADI:"ADI Systems",AGFA:"Agfa Graphics",ALMD:"Alps Electric",ALPS:"Alps Electric",ALWN:"Alwan Color Expertise",AMTI:"Amiable Technologies",AOC:"AOC International",APAG:"Apago",APPL:"Apple Computer",AST:"AST","AT&T":"AT&T",BAEL:"BARBIERI electronic",BRCO:"Barco NV",BRKP:"Breakpoint",BROT:"Brother",BULL:"Bull",BUS:"Bus Computer Systems","C-IT":"C-Itoh",CAMR:"Intel",CANO:"Canon",CARR:"Carroll Touch",CASI:"Casio",CBUS:"Colorbus PL",CEL:"Crossfield",CELx:"Crossfield",CGS:"CGS Publishing Technologies International",CHM:"Rochester Robotics",CIGL:"Colour Imaging Group, London",CITI:"Citizen",CL00:"Candela",CLIQ:"Color IQ",CMCO:"Chromaco",CMiX:"CHROMiX",COLO:"Colorgraphic Communications",COMP:"Compaq",COMp:"Compeq/Focus Technology",CONR:"Conrac Display Products",CORD:"Cordata Technologies",CPQ:"Compaq",CPRO:"ColorPro",CRN:"Cornerstone",CTX:"CTX International",CVIS:"ColorVision",CWC:"Fujitsu Laboratories",DARI:"Darius Technology",DATA:"Dataproducts",DCP:"Dry Creek Photo",DCRC:"Digital Contents Resource Center, Chung-Ang University",DELL:"Dell Computer",DIC:"Dainippon Ink and Chemicals",DICO:"Diconix",DIGI:"Digital","DL&C":"Digital Light & Color",DPLG:"Doppelganger",DS:"Dainippon Screen",DSOL:"DOOSOL",DUPN:"DuPont",EPSO:"Epson",ESKO:"Esko-Graphics",ETRI:"Electronics and Telecommunications Research Institute",EVER:"Everex Systems",EXAC:"ExactCODE",Eizo:"Eizo",FALC:"Falco Data Products",FF:"Fuji Photo Film",FFEI:"FujiFilm Electronic Imaging",FNRD:"Fnord Software",FORA:"Fora",FORE:"Forefront Technology",FP:"Fujitsu",FPA:"WayTech Development",FUJI:"Fujitsu",FX:"Fuji Xerox",GCC:"GCC Technologies",GGSL:"Global Graphics Software",GMB:"Gretagmacbeth",GMG:"GMG",GOLD:"GoldStar Technology",GOOG:"Google",GPRT:"Giantprint",GTMB:"Gretagmacbeth",GVC:"WayTech Development",GW2K:"Sony",HCI:"HCI",HDM:"Heidelberger Druckmaschinen",HERM:"Hermes",HITA:"Hitachi America",HP:"Hewlett-Packard",HTC:"Hitachi",HiTi:"HiTi Digital",IBM:"IBM",IDNT:"Scitex",IEC:"Hewlett-Packard",IIYA:"Iiyama North America",IKEG:"Ikegami Electronics",IMAG:"Image Systems",IMI:"Ingram Micro",INTC:"Intel",INTL:"N/A (INTL)",INTR:"Intra Electronics",IOCO:"Iocomm International Technology",IPS:"InfoPrint Solutions Company",IRIS:"Scitex",ISL:"Ichikawa Soft Laboratory",ITNL:"N/A (ITNL)",IVM:"IVM",IWAT:"Iwatsu Electric",Idnt:"Scitex",Inca:"Inca Digital Printers",Iris:"Scitex",JPEG:"Joint Photographic Experts Group",JSFT:"Jetsoft Development",JVC:"JVC Information Products",KART:"Scitex",KFC:"KFC Computek Components",KLH:"KLH Computers",KMHD:"Konica Minolta",KNCA:"Konica",KODA:"Kodak",KYOC:"Kyocera",Kart:"Scitex",LCAG:"Leica",LCCD:"Leeds Colour",LDAK:"Left Dakota",LEAD:"Leading Technology",LEXM:"Lexmark International",LINK:"Link Computer",LINO:"Linotronic",LITE:"Lite-On",Leaf:"Leaf",Lino:"Linotronic",MAGC:"Mag Computronic",MAGI:"MAG Innovision",MANN:"Mannesmann",MICN:"Micron Technology",MICR:"Microtek",MICV:"Microvitec",MINO:"Minolta",MITS:"Mitsubishi Electronics America",MITs:"Mitsuba",MNLT:"Minolta",MODG:"Modgraph",MONI:"Monitronix",MONS:"Monaco Systems",MORS:"Morse Technology",MOTI:"Motive Systems",MSFT:"Microsoft",MUTO:"MUTOH INDUSTRIES",Mits:"Mitsubishi Electric",NANA:"NANAO",NEC:"NEC",NEXP:"NexPress Solutions",NISS:"Nissei Sangyo America",NKON:"Nikon",NONE:"none",OCE:"Oce Technologies",OCEC:"OceColor",OKI:"Oki",OKID:"Okidata",OKIP:"Okidata",OLIV:"Olivetti",OLYM:"Olympus",ONYX:"Onyx Graphics",OPTI:"Optiquest",PACK:"Packard Bell",PANA:"Matsushita Electric Industrial",PANT:"Pantone",PBN:"Packard Bell",PFU:"PFU",PHIL:"Philips Consumer Electronics",PNTX:"HOYA",POne:"Phase One A/S",PREM:"Premier Computer Innovations",PRIN:"Princeton Graphic Systems",PRIP:"Princeton Publishing Labs",QLUX:"Hong Kong",QMS:"QMS",QPCD:"QPcard AB",QUAD:"QuadLaser",QUME:"Qume",RADI:"Radius",RDDx:"Integrated Color Solutions",RDG:"Roland DG",REDM:"REDMS Group",RELI:"Relisys",RGMS:"Rolf Gierling Multitools",RICO:"Ricoh",RNLD:"Edmund Ronald",ROYA:"Royal",RPC:"Ricoh Printing Systems",RTL:"Royal Information Electronics",SAMP:"Sampo",SAMS:"Samsung",SANT:"Jaime Santana Pomares",SCIT:"Scitex",SCRN:"Dainippon Screen",SDP:"Scitex",SEC:"Samsung",SEIK:"Seiko Instruments",SEIk:"Seikosha",SGUY:"ScanGuy.com",SHAR:"Sharp Laboratories",SICC:"International Color Consortium",SONY:"Sony",SPCL:"SpectraCal",STAR:"Star",STC:"Sampo Technology",Scit:"Scitex",Sdp:"Scitex",Sony:"Sony",TALO:"Talon Technology",TAND:"Tandy",TATU:"Tatung",TAXA:"TAXAN America",TDS:"Tokyo Denshi Sekei",TECO:"TECO Information Systems",TEGR:"Tegra",TEKT:"Tektronix",TI:"Texas Instruments",TMKR:"TypeMaker",TOSB:"Toshiba",TOSH:"Toshiba",TOTK:"TOTOKU ELECTRIC",TRIU:"Triumph",TSBT:"Toshiba",TTX:"TTX Computer Products",TVM:"TVM Professional Monitor",TW:"TW Casper",ULSX:"Ulead Systems",UNIS:"Unisys",UTZF:"Utz Fehlau & Sohn",VARI:"Varityper",VIEW:"Viewsonic",VISL:"Visual communication",VIVO:"Vivo Mobile Communication",WANG:"Wang",WLBR:"Wilbur Imaging",WTG2:"Ware To Go",WYSE:"WYSE Technology",XERX:"Xerox",XRIT:"X-Rite",ZRAN:"Zoran",Zebr:"Zebra Technologies",appl:"Apple Computer",bICC:"basICColor",berg:"bergdesign",ceyd:"Integrated Color Solutions",clsp:"MacDermid ColorSpan",ds:"Dainippon Screen",dupn:"DuPont",ffei:"FujiFilm Electronic Imaging",flux:"FluxData",iris:"Scitex",kart:"Scitex",lcms:"Little CMS",lino:"Linotronic",none:"none",ob4d:"Erdt Systems",obic:"Medigraph",quby:"Qubyx Sarl",scit:"Scitex",scrn:"Dainippon Screen",sdp:"Scitex",siwi:"SIWI GRAFIKA",yxym:"YxyMaster"},
1bi={scnr:"Scanner",mntr:"Monitor",prtr:"Printer",link:"Device Link",abst:"Abstract",spac:"Color Space Conversion Profile",nmcl:"Named Color",cenc:"ColorEncodingSpace profile",mid:"MultiplexIdentification profile",mlnk:"MultiplexLink profile",mvis:"MultiplexVisualization profile",nkpf:"Nikon Input Device Profile (NON-STANDARD!)"};se(pe,"icc",[[4,ot],[12,bi],[40,Object.assign({},ot,bi)],[48,ot],[80,ot],[64,{0:"Perceptual",1:"Relative Colorimetric",2:"Saturation",3:"Absolute Colorimetric"}],["tech",{amd:"Active Matrix Display",crt:"Cathode Ray Tube Display",kpcd:"Photo CD",pmd:"Passive Matrix Display",dcam:"Digital Camera",dcpj:"Digital Cinema Projector",dmpc:"Digital Motion Picture Camera",dsub:"Dye Sublimation Printer",epho:"Electrophotographic Printer",esta:"Electrostatic Printer",flex:"Flexography",fprn:"Film Writer",fscn:"Film Scanner",grav:"Gravure",ijet:"Ink Jet Printer",imgs:"Photo Image Setter",mpfr:"Motion Picture Film Recorder",mpfs:"Motion Picture Film Scanner",offs:"Offset Lithography",pjtv:"Projection Television",rpho:"Photographic Paper Printer",rscn:"Reflective Scanner",silk:"Silkscreen",twax:"Thermal Wax Printer",vidc:"Video Camera",vidm:"Video Monitor"}]]);class at extends he{static canHandle(i,t,n){return 237===i.getUint8(t+1)&&"Photoshop"===i.getString(t+4,9)&&void 0!==this.containsIptc8bim(i,t,n)}static headerLength(i,t,n){let o,a=this.containsIptc8bim(i,t,n);if(void 0!==a)return o=i.getUint8(t+a+7),o%2!=0&&(o+=1),0===o&&(o=4),a+8+o}static containsIptc8bim(i,t,n){for(let o=0;o<n;o++)if(this.isIptcSegmentHead(i,t+o))return o}static isIptcSegmentHead(i,t){return 56===i.getUint8(t)&&943868237===i.getUint32(t)&&1028===i.getUint16(t+4)}parse(){let{raw:i}=this,t=this.chunk.byteLength-1,n=!1;for(let o=0;o<t;o++)if(28===this.chunk.getUint8(o)&&2===this.chunk.getUint8(o+1)){n=!0;let a=this.chunk.getUint16(o+3),s=this.chunk.getUint8(o+2),c=this.chunk.getLatin1String(o+5,a);i.set(s,this.pluralizeValue(i.get(s),c)),o+=4+a}else if(n)break;return this.translate(),this.output}pluralizeValue(i,t){return void 0!==i?i instanceof Array?(i.push(t),i):[i,t]:t}}N(at,"type","iptc"),N(at,"translateValues",!1),N(at,"reviveValues",!1),re.set("iptc",at),se(ce,"iptc",[[0,"ApplicationRecordVersion"],[3,"ObjectTypeReference"],[4,"ObjectAttributeReference"],[5,"ObjectName"],[7,"EditStatus"],[8,"EditorialUpdate"],[10,"Urgency"],[12,"SubjectReference"],[15,"Category"],[20,"SupplementalCategories"],[22,"FixtureIdentifier"],[25,"Keywords"],[26,"ContentLocationCode"],[27,"ContentLocationName"],[30,"ReleaseDate"],[35,"ReleaseTime"],[37,"ExpirationDate"],[38,"ExpirationTime"],[40,"SpecialInstructions"],[42,"ActionAdvised"],[45,"ReferenceService"],[47,"ReferenceDate"],[50,"ReferenceNumber"],[55,"DateCreated"],[60,"TimeCreated"],[62,"DigitalCreationDate"],[63,"DigitalCreationTime"],[65,"OriginatingProgram"],[70,"ProgramVersion"],[75,"ObjectCycle"],[80,"Byline"],[85,"BylineTitle"],[90,"City"],[92,"Sublocation"],[95,"State"],[100,"CountryCode"],[101,"Country"],[103,"OriginalTransmissionReference"],[105,"Headline"],[110,"Credit"],[115,"Source"],[116,"CopyrightNotice"],[118,"Contact"],[120,"Caption"],[121,"LocalCaption"],[122,"Writer"],[125,"RasterizedCaption"],[130,"ImageType"],[131,"ImageOrientation"],[135,"LanguageIdentifier"],[150,"AudioType"],[151,"AudioSamplingRate"],[152,"AudioSamplingResolution"],[153,"AudioDuration"],[154,"AudioOutcue"],[184,"JobID"],[185,"MasterDocumentID"],[186,"ShortDocumentID"],[187,"UniqueDocumentID"],[188,"OwnerID"],[200,"ObjectPreviewFileFormat"],[201,"ObjectPreviewFileVersion"],[202,"ObjectPreviewData"],[221,"Prefs"],[225,"ClassifyState"],[228,"SimilarityIndex"],[230,"DocumentNotes"],[231,"DocumentHistory"],[232,"ExifCameraInfo"],[255,"CatalogSets"]]),se(pe,"iptc",[[10,{0:"0 (reserved)",1:"1 (most urgent)",2:"2",3:"3",4:"4",5:"5 (normal urgency)",6:"6",7:"7",8:"8 (least urgent)",9:"9 (user-defined priority)"}],[75,{a:"Morning",b:"Both Morning and Evening",p:"Evening"}],[131,{L:"Landscape",P:"Portrait",S:"Square"}]]);var Vi=ie(2745);let st=(()=>{class r{getOrientedImage(t){return new Promise(n=>{let o;tt(t).catch(a=>{}).then(a=>{if(1!=a){let s=document.createElement("canvas"),c=s.getContext("2d"),d=t.width,h=t.height,M=0,F=0,Q=0;switch(a){case 3:case 4:M=-t.width,F=-t.height,Q=180;break;
1case 5:case 6:d=t.height,h=t.width,F=-t.height,Q=90;break;case 7:case 8:d=t.height,h=t.width,M=-t.width,Q=270}s.width=d,s.height=h,a&&[2,4,5,7].indexOf(a)>-1&&(c.translate(d,0),c.scale(-1,1)),c.rotate(Q*Math.PI/180),c.drawImage(t,M,F),o=document.createElement("img"),o.width=d,o.height=h,o.addEventListener("load",function(){n(o)}),o.src=s.toDataURL("image/png")}else n(t)})})}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Xi=(()=>{class r{constructor(t){this.imageExifService=t,this.timeAtStart=0}compressImage(t,n,o=!1,a=!1){let s=new I.x;if(this.timeAtStart=(new Date).getTime(),this.initialFile=t,"image/jpeg"!==t.type&&"image/png"!==t.type)return setTimeout(()=>{s.error({compressedFile:t,reason:"File provided is neither of type jpg nor of type png.",error:"INVALID_EXTENSION"})},0),s.asObservable();if(t.size/1024/1024<n)return setTimeout(()=>{s.next(t)},0),s.asObservable();let d=document.createElement("canvas"),h=d.getContext("2d"),M=new Image,F=this;return M.onload=()=>{this.imageExifService.getOrientedImage(M).then(Q=>{window.URL.revokeObjectURL(M.src),d.width=Q.width,d.height=Q.height,h?.drawImage(Q,0,0);let J=h?.getImageData(0,0,Q.width,Q.height);"image/png"===t.type&&this.isImgUsingAlpha(J)&&!o&&s.error({compressedFile:t,reason:"File provided is a png image which uses the alpha channel. No compression possible.",error:"PNG_WITH_ALPHA"}),h=d.getContext("2d",{alpha:!1}),h?.drawImage(Q,0,0),F.getCompressedFile(d,50,n,1).then(te=>{s.next(te),F.logExecutionTime(a)}).catch(te=>{s.error(te),F.logExecutionTime(a)})})},M.src=window.URL.createObjectURL(t),s.asObservable()}getCompressedFile(t,n,o,a){return new Promise((c,d)=>{t.toBlob(h=>{if(!h)return d({compressedFile:null,reason:"Blob error",error:"BAD_BLOB"});if(a+1>15)d({compressedFile:this.getResultFile(h),reason:"Could not find the correct compression quality in 15 steps.",error:"MAX_STEPS_EXCEEDED"});else{let M=this.getCalculatedQuality(h,n,o,a);this.checkCompressionStatus(t,h,n,o,a,M).then(F=>{c(F)}).catch(F=>{d(F)})}},"image/jpeg",n/100)})}getResultFile(t){return this.initialFile?this.generateResultFile(t,this.initialFile.name,this.initialFile.type,(new Date).getTime()):null}generateResultFile(t,n,o,a){let s=new Blob([t],{type:o});return this.blobToFile(s,n,a)}blobToFile(t,n,o){let a=t;return a.name=n,a.lastModified=o,a}getCalculatedQuality(t,n,o,a){if(!this.initialFile)return 0;let s=t.size/1024/1024,c=o/s;c>5&&(c=5);let d=s/(this.initialFile.size/1024/1024);d<.05&&(d=.05);let h=0,M=10*Math.abs(d-1)/(1.7*a)/c;return M<1&&(M=1),h=c>=1?n+10*(c-1)*M:n-10*(1-c)*M,h>100&&(h=n+(100-n)/2),h<0&&(h=n-n/2),h}checkCompressionStatus(t,n,o,a,s,c){return new Promise((h,M)=>{100===o&&c>=100?M({compressedFile:this.initialFile,reason:"Unfortunately there was an error while compressing the file.",error:"FILE_BIGGER_THAN_INITIAL_FILE"}):o<1&&c<o?M({compressedFile:this.getResultFile(n),reason:"Could not compress image enough to fit the maximal file size limit.",error:"UNABLE_TO_COMPRESS_ENOUGH"}):c>o&&Math.round(o)==Math.round(c)||s>5&&c>o&&c<o+2||c>o&&Number.isInteger(o)&&Math.floor(c)==o?h(this.getResultFile(n)):(o>c&&Math.round(o)==Math.round(c)&&(c=Math.round(c)-1),h(this.getCompressedFile(t,c,a,s+1)))})}isImgUsingAlpha(t){for(var n=0;n<t.data.length;n+=4)if(255!==t.data[n+3])return!0;return!1}logExecutionTime(t){t&&console.info("Execution time: ",(new Date).getTime()-this.timeAtStart+"ms")}}return r.\u0275fac=function(t){return new(t||r)(e.LFG(st))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Ii=Vi(),ct=window;let Ki=(()=>{class r{constructor(t){this.imageExifService=t}resize(t,n,o,a=!1){let s=new I.x;for(let c=0;c<t.length;c++)this.resizeFile(t[c],n,o,a).then(d=>{s.next(d)}).catch(d=>{s.error(d)});return s.asObservable()}resizeCanvas(t,n,o){return new Promise((s,c)=>{let d=Ii;(!d||!d.resize)&&(d=new ct.pica),d.resize(t,n,o).then(h=>{s(h)},h=>{c(h)})})}resizeBuffer(t){return new Promise((o,a)=>{let s=Ii;(!s||!s.resizeBuffer)&&(s=new ct.pica),s.resizeBuffer(t).then(c=>{o(c)},c=>{a(c)})})}
1resizeFile(t,n,o,a=!1){return new Promise((c,d)=>{let h=document.createElement("canvas"),M=h.getContext("2d"),F=new Image;F.onload=()=>{this.imageExifService.getOrientedImage(F).then(Q=>{ct.URL.revokeObjectURL(F.src),h.width=Q.width,h.height=Q.height,M?.drawImage(Q,0,0);let J=M?.getImageData(0,0,Q.width,Q.height);if(a&&J){let _e=Math.min(n/J.width,o/J.height);n=Math.round(J.width*_e),o=Math.round(J.height*_e)}let te=!0;("image/jpeg"===t.type||"image/png"===t.type&&!this.isImgUsingAlpha(J))&&(te=!1,M=h.getContext("2d",{alpha:!1}),M?.drawImage(Q,0,0));let Ae=document.createElement("canvas");Ae.width=n,Ae.height=o,this.resizeCanvas(h,Ae,{alpha:te}).then(_e=>{_e.toBlob(je=>{if(!je)return d("error blob");let Qt=this.generateResultFile(je,t.name,t.type,(new Date).getTime());c(Qt)},t.type)}).catch(_e=>{d(_e)})})},F.src=ct.URL.createObjectURL(t)})}isImgUsingAlpha(t){for(var n=0;n<t.data.length;n+=4)if(255!==t.data[n+3])return!0;return!1}generateResultFile(t,n,o,a){let s=new Blob([t],{type:o});return this.blobToFile(s,n,a)}blobToFile(t,n,o){let a=t;return a.name=n,a.lastModified=o,a}}return r.\u0275fac=function(t){return new(t||r)(e.LFG(st))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Wi=(()=>{class r{constructor(t,n){this.ng2PicaService=t,this.imageExifService=n,this.timeAtStart=0}resizeImage(t,n,o,a=!1){let s=new I.x;if(this.timeAtStart=(new Date).getTime(),"image/jpeg"!==t.type&&"image/png"!==t.type)return setTimeout(()=>{s.error({resizedFile:t,reason:"The provided File is neither of type jpg nor of type png.",error:"INVALID_EXTENSION"})},0),s.asObservable();let c=new Image,d=this;return c.onload=()=>{this.imageExifService.getOrientedImage(c).then(h=>{window.URL.revokeObjectURL(c.src);let M=h.width,F=h.height,Q=M,J=F;Q>n&&(Q=n,J*=n/M),F=J,J>o&&(J=o,Q*=o/F),J===h.height&&Q===h.width?(s.next(t),d.logExecutionTime(a)):d.ng2PicaService.resize([t],Q,J).subscribe(te=>{s.next(te),d.logExecutionTime(a)},te=>{s.error({resizedFile:t,reason:te,error:"PICA_ERROR"}),d.logExecutionTime(a)})})},c.src=window.URL.createObjectURL(t),s.asObservable()}logExecutionTime(t){t&&console.info("Execution time: ",(new Date).getTime()-this.timeAtStart+"ms")}}return r.\u0275fac=function(t){return new(t||r)(e.LFG(Ki),e.LFG(st))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})(),Ji=(()=>{class r{constructor(t,n,o){this.imgMaxSizeService=t,this.imgMaxPXSizeService=n,this.imageExifService=o}compress(t,n,o=!1,a=!1){let s=new I.x;return t.forEach(c=>{this.compressImage(c,n,o,a).subscribe(d=>{s.next(d)},d=>{s.error(d)})}),s.asObservable()}resize(t,n,o,a=!1){let s=new I.x;return t.forEach(c=>{this.resizeImage(c,n,o,a).subscribe(d=>{s.next(d)},d=>{s.error(d)})}),s.asObservable()}compressImage(t,n,o=!1,a=!1){return this.imgMaxSizeService.compressImage(t,n,o,a)}resizeImage(t,n,o,a=!1){return this.imgMaxPXSizeService.resizeImage(t,n,o,a)}getEXIFOrientedImage(t){return this.imageExifService.getOrientedImage(t)}}return r.\u0275fac=function(t){return new(t||r)(e.LFG(Xi),e.LFG(Wi),e.LFG(st))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var $i=ie(9260);let en=(()=>{class r{constructor(t){this.firestore=t,this.storageRef=$i.Z.app().storage().ref()}obtenerCategorias(){return this.firestore.collection("uanuncioscategorias",o=>o.where("Estado","==",!0)).snapshotChanges()}uploadImageProduct(t,n){var o=this;return(0,z.Z)(function*(){try{return yield(yield o.storageRef.child("anuncioscus/productos/"+t).putString(n,"data_url")).ref.getDownloadURL()}catch{return null}})()}postProduct(t){var n=this;return(0,z.Z)(function*(){return yield n.firestore.collection("uanunciosproductos").add(t)})()}}return r.\u0275fac=function(t){return new(t||r)(e.LFG(K.ST))},r.\u0275prov=e.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();var lt=ie(1894);function tn(r,i){if(1&r&&(e.TgZ(0,"small",35),e._uU(1),e.qZA()),2&r){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.message," ")}}function nn(r,i){if(1&r&&(e.TgZ(0,"div"),e.YNc(1,tn,2,1,"small",34),e.qZA()),2&r){const t=i.$implicit,n=e.oxw();e.xp6(1),e.Q6J("ngIf",(null==n.nombreProducto?null:n.nombreProducto.hasError(t.type))&&((null==n.nombreProducto?null:n.nombreProducto.dirty)||(null==n.nombreProducto?null:n.nombreProducto.touched))
1)}}function rn(r,i){if(1&r){const t=e.EpF();e.TgZ(0,"ngx-dropzone-image-preview",38),e.NdJ("removed",function(){e.CHM(t);const o=e.oxw().$implicit,a=e.oxw();return e.KtG(a.onRemove(o))}),e.qZA()}if(2&r){const t=e.oxw().$implicit;e.Q6J("file",t)("removable",!0)}}function on(r,i){if(1&r&&(e.TgZ(0,"div",36),e.YNc(1,rn,1,2,"ngx-dropzone-image-preview",37),e.qZA()),2&r){const t=i.$implicit;e.xp6(1),e.Q6J("ngIf","image"==t.type.split("/")[0])}}function an(r,i){if(1&r&&(e.TgZ(0,"small",35),e._uU(1),e.qZA()),2&r){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.message," ")}}function sn(r,i){if(1&r&&(e.TgZ(0,"div"),e.YNc(1,an,2,1,"small",34),e.qZA()),2&r){const t=i.$implicit,n=e.oxw();e.xp6(1),e.Q6J("ngIf",(null==n.descripcionProducto?null:n.descripcionProducto.hasError(t.type))&&((null==n.descripcionProducto?null:n.descripcionProducto.dirty)||(null==n.descripcionProducto?null:n.descripcionProducto.touched)))}}function cn(r,i){if(1&r&&(e.TgZ(0,"small",35),e._uU(1),e.qZA()),2&r){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.message," ")}}function ln(r,i){if(1&r&&(e.TgZ(0,"div"),e.YNc(1,cn,2,1,"small",34),e.qZA()),2&r){const t=i.$implicit,n=e.oxw();e.xp6(1),e.Q6J("ngIf",(null==n.precioProducto?null:n.precioProducto.hasError(t.type))&&((null==n.precioProducto?null:n.precioProducto.dirty)||(null==n.precioProducto?null:n.precioProducto.touched)))}}function un(r,i){if(1&r&&(e.TgZ(0,"small",35),e._uU(1),e.qZA()),2&r){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.message," ")}}function dn(r,i){if(1&r&&(e.TgZ(0,"div"),e.YNc(1,un,2,1,"small",34),e.qZA()),2&r){const t=i.$implicit,n=e.oxw();e.xp6(1),e.Q6J("ngIf",(null==n.condicionProducto?null:n.condicionProducto.hasError(t.type))&&((null==n.condicionProducto?null:n.condicionProducto.dirty)||(null==n.condicionProducto?null:n.condicionProducto.touched)))}}function gn(r,i){if(1&r&&(e.TgZ(0,"small",35),e._uU(1),e.qZA()),2&r){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.message," ")}}function pn(r,i){if(1&r&&(e.TgZ(0,"div"),e.YNc(1,gn,2,1,"small",34),e.qZA()),2&r){const t=i.$implicit,n=e.oxw();e.xp6(1),e.Q6J("ngIf",(null==n.direccionProducto?null:n.direccionProducto.hasError(t.type))&&((null==n.direccionProducto?null:n.direccionProducto.dirty)||(null==n.direccionProducto?null:n.direccionProducto.touched)))}}function hn(r,i){if(1&r&&(e.TgZ(0,"option",30),e._uU(1),e.qZA()),2&r){const t=i.$implicit;e.s9C("value",t.Nombre),e.xp6(1),e.hij(" ",t.Nombre," ")}}function fn(r,i){if(1&r&&(e.TgZ(0,"small",35),e._uU(1),e.qZA()),2&r){const t=e.oxw().$implicit;e.xp6(1),e.hij(" ",t.message," ")}}function mn(r,i){if(1&r&&(e.TgZ(0,"div"),e.YNc(1,fn,2,1,"small",34),e.qZA()),2&r){const t=i.$implicit,n=e.oxw();e.xp6(1),e.Q6J("ngIf",(null==n.categoriaProducto?null:n.categoriaProducto.hasError(t.type))&&((null==n.categoriaProducto?null:n.categoriaProducto.dirty)||(null==n.categoriaProducto?null:n.categoriaProducto.touched)))}}function _n(r,i){if(1&r){const t=e.EpF();e.TgZ(0,"div")(1,"button",3),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.signInWithFacebook())}),e._uU(2,"Login com Facebook"),e.qZA()()}}function vn(r,i){if(1&r){const t=e.EpF();e.TgZ(0,"div")(1,"p"),e._uU(2),e.qZA(),e.TgZ(3,"button",3),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.signOut())}),e._uU(4,"Logout"),e.qZA()()}if(2&r){const t=e.oxw();e.xp6(2),e.hij("Bem-vindo, ",t.user,"!")}}const bn=[{path:"",component:ae},{path:"buscador",component:f},{path:"producto",component:be},{path:"vendedor",component:ut},{path:"producto-vender",component:(()=>{class r{constructor(t,n,o){this.ng2ImgMax=t,this.anunProductServices=n,this.formBuilder=o,this.files=[],this.categories=[],this.errorMessages={nombreProducto:[{type:"required",message:"Ingresar nombre del producto"}],descripcionProducto:[{type:"required",message:"Ingresar descripci\xf3n del producto"}],precioProducto:[{type:"required",message:"Ingresar precio del producto"}],condicionProducto:[{type:"required",message:"Seleccionar estado del producto"}],direccionProducto:[{type:"required",message:"Ingresar direcci\xf3n del producto"}],categoriaProducto:[{type:"required",message:"Seleccionar categor\xeda"}]},this.formProducts=this.formBuilder.group({nombreProducto:["",[B.kI.required]],descripcionProducto:["",[B.kI.required]],precioProducto:["",[B.kI.required]],condicionProducto:["",[B.kI.required]],direccionProducto:["",[B.kI.required]],c
1ategoriaProducto:["",[B.kI.required]]})}get nombreProducto(){return this.formProducts.get("nombreProducto")}get descripcionProducto(){return this.formProducts.get("descripcionProducto")}get precioProducto(){return this.formProducts.get("precioProducto")}get condicionProducto(){return this.formProducts.get("condicionProducto")}get direccionProducto(){return this.formProducts.get("direccionProducto")}get categoriaProducto(){return this.formProducts.get("categoriaProducto")}ngOnInit(){this.getAllCategories()}getAllCategories(){this.anunProductServices.obtenerCategorias().subscribe({next:t=>{this.categories=[],t.forEach(n=>{this.categories.push({id:n.payload.doc.id,...n.payload.doc.data()})})}})}onSelect(t){t.addedFiles.forEach(n=>{this.ng2ImgMax.compressImage(n,.3).subscribe({next:o=>{this.files.push(o)}})})}onRemove(t){this.files.splice(this.files.indexOf(t),1)}saveProduct(){if(console.log(this.formProducts.value),this.formProducts.invalid)return Object.values(this.formProducts.controls).forEach(t=>{t instanceof B.cw?Object.values(t.controls).forEach(n=>n.markAsTouched()):t.markAsTouched()});{let t={nombreProducto:this.formProducts.get("nombreProducto")?.value,descripcionProducto:this.formProducts.get("descripcionProducto")?.value,precioProducto:this.formProducts.get("precioProducto")?.value,condicionProducto:this.formProducts.get("condicionProducto")?.value,direccionProducto:this.formProducts.get("direccionProducto")?.value,categoriaProducto:this.formProducts.get("categoriaProducto")?.value,usuarioId:"",estadoProducto:!0};if(this.files.length>0){let n=[];for(let o=0;o<this.files.length;o++){let a=new FileReader;a.readAsDataURL(this.files[o]),a.onloadend=()=>{this.anunProductServices.uploadImageProduct("anun-img-"+(new Date).getTime(),a.result).then(s=>
1{n.push({nombre:"anun-img-"+(new Date).getTime(),url:s}),o+1==this.files.length&&(t.imagenes=n,this.anunProductServices.postProduct(t).then(c=>{l().fire({icon:"success",title:"Producto agregado",text:"El Producto se ha agregado correctamente"})}))})}}}else this.anunProductServices.postProduct(t).then(n=>{l().fire({icon:"success",title:"Producto agregado",text:"El Producto se ha agregado correctamente"})})}}}return r.\u0275fac=function(t){return new(t||r)(e.Y36(Ji),e.Y36(en),e.Y36(B.qu))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-ofer-product"]],decls:69,vars:10,consts:[[1,"div_mac"],[1,"div_blue_zone"],[1,"container"],[1,"row"],[1,"div_search_zone"],[1,"row","justify-content-center"],[1,"card"],[1,"card-body"],[1,"features-title","text-center"],[3,"formGroup","ngSubmit"],[1,"form-group","mt-5"],["for","inputNombre",1,"features-title"],["type","text","id","inputNombre","placeholder","C\xf3mo se llama tu producto","formControlName","nombreProducto",1,"form-control","border-light"],[4,"ngFor","ngForOf"],[1,"col-12","col-md-6"],[1,"border-light"],[1,"d-flex","flex-column","align-items-center","border-light","shadow"],[3,"change"],["class","div",4,"ngFor","ngForOf"],[1,"col-12","col-md-6","justify-content-center"],[1,"col-md-12"],[1,"form-group"],["id","descripcion","rows","3","formControlName","descripcionProducto",1,"form-control"],[1,"col-md-6"],["type","text","id","precio","formControlName","precioProducto",1,"form-control"],["id","condicion","formControlName","condicionProducto",1,"form-control"],["value","nuevo"],["value","usado"],["type","text","id","ubicacion","formControlName","direccionProducto",1,"form-control"],["id","categoria","formControlName","categoriaProducto",1,"form-control"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],[1,"text-right"],[1,"btn","btn-primary","custom-btn-size","contact-seller-btn"],["class","text-danger",4,"ngIf"],[1,"text-danger"],[1,"div"],["ngProjectAs","ngx-dropzone-preview",5,["ngx-dropzone-preview"],3,"file","removable","removed",4,"ngIf"],["ngProjectAs","ngx-dropzone-preview",5,["ngx-dropzone-preview"],3,"file","removable","removed"]],template:function(t,n){1&t&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3),e._UZ(4,"div",4),e.qZA(),e.TgZ(5,"div",5)(6,"div",6)(7,"div",7)(8,"p",8)(9,"strong"),e._uU(10,"\xa1Empieza a vender ahora!"),e.qZA()(),e.TgZ(11,"form",9),e.NdJ("ngSubmit",function(){return n.saveProduct()}),e.TgZ(12,"div",10)(13,"p",11),e._uU(14,"Ingresa el t\xedtulo de tu p\xfablicaci\xf3n"),e.qZA(),e._UZ(15,"input",12),e.YNc(16,nn,2,1,"div",13),e.qZA(),e.TgZ(17,"div",14)(18,"div",15)(19,"div",16)(20,"ngx-dropzone",17),e.NdJ("change",function(a){return n.onSelect(a)}),e.TgZ(21,"ngx-dropzone-label"),e._uU(22,"Suelta los archivos aqu\xed"),e.qZA(),e.YNc(23,on,2,1,"div",18),e.qZA()()()(),e.TgZ(24,"div",19)(25,"div",2)(26,"div",3)(27,"div",20)(28,"div",21)(29,"p",11),e._uU(30,"Descripci\xf3n"),e.qZA(),e._UZ(31,"textarea",22),e.YNc(32,sn,2,1,"div",13),e.qZA()()(),e.TgZ(33,"div",3)(34,"div",23)(35,"div",21)(36,"p",11),e._uU(37,"Precio"),e.qZA(),e._UZ(38,"input",24),e.YNc(39,ln,2,1,"div",13),e.qZA()(),e.TgZ(40,"div",23)(41,"div",21)(42,"p",11),e._uU(43,"Condici\xf3n"),e.qZA(),e.TgZ(44,"select",25)(45,"option",26),e._uU(46,"Nuevo"),e.qZA(),e.TgZ(47,"option",27),e._uU(48,"Usado"),e.qZA()(),e.YNc(49,dn,2,1,"div",13),e.qZA()()(),e.TgZ(50,"div",3)(51,"div",23)(52,"div",21)(53,"p",11),e._uU(54,"Ubicaci\xf3n"),e.qZA(),e._UZ(55,"input",28),e.YNc(56,pn,2,1,"div",13),e.qZA()(),e.TgZ(57,"div",23)(58,"div",21)(59,"p",11),e._uU(60,"Categror\xeda"),e.qZA(),e.TgZ(61,"select",29)(62,"option",30),e._uU(63,"Seleccionar categor\xeda"),e.qZA(),e.YNc(64,hn,2,2,"option",31),e.qZA(),e.YNc(65,mn,2,1,"div",13),e.qZA()()()(),e.TgZ(66,"div",32)(67,"button",33),e._uU(68,"Publicar ahora"),e.qZA()()()()()()()()()()),2&t&&(e.xp6(11),e.Q6J("formGroup",n.formProducts),e.xp6(
15),e.Q6J("ngForOf",n.errorMessages.nombreProducto),e.xp6(7),e.Q6J("ngForOf",n.files),e.xp6(9),e.Q6J("ngForOf",n.errorMessages.descripcionProducto),e.xp6(7),e.Q6J("ngForOf",n.errorMessages.descripcionProducto),e.xp6(10),e.Q6J("ngForOf",n.errorMessages.condicionProducto),e.xp6(7),e.Q6J("ngForOf",n.errorMessages.descripcionProducto),e.xp6(6),e.Q6J("value",""),e.xp6(2),e.Q6J("ngForOf",n.categories),e.xp6(1),e.Q6J("ngForOf",n.errorMessages.categoriaProducto))},dependencies:[de.sg,de.O5,B._Y,B.YN,B.Kr,B.Fj,B.EJ,B.JJ,B.JL,lt._f,lt.NP,lt.sv,B.sg,B.u],styles:[".div_blue_zone[_ngcontent-%COMP%]{background-color:#ccc}.div_search_zone[_ngcontent-%COMP%]{margin-top:10vh;display:flex}.search-container[_ngcontent-%COMP%]{position:relative;display:inline-block}.search-input[_ngcontent-%COMP%]{border:1px solid #efefef;border-radius:25px;padding:8px 30px 8px 8px;width:780px;height:50px;font-size:16px;background-color:#efefef}.search-icon-container[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);right:5px;cursor:pointer;background-color:#2e56a1;border-radius:25px}.fa-search[_ngcontent-%COMP%]{font-size:16px;color:#fff;padding:12px}.div_name[_ngcontent-%COMP%]{display:flex;align-items:center;width:10%;font-size:16px;margin-left:40px}.div_logout[_ngcontent-%COMP%]{display:flex;align-items:center;width:20%;font-size:16px}.div_title_header[_ngcontent-%COMP%]{font-size:20px;font-weight:700}.div_options_header[_ngcontent-%COMP%]{margin-right:2px;font-size:16px;padding:15px}.btn_send[_ngcontent-%COMP%]{width:130px;height:40px;font-size:16px}.product-images[_ngcontent-%COMP%]{max-height:300px;overflow-y:auto}.scrollable[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}.scrollable[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#888;border-radius:4px}.scrollable[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:#555}.product-description[_ngcontent-%COMP%]{margin-top:20px}.product-images[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;display:block;margin-bottom:10px}.main-product-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;padding:0 0 25px}.product-details[_ngcontent-%COMP%]{text-align:center}.product-details[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#2e56a1;font-size:14px;text-align:left}.product-details-p[_ngcontent-%COMP%]{color:#efefef;font-size:14px;text-align:left}.product-details[_ngcontent-%COMP%]   h3.product-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:20px;text-align:left;margin:0rem}.text-primary-option[_ngcontent-%COMP%]{color:#2e56a1!important}.btn-primary[_ngcontent-%COMP%]{background-color:#a7c600!important;border:#a7c600!important;border-radius:.8rem;margin:0 0 25px}.product-details[_ngcontent-%COMP%]   h4.product-subtitle[_ngcontent-%COMP%]{color:#2e56a1;font-size:20px;text-align:left}p.features-title[_ngcontent-%COMP%]{color:#2e56a1;font-size:20px;margin-top:5px}.product-details[_ngcontent-%COMP%]   p.product-features[_ngcontent-%COMP%]{color:#888;font-size:14px;text-align:justify}.product-details[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:20px}.product-details[_ngcontent-%COMP%]   .info-item[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#888;font-size:14px}.product-details[_ngcontent-%COMP%]   .contact-seller-btn[_ngcontent-%COMP%]{margin-top:20px}.small-image[_ngcontent-%COMP%]{max-width:100%;height:auto;width:100%;margin-bottom:10px;border-radius:.8rem}.custom-btn-size[_ngcontent-%COMP%]{padding:15px 30px;font-size:1.1rem;font-weight:700}.custom-btn-size-modal[_ngcontent-%COMP%]{padding:5px 15px;height:35px;width:30%;font-size:1.5rem;font-weight:700}.confirmation-title[_ngcontent-%COMP%]{color:#2e56a1;margin:0 200px}.confirmation[_ngcontent-%COMP%]{color:#2e56a1}.img-client[_ngcontent-%COMP%]{width:150px;height:150px}.name-client[_ngcontent-%COMP%]{color:#555!important;font-weight:700;margin:0}.info-client[_ngcontent-%COMP%]{width:50%;height:auto;border-radius:50%}.date-client-title[_ngcontent-%COMP%]{margin:0rem 5rem 0 0;color:#2e56a1!important}.date-client[_ngcontent-%COMP%]{margin:0rem 1rem 0 0;color:#888!important}.card-info[_ngcontent-%COMP%]{max-width:100%;margin:0 auto;height:300px;border-radius:.8rem}.card-info-form[_ngcontent-%COMP%]{max-width:70%;height:210px;margin:0 0 20px;border-radius:.8rem}.card_requirement_description[_ngcontent-%COMP%]{border-radius:1rem}.container-card[_ngcontent-%COMP%]{width:68%;margin-right:200px;margin-left:200px}.card-product[_ngcontent-%COMP%]{background-color:#ccc}
1.card-text-informacion[_ngcontent-%COMP%]{color:#2e56a1;font-size:12px;font-weight:700;margin-left:1rem}.scroll-y[_ngcontent-%COMP%]{max-height:400px;overflow-y:auto}@media (min-width: 320px) and (max-width: 850px){.resolution-movil[_ngcontent-%COMP%]{text-align:center;padding:15px 0}.small-image[_ngcontent-%COMP%]{justify-content:center;max-width:100%;height:auto;width:100%;margin-bottom:10px;border-radius:.8rem}.confirmation-title[_ngcontent-%COMP%]{color:#2e56a1;margin:0 160px}p.features-title[_ngcontent-%COMP%]{color:#2e56a1;font-size:20px;margin-top:5px;text-align:center}.nav_header_tab[_ngcontent-%COMP%]{justify-content:center;margin-left:0!important;margin-right:0!important}.nav-item[_ngcontent-%COMP%]{width:100%!important;text-align:center}.card-info-form[_ngcontent-%COMP%]{max-width:100%;height:210px;margin:0 0 20px;border-radius:.8rem}.container-card[_ngcontent-%COMP%]{width:100%;margin-right:0;margin-left:0}.product-details[_ngcontent-%COMP%]   h3.product-title[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700;font-size:10px;text-align:left;margin:0rem}.product-details[_ngcontent-%COMP%]   h4.product-subtitle[_ngcontent-%COMP%]{color:#2e56a1;font-size:10px;text-align:left}}.div_title_requirements[_ngcontent-%COMP%]{text-align:center;font-size:17pt;font-weight:700;padding:0vh 0vh 1.5vh;color:#2e56a1}.div_background_header[_ngcontent-%COMP%]{background-color:#ccc;padding:.3% 0% 0%}.nav_header_tab[_ngcontent-%COMP%]{justify-content:left;margin-left:200px;margin-right:335px}.nav-item[_ngcontent-%COMP%]{width:20%;text-align:center}.nav-link[_ngcontent-%COMP%]{color:#fff;background-color:#888;height:5vh;font-size:17px;border-radius:1rem}.nav-link.active[_ngcontent-%COMP%]{color:#2e56a1;font-weight:700}@media screen and (min-width: 4000px) and (max-width: 5000px){.div_mac[_ngcontent-%COMP%]{max-width:1920px;margin:0 auto;transform-origin:top}}"]}),r})()},{path:"login",component:(()=>{class r{constructor(t){this.authService=t}signInWithFacebook(){this.authService.signIn(R.PROVIDER_ID).then(t=>{this.user=t,this.loggedIn=!0}).catch(t=>{console.error("Erro no login social:",t)})}signOut(){this.authService.signOut().then(()=>{this.user=void 0,this.loggedIn=!1}).catch(t=>{console.error("Erro ao fazer logout:",t)})}ngOnInit(){}}return r.\u0275fac=function(t){return new(t||r)(e.Y36(P))},r.\u0275cmp=e.Xpm({type:r,selectors:[["app-login-social"]],decls:6,vars:2,consts:[[2,"height","100px"],[1,"",2,"width","500px"],[4,"ngIf"],[3,"click"]],template:function(t,n){1&t&&(e._UZ(0,"div",0),e.TgZ(1,"div",1)(2,"div"),e._uU(3,"hola aqui estamos "),e.qZA(),e.YNc(4,_n,3,0,"div",2),e.YNc(5,vn,5,1,"div",2),e.qZA()),2&t&&(e.xp6(4),e.Q6J("ngIf",!n.loggedIn),e.xp6(1),e.Q6J("ngIf",n.loggedIn))},dependencies:[de.O5]}),r})()}];var Cn=ie(9832),In=ie(529);let xn=(()=>{class r{}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=e.oAB({type:r}),r.\u0275inj=e.cJS({providers:[k,{provide:"SocialAuthServiceConfig",useValue:{autoLogin:!1,providers:[{id:R.PROVIDER_ID,provider:new R("332630619622746")}],onError:i=>{console.error(i)}}}],imports:[S,de.ez,D.Bz.forChild(bn),B.u5,$.aw.forRoot({loader:{provide:$.Zw,useFactory:xi,deps:[In.eN]}}),lt.bB,B.UX]}),r})();function xi(r){return new Cn.w(r,"./assets/i18n/",".json")}},2745:qt=>{qt.exports=function D(e,B,U){function O(m,_){if(!B[m]){if(!e[m]){if(f)return f(m,!0);var u=new Error("Cannot find module '"+m+"'");throw u.code="MODULE_NOT_FOUND",u}var I=B[m]={exports:{}};e[m][0].call(I.exports,function(A){return O(e[m][1][A]||A)},I,I.exports,D,e,B,U)}return B[m].exports}for(var f=void 0,g=0;g<U.length;g++)O(U[g]);return O}({1:[function(D,e,B){"use strict";var U=D("multimath"),O=D("./mm_unsharp_mask"),f=D("./mm_resize");function g(m){var _=m||[],l={js:_.indexOf("js")>=0,wasm:_.indexOf("wasm")>=0};U.call(this,l),this.features={js:l.js,wasm:l.wasm&&this.has_wasm()},this.use(O),this.use(f)}(g.prototype=Object.create(U.prototype)).constructor=g,g.prototype.resizeAndUnsharp=function(_,l){var u=this.resize(_,l);return _.unsharpAmount&&this.unsharp_mask(u,_.toWidth,_.toHeight,_.unsharpAmount,_.unsharpRadius,_.unsharpThreshold),u},e.exports=g},{"./mm_resize":4,"./mm_unsharp_mask":9,multimath:19}],2:[function(D,e,B){"use strict";function U(l){return l<0?0:l>255?255:l}function O(l){return l>=0?l:0}e.exports={convolveHor:function f(l,u,I,A,v,b){var x,P,S,E,R,q,V,Z,L,j,k,K=0,G=0;for(L=0;L<A;L++){for(R=0,j=0;j<v;j++){for(q=b[R++],V=b[R++],Z=K+4*q|0,x=P=S=E=0;V>0;V--)E=E+(k=b[R++])*l[Z+3]|0,S=S+k*l[Z+2]|0,P=P+k*l[Z+1]|0,x=x+k*l[Z]|0,Z=Z+4|0;u[G+3]=O(E>>7),u[G+2]=O(S>>7),u[G+1]=O(P>>7),u[G]=O(x>>7),G=G+4*A|0}G=4*(L+1)|0,K=(L+1)*I*4|0}},convolveVert:function g(l,u,I,A,v,b){var x,P,S,E,R,q,V,Z,L,j,k,K=0,G=0;for(L=0;L<A;L++){for(R=0,j=0;j<v;j++){for(q=b[R++],V=b[R++],Z=K+4*q|0,x=P=S=E=0;V>0;V--)E=E+(k=b[R++])*l[Z+3]|0,S=S+k*l[Z+2]|0,P=P+k*l[Z+1]|0,x=x+k*l[Z]|0,Z=Z+4|0;x>>=7,P>>=7,S>>=7,u[G+3]=U(8192+(E>>=7)>>14),u[G+2]=U(S+8192>>14),u[G+1]=U(P+8192>>14),u[G]=U(x+8192>>14),G=G+4*A|0}G=4*(L+1)|0,K=(L+1)*I*4|0}},convolveHorWithPre:function m(l,u,I,A,v,b){var x,P,S,E,R,q,V,Z,L,j,k,K,G=0,$=0;for(j=0;j<A;j++){for(q=0,k=0;k<v;k++){for(V=b[q++],Z=b[q++],L=G+4*V|0,x=P=S=E=0;Z>0;Z--)E=E+(K=b[q++])*(R=l[L+3])|0,S=S+K*l[L+2]*R|0,P=P+K*l[L+1]*R|0,x=x+K*l[L]*R|0,L=L+4|0;S=S/255|0,P=P/255|0,x=x/255|0,u[$+3]=O(E>>7),u[$+2]=O(S>>7),u[$+1]=O(P>>7),u[$]=O(x>>7),$=$+4*A|0}$=4*(j+1)|0,G=(j+1)*I*4|0}},convolveVertWithPre:function _(l,u,I,A,v,b){var x,P,S,E,R,q,V,Z,L,j,k,K=0,G=0;for(L=0;L<A;L++){for(R=0,j=0;j<v;j++){for(q=b[R++],V=b[R++],Z=K+4*q|0,x=P=S=E=0;V>0;V--)E=E+(k=b[R++])*l[Z+3]|0,S=S+k*l[Z+2]|0,P=P+k*l[Z+1]|0,x=x+k*l[Z]|0,Z=Z+4|0;x>>=7,P>>=7,S>>=7,(E=U(8192+(E>>=7)>>14))>0&&(x=255*x/E|0,P=255*P/E|0,S=255*S/E|0),u[G+3]=E,u[G+2]=U(S+8192>>14),u[G+1]=U(P+8192>>14),u[G]=U(x+8192>>14),G=G+4*A|0}G=4*(L+1)|0,K=(L+1)*I*4|0}}}},{}],3:[function(D,e,B){"use strict";e.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAEYA2AGf39/f39/AGAAAGAIf39/f39/f38AAg8BA2VudgZtZW1vcnkCAAADBwYBAAAAAAIGBgF/AEEACweUAQgRX193YXNtX2NhbGxfY3RvcnMAAAtjb252b2x2ZUhvcgABDGNvbnZvbHZlVmVydAACEmNvbnZvbHZlSG9yV2l0aFByZQADE2NvbnZvbHZlVmVydFdpdGhQcmUABApjb252b2x2ZUhWAAUMX19kc29faGFuZGxlAwAYX193YXNtX2FwcGx5X2RhdGFfcmVsb2NzAAAKyA4GAwABC4wDARB/AkAgA0UNACAERQ0AIANBAnQhFQNAQQAhE0EAIQsDQCALQQJqIQcCfyALQQF0IAVqIgYuAQIiC0UEQEEAIQhBACEGQQAhCUEAIQogBwwBCyASIAYuAQBqIQhBACEJQQAhCiALIRRBACEOIAchBkEAIQ8DQCAFIAZBAXRqLgEAIhAgACAIQQJ0aigCACIRQRh2bCAPaiEPIBFB/wFxIBBsIAlqIQkgEUEQdkH/AXEgEGwgDmohDiARQQh2Qf8BcSAQbCAKaiEKIAhBAWohCCAGQQFqIQYgFEEBayIUDQALIAlBB3UhCCAKQQd1IQYgDkEHdSEJIA9BB3UhCiAHIAtqCyELIAEgDEEBdCIHaiAIQQAgCEEAShs7AQAgASAHQQJyaiAGQQAgBkEAShs7AQAgASAHQQRyaiAJQQAgCUEAShs7AQAgASAHQQZyaiAKQQAgCkEAShs7AQAgDCAVaiEMIBNBAWoiEyAERw0ACyANQQFqIg0gAmwhEiANQQJ0IQwgAyANRw0ACwsL2gMBD38CQCADRQ0AIARFDQAgAkECdCEUA0AgCyEMQQAhE0EAIQIDQCACQQJqIQYCfyACQQF0IAVqIgcuAQIiAkUEQEEAIQhBACEHQQAhCkEAIQkgBgwBCyAHLgEAQQJ0IBJqIQhBACEJIAIhCkEAIQ0gBiEHQQAhDkEAIQ8DQCAFIAdBAXRqLgEAIhAgACAIQQF0IhFqLwEAbCAJaiEJIAAgEUEGcmovAQAgEGwgDmohDiAAIBFBBHJqLwEAIBBsIA9qIQ8gACARQQJyai8BACAQbCANaiENIAhBBGohCCAHQQFqIQcgCkEBayIKDQALIAlBB3UhCCANQQd1IQcgDkEHdSEKIA9BB3UhCSACIAZqCyECIAEgDEECdGogB0GAQGtBDnUiBkH/ASAGQf8BSBsiBkEAIAZBAEobQQh0QYD+A3EgCUGAQGtBDnUiBkH/ASAGQf8BSBsiBkEAIAZBAEobQRB0QYCA/AdxIApBgEBrQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EYdHJyIAhBgEBrQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG3I2AgAgAyAMaiEMIBNBAWoiEyAERw0ACyAUIAtBAWoiC2whEiADIAtHDQALCwuSAwEQfwJAIANFDQAgBEUNACADQQJ0IRUDQEEAIRNBACEGA0AgBkECaiEIAn8gBkEBdCAFaiIGLgECIgdFBEBBACEJQQAhDEEAIQ1BACEOIAgMAQsgEiAGLgEAaiEJQQAhDkEAIQ1BACEMIAchFEEAIQ8gCCEGA0AgBSAGQQF0ai4BACAAIAlBAnRqKAIAIhBBGHZsIhEgD2ohDyARIBBBEHZB/wFxbCAMaiEMIBEgEEEIdkH/AXFsIA1qIQ0gESAQQf8BcWwgDmohDiAJQQFqIQkgBkEBaiEGIBRBAWsiFA0ACyAPQQd1IQkgByAIagshBiABIApBAXQiCGogDkH/AW1BB3UiB0EAIAdBAEobOwEAIAEgCEECcmogDUH/AW1BB3UiB0EAIAdBAEobOwEAIAEgCEEEcmogDEH/AW1BB3UiB0EAIAdBAEobOwEAIAEgCEEGcmogCUEAIAlBAEobOwEAIAogFWohCiATQQFqIhMgBEcNAAsgC0EBaiILIAJsIRIgC0ECdCEKIAMgC0cNAAsLC4IEAQ9/AkAgA0UNACAERQ0AIAJBAnQhFA
1NAIAshDEEAIRJBACEHA0AgB0ECaiEKAn8gB0EBdCAFaiICLgECIhNFBEBBACEIQQAhCUEAIQYgCiEHQQAMAQsgAi4BAEECdCARaiEJQQAhByATIQJBACENIAohBkEAIQ5BACEPA0AgBSAGQQF0ai4BACIIIAAgCUEBdCIQai8BAGwgB2ohByAAIBBBBnJqLwEAIAhsIA5qIQ4gACAQQQRyai8BACAIbCAPaiEPIAAgEEECcmovAQAgCGwgDWohDSAJQQRqIQkgBkEBaiEGIAJBAWsiAg0ACyAHQQd1IQggDUEHdSEJIA9BB3UhBiAKIBNqIQcgDkEHdQtBgEBrQQ51IgJB/wEgAkH/AUgbIgJBACACQQBKGyIKQf8BcQRAIAlB/wFsIAJtIQkgCEH/AWwgAm0hCCAGQf8BbCACbSEGCyABIAxBAnRqIAlBgEBrQQ51IgJB/wEgAkH/AUgbIgJBACACQQBKG0EIdEGA/gNxIAZBgEBrQQ51IgJB/wEgAkH/AUgbIgJBACACQQBKG0EQdEGAgPwHcSAKQRh0ciAIQYBAa0EOdSICQf8BIAJB/wFIGyICQQAgAkEAShtycjYCACADIAxqIQwgEkEBaiISIARHDQALIBQgC0EBaiILbCERIAMgC0cNAAsLC0AAIAcEQEEAIAIgAyAEIAUgABADIAJBACAEIAUgBiABEAQPC0EAIAIgAyAEIAUgABABIAJBACAEIAUgBiABEAIL"},{}],4:[function(D,e,B){"use strict";e.exports={name:"resize",fn:D("./resize"),wasm_fn:D("./resize_wasm"),wasm_src:D("./convolve_wasm_base64")}},{"./convolve_wasm_base64":3,"./resize":5,"./resize_wasm":8}],5:[function(D,e,B){"use strict";var U=D("./resize_filter_gen"),O=D("./convolve"),f=O.convolveHor,g=O.convolveVert,m=O.convolveHorWithPre,_=O.convolveVertWithPre;e.exports=function(A){var v=A.src,b=A.width,x=A.height,P=A.toWidth,S=A.toHeight,E=A.scaleX||A.toWidth/A.width,R=A.scaleY||A.toHeight/A.height,q=A.offsetX||0,V=A.offsetY||0,Z=A.dest||new Uint8Array(P*S*4),L=typeof A.filter>"u"?"mks2013":A.filter,j=U(L,b,P,E,q),k=U(L,x,S,R,V),K=new Uint16Array(P*x*4);return function l(I,A,v){for(var b=3,x=A*v*4|0;b<x;){if(255!==I[b])return!0;b=b+4|0}return!1}(v,b,x)?(m(v,K,b,x,P,j),_(K,Z,x,P,S,k)):(f(v,K,b,x,P,j),g(K,Z,x,P,S,k),function u(I,A,v){for(var b=3,x=A*v*4|0;b<x;)I[b]=255,b=b+4|0}(Z,P,S)),Z}},{"./convolve":2,"./resize_filter_gen":6}],6:[function(D,e,B){"use strict";var U=D("./resize_filter_info");function f(g){return Math.round(16383*g)}e.exports=function(m,_,l,u,I){var P,S,E,R,q,V,Z,L,j,k,K,G,$,W,p,C,A=U.filter[m].fn,v=1/u,b=Math.min(1,u),x=U.filter[m].win/b,T=Math.floor(2*(x+1)),w=new Int16Array((T+2)*l),X=0,H=!w.subarray||!w.set;for(P=0;P<l;P++){for(S=(P+.5)*v+I,E=Math.max(0,Math.floor(S-x)),q=(R=Math.min(_-1,Math.ceil(S+x)))-E+1,V=new Float32Array(q),Z=new Int16Array(q),L=0,j=E,k=0;j<=R;j++,k++)L+=K=A((j+.5-S)*b),V[k]=K;for(G=0,k=0;k<V.length;k++)G+=$=V[k]/L,Z[k]=f($);for(Z[l>>1]+=f(1-G),W=0;W<Z.length&&0===Z[W];)W++;if(W<Z.length){for(p=Z.length-1;p>0&&0===Z[p];)p--;if(C=p-W+1,w[X++]=E+W,w[X++]=C,H)for(k=W;k<=p;k++)w[X++]=Z[k];else w.set(Z.subarray(W,p+1),X),X+=C}else w[X++]=0,w[X++]=0}return w}},{"./resize_filter_info":7}],7:[function(D,e,B){"use strict";e.exports={filter:{box:{win:.5,fn:function(f){return f<0&&(f=-f),f<.5?1:0}},hamming:{win:1,fn:function(f){if(f<0&&(f=-f),f>=1)return 0;if(f<1.1920929e-7)return 1;var g=f*Math.PI;return Math.sin(g)/g*(.54+.46*Math.cos(g/1))}},lanczos2:{win:2,fn:function(f){if(f<0&&(f=-f),f>=2)return 0;if(f<1.1920929e-7)return 1;var g=f*Math.PI;return Math.sin(g)/g*Math.sin(g/2)/(g/2)}},lanczos3:{win:3,fn:function(f){if(f<0&&(f=-f),f>=3)return 0;if(f<1.1920929e-7)return 1;var g=f*Math.PI;return Math.sin(g)/g*Math.sin(g/3)/(g/3)}},mks2013:{win:2.5,fn:function(f){return f<0&&(f=-f),f>=2.5?0:f>=1.5?-.125*(f-2.5)*(f-2.5):f>=.5?.25*(4*f*f-11*f+7):1.0625-1.75*f*f}}},f2q:{box:0,hamming:1,lanczos2:2,lanczos3:3},q2f:["box","hamming","lanczos2","lanczos3"]}},{}],8:[function(D,e,B){"use strict";var U=D("./resize_filter_gen");var m=!0;try{m=1===new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]}catch{}function _(l,u,I){if(m)u.set(function g(l){return new Uint8Array(l.buffer,0,l.byteLength)}(l),I);else for(var A=I,v=0;v<l.length;v++){var b=l[v];u[A++]=255&b,u[A++]=b>>8&255}}e.exports=function(u){var I=u.src,A=u.width,v=u.height,b=u.toWidth,x=u.toHeight,P=u.scaleX||u.toWidth/u.width,S=u.scaleY||u.toHeight/u.height,E=u.offsetX||0,R=u.offsetY||0,q=u.dest||new Uint8Array(b*x*4),V=typeof u.filter>"u"?"mks2013":u.filter,Z=U(V,A,b,P,E),L=U(V,v,x,S,R),k=Math.max(I.byteLength,q.byteLength),K=this.__align(0+k),$=this.__align(K+v*b*4*2),W=this.__align($+Z.byteLength),y=this.__instance("resize",W+L.byteLength),C=new Uint8Array(this.__memory.buffer),T=new Uint32Array(this.__memory.buffer),w=new Uint32Array(I.buffer);T.set(w),_(Z,C,$),_(L,C,W);var X=y.exports.convolveHV||y.exports._convolveHV;return function O(l,u,I){for(var A=3,v=u*I*4|0;A<v;){if(255!==l[A])return!0;A=A+4|0}return!1}(I,A,v)?X($,W,K,A,v,b,x,1):(X($,W,K,A,v,b,x,0),function f(l,u,I){for(var A=3,v=u*I*4|0;A<v;)l[A]=255,A=A+4|0}(q,b,x)),new Uint32Array(q.buffer).set(new Uint32Array(this.__memory.buffer,0,x*b)),q}},{"./resize_filter_gen":6}],9:[function(D,e,B){"use strict";e.exports={name:"unsharp_mask",fn:D("./unsharp_mask"),wasm_fn:D("./unsharp_mask_wasm"),wasm_src:D("./unsharp_mask_wasm_base64")}},{"./unsharp_mask":10,"./unsharp_mask_wasm":11,"./unsharp_mask_wasm_base64":12}],10:[function(D,e,B){"use strict";var U=D("glur/mono16");e.exports=function(g,m,_,l,u,I){var A,v,b,x,P;if(!(0===l||u<.5)){u>2&&(u=2);var S=function O(f,g,m){for(var u,I,A,_=g*m,l=new Uint16Array(_),b=0;b<_;
1b++)A=f[4*b+2],l[b]=((u=f[4*b])>=(I=f[4*b+1])&&u>=A?u:I>=A&&I>=u?I:A)<<8;return l}(g,m,_),E=new Uint16Array(S);U(E,m,_,u);for(var R=l/100*4096+.5|0,q=I<<8,V=m*_,Z=0;Z<V;Z++)x=(A=S[Z])-E[Z],Math.abs(x)>=q&&(g[P=4*Z]=g[P]*(b=((v=(v=(v=A+(R*x+2048>>12))>65280?65280:v)<0?0:v)<<12)/(A=0!==A?A:1)|0)+2048>>12,g[P+1]=g[P+1]*b+2048>>12,g[P+2]=g[P+2]*b+2048>>12)}}},{"glur/mono16":18}],11:[function(D,e,B){"use strict";e.exports=function(O,f,g,m,_,l){if(!(0===m||_<.5)){_>2&&(_=2);var u=f*g,I=4*u,A=2*u,v=2*u,b=4*Math.max(f,g),S=I,E=S+A,R=E+v,q=R+v,V=q+b,Z=this.__instance("unsharp_mask",I+A+2*v+b+32,{exp:Math.exp}),L=new Uint32Array(O.buffer);new Uint32Array(this.__memory.buffer).set(L);var k=Z.exports.hsv_v16||Z.exports._hsv_v16;k(0,S,f,g),(k=Z.exports.blurMono16||Z.exports._blurMono16)(S,E,R,q,V,f,g,_),(k=Z.exports.unsharp||Z.exports._unsharp)(0,0,S,E,f,g,m,l),L.set(new Uint32Array(this.__memory.buffer,0,u))}}},{}],12:[function(D,e,B){"use strict";e.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAE0B2AAAGAEf39/fwBgBn9/f39/fwBgCH9/f39/f39/AGAIf39/f39/f30AYAJ9fwBgAXwBfAIZAgNlbnYDZXhwAAYDZW52Bm1lbW9yeQIAAAMHBgAFAgQBAwYGAX8AQQALB4oBCBFfX3dhc21fY2FsbF9jdG9ycwABFl9fYnVpbGRfZ2F1c3NpYW5fY29lZnMAAg5fX2dhdXNzMTZfbGluZQADCmJsdXJNb25vMTYABAdoc3ZfdjE2AAUHdW5zaGFycAAGDF9fZHNvX2hhbmRsZQMAGF9fd2FzbV9hcHBseV9kYXRhX3JlbG9jcwABCsUMBgMAAQvWAQEHfCABRNuGukOCGvs/IAC7oyICRAAAAAAAAADAohAAIgW2jDgCFCABIAKaEAAiAyADoCIGtjgCECABRAAAAAAAAPA/IAOhIgQgBKIgAyACIAKgokQAAAAAAADwP6AgBaGjIgS2OAIAIAEgBSAEmqIiB7Y4AgwgASADIAJEAAAAAAAA8D+gIASioiIItjgCCCABIAMgAkQAAAAAAADwv6AgBKKiIgK2OAIEIAEgByAIoCAFRAAAAAAAAPA/IAahoCIDo7Y4AhwgASAEIAKgIAOjtjgCGAuGBQMGfwl8An0gAyoCDCEVIAMqAgghFiADKgIUuyERIAMqAhC7IRACQCAEQQFrIghBAEgiCQRAIAIhByAAIQYMAQsgAiAALwEAuCIPIAMqAhi7oiIMIBGiIg0gDCAQoiAPIAMqAgS7IhOiIhQgAyoCALsiEiAPoqCgoCIOtjgCACACQQRqIQcgAEECaiEGIAhFDQAgCEEBIAhBAUgbIgpBf3MhCwJ/IAQgCmtBAXFFBEAgDiENIAgMAQsgAiANIA4gEKIgFCASIAAvAQK4Ig+ioKCgIg22OAIEIAJBCGohByAAQQRqIQYgDiEMIARBAmsLIQIgC0EAIARrRg0AA0AgByAMIBGiIA0gEKIgDyAToiASIAYvAQC4Ig6ioKCgIgy2OAIAIAcgDSARoiAMIBCiIA4gE6IgEiAGLwECuCIPoqCgoCINtjgCBCAHQQhqIQcgBkEEaiEGIAJBAkohACACQQJrIQIgAA0ACwsCQCAJDQAgASAFIAhsQQF0aiIAAn8gBkECay8BACICuCINIBW7IhKiIA0gFrsiE6KgIA0gAyoCHLuiIgwgEKKgIAwgEaKgIg8gB0EEayIHKgIAu6AiDkQAAAAAAADwQWMgDkQAAAAAAAAAAGZxBEAgDqsMAQtBAAs7AQAgCEUNACAGQQRrIQZBACAFa0EBdCEBA0ACfyANIBKiIAJB//8DcbgiDSAToqAgDyIOIBCioCAMIBGioCIPIAdBBGsiByoCALugIgxEAAAAAAAA8EFjIAxEAAAAAAAAAABmcQRAIAyrDAELQQALIQMgBi8BACECIAAgAWoiACADOwEAIAZBAmshBiAIQQFKIQMgDiEMIAhBAWshCCADDQALCwvRAgIBfwd8AkAgB0MAAAAAWw0AIARE24a6Q4Ia+z8gB0MAAAA/l7ujIglEAAAAAAAAAMCiEAAiDLaMOAIUIAQgCZoQACIKIAqgIg22OAIQIAREAAAAAAAA8D8gCqEiCyALoiAKIAkgCaCiRAAAAAAAAPA/oCAMoaMiC7Y4AgAgBCAMIAuaoiIOtjgCDCAEIAogCUQAAAAAAADwP6AgC6KiIg+2OAIIIAQgCiAJRAAAAAAAAPC/oCALoqIiCbY4AgQgBCAOIA+gIAxEAAAAAAAA8D8gDaGgIgqjtjgCHCAEIAsgCaAgCqO2OAIYIAYEQANAIAAgBSAIbEEBdGogAiAIQQF0aiADIAQgBSAGEAMgCEEBaiIIIAZHDQALCyAFRQ0AQQAhCANAIAIgBiAIbEEBdGogASAIQQF0aiADIAQgBiAFEAMgCEEBaiIIIAVHDQALCwtxAQN/IAIgA2wiBQRAA0AgASAAKAIAIgRBEHZB/wFxIgIgAiAEQQh2Qf8BcSIDIAMgBEH/AXEiBEkbIAIgA0sbIgYgBiAEIAIgBEsbIAMgBEsbQQh0OwEAIAFBAmohASAAQQRqIQAgBUEBayIFDQALCwuZAgIDfwF8IAQgBWwhBAJ/IAazQwAAgEWUQwAAyEKVu0QAAAAAAADgP6AiC5lEAAAAAAAA4EFjBEAgC6oMAQtBgICAgHgLIQUgBARAIAdBCHQhCUEAIQYDQCAJIAIgBkEBdCIHai8BACIBIAMgB2ovAQBrIgcgB0EfdSIIaiAIc00EQCAAIAZBAnQiCGoiCiAFIAdsQYAQakEMdSABaiIHQYD+AyAHQYD+A0gbIgdBACAHQQBKG0EMdCABQQEgARtuIgEgCi0AAGxBgBBqQQx2OgAAIAAgCEEBcmoiByABIActAABsQYAQakEMdjoAACAAIAhBAnJqIgcgASAHLQAAbEGAEGpBDHY6AAALIAZBAWoiBiAERw0ACwsL"},{}],13:[function(D,e,B){"use strict";function O(f,g){this.create=f,this.available=[],this.acquired={},this.lastId=1,this.timeoutId=0,this.idle=g||2e3}O.prototype.acquire=function(){var g,f=this;return 0!==this.available.length?g=this.available.pop():((g=this.create()).id=this.lastId++,g.release=function(){return f.release(g)}),this.acquired[g.id]=g,g},O.prototype.release=function(f){var g=this;delete this.acquired[f.id],f.lastUsed=Date.now(),this.available.push(f),0===this.timeoutId&&(this.timeoutId=setTimeout(function(){return g.gc()},100))},O.prototype.gc=function(){var f=this,g=Date.now();this.available=this.available.filter(function(m){return!(g-m.lastUsed>f.idle&&(m.destroy(),1))}),this.timeoutId=0!==this.available.length?setTimeout(function(){return f.gc()},100):0},e.exports=O},{}],14:[function(D,e,B){"use strict";e.exports=function(f,g,m,_,l,u){var v=(2*u+2+1)/l;if(v>.5)return[[m,_]];var b=Math.ceil(Math.log(Math.min(m/f,_/g))/Math.log(v));if(b<=1)return[[m,_]];for(var x=[],P=0;P<b;P++){var S=Math.round(Math.pow(Math.pow(f,b-P-1)*Math.pow(m,P+1),1/b)),E=Math.round(Math.pow(Math.pow(g,b-P-1)*Math.pow(_,P+1),1/b));x.push([S,E])}return x}},{}],15:[function(D,e,B){"use strict";var U=1e-5;function O(g){var m=Math.round(g);return Math.abs(g-m)<U?m:Math.floor(g)}function f(g){var m=Math.round(g);return Math.abs(g-m)<U?m:Math.ceil(g)}e.exports=function(m){var _=m.toWidth/m.width,l=m.toHeight/m.height,u=O(m.srcTileSize*_)-2*m.destTileBorder,I=O(m.srcTileSize*l)-2*m.destTileBorder;if(u<1||I<1)throw new Error("Internal error in pica: target tile width/height is too small.");var A,v,b,x,P,S,R,E=[];for(x=0;x<m.toHeight;x+=I)for(b=0;b<m.toWidth;b+=u)(A=b-m.destTileBorder)<0&&(A=0),A+(P=b+u+m.destTileBorder-A)>=m.toWidth&&(P=m.toWidth-A),(v=x-m.destTileBorder)<0&&(v=0),v+(S=x+I+m.destTileBorder-v)>=m.toHeight&&(S=m.toHeight-v),R={toX:A,toY:v,toWidth:P,toHeight:S,toInnerX:b,toInnerY:x,toInnerWidth:u,toInnerHeight:I,offsetX:A/_-O(A/_),offsetY:v/l-O(v/l),scaleX:_,scaleY:l,x:O
1(A/_),y:O(v/l),width:f(P/_),height:f(S/l)},E.push(R);return E}},{}],16:[function(D,e,B){"use strict";function U(O){return Object.prototype.toString.call(O)}e.exports.isCanvas=function(f){var g=U(f);return"[object HTMLCanvasElement]"===g||"[object OffscreenCanvas]"===g||"[object Canvas]"===g},e.exports.isImage=function(f){return"[object HTMLImageElement]"===U(f)},e.exports.isImageBitmap=function(f){return"[object ImageBitmap]"===U(f)},e.exports.limiter=function(f){var g=0,m=[];function _(){g<f&&m.length&&(g++,m.shift()())}return function(u){return new Promise(function(I,A){m.push(function(){u().then(function(v){I(v),g--,_()},function(v){A(v),g--,_()})}),_()})}},e.exports.cib_quality_name=function(f){switch(f){case 0:return"pixelated";case 1:return"low";case 2:return"medium"}return"high"},e.exports.cib_support=function(f){return Promise.resolve().then(function(){if(typeof createImageBitmap>"u")return!1;var g=f(100,100);return createImageBitmap(g,0,0,100,100,{resizeWidth:10,resizeHeight:10,resizeQuality:"high"}).then(function(m){var _=10===m.width;return m.close(),g=null,_})}).catch(function(){return!1})},e.exports.worker_offscreen_canvas_support=function(){return new Promise(function(f,g){if(typeof OffscreenCanvas>"u")f(!1);else{var _=btoa("(".concat(function m(u){typeof createImageBitmap>"u"?u.postMessage(!1):Promise.resolve().then(function(){var I=new OffscreenCanvas(10,10);return I.getContext("2d").rect(0,0,1,1),createImageBitmap(I,0,0,1,1)}).then(function(){return u.postMessage(!0)},function(){return u.postMessage(!1)})}.toString(),")(self);")),l=new Worker("data:text/javascript;base64,".concat(_));l.onmessage=function(u){return f(u.data)},l.onerror=g}}).then(function(f){return f},function(){return!1})},e.exports.can_use_canvas=function(f){var g=!1;try{var _=f(2,1).getContext("2d"),l=_.createImageData(2,1);l.data[0]=12,l.data[1]=23,l.data[2]=34,l.data[3]=255,l.data[4]=45,l.data[5]=56,l.data[6]=67,l.data[7]=255,_.putImageData(l,0,0),l=null,12===(l=_.getImageData(0,0,2,1)).data[0]&&23===l.data[1]&&34===l.data[2]&&255===l.data[3]&&45===l.data[4]&&56===l.data[5]&&67===l.data[6]&&255===l.data[7]&&(g=!0)}catch{}return g},e.exports.cib_can_use_region=function(){return new Promise(function(f){if(typeof Image>"u"||typeof createImageBitmap>"u")f(!1);else{var g=new Image;g.src="data:image/jpeg;base64,/9j/4QBiRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAYAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAAAAABIAAAAAQAAAEgAAAAB/9sAQwAEAwMEAwMEBAMEBQQEBQYKBwYGBgYNCQoICg8NEBAPDQ8OERMYFBESFxIODxUcFRcZGRsbGxAUHR8dGh8YGhsa/9sAQwEEBQUGBQYMBwcMGhEPERoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoa/8IAEQgAAQACAwERAAIRAQMRAf/EABQAAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAF/P//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8hf//aAAwDAQACAAMAAAAQH//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Qf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Qf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8Qf//Z",g.onload=function(){createImageBitmap(g,0,0,g.width,g.height).then(function(m){f(m.width===g.width&&m.height===g.height)},function(){return f(!1)})},g.onerror=function(){return f(!1)}}})}},{}],17:[function(D,e,B){"use strict";e.exports=function(){var O,U=D("./mathlib");onmessage=function(g){var m=g.data.opts;if(!m.src&&m.srcBitmap){var l=new OffscreenCanvas(m.width,m.height),u=l.getContext("2d");u.drawImage(m.srcBitmap,0,0),m.src=u.getImageData(0,0,m.width,m.height).data,l.width=l.height=0,l=null,m.srcBitmap.close(),m.srcBitmap=null}O||(O=new U(g.data.features));var I=O.resizeAndUnsharp(m);postMessage({data:I},[I.buffer])}}},{"./mathlib":1}],18:[function(D,e,B){var U,O,f,g,m,_;function A(b,x,P,S,E,R){var q,V,Z,L,j,k,K,G,$,W,p,y,C,T;for($=0;$<R;$++){for(K=$,G=0,L=j=(q=b[k=$*E])*S[6],p=S[0],y=S[1],C=S[4],T=S[5],W=0;W<E;W++)Z=(V=b[k])*p+q*y+L*C+j*T,j=L,q=V,P[G]=L=Z,G++,k++;for(G--,K+=R*(E-1),L=j=(q=b[--k])*S[7],V=q,p=S[2],y=S[3],W=E-1;W>=0;W--)Z=V*p+q*y+L*C+j*T,j=L,q=V,V=b[k],x[K]=P[G]+(L=Z),k--,G--,K-=R}}e.exports=function v(b,x,P,S){if(S){var E=new Uint16Array(b.length),R=new Float32Array(Math.max(x,P)),q=function I(b){b<.5&&(b=.5);var x=Math.exp(.527076)/b,P=Math.exp(-x),S=Math.exp(-2*x),E=(1-P)*(1-P)/(1+2*x*P-S);return U=E,O=E*(x-1)*P,f=E*(x+1)*P,g=-E*S,m=2*P,_=-S,new Float32Array([U,O,f,g,m,_,(U+O)/(1-m-_),(f+g)/(1-m-_)])}(S);A(b,E,R,q,x,P),A(E,b,R,q,P,x)}}},{}],19:[function(D,e,B){"use strict";var U=D("object-assign"),O=D("./lib/base64decode"),f=D("./lib/wa_detect"),g={js:!0,wasm:!0};function m(_){if(!(this instanceof m))return new m(_);var l=U({},g,_||{});if(this.options=l,this.__cache={},this.__init_promise=null,this.__modules=l.modules||{},this.__memory=null,this.__wasm={},this.__isLE=1===new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0],!this.options.js&&!this.options.wasm)throw new Error('mathlib: at least "js" or "wasm" should be enabled')}m.prototype.has_wasm=f,m.prototype.use=function(_){return this.__modules[_.name]=_,this[_.name]=this.options.wasm&&this.has_wasm()&&_.wasm_fn?_.wasm_fn:_.fn,this},m.prototype.init=function(){if(this.__init_promise)return this.__init_promise;if(!this.options.js&&this.options.wasm&&!this.has_wasm())return Promise.reject(new Error('mathlib: only "wasm" was enabled, but it\'s not supported'));var _=this;return this.__init_promise=Promise.all(Object.keys(_.__modules).map(function(l){var u=_.__modules[l];return _.options.wasm&&_.has_wasm()&&u.wasm_fn&&!_.__wasm[l]?WebAssembly.compile(_.__base64decode(u.wasm_src)).then(function(I){_.__wasm[l]=I}):null})).then(function(){return _}),this.__init_promise},m.prototype.__base64decode=O,m.prototype.__reallocate=function(l){if(!this.__memory)return this.__memory=new WebAssembly.Memory({initial:Math.ceil(l/65536)}),this.__memory;var u=this.__memory.buffer.byteLength;return u<l&&this.__memory.grow(Math.ceil((l-u)/65536)),this.__memory},m.prototype.__instance=function(l,u,I){if(u&&this.__reallocate(u),this.__wasm[l]||(this.__wasm[l]=new WebAssembly.Module(this.__base64decode(this.__modules[l].wasm_src))),!this.__cache[l]){var v={memoryBase:0,memory:this.__memory,tableBase:0,table:new WebAssembly.Table({initial:0,element:"anyfunc"})};this.__cache[l]=new WebAssembly.Instance(this.__wasm[l],{env:U(v,I||{})})}return this.__cache[l]},m.prototype.__align=function(l,u){var I=l%(u=u||8);return l+(I?u-I:0)},e.exports=m},{"./lib/base64decode":20,"./lib/wa_detect":21,"object-assign":22}],20:[function(D,e,B){"use strict";e.exports=function(f){for(var g=f.replace(/[\r\n=]/g,""),m=g.length,_=new Uint8Array(3*m>>2),l=0,u=0,I=0;I<m;I++)I%4==0&&I&&(_[u++]=l>>16&255,_[u++]=l>>8&255,_[u++]=255&l),l=l<<6|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/".indexOf(g.charAt(I));var A=m%4*6;return 0===A?(_[u++]=l>>16&255,_[u++]=l>>8&255,_[u++]=255&l):18===A?(_[u++]=l>>10&255,_[u++]=l>>2&255):12===A&&(_[u++]=l>>4&255),_}},{}],21:[function(D,e,B){"use strict";var U;e.exports=function(){if(typeof U<"u"||(U=!1,typeof WebAssembly>"u"))return U;try{var f=new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,127,1,127,3,2,1,0,5,3,1,0,1,7,8,1,4,116,101,115,116,0,0,10,16,1,14,0,32,0,65,1,54,2,0,32,0,40,2,0,11]),g=new WebAssembly.Module(f);return 0!==new WebAssembly.Instance(g,{}).exports.test(4)&&(U=!0),U}catch{}return U}},{}],22:[function(D,e,B){"use strict";var U=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;function g(_){if(null==_)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(_)}e.exports=function m(){try{if(!Object.assign)return!1;var _=new String("abc");if(_[5]="de","5"===Object.getOwnPropertyNames(_)[0])return!1;for(var l={},u=0;u<10;u++)l["_"+String.fromCharCode(u)]=u;if("0123456789"!==Object.getOwnPropertyNames(l).map(function(v){return l[v]}).join(""))return!1;var A={};return"abcdefghijklmnopqrst".split("").forEach(function(v){A[v]=v}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},A)).join("")}catch{return!1}}()?Object.assign:function(_,l){for(var u,A,I=g(_),v=1;v<arguments.length;v++){for(var b in u=Object(arguments[v]))O.call(u,b)&&(I[b]=u[b]);if(U){A=U(u);for(var x=0;x<A.length;x++)f.call(u,A[x])&&(I[A[x]]=u[A[x]])}}return I}},{}],23:[function(D,e,B){var U=arguments[3],O=arguments[4],f=arguments[5],g=JSON.stringify;e.exports=function(m,_){for(var l,u=Object.keys(f),I=0,A=u.length;I<A;I++){var b=f[v=u[I]].exports;if(b===m||b&&b.default===m){l=v;break}}if(!l){l=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var x={};for(I=0,A=u.length;I<A;I++){var v;x[v=u[I]]=v}O[l]=["function(require,module,exports){"+m+"(self); }",x]}var P=Math.floor(Math.pow(16,8)*Math.random()).toString(16),S={};S[l]=l,O[P]=["function(require,module,exports){var f = require("+g(l)+");(f.default ? f.default : f)(self);}",S];var E={};!function R(k){for(var K in E[k]=!0,O[k][1]){var G=O[k][1][K];E[G]||R(G)}}(P);var q="("+U+")({"+Object.keys(E).map(function(k){return g(k)+":["+O[k][0]+","+g(O[k][1])+"]"}).join(",")+"},{},["+g(P)+"])",V=window.URL||window.webkitURL||window.mozURL||window.msURL,Z=new Blob([q],{type:"text/javascript"});if(_&&_.bare)return Z;var L=V.createObjectURL(Z),j=new Worker(L);return j.objectURL=L,j}},{}],"/index.js":[function(D,e,B){"use strict";function U(p,y){return function _(p){if(Array.isArray(p))return p}(p)||function m(p,y){var C=null==p?null:typeof Symbol<"u"&&p[Symbol.iterator]||p["@@iterator"];if(null!=C){var H,Y,T=[],w=!0,X=!1;try{for(C=C.call(p);!(w=(H=C.next()).done)&&(T.push(H.value),!y||T.length!==y);w=!0);}catch(ee){X=!0,Y=ee}finally{try{!w&&null!=C.return&&C.return()}finally{if(X)throw Y}}return T}}(p,y)||function f(p,y){if(p){if("string"==typeof p)return g(p,y);var C=Object.prototype.toString.call(p).slice(8,-1);if("Object"===C&&p.constructor&&(C=p.constructor.name),"Map"===C||"Set"===C)return Array.from(p);if("Arguments"===C||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return g(p,y)}}(p,y)||function O(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(p,y){(null==y||y>p.length)&&(y=p.length);for(var C=0,T=new Array(y);C<y;C++)T[C]=p[C];return T}var l=D("object-assign"),u=D("webworkify"),I=D("./lib/mathlib"),A=D("./lib/pool"),v=D("./lib/utils"),b=D("./lib/worker"),x=D("./lib/stepper"),P=D("./lib/tiler"),S=D("./lib/mm_resize/resize_filter_info"),E={},R=!1;try{typeof navigator<"u"&&navigator.userAgent&&(R=navigator.userAgent.indexOf("Safari")>=0)}catch{}var q=1;typeof navigator<"u"&&(q=Math.min(navigator.hardwareConcurrency||1,4));var V={tile:1024,concurrency:q,features:["js","wasm","ww"],idle:2e3,createCanvas:function(y,C){var T=document.createElement("canvas");return T.width=y,T.height=C,T}},Z={filter:"mks2013",unsharpAmount:0,unsharpRadius:0,unsharpThreshold:0},L=!1,j=!1,k=!1,K=!1,G=!1;function $(){return{value:u(b),destroy:function(){if(this.value.terminate(),typeof window<"u"){var y=window.URL||window.webkitURL||window.mozURL||window.msURL;y&&y.revokeObjectURL&&this.value.objectURL&&y.revokeObjectURL(this.value.objectURL)}}}}function W(p){if(!(this instanceof W))return new W(p);this.options=l({},V,p||{});var y="lk_".concat(this.options.concurrency);this.__limit=E[y]||v.limiter(this.options.concurrency),E[y]||(E[y]=this.__limit),this.features={js:!1,wasm:!1,cib:!1,ww:!1},this.__workersPool=null,this.__requested_features=[],this.__mathlib=null}W.prototype.init=function(){var p=this;if(this.__initPromise)return this.__initPromise;if(typeof ImageData<"u"&&typeof Uint8ClampedArray<"u")try{new ImageData(new Uint8ClampedArray(400),10,10),L=!0}catch{}typeof ImageBitmap<"u"&&(ImageBitmap.prototype&&ImageBitmap.prototype.close?j=!0:this.debug("ImageBitmap does not support .close(), disabled"));var y=this.options.features.slice();if(y.indexOf("all")>=0&&(y=["cib","wasm","js","ww"]),this.__requested_features=y,this.__mathlib=new I(y),y.indexOf("ww")>
1=0&&typeof window<"u"&&"Worker"in window)try{D("webworkify")(function(){}).terminate(),this.features.ww=!0;var T="wp_".concat(JSON.stringify(this.options));E[T]?this.__workersPool=E[T]:(this.__workersPool=new A($,this.options.idle),E[T]=this.__workersPool)}catch{}var X,H,w=this.__mathlib.init().then(function(ee){l(p.features,ee.features)});X=j?v.cib_support(this.options.createCanvas).then(function(ee){p.features.cib&&y.indexOf("cib")<0?p.debug("createImageBitmap() resize supported, but disabled by config"):y.indexOf("cib")>=0&&(p.features.cib=ee)}):Promise.resolve(!1),k=v.can_use_canvas(this.options.createCanvas),H=(H=j&&L&&-1!==y.indexOf("ww")?v.worker_offscreen_canvas_support():Promise.resolve(!1)).then(function(ee){K=ee});var Y=v.cib_can_use_region().then(function(ee){G=ee});return this.__initPromise=Promise.all([w,X,H,Y]).then(function(){return p}),this.__initPromise},W.prototype.__invokeResize=function(p,y){var C=this;return y.__mathCache=y.__mathCache||{},Promise.resolve().then(function(){return C.features.ww?new Promise(function(T,w){var X=C.__workersPool.acquire();y.cancelToken&&y.cancelToken.catch(function(Y){return w(Y)}),X.value.onmessage=function(Y){X.release(),Y.data.err?w(Y.data.err):T(Y.data)};var H=[];p.src&&H.push(p.src.buffer),p.srcBitmap&&H.push(p.srcBitmap),X.value.postMessage({opts:p,features:C.__requested_features,preload:{wasm_nodule:C.__mathlib.__}},H)}):{data:C.__mathlib.resizeAndUnsharp(p,y.__mathCache)}})},W.prototype.__extractTileData=function(p,y,C,T,w){if(this.features.ww&&K&&(v.isCanvas(y)||G))return this.debug("Create tile for OffscreenCanvas"),createImageBitmap(T.srcImageBitmap||y,p.x,p.y,p.width,p.height).then(function(Y){return w.srcBitmap=Y,w});if(v.isCanvas(y))return T.srcCtx||(T.srcCtx=y.getContext("2d")),this.debug("Get tile pixel data"),w.src=T.srcCtx.getImageData(p.x,p.y,p.width,p.height).data,w;this.debug("Draw tile imageBitmap/image to temporary canvas");var X=this.options.createCanvas(p.width,p.height),H=X.getContext("2d");return H.globalCompositeOperation="copy",H.drawImage(T.srcImageBitmap||y,p.x,p.y,p.width,p.height,0,0,p.width,p.height),this.debug("Get tile pixel data"),w.src=H.getImageData(0,0,p.width,p.height).data,X.width=X.height=0,w},W.prototype.__landTileData=function(p,y,C){var T;if(this.debug("Convert raw rgba tile result to ImageData"),y.bitmap)return C.toCtx.drawImage(y.bitmap,p.toX,p.toY),null;if(L)T=new ImageData(new Uint8ClampedArray(y.data),p.toWidth,p.toHeight);else if((T=C.toCtx.createImageData(p.toWidth,p.toHeight)).data.set)T.data.set(y.data);else for(var w=T.data.length-1;w>=0;w--)T.data[w]=y.data[w];return this.debug("Draw tile"),R?C.toCtx.putImageData(T,p.toX,p.toY,p.toInnerX-p.toX,p.toInnerY-p.toY,p.toInnerWidth+1e-5,p.toInnerHeight+1e-5):C.toCtx.putImageData(T,p.toX,p.toY,p.toInnerX-p.toX,p.toInnerY-p.toY,p.toInnerWidth,p.toInnerHeight),null},W.prototype.__tileAndResize=function(p,y,C){var T=this,w={srcCtx:null,srcImageBitmap:null,isImageBitmapReused:!1,toCtx:null};return Promise.resolve().then(function(){if(w.toCtx=y.getContext("2d"),v.isCanvas(p))return null;if(v.isImageBitmap(p))return w.srcImageBitmap=p,w.isImageBitmapReused=!0,null;if(v.isImage(p))return j?(T.debug("Decode image via createImageBitmap"),createImageBitmap(p).then(function(H){w.srcImageBitmap=H}).catch(function(H){return null})):null;throw new Error('Pica: ".from" should be Image, Canvas or ImageBitmap')}).then(function(){if(C.canceled)return C.cancelToken;T.debug("Calculate tiles");var Y=P({width:C.width,height:C.height,srcTileSize:T.options.tile,toWidth:C.toWidth,toHeight:C.toHeight,destTileBorder:C.__destTileBorder}).map(function(ae){return function(Y){return T.__limit(function(){if(C.canceled)return C.cancelToken;var ee={width:Y.width,height:Y.height,toWidth:Y.toWidth,toHeight:Y.toHeight,scaleX:Y.scaleX,scaleY:Y.scaleY,offsetX:Y.offsetX,offsetY:Y.offsetY,filter:C.filter,unsharpAmount:C.unsharpAmount,unsharpRadius:C.unsharpRadius,unsharpThreshold:C.unsharpThreshold};return T.debug("Invoke resize math"),Promise.resolve(ee).then(function(ae){return T.__extractTileData(Y,p,C,w,ae)}).then(function(ae){return T.debug("Invoke resize math"),T.__invokeResize(ae,C)}).then(function(ae){return C.canceled?C.cancelToken:(w.srcImageData=null,T.__landTileData(Y,ae,w))})})}(ae)});function ee(ae){ae.srcImageBitmap&&(ae.isImageBitmapReused||ae.srcImageBitmap.close(),ae.srcImageBitmap=null)}return T.debug("Process tiles"),Promise.all(Y).then(function(){return T.debug("Finished!"),ee(w),y},function(ae){throw ee(w),ae})})},W.prototype.__processStages=function(p,y,C,T){var w=this;if(T.canceled)return T.cancelToken;var Be,be,H=U(p.shift(),2),Y=H[0],ee=H[1],ae=0===p.length;return Be=ae||S.q2f.indexOf(T.filter)<0?T.filter:"box"===T.filter?"box":"hamming",T=l({},T,{toWidth:Y,toHeight:ee,filter:Be}),ae||(be=this.options.createCanvas(Y,ee)),this.__tileAndResize(y,ae?C:be,T).then(function(){return ae?C:(T.width=Y,T.height=ee,w.__processStages(p,be,C,T))}).then(function(ut){return be&&(be.width=be.height=0),ut})},W.prototype.__resizeViaCreateImageBitmap=function(p,y,C){var T=this,w=y.getContext("2d");return this.debug("Resize via createImageBitmap()"),createImageBitmap(p,{resizeWidth:C.toWidth,resizeHeight:C.toHeight,resizeQuality:v.cib_quality_name(S.f2q[C.filter])}).then(function(X){if(C.canceled)return C.cancelToken;if(!C.unsharpAmount)return w.drawImage(X,0,0),X.close(),w=null,T.debug("Finished!"),y;T.debug("Unsharp result");var H=T.options.createCanvas(C.toWidth,C.toHeight),Y=H.getContext("2d");Y.drawImage(X,0,0),X.close();var ee=Y.getImageData(0,0,C.toWidth,C.toHeight);return T.__mathlib.unsharp_mask(ee.data,C.toWidth,C.toHeight,C.unsharpAmount,C.unsharpRadius,C.unsharpThreshold),w.putImageData(ee,0,0),H.width=H.height=0,ee=Y=H=w=null,T.debug("Finished!"),y})},W.prototype.resize=function(p,y,C){var T=this;this.debug("Start resize...");var w=l({},Z);
1if(isNaN(C)?C&&(w=l(w,C)):w=l(w,{quality:C}),w.toWidth=y.width,w.toHeight=y.height,w.width=p.naturalWidth||p.width,w.height=p.naturalHeight||p.height,Object.prototype.hasOwnProperty.call(w,"quality")){if(w.quality<0||w.quality>3)throw new Error("Pica: .quality should be [0..3], got ".concat(w.quality));w.filter=S.q2f[w.quality]}return 0===y.width||0===y.height?Promise.reject(new Error("Invalid output size: ".concat(y.width,"x").concat(y.height))):(w.unsharpRadius>2&&(w.unsharpRadius=2),w.canceled=!1,w.cancelToken&&(w.cancelToken=w.cancelToken.then(function(H){throw w.canceled=!0,H},function(H){throw w.canceled=!0,H})),w.__destTileBorder=Math.ceil(Math.max(3,2.5*w.unsharpRadius|0)),this.init().then(function(){if(w.canceled)return w.cancelToken;if(T.features.cib){if(S.q2f.indexOf(w.filter)>=0)return T.__resizeViaCreateImageBitmap(p,y,w);T.debug("cib is enabled, but not supports provided filter, fallback to manual math")}if(!k){var H=new Error("Pica: cannot use getImageData on canvas, make sure fingerprinting protection isn't enabled");throw H.code="ERR_GET_IMAGE_DATA",H}var Y=x(w.width,w.height,w.toWidth,w.toHeight,T.options.tile,w.__destTileBorder);return T.__processStages(Y,p,y,w)}))},W.prototype.resizeBuffer=function(p){var y=this,C=l({},Z,p);if(Object.prototype.hasOwnProperty.call(C,"quality")){if(C.quality<0||C.quality>3)throw new Error("Pica: .quality should be [0..3], got ".concat(C.quality));C.filter=S.q2f[C.quality]}return this.init().then(function(){return y.__mathlib.resizeAndUnsharp(C)})},W.prototype.toBlob=function(p,y,C){return y=y||"image/png",new Promise(function(T){if(p.toBlob)p.toBlob(function(ee){return T(ee)},y,C);else if(p.convertToBlob)T(p.convertToBlob({type:y,quality:C}));else{for(var w=atob(p.toDataURL(y,C).split(",")[1]),X=w.length,H=new Uint8Array(X),Y=0;Y<X;Y++)H[Y]=w.charCodeAt(Y);T(new Blob([H],{type:y}))}})},W.prototype.debug=function(){},e.exports=W},{"./lib/mathlib":1,"./lib/mm_resize/resize_filter_info":7,"./lib/pool":13,"./lib/stepper":14,"./lib/tiler":15,"./lib/utils":16,"./lib/worker":17,"object-assign":22,webworkify:23}]},{},[])("/index.js")}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.