/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/image-transition-threejs@1.0.2/dist/src/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
var __awaiter=this&&this.__awaiter||function(e,t,s,r){return new(s||(s=Promise))((function(o,n){function i(e){try{a(r.next(e))}catch(e){n(e)}}function p(e){try{a(r.throw(e))}catch(e){n(e)}}function a(e){var t;e.done?o(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(i,p)}a((r=r.apply(e,t||[])).next())}))},__generator=this&&this.__generator||function(e,t){var s,r,o,n,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return n={next:p(0),throw:p(1),return:p(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function p(n){return function(p){return function(n){if(s)throw new TypeError("Generator is already executing.");for(;i;)try{if(s=1,r&&(o=2&n[0]?r.return:n[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,n[1])).done)return o;switch(r=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return i.label++,{value:n[1],done:!1};case 5:i.label++,r=n[1],n=[0];continue;case 7:n=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==n[0]&&2!==n[0])){i=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){i.label=n[1];break}if(6===n[0]&&i.label<o[1]){i.label=o[1],o=n;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(n);break}o[2]&&i.ops.pop(),i.trys.pop();continue}n=t.call(e,i)}catch(e){n=[6,e],r=0}finally{s=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,p])}}};import ZoomBlurTransition from"./shaders/ZoomBlurTransition/ZoomBlurTransition";import ImageTransition from"./ImageTransition";import BurningTransition from"./shaders/BurningTransition/BurningTransition";import CurlNoisesTransition from"./shaders/CurlNoisesTransition/CurlNoisesTransition";import HexTransition from"./shaders/HexTransition/HexTransition";import PerlinTransition from"./shaders/PerlinTransition/PerlinTransition";import PixelsTransition from"./shaders/PixelsTransition/PixelsTransition";function main(){return __awaiter(this,void 0,void 0,(function(){var e,t,s,r,o,n;return __generator(this,(function(i){switch(i.label){case 0:return e=document.querySelector("#canvas1"),t=document.querySelector("#canvas2"),s=document.querySelector("#canvas3"),r=document.querySelector("#canvas4"),o=document.querySelector("#canvas5"),n=document.querySelector("#canvas6"),[4,new ImageTransition(e,new ZoomBlurTransition([{texture_url:"https://images.pexels.com/photos/1761279/pexels-photo-1761279.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"},{texture_url:"https://images.pexels.com/photos/216216/pexels-photo-216216.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"},{texture_url:"https://images.pexels.com/photos/1680247/pexels-photo-1680247.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"}])).start()];case 1:return i.sent(),[4,new ImageTransition(t,new BurningTransition([{texture_url:"https://images.pexels.com/photos/1761279/pexels-photo-1761279.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"},{texture_url:"https://images.pexels.com/photos/216216/pexels-photo-216216.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"},{texture_url:"https://images.pexels.com/photos/1680247/pexels-photo-1680247.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"}])).start()];case 2:return i.sent(),[4,new ImageTransition(s,new CurlNoisesTransition([{texture_url:"https://images.pexels.com/photos/1761279/pexels-photo-1761279.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"},{texture_url:"https://images.pexels.com/photos/216216/pexels-photo-216216.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"},{texture_url:"https://images.pexels.com/photos/1680247/pexels-photo-1680247.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"}])).start()];case 3:return i.sent(),[4,new ImageTransition(r,new HexTransition([{texture_url:"https://images.pexels.com/photos/1761279/pexels-photo-1761279.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"},{texture_url:"https://images.pexels.com/photos/216216/pexels-photo-216216.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"},{texture_url:"https://images.pexels.com/photos/1680247/pexels-photo-1680247.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"}])).start()];case 4:return i.sent(),[4,new ImageTransition(o,new PerlinTransition([{texture_url:"https://images.pexels.com/photos/1761279/pexels-photo-1761279.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"},{texture_url:"https://images.pexels.com/photos/216216/pexels-photo-216216.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"},{texture_url:"https://images.pexels.com/photos/1680247/pexels-photo-1680247.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"}],{scale:4,smoothness:.1,seed:-12.412})).start()];case 5:return i.sent(),[4,new ImageTransition(n,new PixelsTransition([{texture_url:"https://images.pexels.com/photos/1761279/pexels-photo-1761279.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"},{texture_url:"https://images.pexels.com/photos/216216/pexels-photo-216216.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"},{texture_url:"https://images.pexels.com/photos/1680247/pexels-photo-1680247.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1"}],{size:{x:10,y:10},smoothness:.1})).start()];case 6:return i.sent(),[2]}}))}))}main();export{ImageTransition,ZoomBlurTransition,BurningTransition,CurlNoisesTransition,HexTransition,PerlinTransition,PixelsTransition};
//# sourceMappingURL=/sm/c8a1755250842b7b8924fd58d222d52acd09ff938a333e425e806d849b9f3bc2.map