1"use strict";(self.webpackChunkpolitikk=self.webpackChunkpolitikk||[]).push([[9033],{39033(lt,X,C){C.d(X,{_D:()=>st,xv:()=>ht});var E=C(73308),O=C(2978),n=C(56622),c=C(46296),U=C(76098),B=C(2002);const L=["wrapper"],F=["sourceImage"];function G(s,h){if(1&s){const t=n.RV6();n.j41(0,"img",5,1),n.bIt("load",function(){c.eBV(t);const i=n.XpG();return c.Njj(i.imageLoadedInView())})("mousedown",function(i){c.eBV(t);const a=n.XpG();return c.Njj(a.startMove(i,a.moveTypes.Drag))})("touchstart",function(i){c.eBV(t);const a=n.XpG();return c.Njj(a.startMove(i,a.moveTypes.Drag))})("error",function(i){c.eBV(t);const a=n.XpG();return c.Njj(a.loadImageError(i))}),n.k0s()}if(2&s){const t=n.XpG();n.xc7("visibility",t.imageVisible?"visible":"hidden")("transform",t.safeTransformStyle),n.AVh("ngx-ic-draggable",!t.disabled&&t.allowMoveImage),n.Y8G("src",t.safeImgDataUrl,n.B4B),n.BMQ("alt",t.imageAltText)}}function Y(s,h){if(1&s){const t=n.RV6();n.qex(0),n.j41(1,"span",9),n.bIt("mousedown",function(i){c.eBV(t);const a=n.XpG(2);return c.Njj(a.startMove(i,a.moveTypes.Resize,"topleft"))})("touchstart",function(i){c.eBV(t);const a=n.XpG(2);return c.Njj(a.startMove(i,a.moveTypes.Resize,"topleft"))}),n.nrm(2,"span",10),n.k0s(),n.j41(3,"span",11),n.nrm(4,"span",10),n.k0s(),n.j41(5,"span",12),n.bIt("mousedown",function(i){c.eBV(t);const a=n.XpG(2);return c.Njj(a.startMove(i,a.moveTypes.Resize,"topright"))})("touchstart",function(i){c.eBV(t);const a=n.XpG(2);return c.Njj(a.startMove(i,a.moveTypes.Resize,"topright"))}),n.nrm(6,"span",10),n.k0s(),n.j41(7,"span",13),n.nrm(8,"span",10),n.k0s(),n.j41(9,"span",14),n.bIt("mousedown",function(i){c.eBV(t);const a=n.XpG(2);return c.Njj(a.startMove(i,a.moveTypes.Resize,"bottomright"))})("touchstart",function(i){c.eBV(t);const a=n.XpG(2);return c.Njj(a.startMove(i,a.moveTypes.Resize,"bottomright"))}),n.nrm(10,"span",10),n.k0s(),n.j41(11,"span",15),n.nrm(12,"span",10),n.k0s(),n.j41(13,"span",16),n.bIt("mousedown",function(i){c.eBV(t);const a=n.XpG(2);return c.Njj(a.startMove(i,a.moveTypes.Resize,"bottomleft"))})("touchstart",function(i){c.eBV(t);const a=n.XpG(2);return c.Njj(a.startMove(i,a.moveTypes.Resize,"bottomleft"))}),n.nrm(14,"span",10),n.k0s(),n.j41(15,"span",17),n.nrm(16,"span",10),n.k0s(),n.j41(17,"span",18),n.bIt("mousedown",function(i){c.eBV(t);const a=n.XpG(2);return c.Njj(a.startMove(i,a.moveTypes.Resize,"top"))})("touchstart",function(i){c.eBV(t);const a=n.XpG(2);return c.Njj(a.startMove(i,a.moveTypes.Resize,"top"))}),n.k0s(),n.j41(18,"span",19),n.bIt("mousedown",function(i){c.eBV(t);const a=n.XpG(2);return c.Njj(a.startMove(i,a.moveTypes.Resize,"right"))})("touchstart",function(i){c.eBV(t);const a=n.XpG(2);return c.Njj(a.startMove(i,a.moveTypes.Resize,"right"))}),n.k0s(),n.j41(19,"span",20),n.bIt("mousedown",function(i){c.eBV(t);const a=n.XpG(2);return c.Njj(a.startMove(i,a.moveTypes.Resize,"bottom"))})("touchstart",function(i){c.eBV(t);const a=n.XpG(2);return c.Njj(a.startMove(i,a.moveTypes.Resize,"bottom"))}),n.k0s(),n.j41(20,"span",21),n.bIt("mousedown",function(i){c.eBV(t);const a=n.XpG(2);return c.Njj(a.startMove(i,a.moveTypes.Resize,"left"))})("touchstart",function(i){c.eBV(t);const a=n.XpG(2);return c.Njj(a.startMove(i,a.moveTypes.Resize,"left"))}),n.k0s(),n.bVm()}}function N(s,h){if(1&s){const t=n.RV6();n.j41(0,"div",6),n.bIt("keydown",function(i){c.eBV(t);const a=n.XpG();return c.Njj(a.keyboardAccess(i))}),n.j41(1,"div",7),n.bIt("mousedown",function(i){c.eBV(t);const a=n.XpG();return c.Njj(a.startMove(i,a.moveTypes.Move))})("touchstart",function(i){c.eBV(t);const a=n.XpG();return c.Njj(a.startMove(i,a.moveTypes.Move))}),n.k0s(),n.DNE(2,Y,21,0,"ng-container",8),n.k0s()}if(2&s){const t=n.XpG();n.xc7("top",t.cropper.y1,"px")("left",t.cropper.x1,"px")("width",t.cropper.x2-t.cropper.x1,"px")("height",t.cropper.y2-t.cropper.y1,"px")("margin-left","center"===t.alignImage?t.marginLeft:null)("visibility",t.imageVisible?"visible":"hidden"),n.AVh("ngx-ic-round",t.roundCropper),n.R7$(2),n.Y8G("ngIf",!t.hideResizeSquares)}}class P{constructor(){this.format="png",this.maintainAspectRatio=!0,this.transform={},this.aspectRatio=1,this.resetCropOnAspectRatioChange=!0,this.resizeToWidth=0,this.resizeToHeight=0,this.cropperMinWidth=0,this.cropperMinHeight=0,this.cropperMaxHeight=0,this.cropperMaxWidth=0,this.cropperStaticWidth=0,this.cropperStaticHeight=0,this.canvasRotation=0,this.initialStepSize=3,this.roundCropper=!1,this.onlyScaleDown=!1,this.imageQuality=92,this.autoCrop=!0,this.backgroundColor=null,this.containWithinAspectRatio=!1,this.hideResizeSquares=!1,this.alignImage="center",this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20,this.cropperScaledMaxWidth=20,this.cropperScaledMaxHeight=20,this.stepSize=this.initialStepSize}setOptions(h){Object.keys(h).filter(t=>
1t in this).forEach(t=>this[t]=h[t]),this.validateOptions()}setOptionsFromChanges(h){Object.keys(h).filter(t=>t in this).forEach(t=>this[t]=h[t].currentValue),this.validateOptions()}validateOptions(){if(this.maintainAspectRatio&&!this.aspectRatio)throw new Error("`aspectRatio` should > 0 when `maintainAspectRatio` is enabled")}}var f=function(s){return s.Drag="drag",s.Move="move",s.Resize="resize",s.Pinch="pinch",s}(f||{});function H(s,h){return s/100*h}let Z=(()=>{class s{crop(t,e,i,a){const r=this.getImagePosition(t,e,i,a),o=r.x2-r.x1,p=r.y2-r.y1,g=document.createElement("canvas");g.width=o,g.height=p;const l=g.getContext("2d");if(!l)return null;null!=a.backgroundColor&&(l.fillStyle=a.backgroundColor,l.fillRect(0,0,o,p));const m=(a.transform.scale||1)*(a.transform.flipH?-1:1),u=(a.transform.scale||1)*(a.transform.flipV?-1:1),{translateH:A,translateV:M}=this.getCanvasTranslate(t,e,a),x=e.transformed;l.setTransform(m,0,0,u,x.size.width/2+A,x.size.height/2+M),l.translate(-r.x1/m,-r.y1/u),l.rotate((a.transform.rotate||0)*Math.PI/180),l.drawImage(x.image,-x.size.width/2,-x.size.height/2);const d={width:o,height:p,imagePosition:r,cropperPosition:{...i}};a.containWithinAspectRatio&&(d.offsetImagePosition=this.getOffsetImagePosition(t,e,i,a));const v=this.getResizeRatio(o,p,a);return 1!==v&&(d.width=Math.round(o*v),d.height=a.maintainAspectRatio?Math.round(d.width/a.aspectRatio):Math.round(p*v),function J(s,h,t){const e=s.width,i=s.height,a=e/(h=Math.round(h)),r=i/(t=Math.round(t)),o=Math.ceil(a/2),p=Math.ceil(r/2),g=s.getContext("2d");if(g){const l=g.getImageData(0,0,e,i),m=g.createImageData(h,t),u=l.data,A=m.data;for(let M=0;M<t;M++)for(let x=0;x<h;x++){const d=4*(x+M*h),v=M*r;let _=0,R=0,W=0,T=0,k=0,j=0,D=0;const ct=Math.floor(x*a),pt=Math.floor(M*r);let S=Math.ceil((x+1)*a),z=Math.ceil((M+1)*r);S=Math.min(S,e),z=Math.min(z,i);for(let b=pt;b<z;b++){const Q=Math.abs(v-b)/p,gt=x*a,mt=Q*Q;for(let I=ct;I<S;I++){const V=Math.abs(gt-I)/o,y=Math.sqrt(mt+V*V);if(y>=1)continue;_=2*y*y*y-3*y*y+1;const w=4*(I+b*e);D+=_*u[w+3],W+=_,u[w+3]<255&&(_=_*u[w+3]/250),T+=_*u[w],k+=_*u[w+1],j+=_*u[w+2],R+=_}}A[d]=T/R,A[d+1]=k/R,A[d+2]=j/R,A[d+3]=D/W}s.width=h,s.height=t,g.putImageData(m,0,0)}}(g,d.width,d.height)),d.base64=g.toDataURL("image/"+a.format,this.getQuality(a)),d}getCanvasTranslate(t,e,i){if("px"===i.transform.translateUnit){const a=this.getRatio(t,e);return{translateH:(i.transform.translateH||0)*a,translateV:(i.transform.translateV||0)*a}}return{translateH:i.transform.translateH?H(i.transform.translateH,e.transformed.size.width):0,translateV:i.transform.translateV?H(i.transform.translateV,e.transformed.size.height):0}}getRatio(t,e){return e.transformed.size.width/t.nativeElement.offsetWidth}getImagePosition(t,e,i,a){const r=this.getRatio(t,e),o={x1:Math.round(i.x1*r),y1:Math.round(i.y1*r),x2:Math.round(i.x2*r),y2:Math.round(i.y2*r)};return a.containWithinAspectRatio||(o.x1=Math.max(o.x1,0),o.y1=Math.max(o.y1,0),o.x2=Math.min(o.x2,e.transformed.size.width),o.y2=Math.min(o.y2,e.transformed.size.height)),o}getOffsetImagePosition(t,e,i,a){const p=e.transformed.size.width/t.nativeElement.offsetWidth;let g,l;(a.canvasRotation+e.exifTransform.rotate)%2?(g=(e.transformed.size.width-e.original.size.height)/2,l=(e.transformed.size.height-e.original.size.width)/2):(g=(e.transformed.size.width-e.original.size.width)/2,l=(e.transformed.size.height-e.original.size.height)/2);const m={x1:Math.round(i.x1*p)-g,y1:Math.round(i.y1*p)-l,x2:Math.round(i.x2*p)-g,y2:Math.round(i.y2*p)-l};return a.containWithinAspectRatio||(m.x1=Math.max(m.x1,0),m.y1=Math.max(m.y1,0),m.x2=Math.min(m.x2,e.transformed.size.width),m.y2=Math.min(m.y2,e.transformed.size.height)),m}getResizeRatio(t,e,i){const a=i.resizeToWidth/t,r=i.resizeToHeight/e,o=new Array;i.resizeToWidth>0&&o.push(a),i.resizeToHeight>0&&o.push(r);const p=0===o.length?1:Math.min(...o);return p>1&&!i.onlyScaleDown?p:Math.min(p,1)}getQuality(t){return Math.min(1,Math.max(0,t.imageQuality/100))}}return s.\u0275fac=function(t){return new(t||s)},s.\u0275prov=c.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),tt=(()=>
1{class s{resetCropperPosition(t,e,i){if(!t?.nativeElement)return;const a=t.nativeElement;if(i.cropperStaticHeight&&i.cropperStaticWidth)e.x1=0,e.x2=a.offsetWidth>i.cropperStaticWidth?i.cropperStaticWidth:a.offsetWidth,e.y1=0,e.y2=a.offsetHeight>i.cropperStaticHeight?i.cropperStaticHeight:a.offsetHeight;else{const r=Math.min(i.cropperScaledMaxWidth,a.offsetWidth),o=Math.min(i.cropperScaledMaxHeight,a.offsetHeight);if(i.maintainAspectRatio)if(a.offsetWidth/i.aspectRatio<a.offsetHeight){e.x1=0,e.x2=r;const p=r/i.aspectRatio;e.y1=(a.offsetHeight-p)/2,e.y2=e.y1+p}else{e.y1=0,e.y2=o;const p=o*i.aspectRatio;e.x1=(a.offsetWidth-p)/2,e.x2=e.x1+p}else e.x1=0,e.x2=r,e.y1=0,e.y2=o}}move(t,e,i){const a=this.getClientX(t)-e.clientX,r=this.getClientY(t)-e.clientY;i.x1=e.x1+a,i.y1=e.y1+r,i.x2=e.x2+a,i.y2=e.y2+r}resize(t,e,i,a,r){const o=this.getClientX(t)-e.clientX,p=this.getClientY(t)-e.clientY;switch(e.position){case"left":i.x1=Math.min(Math.max(e.x1+o,i.x2-r.cropperScaledMaxWidth),i.x2-r.cropperScaledMinWidth);break;case"topleft":i.x1=Math.min(Math.max(e.x1+o,i.x2-r.cropperScaledMaxWidth),i.x2-r.cropperScaledMinWidth),i.y1=Math.min(Math.max(e.y1+p,i.y2-r.cropperScaledMaxHeight),i.y2-r.cropperScaledMinHeight);break;case"top":i.y1=Math.min(Math.max(e.y1+p,i.y2-r.cropperScaledMaxHeight),i.y2-r.cropperScaledMinHeight);break;case"topright":i.x2=Math.max(Math.min(e.x2+o,i.x1+r.cropperScaledMaxWidth),i.x1+r.cropperScaledMinWidth),i.y1=Math.min(Math.max(e.y1+p,i.y2-r.cropperScaledMaxHeight),i.y2-r.cropperScaledMinHeight);break;case"right":i.x2=Math.max(Math.min(e.x2+o,i.x1+r.cropperScaledMaxWidth),i.x1+r.cropperScaledMinWidth);break;case"bottomright":i.x2=Math.max(Math.min(e.x2+o,i.x1+r.cropperScaledMaxWidth),i.x1+r.cropperScaledMinWidth),i.y2=Math.max(Math.min(e.y2+p,i.y1+r.cropperScaledMaxHeight),i.y1+r.cropperScaledMinHeight);break;case"bottom":i.y2=Math.max(Math.min(e.y2+p,i.y1+r.cropperScaledMaxHeight),i.y1+r.cropperScaledMinHeight);break;case"bottomleft":i.x1=Math.min(Math.max(e.x1+o,i.x2-r.cropperScaledMaxWidth),i.x2-r.cropperScaledMinWidth),i.y2=Math.max(Math.min(e.y2+p,i.y1+r.cropperScaledMaxHeight),i.y1+r.cropperScaledMinHeight);break;case"center":const g=t.scale,l=Math.min(Math.max(r.cropperScaledMinWidth,Math.abs(e.x2-e.x1)*g),r.cropperScaledMaxWidth),m=Math.min(Math.max(r.cropperScaledMinHeight,Math.abs(e.y2-e.y1)*g),r.cropperScaledMaxHeight);i.x1=e.clientX-l/2,i.x2=e.clientX+l/2,i.y1=e.clientY-m/2,i.y2=e.clientY+m/2,i.x1<0?(i.x2-=i.x1,i.x1=0):i.x2>a.width&&(i.x1-=i.x2-a.width,i.x2=a.width),i.y1<0?(i.y2-=i.y1,i.y1=0):i.y2>a.height&&(i.y1-=i.y2-a.height,i.y2=a.height)}r.maintainAspectRatio&&this.checkAspectRatio(e.position,i,a,r)}checkAspectRatio(t,e,i,a){let r=0,o=0;switch(t){case"top":e.x2=e.x1+(e.y2-e.y1)*a.aspectRatio,r=Math.max(e.x2-i.width,0),o=Math.max(0-e.y1,0),(r>0||o>0)&&(e.x2-=o*a.aspectRatio>r?o*a.aspectRatio:r,e.y1+=o*a.aspectRatio>r?o:r/a.aspectRatio);break;case"bottom":e.x2=e.x1+(e.y2-e.y1)*a.aspectRatio,r=Math.max(e.x2-i.width,0),o=Math.max(e.y2-i.height,0),(r>0||o>0)&&(e.x2-=o*a.aspectRatio>r?o*a.aspectRatio:r,e.y2-=o*a.aspectRatio>r?o:r/a.aspectRatio);break;case"topleft":e.y1=e.y2-(e.x2-e.x1)/a.aspectRatio,r=Math.max(0-e.x1,0),o=Math.max(0-e.y1,0),(r>0||o>0)&&(e.x1+=o*a.aspectRatio>r?o*a.aspectRatio:r,e.y1+=o*a.aspectRatio>r?o:r/a.aspectRatio);break;case"topright":e.y1=e.y2-(e.x2-e.x1)/a.aspectRatio,r=Math.max(e.x2-i.width,0),o=Math.max(0-e.y1,0),(r>0||o>0)&&(e.x2-=o*a.aspectRatio>r?o*a.aspectRatio:r,e.y1+=o*a.aspectRatio>r?o:r/a.aspectRatio);break;case"right":case"bottomright":e.y2=e.y1+(e.x2-e.x1)/a.aspectRatio,r=Math.max(e.x2-i.width,0),o=Math.max(e.y2-i.height,0),(r>0||o>0)&&(e.x2-=o*a.aspectRatio>r?o*a.aspectRatio:r,e.y2-=o*a.aspectRatio>r?o:r/a.aspectRatio);break;case"left":case"bottomleft":e.y2=e.y1+(e.x2-e.x1)/a.aspectRatio,r=Math.max(0-e.x1,0),o=Math.max(e.y2-i.height,0),(r>0||o>0)&&(e.x1+=o*a.aspectRatio>r?o*a.aspectRatio:r,e.y2-=o*a.aspectRatio>r?o:r/a.aspectRatio);break;case"center":e.x2=e.x1+(e.y2-e.y1)*a.aspectRatio,e.y2=e.y1+(e.x2-e.x1)/a.aspectRatio;const p=Math.max(0-e.x1,0),g=Math.max(e.x2-i.width,0),l=Math.max(e.y2-i.height,0),m=
1Math.max(0-e.y1,0);(p>0||g>0||l>0||m>0)&&(e.x1+=l*a.aspectRatio>p?l*a.aspectRatio:p,e.x2-=m*a.aspectRatio>g?m*a.aspectRatio:g,e.y1+=m*a.aspectRatio>g?m:g/a.aspectRatio,e.y2-=l*a.aspectRatio>p?l:p/a.aspectRatio)}}getClientX(t){return t.touches?.[0].clientX||t.clientX||0}getClientY(t){return t.touches?.[0].clientY||t.clientY||0}}return s.\u0275fac=function(t){return new(t||s)},s.\u0275prov=c.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();let ot=(()=>{class s{constructor(){this.autoRotateSupported=function it(){return new Promise(s=>{const h=new Image;h.onload=()=>{s(1===h.width&&2===h.height)},h.src="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q=="})}()}loadImageFile(t,e){return new Promise((i,a)=>{const r=new FileReader;r.onload=o=>{this.loadImage(o.target.result,t.type,e).then(i).catch(a)},r.readAsDataURL(t)})}loadImage(t,e,i){return this.isValidImageType(e)?this.loadBase64Image(t,i):Promise.reject(new Error("Invalid image type"))}isValidImageType(t){return/image\/(png|jpg|jpeg|bmp|gif|tiff|webp|x-icon|vnd.microsoft.icon)/.test(t)}loadImageFromURL(t,e){return new Promise((i,a)=>{const r=new Image;r.onerror=()=>a,r.onload=()=>{const o=document.createElement("canvas"),p=o.getContext("2d");o.width=r.width,o.height=r.height,p?.drawImage(r,0,0),this.loadBase64Image(o.toDataURL(),e).then(i)},r.crossOrigin="anonymous",r.src=t})}loadBase64Image(t,e){return new Promise((i,a)=>{const r=new Image;r.onload=()=>i({originalImage:r,originalBase64:t}),r.onerror=a,r.src=t}).then(i=>this.transformImageBase64(i,e))}transformImageBase64(t,e){var i=this;return(0,E.A)(function*(){const a=yield i.autoRotateSupported,r=yield function at(s){switch("string"==typeof s&&(s=function rt(s){const h=new DataView(function nt(s){s=s.replace(/^data\:([^\;]+)\;base64,/gim,"");const h=atob(s),t=h.length,e=new Uint8Array(t);for(let i=0;i<t;i++)e[i]=h.charCodeAt(i);return e.buffer}(s));if(65496!==h.getUint16(0,!1))return-2;const t=h.byteLength;let e=2;for(;e<t;){if(h.getUint16(e+2,!1)<=8)return-1;const i=h.getUint16(e,!1);if(e+=2,65505==i){if(1165519206!==h.getUint32(e+=2,!1))return-1;const a=18761==h.getUint16(e+=6,!1);e+=h.getUint32(e+4,a);const r=h.getUint16(e,a);e+=2;for(let o=0;o<r;o++)if(274==h.getUint16(e+12*o,a))return h.getUint16(e+12*o+8,a)}else{if(65280&~i)break;e+=h.getUint16(e,!1)}}return-1}(s)),s){case 2:return{rotate:0,flip:!0};case 3:return{rotate:2,flip:!1};case 4:return{rotate:2,flip:!0};case 5:return{rotate:1,flip:!0};case 6:return{rotate:1,flip:!1};case 7:return{rotate:3,flip:!0};case 8:return{rotate:3,flip:!1};default:return{rotate:0,flip:!1}}}(a?-1:t.originalBase64);return t.originalImage&&t.originalImage.complete?i.transformLoadedImage({original:{base64:t.originalBase64,image:t.originalImage,size:{width:t.originalImage.naturalWidth,height:t.originalImage.naturalHeight}},exifTransform:r},e):Promise.reject(new Error("No image loaded"))})()}transformLoadedImage(t,e){var i=this;return(0,E.A)(function*(){const a=e.canvasRotation+t.exifTransform.rotate,r={width:t.original.image.naturalWidth,height:t.original.image.naturalHeight};if(0===a&&!t.exifTransform.flip&&!e.containWithinAspectRatio)return{original:{base64:t.original.base64,image:t.original.image,size:{...r}},transformed:{base64:t.original.base64,image:t.original.image,size:{...r}},exifTransform:t.exifTransform};const o=i.getTransformedSize(r,t.exifTransform,e),p=document.createElement("canvas");p.width=o.width,p.height=o.height;const g=p.getContext("2d");g?.setTransform(t.exifTransform.flip?-1:1,0,0,1,p.width/2,p.height/2),g?.rotate(Math.PI*(a/2)),g?.drawImage(t.original.image,-r.width/2,-r.height/2);const l=p.toDataURL(),m=yield i.loadImageFromBase64(l);return{original:{base64:t.original.base64,image:t.original.image,size:{...r}},transformed:{base64:l,image:m,size:{width:m.width,height:m.height}},exifTransform:t.exifTransform}})()}loadImageFromBase64(t){return new Promise((e,i)=>{const a=new Image;a.onload=()=>e(a),a.onerror=i,a.src=t})}getTransformedSize(t,e,i){const a=i.canvasRotation+e.rotate;if(i.containWithinAspectRatio){if(a%2){const o=t.height/i.aspectRatio;return{width:Math.max(t.height,t.width*i.aspectRatio),height:Math.max(t.width,o)}}{const o=t.width/i.aspectRatio;return{width:Math.max(t.width,t.height*i.aspectRatio),height:Math.max(t.height,o)}}}return a%2?{height:t.width,width:t.height}:{width:t.width,height:t.height}}}return s.\u0275fac=function(t){return new(t||s)},s.\u0275prov=c.jDH({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),st=(()=>{class s{constructor(t,e,i,a,r){this.cropService=t,this.cropperPositionService=e,this.loadImageService=i,this.sanitizer=a,this.cd=r,this.Hammer=window?.Hammer||null,this.settings=new P,this.setImageMaxSizeRetries=0,this.resizedWhileHidden=!1,this.marginLeft="0px",this.maxSize={width:0,height:0},this.moveTypes=f,this.imageVisible=!1,this.format=this.settings.format,this.transform={},this.maintainAspectRatio=this.settings.maintainAspectRatio,this.aspectRatio=this.settings.aspectRatio,this.resetCropOnAspectRatioChange=this.settings.resetCropOnAspectRatioChange,this.resizeToWidth=this.settings.resizeToWidth,this.resizeToHeight=this.settings.resizeToHeight,this.cropperMinWidth=this.settings.cropperMinWidth,this.cropperMinHeight=this.settings.cropperMinHeight,this.cropperMaxHeight=this.settings.cropperMaxHeight,this.cropperMaxWidth=this.settings.cropperMaxWidth,this.cropperStaticWidth=this.settings.cropperStaticWidth,this.cropperStaticHeight=this.settings.cropperStaticHeight,this.canvasRotation=this.settings.canvasRotation,this.initialStepSize=this.settings.initialStepSize,this.roundCropper=this.settings.roundCropper,this.onlyScaleDown=this.settings.onlyScaleDown,this.imageQuality=this.settings.imageQuality,this.autoCrop=this.settings.autoCrop,this.backgroundColor=this.settings.backgroundColor,this.containWithinAspectRatio=this.settings.containWithinAspectRatio,this.hideResizeSquares=this.settings.hideResizeSquares,this.allowMoveImage=!1,this.cropper={x1:-100,y1:-100,x2:1e4,y2:1e4},this.alignImage=this.settings.alignImage,this.disabled=!1,this.hidden=!1,this.imageCropped=new c.bkB,this.startCropImage=new c.bkB,this.imageLoaded=new c.bkB,this.cropperReady=new c.bkB,this.loadImageFailed=new c.bkB,this.transformChange=new c.bkB,this.reset()}ngOnChanges(t){this.onChangesUpdateSettings(t),this.onChangesInputImage(t),this.loadedImage?.original.image.complete&&(t.containWithinAspectRatio||t.canvasRotation)&&this.loadImageService.transformLoadedImage(this.loadedImage,this.settings).then(e=>this.setLoadedImage(e)).catch(e=>this.loadImageError(e)),(t.cropper||t.maintainAspectRatio||t.aspectRatio)&&(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),!this.maintainAspectRatio||!this.resetCropOnAspectRatioChange&&this.aspectRatioIsCorrect()||!t.maintainAspectRatio&&!t.aspectRatio?t.cropper&&(this.checkCropperPosition(!1),this.doAutoCrop()):this.resetCropperPosition(),this.cd.markForCheck()),t.transform&&(this.transform=this.transform||{},this.setCssTransform(),this.doAutoCrop(),this.cd.markForCheck()),t.hidden&&this.resizedWhileHidden&&!this.hidden&&setTimeout(()=>{this.onResize(),this.resizedWhileHidden=!1})}onChangesUpdateSettings(t){this.settings.setOptionsFromChanges(t),this.settings.cropperStaticHeight&&this.settings.cropperStaticWidth&&this.settings.setOptions({hideResizeSquares:!0,cropperMinWidth:this.settings.cropperStaticWidth,cropperMinHeight:this.settings.cropperStaticHeight,cropperMaxHeight:this.settings.cropperStaticHeight,cropperMaxWidth:this.settings.cropperStaticWidth,maintainAspectRatio:!1})}onChangesInputImage(t){(t.imageChangedEvent||t.imageURL||t.imageBase64||t.imageFile)&&this.reset(),t.imageChangedEvent&&this.isValidImageChangedEvent()&&this.loadImageFile(this.imageChangedEvent.target.files[0]),t.imageURL&&this.imageURL&&this.loadImageFromURL(this.imageURL),t.imageBase64&&this.imageBase64&&this.loadBase64Image(this.imageBase64),t.imageFile&&this.imageFile&&this.loadImageFile(this.imageFile)}isValidImageChangedEvent(){return this.imageChangedEvent?.target?.files?.length>0}setCssTransform(){const t=this.transform?.translateUnit||"%";this.safeTransformStyle=this.sanitizer.bypassSecurityTrustStyle(`translate(${this.transform.translateH||0}${t}, ${this.transform.translateV||0}${t}) scaleX(`+(this.transform.scale||1)*(this.transform.flipH?-1:1)+") scaleY("+(this.transform.scale||1)*(this.transform.flipV?-1:1)+") rotate("+(this.transform.rotate||0)+"deg)")}ngOnInit(){this.settings.stepSize=this.initialStepSize,this.activatePinchGesture()}reset(){this.imageVisible=!1,this.loadedImage=void 0,this.safeImgDataUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",this.moveStart={active:!1,type:null,position:null,x1:0,y1:0,x2:0,y2:0,clientX:0,clientY:0},this.maxSize={width:0,height:0},this.cropper.x1=-100,this.cropper.y1=-100,this.cropper.x2=1e4,this.cropper.y2=1e4}loadImageFile(t){this.loadImageService.loadImageFile(t,this.settings).then(e=>this.setLoadedImage(e)).catch(e=>this.loadImageError(e))}loadBase64Image(t){this.loadImageService.loadBase64Image(t,this.settings).then(e=>this.setLoadedImage(e)).catch(e=>this.loadImageError(e))}loadImageFromURL(t){this.loadImageService.loadImageFromURL(t,this.settings).then(e=>this.setLoadedImage(e)).catch(e=>this.loadImageError(e))}setLoadedImage(t){this.loadedImage=t,this.safeImgDataUrl=this.sanitizer.bypassSecurityTrustResourceUrl(t.transformed.base64),this.cd.markForCheck()}loadImageError(t){console.error(t),this.loadImageFailed.emit()}imageLoadedInView(){null!=this.loadedImage&&(this.imageLoaded.emit(this.loadedImage),this.setImageMaxSizeRetries=0,setTimeout(()=>this.checkImageMaxSizeRecursively()))}checkImageMaxSizeRecursively(){this.setImageMaxSizeRetries>40?this.loadImageFailed.emit():this.sourceImageLoaded()?(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.resetCropperPosition(),this.cropperReady.emit({...this.maxSize}),this.cd.markForCheck()):(this.setImageMaxSizeRetries++,setTimeout(()=>this.checkImageMaxSizeRecursively(),50))}sourceImageLoaded(){return this.sourceImage?.nativeElement?.offsetWidth>0}onResize(){this.loadedImage&&(this.hidden?this.resizedWhileHidden=!0:(this.resizeCropperPosition(),this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize()))}activatePinchGesture(){if(this.Hammer){const t=new this.Hammer(this.wrapper.nativeElement);t.get("pinch").set({enable:!0}),t.on("pinchmove",this.onPinch.bind(this)),t.on("pinchend",this.pinchStop.bind(this)),t.on("pinchstart",this.startPinch.bind(this))}else(0,O.naY)()&&console.warn("[NgxImageCropper] Could not find HammerJS - Pinch Gesture won't work")}resizeCropperPosition(){const t=this.sourceImage.nativeElement;(this.maxSize.width!==t.offsetWidth||this.maxSize.height!==t.offsetHeight)&&(this.cropper.x1=this.cropper.x1*t.offsetWidth/this.maxSize.width,this.cropper.x2=this.cropper.x2*t.offsetWidth/this.maxSize.width,this.cropper.y1=this.cropper.y1*t.offsetHeight/this.maxSize.height,this.cropper.y2=this.cropper.y2*t.offsetHeight/this.maxSize.height)}resetCropperPosition(){this.cropperPositionService.resetCropperPosition(this.sourceImage,this.cropper,this.settings),this.doAutoCrop(),this.imageVisible=!0}keyboardAccess(t){this.changeKeyboardStepSize(t),this.keyboardMoveCropper(t)}changeKeyboardStepSize(t){const e=+t.key;e>=1&&e<=9&&(this.settings.stepSize=e)}keyboardMoveCropper(t){if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(t.key))return;const i=t.shiftKey?f.Resize:f.Move,a=t.altKey?function $(s){switch(s){case"ArrowUp":return"bottom";case"ArrowRight":return"left";case"ArrowDown":return"top";default:return"right"}}(t.key):function K(s){switch(s){case"ArrowUp":return"top";case"ArrowRight":return"right";case"ArrowDown":return"bottom";default:return"left"}}(t.key),r=function q(s,h){switch(s){case"ArrowUp":return{clientX:0,clientY:-1*h};case"ArrowRight":return{clientX:h,clientY:0};case"ArrowDown":return{clientX:0,clientY:h};default:return{clientX:-1*h,clientY:0}}}(t.key,this.settings.stepSize);t.preventDefault(),t.stopPropagation(),this.startMove({clientX:0,clientY:0},i,a),this.moveImg(r),this.moveStop()}startMove(t,e,i=null){this.disabled||this.moveStart?.active&&this.moveStart?.type===f.Pinch||e===f.Drag&&!this.allowMoveImage||(t.preventDefault&&t.preventDefault(),this.moveStart={active:!0,type:e,position:i,transform:{...this.transform},clientX:this.cropperPositionService.getClientX(t),clientY:this.cropperPositionService.getClientY(t),...this.cropper})}startPinch(t){this.safeImgDataUrl&&(t.preventDefault&&t.preventDefault(),this.moveStart={active:!0,type:f.Pinch,position:"center",clientX:this.cropper.x1+(this.cropper.x2-this.cropper.x1)/2,clientY:this.cropper.y1+(this.cropper.y2-this.cropper.y1)/2,...this.cropper})}moveImg(t){if(this.moveStart.active){if(t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),this.moveStart.type===f.Move)this.cropperPositionService.move(t,this.moveStart,this.cropper),this.checkCropperPosition(!0);else if(this.moveStart.type===f.Resize)!this.cropperStaticWidth&&!this.cropperStaticHeight&&this.cropperPositionService.resize(t,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1);else if(this.moveStart.type===f.Drag){const e=this.cropperPositionService.getClientX(t)-this.moveStart.clientX,i=this.cropperPositionService.getClientY(t)-this.moveStart.clientY;this.transform={...this.transform,translateH:(this.moveStart.transform?.translateH||0)+e,translateV:(this.moveStart.transform?.translateV||0)+i},this.setCssTransform()}this.cd.detectChanges()}}onPinch(t){this.moveStart.active&&(t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),this.moveStart.type===f.Pinch&&(this.cropperPositionService.resize(t,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1)),this.cd.detectChanges())}setMaxSize(){if(this.sourceImage){const t=this.sourceImage.nativeElement;this.maxSize.width=t.offsetWidth,this.maxSize.height=t.offsetHeight,this.marginLeft=this.sanitizer.bypassSecurityTrustStyle("calc(50% - "+this.maxSize.width/2+"px)")}}setCropperScaledMinSize(){this.loadedImage?.transformed?.image?(this.setCropperScaledMinWidth(),this.setCropperScaledMinHeight()):(this.settings.cropperScaledMinWidth=20,this.settings.cropperScaledMinHeight=20)}setCropperScaledMinWidth(){this.settings.cropperScaledMinWidth=this.cropperMinWidth>0?Math.max(20,this.cropperMinWidth/this.loadedImage.transformed.image.width*this.maxSize.width):20}setCropperScaledMinHeight(){this.settings.cropperScaledMinHeight=this.maintainAspectRatio?Math.max(20,this.settings.cropperScaledMinWidth/this.aspectRatio):this.cropperMinHeight>0?Math.max(20,this.cropperMinHeight/this.loadedImage.transformed.image.height*this.maxSize.height):20}setCropperScaledMaxSize(){if(this.loadedImage?.transformed?.image){const t=this.loadedImage.transformed.size.width/this.maxSize.width;this.settings.cropperScaledMaxWidth=this.cropperMaxWidth>20?this.cropperMaxWidth/t:this.maxSize.width,this.settings.cropperScaledMaxHeight=this.cropperMaxHeight>20?this.cropperMaxHeight/t:this.maxSize.height,this.maintainAspectRatio&&(this.settings.cropperScaledMaxWidth>this.settings.cropperScaledMaxHeight*this.aspectRatio?this.settings.cropperScaledMaxWidth=this.settings.cropperScaledMaxHeight*this.aspectRatio:this.settings.cropperScaledMaxWidth<this.settings.cropperScaledMaxHeight*this.aspectRatio&&(this.settings.cropperScaledMaxHeight=this.settings.cropperScaledMaxWidth/this.aspectRatio))}else this.settings.cropperScaledMaxWidth=this.maxSize.width,this.settings.cropperScaledMaxHeight=this.maxSize.height}checkCropperPosition(t=!1){this.cropper.x1<0&&(this.cropper.x2-=t?this.cropper.x1:0,this.cropper.x1=0),this.cropper.y1<0&&(this.cropper.y2-=t?this.cropper.y1:0,this.cropper.y1=0),this.cropper.x2>this.maxSize.width&&(this.cropper.x1-=t?this.cropper.x2-this.maxSize.width:0,this.cropper.x2=this.maxSize.width),this.croppe
1r.y2>this.maxSize.height&&(this.cropper.y1-=t?this.cropper.y2-this.maxSize.height:0,this.cropper.y2=this.maxSize.height)}moveStop(){this.moveStart.active&&(this.moveStart.active=!1,this.moveStart?.type===f.Drag?this.transformChange.emit(this.transform):this.doAutoCrop())}pinchStop(){this.moveStart.active&&(this.moveStart.active=!1,this.doAutoCrop())}doAutoCrop(){this.autoCrop&&this.crop()}crop(){if(null!=this.loadedImage?.transformed?.image){this.startCropImage.emit();const t=this.cropService.crop(this.sourceImage,this.loadedImage,this.cropper,this.settings);return null!=t&&this.imageCropped.emit(t),t}return null}aspectRatioIsCorrect(){return(this.cropper.x2-this.cropper.x1)/(this.cropper.y2-this.cropper.y1)===this.aspectRatio}}return s.\u0275fac=function(t){return new(t||s)(n.rXU(Z),n.rXU(tt),n.rXU(ot),n.rXU(U.up),n.rXU(O.gRc))},s.\u0275cmp=n.VBU({type:s,selectors:[["image-cropper"]],viewQuery:function(t,e){if(1&t&&n.GBs(L,7)(F,5),2&t){let i;n.mGM(i=n.lsd())&&(e.wrapper=i.first),n.mGM(i=n.lsd())&&(e.sourceImage=i.first)}},hostVars:6,hostBindings:function(t,e){1&t&&n.bIt("resize",function(){return e.onResize()},n.tSv)("mousemove",function(a){return e.moveImg(a)},n.EBC)("touchmove",function(a){return e.moveImg(a)},n.EBC)("mouseup",function(){return e.moveStop()},n.EBC)("touchend",function(){return e.moveStop()},n.EBC),2&t&&(n.xc7("text-align",e.alignImage),n.AVh("disabled",e.disabled)("ngx-ix-hidden",e.hidden))},inputs:{imageChangedEvent:"imageChangedEvent",imageURL:"imageURL",imageBase64:"imageBase64",imageFile:"imageFile",imageAltText:"imageAltText",format:"format",transform:"transform",maintainAspectRatio:"maintainAspectRatio",aspectRatio:"aspectRatio",resetCropOnAspectRatioChange:"resetCropOnAspectRatioChange",resizeToWidth:"resizeToWidth",resizeToHeight:"resizeToHeight",cropperMinWidth:"cropperMinWidth",cropperMinHeight:"cropperMinHeight",cropperMaxHeight:"cropperMaxHeight",cropperMaxWidth:"cropperMaxWidth",cropperStaticWidth:"cropperStaticWidth",cropperStaticHeight:"cropperStaticHeight",canvasRotation:"canvasRotation",initialStepSize:"initialStepSize",roundCropper:"roundCropper",onlyScaleDown:"onlyScaleDown",imageQuality:"imageQuality",autoCrop:"autoCrop",backgroundColor:"backgroundColor",containWithinAspectRatio:"containWithinAspectRatio",hideResizeSquares:"hideResizeSquares",allowMoveImage:"allowMoveImage",cropper:"cropper",alignImage:"alignImage",disabled:"disabled",hidden:"hidden"},outputs:{imageCropped:"imageCropped",startCropImage:"startCropImage",imageLoaded:"imageLoaded",cropperReady:"cropperReady",loadImageFailed:"loadImageFailed",transformChange:"transformChange"},standalone:!1,features:[n.OA$],decls:5,vars:10,consts:[["wrapper",""],["sourceImage",""],["class","ngx-ic-source-image",3,"src","visibility","transform","ngx-ic-draggable","load","mousedown","touchstart","error",4,"ngIf"],[1,"ngx-ic-overlay"],["class","ngx-ic-cropper","tabindex","0",3,"ngx-ic-round","top","left","width","height","margin-left","visibility","keydown",4,"ngIf"],[1,"ngx-ic-source-image",3,"load","mousedown","touchstart","error","src"],["tabindex","0",1,"ngx-ic-cropper",3,"keydown"],[1,"ngx-ic-move",3,"mousedown","touchstart"],[4,"ngIf"],[1,"ngx-ic-resize","ngx-ic-topleft",3,"mousedown","touchstart"],[1,"ngx-ic-square"],[1,"ngx-ic-resize","ngx-ic-top"],[1,"ngx-ic-resize","ngx-ic-topright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-right"],[1,"ngx-ic-resize","ngx-ic-bottomright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-bottom"],[1,"ngx-ic-resize","ngx-ic-bottomleft",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-left"],[1,"ngx-ic-resize-bar","ngx-ic-top",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-right",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-bottom",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-left",3,"mousedown","touchstart"]],template:function(t,e){1&t&&(n.j41(0,"div",null,0),n.DNE(2,G,2,8,"img",2),n.nrm(3,"div",3),n.DNE(4,N,3,15,"div",4),n.k0s()),2&t&&(n.xc7("background",e.imageVisible&&e.backgroundColor),n.R7$(2),n.Y8G("ngIf",e.safeImgDataUrl),n.R7$(),n.xc7("width",e.maxSize.width,"px")("height",e.maxSize.height,"px")("margin-left","center"===e.alignImage?e.marginLeft:null),n.R7$(),n.Y8G("ngIf",e.imageVisible))},dependencies:[B.bT],styles:['[_nghost-%COMP%]{display:flex;position:relative;width:100%;max-width:100%;max-height:100%;overflow:hidden;padding:5px;text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{width:100%;position:relative}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image[_ngcontent-%COMP%]{max-width:100%;max-height:100%;transform-origin:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image.ngx-ic-draggable[_ngcontent-%COMP%]{user-drag:none;-webkit-user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;cursor:grab}[_nghost-%COMP%] .ngx-ic-overlay[_ngcontent-%COMP%]{position:absolute;pointer-events:none;touch-action:none;
1outline:var(--cropper-overlay-color, white) solid 100vw;top:0;left:0}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{position:absolute;display:flex;color:#53535c;background:transparent;outline:rgba(255,255,255,.3) solid 100vw;outline:var(--cropper-outline-color, rgba(255, 255, 255, .3)) solid 100vw;touch-action:none}@media (orientation: portrait){[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{outline-width:100vh}}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:after{position:absolute;content:"";inset:0;pointer-events:none;border:dashed 1px;opacity:.75;color:inherit;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{width:100%;cursor:move;border:1px solid rgba(255,255,255,.5)}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:focus .ngx-ic-move[_ngcontent-%COMP%]{border-color:#1e90ff;border-width:2px}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%]{position:absolute;display:inline-block;line-height:6px;padding:8px;opacity:.85;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%] .ngx-ic-square[_ngcontent-%COMP%]{display:inline-block;background:#53535C;width:6px;height:6px;border:1px solid rgba(255,255,255,.5);box-sizing:content-box}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topleft[_ngcontent-%COMP%]{top:-12px;left:-12px;cursor:nwse-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-top[_ngcontent-%COMP%]{top:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topright[_ngcontent-%COMP%]{top:-12px;right:-12px;cursor:nesw-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-right[_ngcontent-%COMP%]{top:calc(50% - 12px);right:-12px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomright[_ngcontent-%COMP%]{bottom:-12px;right:-12px;cursor:nwse-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomleft[_ngcontent-%COMP%]{bottom:-12px;left:-12px;cursor:nesw-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-left[_ngcontent-%COMP%]{top:calc(50% - 12px);left:-12px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%]{position:absolute;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-top[_ngcontent-%COMP%]{top:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-right[_ngcontent-%COMP%]{top:11px;right:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-left[_ngcontent-%COMP%]{top:11px;left:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]{outline-color:transparent}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{border-radius:100%;box-shadow:0 0 0 100vw #ffffff4d;box-shadow:0 0 0 100vw var(--cropper-outline-color, rgba(255, 255, 255, .3))}@media (orientation: portrait){[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{box-shadow:0 0 0 100vh #ffffff4d;box-shadow:0 0 0 100vh var(--cropper-outline-color, rgba(255, 255, 255, .3))}}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{border-radius:100%}.disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{display:none}.ngx-ix-hidden[_nghost-%COMP%]{display:none}'],changeDetection:0}),s})(),ht=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=n.$C({type:s}),s.\u0275inj=c.G2t({imports:[[B.MD]]}),s})()}}]);
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.