!function(e,n){"object"==typeofexports&&"object"==typeofmodule?module.exports=n():"function"==typeofdefine&&define.amd?define("cryptoPro",[],n):"object"==typeofexports?exports.cryptoPro=n():e.cryptoPro=n()}(window,(function(){returnfunction(e){varn={};functiont(r){if(n[r])returnn[r].exports;var_=n[r]={i:r,l:!1,exports:{}};returne[r].call(_.exports,_,_.exports,t),_.l=!0,_.exports}returnt.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)returne;if(4&n&&"object"==typeofe&&e&&e.__esModule)returne;varr=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeofe)for(var_ine)t.d(r,_,function(n){returne[n]}.bind(null,_));returnr},t.n=function(e){varn=e&&e.__esModule?function(){returne.default}:function(){returne};returnt.d(n,"a",n),n},t.o=function(e,n){returnObject.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=8)}([function(e,n,t){"use strict";varr=this&&this.__awaiter||function(e,n,t,r){returnnew(t||(t=Promise))((function(_,a){functions(e){try{o(r.next(e))}catch(e){a(e)}}functioni(e){try{o(r.throw(e))}catch(e){a(e)}}functiono(e){varn;e.done?_(e.value):(n=e.value,ninstanceoft?n:newt((function(e){e(n)}))).then(s,i)}o((r=r.apply(e,n||[])).next())}))},_=this&&this.__generator||function(e,n){vart,r,_,a,s={label:0,sent:function(){if(1&_[0])throw_[1];return_[1]},trys:[],ops:[]};returna={next:i(0),throw:i(1),return:i(2)},"function"==typeofSymbol&&(a[Symbol.iterator]=function(){returnthis}),a;functioni(a){returnfunction(i){returnfunction(a){if(t)thrownewTypeError("Generator is already executing.");for(;s;)try{if(t=1,r&&(_=2&a[0]?r.return:a[0]?r.throw||((_=r.return)&&_.call(r),0):r.next)&&!(_=_.call(r,a[1])).done)return_;switch(r=0,_&&(a=[2&a[0],_.value]),a[0]){case0:case1:_=a;break;case4:returns.label++,{value:a[1],done:!1};case5:s.label++,r=a[1],a=[0];continue;case7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(_=s.trys,(_=_.length>0&&_[_.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!_||a[1]>_[0]&&a[1]<_[3])){s.label=a[1];break}if(6===a[0]&&s.label<_[1]){s.label=_[1],_=a;break}if(_&&s.label<_[2]){s.label=_[2],s.ops.push(a);break}_[2]&&s.ops.pop(),s.trys.pop();continue}a=n.call(e,s)}catch(e){a=[6,e],r=0}finally{t=_=0}if(5&a[0])throwa[1];return{value:a[0]?a[1]:void0,done:!0}}([a,i])}}};Object.defineProperty(n,"__esModule",{value:!0});vara=t(1),s=!1,i=!1;n._afterPluginsLoaded=function(e){varn=Boolean(window.Promise);returnfunction(){for(varo=[],c=0;c<arguments.length;c++)o[c]=arguments[c];returnr(this,void0,void0,(function(){varr,c;return_(this,(function(_){switch(_.label){case0:if(!i){try{t(11)}catch(e){throwconsole.error(e),newError(a._extractMeaningfulErrorMessage(e)||"Ошибка при подключении модуля для работы с Cades plugin")}i=!0}if(r=window.cadesplugin,!n)thrownewError("Необходим полифилл для Promise");if(!r)thrownewError("Не подключен модуль для работы с Cades plugin");s||(r.set_log_level(r.LOG_LEVEL_ERROR),s=!0),_.label=1;case1:return_.trys.push([1,3,,4]),[4,r];case2:return_.sent(),[3,4];case3:throwc=_.sent(),console.error(c),newError(a._extractMeaningfulErrorMessage(c)||"Ошибка при инициализации модуля для работы с Cades plugin");case4:return[4,e.apply(this,o)];case5:return[2,_.sent()]}}))}))}}},function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n._extractMeaningfulErrorMessage=function(e){varn,t=(null===(n=window.cadesplugin)||void0===n?void0:n.getLastError)&&window.cadesplugin.getLastError(e);if(!(null==t?void0:t.message)){if(!e.message)returnnull;t=e}if(!/[а-яА-Я]/.test(t.message))returnnull;varr=t.message.match(/^(.*?)(?:(?:\.?\s?\(?0x)|(?:\.?$))/);returnr?r[1]:null}},