gbs-fwk-buildingblock 1.3.39 → 1.3.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as t,useEffect as i,useRef as r,useMemo as n}from"react";import{jsx as o,jsxs as s,Fragment as a}from"react/jsx-runtime";import{DatePickerComponent as c,DateTimePickerComponent as h,TimePickerComponent as u}from"@syncfusion/ej2-react-calendars";import{MultiSelectComponent as l,Inject as p,CheckBoxSelection as d,DropDownTreeComponent as g,ComboBoxComponent as f,DropDownListComponent as M}from"@syncfusion/ej2-react-dropdowns";import{TooltipComponent as y,DialogUtility as m}from"@syncfusion/ej2-react-popups";import{GridComponent as N,ColumnsDirective as j,ColumnDirective as D,Inject as I,Page as S,Sort as b,Filter as z,Group as v,Search as w,Toolbar as O,ExcelExport as T,PdfExport as L,Resize as A}from"@syncfusion/ej2-react-grids";import{ProgressBar as C,Spinner as x}from"react-bootstrap";import E from"axios";import{utilService as k,messageService as P,urlService as U,configService as Q,genericAPIService as Y}from"gbs-fwk-core";import*as R from"xlsx";import{ToastComponent as V}from"@syncfusion/ej2-react-notifications";import{PdfViewerComponent as F,Inject as B,Toolbar as W,Magnification as G,Navigation as H,Annotation as q,LinkAnnotation as _,BookmarkView as J,ThumbnailView as Z,Print as K,TextSearch as X,FormFields as $,FormDesigner as ee}from"@syncfusion/ej2-react-pdfviewer";import{DocumentEditorComponent as te,Print as ie,SfdtExport as re,WordExport as ne,TextExport as oe,Selection as se,Search as ae,Editor as ce,ImageResizer as he,EditorHistory as ue,ContextMenu as le,OptionsPane as pe,HyperlinkDialog as de,TableDialog as ge,BookmarkDialog as fe,TableOfContentsDialog as Me,PageSetupDialog as ye,StyleDialog as me,ListDialog as Ne,ParagraphDialog as je,BulletsAndNumberingDialog as De,FontDialog as Ie,TablePropertiesDialog as Se,BordersAndShadingDialog as be,TableOptionsDialog as ze,CellOptionsDialog as ve,StylesDialog as we,Toolbar as Oe,DocumentEditorContainerComponent as Te}from"@syncfusion/ej2-react-documenteditor";const Le=({id:e="",value:t="",type:i,className:r="",onClick:n,iconClass:a="",name:c,disabled:h,title:u})=>o("div",{children:s("button",{type:i,className:r,onClick:n,id:e,name:c,disabled:h,title:u,children:[a&&o("i",{className:a}),t]})}),Ae=({className:e,id:t,label:i,onChange:r,disabled:n,name:a,checked:c,change:h})=>s("div",{children:[o("label",{htmlFor:t,className:"form-label",children:i}),o("input",{className:e,type:"checkbox",name:a,onChange:e=>{const t=e.target;h&&h(t),r&&r(e)},checked:c,disabled:n})]}),Ce=({id:e,placeholder:r="",value:n="",onChange:u,onClear:l,className:p="",label:d="",required:g,format:f,name:M,disabled:y,min:m,max:N,allowEdit:j,allowTimePicker:D,enabled:I,start:S,depth:b,timeStep:z=30})=>{const[v,w]=t(y||!1);return i(()=>{void 0!==y&&w(y||!1)},[y]),s("div",{children:[d&&s("label",{htmlFor:e,className:"form-label",children:[d," ",g?o("i",{className:"req-lbl",children:"*"}):o(a,{})]}),D?o(h,{id:e,placeholder:r,value:n,onChange:u,cleared:l,className:p,format:f,name:M,disabled:y,enabled:!v,type:"datepicker",min:m,max:N,allowEdit:j,step:z}):o(c,{id:e,placeholder:r,value:n,onChange:u,cleared:l,className:p,format:f,name:M,enabled:!v,disabled:y,type:"datepicker",min:m,max:N,allowEdit:j,start:S,depth:b})]})},xe=({dataSource:e,placeholder:t,fields:i,onChange:r,className:n,required:c,label:h,id:u,name:g,mode:f,value:M,disabled:y,showSelectAll:m,idForSelectAll:N,allowFiltering:j,filterType:D,onFilterChange:I,onBlur:S,onBlurCallback:b})=>s("div",{children:[h&&s("label",{htmlFor:u,className:"form-label",children:[h," ",c?o("i",{className:"req-lbl",children:"*"}):o(a,{})]}),o(l,{id:u,dataSource:e,placeholder:t,change:t=>{N&&t.value&&e.length>0&&(t.value.length===e.length||t.value.length>=1e3)?(t.value=["5449A75B-7A82-41F4-BCC0-23391656568D"],r?.(t,{})):r?.(t,{})},value:M,fields:i,mode:f,className:n,name:g,changeOnBlur:!1,enabled:!y,type:"multiselect",selectAllText:"Select All",unSelectAllText:"UnSelect All",showSelectAll:m,enableSelectionOrder:!1,allowFiltering:j,filtering:"contains"===D?function(t){const r=e.filter(e=>e[i.text].toLowerCase().includes(t.text.toLowerCase()));t.updateData(r,""),I?.(t)}:void 0,onBlur:S,blur:b,children:o(p,{services:[d]})})]}),Ee=({label:e,action:t,onSelect:i,className:r,id:n,name:a})=>{const c=e=>{const t=e.target.value;i&&i(t)},h=t?.map(e=>s("div",{children:[o("input",{type:"radio",id:e,name:a,value:e,onChange:c})," ",e]},e));return s("div",{className:r,id:n,children:[e," : ",h]})},ke=({type:e="text",disabled:n=!1,required:c=!1,className:h="",name:u="",placeholder:l="",value:p,onChange:d,onKeyPress:g,onKeyDown:f,label:M="",id:m,minLength:N,maxLength:j,step:D,pattern:I="",onBlur:S,defaultValue:b,checked:z=!1,enableTooltip:v,disablePasting:w=!1,autoComplete:O="",inputRef:T})=>{const[L,A]=t(!1),[C,x]=t(p||b),[E,k]=t(),P=e=>{I&&e.target.value&&!(e=>{switch(I){case"email":return/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e);case"phone":return/^[0-9]{10}$/.test(e);case"name":return/^[a-zA-Z0-9.]+$/.test(e)}return!0})(e.target.value)&&A(!0),S?.(e,{})},U=e=>{if(k(Q.current?.value),A(!1),"number"===I)1===e.target.value.length&&"-"===e.target.value||!isNaN(e.target.value)?(d?.(e,{}),x(e.target.value)):e.target.value=C;else if("negativenumber"===I||"preventnegativenumber"===I)e.target.value.includes("-")||isNaN(e.target.value)?e.target.value=C:(d?.(e,{}),x(e.target.value));else if("lettersOnly"===I){/^[a-zA-Z]*$/.test(e.target.value)||""===e.target.value?(x(e.target.value),d?.(e,{})):e.target.value=C}else x(e.target.value),d?.(e,{})},Q=r(null);i(()=>{k(Q.current?.value)},[b,p]),i(()=>{T&&T(Q)},[Q,T]);const Y=(e,t)=>{t&&v||(e.cancel=!0)},R=e=>{f?.(e),e.stopPropagation()};return s(a,{children:[M&&s("label",{htmlFor:m,className:"form-label",children:[M," ",c?o("i",{className:"req-lbl",children:"*"}):o(a,{})]}),s(a,{children:[o(y,null!=p?{beforeOpen:e=>Y(e,E),content:v?E:"",children:o("input",{id:m,type:e,value:p,onChange:U,onKeyPress:g,onKeyDown:R,disabled:n,required:c,className:h,name:u,placeholder:l,minLength:N,maxLength:j,step:D,pattern:I,onBlur:P,defaultValue:b,checked:z,ref:Q,onPaste:w?e=>e.preventDefault():void 0,autoComplete:O})}:{beforeOpen:e=>Y(e,E),content:v?E:"",children:o("input",{id:m,type:e,onChange:U,disabled:n,onKeyPress:g,onKeyDown:R,required:c,className:h,pattern:I,name:u,placeholder:l,minLength:N,maxLength:j,step:D,onBlur:P,defaultValue:b,checked:z,ref:Q,onPaste:w?e=>e.preventDefault():void 0,autoComplete:O})}),L&&o("span",{className:"pat-val-error",children:(()=>{switch(I){case"email":return"Invalid Mail Address";case"phone":return"Invalid Phone Number";case"name":return"Invalid Text Format"}return"Invalid Input"})()})]})]})},Pe=({title:e,tooltip:t})=>s("span",{className:"bb-tooltip",children:[o("span",{className:"bb-data",children:e}),o("span",{className:"bb-tooltiptext",children:t})]});function Ue(e,t){var i=t;return i.unshift(void 0),new(Function.prototype.bind.apply(e,i))}function Qe(e){var t,i=new Uint16Array(5);(window.msCrypto||window.crypto).getRandomValues(i);var r="ej2"+function(e){for(var t="",i=0;i<5;i++)t+=(i?",":"")+e[parseInt(i.toString(),10)];return t}(i),n=function(i){i.source===window&&"string"==typeof i.data&&i.data.length<=32&&i.data===r&&(e(),t())};return window.addEventListener("message",n,!1),window.postMessage(r,"*"),t=function(){window.removeEventListener("message",n),e=n=r=void 0}}function Ye(e,t){for(var i=t,r=e.replace(/\[/g,".").replace(/\]/g,"").split("."),n=0;n<r.length&&!qe(i);n++)i=i[r[parseInt(n.toString(),10)]];return i}function Re(e,t,i){var r,n,o=e.replace(/\[/g,".").replace(/\]/g,"").split("."),s=i||{},a=s,c=o.length;for(r=0;r<c;r++)n=o[parseInt(r.toString(),10)],r+1===c?a[""+n]=void 0===t?{}:t:He(a[""+n])&&(a[""+n]={}),a=a[""+n];return s}function Ve(e,t){delete e[""+t]}var Fe="undefined"!=typeof window?window:{};function Be(e){return!He(e)&&e.constructor==={}.constructor}function We(e,t){if(!He(t))for(var i=e,r=t,n="deepMerge",o=0,s=Object.keys(t);o<s.length;o++){var a=s[o];He(i[""+n])||-1===i[""+n].indexOf(a)||!Be(r[""+a])&&!Array.isArray(r[""+a])?i[""+a]=r[""+a]:Ge(i[""+a],i[""+a],r[""+a],!0)}}function Ge(e,t,i,r){var n=e&&"object"==typeof e?e:{},o=arguments.length;r&&(o-=1);for(var s=function(e){if(!a[e])return"continue";var t=a[e];Object.keys(t).forEach(function(e){var i,o=n[""+e],s=t[""+e];Array.isArray(s)&&Array.isArray(o)&&(s.length,o.length);r&&(Be(s)||Array.isArray(s))?Be(s)?(i=o||{},Array.isArray(i)&&i.hasOwnProperty("isComplexArray")?Ge(i,{},s,r):n[""+e]=Ge(i,{},s,r)):(i=o||[],n[""+e]=Ge([],i,s,i&&i.length||s&&s.length)):n[""+e]=s})},a=arguments,c=1;c<o;c++)s(c);return n}function He(e){return null==e}function qe(e){return void 0===e}function _e(e,t){return e===t||!(e===document||!e)&&_e(e.parentNode,t)}function Je(e){try{throw new Error(e)}catch(e){throw e.message+"\n"+e.stack}}function Ze(){return false}var Ke,Xe={latn:{_digits:"0123456789",_type:"numeric"}},$e={decimal:".",group:",",percentSign:"%",plusSign:"+",minusSign:"-",infinity:"∞",nan:"NaN",exponential:"E"},et=[0,1,2,3,4,5,6,7,8,9],tt=function(){function e(){}return e.getMainObject=function(e,t){return Ye("main."+t,e)},e.getNumberingSystem=function(e){return Ye("supplemental.numberingSystems",e)||this.numberingSystems},e.reverseObject=function(e,t){for(var i={},r=0,n=t||Object.keys(e);r<n.length;r++){var o=n[r];i.hasOwnProperty(e[o])||(i[e[o]]=o)}return i},e.getSymbolRegex=function(e){var t=e.map(function(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}).join("|");return new RegExp(t,"g")},e.getSymbolMatch=function(e){for(var t={},i=0,r=Object.keys($e);i<r.length;i++){var n=r[i];t[e[n]]=$e[n]}return t},e.constructRegex=function(e){for(var t=e.length,i="",r=0;r<t;r++)i+=r!==t-1?e[parseInt(r.toString(),10)]+"|":e[parseInt(r.toString(),10)];return i},e.convertValueParts=function(e,t,i){return e.replace(t,function(e){return i[e]})},e.getDefaultNumberingSystem=function(e){var t={};return t.obj=Ye("numbers",e),t.nSystem=Ye("defaultNumberingSystem",t.obj),t},e.getCurrentNumericOptions=function(e,t,i,r){var n={},o=this.getDefaultNumberingSystem(e);if(!qe(o.nSystem)||r){var s=r?Ye("obj.mapperDigits",o):Ye(o.nSystem+"._digits",t);if(!qe(s)){n.numericPair=this.reverseObject(s,et);var a=RegExp;n.numberParseRegex=new a(this.constructRegex(s),"g"),n.numericRegex="["+s[0]+"-"+s[9]+"]",i&&(n.numericRegex=s[0]+"-"+s[9],n.symbolNumberSystem=Ye(r?"numberSymbols":"symbols-numberSystem-"+o.nSystem,o.obj),n.symbolMatch=this.getSymbolMatch(n.symbolNumberSystem),n.numberSystem=o.nSystem)}}return n},e.getNumberMapper=function(e,t,i){var r={mapper:{}},n=this.getDefaultNumberingSystem(e);if(!qe(n.nSystem)){r.numberSystem=n.nSystem,r.numberSymbols=Ye("symbols-numberSystem-"+n.nSystem,n.obj),r.timeSeparator=Ye("timeSeparator",r.numberSymbols);var o=Ye(n.nSystem+"._digits",t);if(!qe(o))for(var s=0,a=et;s<a.length;s++){var c=a[s];r.mapper[c]=o[c]}}return r},e.nPair="numericPair",e.nRegex="numericRegex",e.numberingSystems=Xe,e}(),it={DJF:"Fdj",ERN:"Nfk",ETB:"Br",NAD:"$",ZAR:"R",XAF:"FCFA",GHS:"GH₵",XDR:"XDR",AED:"د.إ.",BHD:"د.ب.",DZD:"د.ج.",EGP:"ج.م.",ILS:"₪",IQD:"د.ع.",JOD:"د.ا.",KMF:"CF",KWD:"د.ك.",LBP:"ل.ل.",LYD:"د.ل.",MAD:"د.م.",MRU:"أ.م.",OMR:"ر.ع.",QAR:"ر.ق.",SAR:"ر.س.",SDG:"ج.س.",SOS:"S",SSP:"£",SYP:"ل.س.",TND:"د.ت.",YER:"ر.ي.",CLP:"$",INR:"₹",TZS:"TSh",EUR:"€",AZN:"₼",RUB:"₽",BYN:"Br",ZMW:"K",BGN:"лв.",NGN:"₦",XOF:"CFA",BDT:"৳",CNY:"¥",BAM:"КМ",UGX:"USh",USD:"$",CZK:"Kč",GBP:"£",DKK:"kr.",KES:"Ksh",CHF:"CHF",MVR:"ރ.",BTN:"Nu.",XCD:"EC$",AUD:"$",BBD:"$",BIF:"FBu",BMD:"$",BSD:"$",BWP:"P",BZD:"$",CAD:"$",NZD:"$",FJD:"$",FKP:"£",GIP:"£",GMD:"D",GYD:"$",HKD:"$",IDR:"Rp",JMD:"$",KYD:"$",LRD:"$",MGA:"Ar",MOP:"MOP$",MUR:"Rs",MWK:"MK",MYR:"RM",PGK:"K",PHP:"₱",PKR:"Rs",RWF:"RF",SBD:"$",SCR:"SR",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",ANG:"NAf.",SZL:"E",TOP:"T$",TTD:"$",VUV:"VT",WST:"WS$",ARS:"$",BOB:"Bs",BRL:"R$",COP:"$",CRC:"₡",CUP:"$",DOP:"$",GTQ:"Q",HNL:"L",MXN:"$",NIO:"C$",PAB:"B/.",PEN:"S/",PYG:"₲",UYU:"$",VES:"Bs.S",IRR:"ريال",GNF:"FG",CDF:"FC",HTG:"G",XPF:"FCFP",HRK:"kn",HUF:"Ft",AMD:"֏",ISK:"kr",JPY:"¥",GEL:"₾",CVE:"",KZT:"₸",KHR:"៛",KPW:"₩",KRW:"₩",KGS:"сом",AOA:"Kz",LAK:"₭",MZN:"MTn",MKD:"ден",MNT:"₮",BND:"$",MMK:"K",NOK:"kr",NPR:"रु",AWG:"Afl.",SRD:"$",PLN:"zł",AFN:"؋",STN:"Db",MDL:"L",RON:"lei",UAH:"₴",LKR:"රු.",ALL:"Lekë",RSD:"дин.",TJS:"смн",THB:"฿",TMT:"m.",TRY:"₺",UZS:"сўм",VND:"₫",TWD:"NT$"};!function(e){var t=[28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990];e.getHijriDate=function(e){var i=e.getDate(),r=e.getMonth(),n=e.getFullYear(),o=r+1,s=n;o<3&&(s-=1,o+=12);var a=Math.floor(s/100),c=a-Math.floor(a/4)-2,h=Math.floor(365.25*(s+4716))+Math.floor(30.6001*(o+1))+i-c-1524,u=h+(c=(a=Math.floor((h-1867216.25)/36524.25))-Math.floor(a/4)+1)+1524,l=Math.floor((u-122.1)/365.25),p=Math.floor(365.25*l),d=Math.floor((u-p)/30.6001);i=u-p-Math.floor(30.6001*d),(r=Math.floor((u-p)/20.6001))>13&&(l+=1,r-=12),r-=1,n=l-4716;var g=h-24e5,f=10631/30,M=h-1948084,y=Math.floor(M/10631);M-=10631*y;var m=Math.floor((M-.1335)/f),N=30*y+m;M-=Math.floor(m*f+.1335);var j=Math.floor((M+28.5001)/29.5);13===j&&(j=12);for(var D=M-Math.floor(29.5001*j-29),I=0;I<t.length&&!(t[parseInt(I.toString(),10)]>g);I++);var S=I+16260,b=Math.floor((S-1)/12),z=b+1,v=S-12*b,w=g-t[I-1]+1;return(w+"").length>2&&(w=D,v=j,z=N),{year:z,month:v,date:w}},e.toGregorian=function(e,i,r){var n=r+t[12*(e-1)+1+(i-1)-16260-1]-1+24e5,o=Math.floor(n+.5),s=Math.floor((o-1867216.25)/36524.25),a=(s=o+1+s-Math.floor(s/4))+1524,c=Math.floor((a-122.1)/365.25),h=Math.floor(365.25*c),u=Math.floor((a-h)/30.6001),l=a-h-Math.floor(30.6001*u),p=u-(u>13.5?13:1),d=c-(p>2.5?4716:4715);return d<=0&&p--,new Date(d+"/"+p+"/"+l)}}(Ke||(Ke={}));var rt,nt=/\/MMMMM|MMMM|MMM|a|LLLL|LLL|EEEEE|EEEE|E|K|cccc|ccc|WW|W|G+|z+/gi,ot="stand-alone",st=["sun","mon","tue","wed","thu","fri","sat"],at={m:"getMinutes",h:"getHours",H:"getHours",s:"getSeconds",d:"getDate",f:"getMilliseconds"},ct=function(){function e(){}return e.dateFormat=function(e,t,i){var r=this,n=rt.getDependables(i,e,t.calendar);Ye("parserObject.numbers",n);var o=n.dateObject,s={isIslamic:rt.islamicRegex.test(t.calendar)},a=t.format||rt.getResultantPattern(t.skeleton,n.dateObject,t.type,!1,"");if(s.dateSeperator=rt.getDateSeparator(n.dateObject),qe(a))Je("Format options or type given must be invalid");else{a=rt.ConvertDateToWeekFormat(a),s.pattern=a,s.numMapper=tt.getNumberMapper(n.parserObject,tt.getNumberingSystem(i));for(var c=0,h=a.match(nt)||[];c<h.length;c++){var u=h[c],l=u.length,p=u[0];switch("K"===p&&(p="h"),p){case"E":case"c":s.weekday=n.dateObject[rt.days][ot][rt.monthIndex[l]];break;case"M":case"L":s.month=n.dateObject[rt.month][ot][rt.monthIndex[l]];break;case"a":s.designator=Ye("dayPeriods.format.wide",o);break;case"G":var d=l<=3?"eraAbbr":4===l?"eraNames":"eraNarrow";s.era=Ye("eras."+d,n.dateObject);break;case"z":s.timeZone=Ye("dates.timeZoneNames",n.parserObject)}}}return function(e){return isNaN(e.getDate())?null:r.intDateFormatter(e,s)}},e.intDateFormatter=function(e,t){for(var i="",r=t.pattern.match(rt.dateParseRegex),n=this.getCurrentDateValue(e,t.isIslamic),o=0,s=r;o<s.length;o++){var a=s[o],c=a.length,h=a[0];"K"===h&&(h="h");var u=void 0,l="",p=void 0,d=void 0,g="";switch(h){case"M":case"L":u=n.month,c>2?i+=t.month[u]:p=!0;break;case"E":case"c":i+=t.weekday[st[e.getDay()]];break;case"H":case"h":case"m":case"s":case"d":case"f":if(p=!0,"d"===h)u=n.date;else if("f"===h){p=!1,d=!0;var f=(l=(l=e[at[h]]().toString()).substring(0,c)).length;if(c!==f){if(c>3)continue;for(var M=0;M<c-f;M++)l="0"+l.toString()}g+=l}else u=e[at[h]]();"h"===h&&(u=u%12||12);break;case"y":d=!0,g+=n.year,2===c&&(g=g.substr(g.length-2));break;case"a":var y=e.getHours()<12?"am":"pm";i+=t.designator[y];break;case"G":var m=e.getFullYear()<0?0:1,N=t.era[m];He(N)&&(N=t.era[m?0:1]),i+=N||"";break;case"'":i+="''"===a?"'":a.replace(/'/g,"");break;case"z":var j=e.getTimezoneOffset(),D=c<4?"+H;-H":t.timeZone.hourFormat;D=D.replace(/:/g,t.numMapper.timeSeparator),0===j?i+=t.timeZone.gmtZeroFormat:(d=!0,g=this.getTimeZoneValue(j,D)),g=t.timeZone.gmtFormat.replace(/\{0\}/,g);break;case":":i+=t.numMapper.numberSymbols.timeSeparator;break;case"/":i+=t.dateSeperator;break;case"W":p=!0,u=rt.getWeekOfYear(e);break;default:i+=a}p&&(d=!0,g=this.checkTwodigitNumber(u,c)),d&&(i+=tt.convertValueParts(g,rt.latnParseRegex,t.numMapper.mapper))}return i},e.getCurrentDateValue=function(e,t){return t?Ke.getHijriDate(e):{year:e.getFullYear(),month:e.getMonth()+1,date:e.getDate()}},e.checkTwodigitNumber=function(e,t){var i=e+"";return 2===t&&2!==i.length?"0"+i:i},e.getTimeZoneValue=function(e,t){var i=this,r=t.split(";")[e>0?1:0],n=Math.abs(e);return r.replace(/HH?|mm/g,function(e){var t=e.length,r=-1!==e.indexOf("H");return i.checkTwodigitNumber(Math.floor(r?n/60:n%60),t)})},e}(),ht={ms:"minimumSignificantDigits",ls:"maximumSignificantDigits",mf:"minimumFractionDigits",lf:"maximumFractionDigits"},ut=["infinity","nan","group","decimal","exponential"],lt=function(){function e(){}return e.numberFormatter=function(e,t,i){var r,n=this,o=Ge({},t),s={},a={},c=rt.getDependables(i,e,"",!0);c.numericObject,a.numberMapper=tt.getNumberMapper(c.parserObject,tt.getNumberingSystem(i),!0),a.currencySymbol=rt.getCurrencySymbol(c.numericObject,o.currency||gt,t.altSymbol),a.percentSymbol=a.numberMapper.numberSymbols.percentSign,a.minusSymbol=a.numberMapper.numberSymbols.minusSign;var h=a.numberMapper.numberSymbols;if(t.format&&!rt.formatRegex.test(t.format))s=rt.customFormat(t.format,a,c.numericObject);else{Ge(o,rt.getProperNumericSkeleton(t.format||"N")),o.isCurrency="currency"===o.type,o.isPercent="percent"===o.type,r=rt.getSymbolPattern(o.type,a.numberMapper.numberSystem,c.numericObject,o.isAccount),o.groupOne=this.checkValueRange(o.maximumSignificantDigits,o.minimumSignificantDigits,!0),this.checkValueRange(o.maximumFractionDigits,o.minimumFractionDigits,!1,!0),qe(o.fractionDigits)||(o.minimumFractionDigits=o.maximumFractionDigits=o.fractionDigits),qe(o.useGrouping)&&(o.useGrouping=!0),o.isCurrency&&(r=r.replace(/\u00A4/g,rt.defaultCurrency));var u=r.split(";");if(s.nData=rt.getFormatData(u[1]||"-"+u[0],!0,a.currencySymbol),s.pData=rt.getFormatData(u[0],!1,a.currencySymbol),o.useGrouping&&(o.groupSeparator=h[ut[2]],o.groupData=this.getGroupingDetails(u[0])),qe(o.minimumFractionDigits)&&(o.minimumFractionDigits=s.nData.minimumFraction),qe(o.maximumFractionDigits)){var l=s.nData.maximumFraction;o.maximumFractionDigits=qe(l)&&o.isPercent?0:l}var p=o.minimumFractionDigits,d=o.maximumFractionDigits;qe(p)||qe(d)||p>d&&(o.maximumFractionDigits=p)}return Ge(s.nData,o),Ge(s.pData,o),function(e){return isNaN(e)?h[ut[1]]:isFinite(e)?n.intNumberFormatter(e,s,a,t):h[ut[0]]}},e.getGroupingDetails=function(e){var t={},i=e.match(rt.negativeDataRegex);if(i&&i[4]){var r=i[4],n=r.lastIndexOf(",");if(-1!==n){var o=r.split(".")[0];t.primary=o.length-n-1;var s=r.lastIndexOf(",",n-1);-1!==s&&(t.secondary=n-1-s)}}return t},e.checkValueRange=function(e,t,i,r){var n=r?"f":"s",o=0,s=ht["l"+n],a=ht["m"+n];if(qe(e)||(this.checkRange(e,s,r),o++),qe(t)||(this.checkRange(t,a,r),o++),2===o){if(!(e<t))return!0;Je(a+"specified must be less than the"+s)}else i&&1===o&&Je("Both"+a+"and"+a+"must be present");return!1},e.checkRange=function(e,t,i){var r=i?[0,20]:[1,21];(e<r[0]||e>r[1])&&Je(t+"value must be within the range"+r[0]+"to"+r[1])},e.intNumberFormatter=function(e,t,i,r){var n;if(!qe(t.nData.type)){e<0?(e*=-1,n=t.nData):n=0===e&&t.zeroData||t.pData;var o="";if(n.isPercent&&(e*=100),n.groupOne)o=this.processSignificantDigits(e,n.minimumSignificantDigits,n.maximumSignificantDigits);else if(o=this.processFraction(e,n.minimumFractionDigits,n.maximumFractionDigits,r),n.minimumIntegerDigits&&(o=this.processMinimumIntegers(o,n.minimumIntegerDigits)),i.isCustomFormat&&n.minimumFractionDigits<n.maximumFractionDigits&&/\d+\.\d+/.test(o)){for(var s=o.split("."),a=s[1],c=a.length-1;c>=0&&("0"===a[""+c]&&c>=n.minimumFractionDigits);c--)a=a.slice(0,c);o=s[0]+"."+a}return"scientific"===n.type&&(o=(o=e.toExponential(n.maximumFractionDigits)).replace("e",i.numberMapper.numberSymbols[ut[4]])),o=o.replace(".",i.numberMapper.numberSymbols[ut[3]]),o="#,###,,;(#,###,,)"===n.format?this.customPivotFormat(parseInt(o,10)):o,n.useGrouping&&(o=this.groupNumbers(o,n.groupData.primary,n.groupSeparator||",",i.numberMapper.numberSymbols[ut[3]]||".",n.groupData.secondary)),o=tt.convertValueParts(o,rt.latnParseRegex,i.numberMapper.mapper),"N/A"===n.nlead?n.nlead:"0"===o&&r&&"0"===r.format?o+n.nend:n.nlead+o+n.nend}},e.processSignificantDigits=function(e,t,i){var r=e+"";return r.length<t?e.toPrecision(t):+(r=e.toPrecision(i))+""},e.groupNumbers=function(e,t,i,r,n){for(var o=!He(n)&&0!==n,s=e.split(r),a=s[0],c=a.length,h="";c>t;)h=a.slice(c-t,c)+(h.length?i+h:""),c-=t,o&&(t=n,o=!1);return s[0]=a.slice(0,c)+(h.length?i:"")+h,s.join(r)},e.processFraction=function(e,t,i,r){var n=(e+"").split(".")[1],o=n?n.length:0;if(t&&o<t){var s="";if(0!==o){s+=e;for(var a=0;a<t-o;a++)s+="0";return s}return s=e.toFixed(t),e.toFixed(t)}if(!He(i)&&(o>i||0===i))return e.toFixed(i);var c=e+"";return"0"===c[0]&&r&&"###.00"===r.format&&(c=c.slice(1)),c},e.processMinimumIntegers=function(e,t){var i=e.split("."),r=i[0],n=r.length;if(n<t){for(var o=0;o<t-n;o++)r="0"+r;i[0]=r}return i.join(".")},e.customPivotFormat=function(e){if(e>=5e5){var t=(e/=1e6).toString().split(".");t[0];var i=t[1];return i&&+i.substring(0,1)>=5?Math.ceil(e).toString():Math.floor(e).toString()}return""},e}(),pt=function(){function e(e){this.ranArray=[],this.boundedEvents={},He(e)||(this.context=e)}return e.prototype.on=function(e,t,i,r){if(!He(t)){var n=i||this.context;this.notExist(e)?this.boundedEvents[""+e]=[{handler:t,context:n,id:r}]:He(r)?this.isHandlerPresent(this.boundedEvents[""+e],t)||this.boundedEvents[""+e].push({handler:t,context:n}):-1===this.ranArray.indexOf(r)&&(this.ranArray.push(r),this.boundedEvents[""+e].push({handler:t,context:n,id:r}))}},e.prototype.off=function(e,t,i){if(!this.notExist(e)){var r=Ye(e,this.boundedEvents);if(t){for(var n=0;n<r.length;n++)if(i){if(r[parseInt(n.toString(),10)].id===i){r.splice(n,1);var o=this.ranArray.indexOf(i);-1!==o&&this.ranArray.splice(o,1);break}}else if(t===r[parseInt(n.toString(),10)].handler){r.splice(n,1);break}}else delete this.boundedEvents[""+e]}},e.prototype.notify=function(e,t,i,r){if(this.notExist(e))i&&i.call(this,t);else{t&&(t.name=e);var n=Ye(e,this.boundedEvents).slice(0);if(window.Blazor)return this.blazorCallback(n,t,i,r,0);for(var o=0,s=n;o<s.length;o++){var a=s[o];a.handler.call(a.context,t)}i&&i.call(this,t)}},e.prototype.blazorCallback=function(e,t,i,r,n){var o=this,s=n===e.length-1;if(n<e.length){var a=e[parseInt(n.toString(),10)],c=a.handler.call(a.context,t);if(c&&"function"==typeof c.then){if(!i)return c;c.then(function(c){if(c="string"==typeof c&&o.isJson(c)?JSON.parse(c,o.dateReviver):c,Ge(t,t,c,!0),!i||!s)return o.blazorCallback(e,t,i,r,n+1);i.call(a.context,t)}).catch(function(e){r&&r.call(a.context,"string"==typeof e&&o.isJson(e)?JSON.parse(e,o.dateReviver):e)})}else{if(!i||!s)return this.blazorCallback(e,t,i,r,n+1);i.call(a.context,t)}}},e.prototype.dateReviver=function(e,t){return Ze&&"string"==typeof t&&null!==t.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/)?new Date(t):t},e.prototype.isJson=function(e){try{JSON.parse(e)}catch(e){return!1}return!0},e.prototype.destroy=function(){this.boundedEvents=this.context=void 0},e.prototype.offIntlEvents=function(){var e=this.boundedEvents.notifyExternalChange;if(e){for(var t=0;t<e.length;t++){var i=e[""+t].context;i&&i.detectFunction&&i.randomId&&!i.isRendered&&(this.off("notifyExternalChange",i.detectFunction,i.randomId),t--)}this.boundedEvents.notifyExternalChange.length||delete this.boundedEvents.notifyExternalChange}},e.prototype.notExist=function(e){return!1===this.boundedEvents.hasOwnProperty(e)||this.boundedEvents[e].length<=0},e.prototype.isHandlerPresent=function(e,t){for(var i=0,r=e;i<r.length;i++){if(r[i].handler===t)return!0}return!1},e}(),dt=new pt,gt="USD",ft=RegExp,Mt={"en-US":{d:"M/d/y",D:"EEEE, MMMM d, y",f:"EEEE, MMMM d, y h:mm a",F:"EEEE, MMMM d, y h:mm:s a",g:"M/d/y h:mm a",G:"M/d/yyyy h:mm:ss tt",m:"MMMM d",M:"MMMM d",r:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",R:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"h:mm tt",T:"h:m:s tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",U:"dddd, MMMM d, yyyy h:mm:ss tt",y:"MMMM yyyy",Y:"MMMM yyyy"}};!function(e){e.negativeDataRegex=/^(('[^']+'|''|[^*#@0,.E])*)(\*.)?((([#,]*[0,]*0+)(\.0*[0-9]*#*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/,e.customRegex=/^(('[^']+'|''|[^*#@0,.])*)(\*.)?((([0#,]*[0,]*[0#]*[0#\ ]*)(\.[0#]*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/,e.latnParseRegex=/0|1|2|3|4|5|6|7|8|9/g;var t=/[0-9]/g;e.defaultCurrency="$";var i=["infinity","nan","group","decimal"],r=/G|M|L|H|c|'| a|yy|y|EEEE|E/g,n={G:"",M:"m",L:"m",H:"h",c:"d","'":'"'," a":" AM/PM",yy:"yy",y:"yyyy",EEEE:"dddd",E:"ddd"};e.dateConverterMapper=/dddd|ddd/gi;e.islamicRegex=/^islamic/;var o={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};e.formatRegex=new ft("(^[ncpae]{1})([0-1]?[0-9]|20)?$","i"),e.currencyFormatRegex=new ft("(^[ca]{1})([0-1]?[0-9]|20)?$","i"),e.curWithoutNumberRegex=/(c|a)$/gi;var s={$:"isCurrency","%":"isPercent","-":"isNegative",0:"nlead",1:"nend"};function a(t,i,r,n,o){var s,a=r||"date";if(o)s=l({skeleton:t},o).format||l({skeleton:"d"},"en-US").format;else{if(-1!==e.basicPatterns.indexOf(t)){if(s=Ye(a+"Formats."+t,i),"dateTime"===a){var c=Ye("dateFormats."+t,i),h=Ye("timeFormats."+t,i);s=s.replace("{1}",c).replace("{0}",h)}}else s=Ye("dateTimeFormats.availableFormats."+t,i);qe(s)&&"yMd"===t&&(s="M/d/y")}return s}function c(t,i,r,n){var o={},s=r||"gregorian";if(o.parserObject=tt.getMainObject(t,i)||e.defaultObject,n)o.numericObject=Ye("numbers",o.parserObject);else{var a="dates.calendars."+s;o.dateObject=Ye(a,o.parserObject)}return o}function h(e,t,i,r){return Ye(e+"Formats-numberSystem-"+t+(r?".accounting":".standard"),i)||(r?Ye(e+"Formats-numberSystem-"+t+".standard",i):"")}function u(t){t.match(e.dateConverterMapper);return t}function l(e,t){var i=e.format||e.skeleton,r=Ye((t||"en-US")+"."+i,Mt);return r||(r=Ye("en-US."+i,Mt)),r&&(r=u(r),e.format=r.replace(/tt/,"a")),e}function p(t){var i=t.match(e.formatRegex),r={},n=i[1].toUpperCase();return r.isAccount="A"===n,r.type=e.patternMatcher[n],t.length>1&&(r.fractionDigits=parseInt(i[2],10)),r}function d(i,r,n,o){var s=o?{}:{nlead:"",nend:""},a=i.match(e.customRegex);if(a){o||(s.nlead=g(a[1],n),s.nend=g(a[10],n),s.groupPattern=a[4]);var c=a[7];if(c&&r){var h=c.match(t);He(h)?s.minimumFraction=0:s.minimumFraction=h.length,s.maximumFraction=c.length-1}}return s}function g(t,i){return t?(t=t.replace(e.defaultCurrency,i),""===i?t.trim():t):""}function f(e,t,i){return Ye("currencies."+t+(i?"."+i:".symbol"),e)||Ye("currencies."+t+".symbol-alt-narrow",e)||"$"}function M(t,r,n){var o={type:"decimal",minimumFractionDigits:0,maximumFractionDigits:0},s=t.match(e.customRegex);if(He(s)||""===s[5]&&"N/A"!==t)return o.type=void 0,o;o.nlead=s[1],o.nend=s[10];var a=s[6],c=!!a.match(/\ $/g),u=-1!==a.replace(/\ $/g,"").indexOf(" ");o.useGrouping=-1!==a.indexOf(",")||u,a=a.replace(/,/g,"");var l=s[7];if(-1!==a.indexOf("0")&&(o.minimumIntegerDigits=a.length-a.indexOf("0")),He(l)||(o.minimumFractionDigits=l.lastIndexOf("0"),o.maximumFractionDigits=l.lastIndexOf("#"),-1===o.minimumFractionDigits&&(o.minimumFractionDigits=0),(-1===o.maximumFractionDigits||o.maximumFractionDigits<o.minimumFractionDigits)&&(o.maximumFractionDigits=o.minimumFractionDigits)),He(r)?Ge(o,y([o.nlead,o.nend],"%","%")):(r.isCustomFormat=!0,Ge(o,y([o.nlead,o.nend],"$",r.currencySymbol)),o.isCurrency||Ge(o,y([o.nlead,o.nend],"%",r.percentSymbol))),!He(n)){var p=h(o.type,r.numberMapper.numberSystem,n,!1);o.useGrouping&&(o.groupSeparator=u?" ":r.numberMapper.numberSymbols[i[2]],o.groupData=lt.getGroupingDetails(p.split(";")[0])),o.nlead=o.nlead.replace(/'/g,""),o.nend=c?" "+o.nend.replace(/'/g,""):o.nend.replace(/'/g,"")}return o}function y(e,t,i){for(var r={nlead:e[0],nend:e[1]},n=0;n<2;n++){var o=e[parseInt(n.toString(),10)],a=o.indexOf(t);if(-1!==a&&(a<o.indexOf("'")||a>o.lastIndexOf("'"))){r[s[n]]=o.substr(0,a)+i+o.substr(a+1),r[s[t]]=!0,r.type=r.isCurrency?"currency":"percent";break}}return r}function m(e,t,i){e+=".";for(var r=0;r<t;r++)e+="0";if(t<i)for(var n=i-t,o=0;o<n;o++)e+="#";return e}function N(e,t){for(var i=e.split("."),r="",n=0;n<t;n++)r+="0";return i[1]?r+"."+i[1]:r}function j(e){var t=e.split("."),i=t[0],r=3-i.length%3;e="";for(var n=(i=(r&&1===r?"#":2===r?"##":"")+i).length-1;n>0;n-=3)e=","+i[n-2]+i[n-1]+i[parseInt(n.toString(),10)]+e;return e=e.slice(1),t[1]?e+"."+t[1]:e}e.dateParseRegex=/([a-z])\1*|'([^']|'')+'|''|./gi,e.basicPatterns=["short","medium","long","full"],e.defaultObject={dates:{calendars:{gregorian:{months:{"stand-alone":{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}}},days:{"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},dayPeriods:{format:{wide:{am:"AM",pm:"PM"}}},eras:{eraNames:{0:"Before Christ","0-alt-variant":"Before Common Era",1:"Anno Domini","1-alt-variant":"Common Era"},eraAbbr:{0:"BC","0-alt-variant":"BCE",1:"AD","1-alt-variant":"CE"},eraNarrow:{0:"B","0-alt-variant":"BCE",1:"A","1-alt-variant":"CE"}},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y"}}},islamic:{months:{"stand-alone":{abbreviated:{1:"Muh.",2:"Saf.",3:"Rab. I",4:"Rab. II",5:"Jum. I",6:"Jum. II",7:"Raj.",8:"Sha.",9:"Ram.",10:"Shaw.",11:"Dhuʻl-Q.",12:"Dhuʻl-H."},narrow:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},wide:{1:"Muharram",2:"Safar",3:"Rabiʻ I",4:"Rabiʻ II",5:"Jumada I",6:"Jumada II",7:"Rajab",8:"Shaʻban",9:"Ramadan",10:"Shawwal",11:"Dhuʻl-Qiʻdah",12:"Dhuʻl-Hijjah"}}},days:{"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},dayPeriods:{format:{wide:{am:"AM",pm:"PM"}}},eras:{eraNames:{0:"AH"},eraAbbr:{0:"AH"},eraNarrow:{0:"AH"}},dateFormats:{full:"EEEE, MMMM d, y G",long:"MMMM d, y G",medium:"MMM d, y G",short:"M/d/y GGGGG"},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y G",yyyy:"y G",yyyyM:"M/y GGGGG",yyyyMd:"M/d/y GGGGG",yyyyMEd:"E, M/d/y GGGGG",yyyyMMM:"MMM y G",yyyyMMMd:"MMM d, y G",yyyyMMMEd:"E, MMM d, y G",yyyyMMMM:"MMMM y G",yyyyQQQ:"QQQ y G",yyyyQQQQ:"QQQQ y G"}}}},timeZoneNames:{hourFormat:"+HH:mm;-HH:mm",gmtFormat:"GMT{0}",gmtZeroFormat:"GMT"}},numbers:{currencies:{USD:{displayName:"US Dollar",symbol:"$","symbol-alt-narrow":"$"},EUR:{displayName:"Euro",symbol:"€","symbol-alt-narrow":"€"},GBP:{displayName:"British Pound","symbol-alt-narrow":"£"}},defaultNumberingSystem:"latn",minimumGroupingDigits:"1","symbols-numberSystem-latn":{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},"decimalFormats-numberSystem-latn":{standard:"#,##0.###"},"percentFormats-numberSystem-latn":{standard:"#,##0%"},"currencyFormats-numberSystem-latn":{standard:"¤#,##0.00",accounting:"¤#,##0.00;(¤#,##0.00)"},"scientificFormats-numberSystem-latn":{standard:"#E0"}}},e.blazorDefaultObject={numbers:{mapper:{0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9"},mapperDigits:"0123456789",numberSymbols:{decimal:".",group:",",plusSign:"+",minusSign:"-",percentSign:"%",nan:"NaN",timeSeparator:":",infinity:"∞"},timeSeparator:":",currencySymbol:"$",currencypData:{nlead:"$",nend:"",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},percentpData:{nlead:"",nend:"%",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},percentnData:{nlead:"-",nend:"%",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},currencynData:{nlead:"($",nend:")",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},decimalnData:{nlead:"-",nend:"",groupData:{primary:3},maximumFraction:2,minimumFraction:2},decimalpData:{nlead:"",nend:"",groupData:{primary:3},maximumFraction:2,minimumFraction:2}},dates:{dayPeriods:{am:"AM",pm:"PM"},dateSeperator:"/",days:{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}},months:{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},eras:{1:"AD"}}},e.monthIndex={3:"abbreviated",4:"wide",5:"narrow",1:"abbreviated"},e.month="months",e.days="days",e.patternMatcher={C:"currency",P:"percent",N:"decimal",A:"currency",E:"scientific"},e.getResultantPattern=a,e.getDependables=c,e.getSymbolPattern=h,e.ConvertDateToWeekFormat=u,e.compareBlazorDateFormats=l,e.getProperNumericSkeleton=p,e.getFormatData=d,e.changeCurrencySymbol=g,e.getCurrencySymbol=f,e.customFormat=function(e,t,i){for(var r={},n=e.split(";"),o=["pData","nData","zeroData"],s=0;s<n.length;s++)r[o[s]]=M(n[s],t,i);return He(r.nData)&&(r.nData=Ge({},r.pData),r.nData.nlead=He(t)?"-"+r.nData.nlead:t.minusSymbol+r.nData.nlead),r},e.customNumberFormat=M,e.isCurrencyPercent=y,e.getDateSeparator=function(e){var t=(Ye("dateFormats.short",e)||"").match(/[dM]([^dM])[dM]/i);return t?t[1]:"/"},e.getActualDateTimeFormat=function(e,t,i,o){var s=c(i,e,t.calendar),h=t.format||a(t.skeleton,s.dateObject,t.type);if(o){if(h=h.replace(r,function(e){return n[e]}),-1!==h.indexOf("z")){var u=h.match(/z/g).length,l=void 0,p={timeZone:{}};p.numMapper=tt.getNumberMapper(s.parserObject,tt.getNumberingSystem(i)),p.timeZone=Ye("dates.timeZoneNames",s.parserObject);var d=(new Date).getTimezoneOffset(),g=u<4?"+H;-H":p.timeZone.hourFormat;g=g.replace(/:/g,p.numMapper.timeSeparator),0===d?l=p.timeZone.gmtZeroFormat:(l=ct.getTimeZoneValue(d,g),l=p.timeZone.gmtFormat.replace(/\{0\}/,l)),h=h.replace(/[z]+/,'"'+l+'"')}h=h.replace(/ $/,"")}return h},e.getActualNumberFormat=function(t,i,r,n){var o,s=c(r,t,"",!0),a={custom:!0};s.numericObject;var u={},l=(i.format||"").match(e.currencyFormatRegex);!e.formatRegex.test(i.format)||p(i.format||"N");var g,M={};if(l){M.numberMapper=tt.getNumberMapper(s.parserObject,tt.getNumberingSystem(r),!0);var y=f(s.numericObject,i.currency||gt,i.altSymbol),D=h("currency",M.numberMapper.numberSystem,s.numericObject,/a/i.test(i.format)),I=(D=D.replace(/\u00A4/g,y)).split(";");u.hasNegativePattern=I.length>1,u.nData=d(I[1]||"-"+I[0],!0,y),u.pData=d(I[0],!1,y),l[2]||i.minimumFractionDigits||i.maximumFractionDigits||(o=d(D.split(";")[0],!0,"",!0).minimumFraction)}if(e.formatRegex.test(i.format)||!i.format){if(Ge(a,p(i.format||"N")),a.custom=!1,g="###0",a.fractionDigits||i.minimumFractionDigits||i.maximumFractionDigits||o){a.fractionDigits&&(i.minimumFractionDigits=i.maximumFractionDigits=a.fractionDigits),g=m(g,o||a.fractionDigits||i.minimumFractionDigits||0,i.maximumFractionDigits||0)}if(i.minimumIntegerDigits&&(g=N(g,i.minimumIntegerDigits)),i.useGrouping&&(g=j(g)),"currency"===a.type||(a.type,0)){var S=g;g=u.pData.nlead+S+u.pData.nend,u.hasNegativePattern&&(g+=";"+u.nData.nlead+S+u.nData.nend)}"percent"===a.type&&(g+=" %")}else g=i.format.replace(/'/g,'"');return Object.keys(M).length>0&&(g=n?g:function(e,t){if(-1!==e.indexOf(",")){var i=e.split(",");e=i[0]+Ye("numberMapper.numberSymbols.group",t)+i[1].replace(".",Ye("numberMapper.numberSymbols.decimal",t))}else e=e.replace(".",Ye("numberMapper.numberSymbols.decimal",t));return e}(g,M)),g},e.fractionDigitsPattern=m,e.minimumIntegerPattern=N,e.groupingPattern=j,e.getWeekData=function(e,t){var i="sun",r=Ye("supplemental.weekData.firstDay",t),n=e;return/en-/.test(n)&&(n=n.slice(3)),n=n.slice(0,2).toUpperCase()+n.substr(2),r&&(i=r[""+n]||r[n.slice(0,2)]||"sun"),o[""+i]},e.replaceBlazorCurrency=function(e,t,i){var r=Ye(i||"",it);if(t!==r)for(var n=0,o=e;n<o.length;n++){var s=o[n];s.nend=s.nend.replace(t,r),s.nlead=s.nlead.replace(t,r)}},e.getWeekOfYear=function(e){var t,i=new Date(e.getFullYear(),0,1),r=i.getDay();r=r>=0?r:r+7;var n=Math.floor((e.getTime()-i.getTime()-6e4*(e.getTimezoneOffset()-i.getTimezoneOffset()))/864e5)+1;if(r<4){if((t=Math.floor((n+r-1)/7)+1)>52){var o=new Date(e.getFullYear()+1,0,1).getDay();t=(o=o>=0?o:o+7)<4?1:53}}else t=Math.floor((n+r-1)/7);return t}}(rt||(rt={}));var yt=function(){function e(e,t,i){this.type="GET",this.emitError=!0,"string"==typeof e?(this.url=e,this.type=He(t)?this.type:t.toUpperCase(),this.contentType=i):Be(e)&&Object.keys(e).length>0&&We(this,e),this.contentType=He(this.contentType)?"application/json; charset=utf-8":this.contentType}return e.prototype.send=function(e){var t=this,i={"application/json":"json","multipart/form-data":"formData","application/octet-stream":"blob","application/x-www-form-urlencoded":"formData"};try{He(this.fetchRequest)&&"GET"===this.type?this.fetchRequest=new Request(this.url,{method:this.type}):He(this.fetchRequest)&&(this.data=He(e)?this.data:e,this.fetchRequest=new Request(this.url,{method:this.type,headers:{"Content-Type":this.contentType},body:this.data}));var r={cancel:!1,fetchRequest:this.fetchRequest};return this.triggerEvent(this.beforeSend,r),r.cancel?null:(this.fetchResponse=fetch(this.fetchRequest),this.fetchResponse.then(function(e){if(t.triggerEvent(t.onLoad,e),!e.ok)throw e;for(var r="text",n=0,o=Object.keys(i);n<o.length;n++){var s=o[n];e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf(s)&&(r=i[s])}return e[r]()}).then(function(e){return t.triggerEvent(t.onSuccess,e,t),e}).catch(function(e){var i={};return t.emitError&&(t.triggerEvent(t.onFailure,e),i=Promise.reject(e)),i}))}catch(e){return e}},e.prototype.triggerEvent=function(e,t,i){He(e)||"function"!=typeof e||e(t,i)},e}(),mt=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|mobile/i,Nt=/msie|trident/i,jt=/Trident\/7\./,Dt=/(ipad|iphone|ipod touch)/i,It=/(ipad|iphone|ipod touch);.*os 7_\d|(ipad|iphone|ipod touch);.*os 8_\d/i,St=/android/i,bt=/trident|windows phone|edge/i,zt=/(version)[ /]([\w.]+)/i,vt={OPERA:/(opera|opr)(?:.*version|)[ /]([\w.]+)/i,EDGE:/(edge)(?:.*version|)[ /]([\w.]+)/i,CHROME:/(chrome|crios)[ /]([\w.]+)/i,PANTHOMEJS:/(phantomjs)[ /]([\w.]+)/i,SAFARI:/(safari)[ /]([\w.]+)/i,WEBKIT:/(webkit)[ /]([\w.]+)/i,MSIE:/(msie|trident) ([\w.]+)/i,MOZILLA:/(mozilla)(?:.*? rv:([\w.]+)|)/i};"undefined"!=typeof window&&(window.browserDetails=window.browserDetails||{});var wt=function(){function e(){}return e.extractBrowserDetail=function(){for(var t={culture:{}},i=[],r=0,n=Object.keys(vt);r<n.length;r++){var o=n[r];if(i=e.userAgent.match(vt[""+o])){if(t.name="opr"===i[1].toLowerCase()?"opera":i[1].toLowerCase(),t.name="crios"===i[1].toLowerCase()?"chrome":t.name,t.version=i[2],t.culture.name=t.culture.language=navigator.language,e.userAgent.match(jt)){t.name="msie";break}var s=e.userAgent.match(zt);"safari"===t.name&&s&&(t.version=s[2]);break}}return t},e.getEvent=function(t){var i={start:{isPointer:"pointerdown",isTouch:"touchstart",isDevice:"mousedown"},move:{isPointer:"pointermove",isTouch:"touchmove",isDevice:"mousemove"},end:{isPointer:"pointerup",isTouch:"touchend",isDevice:"mouseup"},cancel:{isPointer:"pointercancel",isTouch:"touchcancel",isDevice:"mouseleave"}};return e.isPointer?i[""+t].isPointer:e.isTouch?i[""+t].isTouch+(e.isDevice?"":" "+i[""+t].isDevice):i[""+t].isDevice},e.getTouchStartEvent=function(){return e.getEvent("start")},e.getTouchEndEvent=function(){return e.getEvent("end")},e.getTouchMoveEvent=function(){return e.getEvent("move")},e.getTouchCancelEvent=function(){return e.getEvent("cancel")},e.isSafari=function(){return e.isDevice&&e.isIos&&e.isTouch&&"undefined"!=typeof window&&-1===window.navigator.userAgent.toLowerCase().indexOf("iphone")&&window.navigator.userAgent.toLowerCase().indexOf("safari")>-1},e.getValue=function(t,i){var r="undefined"!=typeof window?window.browserDetails:{};return"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1&&!0===e.isTouch&&!vt.CHROME.test(navigator.userAgent)&&(r.isIos=!0,r.isDevice=!0,r.isTouch=!0,r.isPointer=!0),void 0===r[""+t]?r[""+t]=i.test(e.userAgent):r[""+t]},Object.defineProperty(e,"userAgent",{get:function(){return e.uA},set:function(t){e.uA=t,window.browserDetails={}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"info",{get:function(){return qe(window.browserDetails.info)?window.browserDetails.info=e.extractBrowserDetail():window.browserDetails.info},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isIE",{get:function(){return e.getValue("isIE",Nt)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isTouch",{get:function(){return qe(window.browserDetails.isTouch)?window.browserDetails.isTouch="ontouchstart"in window.navigator||window&&window.navigator&&window.navigator.maxTouchPoints>0||"ontouchstart"in window:window.browserDetails.isTouch},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isPointer",{get:function(){return qe(window.browserDetails.isPointer)?window.browserDetails.isPointer="pointerEnabled"in window.navigator:window.browserDetails.isPointer},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isMSPointer",{get:function(){return qe(window.browserDetails.isMSPointer)?window.browserDetails.isMSPointer="msPointerEnabled"in window.navigator:window.browserDetails.isMSPointer},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isDevice",{get:function(){return e.getValue("isDevice",mt)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isIos",{get:function(){return e.getValue("isIos",Dt)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isIos7",{get:function(){return e.getValue("isIos7",It)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isAndroid",{get:function(){return e.getValue("isAndroid",St)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isWebView",{get:function(){return qe(window.browserDetails.isWebView)?(window.browserDetails.isWebView=!(qe(window.cordova)&&qe(window.PhoneGap)&&qe(window.phonegap)&&"object"!==window.forge),window.browserDetails.isWebView):window.browserDetails.isWebView},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isWindows",{get:function(){return e.getValue("isWindows",bt)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"touchStartEvent",{get:function(){return qe(window.browserDetails.touchStartEvent)?window.browserDetails.touchStartEvent=e.getTouchStartEvent():window.browserDetails.touchStartEvent},enumerable:!0,configurable:!0}),Object.defineProperty(e,"touchMoveEvent",{get:function(){return qe(window.browserDetails.touchMoveEvent)?window.browserDetails.touchMoveEvent=e.getTouchMoveEvent():window.browserDetails.touchMoveEvent},enumerable:!0,configurable:!0}),Object.defineProperty(e,"touchEndEvent",{get:function(){return qe(window.browserDetails.touchEndEvent)?window.browserDetails.touchEndEvent=e.getTouchEndEvent():window.browserDetails.touchEndEvent},enumerable:!0,configurable:!0}),Object.defineProperty(e,"touchCancelEvent",{get:function(){return qe(window.browserDetails.touchCancelEvent)?window.browserDetails.touchCancelEvent=e.getTouchCancelEvent():window.browserDetails.touchCancelEvent},enumerable:!0,configurable:!0}),e.uA="undefined"!=typeof navigator?navigator.userAgent:"",e}(),Ot=function(){function e(){}return e.addOrGetEventData=function(e){return"__eventList"in e?e.__eventList.events:(e.__eventList={},e.__eventList.events=[])},e.add=function(t,i,r,n,o){var s,a,c,h,u=e.addOrGetEventData(t);o?(a=r,c=o,s=function(){var e=this,t=arguments;clearTimeout(h),h=setTimeout(function(){return h=null,a.apply(e,t)},c)}):s=r,n&&(s=s.bind(n));for(var l=i.split(" "),p=0;p<l.length;p++)u.push({name:l[parseInt(p.toString(),10)],listener:r,debounce:s}),wt.isIE?t.addEventListener(l[parseInt(p.toString(),10)],s):t.addEventListener(l[parseInt(p.toString(),10)],s,{passive:!1});return s},e.remove=function(t,i,r){for(var n=e.addOrGetEventData(t),o=i.split(" "),s=function(e){var i,s=-1;n&&0!==n.length&&n.some(function(t,n){return t.name===o[parseInt(e.toString(),10)]&&t.listener===r&&(s=n,i=t.debounce,!0)}),-1!==s&&n.splice(s,1),i&&t.removeEventListener(o[parseInt(e.toString(),10)],i)},a=0;a<o.length;a++)s(a)},e.clearEvents=function(t){var i,r;r=Ge([],r,i=e.addOrGetEventData(t));for(var n=0;n<r.length;n++){var o=r[parseInt(n.toString(),10)];t.removeEventListener(o.name,o.debounce),i.shift()}},e.trigger=function(t,i,r){for(var n=0,o=e.addOrGetEventData(t);n<o.length;n++){var s=o[n];s.name===i&&s.debounce.call(this,r)}},e}(),Tt=/^svg|^path|^g/;function Lt(e,t){var i=Tt.test(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return void 0===t||(i.innerHTML=t.innerHTML?t.innerHTML:"",void 0!==t.className&&(i.className=t.className),void 0!==t.id&&(i.id=t.id),void 0!==t.styles&&i.setAttribute("style",t.styles),void 0!==t.attrs&&function(e,t){for(var i=Object.keys(t),r=e,n=0,o=i;n<o.length;n++){var s=o[n];if(Be(r)){var a=s;"tabindex"===s&&(a="tabIndex"),r.attributes[""+a]=t[""+s]}else r.setAttribute(s,t[""+s])}}(i,t.attrs)),i}function At(e,t){for(var i=xt(t),r=RegExp,n=0,o=e;n<o.length;n++)for(var s=o[n],a=0,c=i;a<c.length;a++){var h=c[a];if(Be(s)){var u=Ye("attributes.className",s);He(u)?Re("attributes.className",h,s):new r("\\b"+h+"\\b","i").test(u)||Re("attributes.className",u+" "+h,s)}else s.classList.contains(h)||s.classList.add(h)}return e}function Ct(e,t){for(var i=xt(t),r=0,n=e;r<n.length;r++){var o=n[r],s=Be(o);if(s?Ye("attributes.className",o):""!==o.className)for(var a=0,c=i;a<c.length;a++){var h=c[a];if(s){var u=Ye("attributes.className",o).split(" "),l=u.indexOf(h);-1!==l&&u.splice(l,1),Re("attributes.className",u.join(" "),o)}else o.classList.remove(h)}}return e}function xt(e){var t=[];return"string"==typeof e?t.push(e):t=e,t}function Et(e){var t=e;return""===t.style.visibility&&t.offsetWidth>0}function kt(e,t,i){return void 0===t&&(t=document),e=Pt(e),t.querySelector(e)}function Pt(e){var t=/(!|"|\$|%|&|'|\(|\)|\*|\/|:|;|<|=|\?|@|\]|\^|`|{|}|\||\+|~)/g;if(e.match(/#[0-9]/g)||e.match(t)){for(var i=e.split(","),r=0;r<i.length;r++){for(var n=i[parseInt(r.toString(),10)].split(" "),o=0;o<n.length;o++)if(n[parseInt(o.toString(),10)].indexOf("#")>-1&&!n[parseInt(o.toString(),10)].match(/\[.*\]/)){var s=n[parseInt(o.toString(),10)].split("#");if(s[1].match(/^\d/)||s[1].match(t)){var a=n[parseInt(o.toString(),10)].split(".");a[0]=a[0].replace(/#/,"[id='")+"']",n[parseInt(o.toString(),10)]=a.join(".")}}i[parseInt(r.toString(),10)]=n.join(" ")}return i.join(",")}return e}function Ut(e,t){var i=e;if("function"==typeof i.closest)return i.closest(t);for(;i&&1===i.nodeType;){if(Yt(i,t))return i;i=i.parentNode}return null}function Qt(e,t){void 0!==t&&Object.keys(t).forEach(function(i){e.style[i]=t[i]})}function Yt(e,t){var i=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return i?i.call(e,t):-1!==[].indexOf.call(document.querySelectorAll(t),e)}var Rt=new RegExp("]"),Vt=function(){function e(e,t){this.isRendered=!1,this.isComplexArraySetter=!1,this.isServerRendered=!1,this.allowServerDataBinding=!0,this.isProtectedOnChange=!0,this.properties={},this.changedProperties={},this.oldProperties={},this.bulkChanges={},this.refreshing=!1,this.ignoreCollectionWatch=!1,this.finalUpdate=function(){},this.childChangedProperties={},this.modelObserver=new pt(this),qe(t)||(this.element="string"==typeof t?document.querySelector(t):t,He(this.element)||(this.isProtectedOnChange=!1,this.addInstance())),qe(e)||this.setProperties(e,!0),this.isDestroyed=!1}return e.prototype.setProperties=function(e,t){var i=this.isProtectedOnChange;this.isProtectedOnChange=!!t,We(this,e),!0!==t&&(We(this.changedProperties,e),this.dataBind()),this.finalUpdate(),this.changedProperties={},this.oldProperties={},this.isProtectedOnChange=i},e.callChildDataBind=function(e,t){for(var i=0,r=Object.keys(e);i<r.length;i++){var n=r[i];if(t[""+n]instanceof Array)for(var o=0,s=t[""+n];o<s.length;o++){var a=s[o];void 0!==a.dataBind&&a.dataBind()}else t[""+n].dataBind()}},e.prototype.clearChanges=function(){this.finalUpdate(),this.changedProperties={},this.oldProperties={},this.childChangedProperties={}},e.prototype.dataBind=function(){if(e.callChildDataBind(this.childChangedProperties,this),Object.getOwnPropertyNames(this.changedProperties).length){var t=this.isProtectedOnChange,i=this.changedProperties,r=this.oldProperties;this.clearChanges(),this.isProtectedOnChange=!0,this.onPropertyChanged(i,r),this.isProtectedOnChange=t}},e.prototype.serverDataBind=function(e){},e.prototype.saveChanges=function(e,t,i){this.isProtectedOnChange||(this.oldProperties[""+e]=i,this.changedProperties[""+e]=t,this.finalUpdate(),this.finalUpdate=Qe(this.dataBind.bind(this)))},e.prototype.addEventListener=function(e,t){this.modelObserver.on(e,t)},e.prototype.removeEventListener=function(e,t){this.modelObserver.off(e,t)},e.prototype.trigger=function(e,t,i,r){var n=this;if(!0!==this.isDestroyed){var o=this.isProtectedOnChange;this.isProtectedOnChange=!1;var s=this.modelObserver.notify(e,t,i,r);if(Rt.test(e)){var a=Ye(e,this);if(a){if(window.Blazor){var c=a.call(this,t);c&&"function"==typeof c.then?i?c.then(function(e){i&&(e="string"==typeof e&&n.modelObserver.isJson(e)?JSON.parse(e):e,i.call(n,e))}).catch(function(e){r&&(e="string"==typeof e&&n.modelObserver.isJson(e)?JSON.parse(e):e,r.call(n,e))}):s=c:i&&i.call(this,t)}else a.call(this,t),i&&i.call(this,t)}else i&&i.call(this,t)}return this.isProtectedOnChange=o,s}},e.prototype.addInstance=function(){var e="e-"+this.getModuleName().toLowerCase();At([this.element],["e-lib",e]),He(this.element.ej2_instances)?Re("ej2_instances",[this],this.element):this.element.ej2_instances.push(this)},e.prototype.destroy=function(){var e=this;this.element.ej2_instances=this.element.ej2_instances?this.element.ej2_instances.filter(function(t){return t!==e}):[],Ct([this.element],["e-"+this.getModuleName()]),0===this.element.ej2_instances.length&&Ct([this.element],["e-lib"]),this.clearChanges(),this.modelObserver.destroy(),this.isDestroyed=!0},e}();function Ft(e,t,i,r){return e.properties.hasOwnProperty(t)&&e.properties[t]instanceof r||(e.properties[""+t]=Ue(r,[e,t,i])),e.properties[""+t]}function Bt(e,t){return function(){return this.properties.hasOwnProperty(t)||(this.properties[""+t]=e),this.properties[""+t]}}function Wt(e,t){return function(i){if(this.properties[""+t]!==i){var r=this.properties.hasOwnProperty(t)?this.properties[t]:e;this.saveChanges(t,i,r),this.properties[""+t]=i}}}function Gt(e,t,i){return function(){return Ft(this,t,e,i)}}function Ht(e,t,i){return function(r){Ft(this,t,e,i).setProperties(r)}}function qt(e){return function(t,i){var r={set:Wt(e,i),get:Bt(e,i),enumerable:!0,configurable:!0};Object.defineProperty(t,i,r),Kt(t,i,"prop",e)}}function _t(e,t){return function(i,r){var n={set:Ht(e,r,t),get:Gt(e,r,t),enumerable:!0,configurable:!0};Object.defineProperty(i,r,n),Kt(i,r,"complexProp",e,t)}}function Jt(){return function(e,t){var i={set:function(e){var i=this.properties[""+t];if(i!==e){var r=Xt(this,t);!1===qe(i)&&r.context.removeEventListener(r.prefix,i),r.context.addEventListener(r.prefix,e),this.properties[""+t]=e}},get:Bt(void 0,t),enumerable:!0,configurable:!0};Object.defineProperty(e,t,i),Kt(e,t,"event")}}function Zt(e){}function Kt(e,t,i,r,n){qe(e.propList)&&(e.propList={props:[],complexProps:[],colProps:[],events:[],propNames:[],complexPropNames:[],colPropNames:[],eventNames:[]}),e.propList[i+"s"].push({propertyName:t,defaultValue:r,type:n}),e.propList[i+"Names"].push(t)}function Xt(e,t){if(!1===e.hasOwnProperty("parentObj"))return{context:e,prefix:t};var i=Ye("propName",e);return i&&(t=i+"-"+t),Xt(Ye("parentObj",e),t)}var $t,ei,ti,ii=($t=function(e,t){return $t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},$t(e,t)},function(e,t){function i(){this.constructor=e}$t(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),ri=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};!function(e){function t(t){var i=e.call(this,t,void 0)||this;return i.easing={ease:"cubic-bezier(0.250, 0.100, 0.250, 1.000)",linear:"cubic-bezier(0.250, 0.250, 0.750, 0.750)",easeIn:"cubic-bezier(0.420, 0.000, 1.000, 1.000)",easeOut:"cubic-bezier(0.000, 0.000, 0.580, 1.000)",easeInOut:"cubic-bezier(0.420, 0.000, 0.580, 1.000)",elasticInOut:"cubic-bezier(0.5,-0.58,0.38,1.81)",elasticIn:"cubic-bezier(0.17,0.67,0.59,1.81)",elasticOut:"cubic-bezier(0.7,-0.75,0.99,1.01)"},i}var i;ii(t,e),i=t,t.prototype.animate=function(e,t){t=t||{};var r,n,o=this.getModel(t);if("string"==typeof e)for(var s=0,a=Array.prototype.slice.call((r=e,void 0===(n=document)&&(n=document),r=Pt(r),n.querySelectorAll(r)));s<a.length;s++){var c=a[s];o.element=c,i.delayAnimation(o)}else o.element=e,i.delayAnimation(o)},t.stop=function(e,t){e.style.animation="",e.removeAttribute("e-animate");var i=e.getAttribute("e-animation-id");if(i){var r=parseInt(i,10);cancelAnimationFrame(r),e.removeAttribute("e-animation-id")}t&&t.end&&t.end.call(this,t)},t.delayAnimation=function(e){ei===ti.Disable?(e.begin&&e.begin.call(this,e),e.end&&e.end.call(this,e)):e.delay?setTimeout(function(){i.applyAnimation(e)},e.delay):i.applyAnimation(e)},t.applyAnimation=function(e){var t=this;e.timeStamp=0;var i=0,r=0,n=0,o=e.duration;e.element.setAttribute("e-animate","true");var s=function(a){try{if(a){n=0===n?a:n,e.timeStamp=a+e.timeStamp-n,n=a,!i&&e.begin&&e.begin.call(t,e),i+=1;var c=e.timeStamp/i;e.timeStamp<o&&e.timeStamp+c<o&&e.element.getAttribute("e-animate")?(e.element.style.animation=e.name+" "+e.duration+"ms "+e.timingFunction,e.progress&&e.progress.call(t,e),requestAnimationFrame(s)):(cancelAnimationFrame(r),e.element.removeAttribute("e-animation-id"),e.element.removeAttribute("e-animate"),e.element.style.animation="",e.end&&e.end.call(t,e))}else r=requestAnimationFrame(s),e.element.setAttribute("e-animation-id",r.toString())}catch(i){cancelAnimationFrame(r),e.element.removeAttribute("e-animation-id"),e.fail&&e.fail.call(t,i)}};s()},t.prototype.getModel=function(e){return{name:e.name||this.name,delay:e.delay||this.delay,duration:void 0!==e.duration?e.duration:this.duration,begin:e.begin||this.begin,end:e.end||this.end,fail:e.fail||this.fail,progress:e.progress||this.progress,timingFunction:this.easing[e.timingFunction]?this.easing[e.timingFunction]:e.timingFunction||this.easing[this.timingFunction]}},t.prototype.onPropertyChanged=function(e,t){},t.prototype.getModuleName=function(){return"animation"},t.prototype.destroy=function(){},ri([qt("FadeIn")],t.prototype,"name",void 0),ri([qt(400)],t.prototype,"duration",void 0),ri([qt("ease")],t.prototype,"timingFunction",void 0),ri([qt(0)],t.prototype,"delay",void 0),ri([Jt()],t.prototype,"progress",void 0),ri([Jt()],t.prototype,"begin",void 0),ri([Jt()],t.prototype,"end",void 0),ri([Jt()],t.prototype,"fail",void 0),t=i=ri([Zt],t)}(Vt),function(e){e.Default="Default",e.Enable="Enable",e.Disable="Disable"}(ti||(ti={}));var ni,oi=function(){function e(e){this.loadedModules=[],this.parent=e}return e.prototype.inject=function(e,t){var i=e.length;if(0!==i){this.loadedModules.length&&this.clearUnusedModule(e);for(var r=0;r<i;r++)for(var n=e[parseInt(r.toString(),10)],o=0,s=t;o<s.length;o++){var a=s[o],c=n.member;if(a&&a.prototype.getModuleName()===n.member&&!this.isModuleLoaded(c)){var h=Ue(a,n.args),u=this.getMemberName(c);n.isProperty?Re(u,a,this.parent):Re(u,h,this.parent);var l=n;l.member=u,this.loadedModules.push(l)}}}else this.clean()},e.prototype.clean=function(){for(var e=0,t=this.loadedModules;e<t.length;e++){var i=t[e];i.isProperty||Ye(i.member,this.parent).destroy()}this.loadedModules=[]},e.prototype.getNonInjectedModules=function(e){var t=this;return e.filter(function(e){return!t.isModuleLoaded(e.member)})},e.prototype.clearUnusedModule=function(e){for(var t=this,i=e.map(function(e){return t.getMemberName(e.member)}),r=0,n=this.loadedModules.filter(function(e){return-1===i.indexOf(e.member)});r<n.length;r++){var o=n[r];o.isProperty||Ye(o.member,this.parent).destroy(),this.loadedModules.splice(this.loadedModules.indexOf(o),1),Ve(this.parent,o.member)}},e.prototype.getMemberName=function(e){return e[0].toLowerCase()+e.substring(1)+"Module"},e.prototype.isModuleLoaded=function(e){for(var t=0,i=this.loadedModules;t<i.length;t++){if(i[t].member===this.getMemberName(e))return!0}return!1},e}(),si=function(){function e(e,t,i,r){this.isComplexArraySetter=!1,this.properties={},this.changedProperties={},this.childChangedProperties={},this.oldProperties={},this.finalUpdate=function(){},this.callChildDataBind=Ye("callChildDataBind",Vt),this.parentObj=e,this.controlParent=this.parentObj.controlParent||this.parentObj,this.propName=t,this.isParentArray=r,this.setProperties(i,!0)}return e.prototype.updateChange=function(e,t){!0===e?this.parentObj.childChangedProperties[""+t]=e:delete this.parentObj.childChangedProperties[""+t],this.parentObj.updateChange&&this.parentObj.updateChange(e,this.parentObj.propName)},e.prototype.updateTimeOut=function(){if(this.parentObj.updateTimeOut)this.parentObj.finalUpdate(),this.parentObj.updateTimeOut();else{var e=setTimeout(this.parentObj.dataBind.bind(this.parentObj));this.finalUpdate=function(){clearTimeout(e)}}},e.prototype.clearChanges=function(){this.finalUpdate(),this.updateChange(!1,this.propName),this.oldProperties={},this.changedProperties={}},e.prototype.setProperties=function(e,t){!0===t?(We(this,e),this.updateChange(!1,this.propName),this.clearChanges()):We(this,e)},e.prototype.dataBind=function(){if(this.callChildDataBind(this.childChangedProperties,this),this.isParentArray){var e=this.parentObj[this.propName].indexOf(this);Object.keys(this.changedProperties).length&&(Re(this.propName+"."+e,this.changedProperties,this.parentObj.changedProperties),Re(this.propName+"."+e,this.oldProperties,this.parentObj.oldProperties))}else this.parentObj.changedProperties[this.propName]=this.changedProperties,this.parentObj.oldProperties[this.propName]=this.oldProperties;this.clearChanges()},e.prototype.saveChanges=function(e,t,i,r){this.controlParent.isProtectedOnChange||(r||this.serverDataBind(e,t,!0),this.oldProperties[""+e]=i,this.changedProperties[""+e]=t,this.updateChange(!0,this.propName),this.finalUpdate(),this.updateTimeOut())},e.prototype.serverDataBind=function(e,t,i,r){},e.prototype.getParentKey=function(e){var t="",i=this.propName;if(this.isParentArray){t=this.parentObj[this.propName].indexOf(this);var r=this.parentObj[this.propName].length;r=e?r:r>0?r-1:0,i+=t=-1!==t?"-"+t:"-"+r}return this.controlParent!==this.parentObj&&(i=this.parentObj.getParentKey()+"."+this.propName+t),i},e}(),ai=["grid","pivotview","treegrid","spreadsheet","rangeNavigator","DocumentEditor","listbox","inplaceeditor","PdfViewer","richtexteditor","DashboardLayout","chart","stockChart","circulargauge","diagram","heatmap","lineargauge","maps","slider","smithchart","barcode","sparkline","treemap","bulletChart","kanban","daterangepicker","schedule","gantt","signature","query-builder","drop-down-tree","carousel","filemanager","uploader","accordion","tab","treeview"],ci=[115,121,110,99,102,117,115,105,111,110,46,105,115,76,105,99,86,97,108,105,100,97,116,101,100],hi=function(){function e(e){var t;this.isValidated=!1,this.isLicensed=!0,this.version="25",this.platform=/JavaScript|ASPNET|ASPNETCORE|ASPNETMVC|FileFormats|essentialstudio/i,this.errors={noLicense:"<span>This application was built using a trial version of Syncfusion Essential Studio. To remove the license validation message permanently, a valid license key must be included.</span>",trailExpired:"<span>This application was built using a trial version of Syncfusion Essential Studio. To remove the license validation message permanently, a valid license key must be included.</span>",versionMismatched:"<span>The included Syncfusion license key is invalid.</span>",platformMismatched:"<span>The included Syncfusion license key is invalid.</span>",invalidKey:"<span>The included Syncfusion license key is invalid.</span>"},this.manager=(t=null,{setKey:function(e){t=e},getKey:function(){return t}}),this.npxManager={getKey:function(){return"npxKeyReplace"}},this.manager.setKey(e)}return e.prototype.validate=function(){if(!this.isValidated&&Fe&&!Ye(li(ci),Fe)&&!Ye("Blazor",Fe)){var e=void 0,t=void 0;if(this.manager&&this.manager.getKey()||this.npxManager&&"npxKeyReplace"!==this.npxManager.getKey()){var i=this.getInfoFromKey();if(i&&i.length)for(var r=0,n=i;r<n.length;r++){var o=n[r];if(!this.platform.test(o.platform)||o.invalidPlatform)e=this.errors.platformMismatched;else if(-1===o.version.indexOf(this.version))e=(e=(e=this.errors.versionMismatched).replace("##LicenseVersion",o.version)).replace("##Requireversion",this.version+".x");else if(o.expiryDate){var s=new Date(o.expiryDate),a=new Date;if(!(s!==a&&s<a))break;e=this.errors.trailExpired}}else e=this.errors.invalidKey}else{var c=Ye(li([115,121,110,99,102,117,115,105,111,110,46,108,105,99,101,110,115,101,67,111,110,116,101,110,116]),Fe);t=Ye(li([115,121,110,99,102,117,115,105,111,110,46,99,108,97,105,109,65,99,99,111,117,110,116,85,82,76]),Fe),e=c&&""!==c?c:this.errors.noLicense}if(e&&"undefined"!=typeof document&&!He(document)){var h=Lt("div",{innerHTML:"<img src='data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE5OV80KSI+CjxwYXRoIGQ9Ik0xMiAyMUMxNi45NzA2IDIxIDIxIDE2Ljk3MDYgMjEgMTJDMjEgNy4wMjk0NCAxNi45NzA2IDMgMTIgM0M3LjAyOTQ0IDMgMyA3LjAyOTQ0IDMgMTJDMyAxNi45NzA2IDcuMDI5NDQgMjEgMTIgMjFaIiBzdHJva2U9IiM3MzczNzMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMS4yNSAxMS4yNUgxMlYxNi41SDEyLjc1IiBmaWxsPSIjNjE2MDYzIi8+CjxwYXRoIGQ9Ik0xMS4yNSAxMS4yNUgxMlYxNi41SDEyLjc1IiBzdHJva2U9IiM3MzczNzMiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMS44MTI1IDlDMTIuNDMzOCA5IDEyLjkzNzUgOC40OTYzMiAxMi45Mzc1IDcuODc1QzEyLjkzNzUgNy4yNTM2OCAxMi40MzM4IDYuNzUgMTEuODEyNSA2Ljc1QzExLjE5MTIgNi43NSAxMC42ODc1IDcuMjUzNjggMTAuNjg3NSA3Ljg3NUMxMC42ODc1IDguNDk2MzIgMTEuMTkxMiA5IDExLjgxMjUgOVoiIGZpbGw9IiM3MzczNzMiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xOTlfNCI+CjxyZWN0IHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K' style=\"top: 6px;\n position: absolute;\n left: 16px;\n width: 24px;\n height: 24px;\"/>"+e+' <a style="text-decoration: none;color: #0D6EFD;font-weight: 500;" href='+(ni=t&&""!==t?t:"https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs=MjU=&utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information")+">Claim your free account</a>"});h.setAttribute("style","position: fixed;\n top: 10px;\n left: 10px;\n right: 10px;\n font-size: 14px;\n background: #EEF2FF;\n color: #222222;\n z-index: 999999999;\n text-align: left;\n border: 1px solid #EEEEEE;\n padding: 10px 11px 10px 50px;\n border-radius: 8px;\n font-family: Helvetica Neue, Helvetica, Arial;"),document.body.appendChild(h),this.isLicensed=!1}this.isValidated=!0,Re(li(ci),this.isValidated,Fe)}return this.isLicensed},e.prototype.getDecryptedData=function(e){try{return atob(e)}catch(e){return""}},e.prototype.getInfoFromKey=function(){try{var e="",t=[5439488,7929856,5111808,6488064,4587520,7667712,5439488,6881280,5177344,7208960,4194304,4456448,6619136,7733248,5242880,7077888,6356992,7602176,4587520,7274496,7471104,7143424],i=[],r=[],n=!1,o=!1;this.manager.getKey()?e=this.manager.getKey():(o=!0,e=this.npxManager.getKey().split("npxKeyReplace")[1]);for(var s=e.split(";"),a=0,c=s;a<c.length;a++){var h=c[a],u=this.getDecryptedData(h);if(u){var l=0,p="";if(o){var d=u[u.length-1],g=[];for(f=0;f<u.length;f++)g[""+f]=u[""+f].charCodeAt(0)-d.charCodeAt(0);for(f=0;f<g.length;f++)p+=String.fromCharCode(g[parseInt(f.toString(),10)])}else for(var f=0;f<u.length;f++,l++){l===t.length&&(l=0);var M=u.charCodeAt(f);p+=String.fromCharCode(M^t[parseInt(l.toString(),10)]>>16)}this.platform.test(p)?(i=p.split(";"),n=!1,i.length>3&&r.push({platform:i[0],version:i[1],expiryDate:i[2]})):p&&p.split(";").length>3&&(n=!0)}}return n&&!r.length?[{invalidPlatform:n}]:r.length?r:null}catch(e){return null}},e}(),ui=new hi;function li(e){for(var t="",i=0,r=e;i<r.length;i++){var n=r[i];t+=String.fromCharCode(n)}return t}var pi,di=function(e){return e&&function(e){ui=new hi(e)}(e),ui.validate()},gi=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),fi=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},Mi=0,yi=0,mi=0,Ni=!0,ji=!1;!function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.randomId=function(){if("undefined"!=typeof window){var e=new Uint16Array(5);return(window.msCrypto||window.crypto).getRandomValues(e)}}(),r.isStringTemplate=!1,r.needsID=!1,r.isReactHybrid=!1,He(r.enableRtl)&&r.setProperties({enableRtl:false},!0),He(r.locale)&&r.setProperties({locale:"en-US"},!0),r.moduleLoader=new oi(r),r.localObserver=new pt(r),dt.on("notifyExternalChange",r.detectFunction,r,r.randomId),"undefined"==typeof window||"undefined"==typeof document||di()||-1!==ai.indexOf(r.getModuleName())&&(mi+=1)>5&&(Ni=!1),qe(i)||r.appendTo(),r}gi(t,e),t.prototype.requiredModules=function(){return[]},t.prototype.destroy=function(){this.isDestroyed||(this.enablePersistence&&(this.setPersistData(),this.detachUnloadEvent()),this.localObserver.destroy(),this.refreshing||(Ct([this.element],["e-control"]),this.trigger("destroyed",{cancel:!1}),e.prototype.destroy.call(this),this.moduleLoader.clean(),dt.off("notifyExternalChange",this.detectFunction,this.randomId)))},t.prototype.refresh=function(){this.refreshing=!0,this.moduleLoader.clean(),this.destroy(),this.clearChanges(),this.localObserver=new pt(this),this.preRender(),this.injectModules(),this.render(),this.refreshing=!1},t.prototype.accessMount=function(){this.mount&&!this.isReactHybrid&&this.mount()},t.prototype.getRootElement=function(){return this.isReactHybrid?this.actualElement:this.element},t.prototype.getLocalData=function(){var e=this.getModuleName()+this.element.id;return window.localStorage.getItem(e)},t.prototype.attachUnloadEvent=function(){this.handleUnload=this.handleUnload.bind(this),window.addEventListener("unload",this.handleUnload)},t.prototype.handleUnload=function(){this.setPersistData()},t.prototype.detachUnloadEvent=function(){window.removeEventListener("unload",this.handleUnload)},t.prototype.appendTo=function(t){if(He(t)||"string"!=typeof t?He(t)||(this.element=t):this.element=kt(t,document),!He(this.element)){var i="e-"+this.getModuleName().toLowerCase();At([this.element],["e-control",i]),this.isProtectedOnChange=!1,this.needsID&&!this.element.id&&(this.element.id=this.getUniqueID(this.getModuleName())),this.enablePersistence&&(this.mergePersistData(),this.attachUnloadEvent());var r=Ye("ej2_instances",this.element);r&&-1!==r.indexOf(this)||e.prototype.addInstance.call(this),this.preRender(),this.injectModules();var n={schedule:"all",diagram:"all",PdfViewer:"all",grid:["logger"],richtexteditor:["link","table","image","audio","video","formatPainter","emojiPicker","pasteCleanup","htmlEditor","toolbar"],treegrid:["filter"],gantt:["tooltip"],chart:["Export","Zoom"],accumulationchart:["Export"]},o=this.getModuleName();if(this.requiredModules&&(!n[""+o]||"all"!==n[""+o]))for(var s=this.requiredModules(),a=0,c=this.moduleLoader.getNonInjectedModules(s);a<c.length;a++){var h=c[a],u=h.name?h.name:h.member;if(!n[""+o]||-1===n[""+o].indexOf(h.member)){var l=o.charAt(0).toUpperCase()+o.slice(1);console.warn('[WARNING] :: Module "'+u+'" is not available in '+l+" component! You either misspelled the module name or forgot to load it.")}}Ni||ji||(!function(){var e='\n <div style="\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 99999;\n ">\n <div style="\n background: #FFFFFF;\n height: 455px;\n width: 840px;\n font-family: Helvetica Neue, Helvetica, Arial;\n color: #000000;\n box-shadow: 0px 4.8px 14.4px rgb(0 0 0 / 18%), 0px 25.6px 57.6px rgb(0 0 0 / 22%);\n display: block;\n margin: 8% auto;\n border-radius: 20px;\n ">\n <div style="\n position: absolute;\nwidth: 838px;\nheight: 62px;\nbackground-color: #F9F9F9;\nborder: 1px solid #EEEEEE;\nborder-top-left-radius: 20px;\nborder-top-right-radius: 20px;\n">\n <img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ2IiBoZWlnaHQ9IjMyIiB2aWV3Qm94PSIwIDAgMTQ2IDMyIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNNDAuNTk2NSAxNS4wMDc4SDMyLjQyN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NDMTQ1LjY5NiAxNS4wMDc3IDE0NSAxNC4yNzA4IDE0NC4xNzQgMTQuMjcwOEMxNDMuNjUzIDE0LjI3MDggMTQzLjI2MiAxNC40NDQyIDE0Mi45NTcgMTQuNzkxWk0xNDQuODcgMTYuOTE1SDE0NC40NzlMMTQzLjkxNCAxNi4wOTE0VjE2LjkxNUgxNDMuNjA5VjE0Ljc0NzZIMTQzLjk1N0MxNDQuNDM1IDE0Ljc0NzYgMTQ0LjY1MyAxNC45NjQ0IDE0NC42NTMgMTUuMzU0NUMxNDQuNjUzIDE1LjY1NzkgMTQ0LjQ3OSAxNS44NzQ3IDE0NC4xNzQgMTUuOTYxNEwxNDQuODcgMTYuOTE1Wk0xNDQuMDQ0IDE1LjY1NzlDMTQ0LjI2MSAxNS42NTc5IDE0NC4zOTIgMTUuNTI3OSAxNDQuMzkyIDE1LjM1NDVDMTQ0LjM5MiAxNS4xMzc4IDE0NC4yNjEgMTUuMDUxMSAxNDQuMDAxIDE1LjA1MTFIMTQzLjkxNFYxNS42NTc5SDE0NC4wNDRaIiBmaWxsPSIjMzU0M0E4Ii8+Cjwvc3ZnPgo=" style="\n text-align: left;\n width: 146px;\n position: absolute;\n top: 14px;\n left: 31px;\n">\n </div>\n <div style="\n position: relative;\n top: 80px;\n left: 32px;\n font-size: 20px;\n text-align: left;\n font-weight: 700;\n letter-spacing: 0.02em;\n font-style: normal;\n line-height: 125%;\n ">Claim your FREE account and get a key in less than a minute</div>\n <ul style="\n font-size: 15px;\n font-weight: 400;\n color: #333333;\n letter-spacing: 0.01em;\n position: relative;\n left: 32px;\n top: 88px;\n line-height: 180%;\n ">\n <li><span>Access to a 30-day free trial of any of our products.</span></li>\n <li><span>Access to 24x5 support by developers via the <a href="https://support.syncfusion.com/create?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">support tickets</a>, <a href="https://www.syncfusion.com/forums?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">forum</a>, <a href="https://www.syncfusion.com/feedback?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information\n " style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">feature & feedback page</a> and chat.</span></li>\n <li><span>200+ <a href="https://www.syncfusion.com/succinctly-free-ebooks?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">ebooks </a>on the latest technologies, industry trends, and research topics.</span>\n </li>\n <li><span>Largest collection of over 7,000 flat and wireframe icons for free with Syncfusion <a href="https://www.syncfusion.com/downloads/metrostudio?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information\n " style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">Metro Studio.</a></span></li>\n <li><span>Free and unlimited access to Syncfusion technical <a href="https://www.syncfusion.com/blogs/?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information\n " style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">blogs</a> and <a href="https://www.syncfusion.com/resources/techportal/whitepapers?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">whitepapers.</a></span></li>\n </ul>\n <div style="\n font-size: 18px;\n font-weight: 700;\n position: relative;\n line-height: 125%;\n letter-spacing: 0.02em;\n top: 90px;\n left: 32px;\n ">Syncfusion is trusted by 29,000+ businesses worldwide</div>\n <img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODIwIiBoZWlnaHQ9IjU2IiB2aWV3Qm94PSIwIDAgODIwIDU2IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00MjcuNjE3IDIyLjU2NTlW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GF0ZSg1MjUuNTk5IDIwLjk4ODkpIi8+DQo8L2NsaXBQYXRoPg0KPGNsaXBQYXRoIGlkPSJjbGlwMl81OF8xMTEiPg0KPHJlY3Qgd2lkdGg9IjUyLjEzNzIiIGhlaWdodD0iMjAuOTk4NyIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIyMS4xNTggMTcuNDk5KSIvPg0KPC9jbGlwUGF0aD4NCjwvZGVmcz4NCjwvc3ZnPg0K" style="\n width: 742.5px;\n position: relative;\n top: 107px;\n left: 32px;\n ">\n <a href='+ni+' style="\n float: left;\n border-radius: 56px;\n background: #0D6EFD;\n padding-top: 8px;\n width: 280px;\n height: 38px;\n text-align: center;\n position: relative;\n top: 127px;\n left: 274px;\n font-size: 16px;\n color: white;\n text-decoration: none;\n letter-spacing: 0.02em;\n ">Claim your FREE account</a>\n <div style="\n font-size: 14px;\n position: relative;\n top: 180px;\n left: 19px;\n letter-spacing: 0.02em;\n font-weight: 500;\n line-height: 125%;\n">have a Syncfusion account? <a href="https://www.syncfusion.com/account/login?ReturnUrl=/account/login" style="text-decoration: none;\ncolor: #0D6EFD;\nfont-weight: 500;">Sign In</a></div>\n </div>\n </div>';if("undefined"!=typeof document&&!He(document)){var t=Lt("div",{innerHTML:e});document.body.appendChild(t)}}(),ji=!0),this.render(),this.mount?this.accessMount():this.trigger("created")}},t.prototype.renderComplete=function(e){this.isRendered=!0},t.prototype.dataBind=function(){this.injectModules(),e.prototype.dataBind.call(this)},t.prototype.on=function(e,t,i){if("string"==typeof e)this.localObserver.on(e,t,i);else for(var r=0,n=e;r<n.length;r++){var o=n[r];this.localObserver.on(o.event,o.handler,o.context)}},t.prototype.off=function(e,t){if("string"==typeof e)this.localObserver.off(e,t);else for(var i=0,r=e;i<r.length;i++){var n=r[i];this.localObserver.off(n.event,n.handler)}},t.prototype.notify=function(e,t){!0!==this.isDestroyed&&this.localObserver.notify(e,t)},t.prototype.getInjectedModules=function(){return this.injectedModules},t.Inject=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.prototype.injectedModules||(this.prototype.injectedModules=[]);for(var i=0;i<e.length;i++)-1===this.prototype.injectedModules.indexOf(e[parseInt(i.toString(),10)])&&this.prototype.injectedModules.push(e[parseInt(i.toString(),10)])},t.prototype.createElement=function(e,t,i){return Lt(e,t)},t.prototype.triggerStateChange=function(e,t){this.isReactHybrid&&(this.setState(),this.currentContext={calls:e,args:t})},t.prototype.injectModules=function(){this.injectedModules&&this.injectedModules.length&&this.moduleLoader.inject(this.requiredModules(),this.injectedModules)},t.prototype.detectFunction=function(e){var t=Object.keys(e);t.length&&(this[t[0]]=e[t[0]])},t.prototype.mergePersistData=function(){var e;He(e=window.localStorage.getItem(this.getModuleName()+this.element.id))||""===e||this.setProperties(JSON.parse(e),!0)},t.prototype.setPersistData=function(){this.isDestroyed||window.localStorage.setItem(this.getModuleName()+this.element.id,this.getPersistData())},t.prototype.renderReactTemplates=function(e){He(e)||e()},t.prototype.clearTemplate=function(e,t){},t.prototype.getUniqueID=function(e){return this.isHistoryChanged()&&(Mi=0),pi=this.pageID(location.href),yi=history.length,e+"_"+pi+"_"+Mi++},t.prototype.pageID=function(e){var t=0;if(0===e.length)return t;for(var i=0;i<e.length;i++){t=(t<<5)-t+e.charCodeAt(i),t&=t}return Math.abs(t)},t.prototype.isHistoryChanged=function(){return pi!==this.pageID(location.href)||yi!==history.length},t.prototype.addOnPersist=function(e){for(var t=this,i={},r=0,n=e;r<n.length;r++){var o,s=n[r];qe(o=Ye(s,this))||Re(s,this.getActualProperties(o),i)}return JSON.stringify(i,function(e,i){return t.getActualProperties(i)})},t.prototype.getActualProperties=function(e){return e instanceof si?Ye("properties",e):e},t.prototype.ignoreOnPersist=function(e){return JSON.stringify(this.iterateJsonProperties(this.properties,e))},t.prototype.iterateJsonProperties=function(e,t){for(var i={},r=function(r){if(-1===t.indexOf(r)){var o=e[r];if("object"!=typeof o||o instanceof Array)i[""+r]=o;else{var s=t.filter(function(e){return new RegExp(r+".").test(e)}).map(function(e){return e.replace(r+".","")});i[""+r]=n.iterateJsonProperties(n.getActualProperties(o),s)}}},n=this,o=0,s=Object.keys(e);o<s.length;o++){r(s[o])}return i},fi([qt(!1)],t.prototype,"enablePersistence",void 0),fi([qt()],t.prototype,"enableRtl",void 0),fi([qt()],t.prototype,"locale",void 0),t=fi([Zt],t)}(Vt),"undefined"!=typeof window&&window.addEventListener("popstate",function(){Mi=0});var Di=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Ii=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},Si={left:0,top:0,bottom:0,right:0},bi={isDragged:!1},zi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Di(t,e),Ii([qt(0)],t.prototype,"left",void 0),Ii([qt(0)],t.prototype,"top",void 0),t}(si);!function(e){function t(t,r){var n=e.call(this,r,t)||this;return n.dragLimit=i.getDefaultPosition(),n.borderWidth=i.getDefaultPosition(),n.padding=i.getDefaultPosition(),n.diffX=0,n.prevLeft=0,n.prevTop=0,n.dragProcessStarted=!1,n.eleTop=0,n.tapHoldTimer=0,n.externalInitialize=!1,n.diffY=0,n.parentScrollX=0,n.parentScrollY=0,n.droppables={},n.bind(),n}var i;Di(t,e),i=t,t.prototype.bind=function(){this.toggleEvents(),wt.isIE&&At([this.element],"e-block-touch"),this.droppables[this.scope]={}},t.getDefaultPosition=function(){return Ge({},Si)},t.prototype.toggleEvents=function(e){var t;qe(this.handle)||(t=kt(this.handle,this.element));var i=this.enableTapHold&&wt.isDevice&&wt.isTouch?this.mobileInitialize:this.initialize;e?Ot.remove(t||this.element,wt.isSafari()?"touchstart":wt.touchStartEvent,i):Ot.add(t||this.element,wt.isSafari()?"touchstart":wt.touchStartEvent,i,this)},t.prototype.mobileInitialize=function(e){var t=this,i=e.currentTarget;this.tapHoldTimer=setTimeout(function(){t.externalInitialize=!0,t.removeTapholdTimer(),t.initialize(e,i)},this.tapHoldThreshold),Ot.add(document,wt.isSafari()?"touchmove":wt.touchMoveEvent,this.removeTapholdTimer,this),Ot.add(document,wt.isSafari()?"touchend":wt.touchEndEvent,this.removeTapholdTimer,this)},t.prototype.removeTapholdTimer=function(){clearTimeout(this.tapHoldTimer),Ot.remove(document,wt.isSafari()?"touchmove":wt.touchMoveEvent,this.removeTapholdTimer),Ot.remove(document,wt.isSafari()?"touchend":wt.touchEndEvent,this.removeTapholdTimer)},t.prototype.getScrollableParent=function(e,t){return He(e)?null:e[{vertical:"scrollHeight",horizontal:"scrollWidth"}[""+t]]>e[{vertical:"clientHeight",horizontal:"clientWidth"}[""+t]]&&("vertical"===t?e.scrollTop>0:e.scrollLeft>0)?("vertical"===t?(this.parentScrollY=this.parentScrollY+(0===this.parentScrollY?e.scrollTop:e.scrollTop-this.parentScrollY),this.tempScrollHeight=e.scrollHeight):(this.parentScrollX=this.parentScrollX+(0===this.parentScrollX?e.scrollLeft:e.scrollLeft-this.parentScrollX),this.tempScrollWidth=e.scrollWidth),He(e)?e:this.getScrollableParent(e.parentNode,t)):this.getScrollableParent(e.parentNode,t)},t.prototype.getScrollableValues=function(){this.parentScrollX=0,this.parentScrollY=0,this.element.classList.contains("e-dialog")&&this.element.classList.contains("e-dlg-modal"),this.getScrollableParent(this.element.parentNode,"vertical"),this.getScrollableParent(this.element.parentNode,"horizontal")},t.prototype.initialize=function(e,t){if(this.currentStateTarget=e.target,!this.isDragStarted()){if(this.isDragStarted(!0),this.externalInitialize=!1,this.target=e.currentTarget||t,this.dragProcessStarted=!1,this.abort){var i=this.abort;"string"==typeof i&&(i=[i]);for(var r=0;r<i.length;r++)if(!He(Ut(e.target,i[parseInt(r.toString(),10)])))return void(this.isDragStarted()&&this.isDragStarted(!0))}this.preventDefault&&!qe(e.changedTouches)&&"touchstart"!==e.type&&e.preventDefault(),this.element.setAttribute("aria-grabbed","true");var n=this.getCoordinates(e);if(this.initialPosition={x:n.pageX,y:n.pageY},!this.clone){var o=this.element.getBoundingClientRect();this.getScrollableValues(),e.clientX===e.pageX&&(this.parentScrollX=0),e.clientY===e.pageY&&(this.parentScrollY=0),this.relativeXPosition=n.pageX-(o.left+this.parentScrollX),this.relativeYPosition=n.pageY-(o.top+this.parentScrollY)}this.externalInitialize?this.intDragStart(e):(Ot.add(document,wt.isSafari()?"touchmove":wt.touchMoveEvent,this.intDragStart,this),Ot.add(document,wt.isSafari()?"touchend":wt.touchEndEvent,this.intDestroy,this)),this.toggleEvents(!0),"touchstart"!==e.type&&this.isPreventSelect&&document.body.classList.add("e-prevent-select"),this.externalInitialize=!1,Ot.trigger(document.documentElement,wt.isSafari()?"touchstart":wt.touchStartEvent,e)}},t.prototype.intDragStart=function(e){this.removeTapholdTimer();var t=!qe(e.changedTouches);if(!t||1===e.changedTouches.length){var i,r=this.getCoordinates(e),n=getComputedStyle(this.element);this.margin={left:parseInt(n.marginLeft,10),top:parseInt(n.marginTop,10),right:parseInt(n.marginRight,10),bottom:parseInt(n.marginBottom,10)};var o=this.element;if(this.clone&&this.dragTarget){var s=Ut(e.target,this.dragTarget);He(s)||(o=s)}this.isReplaceDragEle&&(o=this.currentStateCheck(e.target,o)),this.offset=this.calculateParentPosition(o),this.position=this.getMousePosition(e,this.isDragScroll);var a=this.initialPosition.x-r.pageX,c=this.initialPosition.y-r.pageY;if(Math.sqrt(a*a+c*c)>=this.distance||this.externalInitialize){var h=this.getHelperElement(e);if(!h||He(h))return;t&&e.preventDefault();var u=this.helperElement=h;if(this.parentClientRect=this.calculateParentPosition(u.offsetParent),this.dragStart){var l={event:e,element:o,target:this.getProperTargetElement(e),bindEvents:null,dragElement:u};this.trigger("dragStart",l)}this.dragArea?this.setDragArea():(this.dragLimit={left:0,right:0,bottom:0,top:0},this.borderWidth={top:0,left:0}),i={left:this.position.left-this.parentClientRect.left,top:this.position.top-this.parentClientRect.top},this.clone&&!this.enableTailMode&&(this.diffX=this.position.left-this.offset.left,this.diffY=this.position.top-this.offset.top),this.getScrollableValues();var p=getComputedStyle(o),d=parseFloat(p.marginTop);this.clone&&0!==d&&(i.top+=d),this.eleTop=isNaN(parseFloat(p.top))?0:parseFloat(p.top)-this.offset.top,this.enableScrollHandler&&!this.clone&&(i.top-=this.parentScrollY,i.left-=this.parentScrollX);var g=this.getProcessedPositionValue({top:i.top-this.diffY+"px",left:i.left-this.diffX+"px"});this.dragArea&&"string"!=typeof this.dragArea&&this.dragArea.classList.contains("e-kanban-content")&&"relative"===this.dragArea.style.position&&(i.top+=this.dragArea.scrollTop),this.dragElePosition={top:i.top,left:i.left},Qt(u,this.getDragPosition({position:"absolute",left:g.left,top:g.top})),Ot.remove(document,wt.isSafari()?"touchmove":wt.touchMoveEvent,this.intDragStart),Ot.remove(document,wt.isSafari()?"touchend":wt.touchEndEvent,this.intDestroy),this.bindDragEvents(u)}}},t.prototype.bindDragEvents=function(e){Et(e)?(Ot.add(document,wt.isSafari()?"touchmove":wt.touchMoveEvent,this.intDrag,this),Ot.add(document,wt.isSafari()?"touchend":wt.touchEndEvent,this.intDragStop,this),this.setGlobalDroppables(!1,this.element,e)):(this.toggleEvents(),document.body.classList.remove("e-prevent-select"))},t.prototype.elementInViewport=function(e){for(this.top=e.offsetTop,this.left=e.offsetLeft,this.width=e.offsetWidth,this.height=e.offsetHeight;e.offsetParent;)e=e.offsetParent,this.top+=e.offsetTop,this.left+=e.offsetLeft;return this.top>=window.pageYOffset&&this.left>=window.pageXOffset&&this.top+this.height<=window.pageYOffset+window.innerHeight&&this.left+this.width<=window.pageXOffset+window.innerWidth},t.prototype.getProcessedPositionValue=function(e){return this.queryPositionInfo?this.queryPositionInfo(e):e},t.prototype.calculateParentPosition=function(e){if(He(e))return{left:0,top:0};var t=e.getBoundingClientRect(),i=getComputedStyle(e);return{left:t.left+window.pageXOffset-parseInt(i.marginLeft,10),top:t.top+window.pageYOffset-parseInt(i.marginTop,10)}},t.prototype.intDrag=function(e){if(qe(e.changedTouches)||1===e.changedTouches.length){var t,i;this.clone&&e.changedTouches&&wt.isDevice&&wt.isTouch&&e.preventDefault(),this.position=this.getMousePosition(e,this.isDragScroll);var r=this.getDocumentWidthHeight("Height");r<this.position.top&&(this.position.top=r);var n=this.getDocumentWidthHeight("Width");if(n<this.position.left&&(this.position.left=n),this.drag){var o=this.getProperTargetElement(e);this.trigger("drag",{event:e,element:this.element,target:o})}var s=this.checkTargetElement(e);if(s.target&&s.instance){var a=!0;this.hoverObject&&(this.hoverObject.instance!==s.instance?this.triggerOutFunction(e,s):a=!1),a&&(s.instance.dragData[this.scope]=this.droppables[this.scope],s.instance.intOver(e,s.target),this.hoverObject=s)}else this.hoverObject&&this.triggerOutFunction(e,s);var c=this.droppables[this.scope].helper;this.parentClientRect=this.calculateParentPosition(this.helperElement.offsetParent);var h=this.parentClientRect.left,u=this.parentClientRect.top,l=this.getCoordinates(e),p=l.pageX,d=l.pageY,g=this.position.left-this.diffX,f=this.position.top-this.diffY,M=getComputedStyle(c);if(this.dragArea){if(this.enableAutoScroll&&this.setDragArea(),this.pageX!==p||this.skipDistanceCheck){var y=c.offsetWidth+(parseFloat(M.marginLeft)+parseFloat(M.marginRight));t=this.dragLimit.left>g&&g>0?this.dragLimit.left:this.dragLimit.right+window.pageXOffset<g+y&&g>0?g-(g-this.dragLimit.right)+window.pageXOffset-y:g<0?this.dragLimit.left:g}if(this.pageY!==d||this.skipDistanceCheck){var m=c.offsetHeight+(parseFloat(M.marginTop)+parseFloat(M.marginBottom));i=this.dragLimit.top>f&&f>0?this.dragLimit.top:this.dragLimit.bottom+window.pageYOffset<f+m&&f>0?f-(f-this.dragLimit.bottom)+window.pageYOffset-m:f<0?this.dragLimit.top:f}}else t=g,i=f;var N,j,D=u+this.borderWidth.top,I=h+this.borderWidth.left;if(this.dragProcessStarted&&(He(i)&&(i=this.prevTop),He(t)&&(t=this.prevLeft)),this.helperElement.classList.contains("e-treeview"))this.dragArea?(this.dragLimit.top=this.clone?this.dragLimit.top:0,N=i-D<0?this.dragLimit.top:i-this.borderWidth.top,j=t-I<0?this.dragLimit.left:t-this.borderWidth.left):(N=i-this.borderWidth.top,j=t-this.borderWidth.left);else if(this.dragArea){var S=this.helperElement.classList.contains("e-dialog");this.dragLimit.top=this.clone?this.dragLimit.top:0,N=i-D<0?this.dragLimit.top:i-D,j=t-I<0?S?t-(I-this.borderWidth.left):this.dragElePosition.left:t-I}else N=i-D,j=t-I;var b=parseFloat(getComputedStyle(this.element).marginTop);if(b>0&&(this.clone&&(N+=b,f<0&&(b+f>=0?N=b+f:N-=b),this.dragArea&&(N=this.dragLimit.bottom<N?this.dragLimit.bottom:N)),i-D<0))if(f+b+(c.offsetHeight-D)>=0){var z=this.dragLimit.top+f-D;z+b+D<0?N-=b+D:N=z}else N-=b+D;if(this.dragArea&&this.helperElement.classList.contains("e-treeview"))N=N+(m=c.offsetHeight+(parseFloat(M.marginTop)+parseFloat(M.marginBottom)))>this.dragLimit.bottom?this.dragLimit.bottom-m:N;this.enableScrollHandler&&!this.clone&&(N-=this.parentScrollY,j-=this.parentScrollX),this.dragArea&&"string"!=typeof this.dragArea&&this.dragArea.classList.contains("e-kanban-content")&&"relative"===this.dragArea.style.position&&(N+=this.dragArea.scrollTop);var v=this.getProcessedPositionValue({top:N+"px",left:j+"px"});Qt(c,this.getDragPosition(v)),this.elementInViewport(c)||!this.enableAutoScroll||this.helperElement.classList.contains("e-treeview")||this.helperElement.scrollIntoView();var w=document.querySelectorAll(":hover");if(this.enableAutoScroll&&this.helperElement.classList.contains("e-treeview")){0===w.length&&(w=this.getPathElements(e));var O=this.getScrollParent(w,!1);this.elementInViewport(this.helperElement)?this.getScrollPosition(O,N):this.elementInViewport(this.helperElement)||(0===(w=[].slice.call(document.querySelectorAll(":hover"))).length&&(w=this.getPathElements(e)),O=this.getScrollParent(w,!0),this.getScrollPosition(O,N))}this.dragProcessStarted=!0,this.prevLeft=t,this.prevTop=i,this.position.left=t,this.position.top=i,this.pageX=p,this.pageY=d}},t.prototype.getScrollParent=function(e,t){for(var i,r=t?e.reverse():e,n=r.length-1;n>=0;n--)if(("auto"===(i=window.getComputedStyle(r[parseInt(n.toString(),10)])["overflow-y"])||"scroll"===i)&&r[parseInt(n.toString(),10)].scrollHeight>r[parseInt(n.toString(),10)].clientHeight)return r[parseInt(n.toString(),10)];if("visible"===(i=window.getComputedStyle(document.scrollingElement)["overflow-y"]))return document.scrollingElement.style.overflow="auto",document.scrollingElement},t.prototype.getScrollPosition=function(e,t){if(e&&e===document.scrollingElement)e.clientHeight+document.scrollingElement.scrollTop-this.helperElement.clientHeight<t&&e.getBoundingClientRect().height+this.parentClientRect.top>t?e.scrollTop+=this.helperElement.clientHeight:e.scrollTop>t-this.helperElement.clientHeight&&(e.scrollTop-=this.helperElement.clientHeight);else if(e&&e!==document.scrollingElement){var i=document.scrollingElement.scrollTop,r=this.helperElement.clientHeight;e.clientHeight+e.getBoundingClientRect().top-r+i<t?e.scrollTop+=this.helperElement.clientHeight:e.getBoundingClientRect().top>t-r-i&&(e.scrollTop-=this.helperElement.clientHeight)}},t.prototype.getPathElements=function(e){var t=e.clientX>0?e.clientX:0,i=e.clientY>0?e.clientY:0;return document.elementsFromPoint(t,i)},t.prototype.triggerOutFunction=function(e,t){this.hoverObject.instance.intOut(e,t.target),this.hoverObject.instance.dragData[this.scope]=null,this.hoverObject=null},t.prototype.getDragPosition=function(e){var t=Ge({},e);return this.axis&&("x"===this.axis?delete t.top:"y"===this.axis&&delete t.left),t},t.prototype.getDocumentWidthHeight=function(e){var t=document.body,i=document.documentElement;return Math.max(t["scroll"+e],i["scroll"+e],t["offset"+e],i["offset"+e],i["client"+e])},t.prototype.intDragStop=function(e){if(this.dragProcessStarted=!1,qe(e.changedTouches)||1===e.changedTouches.length){if(-1!==["touchend","pointerup","mouseup"].indexOf(e.type)){if(this.dragStop){var t=this.getProperTargetElement(e);this.trigger("dragStop",{event:e,element:this.element,target:t,helper:this.helperElement})}this.intDestroy(e)}else this.element.setAttribute("aria-grabbed","false");var i=this.checkTargetElement(e);i.target&&i.instance&&(i.instance.dragStopCalled=!0,i.instance.dragData[this.scope]=this.droppables[this.scope],i.instance.intDrop(e,i.target)),this.setGlobalDroppables(!0),document.body.classList.remove("e-prevent-select")}},t.prototype.intDestroy=function(e){this.dragProcessStarted=!1,this.toggleEvents(),document.body.classList.remove("e-prevent-select"),this.element.setAttribute("aria-grabbed","false"),Ot.remove(document,wt.isSafari()?"touchmove":wt.touchMoveEvent,this.intDragStart),Ot.remove(document,wt.isSafari()?"touchend":wt.touchEndEvent,this.intDragStop),Ot.remove(document,wt.isSafari()?"touchend":wt.touchEndEvent,this.intDestroy),Ot.remove(document,wt.isSafari()?"touchmove":wt.touchMoveEvent,this.intDrag),this.isDragStarted()&&this.isDragStarted(!0)},t.prototype.onPropertyChanged=function(e,t){},t.prototype.getModuleName=function(){return"draggable"},t.prototype.isDragStarted=function(e){return e&&(bi.isDragged=!bi.isDragged),bi.isDragged},t.prototype.setDragArea=function(){var e,t,i,r=0,n=0;if(i="string"===typeof this.dragArea?kt(this.dragArea):this.dragArea){var o=i.getBoundingClientRect();e=i.scrollWidth?i.scrollWidth:o.right-o.left,t=i.scrollHeight?this.dragArea&&!He(this.helperElement)&&this.helperElement.classList.contains("e-treeview")?i.clientHeight:i.scrollHeight:o.bottom-o.top;for(var s=["Top","Left","Bottom","Right"],a=getComputedStyle(i),c=0;c<s.length;c++){var h=s[parseInt(c.toString(),10)],u=a["border"+h+"Width"],l=a["padding"+h],p=h.toLowerCase();this.borderWidth[""+p]=isNaN(parseFloat(u))?0:parseFloat(u),this.padding[""+p]=isNaN(parseFloat(l))?0:parseFloat(l)}r=this.dragArea&&!He(this.helperElement)&&this.helperElement.classList.contains("e-treeview")?o.top+document.scrollingElement.scrollTop:o.top,n=o.left,this.dragLimit.left=n+this.borderWidth.left+this.padding.left,this.dragLimit.top=i.offsetTop+this.borderWidth.top+this.padding.top,this.dragLimit.right=n+e-(this.borderWidth.right+this.padding.right),this.dragLimit.bottom=r+t-(this.borderWidth.bottom+this.padding.bottom)}},t.prototype.getProperTargetElement=function(e){var t,i=this.getCoordinates(e),r=this.helperElement.style.pointerEvents||"",n=-1!==e.type.indexOf("pointer")&&"safari"===wt.info.name&&parseInt(wt.info.version,10)>12;return _e(e.target,this.helperElement)||-1!==e.type.indexOf("touch")||n?(this.helperElement.style.pointerEvents="none",t=document.elementFromPoint(i.clientX,i.clientY),this.helperElement.style.pointerEvents=r):t=e.target,t},t.prototype.currentStateCheck=function(e,t){return He(this.currentStateTarget)||this.currentStateTarget===e?He(t)?e:t:this.currentStateTarget},t.prototype.getMousePosition=function(e,t){var i,r,n=void 0!==e.srcElement?e.srcElement:e.target,o=this.getCoordinates(e),s=He(n.offsetParent);if(t?(i=this.clone?o.pageX:o.pageX+(s?0:n.offsetParent.scrollLeft)-this.relativeXPosition,r=this.clone?o.pageY:o.pageY+(s?0:n.offsetParent.scrollTop)-this.relativeYPosition):(i=this.clone?o.pageX:o.pageX+window.pageXOffset-this.relativeXPosition,r=this.clone?o.pageY:o.pageY+window.pageYOffset-this.relativeYPosition),document.scrollingElement&&!t&&!this.clone){var a=document.scrollingElement,c=a.scrollHeight>0&&a.scrollHeight>a.clientHeight&&a.scrollTop>0;i=a.scrollWidth>0&&a.scrollWidth>a.clientWidth&&a.scrollLeft>0?i-a.scrollLeft:i,r=c?r-a.scrollTop:r}return{left:i-(this.margin.left+this.cursorAt.left),top:r-(this.margin.top+this.cursorAt.top)}},t.prototype.getCoordinates=function(e){return e.type.indexOf("touch")>-1?e.changedTouches[0]:e},t.prototype.getHelperElement=function(e){var t;return this.clone?this.helper?t=this.helper({sender:e,element:this.target}):(t=Lt("div",{className:"e-drag-helper e-block-touch",innerHTML:"Draggable"}),document.body.appendChild(t)):t=this.element,t},t.prototype.setGlobalDroppables=function(e,t,i){this.droppables[this.scope]=e?null:{draggable:t,helper:i,draggedElement:this.element}},t.prototype.checkTargetElement=function(e){var t=this.getProperTargetElement(e),i=this.getDropInstance(t);if(!i&&t&&!He(t.parentNode)){var r=Ut(t.parentNode,".e-droppable")||t.parentElement;r&&(i=this.getDropInstance(r))}return{target:t,instance:i}},t.prototype.getDropInstance=function(e){var t,i=e&&e.ej2_instances;if(i)for(var r=0,n=i;r<n.length;r++){var o=n[r];if("droppable"===o.getModuleName()){t=o;break}}return t},t.prototype.destroy=function(){this.toggleEvents(!0),e.prototype.destroy.call(this)},Ii([_t({},zi)],t.prototype,"cursorAt",void 0),Ii([qt(!0)],t.prototype,"clone",void 0),Ii([qt()],t.prototype,"dragArea",void 0),Ii([qt()],t.prototype,"isDragScroll",void 0),Ii([qt()],t.prototype,"isReplaceDragEle",void 0),Ii([qt(!0)],t.prototype,"isPreventSelect",void 0),Ii([Jt()],t.prototype,"drag",void 0),Ii([Jt()],t.prototype,"dragStart",void 0),Ii([Jt()],t.prototype,"dragStop",void 0),Ii([qt(1)],t.prototype,"distance",void 0),Ii([qt()],t.prototype,"handle",void 0),Ii([qt()],t.prototype,"abort",void 0),Ii([qt()],t.prototype,"helper",void 0),Ii([qt("default")],t.prototype,"scope",void 0),Ii([qt("")],t.prototype,"dragTarget",void 0),Ii([qt()],t.prototype,"axis",void 0),Ii([qt()],t.prototype,"queryPositionInfo",void 0),Ii([qt(!1)],t.prototype,"enableTailMode",void 0),Ii([qt(!1)],t.prototype,"skipDistanceCheck",void 0),Ii([qt(!0)],t.prototype,"preventDefault",void 0),Ii([qt(!1)],t.prototype,"enableAutoScroll",void 0),Ii([qt(!1)],t.prototype,"enableTapHold",void 0),Ii([qt(750)],t.prototype,"tapHoldThreshold",void 0),Ii([qt(!1)],t.prototype,"enableScrollHandler",void 0),t=i=Ii([Zt],t)}(Vt);var vi=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),wi=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};!function(e){function t(t,i){var r=e.call(this,i,t)||this;return r.mouseOver=!1,r.dragData={},r.dragStopCalled=!1,r.bind(),r}vi(t,e),t.prototype.bind=function(){this.wireEvents()},t.prototype.wireEvents=function(){Ot.add(this.element,wt.isSafari()?"touchend":wt.touchEndEvent,this.intDrop,this)},t.prototype.onPropertyChanged=function(e,t){},t.prototype.getModuleName=function(){return"droppable"},t.prototype.intOver=function(e,t){if(!this.mouseOver){var i=this.dragData[this.scope];this.trigger("over",{event:e,target:t,dragData:i}),this.mouseOver=!0}},t.prototype.intOut=function(e,t){this.mouseOver&&(this.trigger("out",{evt:e,target:t}),this.mouseOver=!1)},t.prototype.intDrop=function(e,t){if(this.dragStopCalled){this.dragStopCalled=!1;var i,r=!0,n=this.dragData[this.scope],o=!!n&&(n.helper&&Et(n.helper));o&&(i=this.isDropArea(e,n.helper,t),this.accept&&(r=Yt(n.helper,this.accept))),o&&this.drop&&i.canDrop&&r&&this.trigger("drop",{event:e,target:i.target,droppedElement:n.helper,dragData:n}),this.mouseOver=!1}},t.prototype.isDropArea=function(e,t,i){var r={canDrop:!0,target:i||e.target},n="touchend"===e.type;if(n||r.target===t){t.style.display="none";var o=n?e.changedTouches[0]:e,s=document.elementFromPoint(o.clientX,o.clientY);r.canDrop=!1,r.canDrop=_e(s,this.element),r.canDrop&&(r.target=s),t.style.display=""}return r},t.prototype.destroy=function(){Ot.remove(this.element,wt.isSafari()?"touchend":wt.touchEndEvent,this.intDrop),e.prototype.destroy.call(this)},wi([qt()],t.prototype,"accept",void 0),wi([qt("default")],t.prototype,"scope",void 0),wi([Jt()],t.prototype,"drop",void 0),wi([Jt()],t.prototype,"over",void 0),wi([Jt()],t.prototype,"out",void 0),t=wi([Zt],t)}(Vt);var Oi=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Ti=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},Li={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,space:32,escape:27,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,semicolon:186,plus:187,comma:188,minus:189,dot:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222};!function(e){function t(t,r){var n=e.call(this,r,t)||this;return n.keyPressHandler=function(e){for(var t=e.altKey,r=e.ctrlKey,o=e.shiftKey,s=e.which,a=0,c=Object.keys(n.keyConfigs);a<c.length;a++)for(var h=c[a],u=0,l=n.keyConfigs[""+h].split(",");u<l.length;u++){var p=l[u],d=i.getKeyConfigData(p.trim());t===d.altKey&&r===d.ctrlKey&&o===d.shiftKey&&s===d.keyCode&&(e.action=h,n.keyAction&&n.keyAction(e))}},n.bind(),n}var i;Oi(t,e),i=t,t.prototype.destroy=function(){this.unwireEvents(),e.prototype.destroy.call(this)},t.prototype.onPropertyChanged=function(e,t){},t.prototype.bind=function(){this.wireEvents()},t.prototype.getModuleName=function(){return"keyboard"},t.prototype.wireEvents=function(){this.element.addEventListener(this.eventName,this.keyPressHandler)},t.prototype.unwireEvents=function(){this.element.removeEventListener(this.eventName,this.keyPressHandler)},t.getKeyConfigData=function(e){if(e in this.configCache)return this.configCache[""+e];var t=e.toLowerCase().split("+"),r={altKey:-1!==t.indexOf("alt"),ctrlKey:-1!==t.indexOf("ctrl"),shiftKey:-1!==t.indexOf("shift"),keyCode:null};return t[t.length-1].length>1&&Number(t[t.length-1])?r.keyCode=Number(t[t.length-1]):r.keyCode=i.getKeyCode(t[t.length-1]),i.configCache[""+e]=r,r},t.getKeyCode=function(e){return Li[""+e]||e.toUpperCase().charCodeAt(0)},t.configCache={},Ti([qt({})],t.prototype,"keyConfigs",void 0),Ti([qt("keyup")],t.prototype,"eventName",void 0),Ti([Jt()],t.prototype,"keyAction",void 0),t=i=Ti([Zt],t)}(Vt);var Ai=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Ci=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},xi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ai(t,e),Ci([qt(50)],t.prototype,"swipeThresholdDistance",void 0),t}(si),Ei=/(Up|Down)/;!function(e){function t(t,i){var r=e.call(this,i,t)||this;return r.touchAction=!0,r.tapCount=0,r.startEvent=function(e){if(!0===r.touchAction){var t=r.updateChangeTouches(e);void 0!==e.changedTouches&&(r.touchAction=!1),r.isTouchMoved=!1,r.movedDirection="",r.startPoint=r.lastMovedPoint={clientX:t.clientX,clientY:t.clientY},r.startEventData=t,r.hScrollLocked=r.vScrollLocked=!1,r.tStampStart=Date.now(),r.timeOutTapHold=setTimeout(function(){r.tapHoldEvent(e)},r.tapHoldThreshold),Ot.add(r.element,wt.touchMoveEvent,r.moveEvent,r),Ot.add(r.element,wt.touchEndEvent,r.endEvent,r),Ot.add(r.element,wt.touchCancelEvent,r.cancelEvent,r)}},r.moveEvent=function(e){var t=r.updateChangeTouches(e);r.movedPoint=t,r.isTouchMoved=!(t.clientX===r.startPoint.clientX&&t.clientY===r.startPoint.clientY);var i={};r.isTouchMoved&&(clearTimeout(r.timeOutTapHold),r.calcScrollPoints(e),i=Ge(i,{},{startEvents:r.startEventData,originalEvent:e,startX:r.startPoint.clientX,startY:r.startPoint.clientY,distanceX:r.distanceX,distanceY:r.distanceY,scrollDirection:r.scrollDirection,velocity:r.getVelocity(t)}),r.trigger("scroll",i),r.lastMovedPoint={clientX:t.clientX,clientY:t.clientY})},r.cancelEvent=function(e){clearTimeout(r.timeOutTapHold),clearTimeout(r.timeOutTap),r.tapCount=0,r.swipeFn(e),Ot.remove(r.element,wt.touchCancelEvent,r.cancelEvent)},r.endEvent=function(e){r.swipeFn(e),r.isTouchMoved||"function"==typeof r.tap&&(r.trigger("tap",{originalEvent:e,tapCount:++r.tapCount}),r.timeOutTap=setTimeout(function(){r.tapCount=0},r.tapThreshold)),r.modeclear()},r.swipeFn=function(e){clearTimeout(r.timeOutTapHold),clearTimeout(r.timeOutTap);var t=r.updateChangeTouches(e),i=t.clientX-r.startPoint.clientX,n=t.clientY-r.startPoint.clientY;i=Math.floor(i<0?-1*i:i),n=Math.floor(n<0?-1*n:i),r.isTouchMoved=i>1||n>1,/Firefox/.test(wt.userAgent)&&0===t.clientX&&0===t.clientY&&"mouseup"===e.type&&(r.isTouchMoved=!1),r.endPoint=t,r.calcPoints(e);var o={originalEvent:e,startEvents:r.startEventData,startX:r.startPoint.clientX,startY:r.startPoint.clientY,distanceX:r.distanceX,distanceY:r.distanceY,swipeDirection:r.movedDirection,velocity:r.getVelocity(t)};if(r.isTouchMoved){var s=void 0,a=r.swipeSettings.swipeThresholdDistance;s=Ge(s,r.defaultArgs,o);var c=!1,h=r.element,u=r.isScrollable(h),l=Ei.test(r.movedDirection);(a<r.distanceX&&!l||a<r.distanceY&&l)&&(c=!u||r.checkSwipe(h,l)),c&&r.trigger("swipe",s)}r.modeclear()},r.modeclear=function(){r.modeClear=setTimeout(function(){r.touchAction=!0},"function"!=typeof r.tap?0:20),r.lastTapTime=(new Date).getTime(),Ot.remove(r.element,wt.touchMoveEvent,r.moveEvent),Ot.remove(r.element,wt.touchEndEvent,r.endEvent),Ot.remove(r.element,wt.touchCancelEvent,r.cancelEvent)},r.bind(),r}Ai(t,e),t.prototype.onPropertyChanged=function(e,t){},t.prototype.bind=function(){this.wireEvents(),wt.isIE&&this.element.classList.add("e-block-touch")},t.prototype.destroy=function(){this.unwireEvents(),e.prototype.destroy.call(this)},t.prototype.wireEvents=function(){Ot.add(this.element,wt.touchStartEvent,this.startEvent,this)},t.prototype.unwireEvents=function(){Ot.remove(this.element,wt.touchStartEvent,this.startEvent)},t.prototype.getModuleName=function(){return"touch"},t.prototype.isScrollable=function(e){var t=getComputedStyle(e),i=t.overflow+t.overflowX+t.overflowY;return!!/(auto|scroll)/.test(i)},t.prototype.tapHoldEvent=function(e){var t;this.tapCount=0,this.touchAction=!0,Ot.remove(this.element,wt.touchMoveEvent,this.moveEvent),Ot.remove(this.element,wt.touchEndEvent,this.endEvent),t={originalEvent:e},this.trigger("tapHold",t),Ot.remove(this.element,wt.touchCancelEvent,this.cancelEvent)},t.prototype.calcPoints=function(e){var t=this.updateChangeTouches(e);this.defaultArgs={originalEvent:e},this.distanceX=Math.abs(Math.abs(t.clientX)-Math.abs(this.startPoint.clientX)),this.distanceY=Math.abs(Math.abs(t.clientY)-Math.abs(this.startPoint.clientY)),this.distanceX>this.distanceY?this.movedDirection=t.clientX>this.startPoint.clientX?"Right":"Left":this.movedDirection=t.clientY<this.startPoint.clientY?"Up":"Down"},t.prototype.calcScrollPoints=function(e){var t=this.updateChangeTouches(e);this.defaultArgs={originalEvent:e},this.distanceX=Math.abs(Math.abs(t.clientX)-Math.abs(this.lastMovedPoint.clientX)),this.distanceY=Math.abs(Math.abs(t.clientY)-Math.abs(this.lastMovedPoint.clientY)),(this.distanceX>this.distanceY||!0===this.hScrollLocked)&&!1===this.vScrollLocked?(this.scrollDirection=t.clientX>this.lastMovedPoint.clientX?"Right":"Left",this.hScrollLocked=!0):(this.scrollDirection=t.clientY<this.lastMovedPoint.clientY?"Up":"Down",this.vScrollLocked=!0)},t.prototype.getVelocity=function(e){var t=e.clientX,i=e.clientY,r=Date.now(),n=t-this.startPoint.clientX,o=i-this.startPoint.clientX,s=r-this.tStampStart;return Math.sqrt(n*n+o*o)/s},t.prototype.checkSwipe=function(e,t){var i=["scroll","offset"],r=t?["Height","Top"]:["Width","Left"];return e[i[0]+r[0]]<=e[i[1]+r[0]]||(0===e[i[0]+r[1]]||e[i[1]+r[0]]+e[i[0]+r[1]]>=e[i[0]+r[0]])},t.prototype.updateChangeTouches=function(e){return e.changedTouches&&0!==e.changedTouches.length?e.changedTouches[0]:e},Ci([Jt()],t.prototype,"tap",void 0),Ci([Jt()],t.prototype,"tapHold",void 0),Ci([Jt()],t.prototype,"swipe",void 0),Ci([Jt()],t.prototype,"scroll",void 0),Ci([qt(350)],t.prototype,"tapThreshold",void 0),Ci([qt(750)],t.prototype,"tapHoldThreshold",void 0),Ci([_t({},xi)],t.prototype,"swipeSettings",void 0),t=Ci([Zt],t)}(Vt);var ki=new RegExp("\\n|\\r|\\s\\s+","g"),Pi=new RegExp(/'|"/g),Ui=new RegExp("if ?\\("),Qi=new RegExp("else if ?\\("),Yi=new RegExp("else"),Ri=new RegExp("for ?\\("),Vi=new RegExp("(/if|/for)"),Fi=new RegExp("\\((.*)\\)",""),Bi=new RegExp("^[0-9]+$","g"),Wi=new RegExp("[\\w\"'.\\s+]+","g"),Gi=new RegExp('"(.*?)"',"g"),Hi=new RegExp("[\\w\"'@#$.\\s-+]+","g"),qi=new RegExp("\\${([^}]*)}","g"),_i=/^\..*/gm,Ji=/\\/gi,Zi=/\\\\/gi,Ki=new RegExp("[\\w\"'@#$.\\s+]+","g"),Xi=/\window\./gm;function $i(e,t,i){if("function"==typeof e)return e;var r="data",n=function(e,t,i,r){var n=0,o=[],s=e.match(/class="([^"]+|)\s{2}/g),a="";s&&s.forEach(function(t){a=t.replace(/\s\s+/g," "),e=e.replace(t,a)});if(qi.test(e)){for(var c=!1,h="",u=0;u<e.length;u++)"$"===e[u+""]&&"{"===e[u+1]?c=!0:"}"===e[u+""]&&(c=!1),h+='"'!==e[u+""]||c?e[u+""]:'\\"';e=h}else e=e.replace(/\\?"/g,'\\"');return e.replace(ki,"").replace(Gi,"'$1'").replace(qi,function(e,s,a,c){var h=/@|#|\$/gm,u=s.match(Fi);if(u){var l=u[1];if(Qi.test(s))s='";} '+s.replace(u[1],l.replace(Wi,function(e){return er(e=e.trim(),!Pi.test(e)&&-1===o.indexOf(e),t,o,r)}))+'{ \n str = str + "';else if(Ui.test(s))s='"; '+s.replace(u[1],l.replace(Hi,function(e){return rr(e,t,o,r)}))+'{ \n str = str + "';else if(Ri.test(s)){var p=u[1].split(" of ");s='"; '+s.replace(u[1],function(e){return o.push(p[0]),o.push(p[0]+"Index"),"var i"+(n+=1)+"=0; i"+n+" < "+er(p[1],!0,t,o,r)+".length; i"+n+"++"})+"{ \n "+p[0]+"= "+er(p[1],!0,t,o,r)+"[i"+n+"]; \n var "+p[0]+"Index=i"+n+'; \n str = str + "'}else{var d=s.split("("),g=i&&i.hasOwnProperty(d[0])?"this.":"global";g=/\./.test(d[0])?"":g;var f=u[1].split(",");0===u[1].length||/data/.test(f[0])||/window./.test(f[0])||(u[1]="global"===g?t+"."+u[1]:u[1]);var M=/@|\$|#/gm,y=/\]\./gm;if(Xi.test(s)&&y.test(s)||M.test(s))/@|\$|#|\]\./gm.test(s)&&(s='"+ '+("global"===g?"":g)+s.replace(u[1],l.replace(Ki,function(e){return rr(e,t,o,r)}))+'+ "');else s='" + '+("global"===g?"":g)+s.replace(l,er(u[1].replace(/,( |)data.|,/gi,","+t+".").replace(/,( |)data.window/gi,",window"),"global"!==g,t,o,r))+'+"'}}else Yi.test(s)?s='"; '+s.replace(Yi,'} else { \n str = str + "'):s.match(Vi)?s=s.replace(Vi,'"; \n } \n str = str + "'):h.test(s)?(s.match(Ji)&&(s=ir(s)),s='"+'+tr(s,-1===o.indexOf(s),t,o)+'"]+"'):s=s.match(Ji)?'"+'+tr(s=ir(s),-1===o.indexOf(s),t,o)+'"]+"':""!==s?'"+'+er(s.replace(/,/gi,"+"+t+"."),-1===o.indexOf(s),t,o,r)+'+"':"${}";return s})}(e,r,t,i);return new Function(r,'var str="'+n+"\";var valueRegEx = (/value=\\'([A-Za-z0-9 _]*)((.)([\\w)(!-;?-■\\s]+)['])/g);\n var hrefRegex = (/(?:href)([\\s='\"./]+)([\\w-./?=&\\\\#\"]+)((.)([\\w)(!-;/?-■\\s]+)['])/g);\n if(str.match(valueRegEx)){\n var check = str.match(valueRegEx);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(valueRegEx)[i].split('value=')[1];\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n str = str.replace(str, str1);\n }\n else if (str.match(/(?:href='')/) === null) {\n if(str.match(hrefRegex)) {\n var check = str.match(hrefRegex);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(hrefRegex)[i].split('href=')[1];\n if (check1) {\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n }\n str = str.replace(str, str1);\n }\n }\n return str;").bind(t)}function er(e,t,i,r,n){return!t||Bi.test(e)||-1!==r.indexOf(e.split(".")[0])||n||"true"===e||"false"===e?e:i+"."+e}function tr(e,t,i,r){return t&&!Bi.test(e)&&-1===r.indexOf(e.split(".")[0])?i+'["'+e:e}function ir(e){return e.match(Zi)||(e=e.replace(Ji,"\\\\")),e}function rr(e,t,i,r){e=e.trim();if(/\window\./gm.test(e))return e;var n=/'|"/gm;return/@|\$|#/gm.test(e)&&(e=tr(e,-1===i.indexOf(e),t,i)+'"]'),_i.test(e)?function(e,t,i,r){return!t||Bi.test(e)||-1!==r.indexOf(e.split(".")[0])||/^\..*/gm.test(e)?e:i+"."+e}(e,!n.test(e)&&-1===i.indexOf(e),t,i):er(e,!n.test(e)&&-1===i.indexOf(e),t,i,r)}(new(function(){function e(){}return e.prototype.compile=function(e,t,i){return void 0===t&&(t={}),$i(e,t)},e}())).compile;const nr=({placeholder:e,className:t,minTime:i,maxTime:r,label:n="",id:a,onChange:c,name:h,value:l,format:p,disabled:d,onClearing:g,allowEdit:f})=>s("div",{children:[o("label",{htmlFor:a,children:n}),o(u,{id:a,placeholder:e,min:i,max:r,className:t,onChange:c,name:h,value:l,disabled:d,format:p,type:"timepicker",cleared:e=>{g(e)},allowEdit:f})]});var or=function(){function e(e){return this.subQuery=null,this.isChild=!1,this.distincts=[],this.queries=[],this.key="",this.fKey="","string"==typeof e?this.fromTable=e:e&&e instanceof Array&&(this.lookups=e),this.expands=[],this.sortedColumns=[],this.groupedColumns=[],this.subQuery=null,this.isChild=!1,this.params=[],this.lazyLoad=[],this}return e.prototype.setKey=function(e){return this.key=e,this},e.prototype.using=function(e){return this.dataManager=e,this},e.prototype.execute=function(e,t,i,r){return(e=e||this.dataManager)?e.executeQuery(this,t,i,r):cr.throwError('Query - execute() : dataManager needs to be is set using "using" function or should be passed as argument')},e.prototype.executeLocal=function(e){return(e=e||this.dataManager)?e.executeLocal(this):cr.throwError('Query - executeLocal() : dataManager needs to be is set using "using" function or should be passed as argument')},e.prototype.clone=function(){var t=new e;return t.queries=this.queries.slice(0),t.key=this.key,t.isChild=this.isChild,t.dataManager=this.dataManager,t.fromTable=this.fromTable,t.params=this.params.slice(0),t.expands=this.expands.slice(0),t.sortedColumns=this.sortedColumns.slice(0),t.groupedColumns=this.groupedColumns.slice(0),t.subQuerySelector=this.subQuerySelector,t.subQuery=this.subQuery,t.fKey=this.fKey,t.isCountRequired=this.isCountRequired,t.distincts=this.distincts.slice(0),t.lazyLoad=this.lazyLoad.slice(0),t},e.prototype.from=function(e){return this.fromTable=e,this},e.prototype.addParams=function(e,t){return"function"==typeof t?this.params.push({key:e,fn:t}):this.params.push({key:e,value:t}),this},e.prototype.distinct=function(e){return this.distincts="string"==typeof e?[].slice.call([e],0):e.slice(0),this},e.prototype.expand=function(e){return this.expands="string"==typeof e?[].slice.call([e],0):e.slice(0),this},e.prototype.where=function(e,t,i,r,n,o){t=t?t.toLowerCase():null;var s=null;return"string"==typeof e?s=new sr(e,t,i,r,n,o):e instanceof sr&&(s=e),this.queries.push({fn:"onWhere",e:s}),this},e.prototype.search=function(e,t,i,r,n){"string"==typeof t&&(t=[t]),i&&"none"!==i||(i="contains");var o=cr.fnOperators[i];return this.queries.push({fn:"onSearch",e:{fieldNames:t,operator:i,searchKey:e,ignoreCase:r,ignoreAccent:n,comparer:o}}),this},e.prototype.sortBy=function(e,t,i){return this.sortByForeignKey(e,t,i)},e.prototype.sortByForeignKey=function(t,i,r,n){var o,s,a=He(n)?"ascending":n;if("string"==typeof t&&cr.endsWith(t.toLowerCase()," desc")&&(t=t.replace(/ desc$/i,""),i="descending"),i&&"string"!=typeof i||(a=i?i.toLowerCase():"ascending",i=cr.fnSort(i)),r){o=e.filterQueries(this.queries,"onSortBy");for(var c=0;c<o.length;c++)if("string"==typeof(s=o[c].e.fieldName)){if(s===t)return this}else if(s instanceof Array)for(var h=0;h<s.length;h++)if(s[h]===t||t.toLowerCase()===s[h]+" desc")return this}return this.queries.push({fn:"onSortBy",e:{fieldName:t,comparer:i,direction:a}}),this},e.prototype.sortByDesc=function(e){return this.sortBy(e,"descending")},e.prototype.group=function(e,t,i){return this.sortBy(e,null,!0),this.queries.push({fn:"onGroup",e:{fieldName:e,comparer:t||null,format:i||null}}),this},e.prototype.page=function(e,t){return this.queries.push({fn:"onPage",e:{pageIndex:e,pageSize:t}}),this},e.prototype.range=function(e,t){return this.queries.push({fn:"onRange",e:{start:e,end:t}}),this},e.prototype.take=function(e){return this.queries.push({fn:"onTake",e:{nos:e}}),this},e.prototype.skip=function(e){return this.queries.push({fn:"onSkip",e:{nos:e}}),this},e.prototype.select=function(e){return"string"==typeof e&&(e=[].slice.call([e],0)),this.queries.push({fn:"onSelect",e:{fieldNames:e}}),this},e.prototype.hierarchy=function(e,t){return this.subQuerySelector=t,this.subQuery=e,this},e.prototype.foreignKey=function(e){return this.fKey=e,this},e.prototype.requiresCount=function(){return this.isCountRequired=!0,this},e.prototype.aggregate=function(e,t){return this.queries.push({fn:"onAggregates",e:{field:t,type:e}}),this},e.filterQueries=function(e,t){return e.filter(function(e){return e.fn===t})},e.filterQueryLists=function(e,t){for(var i=e.filter(function(e){return-1!==t.indexOf(e.fn)}),r={},n=0;n<i.length;n++)r[i[n].fn]||(r[i[n].fn]=i[n].e);return r},e}(),sr=function(){function e(t,i,r,n,o,s){return void 0===n&&(n=!1),this.ignoreAccent=!1,this.isComplex=!1,"string"==typeof t?(this.field=t,this.operator=i.toLowerCase(),this.value=r,this.matchCase=s,this.ignoreCase=n,this.ignoreAccent=o,this.isComplex=!1,this.comparer=cr.fnOperators.processOperator(this.operator)):(t instanceof e&&r instanceof e||r instanceof Array)&&(this.isComplex=!0,this.condition=i.toLowerCase(),this.predicates=[t],this.matchCase=t.matchCase,this.ignoreCase=t.ignoreCase,this.ignoreAccent=t.ignoreAccent,r instanceof Array?[].push.apply(this.predicates,r):this.predicates.push(r)),this}return e.and=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return e.combinePredicates([].slice.call(t,0),"and")},e.prototype.and=function(t,i,r,n,o){return e.combine(this,t,i,r,"and",n,o)},e.or=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return e.combinePredicates([].slice.call(t,0),"or")},e.prototype.or=function(t,i,r,n,o){return e.combine(this,t,i,r,"or",n,o)},e.ornot=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return e.combinePredicates([].slice.call(t,0),"or not")},e.prototype.ornot=function(t,i,r,n,o){return e.combine(this,t,i,r,"ornot",n,o)},e.andnot=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return e.combinePredicates([].slice.call(t,0),"and not")},e.prototype.andnot=function(t,i,r,n,o){return e.combine(this,t,i,r,"andnot",n,o)},e.fromJson=function(e){if(e instanceof Array){for(var t=[],i=0,r=e.length;i<r;i++)t.push(this.fromJSONData(e[i]));return t}var n=e;return this.fromJSONData(n)},e.prototype.validate=function(e){var t,i,r=this.predicates?this.predicates:[];if(!this.isComplex&&this.comparer)return this.condition&&-1!==this.condition.indexOf("not")?(this.condition=""===this.condition.split("not")[0]?void 0:this.condition.split("not")[0],!this.comparer.call(this,cr.getObject(this.field,e),this.value,this.ignoreCase,this.ignoreAccent)):this.comparer.call(this,cr.getObject(this.field,e),this.value,this.ignoreCase,this.ignoreAccent);i=this.condition&&-1!==this.condition.indexOf("not")?-1!==this.condition.indexOf("and"):"and"===this.condition;for(var n=0;n<r.length;n++)if(n>0&&this.condition&&-1!==this.condition.indexOf("not")&&(r[n].condition=r[n].condition?r[n].condition+"not":"not"),t=r[n].validate(e),i){if(!t)return!1}else if(t)return!0;return i},e.prototype.toJson=function(){var e,t;if(this.isComplex){e=[],t=this.predicates;for(var i=0;i<t.length;i++)e.push(t[i].toJson())}return{isComplex:this.isComplex,field:this.field,operator:this.operator,value:this.value,ignoreCase:this.ignoreCase,ignoreAccent:this.ignoreAccent,condition:this.condition,predicates:e,matchCase:this.matchCase}},e.combinePredicates=function(t,i){if(1===t.length){if(!(t[0]instanceof Array))return t[0];t=t[0]}return new e(t[0],i,t.slice(1))},e.combine=function(t,i,r,n,o,s,a){return i instanceof e?e[o](t,i):"string"==typeof i?e[o](t,new e(i,r,n,s,a)):cr.throwError("Predicate - "+o+" : invalid arguments")},e.fromJSONData=function(t){for(var i=t.predicates||[],r=i.length,n=[],o=0;o<r;o++)n.push(this.fromJSONData(i[o]));return t.isComplex?new e(n[0],t.condition,n.slice(1)):new e(t.field,t.operator,t.value,t.ignoreCase,t.ignoreAccent)},e}(),ar={GroupGuid:"{271bbba0-1ee7}"},cr=function(){function e(){}return e.getValue=function(e,t){return"function"==typeof e?e.call(t||{}):e},e.endsWith=function(e,t){return e.slice&&e.slice(-t.length)===t},e.notEndsWith=function(e,t){return e.slice&&e.slice(-t.length)!==t},e.startsWith=function(e,t){return e.slice(0,t.length)===t},e.notStartsWith=function(e,t){return e.slice(0,t.length)!==t},e.wildCard=function(e,t){var i,r;if(-1!==t.indexOf("[")&&(t=t.split("[").join("[[]")),-1!==t.indexOf("(")&&(t=t.split("(").join("[(]")),-1!==t.indexOf(")")&&(t=t.split(")").join("[)]")),-1!==t.indexOf("\\")&&(t=t.split("\\").join("[\\\\]")),-1!==t.indexOf("*")){"*"!==t.charAt(0)&&(t="^"+t),"*"!==t.charAt(t.length-1)&&(t+="$"),i=t.split("*");for(var n=0;n<i.length;n++)-1===i[n].indexOf(".")?i[n]=i[n]+".*":i[n]=i[n]+"*";t=i.join("")}return-1===t.indexOf("%3f")&&-1===t.indexOf("?")||(r=-1!==t.indexOf("%3f")?t.split("%3f"):t.split("?"),t=r.join(".")),new RegExp(t,"g").test(e)},e.like=function(t,i){return-1!==i.indexOf("%")&&("%"===i.charAt(0)&&i.lastIndexOf("%")<2?(i=i.substring(1,i.length),e.startsWith(e.toLowerCase(t),e.toLowerCase(i))):"%"===i.charAt(i.length-1)&&i.indexOf("%")>i.length-3?(i=i.substring(0,i.length-1),e.endsWith(e.toLowerCase(t),e.toLowerCase(i))):i.lastIndexOf("%")!==i.indexOf("%")&&i.lastIndexOf("%")>i.indexOf("%")+1?(i=i.substring(i.indexOf("%")+1,i.lastIndexOf("%")),-1!==t.indexOf(i)):-1!==t.indexOf(i))},e.fnSort=function(t){return"ascending"===(t=t?e.toLowerCase(t):"ascending")?this.fnAscending:this.fnDescending},e.fnAscending=function(e,t){return He(e)&&He(t)||null==t?-1:"string"==typeof e?e.localeCompare(t):null==e?1:e-t},e.fnDescending=function(e,t){return He(e)&&He(t)?-1:null==t?1:"string"==typeof e?-1*e.localeCompare(t):null==e?-1:t-e},e.extractFields=function(e,t){for(var i={},r=0;r<t.length;r++)i=this.setValue(t[r],this.getObject(t[r],e),i);return i},e.select=function(e,t){for(var i=[],r=0;r<e.length;r++)i.push(this.extractFields(e[r],t));return i},e.group=function(t,i,r,n,o,s,a){n=n||1;var c=t,h="GroupGuid";if(c.GroupGuid===ar[h]){for(var u=function(e){if(He(o))c[e].items=l.group(c[e].items,i,r,c.level+1,null,s,a),c[e].count=c[e].items.length;else{var t,n=o.filter(function(t){return t.key===c[e].key});t=o.indexOf(n[0]),c[e].items=l.group(c[e].items,i,r,c.level+1,o[t].items,s,a),c[e].count=o[t].count}},l=this,p=0;p<c.length;p++)u(p);return c.childLevels+=1,c}var d={},g=[];g.GroupGuid=ar[h],g.level=n,g.childLevels=0,g.records=c;for(var f=function(e){var t=M.getVal(c,e,i);if(He(s)||(t=s(t,i)),!d[t]&&(d[t]={key:t,count:0,items:[],aggregates:{},field:i},g.push(d[t]),!He(o))){var n=o.filter(function(e){return e.key===d[t].key});d[t].count=n[0].count}d[t].count=He(o)?d[t].count+=1:d[t].count,(!a||a&&r.length)&&d[t].items.push(c[e])},M=this,y=0;y<c.length;y++)f(y);if(r&&r.length){var m=function(t){for(var i={},n=void 0,s=r,a=0;a<r.length;a++)if(n=e.aggregates[r[a].type],He(o))n&&(i[s[a].field+" - "+s[a].type]=n(g[t].items,s[a].field));else{var c=o.filter(function(e){return e.key===g[t].key});n&&(i[s[a].field+" - "+s[a].type]=n(c[0].items,s[a].field))}g[t].aggregates=i};for(y=0;y<g.length;y++)m(y)}if(a&&g.length&&r.length)for(y=0;y<g.length;y++)g[y].items=[];return c.length&&g||c},e.buildHierarchy=function(e,t,i,r,n){var o,s={};for(r.result&&(r=r.result),r.GroupGuid&&this.throwError("DataManager: Do not have support Grouping in hierarchy"),o=0;o<r.length;o++){(s[a=this.getObject(e,r[o])]||(s[a]=[])).push(r[o])}for(o=0;o<i.length;o++){var a=this.getObject(n||e,i[o]);i[o][t]=s[a]}},e.getFieldList=function(e,t,i){if(void 0===i&&(i=""),null==t)return this.getFieldList(e,[],i);for(var r=e,n=0,o=Object.keys(e);n<o.length;n++){var s=o[n];"object"!=typeof r[s]||r[s]instanceof Array?t.push(i+s):this.getFieldList(r[s],t,i+s+".")}return t},e.getObject=function(e,t){if(!e)return t;if(t){if(-1===e.indexOf(".")){var i=e.charAt(0).toLowerCase()+e.slice(1),r=e.charAt(0).toUpperCase()+e.slice(1);return He(t[e])?He(t[i])?He(t[r])?null:t[r]:t[i]:t[e]}for(var n=t,o=e.split("."),s=0;s<o.length&&null!=n;s++){if(void 0===(n=n[o[s]])){var a=o[s].charAt(0).toUpperCase()+o[s].slice(1);n=t[a]||t[a.charAt(0).toLowerCase()+a.slice(1)]||null}t=n}return n}},e.setValue=function(e,t,i){var r,n,o=e.toString().split("."),s=i||{},a=s,c=o.length;for(r=0;r<c;r++)n=o[r],r+1===c?a[n]=void 0===t?void 0:t:He(a[n])&&(a[n]={}),a=a[n];return s},e.sort=function(e,t,i){if(e.length<=1)return e;var r=parseInt((e.length/2).toString(),10),n=e.slice(0,r),o=e.slice(r);return n=this.sort(n,t,i),o=this.sort(o,t,i),this.merge(n,o,t,i)},e.ignoreDiacritics=function(t){return"string"!=typeof t?t:t.split("").map(function(t){return t in e.diacritics?e.diacritics[t]:t}).join("")},e.merge=function(e,t,i,r){for(var n,o=[];e.length>0||t.length>0;)n=e.length>0&&t.length>0?r?r(this.getVal(e,0,i),this.getVal(t,0,i),e[0],t[0])<=0?e:t:e[0][i]<e[0][i]?e:t:e.length>0?e:t,o.push(n.shift());return o},e.getVal=function(e,t,i){return i?this.getObject(i,e[t]):e[t]},e.toLowerCase=function(e){return e?"string"==typeof e?e.toLowerCase():e.toString():0===e||!1===e?e.toString():""},e.callAdaptorFunction=function(e,t,i,r){if(t in e){var n=e[t](i,r);He(n)||(i=n)}return i},e.getAddParams=function(t,i,r){var n={};return e.callAdaptorFunction(t,"addParams",{dm:i,query:r,params:r.params,reqParams:n}),n},e.isPlainObject=function(e){return!!e&&e.constructor===Object},e.isCors=function(){var e=null;try{e=new window.XMLHttpRequest}catch(e){}return!!e&&"withCredentials"in e},e.getGuid=function(e){var t;return(e||"")+"00000000-0000-4000-0000-000000000000".replace(/0/g,function(e,i){if("crypto"in window&&"getRandomValues"in crypto){var r=new Uint8Array(1);window.crypto.getRandomValues(r),t=r[0]%16|0}else t=16*Math.random()|0;return"0123456789abcdef"[19===i?3&t|8:t]})},e.isNull=function(e){return null==e},e.getItemFromComparer=function(t,i,r){var n,o,s,a=0,c="string"==typeof e.getVal(t,0,i);if(t.length)for(;He(n)&&a<t.length;)n=e.getVal(t,a,i),s=t[a++];for(;a<t.length;a++)He(o=e.getVal(t,a,i))||(c&&(n=+n,o=+o),r(n,o)>0&&(n=o,s=t[a]));return s},e.distinct=function(t,i,r){r=!He(r)&&r;var n,o=[],s={};return t.forEach(function(a,c){(n="object"==typeof t[c]?e.getVal(t,c,i):t[c])in s||(o.push(r?t[c]:n),s[n]=1)}),o},e.processData=function(e,t){var i=this.prepareQuery(e),r=new mr(t);e.requiresCounts&&i.requiresCount();var n=r.executeLocal(i),o={result:e.requiresCounts?n.result:n,count:n.count,aggregates:JSON.stringify(n.aggregates)};return e.requiresCounts?o:n},e.prepareQuery=function(t){var i=this,r=new or;(t.select&&r.select(t.select),t.where)&&e.parse.parseJson(t.where).filter(function(e){if(He(e.condition))r.where(e.field,e.operator,e.value,e.ignoreCase,e.ignoreAccent);else{var t=[];e.field?t.push(new sr(e.field,e.operator,e.value,e.ignoreCase,e.ignoreAccent)):t=t.concat(i.getPredicate(e.predicates)),"or"===e.condition?r.where(sr.or(t)):"and"===e.condition&&r.where(sr.and(t))}});t.search&&e.parse.parseJson(t.search).filter(function(e){return r.search(e.key,e.fields,e.operator,e.ignoreCase,e.ignoreAccent)});return t.aggregates&&t.aggregates.filter(function(e){return r.aggregate(e.type,e.field)}),t.sorted&&t.sorted.filter(function(e){return r.sortBy(e.name,e.direction)}),t.skip&&r.skip(t.skip),t.take&&r.take(t.take),t.group&&t.group.filter(function(e){return r.group(e)}),r},e.getPredicate=function(e){for(var t=[],i=0;i<e.length;i++){var r=e[i];if(r.field)t.push(new sr(r.field,r.operator,r.value,r.ignoreCase,r.ignoreAccent));else{for(var n=[],o=this.getPredicate(r.predicates),s=0,a=Object.keys(o);s<a.length;s++){var c=a[s];n.push(o[c])}t.push("or"===r.condition?sr.or(n):sr.and(n))}}return t},e.serverTimezoneOffset=null,e.timeZoneHandling=!0,e.throwError=function(e){try{throw new Error(e)}catch(e){throw e.message+"\n"+e.stack}},e.aggregates={sum:function(t,i){for(var r,n=0,o="number"!=typeof e.getVal(t,0,i),s=0;s<t.length;s++)r=e.getVal(t,s,i),isNaN(r)||null===r||(o&&(r=+r),n+=r);return n},average:function(t,i){return e.aggregates.sum(t,i)/t.length},min:function(t,i){var r;return"function"==typeof i&&(r=i,i=null),e.getObject(i,e.getItemFromComparer(t,i,r||e.fnAscending))},max:function(t,i){var r;return"function"==typeof i&&(r=i,i=null),e.getObject(i,e.getItemFromComparer(t,i,r||e.fnDescending))},truecount:function(e,t){return new mr(e).executeLocal((new or).where(t,"equal",!0,!0)).length},falsecount:function(e,t){return new mr(e).executeLocal((new or).where(t,"equal",!1,!0)).length},count:function(e,t){return e.length}},e.operatorSymbols={"<":"lessthan",">":"greaterthan","<=":"lessthanorequal",">=":"greaterthanorequal","==":"equal","!=":"notequal","*=":"contains","$=":"endswith","^=":"startswith"},e.odBiOperator={"<":" lt ",">":" gt ","<=":" le ",">=":" ge ","==":" eq ","!=":" ne ",lessthan:" lt ",lessthanorequal:" le ",greaterthan:" gt ",greaterthanorequal:" ge ",equal:" eq ",notequal:" ne "},e.odUniOperator={"$=":"endswith","^=":"startswith","*=":"substringof",endswith:"endswith",startswith:"startswith",contains:"substringof",doesnotendwith:"not endswith",doesnotstartwith:"not startswith",doesnotcontain:"not substringof",wildcard:"wildcard",like:"like"},e.odv4UniOperator={"$=":"endswith","^=":"startswith","*=":"contains",endswith:"endswith",startswith:"startswith",contains:"contains",doesnotendwith:"not endswith",doesnotstartwith:"not startswith",doesnotcontain:"not contains",wildcard:"wildcard",like:"like"},e.diacritics={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":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Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},e.fnOperators={equal:function(t,i,r,n){return n&&(t=e.ignoreDiacritics(t),i=e.ignoreDiacritics(i)),r?e.toLowerCase(t)===e.toLowerCase(i):t===i},notequal:function(t,i,r,n){return n&&(t=e.ignoreDiacritics(t),i=e.ignoreDiacritics(i)),!e.fnOperators.equal(t,i,r)},lessthan:function(t,i,r){return r?e.toLowerCase(t)<e.toLowerCase(i):(He(t)&&(t=void 0),t<i)},greaterthan:function(t,i,r){return r?e.toLowerCase(t)>e.toLowerCase(i):t>i},lessthanorequal:function(t,i,r){return r?e.toLowerCase(t)<=e.toLowerCase(i):(He(t)&&(t=void 0),t<=i)},greaterthanorequal:function(t,i,r){return r?e.toLowerCase(t)>=e.toLowerCase(i):t>=i},contains:function(t,i,r,n){return n&&(t=e.ignoreDiacritics(t),i=e.ignoreDiacritics(i)),r?!He(t)&&!He(i)&&-1!==e.toLowerCase(t).indexOf(e.toLowerCase(i)):!He(t)&&!He(i)&&-1!==t.toString().indexOf(i)},doesnotcontain:function(t,i,r,n){return n&&(t=e.ignoreDiacritics(t),i=e.ignoreDiacritics(i)),r?!He(t)&&!He(i)&&-1===e.toLowerCase(t).indexOf(e.toLowerCase(i)):!He(t)&&!He(i)&&-1===t.toString().indexOf(i)},isnotnull:function(e){return null!=e},isnull:function(e){return null==e},startswith:function(t,i,r,n){return n&&(t=e.ignoreDiacritics(t),i=e.ignoreDiacritics(i)),r?t&&i&&e.startsWith(e.toLowerCase(t),e.toLowerCase(i)):t&&i&&e.startsWith(t,i)},doesnotstartwith:function(t,i,r,n){return n&&(t=e.ignoreDiacritics(t),i=e.ignoreDiacritics(i)),r?t&&i&&e.notStartsWith(e.toLowerCase(t),e.toLowerCase(i)):t&&i&&e.notStartsWith(t,i)},like:function(t,i,r,n){return n&&(t=e.ignoreDiacritics(t),i=e.ignoreDiacritics(i)),r?t&&i&&e.like(e.toLowerCase(t),e.toLowerCase(i)):t&&i&&e.like(t,i)},isempty:function(e){return void 0===e||""===e},isnotempty:function(e){return void 0!==e&&""!==e},wildcard:function(t,i,r,n){return n&&(t=e.ignoreDiacritics(t),i=e.ignoreDiacritics(i)),r?(t||"boolean"==typeof t)&&i&&"object"!=typeof t&&e.wildCard(e.toLowerCase(t),e.toLowerCase(i)):(t||"boolean"==typeof t)&&i&&e.wildCard(t,i)},endswith:function(t,i,r,n){return n&&(t=e.ignoreDiacritics(t),i=e.ignoreDiacritics(i)),r?t&&i&&e.endsWith(e.toLowerCase(t),e.toLowerCase(i)):t&&i&&e.endsWith(t,i)},doesnotendwith:function(t,i,r,n){return n&&(t=e.ignoreDiacritics(t),i=e.ignoreDiacritics(i)),r?t&&i&&e.notEndsWith(e.toLowerCase(t),e.toLowerCase(i)):t&&i&&e.notEndsWith(t,i)},processSymbols:function(t){var i=e.operatorSymbols[t];return i?e.fnOperators[i]:e.throwError("Query - Process Operator : Invalid operator")},processOperator:function(t){var i=e.fnOperators[t];return i||e.fnOperators.processSymbols(t)}},e.parse={parseJson:function(t){return"string"!=typeof t||!/^[\s]*\[|^[\s]*\{(.)+:/g.test(t)&&-1!==t.indexOf('"')?t instanceof Array?e.parse.iterateAndReviveArray(t):"object"==typeof t&&null!==t&&e.parse.iterateAndReviveJson(t):t=JSON.parse(t,e.parse.jsonReviver),t},iterateAndReviveArray:function(t){for(var i=0;i<t.length;i++)"object"==typeof t[i]&&null!==t[i]?e.parse.iterateAndReviveJson(t[i]):"string"!=typeof t[i]||/^[\s]*\[|^[\s]*\{(.)+:|\"/g.test(t[i])&&-1!==t[i].toString().indexOf('"')?t[i]=e.parse.parseJson(t[i]):t[i]=e.parse.jsonReviver("",t[i])},iterateAndReviveJson:function(t){for(var i,r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];e.startsWith(o,"__")||("object"==typeof(i=t[o])?i instanceof Array?e.parse.iterateAndReviveArray(i):i&&e.parse.iterateAndReviveJson(i):t[o]=e.parse.jsonReviver(t[o],i))}},jsonReviver:function(t,i){if("string"==typeof i){var r=/^\/Date\(([+-]?[0-9]+)([+-][0-9]{4})?\)\/$/.exec(i),n=e.timeZoneHandling?e.serverTimezoneOffset:null;if(r)return e.dateParse.toTimeZone(new Date(parseInt(r[1],10)),n,!0);if(/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*){1})([zZ]|([+\-])(\d\d):?(\d\d))?$/.test(i)){var o=i.indexOf("Z")>-1||i.indexOf("z")>-1,s=i.split(/[^0-9.]/);if(o){if(s[5].indexOf(".")>-1){var a=s[5].split(".");s[5]=a[0],s[6]=new Date(i).getUTCMilliseconds().toString()}else s[6]="00";i=e.dateParse.toTimeZone(new Date(parseInt(s[0],10),parseInt(s[1],10)-1,parseInt(s[2],10),parseInt(s[3],10),parseInt(s[4],10),parseInt(s[5]?s[5]:"00",10),parseInt(s[6],10)),e.serverTimezoneOffset,!1)}else{var c=new Date(parseInt(s[0],10),parseInt(s[1],10)-1,parseInt(s[2],10),parseInt(s[3],10),parseInt(s[4],10),parseInt(s[5]?s[5]:"00",10)),h=parseInt(s[6],10),u=parseInt(s[7],10);if(isNaN(h)&&isNaN(u))return c;i.indexOf("+")>-1?c.setHours(c.getHours()-h,c.getMinutes()-u):c.setHours(c.getHours()+h,c.getMinutes()+u),i=e.dateParse.toTimeZone(c,e.serverTimezoneOffset,!1)}null==e.serverTimezoneOffset&&(i=e.dateParse.addSelfOffset(i))}}return i},isJson:function(t){return"string"==typeof t[0]?t:e.parse.parseJson(t)},isGuid:function(e){return null!=/[A-Fa-f0-9]{8}(?:-[A-Fa-f0-9]{4}){3}-[A-Fa-f0-9]{12}/i.exec(e)},replacer:function(t,i){return e.isPlainObject(t)?e.parse.jsonReplacer(t,i):t instanceof Array?e.parse.arrayReplacer(t):t instanceof Date?e.parse.jsonReplacer({val:t},i).val:t},jsonReplacer:function(t,i){for(var r,n=0,o=Object.keys(t);n<o.length;n++){var s=o[n];if((r=t[s])instanceof Date){var a=r;null==e.serverTimezoneOffset?t[s]=e.dateParse.toTimeZone(a,null).toJSON():(a=new Date(+a+36e5*e.serverTimezoneOffset),t[s]=e.dateParse.toTimeZone(e.dateParse.addSelfOffset(a),null).toJSON())}}return t},arrayReplacer:function(t){for(var i=0;i<t.length;i++)e.isPlainObject(t[i])?t[i]=e.parse.jsonReplacer(t[i]):t[i]instanceof Date&&(t[i]=e.parse.jsonReplacer({date:t[i]}).date);return t},jsonDateReplacer:function(t,i){if("value"===t&&i){if("string"==typeof i){var r=/^\/Date\(([+-]?[0-9]+)([+-][0-9]{4})?\)\/$/.exec(i);if(r)i=e.dateParse.toTimeZone(new Date(parseInt(r[1],10)),null,!0);else if(/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*){1})([zZ]|([+\-])(\d\d):?(\d\d))?$/.test(i)){var n=i.split(/[^0-9]/);i=e.dateParse.toTimeZone(new Date(parseInt(n[0],10),parseInt(n[1],10)-1,parseInt(n[2],10),parseInt(n[3],10),parseInt(n[4],10),parseInt(n[5],10)),null,!0)}}if(i instanceof Date)return i=e.dateParse.addSelfOffset(i),null===e.serverTimezoneOffset?e.dateParse.toTimeZone(e.dateParse.addSelfOffset(i),null).toJSON():(i=e.dateParse.toTimeZone(i,i.getTimezoneOffset()/60-e.serverTimezoneOffset,!1)).toJSON()}return i}},e.dateParse={addSelfOffset:function(e){return new Date(+e-6e4*e.getTimezoneOffset())},toUTC:function(e){return new Date(+e+6e4*e.getTimezoneOffset())},toTimeZone:function(t,i,r){if(null===i)return t;var n=r?e.dateParse.toUTC(t):t;return new Date(+n-36e5*i)},toLocalTime:function(e){var t=e,i=-t.getTimezoneOffset(),r=i>=0?"+":"-",n=function(e){var t=Math.floor(Math.abs(e));return(t<10?"0":"")+t};return t.getFullYear()+"-"+n(t.getMonth()+1)+"-"+n(t.getDate())+"T"+n(t.getHours())+":"+n(t.getMinutes())+":"+n(t.getSeconds())+r+n(i/60)+":"+n(i%60)}},e}(),hr=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),ur={GroupGuid:"{271bbba0-1ee7}"},lr=function(){function e(t){this.options={from:"table",requestType:"json",sortBy:"sorted",select:"select",skip:"skip",group:"group",take:"take",search:"search",count:"requiresCounts",where:"where",aggregates:"aggregates",expand:"expand"},this.type=e,this.dataSource=t,this.pvt={}}return e.prototype.processResponse=function(e,t,i,r){return e},e}(),pr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hr(t,e),t.prototype.processQuery=function(e,t){for(var i,r,n,o=e.dataSource.json.slice(0),s=o.length,a=!0,c={},h=0,u=[],l=0;l<t.lazyLoad.length;l++)h++,c[t.lazyLoad[l].key]=t.lazyLoad[l].value;var p={};for(l=0;l<t.queries.length;l++)"onPage"!==(r=t.queries[l]).fn&&"onGroup"!==r.fn||!t.lazyLoad.length?(i=this[r.fn].call(this,o,r.e,t),"onAggregates"===r.fn?p[r.e.field+" - "+r.e.type]=i:o=void 0!==i?i:o,"onPage"!==r.fn&&"onSkip"!==r.fn&&"onTake"!==r.fn&&"onRange"!==r.fn||(a=!1),a&&(s=o.length)):("onGroup"===r.fn&&u.push(r.e),"onPage"===r.fn&&(n=r.e));if(h){var d={query:t,lazyLoad:c,result:o,group:u,page:n},g=this.lazyLoadGroup(d);o=g.result,s=g.count}return t.isCountRequired&&(o={result:o,count:s,aggregates:p}),o},t.prototype.lazyLoadGroup=function(e){var t=0,i=this.getAggregate(e.query),r=e.result;if(He(e.lazyLoad.onDemandGroupInfo)){s=e.group[0].fieldName;t=(r=cr.group(r,s,i,null,null,e.group[0].comparer,!0)).length;a=r;e.page&&(r=this.onPage(r,e.page,e.query)),this.formGroupResult(r,a)}else{for(var n=e.lazyLoad.onDemandGroupInfo,o=n.where.length-1;o>=0;o--)r=this.onWhere(r,n.where[o]);if(e.group.length!==n.level){var s=e.group[n.level].fieldName;r=cr.group(r,s,i,null,null,e.group[0].comparer,!0)}t=r.length;var a=r;r=(r=r.slice(n.skip)).slice(0,n.take),e.group.length!==n.level&&this.formGroupResult(r,a)}return{result:r,count:t}},t.prototype.formGroupResult=function(e,t){if(e.length&&t.length){var i="GroupGuid",r="childLevels",n="level",o="records";e[i]=t[i],e[r]=t[r],e[n]=t[n],e[o]=t[o]}return e},t.prototype.getAggregate=function(e){var t=or.filterQueries(e.queries,"onAggregates"),i=[];if(t.length)for(var r=void 0,n=0;n<t.length;n++)r=t[n].e,i.push({type:r.type,field:cr.getValue(r.field,e)});return i},t.prototype.batchRequest=function(e,t,i){var r,n=t.deletedRecords.length;for(r=0;r<t.addedRecords.length;r++)this.insert(e,t.addedRecords[r]);for(r=0;r<t.changedRecords.length;r++)this.update(e,i.key,t.changedRecords[r]);for(r=0;r<n;r++)this.remove(e,i.key,t.deletedRecords[r]);return t},t.prototype.onWhere=function(e,t){return e&&e.length?e.filter(function(e){if(t)return t.validate(e)}):e},t.prototype.onAggregates=function(e,t){var i=cr.aggregates[t.type];return e&&i&&0!==e.length?i(e,t.field):null},t.prototype.onSearch=function(e,t){return e&&e.length?(0===t.fieldNames.length&&cr.getFieldList(e[0],t.fieldNames),e.filter(function(e){for(var i=0;i<t.fieldNames.length;i++)if(t.comparer.call(e,cr.getObject(t.fieldNames[i],e),t.searchKey,t.ignoreCase,t.ignoreAccent))return!0;return!1})):e},t.prototype.onSortBy=function(e,t,i){if(!e||!e.length)return e;var r,n=cr.getValue(t.fieldName,i);if(!n)return e.sort(t.comparer);if(n instanceof Array){for(var o=(n=n.slice(0)).length-1;o>=0;o--)n[o]&&(r=t.comparer,cr.endsWith(n[o]," desc")&&(r=cr.fnSort("descending"),n[o]=n[o].replace(" desc","")),e=cr.sort(e,n[o],r));return e}return cr.sort(e,n,t.comparer)},t.prototype.onGroup=function(e,t,i){if(!e||!e.length)return e;var r=this.getAggregate(i);return cr.group(e,cr.getValue(t.fieldName,i),r,null,null,t.comparer)},t.prototype.onPage=function(e,t,i){var r=cr.getValue(t.pageSize,i),n=(cr.getValue(t.pageIndex,i)-1)*r,o=n+r;return e&&e.length?e.slice(n,o):e},t.prototype.onRange=function(e,t){return e&&e.length?e.slice(cr.getValue(t.start),cr.getValue(t.end)):e},t.prototype.onTake=function(e,t){return e&&e.length?e.slice(0,cr.getValue(t.nos)):e},t.prototype.onSkip=function(e,t){return e&&e.length?e.slice(cr.getValue(t.nos)):e},t.prototype.onSelect=function(e,t){return e&&e.length?cr.select(e,cr.getValue(t.fieldNames)):e},t.prototype.insert=function(e,t,i,r,n){return He(n)?e.dataSource.json.push(t):e.dataSource.json.splice(n,0,t)},t.prototype.remove=function(e,t,i,r){var n,o=e.dataSource.json;for("object"!=typeof i||i instanceof Date||(i=cr.getObject(t,i)),n=0;n<o.length&&cr.getObject(t,o[n])!==i;n++);return n!==o.length?o.splice(n,1):null},t.prototype.update=function(e,t,i,r){var n,o,s=e.dataSource.json;for(He(t)||(o=Ye(t,i)),n=0;n<s.length&&(He(t)||Ye(t,s[n])!==o);n++);return n<s.length?We(s[n],i):null},t}(lr),dr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hr(t,e),t.prototype.processQuery=function(e,t,i){var r,n,o=this.getQueryRequest(t),s=or.filterQueryLists(t.queries,["onSelect","onPage","onSkip","onTake","onRange"]),a=t.params,c=e.dataSource.url,h=null,u=this.options,l={sorts:[],groups:[],filters:[],searches:[],aggregates:[]};"onPage"in s?(r=s.onPage,n=((n=cr.getValue(r.pageIndex,t))-1)*(h=cr.getValue(r.pageSize,t))):"onRange"in s&&(n=(r=s.onRange).start,h=r.end-r.start);for(var p=0;p<o.sorts.length;p++)r=cr.getValue(o.sorts[p].e.fieldName,t),l.sorts.push(cr.callAdaptorFunction(this,"onEachSort",{name:r,direction:o.sorts[p].e.direction},t));i&&(r=this.getFiltersFrom(i,t))&&l.filters.push(cr.callAdaptorFunction(this,"onEachWhere",r.toJson(),t));for(p=0;p<o.filters.length;p++){var d=cr.callAdaptorFunction(this,"onEachWhere",o.filters[p].e.toJson(),t);this.getModuleName&&"ODataV4Adaptor"===this.getModuleName()&&!He(o.filters[p].e.key)&&o.filters.length>1&&(d="("+d+")"),l.filters.push(d);for(var g=0,f="object"==typeof l.filters[p]?Object.keys(l.filters[p]):[];g<f.length;g++){var M=f[g];cr.isNull(l[M])&&delete l[M]}}for(p=0;p<o.searches.length;p++)r=o.searches[p].e,l.searches.push(cr.callAdaptorFunction(this,"onEachSearch",{fields:r.fieldNames,operator:r.operator,key:r.searchKey,ignoreCase:r.ignoreCase},t));for(p=0;p<o.groups.length;p++)l.groups.push(cr.getValue(o.groups[p].e.fieldName,t));for(p=0;p<o.aggregates.length;p++)r=o.aggregates[p].e,l.aggregates.push({type:r.type,field:cr.getValue(r.field,t)});var y={};if(this.getRequestQuery(u,t,s,l,y),cr.callAdaptorFunction(this,"addParams",{dm:e,query:t,params:a,reqParams:y}),t.lazyLoad.length)for(p=0;p<t.lazyLoad.length;p++)y[t.lazyLoad[p].key]=t.lazyLoad[p].value;for(var m=0,N=Object.keys(y);m<N.length;m++){M=N[m];(cr.isNull(y[M])||""===y[M]||0===y[M].length)&&delete y[M]}u.skip in y&&u.take in y||null===h||(y[u.skip]=cr.callAdaptorFunction(this,"onSkip",n,t),y[u.take]=cr.callAdaptorFunction(this,"onTake",h,t));var j=this.pvt;return this.pvt={},"json"===this.options.requestType?{data:JSON.stringify(y,cr.parse.jsonDateReplacer),url:c,pvtData:j,type:"POST",contentType:"application/json; charset=utf-8"}:(r=this.convertToQueryString(y,t,e),{type:"GET",url:(r=(-1!==e.dataSource.url.indexOf("?")?"&":"/")+r).length?c.replace(/\/*$/,r):c,pvtData:j})},t.prototype.getRequestQuery=function(e,t,i,r,n){var o=n;o[e.from]=t.fromTable,e.apply&&t.distincts.length&&(o[e.apply]="onDistinct"in this?cr.callAdaptorFunction(this,"onDistinct",t.distincts):""),!t.distincts.length&&e.expand&&(o[e.expand]="onExpand"in this&&"onSelect"in i?cr.callAdaptorFunction(this,"onExpand",{selects:cr.getValue(i.onSelect.fieldNames,t),expands:t.expands},t):t.expands),o[e.select]="onSelect"in i&&!t.distincts.length?cr.callAdaptorFunction(this,"onSelect",cr.getValue(i.onSelect.fieldNames,t),t):"",o[e.count]=t.isCountRequired?cr.callAdaptorFunction(this,"onCount",t.isCountRequired,t):"",o[e.search]=r.searches.length?cr.callAdaptorFunction(this,"onSearch",r.searches,t):"",o[e.skip]="onSkip"in i?cr.callAdaptorFunction(this,"onSkip",cr.getValue(i.onSkip.nos,t),t):"",o[e.take]="onTake"in i?cr.callAdaptorFunction(this,"onTake",cr.getValue(i.onTake.nos,t),t):"",o[e.where]=r.filters.length||r.searches.length?cr.callAdaptorFunction(this,"onWhere",r.filters,t):"",o[e.sortBy]=r.sorts.length?cr.callAdaptorFunction(this,"onSortBy",r.sorts,t):"",o[e.group]=r.groups.length?cr.callAdaptorFunction(this,"onGroup",r.groups,t):"",o[e.aggregates]=r.aggregates.length?cr.callAdaptorFunction(this,"onAggregates",r.aggregates,t):"",o.param=[]},t.prototype.convertToQueryString=function(e,t,i){return""},t.prototype.processResponse=function(e,t,i,r,n,o){if(r&&r.headers.get("Content-Type")&&-1!==r.headers.get("Content-Type").indexOf("application/json")){var s=cr.timeZoneHandling;t&&!t.timeZoneHandling&&(cr.timeZoneHandling=!1),e=cr.parse.parseJson(e),cr.timeZoneHandling=s}var a=n,c=a.pvtData||{},h=e?e.groupDs:[];if(r&&r.headers.get("Content-Type")&&-1!==r.headers.get("Content-Type").indexOf("xml"))return i.isCountRequired?{result:[],count:0}:[];var u=JSON.parse(a.data);if(u&&"batch"===u.action&&e&&e.addedRecords)return o.addedRecords=e.addedRecords,o;e&&e.d&&(e=e.d);var l={};e&&"count"in e&&(l.count=e.count),l.result=e&&e.result?e.result:e;var p=!1;if(Array.isArray(e.result)&&e.result.length){if(He(e.result[0].key)||(l.result=this.formRemoteGroupedData(l.result,1,c.groups.length-1)),i&&i.lazyLoad.length&&c.groups.length)for(var d=0;d<i.lazyLoad.length;d++)if("onDemandGroupInfo"===i.lazyLoad[d].key){var g=i.lazyLoad[d].value.level;c.groups.length===g&&(p=!0)}}return p||this.getAggregateResult(c,e,l,h,i),cr.isNull(l.count)?l.result:{result:l.result,count:l.count,aggregates:l.aggregates}},t.prototype.formRemoteGroupedData=function(e,t,i){for(var r=0;r<e.length;r++)e[r].items.length&&Object.keys(e[r].items[0]).indexOf("key")>-1&&this.formRemoteGroupedData(e[r].items,t+1,i-1);var n="GroupGuid",o="records";return e[n]=ur[n],e.level=t,e.childLevels=i,e[o]=e[0].items.length?this.getGroupedRecords(e,!He(e[0].items[o])):[],e},t.prototype.getGroupedRecords=function(e,t){for(var i=[],r=0;r<e.length;r++)if(t)i=i.concat(e[r].items.records);else for(var n=0;n<e[r].items.length;n++)i.push(e[r].items[n]);return i},t.prototype.onGroup=function(e){return this.pvt.groups=e,e},t.prototype.onAggregates=function(e){this.pvt.aggregates=e},t.prototype.batchRequest=function(e,t,i,r,n){return{type:"POST",url:e.dataSource.batchUrl||e.dataSource.crudUrl||e.dataSource.removeUrl||e.dataSource.url,contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(Ge({},{changed:t.changedRecords,added:t.addedRecords,deleted:t.deletedRecords,action:"batch",table:i[void 0],key:i[void 0]},cr.getAddParams(this,e,r)))}},t.prototype.beforeSend=function(e,t){},t.prototype.insert=function(e,t,i,r){return{url:e.dataSource.insertUrl||e.dataSource.crudUrl||e.dataSource.url,data:JSON.stringify(Ge({},{value:t,table:i,action:"insert"},cr.getAddParams(this,e,r)))}},t.prototype.remove=function(e,t,i,r,n){return{type:"POST",url:e.dataSource.removeUrl||e.dataSource.crudUrl||e.dataSource.url,data:JSON.stringify(Ge({},{key:i,keyColumn:t,table:r,action:"remove"},cr.getAddParams(this,e,n)))}},t.prototype.update=function(e,t,i,r,n){return{type:"POST",url:e.dataSource.updateUrl||e.dataSource.crudUrl||e.dataSource.url,data:JSON.stringify(Ge({},{value:i,action:"update",keyColumn:t,key:cr.getObject(t,i),table:r},cr.getAddParams(this,e,n)))}},t.prototype.getFiltersFrom=function(e,t){var i,r=t.fKey,n=r,o=t.key,s=[];"object"!=typeof e[0]&&(n=null);for(var a=0;a<e.length;a++)i="object"==typeof e[0]?cr.getObject(o||n,e[a]):e[a],s.push(new sr(r,"equal",i));return sr.or(s)},t.prototype.getAggregateResult=function(e,t,i,r,n){var o=t;if(t&&t.result&&(o=t.result),e&&e.aggregates&&e.aggregates.length){var s=e.aggregates,a=void 0,c=o,h={};t.aggregate&&(c=t.aggregate);for(var u=0;u<s.length;u++)(a=cr.aggregates[s[u].type])&&(h[s[u].field+" - "+s[u].type]=a(c,s[u].field));i.aggregates=h}var l=Array.isArray(t.result)&&t.result.length&&!He(t.result[0].key);if(e&&e.groups&&e.groups.length&&!l){var p=e.groups;for(u=0;u<p.length;u++){He(r)||(r=cr.group(r,p[u]));var d=or.filterQueries(n.queries,"onGroup")[u].e;o=cr.group(o,p[u],e.aggregates,null,r,d.comparer)}i.result=o}return i},t.prototype.getQueryRequest=function(e){var t={sorts:[],groups:[],filters:[],searches:[],aggregates:[]};return t.sorts=or.filterQueries(e.queries,"onSortBy"),t.groups=or.filterQueries(e.queries,"onGroup"),t.filters=or.filterQueries(e.queries,"onWhere"),t.searches=or.filterQueries(e.queries,"onSearch"),t.aggregates=or.filterQueries(e.queries,"onAggregates"),t},t.prototype.addParams=function(e){var t=e.reqParams;e.params.length&&(t.params={});for(var i=0,r=e.params;i<r.length;i++){var n=r[i];if(t[n.key])throw new Error("Query() - addParams: Custom Param is conflicting other request arguments");t[n.key]=n.value,n.fn&&(t[n.key]=n.fn.call(e.query,n.key,e.query,e.dm)),t.params[n.key]=t[n.key]}},t}(lr),gr=function(e){function t(t){var i=e.call(this)||this;return i.options=Ge({},i.options,{requestType:"get",accept:"application/json;odata=light;q=1,application/json;odata=verbose;q=0.5",multipartAccept:"multipart/mixed",sortBy:"$orderby",select:"$select",skip:"$skip",take:"$top",count:"$inlinecount",where:"$filter",expand:"$expand",batch:"$batch",changeSet:"--changeset_",batchPre:"batch_",contentId:"Content-Id: ",batchContent:"Content-Type: multipart/mixed; boundary=",changeSetContent:"Content-Type: application/http\nContent-Transfer-Encoding: binary ",batchChangeSetContentType:"Content-Type: application/json; charset=utf-8 ",updateType:"PUT"}),Ge(i.options,t||{}),i}return hr(t,e),t.prototype.getModuleName=function(){return"ODataAdaptor"},t.prototype.onPredicate=function(e,i,r){var n,o,s="",a=e.value,c=typeof a,h=e.field?t.getField(e.field):null;if(a instanceof Date&&(a="datetime'"+cr.parse.replacer(a)+"'"),"string"===c&&(a=a.replace(/'/g,"''"),e.ignoreCase&&(a=a.toLowerCase()),"like"!==e.operator&&(a=encodeURIComponent(a)),"wildcard"!==e.operator&&"like"!==e.operator&&(a="'"+a+"'"),r&&(h="cast("+h+", 'Edm.String')"),cr.parse.isGuid(a)&&(o="guid"),e.ignoreCase&&(o||(h="tolower("+h+")"),a=a.toLowerCase())),"isempty"===e.operator||"isnull"===e.operator||"isnotempty"===e.operator||"isnotnull"===e.operator?(n=-1!==e.operator.indexOf("isnot")?cr.odBiOperator.notequal:cr.odBiOperator.equal,a="isnull"===e.operator||"isnotnull"===e.operator?null:"''"):n=cr.odBiOperator[e.operator],n)return s+=h,s+=n,o&&(s+=o),s+a;if("like"===(n=He(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?cr.odUniOperator[e.operator]:cr.odv4UniOperator[e.operator]))-1!==a.indexOf("%")&&("%"===a.charAt(0)&&a.lastIndexOf("%")<2?(a=a.substring(1,a.length),n=He(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?cr.odUniOperator.startswith:cr.odv4UniOperator.startswith):"%"===a.charAt(a.length-1)&&a.indexOf("%")>a.length-3?(a=a.substring(0,a.length-1),n=He(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?cr.odUniOperator.endswith:cr.odv4UniOperator.endswith):a.lastIndexOf("%")!==a.indexOf("%")&&a.lastIndexOf("%")>a.indexOf("%")+1?(a=a.substring(a.indexOf("%")+1,a.lastIndexOf("%")),n=He(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?cr.odUniOperator.contains:cr.odv4UniOperator.contains):n=He(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?cr.odUniOperator.contains:cr.odv4UniOperator.contains),a="'"+(a=encodeURIComponent(a))+"'";else if("wildcard"===n)if(-1!==a.indexOf("*")){var u=a.split("*"),l=void 0,p=0;if(0!==a.indexOf("*")&&-1===u[0].indexOf("%3f")&&-1===u[0].indexOf("?")&&(l="'"+(l=u[0])+"'",s+=(n=He(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?cr.odUniOperator.startswith:cr.odv4UniOperator.startswith)+"(",s+=h+",",o&&(s+=o),s+=l+")",p++),a.lastIndexOf("*")!==a.length-1&&-1===u[u.length-1].indexOf("%3f")&&-1===u[u.length-1].indexOf("?")&&(l="'"+(l=u[u.length-1])+"'",p>0&&(s+=" and "),s+=(n=He(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?cr.odUniOperator.endswith:cr.odv4UniOperator.endswith)+"(",s+=h+",",o&&(s+=o),s+=l+")",p++),u.length>2)for(var d=1;d<u.length-1;d++)if(-1===u[d].indexOf("%3f")&&-1===u[d].indexOf("?")){if(l="'"+(l=u[d])+"'",p>0&&(s+=" and "),"substringof"===(n=He(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?cr.odUniOperator.contains:cr.odv4UniOperator.contains)||"not substringof"===n){var g=l;l=h,h=g}s+=n+"(",s+=h+",",o&&(s+=o),s+=l+")",p++}0===p?(n=He(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?cr.odUniOperator.contains:cr.odv4UniOperator.contains,-1===a.indexOf("?")&&-1===a.indexOf("%3f")||(a=-1!==a.indexOf("?")?a.split("?").join(""):a.split("%3f").join("")),a="'"+a+"'"):n="wildcard"}else n=He(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?cr.odUniOperator.contains:cr.odv4UniOperator.contains,-1===a.indexOf("?")&&-1===a.indexOf("%3f")||(a=-1!==a.indexOf("?")?a.split("?").join(""):a.split("%3f").join("")),a="'"+a+"'";if("substringof"===n||"not substringof"===n){g=a;a=h,h=g}return"wildcard"!==n&&(s+=n+"(",s+=h+",",o&&(s+=o),s+=a+")"),s},t.prototype.addParams=function(t){e.prototype.addParams.call(this,t),delete t.reqParams.params},t.prototype.onComplexPredicate=function(e,t,i){for(var r=[],n=0;n<e.predicates.length;n++)r.push("("+this.onEachWhere(e.predicates[n],t,i)+")");return r.join(" "+e.condition+" ")},t.prototype.onEachWhere=function(e,t,i){return e.isComplex?this.onComplexPredicate(e,t,i):this.onPredicate(e,t,i)},t.prototype.onWhere=function(e){return this.pvt.search&&e.push(this.onEachWhere(this.pvt.search,null,!0)),e.join(" and ")},t.prototype.onEachSearch=function(e){e.fields&&0===e.fields.length&&cr.throwError("Query() - Search : oData search requires list of field names to search");for(var t=this.pvt.search||[],i=0;i<e.fields.length;i++)t.push(new sr(e.fields[i],e.operator,e.key,e.ignoreCase));this.pvt.search=t},t.prototype.onSearch=function(e){return this.pvt.search=sr.or(this.pvt.search),""},t.prototype.onEachSort=function(e){var i=[];if(e.name instanceof Array)for(var r=0;r<e.name.length;r++)i.push(t.getField(e.name[r])+("descending"===e.direction?" desc":""));else i.push(t.getField(e.name)+("descending"===e.direction?" desc":""));return i.join(",")},t.prototype.onSortBy=function(e){return e.reverse().join(",")},t.prototype.onGroup=function(e){return this.pvt.groups=e,[]},t.prototype.onSelect=function(e){for(var i=0;i<e.length;i++)e[i]=t.getField(e[i]);return e.join(",")},t.prototype.onAggregates=function(e){return this.pvt.aggregates=e,""},t.prototype.onCount=function(e){return!0===e?"allpages":""},t.prototype.beforeSend=function(e,t,i){cr.endsWith(i.url,this.options.batch)&&"post"===i.type.toLowerCase()?(t.headers.set("Accept",this.options.multipartAccept),t.headers.set("DataServiceVersion","2.0")):t.headers.set("Accept",this.options.accept),t.headers.set("DataServiceVersion","2.0"),t.headers.set("MaxDataServiceVersion","2.0")},t.prototype.processResponse=function(e,t,i,r,n,o){var s="odata.metadata";if(n&&"GET"===n.type&&!this.rootUrl&&e[s]){var a=e[s].split("/$metadata#");this.rootUrl=a[0],this.resourceTableName=a[1]}if(!He(e.d)){var c=i&&i.isCountRequired?e.d.results:e.d,h="__metadata";if(!He(c))for(var u=0;u<c.length;u++)He(c[u][h])||delete c[u][h]}var l=n&&n.pvtData,p=this.processBatchResponse(e,i,r,n,o);if(p)return p;var d=r&&n.fetchRequest.headers.get("DataServiceVersion"),g=null,f=d&&parseInt(d,10)||2;if(i&&i.isCountRequired){var M="__count";(e[M]||e["odata.count"])&&(g=e[M]||e["odata.count"]),e.d&&(e=e.d),(e[M]||e["odata.count"])&&(g=e[M]||e["odata.count"])}3===f&&e.value&&(e=e.value),e.d&&(e=e.d),f<3&&e.results&&(e=e.results);var y={};return y.count=g,y.result=e,this.getAggregateResult(l,e,y,null,i),cr.isNull(g)?y.result:{result:y.result,count:y.count,aggregates:y.aggregates}},t.prototype.convertToQueryString=function(e,t,i){var r=[],n="table",o=e[n]||"";delete e[n],i.dataSource.requiresFormat&&(e.$format="json");for(var s=0,a=Object.keys(e);s<a.length;s++){var c=a[s];r.push(c+"="+e[c])}return r=r.join("&"),i.dataSource.url&&-1!==i.dataSource.url.indexOf("?")&&!o?r:r.length?o+"?"+r:o||""},t.prototype.localTimeReplacer=function(e,t){for(var i=0,r=He(t)?[]:Object.keys(t);i<r.length;i++){var n=r[i];t[n]instanceof Date&&(t[n]=cr.dateParse.toLocalTime(t[n]))}return t},t.prototype.insert=function(e,t,i){return{url:(e.dataSource.insertUrl||e.dataSource.url).replace(/\/*$/,i?"/"+i:""),data:JSON.stringify(t,this.options.localTime?this.localTimeReplacer:null)}},t.prototype.remove=function(e,t,i,r){var n;return n="string"!=typeof i||cr.parse.isGuid(i)?"("+i+")":"('"+i+"')",{type:"DELETE",url:(e.dataSource.removeUrl||e.dataSource.url).replace(/\/*$/,r?"/"+r:"")+n}},t.prototype.update=function(e,t,i,r,n,o){var s;return"PATCH"!==this.options.updateType||He(o)||(i=this.compareAndRemove(i,o,t)),s="string"!=typeof i[t]||cr.parse.isGuid(i[t])?"("+i[t]+")":"('"+i[t]+"')",{type:this.options.updateType,url:(e.dataSource.updateUrl||e.dataSource.url).replace(/\/*$/,r?"/"+r:"")+s,data:JSON.stringify(i,this.options.localTime?this.localTimeReplacer:null),accept:this.options.accept}},t.prototype.batchRequest=function(e,t,i,r,n){var o=i.guid=cr.getGuid(this.options.batchPre),s=this.rootUrl?this.rootUrl+"/"+this.options.batch:e.dataSource.url.replace(/\/*$/,"/"+this.options.batch);i.url=this.resourceTableName?this.resourceTableName:i.url;var a={url:i.url,key:i.key,cid:1,cSet:cr.getGuid(this.options.changeSet)},c="--"+o+"\n";return c+="Content-Type: multipart/mixed; boundary="+a.cSet.replace("--","")+"\n",this.pvt.changeSet=0,c+=this.generateInsertRequest(t.addedRecords,a,e),c+=this.generateUpdateRequest(t.changedRecords,a,e,n?n.changedRecords:[]),c+=this.generateDeleteRequest(t.deletedRecords,a,e),c+=a.cSet+"--\n",{type:"POST",url:s,dataType:"json",contentType:"multipart/mixed; charset=UTF-8;boundary="+o,data:c+="--"+o+"--"}},t.prototype.generateDeleteRequest=function(e,t,i){if(!e)return"";var r={method:"DELETE ",url:function(e,t,i){var r=cr.getObject(i,e[t]);return"number"==typeof r||cr.parse.isGuid(r)?"("+r+")":r instanceof Date?"("+e[t][i].toJSON()+")":"('"+r+"')"},data:function(e,t){return""}};return this.generateBodyContent(e,t,r,i)+"\n"},t.prototype.generateInsertRequest=function(e,t,i){if(!e)return"";var r={method:"POST ",url:function(e,t,i){return""},data:function(e,t){return JSON.stringify(e[t])+"\n\n"}};return this.generateBodyContent(e,t,r,i)},t.prototype.generateUpdateRequest=function(e,t,i,r){var n=this;if(!e)return"";e.forEach(function(e){return e=n.compareAndRemove(e,r.filter(function(i){return cr.getObject(t.key,i)===cr.getObject(t.key,e)})[0],t.key)});var o={method:this.options.updateType+" ",url:function(e,t,i){return"number"==typeof e[t][i]||cr.parse.isGuid(e[t][i])?"("+e[t][i]+")":e[t][i]instanceof Date?"("+e[t][i].toJSON()+")":"('"+e[t][i]+"')"},data:function(e,t){return JSON.stringify(e[t])+"\n\n"}};return this.generateBodyContent(e,t,o,i)},t.getField=function(e){return e.replace(/\./g,"/")},t.prototype.generateBodyContent=function(e,t,i,r){for(var n="",o=0;o<e.length;o++)n+="\n"+t.cSet+"\n",n+=this.options.changeSetContent+"\n\n",n+=i.method,"POST "===i.method?n+=(r.dataSource.insertUrl||r.dataSource.crudUrl||t.url)+i.url(e,o,t.key)+" HTTP/1.1\n":"PUT "===i.method||"PATCH "===i.method?n+=(r.dataSource.updateUrl||r.dataSource.crudUrl||t.url)+i.url(e,o,t.key)+" HTTP/1.1\n":"DELETE "===i.method&&(n+=(r.dataSource.removeUrl||r.dataSource.crudUrl||t.url)+i.url(e,o,t.key)+" HTTP/1.1\n"),n+="Accept: "+this.options.accept+"\n",n+="Content-Id: "+this.pvt.changeSet+++"\n",n+=this.options.batchChangeSetContentType+"\n",He(e[o]["@odata.etag"])?n+="\n":(n+="If-Match: "+e[o]["@odata.etag"]+"\n\n",delete e[o]["@odata.etag"]),n+=i.data(e,o);return n},t.prototype.processBatchResponse=function(e,t,i,r,n){if(i&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("xml"))return t.isCountRequired?{result:[],count:0}:[];if(r&&this.options.batch&&cr.endsWith(r.url,this.options.batch)&&"post"===r.type.toLowerCase()){var o=i.headers.get("Content-Type"),s=void 0,a=void 0,c=e+"";if(o=o.substring(o.indexOf("=batchresponse")+1),(c=c.split(o)).length<2)return{};c=c[1];var h=/(?:\bContent-Type.+boundary=)(changesetresponse.+)/i.exec(c);h&&c.replace(h[0],"");for(var u=h?h[1]:"",l=(c=c.split(u)).length;l>-1;l--)/\bContent-ID:/i.test(c[l])&&/\bHTTP.+201/.test(c[l])&&(s=parseInt(/\bContent-ID: (\d+)/i.exec(c[l])[1],10),n.addedRecords[s]&&(a=cr.parse.parseJson(/^\{.+\}/m.exec(c[l])[0]),Ge({},n.addedRecords[s],this.processResponse(a))));return n}return null},t.prototype.compareAndRemove=function(e,t,i){var r=this;return He(t)||Object.keys(e).forEach(function(n){n!==i&&"@odata.etag"!==n&&(cr.isPlainObject(e[n])?(r.compareAndRemove(e[n],t[n]),0===Object.keys(e[n]).filter(function(e){return"@odata.etag"!==e}).length&&delete e[n]):(e[n]===t[n]||e[n]&&t[n]&&e[n].valueOf()===t[n].valueOf())&&delete e[n])}),e},t}(dr);!function(e){function t(t){var i=e.call(this,t)||this;return i.options=Ge({},i.options,{requestType:"get",accept:"application/json, text/javascript, */*; q=0.01",multipartAccept:"multipart/mixed",sortBy:"$orderby",select:"$select",skip:"$skip",take:"$top",count:"$count",search:"$search",where:"$filter",expand:"$expand",batch:"$batch",changeSet:"--changeset_",batchPre:"batch_",contentId:"Content-Id: ",batchContent:"Content-Type: multipart/mixed; boundary=",changeSetContent:"Content-Type: application/http\nContent-Transfer-Encoding: binary ",batchChangeSetContentType:"Content-Type: application/json; charset=utf-8 ",updateType:"PATCH",localTime:!1,apply:"$apply"}),Ge(i.options,t||{}),i}hr(t,e),t.prototype.getModuleName=function(){return"ODataV4Adaptor"},t.prototype.onCount=function(e){return!0===e?"true":""},t.prototype.onPredicate=function(t,i,r){var n="",o=t.value,s=o instanceof Date;if(i instanceof or)for(var a=this.getQueryRequest(i),c=0;c<a.filters.length;c++)a.filters[c].e.key===t.value&&(r=!0);return n=e.prototype.onPredicate.call(this,t,i,r),s&&(n=n.replace(/datetime'(.*)'$/,"$1")),cr.parse.isGuid(o)&&(n=n.replace("guid","").replace(/'/g,"")),n},t.prototype.onEachSearch=function(e){var t=this.pvt.searches||[];t.push(e.key),this.pvt.searches=t},t.prototype.onSearch=function(e){return this.pvt.searches.join(" OR ")},t.prototype.onExpand=function(e){var t=this,i={},r={},n=e.expands.slice(),o=[];return e.selects.filter(function(e){return e.indexOf(".")>-1}).forEach(function(e){var r=e.split(".");if(r[0]in i||(i[r[0]]=[]),2===r.length)i[r[0]].length&&-1!==Object.keys(i).indexOf(r[0])?-1!==i[r[0]][0].indexOf("$expand")&&-1===i[r[0]][0].indexOf(";$select=")?i[r[0]][0]=i[r[0]][0]+";$select="+r[1]:i[r[0]][0]=i[r[0]][0]+","+r[1]:i[r[0]].push("$select="+r[1]);else{for(var n="$select="+r[r.length-1],o="",s="",a=1;a<r.length-1;a++)o=o+"$expand="+r[a]+"(",s+=")";var c=o+n+s;if(i[r[0]].length&&-1!==Object.keys(i).indexOf(r[0])&&t.expandQueryIndex(i[r[0]],!0)){var h=t.expandQueryIndex(i[r[0]]);i[r[0]][h]=i[r[0]][h]+c.replace("$expand=",",")}else i[r[0]].push(c)}}),Object.keys(i).forEach(function(e){-1===n.indexOf(e)&&n.push(e)}),n.forEach(function(e){r[e]=e in i?e+"("+i[e].join(";")+")":e}),Object.keys(r).forEach(function(e){return o.push(r[e])}),o.join(",")},t.prototype.expandQueryIndex=function(e,t){for(var i=0;i<e.length;i++)if(-1!==e[i].indexOf("$expand"))return!!t||i;return!t&&0},t.prototype.onDistinct=function(e){return"groupby(("+e.map(function(e){return gr.getField(e)}).join(",")+"))"},t.prototype.onSelect=function(t){return e.prototype.onSelect.call(this,t.filter(function(e){return-1===e.indexOf(".")}))},t.prototype.beforeSend=function(e,t,i){"POST"!==i.type&&"PUT"!==i.type&&"PATCH"!==i.type||t.headers.set("Prefer","return=representation"),t.headers.set("Accept",this.options.accept)},t.prototype.processResponse=function(t,i,r,n,o,s){var a="@odata.context",c="@context";if(o&&"GET"===o.type&&!this.rootUrl&&(t[a]||t[c])){var h=t[a]?t[a].split("/$metadata#"):t[c].split("/$metadata#");this.rootUrl=h[0],this.resourceTableName=h[1]}var u=o&&o.pvtData,l=e.prototype.processBatchResponse.call(this,t,r,n,o,s);if(l)return l;var p=null,d="@odata.count",g="@count";r&&r.isCountRequired&&(d in t?p=t[d]:g in t&&(p=t[g])),t=He(t.value)?t:t.value;var f={};return f.count=p,f.result=t,this.getAggregateResult(u,t,f,null,r),cr.isNull(p)?f.result:{result:f.result,count:p,aggregates:f.aggregates}}}(gr),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}hr(t,e),t.prototype.getModuleName=function(){return"WebApiAdaptor"},t.prototype.insert=function(e,t,i){return{type:"POST",url:e.dataSource.url,data:JSON.stringify(t)}},t.prototype.remove=function(e,t,i,r){return{type:"DELETE",url:e.dataSource.url+"/"+i,data:JSON.stringify(i)}},t.prototype.update=function(e,t,i,r){return{type:"PUT",url:e.dataSource.url,data:JSON.stringify(i)}},t.prototype.batchRequest=function(e,t,i){var r=this,n=i.guid=cr.getGuid(this.options.batchPre),o=e.dataSource.url.replace(/\/*$/,"/"+this.options.batch);i.url=this.resourceTableName?this.resourceTableName:i.url;for(var s=[],a=function(r,o){t.addedRecords.forEach(function(o,a){var c=function(e,t,i){return""};s.push("--"+n),s.push("Content-Type: application/http; msgtype=request",""),s.push("POST /api/"+(e.dataSource.insertUrl||e.dataSource.crudUrl||i.url)+c(t.addedRecords,r,i.key)+" HTTP/1.1"),s.push("Content-Type: application/json; charset=utf-8"),s.push("Host: "+location.host),s.push("",o?JSON.stringify(o):"")})},c=0,h=t.addedRecords.length;c<h;c++)a(c);var u=function(o,a){t.changedRecords.forEach(function(a,c){r.options.updateType;var h=function(e,t,i){return""};s.push("--"+n),s.push("Content-Type: application/http; msgtype=request",""),s.push("PUT /api/"+(e.dataSource.updateUrl||e.dataSource.crudUrl||i.url)+h(t.changedRecords,o,i.key)+" HTTP/1.1"),s.push("Content-Type: application/json; charset=utf-8"),s.push("Host: "+location.host),s.push("",a?JSON.stringify(a):"")})};for(c=0,h=t.changedRecords.length;c<h;c++)u(c);var l=function(r,o){t.deletedRecords.forEach(function(o,a){var c=function(e,t,i){var r=cr.getObject(i,e[t]);return"number"==typeof r||cr.parse.isGuid(r)?"/"+r:r instanceof Date?"/"+e[t][i].toJSON():"/'"+r+"'"};s.push("--"+n),s.push("Content-Type: application/http; msgtype=request",""),s.push("DELETE /api/"+(e.dataSource.removeUrl||e.dataSource.crudUrl||i.url)+c(t.deletedRecords,r,i.key)+" HTTP/1.1"),s.push("Content-Type: application/json; charset=utf-8"),s.push("Host: "+location.host),s.push("",o?JSON.stringify(o):"")})};for(c=0,h=t.deletedRecords.length;c<h;c++)l(c);return s.push("--"+n+"--",""),{type:"POST",url:o,contentType:"multipart/mixed; boundary="+n,data:s.join("\r\n")}},t.prototype.beforeSend=function(e,t,i){t.headers.set("Accept","application/json, text/javascript, */*; q=0.01")},t.prototype.processResponse=function(e,t,i,r,n,o){var s=n&&n.pvtData,a=null,c={};if(n&&"post"!==n.type.toLowerCase()){var h=r&&n.fetchRequest.headers.get("DataServiceVersion"),u=h&&parseInt(h,10)||2;i&&i.isCountRequired&&(cr.isNull(e.Count)||(a=e.Count)),u<3&&e.Items&&(e=e.Items),c.count=a,c.result=e,this.getAggregateResult(s,e,c,null,i)}return c.result=c.result||e,cr.isNull(a)?c.result:{result:c.result,count:c.count,aggregates:c.aggregates}}}(gr),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}hr(t,e),t.prototype.processQuery=function(e,t,i){var r=(new dr).processQuery(e,t,i),n=cr.parse.parseJson(r.data),o={};if(n.param)for(var s=0;s<n.param.length;s++){var a=n.param[s],c=Object.keys(a)[0];o[c]=a[c]}o.value=n;return{data:JSON.stringify(o),url:r.url,pvtData:r.pvtData,type:"POST",contentType:"application/json; charset=utf-8"}}}(dr);var fr=function(e){function t(){var t=e.call(this)||this;return Re("beforeSend",dr.prototype.beforeSend,t),t}return hr(t,e),t.prototype.insert=function(e,t,i,r,n){return this.pvt.position=n,this.updateType="add",{url:e.dataSource.insertUrl||e.dataSource.crudUrl||e.dataSource.url,data:JSON.stringify(Ge({},{value:t,table:i,action:"insert"},cr.getAddParams(this,e,r)))}},t.prototype.remove=function(t,i,r,n,o){return e.prototype.remove.call(this,t,i,r),{type:"POST",url:t.dataSource.removeUrl||t.dataSource.crudUrl||t.dataSource.url,data:JSON.stringify(Ge({},{key:r,keyColumn:i,table:n,action:"remove"},cr.getAddParams(this,t,o)))}},t.prototype.update=function(e,t,i,r,n){return this.updateType="update",this.updateKey=t,{type:"POST",url:e.dataSource.updateUrl||e.dataSource.crudUrl||e.dataSource.url,data:JSON.stringify(Ge({},{value:i,action:"update",keyColumn:t,key:i[t],table:r},cr.getAddParams(this,e,n)))}},t.prototype.processResponse=function(t,i,r,n,o,s,a){var c;if(t="batch"===(o?JSON.parse(o.data):t).action?cr.parse.parseJson(t):t,"add"===this.updateType&&e.prototype.insert.call(this,i,t,null,null,this.pvt.position),"update"===this.updateType&&e.prototype.update.call(this,i,this.updateKey,t),this.updateType=void 0,t.added)for(c=0;c<t.added.length;c++)e.prototype.insert.call(this,i,t.added[c]);if(t.changed)for(c=0;c<t.changed.length;c++)e.prototype.update.call(this,i,a.key,t.changed[c]);if(t.deleted)for(c=0;c<t.deleted.length;c++)e.prototype.remove.call(this,i,a.key,t.deleted[c]);return t},t.prototype.batchRequest=function(e,t,i,r,n){return{type:"POST",url:e.dataSource.batchUrl||e.dataSource.crudUrl||e.dataSource.url,contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(Ge({},{changed:t.changedRecords,added:t.addedRecords,deleted:t.deletedRecords,action:"batch",table:i.url,key:i.key},cr.getAddParams(this,e,r)))}},t.prototype.addParams=function(e){(new dr).addParams(e)},t}(pr),Mr=function(e){function t(t){var i=e.call(this)||this;return i.options=Ge({},i.options,{getData:new Function,addRecord:new Function,updateRecord:new Function,deleteRecord:new Function,batchUpdate:new Function}),Ge(i.options,t||{}),i}return hr(t,e),t.prototype.getModuleName=function(){return"CustomDataAdaptor"},t}(dr);!function(e){function t(t){var i=e.call(this)||this;return i.opt=t,i.schema=i.opt.response,i.query=i.opt.query,i.getVariables=i.opt.getVariables?i.opt.getVariables:function(){},i.getQuery=function(){return i.query},i}hr(t,e),t.prototype.getModuleName=function(){return"GraphQLAdaptor"},t.prototype.processQuery=function(t,i){var r=e.prototype.processQuery.apply(this,arguments),n=JSON.parse(r.data),o={};["skip","take","sorted","table","select","where","search","requiresCounts","aggregates","params"].filter(function(e){o[e]="searchwhereparams".indexOf(e)>-1?JSON.stringify(n[e]):n[e]});var s=this.getVariables()||{};s.datamanager=o;var a=JSON.stringify({query:this.getQuery(),variables:s});return r.data=a,r},t.prototype.processResponse=function(e,t,i,r,n){var o,s,a=e,c=Ye(this.schema.result,a.data);this.schema.count&&(o=Ye(this.schema.count,a.data)),this.schema.aggregates&&(s=He(s=Ye(this.schema.aggregates,a.data))?s:cr.parse.parseJson(s));var h=n.pvtData||{},u={result:c,aggregates:s},l=u;return h&&h.groups&&h.groups.length&&this.getAggregateResult(h,l,u,null,i),He(o)?u.result:{result:u.result,count:o,aggregates:s}},t.prototype.insert=function(){var t=e.prototype.insert.apply(this,arguments);return this.generateCrudData(t,"insert")},t.prototype.update=function(){var t=e.prototype.update.apply(this,arguments);return this.generateCrudData(t,"update")},t.prototype.remove=function(){var t=e.prototype.remove.apply(this,arguments);return this.generateCrudData(t,"remove")},t.prototype.batchRequest=function(t,i,r,n,o){var s=e.prototype.batchRequest.apply(this,arguments),a=JSON.parse(s.data);return a.key=r.key,s.data=JSON.stringify(a),this.generateCrudData(s,"batch")},t.prototype.generateCrudData=function(e,t){var i=JSON.parse(e.data);return e.data=JSON.stringify({query:this.opt.getMutation(t),variables:i}),e}}(dr);var yr=function(e){function t(t,i,r){var n=e.call(this)||this;n.isCrudAction=!1,n.isInsertAction=!1,He(t)||(n.cacheAdaptor=t),n.pageSize=r,n.guidId=cr.getGuid("cacheAdaptor");window.localStorage.setItem(n.guidId,JSON.stringify({keys:[],results:[]}));var o=n.guidId;return He(i)||setInterval(function(){for(var e=cr.parse.parseJson(window.localStorage.getItem(o)),t=[],r=0;r<e.results.length;r++){var n=+new Date,s=+new Date(e.results[r].timeStamp);e.results[r].timeStamp=n-s,n-s>i&&t.push(r)}for(r=0;r<t.length;r++)e.results.splice(t[r],1),e.keys.splice(t[r],1);window.localStorage.removeItem(o),window.localStorage.setItem(o,JSON.stringify(e))},i),n}return hr(t,e),t.prototype.generateKey=function(e,t){var i=this.getQueryRequest(t),r=or.filterQueryLists(t.queries,["onSelect","onPage","onSkip","onTake","onRange"]),n=e,o="onPage";o in r&&(n+=r[o].pageIndex),i.sorts.forEach(function(e){n+=e.e.direction+e.e.fieldName}),i.groups.forEach(function(e){n+=e.e.fieldName}),i.searches.forEach(function(e){n+=e.e.searchKey});for(var s=0;s<i.filters.length;s++){var a=i.filters[s];if(a.e.isComplex){var c=t.clone();c.queries=[];for(var h=0;h<a.e.predicates.length;h++)c.queries.push({fn:"onWhere",e:a.e.predicates[h],filter:t.queries.filter});n+=a.e.condition+this.generateKey(e,c)}else n+=a.e.field+a.e.operator+a.e.value}return n},t.prototype.processQuery=function(e,t,i){var r=this.generateKey(e.dataSource.url,t),n=cr.parse.parseJson(window.localStorage.getItem(this.guidId)),o=n?n.results[n.keys.indexOf(r)]:null;return null==o||this.isCrudAction||this.isInsertAction?(this.isCrudAction=null,this.isInsertAction=null,this.cacheAdaptor.processQuery.apply(this.cacheAdaptor,[].slice.call(arguments,0))):o},t.prototype.processResponse=function(e,t,i,r,n,o){if(this.isInsertAction||n&&this.cacheAdaptor.options.batch&&cr.endsWith(n.url,this.cacheAdaptor.options.batch)&&"post"===n.type.toLowerCase())return this.cacheAdaptor.processResponse(e,t,i,r,n,o);e=this.cacheAdaptor.processResponse.apply(this.cacheAdaptor,[].slice.call(arguments,0));var s=i?this.generateKey(t.dataSource.url,i):t.dataSource.url,a={},c=(a=cr.parse.parseJson(window.localStorage.getItem(this.guidId))).keys.indexOf(s);for(-1!==c&&(a.results.splice(c,1),a.keys.splice(c,1)),a.results[a.keys.push(s)-1]={keys:s,result:e.result,timeStamp:new Date,count:e.count};a.results.length>this.pageSize;)a.results.splice(0,1),a.keys.splice(0,1);return window.localStorage.setItem(this.guidId,JSON.stringify(a)),e},t.prototype.beforeSend=function(e,t,i){!He(this.cacheAdaptor.options.batch)&&cr.endsWith(i.url,this.cacheAdaptor.options.batch)&&"post"===i.type.toLowerCase()&&t.headers.set("Accept",this.cacheAdaptor.options.multipartAccept),e.dataSource.crossDomain||t.headers.set("Accept",this.cacheAdaptor.options.accept)},t.prototype.update=function(e,t,i,r){return this.isCrudAction=!0,this.cacheAdaptor.update(e,t,i,r)},t.prototype.insert=function(e,t,i){return this.isInsertAction=!0,this.cacheAdaptor.insert(e,t,i)},t.prototype.remove=function(e,t,i,r){return this.isCrudAction=!0,this.cacheAdaptor.remove(e,t,i,r)},t.prototype.batchRequest=function(e,t,i){return this.cacheAdaptor.batchRequest(e,t,i)},t}(dr),mr=function(){function e(e,t,i){var r,n=this;return this.dateParse=!0,this.timeZoneHandling=!0,this.persistQuery={},this.isInitialLoad=!1,this.requests=[],this.isInitialLoad=!0,e||this.dataSource||(e=[]),i=i||e.adaptor,e&&!1===e.timeZoneHandling&&(this.timeZoneHandling=e.timeZoneHandling),e instanceof Array?r={json:e,offline:!0}:"object"==typeof e?(e.json||(e.json=[]),e.enablePersistence||(e.enablePersistence=!1),e.id||(e.id=""),e.ignoreOnPersist||(e.ignoreOnPersist=[]),r={url:e.url,insertUrl:e.insertUrl,removeUrl:e.removeUrl,updateUrl:e.updateUrl,crudUrl:e.crudUrl,batchUrl:e.batchUrl,json:e.json,headers:e.headers,accept:e.accept,data:e.data,timeTillExpiration:e.timeTillExpiration,cachingPageSize:e.cachingPageSize,enableCaching:e.enableCaching,requestType:e.requestType,key:e.key,crossDomain:e.crossDomain,jsonp:e.jsonp,dataType:e.dataType,offline:void 0!==e.offline?e.offline:!(e.adaptor instanceof fr||e.adaptor instanceof Mr)&&!e.url,requiresFormat:e.requiresFormat,enablePersistence:e.enablePersistence,id:e.id,ignoreOnPersist:e.ignoreOnPersist}):cr.throwError("DataManager: Invalid arguments"),void 0!==r.requiresFormat||cr.isCors()||(r.requiresFormat=!!He(r.crossDomain)||r.crossDomain),void 0===r.dataType&&(r.dataType="json"),this.dataSource=r,this.defaultQuery=t,this.dataSource.enablePersistence&&this.dataSource.id&&window.addEventListener("unload",this.setPersistData.bind(this)),r.url&&r.offline&&!r.json.length?(this.isDataAvailable=!1,this.adaptor=i||new gr,this.dataSource.offline=!1,this.ready=this.executeQuery(t||new or),this.ready.then(function(e){n.dataSource.offline=!0,n.isDataAvailable=!0,r.json=e.result,n.adaptor=new pr})):this.adaptor=r.offline?new pr:new gr,!r.jsonp&&this.adaptor instanceof gr&&(r.jsonp="callback"),this.adaptor=i||this.adaptor,r.enableCaching&&(this.adaptor=new yr(this.adaptor,r.timeTillExpiration,r.cachingPageSize)),this}return e.prototype.getPersistedData=function(e){var t=localStorage.getItem(e||this.dataSource.id);return JSON.parse(t)},e.prototype.setPersistData=function(e,t,i){localStorage.setItem(t||this.dataSource.id,JSON.stringify(i||this.persistQuery))},e.prototype.setPersistQuery=function(e){var t=this,i=this.getPersistedData();if(this.isInitialLoad&&i&&Object.keys(i).length){this.persistQuery=i,this.persistQuery.queries=this.persistQuery.queries.filter(function(e){if(t.dataSource.ignoreOnPersist&&t.dataSource.ignoreOnPersist.length&&e.fn&&t.dataSource.ignoreOnPersist.some(function(t){return e.fn===t}))return!1;if("onWhere"===e.fn){var i=e.e;if(i&&i.isComplex&&i.predicates instanceof Array){var r=i.predicates.map(function(e){if(e.predicates&&e.predicates instanceof Array){var t=e.predicates.map(function(e){var t=e.field,i=e.operator,r=e.value,n=e.ignoreCase,o=e.ignoreAccent,s=e.matchCase;return new sr(t,i,r,n,o,s)});return"and"===e.condition?sr.and(t):sr.or(t)}var i=e.field,r=e.operator,n=e.value,o=e.ignoreCase,s=e.ignoreAccent,a=e.matchCase;return new sr(i,r,n,o,s,a)});e.e=new sr(r[0],i.condition,r.slice(1))}}return!0});var r=Ge(new or,this.persistQuery);return this.isInitialLoad=!1,r}return this.persistQuery=e,this.isInitialLoad=!1,e},e.prototype.setDefaultQuery=function(e){return this.defaultQuery=e,this},e.prototype.executeLocal=function(t){this.defaultQuery||t instanceof or||cr.throwError("DataManager - executeLocal() : A query is required to execute"),this.dataSource.json||cr.throwError("DataManager - executeLocal() : Json data is required to execute"),this.dataSource.enablePersistence&&this.dataSource.id&&(t=this.setPersistQuery(t)),t=t||this.defaultQuery;var i=this.adaptor.processQuery(this,t);if(t.subQuery){var r=t.subQuery.fromTable,n=t.subQuery.lookups,o=t.isCountRequired?i.result:i;n&&n instanceof Array&&cr.buildHierarchy(t.subQuery.fKey,r,o,n,t.subQuery.key);for(var s=0;s<o.length;s++)o[s][r]instanceof Array&&(o[s]=Ge({},{},o[s]),o[s][r]=this.adaptor.processResponse(t.subQuery.using(new e(o[s][r].slice(0))).executeLocal(),this,t))}return this.adaptor.processResponse(i,this,t)},e.prototype.executeQuery=function(t,i,r,n){var o=this,s="makeRequest";this.dataSource.enablePersistence&&this.dataSource.id&&(t=this.setPersistQuery(t)),"function"==typeof t&&(n=r,r=i,i=t,t=null),t||(t=this.defaultQuery),t instanceof or||cr.throwError("DataManager - executeQuery() : A query is required to execute");var a=new Nr,c={query:t};if(!this.dataSource.offline&&void 0!==this.dataSource.url&&""!==this.dataSource.url||!He(this.adaptor[s])||this.isCustomDataAdaptor(this.adaptor)){var h=this.adaptor.processQuery(this,t);He(this.adaptor[s])?!He(h.url)||this.isCustomDataAdaptor(this.adaptor)?(this.requests=[],this.makeRequest(h,a,c,t)):(c=e.getDeferedArgs(t,h,c),a.resolve(c)):this.adaptor[s](h,a,c,t)}else e.nextTick(function(){var i=o.executeLocal(t);c=e.getDeferedArgs(t,i,c),a.resolve(c)});return(i||r)&&a.promise.then(i,r),n&&a.promise.then(n,n),a.promise},e.getDeferedArgs=function(e,t,i){return e.isCountRequired?(i.result=t.result,i.count=t.count,i.aggregates=t.aggregates):i.result=t,i},e.nextTick=function(e){(window.setImmediate||window.setTimeout)(e,0)},e.prototype.extendRequest=function(e,t,i){return Ge({},{type:"GET",dataType:this.dataSource.dataType,crossDomain:this.dataSource.crossDomain,jsonp:this.dataSource.jsonp,cache:!0,processData:!1,onSuccess:t,onFailure:i},e)},e.prototype.makeRequest=function(e,t,i,r){var n=this,o=!!r.subQuerySelector,s=function(e){i.error=e,t.reject(i)},a=function(e,r,n,o,s,a,c){i.xhr=n,i.count=r?parseInt(r.toString(),10):0,i.result=e,i.request=o,i.aggregates=a,i.actual=s,i.virtualSelectRecords=c,t.resolve(i)},c=function(e,t){var c=new Nr,h={parent:i};r.subQuery.isChild=!0;var u=n.adaptor.processQuery(n,r.subQuery,e?n.adaptor.processResponse(e):t),l=n.makeRequest(u,c,h,r.subQuery);return o||c.then(function(t){e&&(cr.buildHierarchy(r.subQuery.fKey,r.subQuery.fromTable,e,t,r.subQuery.key),a(e,t.count,t.xhr))},s),l},h=this.extendRequest(e,function(e,t){if(n.isGraphQLAdaptor(n.adaptor)&&!He(e.errors))return s(e.errors);n.isCustomDataAdaptor(n.adaptor)&&(t=Ge({},n.fetchReqOption,t)),-1===t.contentType.indexOf("xml")&&n.dateParse&&(e=cr.parse.parseJson(e));var i=n.adaptor.processResponse(e,n,r,t.fetchRequest,t),h=0,u=null,l=e.virtualSelectRecords;r.isCountRequired&&(h=i.count,u=i.aggregates,i=i.result),r.subQuery?o||c(i,t):a(i,h,t.fetchRequest,t.type,e,u,l)},s);if(this.isCustomDataAdaptor(this.adaptor)){this.fetchReqOption=h;var u=h;this.adaptor.options.getData({data:u.data,onSuccess:u.onSuccess,onFailure:u.onFailure})}else{var l=new yt(h);l.beforeSend=function(){n.beforeSend(l.fetchRequest,l)},(h=l.send()).catch(function(e){return!0}),this.requests.push(l)}if(o){var p=r.subQuerySelector.call(this,{query:r.subQuery,parent:r});p&&p.length?Promise.all([h,c(null,p)]).then(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=e[0],s=n.adaptor.processResponse(i[0],n,r,n.requests[0].fetchRequest,n.requests[0]),c=0;r.isCountRequired&&(c=s.count,s=s.result);var h=n.adaptor.processResponse(i[1],n,r.subQuery,n.requests[1].fetchRequest,n.requests[1]);c=0,r.subQuery.isCountRequired&&(c=h.count,h=h.result),cr.buildHierarchy(r.subQuery.fKey,r.subQuery.fromTable,s,h,r.subQuery.key),o=!1,a(s,c,n.requests[0].fetchRequest)}):o=!1}return h},e.prototype.beforeSend=function(e,t){this.adaptor.beforeSend(this,e,t);for(var i,r=this.dataSource.headers,n=0;r&&n<r.length;n++){i=[];for(var o=0,s=Object.keys(r[n]);o<s.length;o++){var a=s[o];i.push(a),e.headers.set(a,r[n][a])}}},e.prototype.saveChanges=function(e,t,i,r,n){var o=this;i instanceof or&&(r=i,i=null);var s={url:i,key:t||this.dataSource.key},a=this.adaptor.batchRequest(this,e,s,r||new or,n),c="dofetchRequest";if(this.dataSource.offline)return a;if(He(this.adaptor[c])){if(this.isCustomDataAdaptor(this.adaptor))return this.dofetchRequest(a,this.adaptor.options.batchUpdate);var h=new Nr,u=new yt(a);return u.beforeSend=function(){o.beforeSend(u.fetchRequest,u)},u.onSuccess=function(t,i){o.isGraphQLAdaptor(o.adaptor)&&(He(t.errors)||u.onFailure(JSON.stringify(t.errors))),h.resolve(o.adaptor.processResponse(t,o,null,i.fetchRequest,i,e,s))},u.onFailure=function(e){h.reject([{error:e}])},u.send().catch(function(e){return!0}),h.promise}return this.adaptor[c](a)},e.prototype.insert=function(e,t,i,r){t instanceof or&&(i=t,t=null);var n=this.adaptor.insert(this,e,t,i,r),o="dofetchRequest";return this.dataSource.offline?n:He(this.adaptor[o])?this.dofetchRequest(n,this.adaptor.options.addRecord):this.adaptor[o](n)},e.prototype.remove=function(e,t,i,r){"object"==typeof t&&(t=cr.getObject(e,t)),i instanceof or&&(r=i,i=null);var n=this.adaptor.remove(this,e,t,i,r),o="dofetchRequest";if(this.dataSource.offline)return n;if(He(this.adaptor[o])){var s=this.adaptor.options.deleteRecord;return this.dofetchRequest(n,s)}return this.adaptor[o](n)},e.prototype.update=function(e,t,i,r,n){i instanceof or&&(r=i,i=null);var o=this.adaptor.update(this,e,t,i,r,n),s="dofetchRequest";if(this.dataSource.offline)return o;if(He(this.adaptor[s])){var a=this.adaptor.options.updateRecord;return this.dofetchRequest(o,a)}return this.adaptor[s](o)},e.prototype.isCustomDataAdaptor=function(e){return this.adaptor.getModuleName&&"CustomDataAdaptor"===this.adaptor.getModuleName()},e.prototype.isGraphQLAdaptor=function(e){return this.adaptor.getModuleName&&"GraphQLAdaptor"===this.adaptor.getModuleName()},e.prototype.successFunc=function(e,t){if(this.isGraphQLAdaptor(this.adaptor)){var i="object"==typeof e?e:JSON.parse(e);He(i.errors)||this.failureFunc(JSON.stringify(i.errors))}this.isCustomDataAdaptor(this.adaptor)&&(t=Ge({},this.fetchReqOption,t));try{cr.parse.parseJson(e)}catch(t){e=[]}e=this.adaptor.processResponse(cr.parse.parseJson(e),this,null,t.fetchRequest,t),this.fetchDeffered.resolve(e)},e.prototype.failureFunc=function(e){this.fetchDeffered.reject([{error:e}])},e.prototype.dofetchRequest=function(e,t){var i=this;if(e=Ge({},{type:"POST",contentType:"application/json; charset=utf-8",processData:!1},e),this.fetchDeffered=new Nr,this.isCustomDataAdaptor(this.adaptor))this.fetchReqOption=e,t.call(this,{data:e.data,onSuccess:this.successFunc.bind(this),onFailure:this.failureFunc.bind(this)});else{var r=new yt(e);r.beforeSend=function(){i.beforeSend(r.fetchRequest,r)},r.onSuccess=this.successFunc.bind(this),r.onFailure=this.failureFunc.bind(this),r.send().catch(function(e){return!0})}return this.fetchDeffered.promise},e.prototype.clearPersistence=function(){window.removeEventListener("unload",this.setPersistData.bind(this)),this.dataSource.enablePersistence=!1,this.persistQuery={},window.localStorage.setItem(this.dataSource.id,"[]")},e}(),Nr=function(){var e=this;this.promise=new Promise(function(t,i){e.resolve=t,e.reject=i}),this.then=this.promise.then.bind(this.promise),this.catch=this.promise.catch.bind(this.promise)};const jr=({pageSize:e,dataSource:r,allowPaging:a,columns:c=[],columnName:h,className:u,allowColumnSearch:l,allowGenericSearch:p,allowExcelExport:d,allowPdfExport:g,id:f,onRowSelectionChanged:M,excelFileName:y="Excel_Export",toolBarName:m="ExcelExport",pdfOrientation:C,onRefresh:x,allowCheckBox:E,selectedRows:k,checkboxSelectionOnly:P,selectionDisable:U,pageSetting:Q,dataStateChange:Y,serverSidePagination:R=!1,onExcelExport:V,onPdfExport:F,initiateExcelExport:B,initiatepdfExport:W,excelExportCompleted:G,pdfExportCompleted:H,hideOnReport:q=[],currentPage:_,height:J,width:Z,frozenRows:K,frozenColumns:X,rowSelectStyle:$={},gridRef:ee,currentPageNumber:te,isFilterClearing:ie,getActiveFilterCriteria:re,nonExportableColumns:ne,allowResizing:oe=!1,defaultFilter:se=[],allowTextWrap:ae=!1})=>{const[ce,he]=t(r),[ue,le]=t(),pe=["Search"],de={type:"Menu",operators:{stringOperator:[{value:"contains",text:"Contains"}]},showFilterBarOperator:!0};let ge,fe=!1;const Me=()=>{document.getElementById(ge?.element.id+"_searchbar")?.addEventListener("keyup",e=>{ge?.search(e.target.value)})},ye=e=>{let t;return M?.(ge.getSelectedRecords(),e),ge&&(t=ge.getSelectedRecords()),t};i(()=>{Q?le(Q):(0===_||_>0)&&0!==ue&&le(_)},[Q,_]),i(()=>{ve()},[ue]),i(()=>{a||(ge.searchSettings.key="")},[a]),i(()=>{if(B&&R)we(!1),ge.excelExport({fileName:`${y}.xlsx`}),G?.(je());else if(W&&R){const e={fileName:`${y}.pdf`,pageOrientation:C};ge.pdfExport(e),H?.(je())}},[B,W]),i(()=>{R&&r&&(ge.dataSource={result:r,count:Number(r?.length>0?r[0].totalCount:0)});const e=document.getElementById(f+"_clearbutton");e&&!fe&&(e.removeEventListener("click",me),e.addEventListener("click",me),fe=!0)},[r]),i(()=>{for(let e=0;e<se.length;e++)ge?.filterByColumn(se[e].field,"contains",se[e].value)},[se]);const me=()=>{document.getElementById(f+"_searchbutton")?.click()};i(()=>(ee&&ee(ge),x&&x(Ne),k&&k(ye),()=>{const e=document.getElementById(f+"_clearbutton");e&&e.removeEventListener("click",me)}),[]);const Ne=(e=!1)=>{ge.clearSelection(),ge.refresh(),e&&ge.clearFiltering()},je=()=>{let e=[];for(var t in ge?.filterModule?.values)e.push({field:t,value:ge?.filterModule?.values[t]});return e},De=e=>{let t=c?.filter(e=>!ne?.includes(e?.field));if(ge&&e.item.id===f+"_excelexport")R?V?.(je()):ne?.length?ge.excelExport({fileName:`${y}.xlsx`,columns:t}):ge.excelExport({fileName:`${y}.xlsx`});else if(ge&&e.item.id===f+"_pdfexport"){let e;e=ne?.length?{fileName:`${y}.pdf`,pageOrientation:C,columns:t}:{fileName:`${y}.pdf`,pageOrientation:C},R?F?.(je()):ge.pdfExport(e)}};n(()=>(he(r),r&&h?cr.distinct(r,h):[]),[r,h]);const Ie={pageSize:e};let Se=[];p&&(Se=[...pe]),d&&(Se=[...Se,"ExcelExport"]),g&&(Se=[...Se,"PdfExport"]),p||d||g||(Se=void 0);const be={type:"Multiple",persistSelection:!0,checkboxOnly:P},ze=e=>{if($&&$.key&&!0===e.data[$.key]){e.row.style.backgroundColor=$.color;e.row.querySelectorAll(".e-leftfreeze").forEach(e=>{e.style.backgroundColor=$.color})}U?.some(t=>t.colName in e.data&&t.colId===e.data[t.colName])&&(e.isSelectable=!1)},ve=()=>{te&&te(ge?.pageSettings?.currentPage),R&&ge?(0==ue||ue>0)&&(ge.pageSettings.currentPage=ue+1,le(null)):ue&&ge&&(ge.pageSettings.currentPage=ue,le(null))},we=e=>{for(let t=0;t<q?.length;t++){let i=ge.columns.find(e=>e.field===q[t]);i&&(i.visible=e)}};function Oe(e,t){return t?`\n <span style="color: red"> *</span>\n <span class="e-headertext">${e}</span>\n `:`<span class="e-headertext">${e}</span>`}const Te=e=>{e.column.template&&"EllipsisWithTooltip"===e.column.clipMode&&e.cell.classList.remove("e-ellipsistooltip")},Le=e=>{"ArrowRight"!=e.key&&"ArrowLeft"!=e.key&&"Tab"!=e.key||(e.target.classList.contains("e-textbox")||e.target.classList.contains("e-combobox")||e.target.classList.contains("e-multiselect"))&&(e.cancel=!0)},Ae=e=>{"filtering"!==e.requestType&&"paging"!==e.requestType||re&&re(je())};return s(N,R?{allowPaging:!0,pageSettings:Ie,className:u,toolbar:Se,filterSettings:l?de:void 0,allowFiltering:!!l,ref:e=>{e&&(ge=e)},actionComplete:Ae,allowExcelExport:d,allowPdfExport:g,toolbarClick:De,created:Me,id:f,rowSelected:ye,rowDeselected:ye,selectionSettings:be,rowDataBound:ze,dataBound:ve,dataStateChange:Y,queryCellInfo:Te,excelExportComplete:()=>{we(!0)},height:J||"",width:Z||"",frozenRows:K,frozenColumns:X,keyPressed:Le,allowResizing:oe,allowTextWrap:ae,children:[s(j,{children:[E&&o(D,{type:"checkbox",width:"50"}),c.map(e=>o(D,{type:e.type?e.type:"string",width:e.width,textAlign:e.textAlign,headerText:e.headerText?e.headerText:e.templateHeaderText,template:e.template?e.template:void 0,field:e.field,format:e.format,allowFiltering:1==e.allowFiltering,clipMode:e.clipMode,isPrimaryKey:e.isPrimaryKey,visible:e.visible,headerTemplate:e.headerText?Oe(e.headerText,e.mandatory):e.headerTemplate},e.field))]}),o(I,{services:[S,b,z,v,w,O,T,L,A]})]}:{dataSource:ce,allowPaging:a,pageSettings:Ie,className:u,toolbar:Se,filterSettings:l?de:void 0,allowFiltering:!!l,ref:e=>{e&&(ge=e)},actionBegin:e=>{"filtering"===e.requestType&&ie&&ie(!0)},actionComplete:Ae,allowExcelExport:d,allowPdfExport:g,toolbarClick:De,created:Me,id:f,rowSelected:ye,rowDeselected:ye,selectionSettings:be,rowDataBound:ze,dataBound:ve,queryCellInfo:Te,height:J||"",width:Z||"",frozenRows:K,frozenColumns:X,keyPressed:Le,allowResizing:oe,allowTextWrap:ae,children:[s(j,{children:[E&&o(D,{type:"checkbox",width:"50"}),c.map(e=>o(D,{type:e.type?e.type:"string",width:e.width,textAlign:e.textAlign,headerText:e.headerText?e.headerText:e.templateHeaderText,template:e.template?e.template:void 0,field:e.field,format:e.format,allowFiltering:1==e.allowFiltering,clipMode:e.clipMode,isPrimaryKey:e.isPrimaryKey,visible:e.visible,headerTemplate:e.headerText?Oe(e.headerText,e.mandatory):e.headerTemplate},e.field))]}),o(I,{services:[S,b,z,v,w,O,T,L,A]})]})},Dr=({className:e="",children:t,title:i="",iconClass:r="",show:n=!1,onClose:c,closeBtn:h=!0})=>o(a,{children:n&&o("div",{id:"results",className:"search-results "+e,children:o("div",{className:"popup",children:s("div",{className:"popup-layout",children:[s("div",{className:"popup-header",children:[s("div",{className:"popHeadWrap",children:[o("div",{className:"IconWrap",children:r&&o("i",{className:r})}),o("div",{className:"popup-header-caption",children:i})]}),o("div",{className:h?"":"hidden",children:o("div",{className:"popup-header-close",children:o("i",{className:"bi bi-x-lg",onClick:c})})})]}),o("div",{className:"popup-body",children:o("div",{className:"popup-form-inner-layout row",children:o(a,{children:t})})})]})})})}),Ir=1048576,Sr=({fileCount:r,onFilesChange:n,onUploadCompleted:c,startUpload:h,batchId:u,documentTypeId:l,files:p,inputFileSize:d,fileTypes:g,listOnly:f,imageOnly:M,postExecuteParam:m,listView:N,documentAPI:j,placeholder:D="Drag and drop files here",buttonText:I="Choose file",imageToUpload:S,index:b,onClearFiles:z,onClose:v,fileRemoved:w,disabled:O,imageHeight:T,imageWidth:L,fileView:A=!0,fileDownload:U=!0,handleFileError:Q,showErrorMessage:Y=!0,showDownloadProgress:V=!1,clientId:F,allowMultipleSelection:B=!0,postBody:W={},param:G={}})=>{const[H,q]=t([]),[_,J]=t([]),[Z,K]=t(!1),[X,$]=t(""),ee=e.useRef(null),te=r,[ie,re]=t(1),[ne,oe]=t([]),[se,ae]=t(0),[ce,he]=t(Ir),[ue,le]=t(0),[pe,de]=t(""),[ge,fe]=t(0),[Me,ye]=t(0),[me,Ne]=t(-1),[je,De]=t([]),[Ie,Se]=t(""),[be,ze]=t(!1),ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAABNCAYAAAD+d9crAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF+mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90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m4GeSo4GY3ylqmYBji6TfvxxG3e/+Wty7s4qixxcB0cAOLXcxCe++En8+Bcehafz1ncdkzPf9TVsYFcOtlP8Ec2YDdN/xu8xLUzdtfDfc3d9BrAEMPl7Fv7a7PdS/3fx60hgzyE4+q7gNAFcANiDkZY/NBfTx7MApQCbd+KizVM4n6expStgaSff95AwAsDp3YL3f3nGKxefwy3z1kABzpDMhJOYuQRhTYsN6wEkEycZ9mkGiufeQO8IXBvGzoMU+/dQbJIoI7C0vVKI2CdcR7+GNGeQsO3PgnoaL073LgvABDCbQ6vocWr3CcRG2pPkbeB/6f2KrDIJwXWvehL+B2Bi6PuvmQxqAAAAAElFTkSuQmCC";i(()=>{z&&z(we),je&&0!==je.length||Re(!1)},[]);const we=()=>{q([]),K(!1)};i(()=>{q(S||H),ge>0&&Te(ie)},[ne,ue]),i(()=>{Re(!1)},[l]),e.useEffect(()=>{(!H||0==H?.length)&&p.length>0&&Ue(p)});const Oe=e=>{let t=H;if(t[e]&&t[e].isValid&&!k.isValidGUID(t[e].documentId)){Ne(e),Ee("Uploading...",e),ke();const i=t[e].file;fe(i.size);const r=i.size%Ir==0?i.size/Ir:Math.floor(i.size/Ir)+1;ye(r),oe(i);const n=k.getGUID()+"."+i.name.split(".").pop();de(n)}else if(t[e]&&k.isValidGUID(t[e].documentId))le(100),Oe(e+1),H[e+1]||c?.(t);else if(t[e]&&!1===t[e]?.isValid&&e<t?.length)Oe(e+1);else if(e===H?.length)return},Te=e=>{if(re(e+1),e<=Me){var t=ne.slice(se,ce);Le(t)}},Le=async e=>{try{const i=(await E.post(j+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/uploadchunks",e,{params:{id:ie,fileName:pe,documentTypeId:l,clientId:F,param:G},headers:{"Content-Type":"application/json"}})).data;if(i.isSuccess)if(ae(ce),he(ce+Ir),ie==Me)await Ae();else{var t=ie/Me*100;le(t),Ee("Uploading...",me,t)}else console.log("Error Occurred:",i.errorMessage)}catch(e){console.log("error",e)}},Ae=async()=>{let e=ne;var t=new FormData;t.append("fileName",pe),t.append("physicalName",e.name);const i=await E.post(j+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/uploadcomplete",{},{params:{fileName:pe,documentTypeId:l,physicalName:e.name,clientId:F,param:G},data:t});var r=i.config?.params?.physicalName.toLowerCase().split(".").pop();const n=i.data;if(n.isSuccess){Ee("Uploaded Successfully",me,100);let e=[...H];e[me].documentId=n.documentId,e[me].rowIndex=b,e[me].batchId=u,q(e),2==h?Ce(n.documentId,r):(Ne(me+1),Oe(me+1),H[me+1]||c?.(e))}},Ce=async(e,t)=>{let i=g?.map(e=>e.toLowerCase()),r=i?.filter(e=>e==t);(new FormData).append("fileName",pe);(await E.post(j+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/dataupload/"+("xlsx"==r?"uploadexceldata":"uploadtextdata"),W,{params:{documentId:e,batchId:u,postExecuteParam:m||""}})).data.isSuccess&&(Ee("Exporting Data",me,5),xe(u))},xe=e=>{var t=null;t=setInterval(()=>{E.get(j+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/dataupload/getbatchdetails?batchId="+e).then(e=>{const i=e.data;if(i.isSuccess){let e=i.data;5==e.processStatusId?(Ee("Completed",me,100),clearInterval(t),Ne(me+1),Oe(me+1),H[me+1]||c?.(H)):4==e.processStatusId?(Ee(e.remarks,me,100,"danger",e.processStatusId),c?.([{error:e.remarks}]),clearInterval(t)):6==e.processStatusId?Ee("Data validation...",me,e.progress,"info"):e.progress>5&&Ee("",me,e.progress)}},function(e){"ERR_NETWORK"==e.code&&Ee("Network Failure",me,100,"danger"),clearInterval(t)})},1e3)},Ee=(e,t,i=0,r="success",n=0)=>{let o=[...H];o[t].statusMessage=e||o[t].statusMessage,o[t].progress=i,o[t].variant=r,o[t].processStatusId=n,q(o)},ke=()=>{le(0),re(1),ae(0),he(Ir)};e.useEffect(()=>{if(J(S),Number(h)>0){const e=H?.filter(e=>e?.isValid);H&&0!==H.length&&H[0]?H.length>0&&e&&0===e?.length?c?.([...H]):Oe(0):c?.([])}},[h,_]);const Pe=e=>{var t=e[0].name.toLowerCase().split(".").pop();["gif","jpeg","png","jpg"].includes(t)?(e=>{let t,i={},r=new FileReader;r.onloadend=()=>{t=new Image,t.src=r.result,t.onload=()=>{i.height=t.height,i.width=t.width,Ve(e,i)}},e&&r.readAsDataURL(e[0])})(e):Ve(e,"")},Ue=async e=>{if(!Z&&e.length>0){for(let t=0;t<e.length;t++)if(Qe(e[t].fileName)&&k.isValidGUID(e[t].documentId)&&!e[t].file&&1!=e[t].fileFetched)try{ze(!0);const i=await E.get(j+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/download?documentId="+e[t].documentId,{responseType:"blob",onDownloadProgress:e=>{const t=Math.round(100*e.loaded/e.total);console.log(t)}});e[t].fileFetched=!0,e[t].src=URL.createObjectURL(new Blob([i.data]))}catch(e){}finally{ze(!1)}else e[t].src=ve;K(!0),q(e)}},Qe=e=>{var t=e.split(".").pop();return["gif","jpeg","png","jpg"].includes(t)},Ye=e=>{var t=e.toLowerCase().split(".").pop();return!!(g&&g.length>0&&g?.includes(t))||(!g||0==g.length)},Re=async(e=!1)=>{if(l)if(e){if(je.length>0){let e=[];const t=R.utils.book_new(),i=R.utils.json_to_sheet([]);R.utils.sheet_add_aoa(i,[je]),R.utils.sheet_add_json(i,e,{origin:"A2",skipHeader:!0}),R.utils.book_append_sheet(t,i,"Sheet1"),R.writeFile(t,Ie+".xlsx")}}else{const e=(await E.get(j+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/getexcelcolumns",{params:{documentTypeId:l}})).data;let t=[];for(let i=0;i<e.length;i++)t.push(e[i].sourceColumn);De(t),t.length>0&&e[0].documentTypeName&&Se(e[0].documentTypeName)}},Ve=(e,t)=>{const i=Number(te);let r="",o=!1,s=0;if(e&&e.length>0){let a=H?[...H]:[];for(let n=0;n<e.length;n++)if(o=!0,r="",s=e[n].size/1024,0==i||i>=a.length+1){if(Ye(e[n].name))if(Number(d)>0&&Number(d)<s)P.broadcast({key:"bb_toast",type:"alert",content:"File too large, allowed size is "+d+" KB",position:{X:"550",Y:"50"}}),o=!1;else{if(a.findIndex(t=>t.fileName==e[n].name)>-1)return P.broadcast({key:"bb_toast",type:"alert",content:"Can't upload duplicate files!",position:{X:"550",Y:"50"}}),!1;(T&&t.height!=T||L&&t.width!=L)&&(P.broadcast({key:"bb_toast",type:"alert",content:"Please choose an image with height "+T+"px and width "+L+"px",position:{X:"550",Y:"50"}}),o=!1)}else P.broadcast({key:"bb_toast",type:"alert",content:"Invalid file, allowed types - "+g?.join(","),position:{X:"550",Y:"50"}}),o=!1;o&&a.push({fileName:e[n].name,fileSize:s.toFixed(1)+" KB",isValid:o,errorMessage:r,file:e[n],statusMessage:"Ready to upload",progress:0,variant:"success",src:Qe(e[n].name)?URL.createObjectURL(e[n]):ve})}else{const e=`You can upload only ${i} file${i>1?"s":""}.`;$(e),P.broadcast({key:"bb_toast",type:"alert",content:e,position:{X:"550",Y:"50"}})}q(a),n?.(a)}return!0};return o("div",{className:"control-pane",ref:ee,onDrop:e=>{return!O&&!M&&((t=e).preventDefault(),$(""),Pe(t.dataTransfer.files),!0);var t},onDragOver:e=>e.preventDefault(),children:o("div",{className:"control-section row uploadpreview",children:o("div",{className:"",children:o("div",{className:"upload_wrapper",children:s("div",{className:"upload-files-container",children:[1!=f&&s(a,{children:[o("div",{className:"drag-file-area",children:s("label",{className:"label",children:[" ",s("span",{className:"browse-files",children:[o("input",{type:"file",id:"bb-file-upload",className:"default-file-input",onClick:e=>(e=>{e.target.value=null})(e),multiple:B,onChange:e=>(Pe(e.target.files),$(""),!0),disabled:O}),o("span",{className:"browse-files-text",children:I})," "]}),o("span",{className:"dynamic-message",children:D})]})}),s("span",{className:"cannot-upload-message",children:[" ",o("span",{className:"material-icons-outlined",children:"error"})," ","Please select a file first"," ",o("span",{className:"material-icons-outlined cancel-alert-button",children:"cancel"})," "]})]}),g?.includes("txt")?o(a,{}):o("span",{className:"bb-excel-download-container",children:je.length>0&&s("a",{className:"bb-download-custom-icon",onClick:()=>Re(!0),children:[" Download Sample Document ",o("i",{className:"bi bi-file-earmark-spreadsheet-fill"})]})}),H?.map((e,t)=>{return o(a,{children:s("div",{className:"list"==N?"file-block-1":"file-block",style:{borderTop:"1px solid #d2d2d2"},children:[o("div",{className:"list"==N?"file-info-1":"file-info",children:s("div",{className:"list"===N?"d-flex":"",children:[1!=M&&o("span",{className:"material-icons-outlined file-icon",children:o("img",{src:e.src})}),1==M&&o("span",{className:"material-icons-outlined file-icon-image",children:o("img",{src:e.src})}),1!=f&&1!=M&&!O&&!(Number(h)>0)&&o("span",{className:"file-action file-action-remove",style:{color:"red"},onClick:()=>(e=>{let t=[...H],i=t.splice(e,1);1===i.length&&(i[0].index=e,q(t),w?.(i))})(t),children:o("i",{className:"bi bi-x-circle",onClick:v})}),U&&1!=M&&o("span",{className:"file-action file-action-download",style:{color:"green"},onClick:()=>(async(e,t)=>{let i=new Blob([]);if(k.isValidGUID(e.documentId))try{const r={responseType:"blob"};V&&(r.onDownloadProgress=e=>{const i=Math.round(100*e.loaded/e.total);Ee("downloading...",t,i)});const n=await E.get(j+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/download?documentId="+e.documentId,r);i=new Blob([n.data])}catch(e){return void console.error("Error downloading file:",e)}else i=new Blob([e.file]);const r=window.URL.createObjectURL(i),n=document.createElement("a");n.href=r,n.download=e.fileName,n.click(),window.URL.revokeObjectURL(r)})(e,t),children:o("i",{className:"bi bi-download"})}),A&&1!=M&&e.documentId&&(()=>{if(e.fileName){const i=["gif","jpeg","png","jpg","pdf","docx","doc"];var t=e.fileName.toLowerCase().split(".").pop();return i.includes(t)}return null})()&&o("span",{className:"file-action",style:{color:"blue"},onClick:()=>(e=>{if(k.isValidGUID(e.documentId)){var t=e.fileName?.split(".").pop();const i=JSON.stringify({message:"_viewDocumentEditor",entity:{documentId:e.documentId,documentName:e.fileName,documentAPI:j,documentType:t}});setTimeout(function(){window.parent.postMessage(i,"*")},2e3)}})(e),children:o("i",{className:"bi bi-eye-fill",title:"View"})}),1!=M&&s("div",{style:{width:"225px"},children:[o(y,{content:e.fileName,children:o("span",{className:"list"==N?"file-name-1":"file-name",children:(i=e.fileName,i?i.length>20?i.substring(0,15)+"..."+i.split(".").pop():i:"")})}),s("span",{className:"list"==N?"file-size-1":"file-size",children:[e.fileSize,e.isValid&&4!=e.processStatusId?o("span",{className:"upd-success-msg",children:e.statusMessage}):e.isValid&&4==e.processStatusId?o("span",{className:"upd-warning-msg",children:e.statusMessage}):o("span",{className:"upd-warning-msg",children:e.errorMessage})]})]})]})}),Y&&X&&t==H.length-1&&o("div",{className:"upd-cmn-error",children:X}),e.progress>0&&o(C,{className:"progressbar",animated:!0,variant:e.variant,now:e.progress,label:`${e.progress.toFixed(0)}%`})]})});var i}),0==H?.length&&(1==f||1==M)&&o("div",{className:"bb-fu-nofiles",children:be?o(x,{animation:"border",role:"status",variant:"danger",children:o("span",{className:"visually-hidden",children:"Loading..."})}):o("span",{children:"No files found !"})})]})})})})})},br=()=>{const e=r(null),t=document.getElementsByTagName("body")[0];return t.hasAttribute("data-listener-bb-toast")||(document.addEventListener("bb_toast",function(t){if("bb_toast"==t.detail.key){e.current?.show({title:t.detail.title,content:t.detail.content,showProgressBar:"true"==t.detail.showProgressBar||!t.detail.showProgressBar,position:t.detail.position?t.detail.position:{X:"Top",Y:"Right"},timeOut:t.detail.timeOut?t.detail.timeOut:2e3});const i=document.getElementsByClassName("e-toast-title"),r={success:"green",warning:"orange",alert:"red"};for(let e=0;e<i.length;e++)i[e].style.color=r[t.detail.type];const n=document.getElementsByClassName("e-toast-progress");for(let e=0;e<n.length;e++)n[e].style.backgroundColor=r[t.detail.type]}},!1),t.setAttribute("data-listener-bb-toast","true")),o("div",{children:o(V,{ref:e,type:"toast"})})},zr=()=>{let e,t,i;const r=()=>{P.broadcast({key:t,status:"action1",keyData:i}),e.hide()},n=()=>{P.broadcast({key:t,status:"action2"}),e.hide()},s=()=>{P.sendMessage({key:"bb_dialog_res",status:"clicked",keyData:i}),e.hide()},a=()=>{document.addEventListener("dialog_alert",function(o){"dialog_alert"===o.detail.key&&(t=o.detail.callbackUrl,i=o.detail.keyData,e="confirm"===o.detail.type?m.confirm({title:o.detail.title,content:o.detail.content,width:o.detail.width?o.detail.width:"500px",position:o.detail.position?o.detail.position:{X:"center",Y:"center"},okButton:{...o.detail.okButton,click:r.bind(this)},cancelButton:{...o.detail.cancelButton,click:n.bind(this)}}):m.alert({title:o.detail.title,content:o.detail.content,width:o.detail.width?o.detail.width:"500px",position:o.detail.position?o.detail.position:{X:"center",Y:"center"},okButton:{...o.detail.okButton,click:s.bind(this)}}))})},c=document.getElementsByTagName("body")[0];return c.hasAttribute("data-listener-dialog-alert")||(a(),c.setAttribute("data-listener-dialog-alert","true")),o("div",{id:"dialog-target"})},vr=({fields:e,allowFiltering:t,id:i,onChange:r,value:n,name:s,className:a,disabled:c})=>o(g,{id:i,fields:e,allowFiltering:t,change:r,value:n,name:s,className:a,disabled:c,type:"dropdowntree"}),wr=({id:e,name:n,dataSource:c,fields:h,sortOrder:u,placeholder:l,allowFiltering:p,popupHeight:d,required:g,label:m,autofill:N,onChange:j,value:D,className:I,disabled:S,showSelectAll:b,displayText:z,filterable:v,onFilterChange:w,dropDownRef:O,readonly:T,filterType:L,valueTemplate:A,itemTemplate:C,isLazy:x=!1,disableTooltip:E=!1})=>{const[k,P]=t(),U=r(null);i(()=>{O?.(U)},[]),i(()=>{P(U?.current?.text)},[D]),i(()=>{z&&(U.current.text=z)},[c]);const Q=e=>{j?.(e,{}),P(U?.current?.text)},Y=e=>{if(v&&w?.(e),!x&&"contains"===L&&c&&h){const t=c.filter(t=>t[h.text].toLowerCase().includes(e.text.toLowerCase()));e.updateData&&e.updateData(t,"")}};return s("div",{className:"",children:[m&&s("label",{htmlFor:e,className:"form-label",children:[m," ",g?o("i",{className:"req-lbl",children:"*"}):o(a,{})]}),o(y,{beforeOpen:e=>E?e.cancel=!0:((e,t)=>{t||(e.cancel=!0)})(e,k),content:E?"":k,children:T?o(M,{id:e,name:n,popupHeight:d,dataSource:c,fields:h,placeholder:l,sortOrder:u,filtering:Y,allowFiltering:p,change:Q,value:D,className:I,enabled:!S,type:"dropdown",ref:U,valueTemplate:A,itemTemplate:C}):o(f,{id:e,name:n,popupHeight:d,dataSource:c,fields:h,placeholder:l,sortOrder:u,autofill:N,filtering:Y,allowFiltering:p,change:Q,value:D,className:I,enabled:!S,type:"dropdown",allowCustom:!1,ref:U,valueTemplate:A,itemTemplate:C})})]})},Or=({id:e,name:n,rows:c,cols:h,value:u,label:l="",onChange:p,required:d,className:g,placeholder:f,disabled:M,onKeypress:m,maxLength:N,onBlur:j,defaultValue:D,enableTooltip:I,maxWords:S})=>{const[b,z]=t(""),v=r(null);i(()=>{z(v.current?.value)},[D,u]);const w=(e,t)=>{t&&I||(e.cancel=!0)},O=e=>{const t=e.target.value,i=t.trim().split(/\s+/);S&&i.length>S||(z(t),p?.(e,{}))},T=e=>{e.stopPropagation(),m?.(e)};return s(a,{children:[l&&s("label",{htmlFor:e,className:"form-label",children:[l," ",d?o("i",{className:"req-lbl",children:"*"}):o(a,{})]}),o(y,null!=u?{beforeOpen:e=>w(e,b),content:I?b:"",children:o("textarea",{id:e,name:n,rows:c,cols:h,value:u,onChange:O,onKeyDown:T,required:d,className:g,placeholder:f,disabled:M,maxLength:N,ref:v})}:{beforeOpen:e=>w(e,b),content:I?b:"",children:o("textarea",{id:e,name:n,rows:c,cols:h,onChange:O,required:d,className:g,placeholder:f,disabled:M,onKeyDown:T,defaultValue:D,onBlur:j,maxLength:N,ref:v})})]})},Tr=({id:e,content:t,target:i,className:r,position:n,children:c})=>s(a,{children:[o(y,{id:e,className:r,content:t,target:i,position:n}),c]}),Lr=({documentId:e,documentAPI:r,documentName:n,actualPath:s,downloadPdfFile:c})=>{const[h,u]=t({documentAPI:"",documentId:"",readOnly:!1,documentName:"",actualPath:"",downloadPdfFile:!1});i(()=>{p()},[]),i(()=>{if(""!=h.documentAPI&&""!=h.documentId){document.getElementById("pdfviewer-container").ej2_instances[0].load(h.documentId,null),l()}else if(""!=h.actualPath){document.getElementById("pdfviewer-container").ej2_instances[0].load(h.actualPath,null),l()}},[h.documentAPI,h.actualPath]);const l=()=>{if(String(document.body.children[2].getAttribute("style")).indexOf("font-family: Helvetica Neue, Helvetica, Arial;")>-1){document.body.children[2].style.display="none"}setTimeout(()=>{let e=document.getElementById("pdfviewer-container_toolbarItemsContainer"),t=document.getElementById("pdfviewer-container_submitFormContainer");if(t&&(t.style.display="none"),e&&e.children.length>0){let t=e.children[0],i=!1,r='<div class="pdf-action-container" style="float: right">';for(let e=0;e<t.children.length;e++)"savePdfBtn"==t.children[e].id&&(i=!0);i||(r+='<div id="closePdfBtn" class="e-toolbar-item e-pv-pan-tool-container e-popup-text action-btn-sep" aria-disabled="false" style="color: #5c636a; " title="Close" >\n <svg id="closePdftbSVG" width="20" height="20" style="width: 18px" fill="currentColor" class="bi bi-close" viewBox="0 0 16 16">\n <path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>\n </svg>\n </div> \n <div class="e-toolbar-item e-pv-pan-separator-container e-separator" aria-disabled="false"></div>',r+="</div>",t.insertAdjacentHTML("beforeend",r+"</div>")),document.getElementById("closePdfBtn")?.addEventListener("click",()=>(e=>{const t=JSON.stringify({message:e,date:Date.now()});window.postMessage(t,"*")})("closeDoc"))}},2e3)},p=()=>{u({documentAPI:r,documentId:e,readOnly:h.readOnly,documentName:n,actualPath:s||"",downloadPdfFile:c||!1})};return o(a,{children:""!=h.documentAPI&&o(a,{children:o("div",{className:"control-section",children:o(F,{id:"pdfviewer-container",documentPath:"",serviceUrl:h.documentAPI+"api/PdfViewer",style:{height:"100vh"},downloadFileName:n,enableDownload:h.downloadPdfFile,contextMenuOption:"None",children:o(B,{services:[W,G,H,q,_,J,Z,K,X,$,ee]})})})})})},Ar=({documentId:e,documentAPI:r,documentName:n,downloadImageFile:c})=>{const[h,u]=t(""),[l,p]=t({documentAPI:"",documentId:"",readOnly:!1,documentName:"",downloadImageFile:!1});i(()=>{d()},[]);const d=()=>{p({documentAPI:r,documentId:e,documentName:n,readOnly:!1,downloadImageFile:c||!1})};i(()=>{g(l.documentId)},[l.documentId]);const g=async e=>{let t;if(k.isValidGUID(e)){const i=await E.get(l.documentAPI+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/download?documentId="+e,{responseType:"blob",onDownloadProgress:e=>{const t=Math.round(100*e.loaded/e.total);console.log(t)}});t=URL.createObjectURL(new Blob([i.data])),u(t)}else t=""};return o(a,{children:""!=l.documentAPI&&s("div",{className:"img-container",children:[o("button",{onClick:()=>(e=>{const t=JSON.stringify({message:e,date:Date.now()});window.parent.postMessage(t,"*")})("closeDoc"),children:"X"}),l.downloadImageFile&&o("button",{onClick:()=>{if(h){const e=document.createElement("a");e.href=h,e.download=l.documentName||"image",document.body.appendChild(e),e.click(),document.body.removeChild(e)}},className:"download-button",children:o("span",{children:o("i",{className:"bi bi-download"})})}),o("img",{className:"image-content",src:h,alt:""})]})})};let Cr=[{prefixIcon:"e-close",tooltipText:"Close",text:"Close",id:"closeDocument"},"Separator","Undo","Redo","Separator","Image","Table","Hyperlink","Bookmark","TableOfContents","Separator","Header","Footer","PageSetup","PageNumber","Break","InsertFootnote","InsertEndnote","Separator","Find","Separator","Comments","TrackChanges","LocalClipboard","Separator","FormFields","UpdateFields"];te.Inject(ie,re,ne,oe,se,ae,ce,he,ue,le,pe,de,ge,fe,Me,ye,me,Ne,je,De,Ie,Se,be,ze,ve,we,Oe),Te.Inject(Oe,ue);const xr=({documentId:e,documentAPI:r,documentName:n})=>{let s;const[c,h]=t({documentAPI:"",documentId:"",readOnly:!1,documentName:""});i(()=>{u()},[]);const u=()=>{h({documentAPI:r,documentId:e,documentName:n,readOnly:!1})};i(()=>{""!=c.documentAPI&&""!=c.documentId&&l(c.documentId)},[c.documentId]);const l=e=>{let t=new XMLHttpRequest,i={keyXc:e},r=c.documentAPI+"api/DocumentEditor/LoadDocument";t.open("POST",r,!0),t.setRequestHeader("Content-Type","application/json;charset=UTF-8"),t.setRequestHeader("Access-Control-Allow-Origin","http://localhost:5002"),t.onreadystatechange=()=>{4===t.readyState&&(200!==t.status&&304!==t.status||(s.open(t.responseText),setTimeout(()=>{s.enableTrackChanges||(s.enableTrackChanges=!0)},1e3)))},t.send(JSON.stringify(i))},p=e=>{const t=JSON.stringify({message:e,date:Date.now()});window.parent.postMessage(t,"*")},d=e=>{const{ctrlKey:t,metaKey:i,keyCode:r}=e.event;(t||i)&&[67,88,86].includes(r)&&(e.event.preventDefault(),e.event.stopPropagation(),e.isHandled=!0)};return o(a,{children:""!=c.documentAPI&&o(a,{children:o("div",{onContextMenu:e=>{document.querySelectorAll(".e-menu-item").forEach(e=>{e.style.display="none"})},children:o(Te,{height:"100vh",enableToolbar:!0,serviceUrl:r+"/",enableTrackChanges:!0,ref:e=>{e&&(s=e.documentEditor,s.keyDown=d)},toolbarItems:Cr,toolbarClick:(e=>{switch(e.item.id){case"closeDocument":p("closeDoc");break;case"expand":p("expand")}}).bind(void 0),documentEditorSettings:{optimizeSfdt:!1},restrictEditing:!0})})})})},Er=()=>{const[e,r]=t({documentId:"",showEditor:!1,documentAPI:"",documentName:"",documentType:"",actualPath:"",downloadPdfFile:!1,downloadImageFile:!1});i(()=>{window.addEventListener("message",n)},[]);const n=e=>{try{let t=c(e.data);if(t.message)switch(t.message){case"_viewDocumentEditor":t.entity&&r({documentId:t.entity?.documentId||"",documentAPI:t.entity.documentAPI,showEditor:!0,documentName:t.entity.documentName,documentType:t.entity.documentType.toLowerCase(),actualPath:t.entity?.actualPath,downloadPdfFile:!!t.entity?.downloadPdfFile&&t.entity?.downloadPdfFile,downloadImageFile:!!t.entity?.downloadImageFile&&t.entity?.downloadImageFile});break;case"closeDoc":r(e=>({...e,showEditor:!1}))}}catch(e){}},c=e=>{try{return JSON.parse(e)}catch(e){return{message:"Failed"}}};return o(a,{children:e.showEditor&&s("div",{className:"popup-iframe",children:[("docx"===e.documentType||"doc"===e.documentType)&&o(xr,{documentId:e.documentId,documentAPI:e.documentAPI,documentName:e.documentName}),"pdf"===e.documentType&&o(Lr,{documentId:e.documentId,documentAPI:e.documentAPI,documentName:e.documentName,actualPath:e.actualPath,downloadPdfFile:e.downloadPdfFile}),("jpg"===e.documentType||"jpeg"===e.documentType||"png"===e.documentType||"gif"===e.documentType)&&o(Ar,{documentId:e.documentId,documentAPI:e.documentAPI,documentName:e.documentName,downloadImageFile:e.downloadImageFile})]})})};function kr(e){return"[object String]"===Object.prototype.toString.call(e)?"$s"+e:"$o"+e.toString()}var Pr=function(){function e(e){this.table={},this.nElements=0,this.toStr=e||kr}return e.prototype.getValue=function(e){var t=this.table["$"+this.toStr(e)];if(void 0!==t)return t.value},e.prototype.setValue=function(e,t){var i="$"+this.toStr(e);this.table[i],this.nElements++,this.table[i]={key:e,value:t}},e.prototype.remove=function(e){var t="$"+this.toStr(e),i=this.table[t];return delete this.table[t],this.nElements--,i.value},e.prototype.keys=function(){for(var e=[],t=Object.keys(this.table),i=0;i<t.length;i++){var r=this.table[t[i]];e.push(r.key)}return e},e.prototype.values=function(){for(var e=[],t=Object.keys(this.table),i=0;i<t.length;i++){var r=this.table[t[i]];e.push(r.value)}return e},e.prototype.containsKey=function(e){return!(void 0===this.getValue(e))},e.prototype.clear=function(){this.table={},this.nElements=0},e.prototype.size=function(){return this.nElements},e}(),Ur=function(){function e(e){this.stringStartMark="/",this.internalValue="",this.isSaving6=!1,this.position6=-1,this.internalValue=this.normalizeValue(e)}return Object.defineProperty(e.prototype,"status",{get:function(){return this.status6},set:function(e){this.status6=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSaving",{get:function(){return this.isSaving6},set:function(e){this.isSaving6=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"objectCollectionIndex",{get:function(){return this.index6},set:function(e){this.index6=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.position6},set:function(e){this.position6=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.internalValue},set:function(e){var t=e;null!==e&&e.length>0?(t=e,this.internalValue=this.normalizeValue(t)):this.internalValue=t},enumerable:!0,configurable:!0}),e.prototype.save=function(e){e.write(this.toString())},e.prototype.toString=function(){return this.stringStartMark+this.escapeString(this.value)},e.prototype.clone=function(t){var i=new e;return i.value=this.internalValue,i},e.prototype.escapeString=function(t){for(var i="",r=0,n=t.length;r<n;r++){var o=t[r];e.delimiters.indexOf(o),i+=o}return i},e.prototype.normalizeValue=function(e,t){return e},e.delimiters="()<>[]{}/%}",e.replacements=[" ","\t","\n","\r"],e}(),Qr=function(){function e(){this.forTest="test",this.forTest=e.obj}return e.obj="obj",e.endObj="endobj",e.r="R",e.whiteSpace=" ",e.slash="/",e.newLine="\r\n",e.stream="stream",e.endStream="endstream",e.xref="xref",e.f="f",e.n="n",e.trailer="trailer",e.startxref="startxref",e.eof="%%EOF",e.header="%PDF-1.5",e.beginText="BT",e.endText="ET",e.beginPath="m",e.appendLineSegment="l",e.stroke="S",e.fill="f",e.fillEvenOdd="f*",e.fillStroke="B",e.fillStrokeEvenOdd="B*",e.appendbeziercurve="c",e.appendRectangle="re",e.saveState="q",e.restoreState="Q",e.paintXObject="Do",e.modifyCtm="cm",e.modifyTM="Tm",e.setLineWidth="w",e.setLineCapStyle="J",e.setLineJoinStyle="j",e.setDashPattern="d",e.setFlatnessTolerance="i",e.closePath="h",e.closeStrokePath="s",e.closeFillStrokePath="b",e.setCharacterSpace="Tc",e.setWordSpace="Tw",e.setHorizontalScaling="Tz",e.setTextLeading="TL",e.setFont="Tf",e.setRenderingMode="Tr",e.setTextRise="Ts",e.setTextScaling="Tz",e.setCoords="Td",e.goToNextLine="T*",e.setText="Tj",e.setTextWithFormatting="TJ",e.setTextOnNewLine="'",e.selectcolorspaceforstroking="CS",e.selectcolorspacefornonstroking="cs",e.setrbgcolorforstroking="RG",e.setrbgcolorfornonstroking="rg",e.setcmykcolorforstroking="K",e.setcmykcolorfornonstroking="k",e.setgraycolorforstroking="G",e.setgraycolorfornonstroking="g",e.clipPath="W",e.clipPathEvenOdd="W*",e.endPath="n",e.setGraphicsState="gs",e.comment="%",e.evenOdd="*",e.setMiterLimit="M",e.setColorAndPattern="scn",e.setColorAndPatternStroking="SCN",e}(),Yr=function(){this.pages="Pages",this.kids="Kids",this.count="Count",this.resources="Resources",this.type="Type",this.size="Size",this.mediaBox="MediaBox",this.parent="Parent",this.root="Root",this.decodeParms="DecodeParms",this.filter="Filter",this.font="Font",this.type1="Type1",this.baseFont="BaseFont",this.encoding="Encoding",this.subtype="Subtype",this.contents="Contents",this.procset="ProcSet",this.colorSpace="ColorSpace",this.extGState="ExtGState",this.pattern="Pattern",this.xObject="XObject",this.length="Length",this.width="Width",this.height="Height",this.bitsPerComponent="BitsPerComponent",this.image="Image",this.dctdecode="DCTDecode",this.columns="Columns",this.blackIs1="BlackIs1",this.k="K",this.s="S",this.predictor="Predictor",this.deviceRgb="DeviceRGB",this.next="Next",this.action="Action",this.link="Link",this.a="A",this.annot="Annot",this.p="P",this.c="C",this.rect="Rect",this.uri="URI",this.annots="Annots",this.ca="ca",this.CA="CA",this.xyz="XYZ",this.fit="Fit",this.dest="Dest",this.BM="BM",this.flatedecode="FlateDecode",this.rotate="Rotate",this.bBox="BBox",this.form="Form",this.w="W",this.cIDFontType2="CIDFontType2",this.cIDToGIDMap="CIDToGIDMap",this.identity="Identity",this.dw="DW",this.fontDescriptor="FontDescriptor",this.cIDSystemInfo="CIDSystemInfo",this.fontName="FontName",this.flags="Flags",this.fontBBox="FontBBox",this.missingWidth="MissingWidth",this.stemV="StemV",this.italicAngle="ItalicAngle",this.capHeight="CapHeight",this.ascent="Ascent",this.descent="Descent",this.leading="Leading",this.avgWidth="AvgWidth",this.fontFile2="FontFile2",this.maxWidth="MaxWidth",this.xHeight="XHeight",this.stemH="StemH",this.registry="Registry",this.ordering="Ordering",this.supplement="Supplement",this.type0="Type0",this.identityH="Identity-H",this.toUnicode="ToUnicode",this.descendantFonts="DescendantFonts",this.background="Background",this.shading="Shading",this.matrix="Matrix",this.antiAlias="AntiAlias",this.function="Function",this.extend="Extend",this.shadingType="ShadingType",this.coords="Coords",this.domain="Domain",this.range="Range",this.functionType="FunctionType",this.bitsPerSample="BitsPerSample",this.patternType="PatternType",this.paintType="PaintType",this.tilingType="TilingType",this.xStep="XStep",this.yStep="YStep",this.viewerPreferences="ViewerPreferences",this.centerWindow="CenterWindow",this.displayTitle="DisplayTitle",this.fitWindow="FitWindow",this.hideMenuBar="HideMenubar",this.hideToolBar="HideToolbar",this.hideWindowUI="HideWindowUI",this.pageMode="PageMode",this.pageLayout="PageLayout",this.duplex="Duplex",this.printScaling="PrintScaling"},Rr=function(){function e(e){if(this.position7=-1,this.primitiveItems=new Pr,this.prefix="<<",this.suffix=">>",this.resources=[],this.object=null,this.archive=!0,this.isResource=!1,void 0===e)this.primitiveItems=new Pr,this.encrypt=!0,this.dictionaryProperties=new Yr;else{this.primitiveItems=new Pr;for(var t=e.items.keys(),i=e.items.values(),r=0;r<e.items.size();r++)this.primitiveItems.setValue(t[r],i[r]);this.status=e.status,this.freezeChanges(this),this.encrypt=!0,this.dictionaryProperties=new Yr}}return Object.defineProperty(e.prototype,"items",{get:function(){return this.primitiveItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.status7},set:function(e){this.status7=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSaving",{get:function(){return this.isSaving7},set:function(e){this.isSaving7=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"objectCollectionIndex",{get:function(){return this.index7},set:function(e){this.index7=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clonedObject",{get:function(){return this.object},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.position7},set:function(e){this.position7=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Count",{get:function(){return this.primitiveItems.size()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Dictionary",{get:function(){return this},enumerable:!0,configurable:!0}),e.prototype.getArchive=function(){return this.archive},e.prototype.setArchive=function(e){this.archive=e},e.prototype.setEncrypt=function(e){this.encrypt=e,this.modify()},e.prototype.getEncrypt=function(){return this.encrypt},e.prototype.freezeChanges=function(e){this.bChanged=!1},e.prototype.clone=function(t){return new e},e.prototype.modify=function(){this.bChanged=!0},e.prototype.remove=function(e){"string"!=typeof e?(this.primitiveItems.remove(e.value),this.modify()):this.remove(new Ur(e))},e.prototype.containsKey=function(e){return this.primitiveItems.containsKey(e.toString())},e.prototype.onBeginSave=function(){this.beginSave.sender.beginSave()},e.prototype.onFontDictionaryBeginSave=function(){this.fontDictionaryBeginSave.sender.fontDictionaryBeginSave()},e.prototype.onDescendantFontBeginSave=function(){this.descendantFontBeginSave.sender.descendantFontBeginSave()},e.prototype.onTemplateBeginSave=function(){this.pageBeginDrawTemplate.sender.pageBeginSave()},e.prototype.onBeginAnnotationSave=function(){this.annotationBeginSave.sender.beginSave()},e.prototype.onSectionBeginSave=function(e){var t=this.sectionBeginSave;t.sender.beginSave(t.state,e)},e.prototype.save=function(e,t){void 0===t?this.save(e,!0):(e.write(this.prefix),void 0!==this.beginSave&&this.onBeginSave(),void 0!==this.descendantFontBeginSave&&this.onDescendantFontBeginSave(),void 0!==this.fontDictionaryBeginSave&&this.onFontDictionaryBeginSave(),void 0!==this.annotationBeginSave&&this.onBeginAnnotationSave(),void 0!==this.sectionBeginSave&&this.onSectionBeginSave(e),void 0!==this.pageBeginDrawTemplate&&this.onTemplateBeginSave(),this.Count>0&&this.saveItems(e),e.write(this.suffix),e.write(Qr.newLine))},e.prototype.saveItems=function(e){e.write(Qr.newLine);for(var t=this.primitiveItems.keys(),i=this.primitiveItems.values(),r=0;r<t.length;r++){var n=t[r];new Ur(n).save(e),e.write(Qr.whiteSpace),i[r].save(e),e.write(Qr.newLine)}},e}(),Vr=function(e){this.sender=e},Fr=function(e){this.sender=e},Br=function(e){this.sender=e},Wr=function(e,t){this.sender=e,this.state=t},Gr=function(e){this.sender=e},Hr=function(){function e(e){this.position5=-1,this.value=e}return Object.defineProperty(e.prototype,"intValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isInteger",{get:function(){return this.integer},set:function(e){this.integer=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.status5},set:function(e){this.status5=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSaving",{get:function(){return this.isSaving5},set:function(e){this.isSaving5=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"objectCollectionIndex",{get:function(){return this.index5},set:function(e){this.index5=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.position5},set:function(e){this.position5=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.save=function(e){e.write(this.intValue.toString())},e.prototype.clone=function(t){return new e(this.value)},e.floatToString=function(e){var t=e.toFixed(2);return"0.00"===t&&(t=".00"),t},e.min=function(e,t,i){var r=Math.min(e,t);return Math.min(i,r)},e}(),qr=function(){function e(t){if(this.startMark="[",this.endMark="]",this.position9=-1,this.clonedObject9=null,this.isFont=!1,void 0===t)this.internalElements=[];else if(void 0===t||t instanceof e){var i=t;this.internalElements=[];for(n=0;n<i.elements.length;n++)this.internalElements.push(i.elements[n])}else for(var r=t,n=0;n<r.length;n++){var o=new Hr(r[n]);this.add(o)}}return e.prototype.items=function(e){return this.internalElements[e]},Object.defineProperty(e.prototype,"count",{get:function(){return this.internalElements.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.status9},set:function(e){this.status9=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSaving",{get:function(){return this.isSaving9},set:function(e){this.isSaving9=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clonedObject",{get:function(){return this.clonedObject9},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.position9},set:function(e){this.position9=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"objectCollectionIndex",{get:function(){return this.index9},set:function(e){this.index9=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CrossTable",{get:function(){return this.pdfCrossTable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"elements",{get:function(){return this.internalElements},enumerable:!0,configurable:!0}),e.prototype.add=function(e){void 0===this.internalElements&&(this.internalElements=[]),this.internalElements.push(e),this.markedChange()},e.prototype.markedChange=function(){this.bChanged=!0},e.prototype.contains=function(e){for(var t=0;t<this.internalElements.length;t++){var i=this.internalElements[t],r=e;if(null!=i&&void 0!==i&&null!=r&&void 0!==r&&i.value===r.value)return!0}return!1},e.prototype.getItems=function(e){return this.internalElements[e]},e.prototype.save=function(e){e.write(this.startMark);for(var t=0,i=this.count;t<i;t++)this.getItems(t).save(e),t+1!==i&&e.write(Qr.whiteSpace);e.write(this.endMark)},e.prototype.clone=function(t){this.clonedObject9=null;for(var i=new e,r=0;r<this.internalElements.length;r++){var n=this.internalElements[r];i.add(n.clone(t))}return i.pdfCrossTable=t,this.clonedObject9=i,i},e.fromRectangle=function(t){return new e([t.x,t.y,t.width,t.height])},e.prototype.insert=function(e,t){if(e<this.internalElements.length&&e>0){for(var i=[],r=0;r<e;r++)i.push(this.internalElements[r]);i.push(t);for(r=e;r<this.internalElements.length;r++)i.push(this.internalElements[r]);this.internalElements=i}else this.internalElements.push(t);this.markChanged()},e.prototype.indexOf=function(e){return this.internalElements.indexOf(e)},e.prototype.remove=function(e){var t=this.internalElements.indexOf(e);this.internalElements[t]=null,this.markChanged()},e.prototype.removeAt=function(e){if(this.internalElements.length>e){for(var t=[],i=0;i<e;i++)t.push(this.internalElements[i]);for(i=e+1;i<this.internalElements.length;i++)t.push(this.internalElements[i]);this.internalElements=t}this.markChanged()},e.prototype.clear=function(){this.internalElements=[],this.markChanged()},e.prototype.markChanged=function(){this.bChanged=!0},e}(),_r=function(){function e(){}return e.save=function(e,t){if(null==e||""===e)throw new Error("ArgumentException: fileName cannot be undefined, null or empty");var i=e.substring(e.lastIndexOf(".")+1,e.length),r=this.getMimeType(i);if(""!==r&&(t=new Blob([t],{type:r})),this.isMicrosoftBrowser)navigator.msSaveBlob(t,e);else{var n=document.createElementNS("http://www.w3.org/1999/xhtml","a");this.saveInternal(e,i,t,n,"download"in n)}},e.saveInternal=function(e,t,i,r,n){if(n){r.download=e;var o=window.URL.createObjectURL(i);r.href=o;var s=document.createEvent("MouseEvent");s.initEvent("click",!0,!0),r.dispatchEvent(s),setTimeout(function(){window.URL.revokeObjectURL(o),o=void 0})}else if("docx"!==t&&"xlsx"!==t){var a=window.URL.createObjectURL(i);window.open(a,"_blank")||(window.location.href=a)}else{var c=new FileReader;c.onloadend=function(){window.open(c.result,"_blank")||(window.location.href=c.result)},c.readAsDataURL(i)}},e.getMimeType=function(e){var t="";switch(e){case"html":t="text/html";break;case"pdf":t="application/pdf";break;case"docx":t="application/vnd.openxmlformats-officedocument.wordprocessingml.document";break;case"xlsx":t="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";break;case"txt":t="text/plain"}return t},e}(),Jr=function(){function e(e){this.emitBOM=!0,this.encodingType="Ansi",this.initBOM(e)}return Object.defineProperty(e.prototype,"includeBom",{get:function(){return this.emitBOM},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.encodingType},set:function(e){this.encodingType=e},enumerable:!0,configurable:!0}),e.prototype.initBOM=function(e){this.emitBOM=null==e||e},e.prototype.getByteCount=function(e){return Zr(e,"string"),""===e?this.utf8Len(e.charCodeAt(0)):(null!==this.type&&void 0!==this.type||(this.type="Ansi"),this.getByteCountInternal(e,0,e.length))},e.prototype.utf8Len=function(e){return e<=127?1:e<=2047?2:e<=65535?3:e<=2097151?4:0},e.prototype.isHighSurrogate=function(e){return e>=55296&&e<=56319},e.prototype.toCodepoint=function(e,t){return((e=(1023&e)<<10)|1023&t)+65536},e.prototype.getByteCountInternal=function(e,t,i){var r=0;if("Utf8"===this.encodingType||"Unicode"===this.encodingType){for(var n="Utf8"===this.encodingType,o=0;o<i;o++){var s=e.charCodeAt(n?t:t++);if(this.isHighSurrogate(s))if(n){var a=s,c=e.charCodeAt(++t);r+=this.utf8Len(this.toCodepoint(a,c))}else r+=4,++o;else r+=n?this.utf8Len(s):2;n&&t++}return r}return r=i},e.prototype.getBytes=function(e,t,i){if(Zr(e,"string"),Zr(t,"charIndex"),Zr(i,"charCount"),t<0||i<0)throw new RangeError("Argument Out Of Range Exception: charIndex or charCount is less than zero");if(e.length-t<i)throw new RangeError("Argument Out Of Range Exception: charIndex and charCount do not denote a valid range in string");if(""===e)return new ArrayBuffer(0);null!==this.type&&void 0!==this.type||(this.type="Ansi");var r=this.getByteCountInternal(e,t,i);switch(this.type){case"Utf8":return this.getBytesOfUtf8Encoding(r,e,t,i);case"Unicode":return this.getBytesOfUnicodeEncoding(r,e,t,i);default:return this.getBytesOfAnsiEncoding(r,e,t,i)}},e.prototype.getString=function(e,t,i){if(Zr(e,"bytes"),Zr(t,"index"),Zr(i,"count"),t<0||i<0)throw new RangeError("Argument Out Of Range Exception: index or count is less than zero");if(e.byteLength-t<i)throw new RangeError("Argument Out Of Range Exception: index and count do not denote a valid range in bytes");if(0===e.byteLength||0===i)return"";null!==this.type&&void 0!==this.type||(this.type="Ansi");var r="",n=new Uint8Array(e);switch(this.type){case"Utf8":return this.getStringOfUtf8Encoding(n,t,i);case"Unicode":var o=new Uint16Array(e);return r=this.getStringofUnicodeEncoding(o,t,i);default:for(var s=t,a=0;a<i;a++){var c=n[s];r+=String.fromCharCode(c),s++}return r}},e.prototype.getBytesOfAnsiEncoding=function(e,t,i,r){for(var n=new ArrayBuffer(e),o=new Uint8Array(n),s=0,a=0;a<r;a++){var c=t.charCodeAt(i++);o[s]=c<2048?c:63,s++}return n},e.prototype.getBytesOfUtf8Encoding=function(e,t,i,r){for(var n=new ArrayBuffer(e),o=new Uint8Array(n),s=i,a=0,c=0;c<r;c++){var h=t.charCodeAt(s);h<=127?o[a]=h:h<2048?(o[a]=192|h>>6,o[++a]=128|63&h):h<55296||h>=57344?(o[a]=224|h>>12,o[++a]=128|h>>6&63,o[++a]=128|63&h):(o[a]=239,o[++a]=191,o[++a]=189),++a,++s}return n},e.prototype.getBytesOfUnicodeEncoding=function(e,t,i,r){for(var n=new ArrayBuffer(e),o=new Uint16Array(n),s=0;s<r;s++){var a=t.charCodeAt(s);o[s]=a}return n},e.prototype.getStringOfUtf8Encoding=function(e,t,i){for(var r=0,n=t,o="";r<i;r++){for(var s=e[n++];n>e.length;)return o;s>127&&(s>191&&s<224&&n<i?s=(31&s)<<6|63&e[n]:s>223&&s<240&&n<e.byteLength?s=(15&s)<<12|(63&e[n])<<6|63&e[++n]:s>239&&s<248&&n<e.byteLength&&(s=(7&s)<<18|(63&e[n])<<12|(63&e[++n])<<6|63&e[++n]),++n),o+=String.fromCharCode(s)}return o},e.prototype.getStringofUnicodeEncoding=function(e,t,i){if(i>e.length)throw new RangeError("ArgumentOutOfRange_Count");for(var r=new Uint16Array(i),n=0;n<i&&n<e.length;n++)r[n]=e[t++];return String.fromCharCode.apply(null,r)},e.prototype.destroy=function(){this.emitBOM=void 0,this.encodingType=void 0},e}();function Zr(e,t){if(null==e)throw new Error("ArgumentException: "+t+" cannot be null or undefined")}var Kr,Xr=function(){function e(e){this.bufferBlob=new Blob([""]),this.bufferText="",this.init(e),_r.isMicrosoftBrowser=!!navigator.msSaveBlob}return Object.defineProperty(e.prototype,"buffer",{get:function(){return this.flush(),this.bufferBlob},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"encoding",{get:function(){return this.enc},enumerable:!0,configurable:!0}),e.prototype.init=function(e){null==e?(this.enc=new Jr(!1),this.enc.type="Utf8"):(this.enc=e,this.setBomByte())},e.prototype.setBomByte=function(){if(this.encoding.includeBom)switch(this.encoding.type){case"Unicode":var e=new ArrayBuffer(2),t=new Uint8Array(e);t[0]=255,t[1]=254,this.bufferBlob=new Blob([e]);break;case"Utf8":var i=new ArrayBuffer(3),r=new Uint8Array(i);r[0]=239,r[1]=187,r[2]=191,this.bufferBlob=new Blob([i]);break;default:this.bufferBlob=new Blob([""])}},e.prototype.save=function(e){""!==this.bufferText&&this.flush(),_r.save(e,this.buffer)},e.prototype.write=function(e){if(void 0===this.encoding)throw new Error("Object Disposed Exception: current writer is disposed");Zr(e,"string"),this.bufferText+=e,this.bufferText.length>=10240&&this.flush()},e.prototype.flush=function(){if(void 0!==this.bufferText&&null!==this.bufferText&&0!==this.bufferText.length){var e=this.encoding.getBytes(this.bufferText,0,this.bufferText.length);this.bufferText="",this.bufferBlob=new Blob([this.bufferBlob,e])}},e.prototype.writeLine=function(e){if(void 0===this.encoding)throw new Error("Object Disposed Exception: current writer is disposed");Zr(e,"string"),this.bufferText=this.bufferText+e+"\r\n",this.bufferText.length>=10240&&this.flush()},e.prototype.destroy=function(){this.bufferBlob=void 0,this.bufferText=void 0,this.enc instanceof Jr&&this.enc.destroy(),this.enc=void 0},e}(),$r=new Int16Array(286),en=new Uint8Array(286),tn=new Int16Array(30),rn=new Uint8Array(30),nn=function(){function e(t){this.pendingBuffer=new Uint8Array(65536),this.pendingBufLength=0,this.pendingBufCache=0,this.pendingBufBitsInCache=0,this.bufferPosition=0,this.extraBits=0,this.currentHash=0,this.matchStart=0,this.matchLength=0,this.matchPrevAvail=!1,this.blockStart=0,this.stringStart=0,this.lookAhead=0,this.totalBytesIn=0,this.inputOffset=0,this.inputEnd=0,this.windowSize=32768,this.windowMask=this.windowSize-1,this.hashSize=32768,this.hashMask=this.hashSize-1,this.hashShift=Math.floor(17/3),this.maxDist=this.windowSize-262,this.checkSum=1,this.noWrap=!1,e.isHuffmanTreeInitiated||(e.initHuffmanTree(),e.isHuffmanTreeInitiated=!0),this.treeLiteral=new on(this,286,257,15),this.treeDistances=new on(this,30,1,15),this.treeCodeLengths=new on(this,19,4,7),this.arrDistances=new Uint16Array(16384),this.arrLiterals=new Uint8Array(16384),this.stream=[],this.dataWindow=new Uint8Array(2*this.windowSize),this.hashHead=new Int16Array(this.hashSize),this.hashPrevious=new Int16Array(this.windowSize),this.blockStart=this.stringStart=1,this.noWrap=t,t||this.writeZLibHeader()}return Object.defineProperty(e.prototype,"compressedData",{get:function(){return this.stream},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getCompressedString",{get:function(){var e="";if(void 0!==this.stream)for(var t=0;t<this.stream.length;t++)e+=String.fromCharCode.apply(null,this.stream[t]);return e},enumerable:!0,configurable:!0}),e.prototype.write=function(e,t,i){if(null==e)throw new Error("ArgumentException: data cannot null or undefined");var r=t+i;if(0>t||t>r||r>e.length)throw new Error("ArgumentOutOfRangeException: Offset or length is incorrect");if("string"==typeof e){var n=new Jr(!1);n.type="Utf8",r=t+(e=new Uint8Array(n.getBytes(e,0,e.length))).length}for(this.inputBuffer=e,this.inputOffset=t,this.inputEnd=r,this.noWrap||(this.checkSum=sn.checksumUpdate(this.checkSum,this.inputBuffer,this.inputOffset,r));this.inputEnd!==this.inputOffset||0!==this.pendingBufLength;)this.pendingBufferFlush(),this.compressData(!1)},e.prototype.writeZLibHeader=function(){var e=30720;e|=64,e+=31-e%31,this.pendingBufferWriteShortBytes(e)},e.prototype.pendingBufferWriteShortBytes=function(e){this.pendingBuffer[this.pendingBufLength++]=e>>8,this.pendingBuffer[this.pendingBufLength++]=e},e.prototype.compressData=function(e){var t;do{this.fillWindow();var i=e&&this.inputEnd===this.inputOffset;t=this.compressSlow(i,e)}while(0===this.pendingBufLength&&t);return t},e.prototype.compressSlow=function(e,t){if(this.lookAhead<262&&!e)return!1;for(;this.lookAhead>=262||e;){if(0===this.lookAhead)return this.lookAheadCompleted(t);this.stringStart>=2*this.windowSize-262&&this.slideWindow();var i=this.matchStart,r=this.matchLength;if(this.lookAhead>=3&&this.discardMatch(),r>=3&&this.matchLength<=r?r=this.matchPreviousBest(i,r):this.matchPreviousAvailable(),this.bufferPosition>=16384)return this.huffmanIsFull(t)}return!0},e.prototype.discardMatch=function(){var e=this.insertString();0!==e&&this.stringStart-e<=this.maxDist&&this.findLongestMatch(e)&&this.matchLength<=5&&3===this.matchLength&&this.stringStart-this.matchStart>4096&&(this.matchLength=2)},e.prototype.matchPreviousAvailable=function(){this.matchPrevAvail&&this.huffmanTallyLit(255&this.dataWindow[this.stringStart-1]),this.matchPrevAvail=!0,this.stringStart++,this.lookAhead--},e.prototype.matchPreviousBest=function(e,t){this.huffmanTallyDist(this.stringStart-1-e,t),t-=2;do{this.stringStart++,this.lookAhead--,this.lookAhead>=3&&this.insertString()}while(--t>0);return this.stringStart++,this.lookAhead--,this.matchPrevAvail=!1,this.matchLength=2,t},e.prototype.lookAheadCompleted=function(e){return this.matchPrevAvail&&this.huffmanTallyLit(255&this.dataWindow[this.stringStart-1]),this.matchPrevAvail=!1,this.huffmanFlushBlock(this.dataWindow,this.blockStart,this.stringStart-this.blockStart,e),this.blockStart=this.stringStart,!1},e.prototype.huffmanIsFull=function(e){var t=this.stringStart-this.blockStart;this.matchPrevAvail&&t--;var i=e&&0===this.lookAhead&&!this.matchPrevAvail;return this.huffmanFlushBlock(this.dataWindow,this.blockStart,t,i),this.blockStart+=t,!i},e.prototype.fillWindow=function(){for(this.stringStart>=this.windowSize+this.maxDist&&this.slideWindow();this.lookAhead<262&&this.inputOffset<this.inputEnd;){var e=2*this.windowSize-this.lookAhead-this.stringStart;e>this.inputEnd-this.inputOffset&&(e=this.inputEnd-this.inputOffset),this.dataWindow.set(this.inputBuffer.subarray(this.inputOffset,this.inputOffset+e),this.stringStart+this.lookAhead),this.inputOffset+=e,this.totalBytesIn+=e,this.lookAhead+=e}this.lookAhead>=3&&this.updateHash()},e.prototype.slideWindow=function(){this.dataWindow.set(this.dataWindow.subarray(this.windowSize,this.windowSize+this.windowSize),0),this.matchStart-=this.windowSize,this.stringStart-=this.windowSize,this.blockStart-=this.windowSize;for(var e=0;e<this.hashSize;++e){var t=65535&this.hashHead[e];this.hashHead[e]=t>=this.windowSize?t-this.windowSize:0}for(e=0;e<this.windowSize;e++){t=65535&this.hashPrevious[e];this.hashPrevious[e]=t>=this.windowSize?t-this.windowSize:0}},e.prototype.insertString=function(){var e,t=(this.currentHash<<this.hashShift^this.dataWindow[this.stringStart+2])&this.hashMask;return this.hashPrevious[this.stringStart&this.windowMask]=e=this.hashHead[t],this.hashHead[t]=this.stringStart,this.currentHash=t,65535&e},e.prototype.findLongestMatch=function(e){var t,i=4096,r=258,n=this.stringStart,o=this.stringStart+this.matchLength,s=Math.max(this.matchLength,2),a=Math.max(this.stringStart-this.maxDist,0),c=this.stringStart+258-1,h=this.dataWindow[o-1],u=this.dataWindow[o],l=this.dataWindow;s>=32&&(i>>=2),r>this.lookAhead&&(r=this.lookAhead);do{if(l[e+s]===u&&l[e+s-1]===h&&l[e]===l[n]&&l[e+1]===l[n+1]){for(t=e+2,n+=2;l[++n]===l[++t]&&l[++n]===l[++t]&&l[++n]===l[++t]&&l[++n]===l[++t]&&l[++n]===l[++t]&&l[++n]===l[++t]&&l[++n]===l[++t]&&l[++n]===l[++t]&&n<c;);if(n>o){if(this.matchStart=e,o=n,(s=n-this.stringStart)>=r)break;h=l[o-1],u=l[o]}n=this.stringStart}}while((e=65535&this.hashPrevious[e&this.windowMask])>a&&0!==--i);return this.matchLength=Math.min(s,this.lookAhead),this.matchLength>=3},e.prototype.updateHash=function(){this.currentHash=this.dataWindow[this.stringStart]<<this.hashShift^this.dataWindow[this.stringStart+1]},e.prototype.huffmanTallyLit=function(e){return this.arrDistances[this.bufferPosition]=0,this.arrLiterals[this.bufferPosition++]=e,this.treeLiteral.codeFrequencies[e]++,this.bufferPosition>=16384},e.prototype.huffmanTallyDist=function(e,t){this.arrDistances[this.bufferPosition]=e,this.arrLiterals[this.bufferPosition++]=t-3;var i=this.huffmanLengthCode(t-3);this.treeLiteral.codeFrequencies[i]++,i>=265&&i<285&&(this.extraBits+=Math.floor((i-261)/4));var r=this.huffmanDistanceCode(e-1);return this.treeDistances.codeFrequencies[r]++,r>=4&&(this.extraBits+=Math.floor(r/2-1)),this.bufferPosition>=16384},e.prototype.huffmanFlushBlock=function(e,t,i,r){this.treeLiteral.codeFrequencies[256]++,this.treeLiteral.buildTree(),this.treeDistances.buildTree(),this.treeLiteral.calculateBLFreq(this.treeCodeLengths),this.treeDistances.calculateBLFreq(this.treeCodeLengths),this.treeCodeLengths.buildTree();for(var n=4,o=18;o>n;o--)this.treeCodeLengths.codeLengths[on.huffCodeLengthOrders[o]]>0&&(n=o+1);var s=14+3*n+this.treeCodeLengths.getEncodedLength()+this.treeLiteral.getEncodedLength()+this.treeDistances.getEncodedLength()+this.extraBits,a=this.extraBits;for(o=0;o<286;o++)a+=this.treeLiteral.codeFrequencies[o]*en[o];for(o=0;o<30;o++)a+=this.treeDistances.codeFrequencies[o]*rn[o];s>=a&&(s=a),t>=0&&i+4<s>>3?this.huffmanFlushStoredBlock(e,t,i,r):s==a?(this.pendingBufferWriteBits(2+(r?1:0),3),this.treeLiteral.setStaticCodes($r,en),this.treeDistances.setStaticCodes(tn,rn),this.huffmanCompressBlock(),this.huffmanReset()):(this.pendingBufferWriteBits(4+(r?1:0),3),this.huffmanSendAllTrees(n),this.huffmanCompressBlock(),this.huffmanReset())},e.prototype.huffmanFlushStoredBlock=function(e,t,i,r){this.pendingBufferWriteBits(0+(r?1:0),3),this.pendingBufferAlignToByte(),this.pendingBufferWriteShort(i),this.pendingBufferWriteShort(~i),this.pendingBufferWriteByteBlock(e,t,i),this.huffmanReset()},e.prototype.huffmanLengthCode=function(e){if(255===e)return 285;for(var t=257;e>=8;)t+=4,e>>=1;return t+e},e.prototype.huffmanDistanceCode=function(e){for(var t=0;e>=4;)t+=2,e>>=1;return t+e},e.prototype.huffmanSendAllTrees=function(e){this.treeCodeLengths.buildCodes(),this.treeLiteral.buildCodes(),this.treeDistances.buildCodes(),this.pendingBufferWriteBits(this.treeLiteral.treeLength-257,5),this.pendingBufferWriteBits(this.treeDistances.treeLength-1,5),this.pendingBufferWriteBits(e-4,4);for(var t=0;t<e;t++)this.pendingBufferWriteBits(this.treeCodeLengths.codeLengths[on.huffCodeLengthOrders[t]],3);this.treeLiteral.writeTree(this.treeCodeLengths),this.treeDistances.writeTree(this.treeCodeLengths)},e.prototype.huffmanReset=function(){this.bufferPosition=0,this.extraBits=0,this.treeLiteral.reset(),this.treeDistances.reset(),this.treeCodeLengths.reset()},e.prototype.huffmanCompressBlock=function(){for(var e=0;e<this.bufferPosition;e++){var t=255&this.arrLiterals[e],i=this.arrDistances[e];if(0!==i--){var r=this.huffmanLengthCode(t);this.treeLiteral.writeCodeToStream(r);var n=Math.floor((r-261)/4);n>0&&n<=5&&this.pendingBufferWriteBits(t&(1<<n)-1,n);var o=this.huffmanDistanceCode(i);this.treeDistances.writeCodeToStream(o),(n=Math.floor(o/2-1))>0&&this.pendingBufferWriteBits(i&(1<<n)-1,n)}else this.treeLiteral.writeCodeToStream(t)}this.treeLiteral.writeCodeToStream(256)},e.prototype.pendingBufferWriteBits=function(e,t){var i=new Uint32Array(1);i[0]=this.pendingBufCache|e<<this.pendingBufBitsInCache,this.pendingBufCache=i[0],this.pendingBufBitsInCache+=t,this.pendingBufferFlushBits()},e.prototype.pendingBufferFlush=function(e){if(this.pendingBufferFlushBits(),this.pendingBufLength>0){var t=new Uint8Array(this.pendingBufLength);t.set(this.pendingBuffer.subarray(0,this.pendingBufLength),0),this.stream.push(t)}this.pendingBufLength=0},e.prototype.pendingBufferFlushBits=function(){for(var e=0;this.pendingBufBitsInCache>=8&&this.pendingBufLength<65536;)this.pendingBuffer[this.pendingBufLength++]=this.pendingBufCache,this.pendingBufCache>>=8,this.pendingBufBitsInCache-=8,e++;return e},e.prototype.pendingBufferWriteByteBlock=function(e,t,i){var r=e.subarray(t,t+i);this.pendingBuffer.set(r,this.pendingBufLength),this.pendingBufLength+=i},e.prototype.pendingBufferWriteShort=function(e){this.pendingBuffer[this.pendingBufLength++]=e,this.pendingBuffer[this.pendingBufLength++]=e>>8},e.prototype.pendingBufferAlignToByte=function(){this.pendingBufBitsInCache>0&&(this.pendingBuffer[this.pendingBufLength++]=this.pendingBufCache),this.pendingBufCache=0,this.pendingBufBitsInCache=0},e.initHuffmanTree=function(){for(var e=0;e<144;)$r[e]=on.bitReverse(48+e<<8),en[e++]=8;for(;e<256;)$r[e]=on.bitReverse(256+e<<7),en[e++]=9;for(;e<280;)$r[e]=on.bitReverse(-256+e<<9),en[e++]=7;for(;e<286;)$r[e]=on.bitReverse(-88+e<<8),en[e++]=8;for(e=0;e<30;e++)tn[e]=on.bitReverse(e<<11),rn[e]=5},e.prototype.close=function(){do{this.pendingBufferFlush(!0),this.compressData(!0)||(this.pendingBufferFlush(!0),this.pendingBufferAlignToByte(),this.noWrap||(this.pendingBufferWriteShortBytes(this.checkSum>>16),this.pendingBufferWriteShortBytes(65535&this.checkSum)),this.pendingBufferFlush(!0))}while(this.inputEnd!==this.inputOffset||0!==this.pendingBufLength)},e.prototype.destroy=function(){this.stream=[],this.stream=void 0,this.pendingBuffer=void 0,this.treeLiteral=void 0,this.treeDistances=void 0,this.treeCodeLengths=void 0,this.arrLiterals=void 0,this.arrDistances=void 0,this.hashHead=void 0,this.hashPrevious=void 0,this.dataWindow=void 0,this.inputBuffer=void 0,this.pendingBufLength=void 0,this.pendingBufCache=void 0,this.pendingBufBitsInCache=void 0,this.bufferPosition=void 0,this.extraBits=void 0,this.currentHash=void 0,this.matchStart=void 0,this.matchLength=void 0,this.matchPrevAvail=void 0,this.blockStart=void 0,this.stringStart=void 0,this.lookAhead=void 0,this.totalBytesIn=void 0,this.inputOffset=void 0,this.inputEnd=void 0,this.windowSize=void 0,this.windowMask=void 0,this.hashSize=void 0,this.hashMask=void 0,this.hashShift=void 0,this.maxDist=void 0,this.checkSum=void 0,this.noWrap=void 0},e.isHuffmanTreeInitiated=!1,e}(),on=function(){function e(e,t,i,r){this.writer=e,this.codeMinCount=i,this.maxLength=r,this.codeFrequency=new Uint16Array(t),this.lengthCount=new Int32Array(r)}return Object.defineProperty(e.prototype,"treeLength",{get:function(){return this.codeCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"codeLengths",{get:function(){return this.codeLength},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"codeFrequencies",{get:function(){return this.codeFrequency},enumerable:!0,configurable:!0}),e.prototype.setStaticCodes=function(e,t){var i=new Int16Array(e.length);i.set(e,0),this.codes=i;var r=new Uint8Array(t.length);r.set(t,0),this.codeLength=r},e.prototype.reset=function(){for(var e=0;e<this.codeFrequency.length;e++)this.codeFrequency[e]=0;this.codes=void 0,this.codeLength=void 0},e.prototype.writeCodeToStream=function(e){this.writer.pendingBufferWriteBits(65535&this.codes[e],this.codeLength[e])},e.prototype.buildCodes=function(){var t=new Int32Array(this.maxLength);this.codes=new Int16Array(this.codeCount);for(var i=0,r=0;r<this.maxLength;r++)t[r]=i,i+=this.lengthCount[r]<<15-r;for(var n=0;n<this.codeCount;n++){var o=this.codeLength[n];o>0&&(this.codes[n]=e.bitReverse(t[o-1]),t[o-1]+=1<<16-o)}},e.bitReverse=function(t){return e.reverseBits[15&t]<<12|e.reverseBits[t>>4&15]<<8|e.reverseBits[t>>8&15]<<4|e.reverseBits[t>>12]},e.prototype.getEncodedLength=function(){for(var e=0,t=0;t<this.codeFrequency.length;t++)e+=this.codeFrequency[t]*this.codeLength[t];return e},e.prototype.calculateBLFreq=function(e){for(var t,i,r,n=-1,o=0;o<this.codeCount;){r=1;var s=this.codeLength[o];for(0===s?(t=138,i=3):(t=6,i=3,n!==s&&(e.codeFrequency[s]++,r=0)),n=s,o++;o<this.codeCount&&n===this.codeLength[o]&&(o++,!(++r>=t)););r<i?e.codeFrequency[n]+=r:0!==n?e.codeFrequency[16]++:r<=10?e.codeFrequency[17]++:e.codeFrequency[18]++}},e.prototype.writeTree=function(e){for(var t,i,r,n=-1,o=0;o<this.codeCount;){r=1;var s=this.codeLength[o];for(0===s?(t=138,i=3):(t=6,i=3,n!==s&&(e.writeCodeToStream(s),r=0)),n=s,o++;o<this.codeCount&&n===this.codeLength[o]&&(o++,!(++r>=t)););if(r<i)for(;r-- >0;)e.writeCodeToStream(n);else 0!==n?(e.writeCodeToStream(16),this.writer.pendingBufferWriteBits(r-3,2)):r<=10?(e.writeCodeToStream(17),this.writer.pendingBufferWriteBits(r-3,3)):(e.writeCodeToStream(18),this.writer.pendingBufferWriteBits(r-11,7))}},e.prototype.buildTree=function(){for(var e=this.codeFrequency.length,t=new Int32Array(e),i=0,r=0,n=0;n<e;n++){var o=this.codeFrequency[n];if(0!==o){for(var s=i++,a=0;s>0&&this.codeFrequency[t[a=Math.floor((s-1)/2)]]>o;)t[s]=t[a],s=a;t[s]=n,r=n}}for(;i<2;)t[i++]=r<2?++r:0;this.codeCount=Math.max(r+1,this.codeMinCount);for(var c=i,h=new Int32Array(4*i-2),u=new Int32Array(2*i-1),l=0;l<i;l++){var p=t[l],d=2*l;h[d]=p,h[d+1]=-1,u[l]=this.codeFrequency[p]<<8,t[l]=l}this.constructHuffmanTree(t,i,u,c,h),this.buildLength(h)},e.prototype.constructHuffmanTree=function(e,t,i,r,n){do{for(var o=e[0],s=e[--t],a=i[s],c=0,h=1;h<t;)h+1<t&&i[e[h]]>i[e[h+1]]&&h++,e[c]=e[h],h=2*(c=h)+1;for(;(h=c)>0&&i[e[c=Math.floor((h-1)/2)]]>a;)e[h]=e[c];e[h]=s;var u=e[0];n[2*(s=r++)]=o,n[2*s+1]=u;var l=Math.min(255&i[o],255&i[u]);for(i[s]=a=i[o]+i[u]-l+1,c=0,h=1;h<t;)h+1<t&&i[e[h]]>i[e[h+1]]&&h++,e[c]=e[h],h=2*(c=h)+1;for(;(h=c)>0&&i[e[c=Math.floor((h-1)/2)]]>a;)e[h]=e[c];e[h]=s}while(t>1)},e.prototype.buildLength=function(e){this.codeLength=new Uint8Array(this.codeFrequency.length);for(var t=Math.floor(e.length/2),i=Math.floor((t+1)/2),r=0,n=0;n<this.maxLength;n++)this.lengthCount[n]=0;if(0!==(r=this.calculateOptimalCodeLength(e,r,t))){var o=this.maxLength-1;do{for(;0===this.lengthCount[--o];);do{this.lengthCount[o]--,this.lengthCount[++o]++,r-=1<<this.maxLength-1-o}while(r>0&&o<this.maxLength-1)}while(r>0);this.recreateTree(e,r,i)}},e.prototype.recreateTree=function(e,t,i){this.lengthCount[this.maxLength-1]+=t,this.lengthCount[this.maxLength-2]-=t;for(var r=2*i,n=this.maxLength;0!==n;n--)for(var o=this.lengthCount[n-1];o>0;){var s=2*e[r++];-1===e[s+1]&&(this.codeLength[e[s]]=n,o--)}},e.prototype.calculateOptimalCodeLength=function(e,t,i){var r=new Int32Array(i);r[i-1]=0;for(var n=i-1;n>=0;n--){var o=2*n+1;if(-1!==e[o]){(s=r[n]+1)>this.maxLength&&(s=this.maxLength,t++),r[e[o-1]]=r[e[o]]=s}else{var s=r[n];this.lengthCount[s-1]++,this.codeLength[e[o-1]]=r[n]}}return t},e.reverseBits=[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15],e.huffCodeLengthOrders=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],e}(),sn=function(){function e(){}return e.checksumUpdate=function(t,i,r,n){var o=new Uint32Array(1);o[0]=t;for(var s=o[0],a=o[0]=65535&s,c=o[0]=s>>e.checkSumBitOffset;n>0;){var h=Math.min(n,e.checksumIterationCount);for(n-=h;--h>=0;)c+=a+=o[0]=255&i[r++];a%=e.checksumBase,c%=e.checksumBase}return s=c<<e.checkSumBitOffset|a},e.checkSumBitOffset=16,e.checksumBase=65521,e.checksumIterationCount=3800,e}(),an=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),cn=function(e){function t(t,i){var r=e.call(this,t)||this;return r.dicPrefix="stream",r.dicSuffix="endstream",r.clonedObject2=null,r.bCompress=!0,void 0!==t||void 0!==i?(r.dataStream2=[],r.dataStream2=i,r.bCompress2=!1):(r.dataStream2=[],r.bCompress2=!0),r}return an(t,e),Object.defineProperty(t.prototype,"internalStream",{get:function(){return this.dataStream2},set:function(e){this.dataStream2=[],this.dataStream2=e,this.modify()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"compress",{get:function(){return this.bCompress},set:function(e){this.bCompress=e,this.modify()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.dataStream2},set:function(e){this.dataStream2=[],this.dataStream2=e,this.modify()},enumerable:!0,configurable:!0}),t.prototype.clearStream=function(){this.internalStream=[],this.items.containsKey(this.dictionaryProperties.filter)&&this.remove(this.dictionaryProperties.filter),this.bCompress=!0,this.modify()},t.prototype.write=function(e){if(null==e)throw new Error("ArgumentNullException:text");if(e.length<=0)throw new Error("ArgumentException: Can not write an empty string, text");this.dataStream2.push(e),this.modify()},t.prototype.writeBytes=function(e){if(null===e)throw new Error("ArgumentNullException:data");if(e.length<=0)throw new Error("ArgumentException: Can not write an empty bytes, data");for(var t="",i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);this.dataStream2.push(t),this.modify()},t.prototype.onCmapBeginSave=function(){this.cmapBeginSave.sender.cmapBeginSave()},t.prototype.onFontProgramBeginSave=function(){this.fontProgramBeginSave.sender.fontProgramBeginSave()},t.prototype.compressContent=function(e,t){if(this.bCompress){for(var i=[],r=0;r<e.length;r++)i.push(e.charCodeAt(r));var n=new Uint8Array(i),o=new nn;o.write(n,0,n.length),o.close(),e=o.getCompressedString,this.addFilter(this.dictionaryProperties.flatedecode)}return e},t.prototype.addFilter=function(e){var t=this.items.getValue(this.dictionaryProperties.filter);t instanceof vn&&(t=t.object);var i=t,r=t;null!=r&&((i=new qr).insert(0,r),this.items.setValue(this.dictionaryProperties.filter,i)),r=new Ur(e),null==i?this.items.setValue(this.dictionaryProperties.filter,r):i.insert(0,r)},t.prototype.save=function(t){void 0!==this.cmapBeginSave&&this.onCmapBeginSave(),void 0!==this.fontProgramBeginSave&&this.onFontProgramBeginSave();for(var i="",r=0;r<this.data.length;r++)i+=this.data[r];i.length>1&&!this.isResource&&(i="q\r\n"+i+"Q\r\n");var n=(i=this.compressContent(i,t)).length;this.items.setValue(this.dictionaryProperties.length,new Hr(n)),e.prototype.save.call(this,t,!1),t.write(this.dicPrefix),t.write(Qr.newLine),i.length>0&&t.write(i),t.write(Qr.newLine),t.write(this.dicSuffix),t.write(Qr.newLine)},t.bytesToString=function(e){for(var t="",i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return t},t}(Rr),hn=function(e){this.sender=e},un=function(e){this.sender=e};!function(e){var t,i;(t=e.ForceEncoding||(e.ForceEncoding={}))[t.None=0]="None",t[t.Ascii=1]="Ascii",t[t.Unicode=2]="Unicode",function(e){e[e.StringValue=0]="StringValue",e[e.ByteBuffer=1]="ByteBuffer"}(i||(i={}))}(Kr||(Kr={}));var ln,pn,dn,gn,fn,Mn,yn,mn,Nn,jn,Dn,In,Sn,bn=function(){function e(e){if(this.bHex=!1,this.position1=-1,this.clonedObject1=null,this.bDecrypted=!1,this.isParentDecrypted=!1,this.isPacked=!1,this.isFormField=!1,this.isColorSpace=!1,this.isHexString=!0,void 0===e)this.bHex=!1;else if(!(e.length>0&&"0xfeff"===e[0])){this.stringValue=e,this.data=[];for(var t=0;t<e.length;++t)this.data.push(e.charCodeAt(t))}}return Object.defineProperty(e.prototype,"hex",{get:function(){return this.bHex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.stringValue},set:function(e){this.stringValue=e,this.data=null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.status1},set:function(e){this.status1=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSaving",{get:function(){return this.isSaving1},set:function(e){this.isSaving1=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"objectCollectionIndex",{get:function(){return this.index1},set:function(e){this.index1=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clonedObject",{get:function(){return this.clonedObject1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.position1},set:function(e){this.position1=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CrossTable",{get:function(){return this.crossTable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"converted",{get:function(){return this.bConverted},set:function(e){this.bConverted=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"encode",{get:function(){return this.bForceEncoding},set:function(e){this.bForceEncoding=e},enumerable:!0,configurable:!0}),e.bytesToHex=function(e){if(null==e)return"";return""},e.prototype.save=function(t){if(null===t)throw new Error("ArgumentNullException : writer");void 0!==this.encode&&this.encode===Kr.ForceEncoding.Ascii?t.write(this.pdfEncode()):t.write(e.stringMark[0]+this.value+e.stringMark[1])},e.prototype.pdfEncode=function(){var t="";if(void 0!==this.encode&&this.encode===Kr.ForceEncoding.Ascii){for(var i=this.escapeSymbols(this.value),r=0;r<i.length;r++)t+=String.fromCharCode(i[r]);t=e.stringMark[0]+t+e.stringMark[1]}else t=this.value;return t},e.prototype.escapeSymbols=function(e){for(var t=[],i=0;i<e.length;i++){var r=e.charCodeAt(i);switch(r){case 40:case 41:case 92:t.push(92),t.push(r);break;case 13:t.push(92),t.push(114);break;default:t.push(r)}}return t},e.prototype.clone=function(t){if(null!==this.clonedObject1&&this.clonedObject1.CrossTable===t)return this.clonedObject1;this.clonedObject1=null;var i=new e(this.stringValue);return i.bHex=this.bHex,i.crossTable=t,i.isColorSpace=this.isColorSpace,this.clonedObject1=i,i},e.toUnicodeArray=function(e,t){if(null==e)throw new Error("Argument Null Exception : value");for(var i=[],r=0;r<e.length;r++){var n=e.charCodeAt(r);i.push(n/256>>>0),i.push(255&n)}return i},e.byteToString=function(e){if(null==e)throw new Error("Argument Null Exception : stream");for(var t="",i=0;i<e.length;++i)t+=String.fromCharCode(e[i]);return t},e.stringMark="()",e.hexStringMark="<>",e.hexFormatPattern="{0:X2}",e}(),zn=function(){function e(e,t){this.index3=-1,this.position3=-1,this.objNumber=0,this.genNumber=0,"number"==typeof e&&"number"==typeof t?(this.objNumber=e,this.genNumber=t):(this.objNumber=Number(e),this.genNumber=Number(t))}return Object.defineProperty(e.prototype,"status",{get:function(){return this.status3},set:function(e){this.status3=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSaving",{get:function(){return this.isSaving3},set:function(e){this.isSaving3=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"objectCollectionIndex",{get:function(){return this.index3},set:function(e){this.index3=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.position3},set:function(e){this.position3=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.save=function(e){e.write(this.toString())},e.prototype.toString=function(){return this.objNumber.toString()+" "+this.genNumber.toString()+" R"},e.prototype.clone=function(e){return null},e}(),vn=function(){function e(e,t){this.index4=-1,this.position4=-1,this.objectIndex=-1,this.dictionaryProperties=new Yr,this.initialize(e)}return Object.defineProperty(e.prototype,"status",{get:function(){return this.status4},set:function(e){this.status4=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSaving",{get:function(){return this.isSaving4},set:function(e){this.isSaving4=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"objectCollectionIndex",{get:function(){return this.index4},set:function(e){this.index4=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.position4},set:function(e){this.position4=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"object",{get:function(){return this.primitiveObject},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reference",{get:function(){return this.pdfReference},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.objectIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.primitiveObject},enumerable:!0,configurable:!0}),e.prototype.initialize=function(e){if(e instanceof qr||e instanceof Rr||e instanceof Ur||e instanceof Hr||e instanceof cn||e instanceof zn||e instanceof bn)this.primitiveObject=e;else{var t=e;this.initialize(t.element)}},e.prototype.save=function(e){e.position;var t=e.document.crossTable;this.object.isSaving=!0;t.getReference(this.object).save(e)},e.prototype.clone=function(e){return null},e}();!function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(ln||(ln={})),function(e){e[e.Top=0]="Top",e[e.Middle=1]="Middle",e[e.Bottom=2]="Bottom"}(pn||(pn={})),function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right",e[e.Justify=3]="Justify"}(dn||(dn={})),function(e){e[e.Fill=0]="Fill",e[e.Stroke=1]="Stroke",e[e.FillStroke=2]="FillStroke",e[e.None=3]="None",e[e.ClipFlag=4]="ClipFlag",e[e.ClipFill=4]="ClipFill",e[e.ClipStroke=5]="ClipStroke",e[e.ClipFillStroke=6]="ClipFillStroke",e[e.Clip=7]="Clip"}(gn||(gn={})),function(e){e[e.Miter=0]="Miter",e[e.Round=1]="Round",e[e.Bevel=2]="Bevel"}(fn||(fn={})),function(e){e[e.Flat=0]="Flat",e[e.Round=1]="Round",e[e.Square=2]="Square"}(Mn||(Mn={})),function(e){e[e.Solid=0]="Solid",e[e.Dash=1]="Dash",e[e.Dot=2]="Dot",e[e.DashDot=3]="DashDot",e[e.DashDotDot=4]="DashDotDot",e[e.Custom=5]="Custom"}(yn||(yn={})),function(e){e[e.Winding=0]="Winding",e[e.Alternate=1]="Alternate"}(mn||(mn={})),function(e){e[e.Rgb=0]="Rgb",e[e.Cmyk=1]="Cmyk",e[e.GrayScale=2]="GrayScale",e[e.Indexed=3]="Indexed"}(Nn||(Nn={})),function(e){e[e.Normal=0]="Normal",e[e.Multiply=1]="Multiply",e[e.Screen=2]="Screen",e[e.Overlay=3]="Overlay",e[e.Darken=4]="Darken",e[e.Lighten=5]="Lighten",e[e.ColorDodge=6]="ColorDodge",e[e.ColorBurn=7]="ColorBurn",e[e.HardLight=8]="HardLight",e[e.SoftLight=9]="SoftLight",e[e.Difference=10]="Difference",e[e.Exclusion=11]="Exclusion",e[e.Hue=12]="Hue",e[e.Saturation=13]="Saturation",e[e.Color=14]="Color",e[e.Luminosity=15]="Luminosity"}(jn||(jn={})),function(e){e[e.Centimeter=0]="Centimeter",e[e.Pica=1]="Pica",e[e.Pixel=2]="Pixel",e[e.Point=3]="Point",e[e.Inch=4]="Inch",e[e.Document=5]="Document",e[e.Millimeter=6]="Millimeter"}(Dn||(Dn={})),function(e){e[e.Fit=0]="Fit",e[e.Center=1]="Center",e[e.Stretch=2]="Stretch",e[e.Tile=3]="Tile"}(In||(In={})),function(e){e[e.None=0]="None",e[e.LeftToRight=1]="LeftToRight",e[e.RightToLeft=2]="RightToLeft"}(Sn||(Sn={}));var wn,On,Tn,Ln,An,Cn,xn,En,kn,Pn,Un,Qn,Yn,Rn=function(){function e(t,i,r,n){void 0===t?void 0!==i&&void 0!==r&&void 0!==n?this.assignRGB(i,r,n):this.filled=!1:t instanceof e?(this.redColor=t.r,this.greenColor=t.g,this.blueColor=t.b,this.grayColor=t.gray,this.alpha=t.alpha,this.filled=0!==this.alpha):"number"==typeof t&&void 0===i&&void 0===r&&void 0===n?(t<0&&(t=0),t>1&&(t=1),this.redColor=t*e.maxColourChannelValue,this.greenColor=t*e.maxColourChannelValue,this.blueColor=t*e.maxColourChannelValue,this.cyanColor=t,this.magentaColor=t,this.yellowColor=t,this.blackColor=t,this.grayColor=t,this.alpha=e.maxColourChannelValue,this.filled=!0):void 0===n?this.assignRGB(t,i,r):this.assignRGB(i,r,n,t)}return e.prototype.assignRGB=function(t,i,r,n){void 0===t||void 0===i||void 0===r?this.filled=!1:(this.cyanColor=0,this.magentaColor=0,this.yellowColor=0,this.blackColor=0,this.grayColor=0,this.redColor=t,this.greenColor=i,this.blueColor=r,this.alpha=void 0===n?e.maxColourChannelValue:n,this.filled=!0,this.assignCMYK(t,i,r))},e.prototype.assignCMYK=function(t,i,r){var n=t/e.maxColourChannelValue,o=i/e.maxColourChannelValue,s=r/e.maxColourChannelValue,a=Hr.min(1-n,1-o,1-s),c=1===a?0:(1-n-a)/(1-a),h=1===a?0:(1-o-a)/(1-a),u=1===a?0:(1-s-a)/(1-a);this.blackColor=a,this.cyanColor=c,this.magentaColor=h,this.yellowColor=u},Object.defineProperty(e.prototype,"r",{get:function(){return this.redColor},set:function(e){this.redColor=e,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"red",{get:function(){return this.r/e.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this.blueColor},set:function(e){this.blueColor=e,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blue",{get:function(){return this.b/e.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"c",{get:function(){return this.cyanColor},set:function(e){this.cyanColor=e<0?0:e>1?1:e,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"k",{get:function(){return this.blackColor},set:function(e){this.blackColor=e<0?0:e>1?1:e,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"m",{get:function(){return this.magentaColor},set:function(e){this.magentaColor=e<0?0:e>1?1:e,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.yellowColor},set:function(e){this.yellowColor=e<0?0:e>1?1:e,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"g",{get:function(){return this.greenColor},set:function(e){this.greenColor=e,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"green",{get:function(){return this.g/e.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gray",{get:function(){return(this.redColor+this.greenColor+this.blueColor)/(3*e.maxColourChannelValue)},set:function(t){this.grayColor=t<0?0:t>1?1:t,this.r=this.grayColor*e.maxColourChannelValue,this.g=this.grayColor*e.maxColourChannelValue,this.b=this.grayColor*e.maxColourChannelValue,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return!this.filled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"a",{get:function(){return this.alpha},set:function(e){this.alpha=e<0?0:e,this.filled=!0},enumerable:!0,configurable:!0}),e.prototype.toString=function(e,t){if(this.isEmpty)return"";var i="";switch(e){case Nn.Rgb:i=this.rgbToString(t);break;case Nn.GrayScale:i=this.grayScaleToString(t);break;case Nn.Cmyk:i=this.cmykToString(t)}return i},e.prototype.grayScaleToString=function(t){var i=this.gray,r="",n=null;return null==(n=t?e.grayStringsSroke.containsKey(i)?e.grayStringsSroke.getValue(i):null:e.grayStringsFill.containsKey(i)?e.grayStringsFill.getValue(i):null)?t&&(r=i.toString()+" G",e.grayStringsSroke.setValue(i,r)):r=n.toString(),r+Qr.newLine},e.prototype.rgbToString=function(t){var i=this.r,r=this.g,n=this.b,o=(i<<16)+(r<<8)+n;t&&(o+=1<<24);var s="",a=null;if(e.rgbStrings.containsKey(o)&&(a=e.rgbStrings.getValue(o)),null==a){var c=i/e.maxColourChannelValue,h=r/e.maxColourChannelValue,u=n/e.maxColourChannelValue;s=t?c.toString()+" "+h.toString()+" "+u.toString()+" RG":c.toString()+" "+h.toString()+" "+u.toString()+" rg",e.rgbStrings.setValue(o,s)}else s=a.toString();return s+Qr.newLine},e.prototype.cmykToString=function(e){var t=this.c,i=this.m,r=this.y,n=this.b;return t.toString()+" "+i.toString()+" "+r.toString()+" "+n.toString()+" K"+Qr.newLine},e.prototype.toArray=function(e){var t=new qr;if(e===Nn.Rgb)t.add(new Hr(this.red)),t.add(new Hr(this.green)),t.add(new Hr(this.blue));return t},e.rgbStrings=new Pr,e.grayStringsSroke=new Pr,e.grayStringsFill=new Pr,e.maxColourChannelValue=255,e}(),Vn=function(e,t){void 0===e?(this.x=0,this.y=0):(this.x=null!==e?e:0,this.y=null!==t?t:0)},Fn=function(e,t){void 0===t?(this.height=0,this.width=0):(this.height=null!==t?t:0,this.width=null!==e?e:0)},Bn=function(e,t,i,r){if(typeof e==typeof e&&void 0===e)this.x=0,this.y=0,this.height=0,this.width=0;else if(e instanceof Vn&&t instanceof Fn&&void 0===i){var n=e;this.x=n.x,this.y=n.y;var o=t;this.height=o.height,this.width=o.width}else{var s=e,a=t,c=i,h=r;this.x=s,this.y=a,this.height=h,this.width=c}},Wn=function(){function e(e,t,i,r){this.left=e,this.top=t,this.right=i,this.bottom=r}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topLeft",{get:function(){return new Vn(this.left,this.top)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return new Fn(this.width,this.height)},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.topLeft+"x"+this.size},e}(),Gn=function(){function e(){}return e.prototype.clone=function(){return this},e}(),Hn=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),qn=function(e){function t(t){var i=e.call(this)||this;return i.pdfColor=t,i}return Hn(t,e),Object.defineProperty(t.prototype,"color",{get:function(){return this.pdfColor},set:function(e){this.pdfColor=e},enumerable:!0,configurable:!0}),t.prototype.monitorChanges=function(e,t,i,r,n){if(null==t)throw new Error("ArgumentNullException:streamWriter");var o=!1;return o=!0,t.setColorAndSpace(this.pdfColor,n,!1),o},t.prototype.resetChanges=function(e){e.setColorAndSpace(new Rn(0,0,0),Nn.Rgb,!1)},t}(Gn);!function(e){e[e.Regular=0]="Regular",e[e.Bold=1]="Bold",e[e.Italic=2]="Italic",e[e.Underline=4]="Underline",e[e.Strikeout=8]="Strikeout"}(wn||(wn={})),function(e){e[e.Helvetica=0]="Helvetica",e[e.Courier=1]="Courier",e[e.TimesRoman=2]="TimesRoman",e[e.Symbol=3]="Symbol",e[e.ZapfDingbats=4]="ZapfDingbats"}(On||(On={})),function(e){e[e.Standard=0]="Standard",e[e.TrueType=1]="TrueType",e[e.TrueTypeEmbedded=2]="TrueTypeEmbedded"}(Tn||(Tn={})),function(e){e[e.None=0]="None",e[e.Word=1]="Word",e[e.WordOnly=2]="WordOnly",e[e.Character=3]="Character"}(Ln||(Ln={})),function(e){e[e.None=0]="None",e[e.SuperScript=1]="SuperScript",e[e.SubScript=2]="SubScript"}(An||(An={})),function(e){e[e.Unknown=0]="Unknown",e[e.StandardEncoding=1]="StandardEncoding",e[e.MacRomanEncoding=2]="MacRomanEncoding",e[e.MacExpertEncoding=3]="MacExpertEncoding",e[e.WinAnsiEncoding=4]="WinAnsiEncoding",e[e.PdfDocEncoding=5]="PdfDocEncoding",e[e.IdentityH=6]="IdentityH"}(Cn||(Cn={})),function(e){e[e.Apple=0]="Apple",e[e.Microsoft=4]="Microsoft",e[e.Trimmed=6]="Trimmed"}(xn||(xn={})),function(e){e[e.Unknown=0]="Unknown",e[e.Symbol=1]="Symbol",e[e.Unicode=2]="Unicode",e[e.Macintosh=3]="Macintosh"}(En||(En={})),function(e){e[e.AppleUnicode=0]="AppleUnicode",e[e.Macintosh=1]="Macintosh",e[e.Iso=2]="Iso",e[e.Microsoft=3]="Microsoft"}(kn||(kn={})),function(e){e[e.Undefined=0]="Undefined",e[e.Unicode=1]="Unicode"}(Pn||(Pn={})),function(e){e[e.Roman=0]="Roman",e[e.Japanese=1]="Japanese",e[e.Chinese=2]="Chinese"}(Un||(Un={})),function(e){e[e.FixedPitch=1]="FixedPitch",e[e.Serif=2]="Serif",e[e.Symbolic=4]="Symbolic",e[e.Script=8]="Script",e[e.Nonsymbolic=32]="Nonsymbolic",e[e.Italic=64]="Italic",e[e.ForceBold=262144]="ForceBold"}(Qn||(Qn={})),function(e){e[e.Arg1And2AreWords=1]="Arg1And2AreWords",e[e.ArgsAreXyValues=2]="ArgsAreXyValues",e[e.RoundXyToGrid=4]="RoundXyToGrid",e[e.WeHaveScale=8]="WeHaveScale",e[e.Reserved=16]="Reserved",e[e.MoreComponents=32]="MoreComponents",e[e.WeHaveAnXyScale=64]="WeHaveAnXyScale",e[e.WeHaveTwoByTwo=128]="WeHaveTwoByTwo",e[e.WeHaveInstructions=256]="WeHaveInstructions",e[e.UseMyMetrics=512]="UseMyMetrics"}(Yn||(Yn={}));var _n,Jn=function(){function e(e,t){this.scalingFactor=100,this.wordWrapType=Ln.Word,this.internalLineLimit=!0,this.wordWrapType=Ln.Word,void 0!==e&&"string"!=typeof e&&(this.textAlignment=e),void 0!==t&&(this.verticalAlignment=t)}return Object.defineProperty(e.prototype,"alignment",{get:function(){return this.textAlignment},set:function(e){this.textAlignment=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textDirection",{get:function(){return this.direction},set:function(e){this.direction=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineAlignment",{get:function(){return void 0===this.verticalAlignment||null==this.verticalAlignment?pn.Top:this.verticalAlignment},set:function(e){this.verticalAlignment=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightToLeft",{get:function(){return void 0!==this.isRightToLeft&&null!=this.isRightToLeft&&this.isRightToLeft},set:function(e){this.isRightToLeft=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"characterSpacing",{get:function(){return void 0===this.internalCharacterSpacing||null==this.internalCharacterSpacing?0:this.internalCharacterSpacing},set:function(e){this.internalCharacterSpacing=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wordSpacing",{get:function(){return void 0===this.internalWordSpacing||null==this.internalWordSpacing?0:this.internalWordSpacing},set:function(e){this.internalWordSpacing=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineSpacing",{get:function(){return void 0===this.leading||null==this.leading?0:this.leading},set:function(e){this.leading=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clipPath",{get:function(){return void 0!==this.clip&&null!=this.clip&&this.clip},set:function(e){this.clip=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subSuperScript",{get:function(){return void 0===this.pdfSubSuperScript||null==this.pdfSubSuperScript?An.None:this.pdfSubSuperScript},set:function(e){this.pdfSubSuperScript=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paragraphIndent",{get:function(){return void 0===this.internalParagraphIndent||null==this.internalParagraphIndent?0:this.internalParagraphIndent},set:function(e){this.internalParagraphIndent=e,this.firstLineIndent=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineLimit",{get:function(){return this.internalLineLimit},set:function(e){this.internalLineLimit=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"measureTrailingSpaces",{get:function(){return void 0!==this.trailingSpaces&&null!=this.trailingSpaces&&this.trailingSpaces},set:function(e){this.trailingSpaces=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noClip",{get:function(){return void 0!==this.isNoClip&&null!=this.isNoClip&&this.isNoClip},set:function(e){this.isNoClip=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wordWrap",{get:function(){return this.wordWrapType},set:function(e){this.wordWrapType=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalScalingFactor",{get:function(){return this.scalingFactor},set:function(e){if(e<=0)throw new Error("ArgumentOutOfRangeException:The scaling factor cant be less of equal to zero, ScalingFactor");this.scalingFactor=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstLineIndent",{get:function(){return void 0===this.initialLineIndent||null==this.initialLineIndent?0:this.initialLineIndent},set:function(e){this.initialLineIndent=e},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return this},e}(),Zn=function(){function e(e){if(this.currentPosition=0,null==e)throw new Error("ArgumentNullException:text");this.text=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this.text.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this.currentPosition===this.text.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.currentPosition},set:function(e){this.currentPosition=e},enumerable:!0,configurable:!0}),e.getCharsCount=function(e,t){if("string"==typeof t){if(null==e)throw new Error("ArgumentNullException:wholeText");for(var i=0,r=0;-1!==(r=e.indexOf(t,r));)i++,r++;return i}if(null==e)throw new Error("ArgumentNullException:text");if(null==t)throw new Error("ArgumentNullException:symbols");for(var n=0,o=0,s=e.length;o<s;o++){var a=e[o];this.contains(t,a)&&n++}return n},e.prototype.readLine=function(){for(var e=this.currentPosition;e<this.length;){var t=this.text[e];switch(t){case"\r":case"\n":var i=this.text.substr(this.currentPosition,e-this.currentPosition);return this.currentPosition=e+1,"\r"===t&&this.currentPosition<this.length&&"\n"===this.text[this.currentPosition]&&this.currentPosition++,i}e++}if(e>this.currentPosition){var r=this.text.substr(this.currentPosition,e-this.currentPosition);return this.currentPosition=e,r}return null},e.prototype.peekLine=function(){var e=this.currentPosition,t=this.readLine();return this.currentPosition=e,t},e.prototype.readWord=function(){for(var e=this.currentPosition;e<this.length;){var t=this.text[e];switch(t){case"\r":case"\n":var i=this.text.substr(this.currentPosition,e-this.currentPosition);return this.currentPosition=e+1,"\r"===t&&this.currentPosition<this.length&&"\n"===this.text[this.currentPosition]&&this.currentPosition++,i;case" ":case"\t":e===this.currentPosition&&e++;var r=this.text.substr(this.currentPosition,e-this.currentPosition);return this.currentPosition=e,r}e++}if(e>this.currentPosition){var n=this.text.substr(this.currentPosition,e-this.currentPosition);return this.currentPosition=e,n}return null},e.prototype.peekWord=function(){var e=this.currentPosition,t=this.readWord();return this.currentPosition=e,t},e.prototype.read=function(e){if(void 0===e){var t="0";return this.end||(t=this.text[this.currentPosition],this.currentPosition++),t}for(var i=0,r="";!this.end&&i<e;){r+=t=this.read(),i++}return r},e.prototype.peek=function(){var e="0";return this.end||(e=this.text[this.currentPosition]),e},e.prototype.close=function(){this.text=null},e.prototype.readToEnd=function(){var e;return e=0===this.currentPosition?this.text:this.text.substr(this.currentPosition,this.length-this.currentPosition),this.currentPosition=this.length,e},e.contains=function(e,t){for(var i=!1,r=0;r<e.length;r++)if(e[r]===t){i=!0;break}return i},e.whiteSpace=" ",e.tab="\t",e.spaces=[e.whiteSpace,e.tab],e.whiteSpacePattern="^[ \t]+$",e}(),Kn=function(){function e(){this.isOverloadWithPosition=!1}return e.prototype.layout=function(e,t,i,r,n,o,s){if(r instanceof Bn){this.initialize(e,t,i,r,n),this.isOverloadWithPosition=o,this.clientSize=s;var a=this.doLayout();return this.clear(),a}this.initialize(e,t,i,r),this.isOverloadWithPosition=n,this.clientSize=o;a=this.doLayout();return this.clear(),a},e.prototype.initialize=function(e,t,i,r,n){if("number"==typeof n){if(null==e)throw new Error("ArgumentNullException:text");if(null==t)throw new Error("ArgumentNullException:font");this.text=e,this.font=t,this.format=i,this.size=new Fn(r.width,r.height),this.rectangle=r,this.pageHeight=n,this.reader=new Zn(e)}else this.initialize(e,t,i,new Bn(new Vn(0,0),r),0)},e.prototype.clear=function(){this.font=null,this.format=null,this.reader.close(),this.reader=null,this.text=null},e.prototype.doLayout=function(){for(var e=new Xn,t=new Xn,i=[],r=this.reader.peekLine(),n=this.getLineIndent(!0);null!=r;){if(null!==(t=this.layoutLine(r,n))||void 0!==t){var o=0,s=this.copyToResult(e,t,i,o),a=s.success;if(o=s.numInserted,!a){this.reader.read(o);break}}this.reader.readLine(),r=this.reader.peekLine(),n=this.getLineIndent(!1)}return this.finalizeResult(e,i),e},e.prototype.getLineIndent=function(e){var t=0;return null!=this.format&&(t=e?this.format.firstLineIndent:this.format.paragraphIndent,t=this.size.width>0?Math.min(this.size.width,t):t),t},e.prototype.getLineHeight=function(){var e=this.font.height;return null!=this.format&&0!==this.format.lineSpacing&&(e=this.format.lineSpacing+this.font.height),e},e.prototype.getLineWidth=function(e){return this.font.getLineWidth(e,this.format)},e.prototype.layoutLine=function(e,t){var i=new Xn;i.layoutLineHeight=this.getLineHeight();var r=[],n=this.size.width,o=this.getLineWidth(e)+t,s=_n.FirstParagraphLine,a=!0;if(n<=0||Math.round(o)<=Math.round(n))this.addToLineResult(i,r,e,o,_n.NewLineBreak|s);else{var c="",h="";o=t;var u=t,l=new Zn(e),p=l.peekWord();for(p.length!==l.length&&" "===p&&(h+=p,c+=p,l.position+=1,p=l.peekWord());null!=p;){h+=p;var d=this.getLineWidth(h.toString())+u;if(" "===h.toString()&&(h="",d=0),d>n){if(this.getWrapType()===Ln.None)break;if(h.length===p.length){if(this.getWrapType()===Ln.WordOnly){i.textRemainder=e.substring(l.position);break}if(1===h.length){c+=p;break}a=!1,h="",p=l.peek().toString();continue}this.getLineWidth(p.toString())>n?this.format.wordWrap=Ln.Character:void 0!==this.format&&null!==this.format&&(this.format.wordWrap=Ln.Word),this.getWrapType()===Ln.Character&&a?(a=!1,h="",h+=c.toString(),p=l.peek().toString()):(" "!==(g=c.toString())&&this.addToLineResult(i,r,g,o,_n.LayoutBreak|s),this.isOverloadWithPosition&&(n=this.clientSize.width),h="",c="",o=0,u=0,d=0,s=_n.None,p=a?p:l.peekWord(),a=!0)}else c+=p,o=d,a?(l.readWord(),p=l.peekWord()):(l.read(),p=l.peek().toString())}if(c.length>0){var g=c.toString();this.addToLineResult(i,r,g,o,_n.NewLineBreak|_n.LastParagraphLine)}l.close()}i.layoutLines=[];for(var f=0;f<r.length;f++)i.layoutLines.push(r[f]);return r=[],i},e.prototype.addToLineResult=function(e,t,i,r,n){var o=new $n;o.text=i,o.width=r,o.lineType=n,t.push(o);var s=e.actualSize;s.height+=this.getLineHeight(),s.width=Math.max(s.width,r),e.size=s},e.prototype.copyToResult=function(e,t,i,r){var n=!0,o=null!=this.format&&!this.format.lineLimit,s=e.actualSize.height,a=this.size.height;if(this.pageHeight>0&&a+this.rectangle.y>this.pageHeight&&(a=this.rectangle.y-this.pageHeight,a=Math.max(a,-a)),r=0,null!=t.lines)for(var c=0,h=t.lines.length;c<h;c++){var u=s+t.lineHeight;if(!(u<=a||a<=0||o)){n=!1;break}var l=t.lines[c];r+=l.text.length,l=this.trimLine(l,0===i.length),i.push(l);var p=e.actualSize;p.width=Math.max(p.width,l.width),e.size=p,s=u}if(s!=e.size.height){var d=e.actualSize;d.height=s,e.size=d}return{success:n,numInserted:r}},e.prototype.finalizeResult=function(e,t){e.layoutLines=[];for(var i=0;i<t.length;i++)e.layoutLines.push(t[i]);e.layoutLineHeight=this.getLineHeight(),this.reader.end||(e.textRemainder=this.reader.readToEnd()),t=[]},e.prototype.trimLine=function(e,t){var i=e.text,r=e.width;e.lineType,_n.FirstParagraphLine;null==this.format||this.format.rightToLeft;return Zn.spaces,(i=i.trim()).length!==e.text.length&&(r=this.getLineWidth(i),(e.lineType&_n.FirstParagraphLine)>0&&(r+=this.getLineIndent(t))),e.text=i,e.width=r,e},e.prototype.getWrapType=function(){return null!=this.format?this.format.wordWrap:Ln.Word},e}(),Xn=function(){function e(){}return Object.defineProperty(e.prototype,"remainder",{get:function(){return this.textRemainder},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actualSize",{get:function(){return void 0===this.size&&(this.size=new Fn(0,0)),this.size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lines",{get:function(){return this.layoutLines},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineHeight",{get:function(){return this.layoutLineHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return null==this.layoutLines||0===this.layoutLines.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.empty?0:this.layoutLines.length},enumerable:!0,configurable:!0}),e}(),$n=function(){function e(){}return Object.defineProperty(e.prototype,"lineType",{get:function(){return this.type},set:function(e){this.type=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.content},set:function(e){this.content=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.lineWidth},set:function(e){this.lineWidth=e},enumerable:!0,configurable:!0}),e}();!function(e){e[e.None=0]="None",e[e.NewLineBreak=1]="NewLineBreak",e[e.LayoutBreak=2]="LayoutBreak",e[e.FirstParagraphLine=4]="FirstParagraphLine",e[e.LastParagraphLine=8]="LastParagraphLine"}(_n||(_n={}));var eo,to=function(){function e(e,t){this.fontStyle=wn.Regular,"number"==typeof e&&void 0===t?this.fontSize=e:(this.fontSize=e,this.setStyle(t))}return Object.defineProperty(e.prototype,"name",{get:function(){return this.metrics.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.fontSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.metrics.getHeight(null)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this.fontStyle},set:function(e){this.fontStyle=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bold",{get:function(){return(this.style&wn.Bold)>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"italic",{get:function(){return(this.style&wn.Italic)>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strikeout",{get:function(){return(this.style&wn.Strikeout)>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"underline",{get:function(){return(this.style&wn.Underline)>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metrics",{get:function(){return this.fontMetrics},set:function(e){this.fontMetrics=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.pdfFontInternals},enumerable:!0,configurable:!0}),e.prototype.measureString=function(e,t,i,r,n){if("string"==typeof e&&void 0===t)return this.measureString(e,null);if("string"==typeof e&&(t instanceof Jn||null==t)&&void 0===i&&void 0===r){var o=t;return this.measureString(e,o,0,0)}if("string"==typeof e&&(t instanceof Jn||null==t)&&"number"==typeof i&&"number"==typeof r){o=t;return this.measureString(e,0,o,i,r)}if("string"==typeof e&&"number"==typeof t&&(i instanceof Jn||null==i)&&"number"==typeof r&&"number"==typeof n){var s=new Fn(t,0),a=i;return this.measureString(e,s,a,r,n)}if(null==e)throw Error('ArgumentNullException("text")');o=t,a=i;var c=(new Kn).layout(e,this,a,o,!1,new Fn(0,0));return r=e.length,n=c.empty?0:c.lines.length,c.actualSize},e.prototype.equalsTo=function(e){return this.equalsToFont(e)},e.prototype.getInternals=function(){return this.pdfFontInternals},e.prototype.setInternals=function(e){if(null==e)throw new Error("ArgumentNullException:internals");this.pdfFontInternals=e},e.prototype.setStyle=function(e){this.fontStyle=e},e.prototype.applyFormatSettings=function(e,t,i){var r=i;if(null!=t&&i>0&&(0!==t.characterSpacing&&(r+=(e.length-1)*t.characterSpacing),0!==t.wordSpacing)){var n=Zn.spaces;r+=Zn.getCharsCount(e,n)*t.wordSpacing}return r},e.charSizeMultiplier=.001,e.syncObject=new Object,e}(),io=function(){function e(e){this.streamWriter=e}return Object.defineProperty(e.prototype,"document",{get:function(){return this.pdfDocument},set:function(e){this.pdfDocument=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.streamWriter.buffer.size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.streamWriter.buffer.size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stream",{get:function(){return this.streamWriter},enumerable:!0,configurable:!0}),e.prototype.write=function(e){var t=e;this.streamWriter.write(t)},e}();!function(e){e[e.None=0]="None",e[e.Registered=1]="Registered"}(eo||(eo={}));var ro,no=function(){function e(){this.objectCollections=[],this.mainObjectCollection=new Pr,this.primitiveObjectCollection=new Pr}return Object.defineProperty(e.prototype,"count",{get:function(){return this.objectCollections.length},enumerable:!0,configurable:!0}),e.prototype.items=function(e){return this.objectCollections[e]},Object.defineProperty(e.prototype,"outIsNew",{get:function(){return this.isNew},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=new oo(e);this.objectCollections.push(t),this.primitiveObjectCollection.containsKey(e)||this.primitiveObjectCollection.setValue(e,this.objectCollections.length-1),e.position=this.index=this.objectCollections.length-1,e.status=eo.Registered},e.prototype.lookFor=function(e){var t=-1;if(-1!==e.position)return e.position;if(this.primitiveObjectCollection.containsKey(e)&&this.count===this.primitiveObjectCollection.size())t=this.primitiveObjectCollection.getValue(e);else for(var i=this.count-1;i>=0;i--){if(this.objectCollections[i].object===e){t=i;break}}return t},e.prototype.getReference=function(e,t){return this.index=this.lookFor(e),this.isNew=!1,{reference:this.objectCollections[this.index].reference,wasNew:t}},e.prototype.trySetReference=function(e,t,i){return this.index=this.lookFor(e),this.objectCollections[this.index].setReference(t),!0},e.prototype.destroy=function(){for(var e=0,t=this.objectCollections;e<t.length;e++){var i=t[e];void 0!==i&&(i.pdfObject.position=-1,i.pdfObject.isSaving=void 0,i.pdfObject.objectCollectionIndex=void 0,i.pdfObject.position=void 0)}this.objectCollections=[],this.mainObjectCollection=new Pr,this.primitiveObjectCollection=new Pr},e}(),oo=function(){function e(e,t){this.pdfObject=e,this.pdfReference=t}return Object.defineProperty(e.prototype,"object",{get:function(){return this.pdfObject},set:function(e){this.pdfObject=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reference",{get:function(){return this.pdfReference},enumerable:!0,configurable:!0}),e.prototype.setReference=function(e){this.pdfReference=e},e}(),so=function(){function e(e){this.isStreamCopied=!1,e instanceof ta&&(this.document=e)}return Object.defineProperty(e.prototype,"pdfObjects",{get:function(){return this.objects},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"crossTable",{get:function(){return this.pdfCrossTable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentSavingObj",{get:function(){return this.currentSavingObject},set:function(e){this.currentSavingObject=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"catalog",{get:function(){return this.pdfCatalog},set:function(e){this.pdfCatalog=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewerPreferences",{get:function(){return this.pdfCatalog.viewerPreferences},enumerable:!0,configurable:!0}),e.prototype.setMainObjectCollection=function(e){this.objects=e},e.prototype.setCrossTable=function(e){this.pdfCrossTable=e},e.prototype.setCatalog=function(e){this.pdfCatalog=e},e.prototype.save=function(e){var t=this,i=new Jr(!0),r=new Xr(i);if(void 0===e){var n=new Jr(!0),o=new Xr(n);return new Promise(function(e,i){var r={};r.blobData=new Blob([t.document.docSave(o,!0)],{type:"application/pdf"}),e(r)})}this.document.docSave(r,e,!0)},e.prototype.clone=function(){return this.document},e}();!function(e){e[e.Free=0]="Free",e[e.Normal=1]="Normal",e[e.Packed=2]="Packed"}(ro||(ro={}));var ao,co,ho,uo,lo=function(){function e(e){this.currentPosition=-1,this.value=e}return Object.defineProperty(e.prototype,"status",{get:function(){return this.objectStatus},set:function(e){this.objectStatus=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSaving",{get:function(){return this.saving},set:function(e){this.saving=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"objectCollectionIndex",{get:function(){return this.index},set:function(e){this.index=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.currentPosition},set:function(e){this.currentPosition=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.save=function(e){e.write(this.boolToStr(this.value))},e.prototype.clone=function(t){return new e(this.value)},e.prototype.boolToStr=function(e){return e?"true":"false"},e}(),po=function(){function e(e){this._dictionaryProperties=new Yr,this._centerWindow=!1,this._fitWindow=!1,this._displayTitle=!1,this._splitWindow=!1,this._hideMenuBar=!1,this._hideToolBar=!1,this._hideWindowUI=!1,this._pageMode=ao.UseNone,this._pageLayout=co.SinglePage,this._dictionary=new Rr,this._duplex=ho.None,this._catalog=e}return Object.defineProperty(e.prototype,"centerWindow",{get:function(){return this._centerWindow},set:function(e){this._centerWindow=e,this._dictionary.items.setValue(this._dictionaryProperties.centerWindow,new lo(this._centerWindow))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayTitle",{get:function(){return this._displayTitle},set:function(e){this._displayTitle=e,this._dictionary.items.setValue(this._dictionaryProperties.displayTitle,new lo(this._displayTitle))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fitWindow",{get:function(){return this._fitWindow},set:function(e){this._fitWindow=e,this._dictionary.items.setValue(this._dictionaryProperties.fitWindow,new lo(this._fitWindow))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideMenuBar",{get:function(){return this._hideMenuBar},set:function(e){this._hideMenuBar=e,this._dictionary.items.setValue(this._dictionaryProperties.hideMenuBar,new lo(this._hideMenuBar))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideToolBar",{get:function(){return this._hideToolBar},set:function(e){this._hideToolBar=e,this._dictionary.items.setValue(this._dictionaryProperties.hideToolBar,new lo(this._hideToolBar))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideWindowUI",{get:function(){return this._hideWindowUI},set:function(e){this._hideWindowUI=e,this._dictionary.items.setValue(this._dictionaryProperties.hideWindowUI,new lo(this._hideWindowUI))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageMode",{get:function(){return this._pageMode},set:function(e){this._pageMode=e,this._catalog.items.setValue(this._dictionaryProperties.pageMode,new Ur(this._mapPageMode(this._pageMode)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"duplex",{get:function(){return this._duplex},set:function(e){this._duplex=e,this._catalog.items.setValue(this._dictionaryProperties.duplex,new Ur(this._mapDuplexMode(this._duplex)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageLayout",{get:function(){return this._pageLayout},set:function(e){this._pageLayout=e,this._catalog.items.setValue(this._dictionaryProperties.pageLayout,new Ur(this._mapPageLayout(this._pageLayout)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageScaling",{get:function(){return this._pageScaling},set:function(e){this._pageScaling=e,this._pageScaling===uo.AppDefault&&this._dictionary.items.containsKey(this._dictionaryProperties.printScaling)?this._dictionary.items.remove(this._dictionaryProperties.printScaling):this._pageScaling===uo.None&&this._dictionary.items.setValue(this._dictionaryProperties.printScaling,new Ur("None"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._dictionary},enumerable:!0,configurable:!0}),e.prototype._mapDuplexMode=function(e){switch(e){case ho.Simplex:return"Simplex";case ho.DuplexFlipShortEdge:return"DuplexFlipShortEdge";case ho.DuplexFlipLongEdge:return"DuplexFlipLongEdge";case ho.None:return"None"}},e.prototype._mapPageMode=function(e){switch(e){case ao.UseNone:return"UseNone";case ao.UseOutlines:return"UseOutlines";case ao.UseThumbs:return"UseThumbs";case ao.FullScreen:return"FullScreen";case ao.UseOC:return"UseOC";case ao.UseAttachments:return"UseAttachments"}},e.prototype._mapPageLayout=function(e){switch(e){case co.SinglePage:return"SinglePage";case co.OneColumn:return"OneColumn";case co.TwoColumnLeft:return"TwoColumnLeft";case co.TwoColumnRight:return"TwoColumnRight";case co.TwoPageLeft:return"TwoPageLeft";case co.TwoPageRight:return"TwoPageRight"}},e}();!function(e){e[e.UseNone=0]="UseNone",e[e.UseOutlines=1]="UseOutlines",e[e.UseThumbs=2]="UseThumbs",e[e.FullScreen=3]="FullScreen",e[e.UseOC=4]="UseOC",e[e.UseAttachments=5]="UseAttachments"}(ao||(ao={})),function(e){e[e.SinglePage=0]="SinglePage",e[e.OneColumn=1]="OneColumn",e[e.TwoColumnLeft=2]="TwoColumnLeft",e[e.TwoColumnRight=3]="TwoColumnRight",e[e.TwoPageLeft=4]="TwoPageLeft",e[e.TwoPageRight=5]="TwoPageRight"}(co||(co={})),function(e){e[e.Simplex=0]="Simplex",e[e.DuplexFlipShortEdge=1]="DuplexFlipShortEdge",e[e.DuplexFlipLongEdge=2]="DuplexFlipLongEdge",e[e.None=3]="None"}(ho||(ho={})),function(e){e[e.AppDefault=0]="AppDefault",e[e.None=1]="None"}(uo||(uo={}));var go,fo,Mo,yo,mo,No,jo=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Do=function(e){function t(){var t=e.call(this)||this;return t.sections=null,t.tempDictionaryProperties=new Yr,t.items.setValue((new Yr).type,new Ur("Catalog")),t}return jo(t,e),Object.defineProperty(t.prototype,"pages",{get:function(){return this.sections},set:function(e){e.element,this.sections=e,this.items.setValue(this.tempDictionaryProperties.pages,new vn(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewerPreferences",{get:function(){return null!==this._viewerPreferences&&void 0!==this._viewerPreferences||(this._viewerPreferences=new po(this),this.items.setValue(this.tempDictionaryProperties.viewerPreferences,new vn(this._viewerPreferences.element))),this._viewerPreferences},enumerable:!0,configurable:!0}),t}(Rr),Io=function(){function e(){this.objects=new Pr,this.maxGenNumIndex=0,this.objectCount=0,this.dictionaryProperties=new Yr}return Object.defineProperty(e.prototype,"isMerging",{get:function(){return this.merging},set:function(e){this.merging=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trailer",{get:function(){return null==this.internalTrailer&&(this.internalTrailer=new cn),this.internalTrailer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"document",{get:function(){return this.pdfDocument},set:function(e){this.pdfDocument=e,this.items=this.pdfDocument.pdfObjects},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pdfObjects",{get:function(){return this.items},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"objectCollection",{get:function(){return this.pdfDocument.pdfObjects},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this.objectCount},set:function(e){this.objectCount=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nextObjNumber",{get:function(){return this.count=this.count+1,this.count},enumerable:!0,configurable:!0}),e.prototype.save=function(e,t){this.saveHead(e),this.mappedReferences=null,this.objects.clear(),this.markTrailerReferences(),this.saveObjects(e);var i=this.count,r=e.position;this.registerObject(0,new zn(0,-1),!0);e.write(Qr.xref),e.write(Qr.newLine),this.saveSections(e),this.saveTrailer(e,this.count,0),this.saveTheEndess(e,r),this.count=i;for(var n=0;n<this.objectCollection.count;++n){this.objectCollection.items(n).object.isSaving=!1}if(void 0===t)return e.stream.buffer;e.stream.save(t)},e.prototype.saveTheEndess=function(e,t){e.write(Qr.newLine+Qr.startxref+Qr.newLine),e.write(t.toString()+Qr.newLine),e.write(Qr.eof+Qr.newLine)},e.prototype.saveTrailer=function(e,t,i){e.write(Qr.trailer+Qr.newLine);var r=this.trailer;r.items.setValue(this.dictionaryProperties.size,new Hr(this.objectCount+1)),(r=new Rr(r)).setEncrypt(!1),r.save(e)},e.prototype.saveSections=function(e){var t=0,i=0;do{i=this.prepareSubsection(t),this.saveSubsection(e,t,i),t+=i}while(0!==i)},e.prototype.saveSubsection=function(e,t,i){if(!(i<=0||t>=this.count)){e.write(t+" "+(i+1)+Qr.newLine);for(var r=t;r<=t+i;++r){var n=this.objects.getValue(r),o="";o=n.type===ro.Free?this.getItem(n.offset,65535,!0):this.getItem(n.offset,n.generation,!1),e.write(o)}}},e.prototype.getItem=function(e,t,i){var r="",n=10-e.toString().length;t<=0&&(t=0);for(var o=5-t.toString().length<=0?0:5-t.toString().length,s=0;s<n;s++)r+="0";r=r+e.toString()+" ";for(s=0;s<o;s++)r+="0";return r=(r=r+t.toString()+" ")+(i?Qr.f:Qr.n)+Qr.newLine},e.prototype.prepareSubsection=function(e){for(var t,i=0,r=this.count,n=0;n<this.document.pdfObjects.count;n++){this.document.pdfObjects.items(n).reference.toString().split(" ")}if(e>=r)return i;for(e=t=e;t<r;++t)++i;return i},e.prototype.markTrailerReferences=function(){this.trailer.items.keys(),this.trailer.items.values()},e.prototype.saveHead=function(e){var t=this.generateFileVersion(e.document);e.write("%PDF-"+t),e.write(Qr.newLine)},e.prototype.generateFileVersion=function(e){return"1."+4..toString()},e.prototype.getReference=function(e,t){if(void 0===t){return this.getReference(e,!1)}return this.getSubReference(e,t)},e.prototype.getSubReference=function(e,t){var i,r=!1,n=null;if(this.items.count>0&&e.objectCollectionIndex>0&&this.items.count>e.objectCollectionIndex-1){var o=this.document.pdfObjects.getReference(e,i);n=o.reference,i=o.wasNew}if(i=null==n&&e.status!==eo.Registered,null==n){var s=this.nextObjNumber;n=new zn(s,0);var a=void 0;if(i){this.document.pdfObjects.add(e),this.document.pdfObjects.trySetReference(e,n,a);var c=this.document.pdfObjects.count-1,h=this.document.pdfObjects.objectCollections[c].reference.objNumber,u=this.document.pdfObjects.objectCollections[this.document.pdfObjects.count-1];this.document.pdfObjects.mainObjectCollection.setValue(h,u),e.position=-1}else this.document.pdfObjects.trySetReference(e,n,a);e.objectCollectionIndex=n.objNumber,e.status=eo.None,r=!0}return r||this.bForceNew,n},e.prototype.saveObjects=function(e){for(var t=this.objectCollection,i=0;i<t.count;++i){var r=t.items(i).object;r.isSaving=!0,this.saveIndirectObject(r,e)}},e.prototype.saveIndirectObject=function(e,t){var i=this.getReference(e);e instanceof Do&&this.trailer.items.setValue(this.dictionaryProperties.root,i),this.pdfDocument.currentSavingObj=i,e.getArchive(),this.registerObject(t.position,i),this.doSaveObject(e,i,t)},e.prototype.doSaveObject=function(e,t,i){i.length,i.write(t.objNumber.toString()),i.write(Qr.whiteSpace),i.write(t.genNumber.toString()),i.write(Qr.whiteSpace),i.write(Qr.obj),i.write(Qr.newLine),e.save(i),i.stream,i.write(Qr.endObj),i.write(Qr.newLine)},e.prototype.registerObject=function(e,t,i){"boolean"==typeof i?(this.objects.setValue(t.objNumber,new So(e,t,i)),this.maxGenNumIndex=Math.max(this.maxGenNumIndex,t.genNumber)):void 0===i&&(this.objects.setValue(t.objNumber,new So(e,t)),this.maxGenNumIndex=Math.max(this.maxGenNumIndex,t.genNumber))},e.dereference=function(e){return null!=e&&(e=e.object),e},e}(),So=function(){function e(e,t,i){var r=e;this.offsetNumber=r;var n=t;this.generation=n.genNumber,this.object=n.objNumber,this.type=void 0===i?ro.Normal:ro.Free}return Object.defineProperty(e.prototype,"objectNumber",{get:function(){return this.object},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){return this.offsetNumber},enumerable:!0,configurable:!0}),e}(),bo=function(){function e(){}return e.letter=new Fn(612,792),e.note=new Fn(540,720),e.legal=new Fn(612,1008),e.a0=new Fn(2380,3368),e.a1=new Fn(1684,2380),e.a2=new Fn(1190,1684),e.a3=new Fn(842,1190),e.a4=new Fn(595,842),e.a5=new Fn(421,595),e.a6=new Fn(297,421),e.a7=new Fn(210,297),e.a8=new Fn(148,210),e.a9=new Fn(105,148),e.a10=new Fn(74,105),e.b0=new Fn(2836,4008),e.b1=new Fn(2004,2836),e.b2=new Fn(1418,2004),e.b3=new Fn(1002,1418),e.b4=new Fn(709,1002),e.b5=new Fn(501,709),e.archE=new Fn(2592,3456),e.archD=new Fn(1728,2592),e.archC=new Fn(1296,1728),e.archB=new Fn(864,1296),e.archA=new Fn(648,864),e.flsa=new Fn(612,936),e.halfLetter=new Fn(396,612),e.letter11x17=new Fn(792,1224),e.ledger=new Fn(1224,792),e}();!function(e){e[e.Portrait=0]="Portrait",e[e.Landscape=1]="Landscape"}(go||(go={})),function(e){e[e.RotateAngle0=0]="RotateAngle0",e[e.RotateAngle90=1]="RotateAngle90",e[e.RotateAngle180=2]="RotateAngle180",e[e.RotateAngle270=3]="RotateAngle270"}(fo||(fo={})),function(e){e[e.None=0]="None",e[e.Numeric=1]="Numeric",e[e.LowerLatin=2]="LowerLatin",e[e.LowerRoman=3]="LowerRoman",e[e.UpperLatin=4]="UpperLatin",e[e.UpperRoman=5]="UpperRoman"}(Mo||(Mo={})),function(e){e[e.None=0]="None",e[e.Bottom=1]="Bottom",e[e.Top=2]="Top",e[e.Left=3]="Left",e[e.Right=4]="Right",e[e.Fill=5]="Fill"}(yo||(yo={})),function(e){e[e.None=0]="None",e[e.TopLeft=1]="TopLeft",e[e.TopCenter=2]="TopCenter",e[e.TopRight=3]="TopRight",e[e.MiddleLeft=4]="MiddleLeft",e[e.MiddleCenter=5]="MiddleCenter",e[e.MiddleRight=6]="MiddleRight",e[e.BottomLeft=7]="BottomLeft",e[e.BottomCenter=8]="BottomCenter",e[e.BottomRight=9]="BottomRight"}(mo||(mo={})),function(e){e[e.None=0]="None",e[e.Top=1]="Top",e[e.Bottom=2]="Bottom",e[e.Left=3]="Left",e[e.Right=4]="Right"}(No||(No={}));var zo,vo=function(){function e(){this.pdfMargin=40,this.setMargins(this.pdfMargin)}return Object.defineProperty(e.prototype,"left",{get:function(){return this.leftMargin},set:function(e){this.leftMargin=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.topMargin},set:function(e){this.topMargin=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.rightMargin},set:function(e){this.rightMargin=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.bottomMargin},set:function(e){this.bottomMargin=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"all",{set:function(e){this.setMargins(e)},enumerable:!0,configurable:!0}),e.prototype.setMargins=function(e,t,i,r){void 0===t?this.leftMargin=this.topMargin=this.rightMargin=this.bottomMargin=e:void 0===i?(this.leftMargin=this.rightMargin=e,this.bottomMargin=this.topMargin=t):(this.leftMargin=e,this.topMargin=t,this.rightMargin=i,this.bottomMargin=r)},e.prototype.clone=function(){return this},e}(),wo=function(){function e(e){this.pageMargins=new vo,this.pageSize=bo.a4,this.rotateAngle=fo.RotateAngle0,this.pageOrientation=go.Portrait,this.pageOrigin=new Vn(0,0),this.isRotation=!1,"number"==typeof e&&this.pageMargins.setMargins(e)}return Object.defineProperty(e.prototype,"size",{get:function(){return this.pageSize},set:function(e){this.setSize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.pageOrientation},set:function(e){this.pageOrientation!==e&&(this.pageOrientation=e,this.updateSize(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"margins",{get:function(){return this.pageMargins},set:function(e){this.pageMargins=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.pageSize.width},set:function(e){this.pageSize.width=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.pageSize.height},set:function(e){this.pageSize.height=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"origin",{get:function(){return this.pageOrigin},set:function(e){this.pageOrigin=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotate",{get:function(){return this.rotateAngle},set:function(e){this.rotateAngle=e,this.isRotation=!0},enumerable:!0,configurable:!0}),e.prototype.updateSize=function(e){var t=Math.min(this.pageSize.width,this.pageSize.height),i=Math.max(this.pageSize.width,this.pageSize.height);switch(e){case go.Portrait:this.pageSize=new Fn(t,i);break;case go.Landscape:this.pageSize=new Fn(i,t)}},e.prototype.clone=function(){return this.pageMargins=this.pageMargins.clone(),this},e.prototype.getActualSize=function(){var e=this.width-(this.margins.left+this.margins.right),t=this.height-(this.margins.top+this.margins.bottom);return new Fn(e,t)},e.prototype.setSize=function(e){var t=Math.min(e.width,e.height),i=Math.max(e.width,e.height);this.orientation===go.Portrait?this.pageSize=new Fn(t,i):this.pageSize=new Fn(i,t)},e}(),Oo=function(){function e(e){if(null==e)throw new Error("ArgumentNullException:stream");this.stream=e}return e.prototype.clear=function(){this.stream.clearStream()},e.prototype.setGraphicsState=function(e){e instanceof Ur?(this.stream.write(e.toString()),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setGraphicsState)):(this.stream.write(Qr.slash),this.stream.write(e),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setGraphicsState))},e.prototype.executeObject=function(e){this.stream.write(e.toString()),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.paintXObject),this.stream.write(Qr.newLine)},e.prototype.closePath=function(){this.writeOperator(Qr.closePath)},e.prototype.clipPath=function(e){this.stream.write(Qr.clipPath),e&&this.stream.write(Qr.evenOdd),this.stream.write(Qr.whiteSpace),this.stream.write(Qr.endPath),this.stream.write(Qr.newLine)},e.prototype.closeFillStrokePath=function(e){this.stream.write(Qr.closeFillStrokePath),e?(this.stream.write(Qr.evenOdd),this.stream.write(Qr.newLine)):this.stream.write(Qr.newLine)},e.prototype.fillStrokePath=function(e){this.stream.write(Qr.fillStroke),e?(this.stream.write(Qr.evenOdd),this.stream.write(Qr.newLine)):this.stream.write(Qr.newLine)},e.prototype.fillPath=function(e){this.stream.write(Qr.fill),e?(this.stream.write(Qr.evenOdd),this.stream.write(Qr.newLine)):this.stream.write(Qr.newLine)},e.prototype.endPath=function(){this.writeOperator(Qr.n)},e.prototype.closeFillPath=function(e){this.writeOperator(Qr.closePath),this.stream.write(Qr.fill),e?(this.stream.write(Qr.evenOdd),this.stream.write(Qr.newLine)):this.stream.write(Qr.newLine)},e.prototype.closeStrokePath=function(){this.writeOperator(Qr.closeStrokePath)},e.prototype.setTextScaling=function(e){this.stream.write(Hr.floatToString(e)),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setTextScaling)},e.prototype.strokePath=function(){this.writeOperator(Qr.stroke)},e.prototype.restoreGraphicsState=function(){this.writeOperator(Qr.restoreState)},e.prototype.saveGraphicsState=function(){this.writeOperator(Qr.saveState)},e.prototype.startNextLine=function(e,t){void 0===e?this.writeOperator(Qr.goToNextLine):e instanceof Vn?(this.writePoint(e),this.writeOperator(Qr.setCoords)):(this.writePoint(e,t),this.writeOperator(Qr.setCoords))},e.prototype.showText=function(e){this.checkTextParam(e),this.writeText(e),this.writeOperator(Qr.setText)},e.prototype.setLeading=function(e){this.stream.write(Hr.floatToString(e)),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setTextLeading)},e.prototype.beginPath=function(e,t){this.writePoint(e,t),this.writeOperator(Qr.beginPath)},e.prototype.beginText=function(){this.writeOperator(Qr.beginText)},e.prototype.endText=function(){this.writeOperator(Qr.endText)},e.prototype.appendRectangle=function(e,t,i,r){e instanceof Bn?this.appendRectangle(e.x,e.y,e.width,e.height):(this.writePoint(e,t),this.writePoint(i,r),this.writeOperator(Qr.appendRectangle))},e.prototype.appendLineSegment=function(e,t){e instanceof Vn?this.appendLineSegment(e.x,e.y):(this.writePoint(e,t),this.writeOperator(Qr.appendLineSegment))},e.prototype.setTextRenderingMode=function(e){this.stream.write(e.toString()),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setRenderingMode)},e.prototype.setCharacterSpacing=function(e){this.stream.write(Hr.floatToString(e)),this.stream.write(Qr.whiteSpace),this.stream.write(Qr.setCharacterSpace),this.stream.write(Qr.newLine)},e.prototype.setWordSpacing=function(e){this.stream.write(Hr.floatToString(e)),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setWordSpace)},e.prototype.showNextLineText=function(e,t){e instanceof bn?(this.checkTextParam(e),this.writeText(e),this.writeOperator(Qr.setTextOnNewLine)):(this.checkTextParam(e),this.writeText(e,t),this.writeOperator(Qr.setTextOnNewLine))},e.prototype.setColorSpace=function(e,t){if(e instanceof Ur&&"boolean"==typeof t){var i=e,r=(n=t)?Qr.selectcolorspaceforstroking:Qr.selectcolorspacefornonstroking;this.stream.write(i.toString()),this.stream.write(Qr.whiteSpace),this.stream.write(r),this.stream.write(Qr.newLine)}else{i=e;var n=t;this.setColorSpace(new Ur(i),n)}},e.prototype.modifyCtm=function(e){if(null==e)throw new Error("ArgumentNullException:matrix");this.stream.write(e.toString()),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.modifyCtm)},e.prototype.setFont=function(e,t,i){if("string"==typeof t)this.setFont(e,new Ur(t),i);else{if(null==e)throw new Error("ArgumentNullException:font");this.stream.write(t.toString()),this.stream.write(Qr.whiteSpace),this.stream.write(Hr.floatToString(i)),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setFont)}},e.prototype.writeOperator=function(e){this.stream.write(e),this.stream.write(Qr.newLine)},e.prototype.checkTextParam=function(e){if(null==e)throw new Error("ArgumentNullException:text");if("string"==typeof e&&""===e)throw new Error("ArgumentException:The text can not be an empty string, text")},e.prototype.writeText=function(e,t){if(e instanceof bn&&void 0===t)this.stream.write(e.pdfEncode());else{var i=void 0,r=void 0;t?(i=bn.hexStringMark[0],r=bn.hexStringMark[1]):(i=bn.stringMark[0],r=bn.stringMark[1]),this.stream.write(i),this.stream.write(e),this.stream.write(r)}},e.prototype.writePoint=function(e,t){if(e instanceof Vn&&void 0===t)this.writePoint(e.x,e.y);else{var i=e;this.stream.write(Hr.floatToString(i)),this.stream.write(Qr.whiteSpace),t=this.updateY(t),this.stream.write(Hr.floatToString(t)),this.stream.write(Qr.whiteSpace)}},e.prototype.updateY=function(e){return-e},e.prototype.write=function(e){var t="";t+=e,t+=Qr.newLine,this.writeOperator(t)},e.prototype.writeComment=function(e){if(!(null!=e&&e.length>0))throw new Error("Invalid comment");var t="";t+=Qr.comment,t+=Qr.whiteSpace,t+=e,this.writeOperator(t)},e.prototype.setColorAndSpace=function(e,t,i){e.isEmpty||(this.stream.write(e.toString(t,i)),this.stream.write(Qr.newLine))},e.prototype.setLineDashPattern=function(e,t){this.setLineDashPatternHelper(e,t)},e.prototype.setLineDashPatternHelper=function(e,t){var i="[";if(e.length>1)for(var r=0;r<e.length;r++)r===e.length-1?i+=e[r].toString():i+=e[r].toString()+" ";i+="] ",i+=t.toString(),i+=" "+Qr.setDashPattern,this.stream.write(i),this.stream.write(Qr.newLine)},e.prototype.setMiterLimit=function(e){this.stream.write(Hr.floatToString(e)),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setMiterLimit)},e.prototype.setLineWidth=function(e){this.stream.write(Hr.floatToString(e)),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setLineWidth)},e.prototype.setLineCap=function(e){this.stream.write(e.toString()),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setLineCapStyle)},e.prototype.setLineJoin=function(e){this.stream.write(e.toString()),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setLineJoinStyle)},Object.defineProperty(e.prototype,"position",{get:function(){return this.stream.position},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){var e=0;if(0!==this.stream.data.length&&-1!==this.stream.data.length)for(var t=0;t<this.stream.data.length;t++)e+=this.stream.data[t].length;return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"document",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.appendBezierSegment=function(e,t,i,r,n,o){e instanceof Vn&&t instanceof Vn&&i instanceof Vn?(this.writePoint(e.x,e.y),this.writePoint(t.x,t.y),this.writePoint(i.x,i.y)):(this.writePoint(e,t),this.writePoint(i,r),this.writePoint(n,o)),this.writeOperator(Qr.appendbeziercurve)},e.prototype.setColourWithPattern=function(e,t,i){if(null!=e){var r=e.length,n=0;for(n=0;n<r;++n)this.stream.write(e[n].toString()),this.stream.write(Qr.whiteSpace)}null!=t&&(this.stream.write(t.toString()),this.stream.write(Qr.whiteSpace)),i?this.writeOperator(Qr.setColorAndPatternStroking):this.writeOperator(Qr.setColorAndPattern)},e}(),To=function(){function e(e,t){this.pdfColor=new Rn(0,0,0),this.dashOffsetValue=0,this.penDashPattern=[0],this.pdfDashStyle=yn.Solid,this.pdfLineCap=0,this.pdfLineJoin=0,this.penWidth=1,this.internalMiterLimit=0,this.colorSpace=Nn.Rgb,e instanceof Gn?this.setBrush(e):e instanceof Rn&&(this.color=e),"number"==typeof t&&(this.width=t)}return Object.defineProperty(e.prototype,"color",{get:function(){return this.pdfColor},set:function(e){this.pdfColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dashOffset",{get:function(){return void 0===this.dashOffsetValue||null==this.dashOffsetValue?0:this.dashOffsetValue},set:function(e){this.dashOffsetValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dashPattern",{get:function(){return this.penDashPattern},set:function(e){this.penDashPattern=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dashStyle",{get:function(){return this.pdfDashStyle},set:function(e){if(this.pdfDashStyle!==e)switch(this.pdfDashStyle=e,this.pdfDashStyle){case yn.Custom:break;case yn.Dash:this.penDashPattern=[3,1];break;case yn.Dot:this.penDashPattern=[1,1];break;case yn.DashDot:this.penDashPattern=[3,1,1,1];break;case yn.DashDotDot:this.penDashPattern=[3,1,1,1,1,1];break;case yn.Solid:break;default:this.pdfDashStyle=yn.Solid,this.penDashPattern=[0]}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineCap",{get:function(){return this.pdfLineCap},set:function(e){this.pdfLineCap=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineJoin",{get:function(){return this.pdfLineJoin},set:function(e){this.pdfLineJoin=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"miterLimit",{get:function(){return this.internalMiterLimit},set:function(e){this.internalMiterLimit=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.penWidth},set:function(e){this.penWidth=e},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return this},e.prototype.setBrush=function(e){var t=e;null!=t&&t instanceof qn&&(this.color=t.color,this.pdfBrush=t),this.color=t.color,this.pdfBrush=t},e.prototype.monitorChanges=function(e,t,i,r,n,o){this.dashControl(e,true,t),t.setLineWidth(this.width),t.setLineJoin(this.lineJoin),t.setLineCap(this.lineCap);var s=this.miterLimit;return s>0&&(t.setMiterLimit(s),!0),this.pdfBrush,t.setColorAndSpace(this.color,n,!0),!0},e.prototype.dashControl=function(e,t,i){var r=this.width,n=this.getPattern();return i.setLineDashPattern(n,this.dashOffset*r),true},e.prototype.getPattern=function(){for(var e=this.dashPattern,t=0;t<e.length;++t)e[t]*=this.width;return e},e}(),Lo=function(){function e(e){this.radDegFactor=180/Math.PI,this.transformationMatrix=new Ao(1,0,0,void 0===e?1:-1,0,0)}return Object.defineProperty(e.prototype,"matrix",{get:function(){return this.transformationMatrix},set:function(e){this.transformationMatrix=e},enumerable:!0,configurable:!0}),e.prototype.translate=function(e,t){this.transformationMatrix.translate(e,t)},e.prototype.scale=function(e,t){this.transformationMatrix.elements[0]=e,this.transformationMatrix.elements[3]=t},e.prototype.rotate=function(e){e=e*Math.PI/180,this.transformationMatrix.elements[0]=Math.cos(e),this.transformationMatrix.elements[1]=Math.sin(e),this.transformationMatrix.elements[2]=-Math.sin(e),this.transformationMatrix.elements[3]=Math.cos(e)},e.prototype.toString=function(){for(var e="",t=0,i=this.transformationMatrix.elements.length;t<i;t++)this.matrix.elements[t],e+=Hr.floatToString(this.transformationMatrix.elements[t]),e+=" ";return e},e.prototype.multiply=function(e){this.transformationMatrix.multiply(e.matrix)},e.degreesToRadians=function(e){return this.degRadFactor*e},e.prototype.radiansToDegrees=function(e){return this.radDegFactor*e},e.prototype.clone=function(){return this},e.degRadFactor=Math.PI/180,e}(),Ao=function(){function e(e,t,i,r,n,o){void 0===e?this.metrixElements=[]:"number"==typeof e?(this.metrixElements=[],this.metrixElements.push(e),this.metrixElements.push(t),this.metrixElements.push(i),this.metrixElements.push(r),this.metrixElements.push(n),this.metrixElements.push(o)):this.metrixElements=e}return Object.defineProperty(e.prototype,"elements",{get:function(){return this.metrixElements},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetX",{get:function(){return this.metrixElements[4]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetY",{get:function(){return this.metrixElements[5]},enumerable:!0,configurable:!0}),e.prototype.translate=function(e,t){this.metrixElements[4]=e,this.metrixElements[5]=t},e.prototype.transform=function(e){var t=e.x,i=e.y,r=t*this.elements[0]+i*this.elements[2]+this.offsetX,n=t*this.elements[1]+i*this.elements[3]+this.offsetY;return new Vn(r,n)},e.prototype.multiply=function(e){var t=[];t.push(this.elements[0]*e.elements[0]+this.elements[1]*e.elements[2]),t[1]=this.elements[0]*e.elements[1]+this.elements[1]*e.elements[3],t[2]=this.elements[2]*e.elements[0]+this.elements[3]*e.elements[2],t[3]=this.elements[2]*e.elements[1]+this.elements[3]*e.elements[3],t[4]=this.offsetX*e.elements[0]+this.offsetY*e.elements[2]+e.offsetX,t[5]=this.offsetX*e.elements[1]+this.offsetY*e.elements[3]+e.offsetY;for(var i=0;i<t.length;i++)this.elements[i]=t[i]},e.prototype.dispose=function(){this.metrixElements=null},e.prototype.clone=function(){return new e(this.metrixElements)},e}(),Co=function(){this.pdf="PDF",this.text="Text",this.imageB="ImageB",this.imageC="ImageC",this.imageI="ImageI"},xo=function(){function e(){this.mKeys=[],this.mValues=[]}return e.prototype.size=function(){return this.mKeys.length},e.prototype.add=function(e,t){if(null==e||null==t)throw new ReferenceError("Provided key or value is not valid.");if(this.mKeys.indexOf(e)<0)return this.mKeys.push(e),this.mValues.push(t),1;throw new RangeError("An item with the same key has already been added.")},e.prototype.keys=function(){return this.mKeys},e.prototype.values=function(){return this.mValues},e.prototype.getValue=function(e){if(null==e)throw new ReferenceError("Provided key is not valid.");var t=this.mKeys.indexOf(e);if(t<0)throw new RangeError("No item with the specified key has been added.");return this.mValues[t]},e.prototype.setValue=function(e,t){if(null==e)throw new ReferenceError("Provided key is not valid.");var i=this.mKeys.indexOf(e);i<0?(this.mKeys.push(e),this.mValues.push(t)):this.mValues[i]=t},e.prototype.remove=function(e){if(null==e)throw new ReferenceError("Provided key is not valid.");var t=this.mKeys.indexOf(e);if(t<0)throw new RangeError("No item with the specified key has been added.");return this.mKeys.splice(t,1),this.mValues.splice(t,1),!0},e.prototype.containsKey=function(e){if(null==e)throw new ReferenceError("Provided key is not valid.");return!(this.mKeys.indexOf(e)<0)},e.prototype.clear=function(){this.mKeys=[],this.mValues=[]},e}(),Eo=function(){function e(e,t,i){this.dictionary=new Rr,this.dictionaryProperties=new Yr,this.dictionary.items.setValue(this.dictionaryProperties.CA,new Hr(e)),this.dictionary.items.setValue(this.dictionaryProperties.ca,new Hr(t)),this.dictionary.items.setValue(this.dictionaryProperties.BM,new Ur(i.toString()))}return Object.defineProperty(e.prototype,"element",{get:function(){return this.dictionary},enumerable:!0,configurable:!0}),e}(),ko=function(){function e(){this.automaticFieldsInformation=[]}return Object.defineProperty(e.prototype,"automaticFields",{get:function(){return this.automaticFieldsInformation},enumerable:!0,configurable:!0}),e.prototype.add=function(e){return this.automaticFields.push(e)},e}(),Po=function(){function e(){}return e.prototype.drawHelper=function(e,t,i){var r=0!==t||0!==i,n=null;r&&(n=e.save(),e.translateTransform(t,i)),this.drawInternal(e),r&&e.restore(n)},e}(),Uo=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Qo=function(e){function t(){var t=e.call(this)||this;return t.internalBounds=new Bn(0,0,0,0),t.internalTemplateSize=new Fn(0,0),t}return Uo(t,e),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.internalBounds},set:function(e){this.internalBounds=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return new Fn(this.bounds.width,this.bounds.height)},set:function(e){this.bounds.width=e.width,this.bounds.height=e.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return new Vn(this.bounds.x,this.bounds.y)},set:function(e){this.bounds.x=e.x,this.bounds.y=e.y},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"font",{get:function(){return this.internalFont},set:function(e){this.internalFont=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"brush",{get:function(){return this.internalBrush},set:function(e){this.internalBrush=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pen",{get:function(){return this.internalPen},set:function(e){this.internalPen=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stringFormat",{get:function(){return this.internalStringFormat},set:function(e){this.internalStringFormat=e},enumerable:!0,configurable:!0}),t.prototype.performDrawHelper=function(e,t,i,r){if(0===this.bounds.height||0===this.bounds.width){var n=this.getValue(e);this.internalTemplateSize=this.getFont().measureString(n,this.size,this.stringFormat)}},t.prototype.draw=function(e,t,i){if(void 0===t){var r=new Vn(0,0);this.draw(e,r)}else if(t instanceof Vn)this.draw(e,t.x,t.y);else{this.drawHelper(e,t,i);var n=new Yo(this,new Vn(t,i));e.automaticFields.add(n)}},t.prototype.getSize=function(){return 0===this.bounds.height||0===this.bounds.width?this.internalTemplateSize:this.size},t.prototype.drawInternal=function(e){},t.prototype.getBrush=function(){return void 0===this.internalBrush||null==this.internalBrush?new qn(new Rn(0,0,0)):this.internalBrush},t.prototype.getFont=function(){return void 0===this.internalFont||null==this.internalFont?ta.defaultFont:this.internalFont},t.prototype.getPageFromGraphics=function(e){return void 0!==e.page&&null!==e.page?e.page:e.currentPage},t}(Po),Yo=function(){function e(t,i,r,n){this.pageNumberFieldLocation=new Vn,this.pageNumberField=null,this.scaleX=1,this.scaleY=1,void 0===i&&t instanceof e?(this.pageNumberField=t.field,this.pageNumberFieldLocation=t.location,this.scaleX=t.scalingX,this.scaleY=t.scalingY):void 0===r&&i instanceof Vn&&t instanceof Qo?(this.pageNumberField=t,this.pageNumberFieldLocation=i):(this.pageNumberField=t,this.pageNumberFieldLocation=i,this.scaleX=r,this.scaleY=n)}return Object.defineProperty(e.prototype,"location",{get:function(){return this.pageNumberFieldLocation},set:function(e){this.pageNumberFieldLocation=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"field",{get:function(){return this.pageNumberField},set:function(e){this.pageNumberField=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingX",{get:function(){return this.scaleX},set:function(e){this.scaleX=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingY",{get:function(){return this.scaleY},set:function(e){this.scaleY=e},enumerable:!0,configurable:!0}),e}(),Ro=function(){function e(e){this.mPosition=0,this.buffer=new Uint8Array(e),this.dataView=new DataView(this.buffer.buffer)}return Object.defineProperty(e.prototype,"position",{get:function(){return this.mPosition},set:function(e){this.mPosition=e},enumerable:!0,configurable:!0}),e.prototype.read=function(e,t,i){for(var r=t;r<i;r++){var n=this.position;e.buffer[r]=this.readByte(n),this.position++}},e.prototype.getBuffer=function(e){return this.buffer[e]},e.prototype.writeFromBase64String=function(e){var t=this.encodedString(e);this.buffer=t},e.prototype.encodedString=function(e){var t,i,r,n,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,h=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;e.charAt(e.length-1)===s.charAt(64)&&h--;for(var u=new Uint8Array(0|h);a<e.length;)t=s.indexOf(e.charAt(a++))<<2|(n=s.indexOf(e.charAt(a++)))>>4,i=(15&n)<<4|(o=s.indexOf(e.charAt(a++)))>>2,r=(3&o)<<6|s.indexOf(e.charAt(a++)),u[c++]=t,u[c++]=i,u[c++]=r;return u},e.prototype.readByte=function(e){return this.buffer[e]},Object.defineProperty(e.prototype,"internalBuffer",{get:function(){return this.buffer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this.buffer.byteLength},enumerable:!0,configurable:!0}),e.prototype.readNextTwoBytes=function(e){var t=e.readByte(this.position);return this.position++,t<<=8,t|=e.readByte(this.position),this.position++,t},e}();!function(e){e[e.Unknown=0]="Unknown",e[e.Bmp=1]="Bmp",e[e.Emf=2]="Emf",e[e.Gif=3]="Gif",e[e.Jpeg=4]="Jpeg",e[e.Png=5]="Png",e[e.Wmf=6]="Wmf",e[e.Icon=7]="Icon"}(zo||(zo={}));var Vo,Fo,Bo,Wo=function(){function e(e){this.sof1Marker=193,this.sof2Marker=194,this.sof3Marker=195,this.sof5Marker=197,this.sof6Marker=198,this.sof7Marker=199,this.sof9Marker=201,this.sof10Marker=202,this.sof11Marker=203,this.sof13Marker=205,this.sof14Marker=206,this.sof15Marker=207,this.mFormat=zo.Unknown,this.mbitsPerComponent=8,this.dictionaryProperties=new Yr,this.mStream=e,this.initialize()}return Object.defineProperty(e.prototype,"height",{get:function(){return this.mHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.mWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bitsPerComponent",{get:function(){return this.mbitsPerComponent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.mImageData.count},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imageData",{get:function(){return this.mImageData},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imageDataAsNumberArray",{get:function(){return this.mImageData.internalBuffer.buffer},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){if(this.mFormat!==zo.Unknown||!this.checkIfJpeg())throw new TypeError("Only the JPEG format is supported");this.mFormat=zo.Jpeg,this.parseJpegImage(),this.reset(),this.mImageData=new Ro(this.mStream.count),this.mStream.read(this.mImageData,0,this.mImageData.count)},e.prototype.reset=function(){this.mStream.position=0},e.prototype.parseJpegImage=function(){this.reset();var e=new Ro(this.mStream.count);this.mStream.read(e,0,e.count);for(var t=4,i=!1,r=256*e.getBuffer(t)+e.getBuffer(t+1);t<e.count;){if(!((t+=r)<e.count)){i=!0;break}if(192===e.getBuffer(t+1))return this.mHeight=256*e.getBuffer(t+5)+e.getBuffer(t+6),void(this.mWidth=256*e.getBuffer(t+7)+e.getBuffer(t+8));t+=2,r=256*e.getBuffer(t)+e.getBuffer(t+1)}i&&(this.mStream.position=0,this.skip(this.mStream,2),this.readExceededJPGImage(this.mStream))},Object.defineProperty(e.prototype,"format",{get:function(){return this.mFormat},enumerable:!0,configurable:!0}),e.prototype.checkIfJpeg=function(){this.reset();for(var t=0;t<e.mJpegHeader.length;t++){if(e.mJpegHeader[t]!==this.mStream.readByte(t))return!1;this.mStream.position++}return!0},e.prototype.getImageDictionary=function(){if(this.mFormat===zo.Jpeg){this.imageData.internalBuffer.length,this.imageStream=new cn,this.imageStream.isResource=!0;for(var e="",t="",i=0;i<this.imageDataAsNumberArray.byteLength;i++)e+=String.fromCharCode(null,this.mStream.readByte(i));for(i=0;i<e.length;i++)i%2!=0&&(t+=e[i]);return this.imageStream.data=[t],this.imageStream.compress=!1,this.imageStream.items.setValue(this.dictionaryProperties.type,new Ur(this.dictionaryProperties.xObject)),this.imageStream.items.setValue(this.dictionaryProperties.subtype,new Ur(this.dictionaryProperties.image)),this.imageStream.items.setValue(this.dictionaryProperties.width,new Hr(this.width)),this.imageStream.items.setValue(this.dictionaryProperties.height,new Hr(this.height)),this.imageStream.items.setValue(this.dictionaryProperties.bitsPerComponent,new Hr(this.bitsPerComponent)),this.imageStream.items.setValue(this.dictionaryProperties.filter,new Ur(this.dictionaryProperties.dctdecode)),this.imageStream.items.setValue(this.dictionaryProperties.colorSpace,new Ur(this.getColorSpace())),this.imageStream.items.setValue(this.dictionaryProperties.decodeParms,this.getDecodeParams()),this.imageStream}return this.imageStream},e.prototype.getColorSpace=function(){return this.dictionaryProperties.deviceRgb},e.prototype.getDecodeParams=function(){var e=new Rr;return e.items.setValue(this.dictionaryProperties.columns,new Hr(this.width)),e.items.setValue(this.dictionaryProperties.blackIs1,new lo(!0)),e.items.setValue(this.dictionaryProperties.k,new Hr(-1)),e.items.setValue(this.dictionaryProperties.predictor,new Hr(15)),e.items.setValue(this.dictionaryProperties.bitsPerComponent,new Hr(this.bitsPerComponent)),e},e.prototype.readExceededJPGImage=function(e){this.mStream=e;for(var t=!0;t;){switch(this.getMarker(e)){case this.sof1Marker:case this.sof2Marker:case this.sof3Marker:case this.sof5Marker:case this.sof6Marker:case this.sof7Marker:case this.sof9Marker:case this.sof10Marker:case this.sof11Marker:case this.sof13Marker:case this.sof14Marker:case this.sof15Marker:e.position+=3,this.mHeight=this.mStream.readNextTwoBytes(e),this.mWidth=this.mStream.readNextTwoBytes(e),t=!1;break;default:this.skipStream(e)}}},e.prototype.skip=function(e,t){this.mStream=e;var i=new Ro(t);this.mStream.read(i,0,i.count)},e.prototype.getMarker=function(e){var t=32;for(t=e.readByte(this.mStream.position),e.position++;255!==t;)t=e.readByte(this.mStream.position),e.position++;do{t=e.readByte(this.mStream.position),e.position++}while(255===t);return t},e.prototype.skipStream=function(e){var t=this.mStream.readNextTwoBytes(e)-2;t>0&&(e.position+=t)},e.mPngHeader=[137,80,78,71,13,10,26,10],e.mJpegHeader=[255,216],e.GIF_HEADER="G,I,F,8",e.BMP_HEADER="B,M",e}(),Go=function(){function e(e){this.updateProportionsHelper(e)}return e.prototype.convertUnits=function(e,t,i){return this.convertFromPixels(this.convertToPixels(e,t),i)},e.prototype.convertToPixels=function(e,t){var i=t;return e*this.proportions[i]},e.prototype.convertFromPixels=function(e,t){var i=t;return e/this.proportions[i]},e.prototype.updateProportionsHelper=function(e){this.proportions=[e/2.54,e/6,1,e/72,e,e/300,e/25.4]},e.horizontalResolution=96,e.verticalResolution=96,e}(),Ho=function(){function e(){}return Object.defineProperty(e.prototype,"width",{get:function(){return this.imageWidth},set:function(e){this.imageWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.imageHeight},set:function(e){this.imageHeight=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{set:function(e){this.width=e.width,this.height=e.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"physicalDimension",{get:function(){return this.imagePhysicalDimension=this.getPointSize(this.width,this.height,this.horizontalResolution,this.verticalResolution),new Fn(this.width,this.height)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.imageStream},enumerable:!0,configurable:!0}),e.prototype.getPointSize=function(e,t,i,r){if(void 0===i){var n=Go.horizontalResolution,o=Go.verticalResolution;return this.getPointSize(e,t,n,o)}var s=new Go(i),a=new Go(r),c=s.convertUnits(e,Dn.Pixel,Dn.Point),h=a.convertUnits(t,Dn.Pixel,Dn.Point);return new Fn(c,h)},e}(),qo=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),_o=function(e){function t(t){var i=e.call(this)||this;return i.imageStatus=!0,i.dictionaryProperties=new Yr,i.loadImage(t),i}return qo(t,e),t.prototype.loadImage=function(e){this.initializeAsync(e)},t.prototype.initializeAsync=function(e){var t=new Ro(e.length);t.writeFromBase64String(e),this.decoder=new Wo(t),this.height=this.decoder.height,this.width=this.decoder.width,this.bitsPerComponent=this.decoder.bitsPerComponent},t.prototype.save=function(){this.imageStatus=!0,this.imageStream=this.decoder.getImageDictionary()},t}(Ho),Jo=function(){function e(){}return Object.defineProperty(e.prototype,"empty",{get:function(){return this.offset===this.length&&this.length===this.checksum&&0===this.checksum},enumerable:!0,configurable:!0}),e}(),Zo=function(){},Ko=function(){},Xo=function(){},$o=function(){function e(){}return Object.defineProperty(e.prototype,"isItalic",{get:function(){return!!(2&this.macStyle)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isBold",{get:function(){return!!(1&this.macStyle)},enumerable:!0,configurable:!0}),e}(),es=function(){},ts=function(){},is=function(){},rs=function(){},ns=function(){},os=function(){},ss=function(){function e(){}return Object.defineProperty(e.prototype,"empty",{get:function(){return this.index===this.width&&this.width===this.charCode&&0===this.charCode},enumerable:!0,configurable:!0}),e.prototype.compareTo=function(e){var t=e;return this.index-t.index},e}(),as=function(){},cs=function(){},hs=function(){},us=function(){},ls=function(){},ps=function(){function e(e){this.int32Size=4,this.int16Size=2,this.int64Size=8,this.bufferLength=e,this.buffer=[]}return Object.defineProperty(e.prototype,"data",{get:function(){if(this.buffer.length<this.bufferLength)for(var e=this.bufferLength-this.buffer.length,t=0;t<e;t++)this.buffer.push(0);return this.buffer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return void 0!==this.internalPosition&&null!==this.internalPosition||(this.internalPosition=0),this.internalPosition},enumerable:!0,configurable:!0}),e.prototype.writeShort=function(e){var t=[(65280&e)>>8,255&e];this.flush(t)},e.prototype.writeInt=function(e){var t=[(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e];this.flush(t)},e.prototype.writeUInt=function(e){var t=[(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e];this.flush(t)},e.prototype.writeString=function(e){if(null==e)throw new Error("Argument Null Exception : value");for(var t=[],i=0;i<e.length;i++)t.push(e.charCodeAt(i));this.flush(t)},e.prototype.writeBytes=function(e){this.flush(e)},e.prototype.flush=function(e){if(null===e)throw new Error("Argument Null Exception : buff");for(var t=this.position,i=0;i<e.length;i++)this.buffer[t]=e[i],t++;this.internalPosition+=e.length},e}(),ds=function(){function e(e){this.int32Size=4,this.isTtcFont=!1,this.isMacTtf=!1,this.metricsName="",this.isMacTTF=!1,this.missedGlyphs=0,this.tableNames=["cvt ","fpgm","glyf","head","hhea","hmtx","loca","maxp","prep"],this.entrySelectors=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4],this.fontData=e,this.initialize()}return Object.defineProperty(e.prototype,"macintosh",{get:function(){return null!==this.macintoshDictionary&&void 0!==this.macintoshDictionary||(this.macintoshDictionary=new Pr),this.macintoshDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"microsoft",{get:function(){return null!==this.microsoftDictionary&&void 0!==this.microsoftDictionary||(this.microsoftDictionary=new Pr),this.microsoftDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"macintoshGlyphs",{get:function(){return null!==this.internalMacintoshGlyphs&&void 0!==this.internalMacintoshGlyphs||(this.internalMacintoshGlyphs=new Pr),this.internalMacintoshGlyphs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"microsoftGlyphs",{get:function(){return null!==this.internalMicrosoftGlyphs&&void 0!==this.internalMicrosoftGlyphs||(this.internalMicrosoftGlyphs=new Pr),this.internalMicrosoftGlyphs},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){void 0===this.metrics&&(this.metrics=new $o),this.readFontDictionary();var e=this.readNameTable(),t=this.readHeadTable();this.initializeFontName(e),this.metrics.macStyle=t.macStyle},e.prototype.readFontDictionary=function(){this.offset=0,this.checkPreambula();var e=this.readInt16(this.offset);this.readInt16(this.offset),this.readInt16(this.offset),this.readInt16(this.offset),void 0===this.tableDirectory&&(this.tableDirectory=new Pr);for(var t=0;t<e;++t){var i=new Jo,r=this.readString(this.int32Size);i.checksum=this.readInt32(this.offset),i.offset=this.readInt32(this.offset),i.length=this.readInt32(this.offset),this.tableDirectory.setValue(r,i)}this.lowestPosition=this.offset,this.isTtcFont||this.fixOffsets()},e.prototype.fixOffsets=function(){for(var e=Number.MAX_VALUE,t=this.tableDirectory.keys(),i=0;i<t.length;i++){var r=(s=this.tableDirectory.getValue(t[i])).offset;if(e>r&&(e=r)<=this.lowestPosition)break}var n=e-this.lowestPosition;if(0!==n){var o=new Pr;for(i=0;i<t.length;i++){var s;(s=this.tableDirectory.getValue(t[i])).offset-=n,o.setValue(t[i],s)}this.tableDirectory=o}},e.prototype.checkPreambula=function(){var e=this.readInt32(this.offset);if(this.isMacTtf=1953658213===e,65536!==e&&1953658213!==e&&1330926671!==e){if(this.isTtcFont=!0,this.offset=0,"ttcf"!==this.readString(4))throw new Error("Can not read TTF font data");if(this.offset+=4,this.readInt32(this.offset)<0)throw new Error("Can not read TTF font data");this.offset=this.readInt32(this.offset),e=this.readInt32(this.offset)}return e},e.prototype.readNameTable=function(){var e=this.getTable("name");this.offset=e.offset;var t=new Zo;t.formatSelector=this.readUInt16(this.offset),t.recordsCount=this.readUInt16(this.offset),t.offset=this.readUInt16(this.offset),t.nameRecords=[];for(var i=this.offset,r=0;r<t.recordsCount;r++){this.offset=i;var n=new Ko;n.platformID=this.readUInt16(this.offset),n.encodingID=this.readUInt16(this.offset),n.languageID=this.readUInt16(this.offset),n.nameID=this.readUInt16(this.offset),n.length=this.readUInt16(this.offset),n.offset=this.readUInt16(this.offset),this.offset=e.offset+t.offset+n.offset;var o=0===n.platformID||3===n.platformID;n.name=this.readString(n.length,o),t.nameRecords[r]=n,i+=12}return t},e.prototype.readHeadTable=function(){var e=this.getTable("head");this.offset=e.offset;var t=new Xo;return t.version=this.readFixed(this.offset),t.fontRevision=this.readFixed(this.offset),t.checkSumAdjustment=this.readUInt32(this.offset),t.magicNumber=this.readUInt32(this.offset),t.flags=this.readUInt16(this.offset),t.unitsPerEm=this.readUInt16(this.offset),t.created=this.readInt64(this.offset),t.modified=this.readInt64(this.offset),t.xMin=this.readInt16(this.offset),t.yMin=this.readInt16(this.offset),t.xMax=this.readInt16(this.offset),t.yMax=this.readInt16(this.offset),t.macStyle=this.readUInt16(this.offset),t.lowestReadableSize=this.readUInt16(this.offset),t.fontDirectionHint=this.readInt16(this.offset),t.indexToLocalFormat=this.readInt16(this.offset),t.glyphDataFormat=this.readInt16(this.offset),t},e.prototype.readHorizontalHeaderTable=function(){var e=this.getTable("hhea");this.offset=e.offset;var t=new es;return t.version=this.readFixed(this.offset),t.ascender=this.readInt16(this.offset),t.descender=this.readInt16(this.offset),t.lineGap=this.readInt16(this.offset),t.advanceWidthMax=this.readUInt16(this.offset),t.minLeftSideBearing=this.readInt16(this.offset),t.minRightSideBearing=this.readInt16(this.offset),t.xMaxExtent=this.readInt16(this.offset),t.caretSlopeRise=this.readInt16(this.offset),t.caretSlopeRun=this.readInt16(this.offset),this.offset+=10,t.metricDataFormat=this.readInt16(this.offset),t.numberOfHMetrics=this.readUInt16(this.offset),t},e.prototype.readOS2Table=function(){var e=this.getTable("OS/2");this.offset=e.offset;var t=new ts;return t.version=this.readUInt16(this.offset),t.xAvgCharWidth=this.readInt16(this.offset),t.usWeightClass=this.readUInt16(this.offset),t.usWidthClass=this.readUInt16(this.offset),t.fsType=this.readInt16(this.offset),t.ySubscriptXSize=this.readInt16(this.offset),t.ySubscriptYSize=this.readInt16(this.offset),t.ySubscriptXOffset=this.readInt16(this.offset),t.ySubscriptYOffset=this.readInt16(this.offset),t.ySuperscriptXSize=this.readInt16(this.offset),t.ySuperscriptYSize=this.readInt16(this.offset),t.ySuperscriptXOffset=this.readInt16(this.offset),t.ySuperscriptYOffset=this.readInt16(this.offset),t.yStrikeoutSize=this.readInt16(this.offset),t.yStrikeoutPosition=this.readInt16(this.offset),t.sFamilyClass=this.readInt16(this.offset),t.panose=this.readBytes(10),t.ulUnicodeRange1=this.readUInt32(this.offset),t.ulUnicodeRange2=this.readUInt32(this.offset),t.ulUnicodeRange3=this.readUInt32(this.offset),t.ulUnicodeRange4=this.readUInt32(this.offset),t.vendorIdentifier=this.readBytes(4),t.fsSelection=this.readUInt16(this.offset),t.usFirstCharIndex=this.readUInt16(this.offset),t.usLastCharIndex=this.readUInt16(this.offset),t.sTypoAscender=this.readInt16(this.offset),t.sTypoDescender=this.readInt16(this.offset),t.sTypoLineGap=this.readInt16(this.offset),t.usWinAscent=this.readUInt16(this.offset),t.usWinDescent=this.readUInt16(this.offset),t.ulCodePageRange1=this.readUInt32(this.offset),t.ulCodePageRange2=this.readUInt32(this.offset),t.version>1?(t.sxHeight=this.readInt16(this.offset),t.sCapHeight=this.readInt16(this.offset),t.usDefaultChar=this.readUInt16(this.offset),t.usBreakChar=this.readUInt16(this.offset),t.usMaxContext=this.readUInt16(this.offset)):(t.sxHeight=0,t.sCapHeight=0,t.usDefaultChar=0,t.usBreakChar=0,t.usMaxContext=0),t},e.prototype.readPostTable=function(){var e=this.getTable("post");this.offset=e.offset;var t=new is;return t.formatType=this.readFixed(this.offset),t.italicAngle=this.readFixed(this.offset),t.underlinePosition=this.readInt16(this.offset),t.underlineThickness=this.readInt16(this.offset),t.isFixedPitch=this.readUInt32(this.offset),t.minType42=this.readUInt32(this.offset),t.maxType42=this.readUInt32(this.offset),t.minType1=this.readUInt32(this.offset),t.maxType1=this.readUInt32(this.offset),t},e.prototype.readWidthTable=function(e,t){var i=this.getTable("hmtx");this.offset=i.offset;for(var r=[],n=0;n<e;n++){var o=new rs;o.advanceWidth=this.readUInt16(this.offset),o.lsb=this.readInt16(this.offset);var s=1e3*o.advanceWidth/t;r.push(Math.floor(s))}return r},e.prototype.readCmapTable=function(){var e=this.getTable("cmap");this.offset=e.offset;var t=new os;t.version=this.readUInt16(this.offset),t.tablesCount=this.readUInt16(this.offset);for(var i=this.offset,r=[],n=0;n<t.tablesCount;n++){this.offset=i;var o=new ns;o.platformID=this.readUInt16(this.offset),o.encodingID=this.readUInt16(this.offset),o.offset=this.readUInt32(this.offset),i=this.offset,this.readCmapSubTable(o),r[n]=o}return r},e.prototype.readCmapSubTable=function(e){var t=this.getTable("cmap");this.offset=t.offset+e.offset;var i=this.readUInt16(this.offset),r=this.getCmapEncoding(e.platformID,e.encodingID);if(r===En.Macintosh?kn.Macintosh:kn.Microsoft,r!==En.Unknown)switch(i){case xn.Apple:this.readAppleCmapTable(e,r);break;case xn.Microsoft:this.readMicrosoftCmapTable(e,r);break;case xn.Trimmed:this.readTrimmedCmapTable(e,r)}},e.prototype.readAppleCmapTable=function(e,t){var i=this.getTable("cmap");this.offset=i.offset+e.offset;var r=new cs;r.format=this.readUInt16(this.offset),r.length=this.readUInt16(this.offset),r.version=this.readUInt16(this.offset),null!==this.maxMacIndex&&void 0!==this.maxMacIndex||(this.maxMacIndex=0);for(var n=0;n<256;++n){var o=new ss;o.index=this.readByte(this.offset),o.width=this.getWidth(o.index),o.charCode=n,this.macintosh.setValue(n,o),this.addGlyph(o,t),this.maxMacIndex=Math.max(n,this.maxMacIndex)}},e.prototype.readMicrosoftCmapTable=function(e,t){var i=this.getTable("cmap");this.offset=i.offset+e.offset;var r=t===En.Unicode?this.microsoft:this.macintosh,n=new hs;n.format=this.readUInt16(this.offset),n.length=this.readUInt16(this.offset),n.version=this.readUInt16(this.offset),n.segCountX2=this.readUInt16(this.offset),n.searchRange=this.readUInt16(this.offset),n.entrySelector=this.readUInt16(this.offset),n.rangeShift=this.readUInt16(this.offset);var o=n.segCountX2/2;n.endCount=this.readUshortArray(o),n.reservedPad=this.readUInt16(this.offset),n.startCount=this.readUshortArray(o),n.idDelta=this.readUshortArray(o),n.idRangeOffset=this.readUshortArray(o);var s=n.length/2-8-4*o;n.glyphID=this.readUshortArray(s);for(var a=0,c=0,h=0;h<o;h++)for(var u=n.startCount[h];u<=n.endCount[h]&&65535!==u;u++){if(0===n.idRangeOffset[h])a=u+n.idDelta[h]&65535;else{if((c=h+n.idRangeOffset[h]/2-o+u-n.startCount[h])>=n.glyphID.length)continue;a=n.glyphID[c]+n.idDelta[h]&65535}var l=new ss;l.index=a,l.width=this.getWidth(l.index);var p=t===En.Symbol&&61440==(65280&u)?255&u:u;l.charCode=p,r.setValue(p,l),this.addGlyph(l,t)}},e.prototype.readTrimmedCmapTable=function(e,t){var i=this.getTable("cmap");this.offset=i.offset+e.offset;var r=new us;r.format=this.readUInt16(this.offset),r.length=this.readUInt16(this.offset),r.version=this.readUInt16(this.offset),r.firstCode=this.readUInt16(this.offset),r.entryCount=this.readUInt16(this.offset);for(var n=0;n<r.entryCount;++n){var o=new ss;o.index=this.readUInt16(this.offset),o.width=this.getWidth(o.index),o.charCode=n+r.firstCode,this.macintosh.setValue(n,o),this.addGlyph(o,t),this.maxMacIndex=Math.max(n,this.maxMacIndex)}},e.prototype.initializeFontName=function(e){for(var t=0;t<e.recordsCount;t++){var i=e.nameRecords[t];if(1===i.nameID?this.metrics.fontFamily=i.name:6===i.nameID&&(this.metrics.postScriptName=i.name),null!==this.metrics.fontFamily&&void 0!==this.metrics.fontFamily&&null!==this.metrics.postScriptName&&void 0!==this.metrics.postScriptName)break}},e.prototype.getTable=function(e){var t,i=new Jo;return this.tableDirectory.containsKey(e)&&(t=this.tableDirectory.getValue(e)),null!=t&&(i=t),i},e.prototype.getWidth=function(e){return e=e<this.width.length?e:this.width.length-1,this.width[e]},e.prototype.getCmapEncoding=function(e,t){var i=En.Unknown;return e==kn.Microsoft&&t==Pn.Undefined?i=En.Symbol:e==kn.Microsoft&&t==Pn.Unicode?i=En.Unicode:e==kn.Macintosh&&t==Un.Roman&&(i=En.Macintosh),i},e.prototype.addGlyph=function(e,t){var i=null;switch(t){case En.Unicode:i=this.microsoftGlyphs;break;case En.Macintosh:case En.Symbol:i=this.macintoshGlyphs}i.setValue(e.index,e)},e.prototype.initializeMetrics=function(e,t,i,r,n,o){this.initializeFontName(e);for(var s=!1,a=0;a<o.length;a++){var c=o[a];if(this.getCmapEncoding(c.platformID,c.encodingID)===En.Symbol){s=!0;break}}this.metrics.isSymbol=s,this.metrics.macStyle=t.macStyle,this.metrics.isFixedPitch=0!==n.isFixedPitch,this.metrics.italicAngle=n.italicAngle;var h=1e3/t.unitsPerEm;this.metrics.winAscent=r.sTypoAscender*h,this.metrics.macAscent=i.ascender*h,this.metrics.capHeight=0!==r.sCapHeight?r.sCapHeight:.7*t.unitsPerEm*h,this.metrics.winDescent=r.sTypoDescender*h,this.metrics.macDescent=i.descender*h,this.metrics.leading=(r.sTypoAscender-r.sTypoDescender+r.sTypoLineGap)*h,this.metrics.lineGap=Math.ceil(i.lineGap*h);var u=t.xMin*h,l=Math.ceil(this.metrics.macAscent+this.metrics.lineGap),p=t.xMax*h,d=this.metrics.macDescent;this.metrics.fontBox=new Wn(u,l,p,d),this.metrics.stemV=80,this.metrics.widthTable=this.updateWidth(),this.metrics.contains=this.tableDirectory.containsKey("CFF"),this.metrics.subScriptSizeFactor=t.unitsPerEm/r.ySubscriptYSize,this.metrics.superscriptSizeFactor=t.unitsPerEm/r.ySuperscriptYSize},e.prototype.updateWidth=function(){var e=[];if(this.metrics.isSymbol)for(var t=0;t<256;t++){var i=this.getGlyph(String.fromCharCode(t));e[t]=i.empty?0:i.width}else{var r=[],n=String.fromCharCode(32);for(t=0;t<256;t++){r[0]=t;var o=this.getString(r,0,r.length),s=o.length>0?o[0]:"?";(i=this.getGlyph(s)).empty?(i=this.getGlyph(n),e[t]=i.empty?0:i.width):e[t]=i.width}}return e},e.prototype.getDefaultGlyph=function(){return this.getGlyph(Zn.whiteSpace)},e.prototype.getString=function(e,t,i){for(var r="",n=0;n<i;n++)r+=String.fromCharCode(e[n+t]);return r},e.prototype.readLocaTable=function(e){var t=this.getTable("loca");this.offset=t.offset;var i=new as,r=null;if(e){var n=t.length/2;r=[];for(var o=0;o<n;o++)r[o]=2*this.readUInt16(this.offset)}else{n=t.length/4;r=[];for(o=0;o<n;o++)r[o]=this.readUInt32(this.offset)}return i.offsets=r,i},e.prototype.updateGlyphChars=function(e,t){e.containsKey(0)||e.setValue(0,0);for(var i=new Pr,r=e.keys(),n=0;n<r.length;n++)i.setValue(r[n],e.getValue(r[n]));for(n=0;n<r.length;n++){var o=r[n];this.processCompositeGlyph(e,o,t)}},e.prototype.processCompositeGlyph=function(e,t,i){if(t<i.offsets.length-1){var r=i.offsets[t];if(r!==i.offsets[t+1]){var n=this.getTable("glyf");this.offset=n.offset+r;var o=new ls;if(o.numberOfContours=this.readInt16(this.offset),o.xMin=this.readInt16(this.offset),o.yMin=this.readInt16(this.offset),o.xMax=this.readInt16(this.offset),o.yMax=this.readInt16(this.offset),o.numberOfContours<0)for(var s=0;;){var a=this.readUInt16(this.offset),c=this.readUInt16(this.offset);if(e.containsKey(c)||e.setValue(c,0),0===(a&Yn.MoreComponents))break;s=0!==(a&Yn.Arg1And2AreWords)?4:2,0!==(a&Yn.WeHaveScale)?s+=2:0!==(a&Yn.WeHaveAnXyScale)?s+=4:0!==(a&Yn.WeHaveTwoByTwo)&&(s+=8),this.offset+=s}}}},e.prototype.generateGlyphTable=function(e,t,i,r){i=[];var n=e.keys();n.sort(function(e,t){return e-t});for(var o=0,s=0;s<n.length;s++){var a=n[s];t.offsets.length>0&&(o+=t.offsets[a+1]-t.offsets[a])}var c=this.align(o);r=[];for(s=0;s<c;s++)r.push(0);var h=0,u=0,l=this.getTable("glyf");for(s=0;s<t.offsets.length;s++)if(i.push(h),u<n.length&&n[u]===s){++u,i[s]=h;var p=t.offsets[s],d=t.offsets[s+1]-p;if(d>0)this.offset=l.offset+p,r=this.read(r,h,d).buffer,h+=d}return{glyphTableSize:o,newLocaTable:i,newGlyphTable:r}},e.prototype.updateLocaTable=function(e,t,i){if(null===e)throw new Error("Argument Null Exception : newLocaTable");for(var r=t?2*e.length:4*e.length,n=this.align(r),o=new ps(n),s=0;s<e.length;s++){var a=e[s];t?(a/=2,o.writeShort(a)):o.writeInt(a)}return{newLocaUpdated:o.data,newLocaSize:r}},e.prototype.align=function(e){return e+3&-4},e.prototype.getFontProgram=function(e,t,i,r){if(null===e)throw new Error("Argument Null Exception : newLocaTableOut");if(null===t)throw new Error("Argument Null Exception : newGlyphTable");this.tableNames;var n=this.getFontProgramLength(e,t,0),o=n.fontProgramLength,s=n.numTables,a=new ps(o);a.writeInt(65536),a.writeShort(s);var c=this.entrySelectors[s];return a.writeShort(16*(1<<(31&c))),a.writeShort(c),a.writeShort(16*(s-(1<<(31&c)))),this.writeCheckSums(a,s,e,t,i,r),this.writeGlyphs(a,e,t),a.data},e.prototype.getFontProgramLength=function(e,t,i){if(null===e)throw new Error("Argument Null Exception : newLocaTableOut");if(null===t)throw new Error("Argument Null Exception : newGlyphTable");i=2;for(var r=this.tableNames,n=0,o=0;o<r.length;o++){var s=r[o];if("glyf"!==s&&"loca"!==s){var a=this.getTable(s);a.empty||(++i,n+=this.align(a.length))}}return n+=e.length,n+=t.length,{fontProgramLength:n+=16*i+12,numTables:i}},e.prototype.writeCheckSums=function(e,t,i,r,n,o){if(null===e)throw new Error("Argument Null Exception : writer");if(null===i)throw new Error("Argument Null Exception : newLocaTableOut");if(null===r)throw new Error("Argument Null Exception : newGlyphTable");for(var s=this.tableNames,a=16*t+12,c=0,h=0;h<s.length;h++){var u=s[h],l=this.getTable(u);if(!l.empty){if(e.writeString(u),"glyf"===u){var p=this.calculateCheckSum(r);e.writeInt(p),c=n}else if("loca"===u){p=this.calculateCheckSum(i);e.writeInt(p),c=o}else e.writeInt(l.checksum),c=l.length;e.writeUInt(a),e.writeUInt(c),a+=this.align(c)}}},e.prototype.calculateCheckSum=function(e){if(null===e)throw new Error("Argument Null Exception : bytes");for(var t=0,i=0,r=0,n=0,o=0,s=0;s<(e.length+1)/4;s++)o+=255&e[t++],n+=255&e[t++],r+=255&e[t++],i+=255&e[t++];var a=i;return a+=r<<8,a+=n<<16,a+=o<<24},e.prototype.writeGlyphs=function(e,t,i){if(null===e)throw new Error("Argument Null Exception : writer");if(null===t)throw new Error("Argument Null Exception : newLocaTableOut");if(null===i)throw new Error("Argument Null Exception : newGlyphTable");for(var r=this.tableNames,n=0;n<r.length;n++){var o=r[n],s=this.getTable(o);if(!s.empty)if("glyf"===o)e.writeBytes(i);else if("loca"===o)e.writeBytes(t);else{for(var a=this.align(s.length),c=[],h=0;h<a;h++)c.push(0);this.offset=s.offset;var u=this.read(c,0,s.length);e.writeBytes(u.buffer)}}},e.prototype.setOffset=function(e){this.offset=e},e.prototype.createInternals=function(){this.metrics=new $o;var e=this.readNameTable(),t=this.readHeadTable();this.bIsLocaShort=0===t.indexToLocalFormat;var i=this.readHorizontalHeaderTable(),r=this.readOS2Table(),n=this.readPostTable();this.width=this.readWidthTable(i.numberOfHMetrics,t.unitsPerEm);var o=this.readCmapTable();this.initializeMetrics(e,t,i,r,n,o)},e.prototype.getGlyph=function(e){if("number"==typeof e){var t=null;return this.metrics.isSymbol||null==this.microsoftGlyphs?this.metrics.isSymbol&&null!=this.macintoshGlyphs&&this.macintoshGlyphs.containsKey(e)&&(t=this.macintoshGlyphs.getValue(e)):this.microsoftGlyphs.containsKey(e)&&(t=this.microsoftGlyphs.getValue(e)),null!=t?t:this.getDefaultGlyph()}var i=null,r=e.charCodeAt(0);return this.metrics.isSymbol||null===this.microsoft?(this.metrics.isSymbol&&null!==this.macintosh||this.isMacTTF)&&(0!==this.maxMacIndex?r%=this.maxMacIndex+1:r=61440==(65280&r)?255&r:r,this.macintosh.containsKey(r)&&(i=this.macintosh.getValue(r),this.isFontPresent=!0)):this.microsoft.containsKey(r)?(i=this.microsoft.getValue(r),r!==Zn.whiteSpace.charCodeAt(0)&&(this.isFontPresent=!0)):r!==Zn.whiteSpace.charCodeAt(0)&&(this.isFontPresent=!1),e===Zn.whiteSpace&&null===i&&(i=new ss),null!==i?i:this.getDefaultGlyph()},e.prototype.getGlyphChars=function(e){if(null==e)throw new Error("Argument Null Exception : chars");for(var t=new Pr,i=e.keys(),r=0;r<i.length;r++){var n=i[r],o=this.getGlyph(n);o.empty||t.setValue(o.index,n.charCodeAt(0))}return t},e.prototype.getAllGlyphs=function(){for(var e=[],t=new ss,i=0,r=0;r<this.width.length;r++){var n=this.width[r];t.index=i,t.width=n,e.push(t),i++}return e},e.prototype.readFontProgram=function(e){var t=this.getGlyphChars(e),i=this.readLocaTable(this.bIsLocaShort);t.size()<e.size()&&(this.missedGlyphs=e.size()-t.size()),this.updateGlyphChars(t,i);var r=this.generateGlyphTable(t,i,null,null),n=r.glyphTableSize,o=r.newLocaTable,s=r.newGlyphTable,a=this.updateLocaTable(o,this.bIsLocaShort,null),c=a.newLocaSize,h=a.newLocaUpdated;return this.getFontProgram(h,s,n,c)},e.prototype.convertString=function(e){if(null===e)throw new Error("Argument Null Exception : text");for(var t="",i=0;i<e.length;i++){var r=e[i],n=this.getGlyph(r);n.empty||(t+=String.fromCharCode(n.index))}return t},e.prototype.getCharWidth=function(e){var t=this.getGlyph(e);return(t=t.empty?this.getDefaultGlyph():t).empty?0:t.width},e.prototype.readString=function(e,t){if(void 0===t)return this.readString(e,!1);var i="";if(t)for(var r=0;r<e;r++)r%2!=0&&(i+=String.fromCharCode(this.fontData[this.offset])),this.offset+=1;else for(r=0;r<e;r++)i+=String.fromCharCode(this.fontData[this.offset]),this.offset+=1;return i},e.prototype.readFixed=function(e){return this.readInt16(e)+this.readInt16(e+2)/16384},e.prototype.readInt32=function(e){var t=this.fontData[e+3],i=this.fontData[e+2],r=this.fontData[e+1],n=this.fontData[e];return this.offset+=4,t+(i<<8)+(r<<16)+(n<<24)},e.prototype.readUInt32=function(e){var t=this.fontData[e+3],i=this.fontData[e+2],r=this.fontData[e+1],n=this.fontData[e];return this.offset+=4,t|i<<8|r<<16|n<<24},e.prototype.readInt16=function(e){var t=(this.fontData[e]<<8)+this.fontData[e+1];return t=32768&t?t-65536:t,this.offset+=2,t},e.prototype.readInt64=function(e){var t=this.readInt32(e+4),i=4294967296*this.readInt32(e)+t;return t<0&&(i+=4294967296),i},e.prototype.readUInt16=function(e){var t=this.fontData[e]<<8|this.fontData[e+1];return this.offset+=2,t},e.prototype.readUshortArray=function(e){for(var t=[],i=0;i<e;i++)t[i]=this.readUInt16(this.offset);return t},e.prototype.readBytes=function(e){for(var t=[],i=0;i<e;i++)t.push(this.fontData[this.offset]),this.offset+=1;return t},e.prototype.readByte=function(e){var t=this.fontData[e];return this.offset+=1,t},e.prototype.read=function(e,t,i){if(null===e)throw new Error("Argument Null Exception : buffer");var r=0,n=0;do{for(var o=0;o<i-r&&this.offset+o<this.fontData.length;o++)e[t+o]=this.fontData[this.offset+o];n=i-r,this.offset+=n,r+=n}while(r<i);return{buffer:e,written:r}},e}(),gs=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),fs=function(){function e(){this.lineGap=0}return e.prototype.getAscent=function(e){return this.ascent*to.charSizeMultiplier*this.getSize(e)},e.prototype.getDescent=function(e){return this.descent*to.charSizeMultiplier*this.getSize(e)},e.prototype.getLineGap=function(e){return this.lineGap*to.charSizeMultiplier*this.getSize(e)},e.prototype.getHeight=function(e){return this.getDescent(e)<0?this.getAscent(e)-this.getDescent(e)+this.getLineGap(e):this.getAscent(e)+this.getDescent(e)+this.getLineGap(e)},e.prototype.getSize=function(e){var t=this.size;if(null!=e)switch(e.subSuperScript){case An.SubScript:t/=this.subScriptSizeFactor;break;case An.SuperScript:t/=this.superscriptSizeFactor}return t},e.prototype.clone=function(){return this.widthTable=Ms.clone(),this},Object.defineProperty(e.prototype,"widthTable",{get:function(){return this.internalWidthTable},set:function(e){this.internalWidthTable=e},enumerable:!0,configurable:!0}),e}(),Ms=function(){function e(){}return e.clone=function(){return null},e}(),ys=function(e){function t(t){var i=e.call(this)||this;if(null==t)throw new Error("ArgumentNullException:widths");return i.widths=t,i}return gs(t,e),t.prototype.items=function(e){if(e<0||e>=this.widths.length)throw new Error("ArgumentOutOfRangeException:index, The character is not supported by the font.");return this.widths[e]},Object.defineProperty(t.prototype,"length",{get:function(){return this.widths.length},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return this.widths=this.widths,this},t.prototype.toArray=function(){return new qr(this.widths)},t}(Ms),ms=function(){function e(e,t){if(this.nameString="ABCDEFGHIJKLMNOPQRSTUVWXYZ",this.dictionaryProperties=new Yr,this.isCompress=!1,this.isEmbedFont=!1,this.cmapPrefix="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap"+Qr.newLine+"/CIDSystemInfo << /Registry (Adobe)/Ordering (UCS)/Supplement 0>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange"+Qr.newLine,this.cmapEndCodespaceRange="endcodespacerange"+Qr.newLine,this.cmapBeginRange="beginbfrange"+Qr.newLine,this.cmapEndRange="endbfrange"+Qr.newLine,this.cmapSuffix="endbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend end"+Qr.newLine,null==e)throw new Error("ArgumentNullException:base64String");this.fontSize=t,this.fontString=e,this.Initialize()}return e.prototype.getCharWidth=function(e){return this.ttfReader.getCharWidth(e)},e.prototype.getLineWidth=function(e){for(var t=0,i=0,r=e.length;i<r;i++){var n=e[i];t+=this.getCharWidth(n)}return t},e.prototype.Initialize=function(){var e=new Ro(this.fontString.length);e.writeFromBase64String(this.fontString),this.fontData=e.internalBuffer,this.ttfReader=new ds(this.fontData),this.ttfMetrics=this.ttfReader.metrics},e.prototype.createInternals=function(){this.fontDictionary=new Rr,this.fontProgram=new cn,this.cmap=new cn,this.descendantFont=new Rr,this.metrics=new fs,this.ttfReader.createInternals(),this.ttfMetrics=this.ttfReader.metrics,this.initializeMetrics(),this.subsetName=this.getFontName(),this.createDescendantFont(),this.createCmap(),this.createFontDictionary(),this.createFontProgram()},e.prototype.getInternals=function(){return this.fontDictionary},e.prototype.initializeMetrics=function(){var e=this.ttfReader.metrics;this.metrics.ascent=e.macAscent,this.metrics.descent=e.macDescent,this.metrics.height=e.macAscent-e.macDescent+e.lineGap,this.metrics.name=e.fontFamily,this.metrics.postScriptName=e.postScriptName,this.metrics.size=this.fontSize,this.metrics.widthTable=new ys(e.widthTable),this.metrics.lineGap=e.lineGap,this.metrics.subScriptSizeFactor=e.subScriptSizeFactor,this.metrics.superscriptSizeFactor=e.superscriptSizeFactor,this.metrics.isBold=e.isBold},e.prototype.getFontName=function(){for(var e,t="",i=0;i<6;i++){var r=Math.floor(26*Math.random())+0;t+=this.nameString[r]}return t+="+",e=(t+=this.ttfReader.metrics.postScriptName).toString(),e=this.formatName(e)},e.prototype.formatName=function(e){var t=e.replace("(","#28");return(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(")","#29")).replace("[","#5B")).replace("]","#5D")).replace("<","#3C")).replace(">","#3E")).replace("{","#7B")).replace("}","#7D")).replace("/","#2F")).replace("%","#25")).replace(" ","#20")},e.prototype.createDescendantFont=function(){this.descendantFont.isResource=!0,this.descendantFont.descendantFontBeginSave=new Fr(this),this.descendantFont.items.setValue(this.dictionaryProperties.type,new Ur(this.dictionaryProperties.font)),this.descendantFont.items.setValue(this.dictionaryProperties.subtype,new Ur(this.dictionaryProperties.cIDFontType2)),this.descendantFont.items.setValue(this.dictionaryProperties.baseFont,new Ur(this.subsetName)),this.descendantFont.items.setValue(this.dictionaryProperties.cIDToGIDMap,new Ur(this.dictionaryProperties.identity)),this.descendantFont.items.setValue(this.dictionaryProperties.dw,new Hr(1e3)),this.fontDescriptor=this.createFontDescriptor(),this.descendantFont.items.setValue(this.dictionaryProperties.fontDescriptor,new vn(this.fontDescriptor));var e=this.createSystemInfo();this.descendantFont.items.setValue(this.dictionaryProperties.cIDSystemInfo,e)},e.prototype.createFontDescriptor=function(){var e=new Rr,t=this.ttfReader.metrics;return e.isResource=!0,e.items.setValue(this.dictionaryProperties.type,new Ur(this.dictionaryProperties.fontDescriptor)),e.items.setValue(this.dictionaryProperties.fontName,new Ur(this.subsetName)),e.items.setValue(this.dictionaryProperties.flags,new Hr(this.getDescriptorFlags())),e.items.setValue(this.dictionaryProperties.fontBBox,qr.fromRectangle(this.getBoundBox())),e.items.setValue(this.dictionaryProperties.missingWidth,new Hr(t.widthTable[32])),e.items.setValue(this.dictionaryProperties.stemV,new Hr(t.stemV)),e.items.setValue(this.dictionaryProperties.italicAngle,new Hr(t.italicAngle)),e.items.setValue(this.dictionaryProperties.capHeight,new Hr(t.capHeight)),e.items.setValue(this.dictionaryProperties.ascent,new Hr(t.winAscent)),e.items.setValue(this.dictionaryProperties.descent,new Hr(t.winDescent)),e.items.setValue(this.dictionaryProperties.leading,new Hr(t.leading)),e.items.setValue(this.dictionaryProperties.avgWidth,new Hr(t.widthTable[32])),e.items.setValue(this.dictionaryProperties.fontFile2,new vn(this.fontProgram)),e.items.setValue(this.dictionaryProperties.maxWidth,new Hr(t.widthTable[32])),e.items.setValue(this.dictionaryProperties.xHeight,new Hr(0)),e.items.setValue(this.dictionaryProperties.stemH,new Hr(0)),e},e.prototype.createCmap=function(){this.cmap.cmapBeginSave=new hn(this)},e.prototype.createFontDictionary=function(){this.fontDictionary.isResource=!0,this.fontDictionary.fontDictionaryBeginSave=new Br(this),this.fontDictionary.items.setValue(this.dictionaryProperties.type,new Ur(this.dictionaryProperties.font)),this.fontDictionary.items.setValue(this.dictionaryProperties.baseFont,new Ur(this.subsetName)),this.fontDictionary.items.setValue(this.dictionaryProperties.subtype,new Ur(this.dictionaryProperties.type0)),this.fontDictionary.items.setValue(this.dictionaryProperties.encoding,new Ur(this.dictionaryProperties.identityH));var e=new qr,t=new vn(this.descendantFont);e.isFont=!0,e.add(t),this.fontDictionary.items.setValue(this.dictionaryProperties.descendantFonts,e)},e.prototype.createFontProgram=function(){this.fontProgram.fontProgramBeginSave=new un(this)},e.prototype.createSystemInfo=function(){var e=new Rr;return e.items.setValue(this.dictionaryProperties.registry,new bn("Adobe")),e.items.setValue(this.dictionaryProperties.ordering,new bn(this.dictionaryProperties.identity)),e.items.setValue(this.dictionaryProperties.supplement,new Hr(0)),e},e.prototype.descendantFontBeginSave=function(){if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){var e=this.getDescendantWidth();null!==e&&this.descendantFont.items.setValue(this.dictionaryProperties.w,e)}},e.prototype.cmapBeginSave=function(){this.generateCmap()},e.prototype.fontDictionaryBeginSave=function(){null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0&&!this.fontDictionary.containsKey(this.dictionaryProperties.toUnicode)&&this.fontDictionary.items.setValue(this.dictionaryProperties.toUnicode,new vn(this.cmap))},e.prototype.fontProgramBeginSave=function(){this.isCompress=!0,this.generateFontProgram()},e.prototype.getDescendantWidth=function(){var e=new qr;if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){for(var t=[],i=this.usedChars.keys(),r=0;r<i.length;r++){var n=i[r];(h=this.ttfReader.getGlyph(n)).empty||t.push(h)}t.sort(function(e,t){return e.index-t.index});var o=0,s=0,a=!1,c=new qr;for(r=0;r<t.length;r++){var h=t[r];a||(a=!0,o=h.index,s=h.index-1),(s+1!==h.index||r+1===t.length)&&t.length>1&&(e.add(new Hr(o)),0!==r&&e.add(c),o=h.index,c=new qr),c.add(new Hr(h.width)),r+1===t.length&&(e.add(new Hr(o)),e.add(c)),s=h.index}}return e},e.prototype.generateCmap=function(){if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){var e=this.ttfReader.getGlyphChars(this.usedChars);if(e.size()>0){var t=e.keys().sort(),i=t[0],r=t[t.length-1],n=this.toHexString(i,!1)+this.toHexString(r,!1)+Qr.newLine,o="";o+=this.cmapPrefix,o+=n,o+=this.cmapEndCodespaceRange;for(var s=0,a=0;a<t.length;a++){0===s&&(0!==a&&(o+=this.cmapEndRange),o+=s=Math.min(100,t.length-a),o+=Qr.whiteSpace,o+=this.cmapBeginRange),s-=1;var c=t[a];o+=this.toHexString(c,!0)+this.toHexString(c,!0)+this.toHexString(e.getValue(c),!0)+"\n"}o+=this.cmapSuffix,this.cmap.clearStream(),this.cmap.isResource=!0,this.cmap.write(o)}}},e.prototype.generateFontProgram=function(){var e;this.usedChars=null===this.usedChars||void 0===this.usedChars?new Pr:this.usedChars,this.ttfReader.setOffset(0),e=this.ttfReader.readFontProgram(this.usedChars),this.fontProgram.clearStream(),this.fontProgram.isResource=!0,this.fontProgram.writeBytes(e)},e.prototype.getDescriptorFlags=function(){var e=0,t=this.ttfReader.metrics;return t.isFixedPitch&&(e|=Qn.FixedPitch),t.isSymbol?e|=Qn.Symbolic:e|=Qn.Nonsymbolic,t.isItalic&&(e|=Qn.Italic),t.isBold&&(e|=Qn.ForceBold),e},e.prototype.getBoundBox=function(){var e=this.ttfReader.metrics.fontBox,t=Math.abs(e.right-e.left),i=Math.abs(e.top-e.bottom);return new Bn(e.left,e.bottom,t,i)},e.prototype.toHexString=function(e,t){var i=e.toString(16);return t&&(i=i.toUpperCase()),"<0000".substring(0,5-i.length)+i+">"},e.prototype.setSymbols=function(e){if(null===e)throw new Error("Argument Null Exception : text");null!==this.usedChars&&void 0!==this.usedChars||(this.usedChars=new Pr);for(var t=0;t<e.length;t++){var i=e[t];this.usedChars.setValue(i,String.fromCharCode(0))}!1===this.isEmbedFont&&this.getDescendantWidth()},e}(),Ns=function(){function e(){this.arabicCharTable=[["ء","ﺀ"],["آ","ﺁ","ﺂ"],["أ","ﺃ","ﺄ"],["ؤ","ﺅ","ﺆ"],["إ","ﺇ","ﺈ"],["ئ","ﺉ","ﺊ","ﺋ","ﺌ"],["ا","ﺍ","ﺎ"],["ب","ﺏ","ﺐ","ﺑ","ﺒ"],["ة","ﺓ","ﺔ"],["ت","ﺕ","ﺖ","ﺗ","ﺘ"],["ث","ﺙ","ﺚ","ﺛ","ﺜ"],["ج","ﺝ","ﺞ","ﺟ","ﺠ"],["ح","ﺡ","ﺢ","ﺣ","ﺤ"],["خ","ﺥ","ﺦ","ﺧ","ﺨ"],["د","ﺩ","ﺪ"],["ذ","ﺫ","ﺬ"],["ر","ﺭ","ﺮ"],["ز","ﺯ","ﺰ"],["س","ﺱ","ﺲ","ﺳ","ﺴ"],["ش","ﺵ","ﺶ","ﺷ","ﺸ"],["ص","ﺹ","ﺺ","ﺻ","ﺼ"],["ض","ﺽ","ﺾ","ﺿ","ﻀ"],["ط","ﻁ","ﻂ","ﻃ","ﻄ"],["ظ","ﻅ","ﻆ","ﻇ","ﻈ"],["ع","ﻉ","ﻊ","ﻋ","ﻌ"],["غ","ﻍ","ﻎ","ﻏ","ﻐ"],["ـ","ـ","ـ","ـ","ـ"],["ف","ﻑ","ﻒ","ﻓ","ﻔ"],["ق","ﻕ","ﻖ","ﻗ","ﻘ"],["ك","ﻙ","ﻚ","ﻛ","ﻜ"],["ل","ﻝ","ﻞ","ﻟ","ﻠ"],["م","ﻡ","ﻢ","ﻣ","ﻤ"],["ن","ﻥ","ﻦ","ﻧ","ﻨ"],["ه","ﻩ","ﻪ","ﻫ","ﻬ"],["و","ﻭ","ﻮ"],["ى","ﻯ","ﻰ","ﯨ","ﯩ"],["ي","ﻱ","ﻲ","ﻳ","ﻴ"],["ٱ","ﭐ","ﭑ"],["ٹ","ﭦ","ﭧ","ﭨ","ﭩ"],["ٺ","ﭞ","ﭟ","ﭠ","ﭡ"],["ٻ","ﭒ","ﭓ","ﭔ","ﭕ"],["پ","ﭖ","ﭗ","ﭘ","ﭙ"],["ٿ","ﭢ","ﭣ","ﭤ","ﭥ"],["ڀ","ﭚ","ﭛ","ﭜ","ﭝ"],["ڃ","ﭶ","ﭷ","ﭸ","ﭹ"],["ڄ","ﭲ","ﭳ","ﭴ","ﭵ"],["چ","ﭺ","ﭻ","ﭼ","ﭽ"],["ڇ","ﭾ","ﭿ","ﮀ","ﮁ"],["ڈ","ﮈ","ﮉ"],["ڌ","ﮄ","ﮅ"],["ڍ","ﮂ","ﮃ"],["ڎ","ﮆ","ﮇ"],["ڑ","ﮌ","ﮍ"],["ژ","ﮊ","ﮋ"],["ڤ","ﭪ","ﭫ","ﭬ","ﭭ"],["ڦ","ﭮ","ﭯ","ﭰ","ﭱ"],["ک","ﮎ","ﮏ","ﮐ","ﮑ"],["ڭ","ﯓ","ﯔ","ﯕ","ﯖ"],["گ","ﮒ","ﮓ","ﮔ","ﮕ"],["ڱ","ﮚ","ﮛ","ﮜ","ﮝ"],["ڳ","ﮖ","ﮗ","ﮘ","ﮙ"],["ں","ﮞ","ﮟ"],["ڻ","ﮠ","ﮡ","ﮢ","ﮣ"],["ھ","ﮪ","ﮫ","ﮬ","ﮭ"],["ۀ","ﮤ","ﮥ"],["ہ","ﮦ","ﮧ","ﮨ","ﮩ"],["ۅ","ﯠ","ﯡ"],["ۆ","ﯙ","ﯚ"],["ۇ","ﯗ","ﯘ"],["ۈ","ﯛ","ﯜ"],["ۉ","ﯢ","ﯣ"],["ۋ","ﯞ","ﯟ"],["ی","ﯼ","ﯽ","ﯾ","ﯿ"],["ې","ﯤ","ﯥ","ﯦ","ﯧ"],["ے","ﮮ","ﮯ"],["ۓ","ﮰ","ﮱ"]],this.alef="ا",this.alefHamza="أ",this.alefHamzaBelow="إ",this.alefMadda="آ",this.lam="ل",this.hamza="ء",this.zeroWidthJoiner="",this.hamzaAbove="ٔ",this.hamzaBelow="ٕ",this.wawHamza="ؤ",this.yehHamza="ئ",this.waw="و",this.alefMaksura="ى",this.yeh="ي",this.farsiYeh="ی",this.shadda="ّ",this.madda="ٓ",this.lwa="ﻻ",this.lwawh="ﻷ",this.lwawhb="ﻹ",this.lwawm="ﻵ",this.bwhb="ۓ",this.fathatan="ً",this.superScriptalef="ٰ",this.vowel=1,this.arabicMapTable=new Pr;for(var e=0;e<this.arabicCharTable.length;e++)this.arabicMapTable.setValue(this.arabicCharTable[e][0],this.arabicCharTable[e])}return e.prototype.getCharacterShape=function(e,t){if(e>=this.hamza&&e<=this.bwhb){if(this.arabicMapTable.getValue(e))return this.arabicMapTable.getValue(e)[t+1]}else if(e>=this.lwawm&&e<=this.lwa)return e;return e},e.prototype.shape=function(e,t){for(var i="",r="",n=0;n<e.length;n++){var o=e[n];if(o>=""&&o<="ۿ")r+=o;else{if(r.length>0)i+=this.doShape(r.toString(),0),r="";i+=o}}r.length>0&&(i+=this.doShape(r.toString(),0));return i.toString()},e.prototype.doShape=function(e,t){for(var i="",r=0,n=0,o="",s=new js,a=new js;n<e.length;)if(o=e[n++],0===this.ligature(o,a)){var c=this.getShapeCount(o);r=1===c?0:2,s.Shapes>2&&(r+=1),r%=a.Shapes,a.Value=this.getCharacterShape(a.Value,r),i=this.append(i,s,t),s=a,(a=new js).Value=o,a.Shapes=c,a.Ligature++}return r=s.Shapes>2?1:0,r%=a.Shapes,a.Value=this.getCharacterShape(a.Value,r),i=this.append(i,s,t),(i=this.append(i,a,t)).toString()},e.prototype.append=function(e,t,i){return""!==t.Value&&(e+=t.Value,t.Ligature-=1,""!==t.Type&&(0===(i&this.vowel)?(e+=t.Type,t.Ligature-=1):t.Ligature-=1),""!==t.vowel&&(0===(i&this.vowel)?(e+=t.vowel,t.Ligature-=1):t.Ligature-=1)),e},e.prototype.ligature=function(e,t){if(""!==t.Value){var i=0;if(e>=this.fathatan&&e<=this.hamzaBelow||e===this.superScriptalef){if(i=1,""!==t.vowel&&e!==this.shadda&&(i=2),e===this.shadda){if(null!=t.Type)return 0;t.Type=this.shadda}else e===this.hamzaBelow?t.Value===this.alef?(t.Value=this.alefHamzaBelow,i=2):e===this.lwa?(t.Value=this.lwawhb,i=2):t.Type=this.hamzaBelow:e===this.hamzaAbove?t.Value===this.alef?(t.Value=this.alefHamza,i=2):t.Value===this.lwa?(t.Value=this.lwawh,i=2):t.Value===this.waw?(t.Value=this.wawHamza,i=2):t.Value===this.yeh||t.Value===this.alefMaksura||t.Value===this.farsiYeh?(t.Value=this.yehHamza,i=2):t.Type=this.hamzaAbove:e===this.madda?t.Value===this.alef&&(t.Value=this.alefMadda,i=2):t.vowel=e;return 1===i&&t.Ligature++,i}return""!==t.vowel?0:(t.Value===this.lam&&(e===this.alef?(t.Value=this.lwa,t.Shapes=2,i=3):e===this.alefHamza?(t.Value=this.lwawh,t.Shapes=2,i=3):e===this.alefHamzaBelow?(t.Value=this.lwawhb,t.Shapes=2,i=3):e===this.alefMadda&&(t.Value=this.lwawm,t.Shapes=2,i=3)),i)}return 0},e.prototype.getShapeCount=function(e){if(e>=this.hamza&&e<=this.bwhb&&!(e>=this.fathatan&&e<=this.hamzaBelow||e===this.superScriptalef)){if(this.arabicMapTable.getValue(e))return this.arabicMapTable.getValue(e).length-1}else if(e===this.zeroWidthJoiner)return 4;return 1},e}(),js=function(){function e(){this.shapeValue="",this.shapeType="",this.shapeVowel="",this.shapeLigature=0,this.shapeShapes=1}return Object.defineProperty(e.prototype,"Value",{get:function(){return this.shapeValue},set:function(e){this.shapeValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Type",{get:function(){return this.shapeType},set:function(e){this.shapeType=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"vowel",{get:function(){return this.shapeVowel},set:function(e){this.shapeVowel=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Ligature",{get:function(){return this.shapeLigature},set:function(e){this.shapeLigature=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Shapes",{get:function(){return this.shapeShapes},set:function(e){this.shapeShapes=e},enumerable:!0,configurable:!0}),e}(),Ds=function(){function e(){this.indexes=[],this.indexLevels=[],this.mirroringShapeCharacters=new Pr,this.update()}return e.prototype.doMirrorShaping=function(e){for(var t=[],i=0;i<e.length;i++)1&~this.indexLevels[i]||!this.mirroringShapeCharacters.containsKey(e[i].charCodeAt(0))?t[i]=e[i].toString():t[i]=String.fromCharCode(this.mirroringShapeCharacters.getValue(e[i].charCodeAt(0)));for(var r="",n=0;n<t.length;n++)r+=t[n];return r},e.prototype.getLogicalToVisualString=function(e,t){var i=new Is;this.indexLevels=i.getVisualOrder(e,t),this.setDefaultIndexLevel(),this.doOrder(0,this.indexLevels.length-1);for(var r=this.doMirrorShaping(e),n="",o=0;o<this.indexes.length;o++){n+=r[this.indexes[o]]}return n.toString()},e.prototype.setDefaultIndexLevel=function(){for(var e=0;e<this.indexLevels.length;e++)this.indexes[e]=e},e.prototype.doOrder=function(e,t){for(var i=this.indexLevels[e],r=i,n=i,o=i,s=e+1;s<=t;++s){var a=this.indexLevels[s];a>i?i=a:a<r&&(r=a),n&=a,o|=a}if(1&o)if(1&~n)for(r|=1;i>=r;){for(var c=e;;){for(;c<=t&&!(this.indexLevels[c]>=i);)c+=1;if(c>t)break;for(var h=c+1;h<=t&&!(this.indexLevels[h]<i);)h+=1;this.reArrange(c,h),c=h+1}i-=1}else this.reArrange(e,t+1)},e.prototype.reArrange=function(e,t){var i=(e+t)/2;for(--t;e<i;++e,--t){var r=this.indexes[e];this.indexes[e]=this.indexes[t],this.indexes[t]=r}},e.prototype.update=function(){this.mirroringShapeCharacters.setValue(40,41),this.mirroringShapeCharacters.setValue(41,40),this.mirroringShapeCharacters.setValue(60,62),this.mirroringShapeCharacters.setValue(62,60),this.mirroringShapeCharacters.setValue(91,93),this.mirroringShapeCharacters.setValue(93,91),this.mirroringShapeCharacters.setValue(123,125),this.mirroringShapeCharacters.setValue(125,123),this.mirroringShapeCharacters.setValue(171,187),this.mirroringShapeCharacters.setValue(187,171),this.mirroringShapeCharacters.setValue(8249,8250),this.mirroringShapeCharacters.setValue(8250,8249),this.mirroringShapeCharacters.setValue(8261,8262),this.mirroringShapeCharacters.setValue(8262,8261),this.mirroringShapeCharacters.setValue(8317,8318),this.mirroringShapeCharacters.setValue(8318,8317),this.mirroringShapeCharacters.setValue(8333,8334),this.mirroringShapeCharacters.setValue(8334,8333),this.mirroringShapeCharacters.setValue(8712,8715),this.mirroringShapeCharacters.setValue(8713,8716),this.mirroringShapeCharacters.setValue(8714,8717),this.mirroringShapeCharacters.setValue(8715,8712),this.mirroringShapeCharacters.setValue(8716,8713),this.mirroringShapeCharacters.setValue(8717,8714),this.mirroringShapeCharacters.setValue(8725,10741),this.mirroringShapeCharacters.setValue(8764,8765),this.mirroringShapeCharacters.setValue(8765,8764),this.mirroringShapeCharacters.setValue(8771,8909),this.mirroringShapeCharacters.setValue(8786,8787),this.mirroringShapeCharacters.setValue(8787,8786),this.mirroringShapeCharacters.setValue(8788,8789),this.mirroringShapeCharacters.setValue(8789,8788),this.mirroringShapeCharacters.setValue(8804,8805),this.mirroringShapeCharacters.setValue(8805,8804),this.mirroringShapeCharacters.setValue(8806,8807),this.mirroringShapeCharacters.setValue(8807,8806),this.mirroringShapeCharacters.setValue(8808,8809),this.mirroringShapeCharacters.setValue(8809,8808),this.mirroringShapeCharacters.setValue(8810,8811),this.mirroringShapeCharacters.setValue(8811,8810),this.mirroringShapeCharacters.setValue(8814,8815),this.mirroringShapeCharacters.setValue(8815,8814),this.mirroringShapeCharacters.setValue(8816,8817),this.mirroringShapeCharacters.setValue(8817,8816),this.mirroringShapeCharacters.setValue(8818,8819),this.mirroringShapeCharacters.setValue(8819,8818),this.mirroringShapeCharacters.setValue(8820,8821),this.mirroringShapeCharacters.setValue(8821,8820),this.mirroringShapeCharacters.setValue(8822,8823),this.mirroringShapeCharacters.setValue(8823,8822),this.mirroringShapeCharacters.setValue(8824,8825),this.mirroringShapeCharacters.setValue(8825,8824),this.mirroringShapeCharacters.setValue(8826,8827),this.mirroringShapeCharacters.setValue(8827,8826),this.mirroringShapeCharacters.setValue(8828,8829),this.mirroringShapeCharacters.setValue(8829,8828),this.mirroringShapeCharacters.setValue(8830,8831),this.mirroringShapeCharacters.setValue(8831,8830),this.mirroringShapeCharacters.setValue(8832,8833),this.mirroringShapeCharacters.setValue(8833,8832),this.mirroringShapeCharacters.setValue(8834,8835),this.mirroringShapeCharacters.setValue(8835,8834),this.mirroringShapeCharacters.setValue(8836,8837),this.mirroringShapeCharacters.setValue(8837,8836),this.mirroringShapeCharacters.setValue(8838,8839),this.mirroringShapeCharacters.setValue(8839,8838),this.mirroringShapeCharacters.setValue(8840,8841),this.mirroringShapeCharacters.setValue(8841,8840),this.mirroringShapeCharacters.setValue(8842,8843),this.mirroringShapeCharacters.setValue(8843,8842),this.mirroringShapeCharacters.setValue(8847,8848),this.mirroringShapeCharacters.setValue(8848,8847),this.mirroringShapeCharacters.setValue(8849,8850),this.mirroringShapeCharacters.setValue(8850,8849),this.mirroringShapeCharacters.setValue(8856,10680),this.mirroringShapeCharacters.setValue(8866,8867),this.mirroringShapeCharacters.setValue(8867,8866),this.mirroringShapeCharacters.setValue(8870,10974),this.mirroringShapeCharacters.setValue(8872,10980),this.mirroringShapeCharacters.setValue(8873,10979),this.mirroringShapeCharacters.setValue(8875,10981),this.mirroringShapeCharacters.setValue(8880,8881),this.mirroringShapeCharacters.setValue(8881,8880),this.mirroringShapeCharacters.setValue(8882,8883),this.mirroringShapeCharacters.setValue(8883,8882),this.mirroringShapeCharacters.setValue(8884,8885),this.mirroringShapeCharacters.setValue(8885,8884),this.mirroringShapeCharacters.setValue(8886,8887),this.mirroringShapeCharacters.setValue(8887,8886),this.mirroringShapeCharacters.setValue(8905,8906),this.mirroringShapeCharacters.setValue(8906,8905),this.mirroringShapeCharacters.setValue(8907,8908),this.mirroringShapeCharacters.setValue(8908,8907),this.mirroringShapeCharacters.setValue(8909,8771),this.mirroringShapeCharacters.setValue(8912,8913),this.mirroringShapeCharacters.setValue(8913,8912),this.mirroringShapeCharacters.setValue(8918,8919),this.mirroringShapeCharacters.setValue(8919,8918),this.mirroringShapeCharacters.setValue(8920,8921),this.mirroringShapeCharacters.setValue(8921,8920),this.mirroringShapeCharacters.setValue(8922,8923),this.mirroringShapeCharacters.setValue(8923,8922),this.mirroringShapeCharacters.setValue(8924,8925),this.mirroringShapeCharacters.setValue(8925,8924),this.mirroringShapeCharacters.setValue(8926,8927),this.mirroringShapeCharacters.setValue(8927,8926),this.mirroringShapeCharacters.setValue(8928,8929),this.mirroringShapeCharacters.setValue(8929,8928),this.mirroringShapeCharacters.setValue(8930,8931),this.mirroringShapeCharacters.setValue(8931,8930),this.mirroringShapeCharacters.setValue(8932,8933),this.mirroringShapeCharacters.setValue(8933,8932),this.mirroringShapeCharacters.setValue(8934,8935),this.mirroringShapeCharacters.setValue(8935,8934),this.mirroringShapeCharacters.setValue(8936,8937),this.mirroringShapeCharacters.setValue(8937,8936),this.mirroringShapeCharacters.setValue(8938,8939),this.mirroringShapeCharacters.setValue(8939,8938),this.mirroringShapeCharacters.setValue(8940,8941),this.mirroringShapeCharacters.setValue(8941,8940),this.mirroringShapeCharacters.setValue(8944,8945),this.mirroringShapeCharacters.setValue(8945,8944),this.mirroringShapeCharacters.setValue(8946,8954),this.mirroringShapeCharacters.setValue(8947,8955),this.mirroringShapeCharacters.setValue(8948,8956),this.mirroringShapeCharacters.setValue(8950,8957),this.mirroringShapeCharacters.setValue(8951,8958),this.mirroringShapeCharacters.setValue(8954,8946),this.mirroringShapeCharacters.setValue(8955,8947),this.mirroringShapeCharacters.setValue(8956,8948),this.mirroringShapeCharacters.setValue(8957,8950),this.mirroringShapeCharacters.setValue(8958,8951),this.mirroringShapeCharacters.setValue(8968,8969),this.mirroringShapeCharacters.setValue(8969,8968),this.mirroringShapeCharacters.setValue(8970,8971),this.mirroringShapeCharacters.setValue(8971,8970),this.mirroringShapeCharacters.setValue(9001,9002),this.mirroringShapeCharacters.setValue(9002,9001),this.mirroringShapeCharacters.setValue(10088,10089),this.mirroringShapeCharacters.setValue(10089,10088),this.mirroringShapeCharacters.setValue(10090,10091),this.mirroringShapeCharacters.setValue(10091,10090),this.mirroringShapeCharacters.setValue(10092,10093),this.mirroringShapeCharacters.setValue(10093,10092),this.mirroringShapeCharacters.setValue(10094,10095),this.mirroringShapeCharacters.setValue(10095,10094),this.mirroringShapeCharacters.setValue(10096,10097),this.mirroringShapeCharacters.setValue(10097,10096),this.mirroringShapeCharacters.setValue(10098,10099),this.mirroringShapeCharacters.setValue(10099,10098),this.mirroringShapeCharacters.setValue(10100,10101),this.mirroringShapeCharacters.setValue(10101,10100),this.mirroringShapeCharacters.setValue(10197,10198),this.mirroringShapeCharacters.setValue(10198,10197),this.mirroringShapeCharacters.setValue(10205,10206),this.mirroringShapeCharacters.setValue(10206,10205),this.mirroringShapeCharacters.setValue(10210,10211),this.mirroringShapeCharacters.setValue(10211,10210),this.mirroringShapeCharacters.setValue(10212,10213),this.mirroringShapeCharacters.setValue(10213,10212),this.mirroringShapeCharacters.setValue(10214,10215),this.mirroringShapeCharacters.setValue(10215,10214),this.mirroringShapeCharacters.setValue(10216,10217),this.mirroringShapeCharacters.setValue(10217,10216),this.mirroringShapeCharacters.setValue(10218,10219),this.mirroringShapeCharacters.setValue(10219,10218),this.mirroringShapeCharacters.setValue(10627,10628),this.mirroringShapeCharacters.setValue(10628,10627),this.mirroringShapeCharacters.setValue(10629,10630),this.mirroringShapeCharacters.setValue(10630,10629),this.mirroringShapeCharacters.setValue(10631,10632),this.mirroringShapeCharacters.setValue(10632,10631),this.mirroringShapeCharacters.setValue(10633,10634),this.mirroringShapeCharacters.setValue(10634,10633),this.mirroringShapeCharacters.setValue(10635,10636),this.mirroringShapeCharacters.setValue(10636,10635),this.mirroringShapeCharacters.setValue(10637,10640),this.mirroringShapeCharacters.setValue(10638,10639),this.mirroringShapeCharacters.setValue(10639,10638),this.mirroringShapeCharacters.setValue(10640,10637),this.mirroringShapeCharacters.setValue(10641,10642),this.mirroringShapeCharacters.setValue(10642,10641),this.mirroringShapeCharacters.setValue(10643,10644),this.mirroringShapeCharacters.setValue(10644,10643),this.mirroringShapeCharacters.setValue(10645,10646),this.mirroringShapeCharacters.setValue(10646,10645),this.mirroringShapeCharacters.setValue(10647,10648),this.mirroringShapeCharacters.setValue(10648,10647),this.mirroringShapeCharacters.setValue(10680,8856),this.mirroringShapeCharacters.setValue(10688,10689),this.mirroringShapeCharacters.setValue(10689,10688),this.mirroringShapeCharacters.setValue(10692,10693),this.mirroringShapeCharacters.setValue(10693,10692),this.mirroringShapeCharacters.setValue(10703,10704),this.mirroringShapeCharacters.setValue(10704,10703),this.mirroringShapeCharacters.setValue(10705,10706),this.mirroringShapeCharacters.setValue(10706,10705),this.mirroringShapeCharacters.setValue(10708,10709),this.mirroringShapeCharacters.setValue(10709,10708),this.mirroringShapeCharacters.setValue(10712,10713),this.mirroringShapeCharacters.setValue(10713,10712),this.mirroringShapeCharacters.setValue(10714,10715),this.mirroringShapeCharacters.setValue(10715,10714),this.mirroringShapeCharacters.setValue(10741,8725),this.mirroringShapeCharacters.setValue(10744,10745),this.mirroringShapeCharacters.setValue(10745,10744),this.mirroringShapeCharacters.setValue(10748,10749),this.mirroringShapeCharacters.setValue(10749,10748),this.mirroringShapeCharacters.setValue(10795,10796),this.mirroringShapeCharacters.setValue(10796,10795),this.mirroringShapeCharacters.setValue(10797,10796),this.mirroringShapeCharacters.setValue(10798,10797),this.mirroringShapeCharacters.setValue(10804,10805),this.mirroringShapeCharacters.setValue(10805,10804),this.mirroringShapeCharacters.setValue(10812,10813),this.mirroringShapeCharacters.setValue(10813,10812),this.mirroringShapeCharacters.setValue(10852,10853),this.mirroringShapeCharacters.setValue(10853,10852),this.mirroringShapeCharacters.setValue(10873,10874),this.mirroringShapeCharacters.setValue(10874,10873),this.mirroringShapeCharacters.setValue(10877,10878),this.mirroringShapeCharacters.setValue(10878,10877),this.mirroringShapeCharacters.setValue(10879,10880),this.mirroringShapeCharacters.setValue(10880,10879),this.mirroringShapeCharacters.setValue(10881,10882),this.mirroringShapeCharacters.setValue(10882,10881),this.mirroringShapeCharacters.setValue(10883,10884),this.mirroringShapeCharacters.setValue(10884,10883),this.mirroringShapeCharacters.setValue(10891,10892),this.mirroringShapeCharacters.setValue(10892,10891),this.mirroringShapeCharacters.setValue(10897,10898),this.mirroringShapeCharacters.setValue(10898,10897),this.mirroringShapeCharacters.setValue(10899,10900),this.mirroringShapeCharacters.setValue(10900,10899),this.mirroringShapeCharacters.setValue(10901,10902),this.mirroringShapeCharacters.setValue(10902,10901),this.mirroringShapeCharacters.setValue(10903,10904),this.mirroringShapeCharacters.setValue(10904,10903),this.mirroringShapeCharacters.setValue(10905,10906),this.mirroringShapeCharacters.setValue(10906,10905),this.mirroringShapeCharacters.setValue(10907,10908),this.mirroringShapeCharacters.setValue(10908,10907),this.mirroringShapeCharacters.setValue(10913,10914),this.mirroringShapeCharacters.setValue(10914,10913),this.mirroringShapeCharacters.setValue(10918,10919),this.mirroringShapeCharacters.setValue(10919,10918),this.mirroringShapeCharacters.setValue(10920,10921),this.mirroringShapeCharacters.setValue(10921,10920),this.mirroringShapeCharacters.setValue(10922,10923),this.mirroringShapeCharacters.setValue(10923,10922),this.mirroringShapeCharacters.setValue(10924,10925),this.mirroringShapeCharacters.setValue(10925,10924),this.mirroringShapeCharacters.setValue(10927,10928),this.mirroringShapeCharacters.setValue(10928,10927),this.mirroringShapeCharacters.setValue(10931,10932),this.mirroringShapeCharacters.setValue(10932,10931),this.mirroringShapeCharacters.setValue(10939,10940),this.mirroringShapeCharacters.setValue(10940,10939),this.mirroringShapeCharacters.setValue(10941,10942),this.mirroringShapeCharacters.setValue(10942,10941),this.mirroringShapeCharacters.setValue(10943,10944),this.mirroringShapeCharacters.setValue(10944,10943),this.mirroringShapeCharacters.setValue(10945,10946),this.mirroringShapeCharacters.setValue(10946,10945),this.mirroringShapeCharacters.setValue(10947,10948),this.mirroringShapeCharacters.setValue(10948,10947),this.mirroringShapeCharacters.setValue(10949,10950),this.mirroringShapeCharacters.setValue(10950,10949),this.mirroringShapeCharacters.setValue(10957,10958),this.mirroringShapeCharacters.setValue(10958,10957),this.mirroringShapeCharacters.setValue(10959,10960),this.mirroringShapeCharacters.setValue(10960,10959),this.mirroringShapeCharacters.setValue(10961,10962),this.mirroringShapeCharacters.setValue(10962,10961),this.mirroringShapeCharacters.setValue(10963,10964),this.mirroringShapeCharacters.setValue(10964,10963),this.mirroringShapeCharacters.setValue(10965,10966),this.mirroringShapeCharacters.setValue(10966,10965),this.mirroringShapeCharacters.setValue(10974,8870),this.mirroringShapeCharacters.setValue(10979,8873),this.mirroringShapeCharacters.setValue(10980,8872),this.mirroringShapeCharacters.setValue(10981,8875),this.mirroringShapeCharacters.setValue(10988,10989),this.mirroringShapeCharacters.setValue(10989,10988),this.mirroringShapeCharacters.setValue(10999,11e3),this.mirroringShapeCharacters.setValue(11e3,10999),this.mirroringShapeCharacters.setValue(11001,11002),this.mirroringShapeCharacters.setValue(11002,11001),this.mirroringShapeCharacters.setValue(12296,12297),this.mirroringShapeCharacters.setValue(12297,12296),this.mirroringShapeCharacters.setValue(12298,12299),this.mirroringShapeCharacters.setValue(12299,12298),this.mirroringShapeCharacters.setValue(12300,12301),this.mirroringShapeCharacters.setValue(12301,12300),this.mirroringShapeCharacters.setValue(12302,12303),this.mirroringShapeCharacters.setValue(12303,12302),this.mirroringShapeCharacters.setValue(12304,12305),this.mirroringShapeCharacters.setValue(12305,12304),this.mirroringShapeCharacters.setValue(12308,12309),this.mirroringShapeCharacters.setValue(12309,12308),this.mirroringShapeCharacters.setValue(12310,12311),this.mirroringShapeCharacters.setValue(12311,12310),this.mirroringShapeCharacters.setValue(12312,12313),this.mirroringShapeCharacters.setValue(12313,12312),this.mirroringShapeCharacters.setValue(12314,12315),this.mirroringShapeCharacters.setValue(12315,12314),this.mirroringShapeCharacters.setValue(65288,65289),this.mirroringShapeCharacters.setValue(65289,65288),this.mirroringShapeCharacters.setValue(65308,65310),this.mirroringShapeCharacters.setValue(65310,65308),this.mirroringShapeCharacters.setValue(65339,65341),this.mirroringShapeCharacters.setValue(65341,65339),this.mirroringShapeCharacters.setValue(65371,65373),this.mirroringShapeCharacters.setValue(65373,65371),this.mirroringShapeCharacters.setValue(65375,65376),this.mirroringShapeCharacters.setValue(65376,65375),this.mirroringShapeCharacters.setValue(65378,65379),this.mirroringShapeCharacters.setValue(65379,65378)},e}(),Is=function(){function e(){this.types=[],this.textOrder=-1,this.rtlCharacterTypes=new Array(65536),this.L=0,this.LRE=1,this.LRO=2,this.R=3,this.AL=4,this.RLE=5,this.RLO=6,this.PDF=7,this.EN=8,this.ES=9,this.ET=10,this.AN=11,this.CS=12,this.NSM=13,this.BN=14,this.B=15,this.S=16,this.WS=17,this.ON=18,this.charTypes=[this.L,this.EN,this.BN,this.ES,this.ES,this.S,this.ET,this.ET,this.B,this.AN,this.AN,this.S,this.CS,this.CS,this.WS,this.NSM,this.NSM,this.B,this.BN,27,this.BN,28,30,this.B,31,31,this.S,32,32,this.WS,33,34,this.ON,35,37,this.ET,38,42,this.ON,43,43,this.ET,44,44,this.CS,45,45,this.ET,46,46,this.CS,47,47,this.CS,48,57,this.EN,58,58,this.CS,59,64,this.ON,65,90,this.L,91,96,this.ON,97,122,this.L,123,126,this.ON,127,132,this.BN,133,133,this.B,134,159,this.BN,160,160,this.CS,161,161,this.ON,162,165,this.ET,166,169,this.ON,170,170,this.L,171,175,this.ON,176,177,this.ET,178,179,this.EN,180,180,this.ON,181,181,this.L,182,184,this.ON,185,185,this.EN,186,186,this.L,187,191,this.ON,192,214,this.L,215,215,this.ON,216,246,this.L,247,247,this.ON,248,696,this.L,697,698,this.ON,699,705,this.L,706,719,this.ON,720,721,this.L,722,735,this.ON,736,740,this.L,741,749,this.ON,750,750,this.L,751,767,this.ON,768,855,this.NSM,856,860,this.L,861,879,this.NSM,880,883,this.L,884,885,this.ON,886,893,this.L,894,894,this.ON,895,899,this.L,900,901,this.ON,902,902,this.L,903,903,this.ON,904,1013,this.L,1014,1014,this.ON,1015,1154,this.L,1155,1158,this.NSM,1159,1159,this.L,1160,1161,this.NSM,1162,1417,this.L,1418,1418,this.ON,1419,1424,this.L,1425,1441,this.NSM,1442,1442,this.L,1443,1465,this.NSM,1466,1466,this.L,1467,1469,this.NSM,1470,1470,this.R,1471,1471,this.NSM,1472,1472,this.R,1473,1474,this.NSM,1475,1475,this.R,1476,1476,this.NSM,1477,1487,this.L,1488,1514,this.R,1515,1519,this.L,1520,1524,this.R,1525,1535,this.L,1536,1539,this.AL,1540,1547,this.L,1548,1548,this.CS,1549,1549,this.AL,1550,1551,this.ON,1552,1557,this.NSM,1558,1562,this.L,1563,1563,this.AL,1564,1566,this.L,1567,1567,this.AL,1568,1568,this.L,1569,1594,this.AL,1595,1599,this.L,1600,1610,this.AL,1611,1624,this.NSM,1625,1631,this.L,1632,1641,this.AN,1642,1642,this.ET,1643,1644,this.AN,1645,1647,this.AL,1648,1648,this.NSM,1649,1749,this.AL,1750,1756,this.NSM,1757,1757,this.AL,1758,1764,this.NSM,1765,1766,this.AL,1767,1768,this.NSM,1769,1769,this.ON,1770,1773,this.NSM,1774,1775,this.AL,1776,1785,this.EN,1786,1805,this.AL,1806,1806,this.L,1807,1807,this.BN,1808,1808,this.AL,1809,1809,this.NSM,1810,1839,this.AL,1840,1866,this.NSM,1867,1868,this.L,1869,1871,this.AL,1872,1919,this.L,1920,1957,this.AL,1958,1968,this.NSM,1969,1969,this.AL,1970,2304,this.L,2305,2306,this.NSM,2307,2363,this.L,2364,2364,this.NSM,2365,2368,this.L,2369,2376,this.NSM,2377,2380,this.L,2381,2381,this.NSM,2382,2384,this.L,2385,2388,this.NSM,2389,2401,this.L,2402,2403,this.NSM,2404,2432,this.L,2433,2433,this.NSM,2434,2491,this.L,2492,2492,this.NSM,2493,2496,this.L,2497,2500,this.NSM,2501,2508,this.L,2509,2509,this.NSM,2510,2529,this.L,2530,2531,this.NSM,2532,2545,this.L,2546,2547,this.ET,2548,2560,this.L,2561,2562,this.NSM,2563,2619,this.L,2620,2620,this.NSM,2621,2624,this.L,2625,2626,this.NSM,2627,2630,this.L,2631,2632,this.NSM,2633,2634,this.L,2635,2637,this.NSM,2638,2671,this.L,2672,2673,this.NSM,2674,2688,this.L,2689,2690,this.NSM,2691,2747,this.L,2748,2748,this.NSM,2749,2752,this.L,2753,2757,this.NSM,2758,2758,this.L,2759,2760,this.NSM,2761,2764,this.L,2765,2765,this.NSM,2766,2785,this.L,2786,2787,this.NSM,2788,2800,this.L,2801,2801,this.ET,2802,2816,this.L,2817,2817,this.NSM,2818,2875,this.L,2876,2876,this.NSM,2877,2878,this.L,2879,2879,this.NSM,2880,2880,this.L,2881,2883,this.NSM,2884,2892,this.L,2893,2893,this.NSM,2894,2901,this.L,2902,2902,this.NSM,2903,2945,this.L,2946,2946,this.NSM,2947,3007,this.L,3008,3008,this.NSM,3009,3020,this.L,3021,3021,this.NSM,3022,3058,this.L,3059,3064,this.ON,3065,3065,this.ET,3066,3066,this.ON,3067,3133,this.L,3134,3136,this.NSM,3137,3141,this.L,3142,3144,this.NSM,3145,3145,this.L,3146,3149,this.NSM,3150,3156,this.L,3157,3158,this.NSM,3159,3259,this.L,3260,3260,this.NSM,3261,3275,this.L,3276,3277,this.NSM,3278,3392,this.L,3393,3395,this.NSM,3396,3404,this.L,3405,3405,this.NSM,3406,3529,this.L,3530,3530,this.NSM,3531,3537,this.L,3538,3540,this.NSM,3541,3541,this.L,3542,3542,this.NSM,3543,3632,this.L,3633,3633,this.NSM,3634,3635,this.L,3636,3642,this.NSM,3643,3646,this.L,3647,3647,this.ET,3648,3654,this.L,3655,3662,this.NSM,3663,3760,this.L,3761,3761,this.NSM,3762,3763,this.L,3764,3769,this.NSM,3770,3770,this.L,3771,3772,this.NSM,3773,3783,this.L,3784,3789,this.NSM,3790,3863,this.L,3864,3865,this.NSM,3866,3892,this.L,3893,3893,this.NSM,3894,3894,this.L,3895,3895,this.NSM,3896,3896,this.L,3897,3897,this.NSM,3898,3901,this.ON,3902,3952,this.L,3953,3966,this.NSM,3967,3967,this.L,3968,3972,this.NSM,3973,3973,this.L,3974,3975,this.NSM,3976,3983,this.L,3984,3991,this.NSM,3992,3992,this.L,3993,4028,this.NSM,4029,4037,this.L,4038,4038,this.NSM,4039,4140,this.L,4141,4144,this.NSM,4145,4145,this.L,4146,4146,this.NSM,4147,4149,this.L,4150,4151,this.NSM,4152,4152,this.L,4153,4153,this.NSM,4154,4183,this.L,4184,4185,this.NSM,4186,5759,this.L,5760,5760,this.WS,5761,5786,this.L,5787,5788,this.ON,5789,5905,this.L,5906,5908,this.NSM,5909,5937,this.L,5938,5940,this.NSM,5941,5969,this.L,5970,5971,this.NSM,5972,6001,this.L,6002,6003,this.NSM,6004,6070,this.L,6071,6077,this.NSM,6078,6085,this.L,6086,6086,this.NSM,6087,6088,this.L,6089,6099,this.NSM,6100,6106,this.L,6107,6107,this.ET,6108,6108,this.L,6109,6109,this.NSM,6110,6127,this.L,6128,6137,this.ON,6138,6143,this.L,6144,6154,this.ON,6155,6157,this.NSM,6158,6158,this.WS,6159,6312,this.L,6313,6313,this.NSM,6314,6431,this.L,6432,6434,this.NSM,6435,6438,this.L,6439,6443,this.NSM,6444,6449,this.L,6450,6450,this.NSM,6451,6456,this.L,6457,6459,this.NSM,6460,6463,this.L,6464,6464,this.ON,6465,6467,this.L,6468,6469,this.ON,6470,6623,this.L,6624,6655,this.ON,6656,8124,this.L,8125,8125,this.ON,8126,8126,this.L,8127,8129,this.ON,8130,8140,this.L,8141,8143,this.ON,8144,8156,this.L,8157,8159,this.ON,8160,8172,this.L,8173,8175,this.ON,8176,8188,this.L,8189,8190,this.ON,8191,8191,this.L,8192,8202,this.WS,8203,8205,this.BN,8206,8206,this.L,8207,8207,this.R,8208,8231,this.ON,8232,8232,this.WS,8233,8233,this.B,8234,8234,this.LRE,8235,8235,this.RLE,8236,8236,this.PDF,8237,8237,this.LRO,8238,8238,this.RLO,8239,8239,this.WS,8240,8244,this.ET,8245,8276,this.ON,8277,8278,this.L,8279,8279,this.ON,8280,8286,this.L,8287,8287,this.WS,8288,8291,this.BN,8292,8297,this.L,8298,8303,this.BN,8304,8304,this.EN,8305,8307,this.L,8308,8313,this.EN,8314,8315,this.ET,8316,8318,this.ON,8319,8319,this.L,8320,8329,this.EN,8330,8331,this.ET,8332,8334,this.ON,8335,8351,this.L,8352,8369,this.ET,8370,8399,this.L,8400,8426,this.NSM,8427,8447,this.L,8448,8449,this.ON,8450,8450,this.L,8451,8454,this.ON,8455,8455,this.L,8456,8457,this.ON,8458,8467,this.L,8468,8468,this.ON,8469,8469,this.L,8470,8472,this.ON,8473,8477,this.L,8478,8483,this.ON,8484,8484,this.L,8485,8485,this.ON,8486,8486,this.L,8487,8487,this.ON,8488,8488,this.L,8489,8489,this.ON,8490,8493,this.L,8494,8494,this.ET,8495,8497,this.L,8498,8498,this.ON,8499,8505,this.L,8506,8507,this.ON,8508,8511,this.L,8512,8516,this.ON,8517,8521,this.L,8522,8523,this.ON,8524,8530,this.L,8531,8543,this.ON,8544,8591,this.L,8592,8721,this.ON,8722,8723,this.ET,8724,9013,this.ON,9014,9082,this.L,9083,9108,this.ON,9109,9109,this.L,9110,9168,this.ON,9169,9215,this.L,9216,9254,this.ON,9255,9279,this.L,9280,9290,this.ON,9291,9311,this.L,9312,9371,this.EN,9372,9449,this.L,9450,9450,this.EN,9451,9751,this.ON,9752,9752,this.L,9753,9853,this.ON,9854,9855,this.L,9856,9873,this.ON,9874,9887,this.L,9888,9889,this.ON,9890,9984,this.L,9985,9988,this.ON,9989,9989,this.L,9990,9993,this.ON,9994,9995,this.L,9996,10023,this.ON,10024,10024,this.L,10025,10059,this.ON,10060,10060,this.L,10061,10061,this.ON,10062,10062,this.L,10063,10066,this.ON,10067,10069,this.L,10070,10070,this.ON,10071,10071,this.L,10072,10078,this.ON,10079,10080,this.L,10081,10132,this.ON,10133,10135,this.L,10136,10159,this.ON,10160,10160,this.L,10161,10174,this.ON,10175,10191,this.L,10192,10219,this.ON,10220,10223,this.L,10224,11021,this.ON,11022,11903,this.L,11904,11929,this.ON,11930,11930,this.L,11931,12019,this.ON,12020,12031,this.L,12032,12245,this.ON,12246,12271,this.L,12272,12283,this.ON,12284,12287,this.L,12288,12288,this.WS,12289,12292,this.ON,12293,12295,this.L,12296,12320,this.ON,12321,12329,this.L,12330,12335,this.NSM,12336,12336,this.ON,12337,12341,this.L,12342,12343,this.ON,12344,12348,this.L,12349,12351,this.ON,12352,12440,this.L,12441,12442,this.NSM,12443,12444,this.ON,12445,12447,this.L,12448,12448,this.ON,12449,12538,this.L,12539,12539,this.ON,12540,12828,this.L,12829,12830,this.ON,12831,12879,this.L,12880,12895,this.ON,12896,12923,this.L,12924,12925,this.ON,12926,12976,this.L,12977,12991,this.ON,12992,13003,this.L,13004,13007,this.ON,13008,13174,this.L,13175,13178,this.ON,13179,13277,this.L,13278,13279,this.ON,13280,13310,this.L,13311,13311,this.ON,13312,19903,this.L,19904,19967,this.ON,19968,42127,this.L,42128,42182,this.ON,42183,64284,this.L,64285,64285,this.R,64286,64286,this.NSM,64287,64296,this.R,64297,64297,this.ET,64298,64310,this.R,64311,64311,this.L,64312,64316,this.R,64317,64317,this.L,64318,64318,this.R,64319,64319,this.L,64320,64321,this.R,64322,64322,this.L,64323,64324,this.R,64325,64325,this.L,64326,64335,this.R,64336,64433,this.AL,64434,64466,this.L,64467,64829,this.AL,64830,64831,this.ON,64832,64847,this.L,64848,64911,this.AL,64912,64913,this.L,64914,64967,this.AL,64968,65007,this.L,65008,65020,this.AL,65021,65021,this.ON,65022,65023,this.L,65024,65039,this.NSM,65040,65055,this.L,65056,65059,this.NSM,65060,65071,this.L,65072,65103,this.ON,65104,65104,this.CS,65105,65105,this.ON,65106,65106,this.CS,65107,65107,this.L,65108,65108,this.ON,65109,65109,this.CS,65110,65118,this.ON,65119,65119,this.ET,65120,65121,this.ON,65122,65123,this.ET,65124,65126,this.ON,65127,65127,this.L,65128,65128,this.ON,65129,65130,this.ET,65131,65131,this.ON,65132,65135,this.L,65136,65140,this.AL,65141,65141,this.L,65142,65276,this.AL,65277,65278,this.L,65279,65279,this.BN,65280,65280,this.L,65281,65282,this.ON,65283,65285,this.ET,65286,65290,this.ON,65291,65291,this.ET,65292,65292,this.CS,65293,65293,this.ET,65294,65294,this.CS,65295,65295,this.ES,65296,65305,this.EN,65306,65306,this.CS,65307,65312,this.ON,65313,65338,this.L,65339,65344,this.ON,65345,65370,this.L,65371,65381,this.ON,65382,65503,this.L,65504,65505,this.ET,65506,65508,this.ON,65509,65510,this.ET,65511,65511,this.L,65512,65518,this.ON,65519,65528,this.L,65529,65531,this.BN,65532,65533,this.ON,65534,65535,this.L];for(var e=0;e<this.charTypes.length;++e)for(var t=this.charTypes[e],i=this.charTypes[++e],r=this.charTypes[++e];t<=i;)this.rtlCharacterTypes[t++]=r}return e.prototype.getVisualOrder=function(e,t){this.types=this.getCharacterCode(e),this.textOrder=t?this.LRE:this.L,this.doVisualOrder();for(var i=[],r=0;r<this.levels.length;r++)i[r]=this.levels[r];return i},e.prototype.getCharacterCode=function(e){for(var t=[],i=0;i<e.length;i++)t[i]=this.rtlCharacterTypes[e[i].charCodeAt(0)];return t},e.prototype.setDefaultLevels=function(){for(var e=0;e<this.length;e++)this.levels[e]=this.textOrder},e.prototype.setLevels=function(){this.setDefaultLevels();for(var e=0;e<this.length;++e){var t=this.levels[e];128&t&&(t&=127,this.result[e]=1&t?this.R:this.L),this.levels[e]=t}},e.prototype.updateLevels=function(e,t,i){if(1&t)for(r=e;r<i;++r)this.result[r]!==this.R&&(this.levels[r]+=1);else for(var r=e;r<i;++r)this.result[r]===this.R?this.levels[r]+=1:this.result[r]!==this.L&&(this.levels[r]+=2)},e.prototype.doVisualOrder=function(){this.length=this.types.length,this.result=this.types,this.levels=[],this.setLevels(),this.length=this.getEmbeddedCharactersLength();for(var e=this.textOrder,t=0;t<this.length;){for(var i=this.levels[t],r=1&Math.max(e,i)?this.R:this.L,n=t+1;n<this.length&&this.levels[n]===i;)++n;var o=n<this.length?this.levels[n]:this.textOrder,s=1&Math.max(o,i)?this.R:this.L;this.checkNSM(t,n,i,r,s),this.updateLevels(t,i,n),e=i,t=n}this.checkEmbeddedCharacters(this.length)},e.prototype.getEmbeddedCharactersLength=function(){for(var e=0,t=0;t<this.length;++t)this.types[t]!==this.LRE&&this.types[t]!==this.RLE&&this.types[t]!==this.LRO&&this.types[t]!==this.RLO&&this.types[t]!==this.PDF&&this.types[t]!==this.BN&&(this.result[e]=this.result[t],this.levels[e]=this.levels[t],e++);return e},e.prototype.checkEmbeddedCharacters=function(e){for(var t=this.types.length-1;t>=0;--t)this.types[t]===this.LRE||this.types[t]===this.RLE||this.types[t]===this.LRO||this.types[t]===this.RLO||this.types[t]===this.PDF||this.types[t]===this.BN?(this.result[t]=this.types[t],this.levels[t]=-1):(e-=1,this.result[t]=this.result[e],this.levels[t]=this.levels[e]);for(t=0;t<this.types.length;t++)-1===this.levels[t]&&(this.levels[t]=0===t?this.textOrder:this.levels[t-1])},e.prototype.checkNSM=function(e,t,i,r,n){for(var o=r,s=e;s<t;++s)this.result[s]===this.NSM?this.result[s]=o:o=this.result[s];this.checkEuropeanDigits(e,t,i,r,n)},e.prototype.checkEuropeanDigits=function(e,t,i,r,n){for(var o=e;o<t;++o)if(this.result[o]===this.EN)for(var s=o-1;s>=e;--s)if(this.result[s]===this.L||this.result[s]===this.R||this.result[s]===this.AL){this.result[s]===this.AL&&(this.result[o]=this.AN);break}this.checkArabicCharacters(e,t,i,r,n)},e.prototype.checkArabicCharacters=function(e,t,i,r,n){for(var o=e;o<t;++o)this.result[o]===this.AL&&(this.result[o]=this.R);this.checkEuropeanNumberSeparator(e,t,i,r,n)},e.prototype.checkEuropeanNumberSeparator=function(e,t,i,r,n){for(var o=e+1;o<t-1;++o)if(this.result[o]===this.ES||this.result[o]===this.CS){var s=this.result[o-1],a=this.result[o+1];s===this.EN&&a===this.EN?this.result[o]=this.EN:this.result[o]===this.CS&&s===this.AN&&a===this.AN&&(this.result[o]=this.AN)}this.checkEuropeanNumberTerminator(e,t,i,r,n)},e.prototype.checkEuropeanNumberTerminator=function(e,t,i,r,n){for(var o=e;o<t;++o)if(this.result[o]===this.ET){var s=o,a=[];a.push(this.ET);var c=this.getLength(s,t,a),h=s===e?r:this.result[s-1];if(h!==this.EN&&(h=c===t?n:this.result[c]),h===this.EN)for(var u=s;u<c;++u)this.result[u]=this.EN;o=c}this.checkOtherNeutrals(e,t,i,r,n)},e.prototype.checkOtherNeutrals=function(e,t,i,r,n){for(var o=e;o<t;++o)this.result[o]!==this.ES&&this.result[o]!==this.ET&&this.result[o]!==this.CS||(this.result[o]=this.ON);this.checkOtherCharacters(e,t,i,r,n)},e.prototype.checkOtherCharacters=function(e,t,i,r,n){for(var o=e;o<t;++o)if(this.result[o]===this.EN){for(var s=r,a=o-1;a>=e;--a)if(this.result[a]===this.L||this.result[a]===this.R){s=this.result[a];break}s===this.L&&(this.result[o]=this.L)}this.checkCommanCharacters(e,t,i,r,n)},e.prototype.getLength=function(e,t,i){for(--e;++e<t;){for(var r=this.result[e],n=0;n<i.length;++n)r===i[n]&&(e=this.getLength(++e,t,i));return e}return t},e.prototype.checkCommanCharacters=function(e,t,i,r,n){for(var o=e;o<t;++o)if(this.result[o]===this.WS||this.result[o]===this.ON||this.result[o]===this.B||this.result[o]===this.S){var s=o,a=[this.B,this.S,this.WS,this.ON],c=this.getLength(s,t,a),h=0,u=0,l=0;s===e?h=r:((h=this.result[s-1])===this.AN||h===this.EN)&&(h=this.R),c===t?u=n:((u=this.result[c])===this.AN||u===this.EN)&&(u=this.R),l=h===u?h:1&i?this.R:this.L;for(var p=s;p<c;++p)this.result[p]=l;o=c}},e}(),Ss=function(){function e(){this.openBracket="(",this.closeBracket=")"}return e.prototype.layout=function(e,t,i,r,n){if(null==e)throw new Error("ArgumentNullException : line");if(null==t)throw new Error("ArgumentNullException : font");var o=[];return t.Unicode?o=this.customLayout(e,i,n,t,r):(o=[])[0]=e,o},e.prototype.splitLayout=function(e,t,i,r,n){if(null==e)throw new Error("ArgumentNullException : line");if(null==t)throw new Error("ArgumentNullException : font");return this.customSplitLayout(e,t,i,r,n)},e.prototype.getGlyphIndex=function(e,t,i,r,n){if(null==e)throw new Error("ArgumentNullException : line");if(null==t)throw new Error("ArgumentNullException : font");if(r=null,0===e.length)return{success:!1,glyphs:r};var o=(new Ns).shape(e,0),s=t.fontInternal.ttfReader;r=new Uint16Array(o.length);for(var a=0,c=0,h=o.length;c<h;c++){var u=o[c],l=s.getGlyph(u);null!=l&&(r[a++]=l.index)}return{success:!0,glyphs:r}},e.prototype.customLayout=function(e,t,i,r,n){if(null==n){if(null==e)throw new Error("ArgumentNullException : line");var o=null;if(null!=i&&i.textDirection!==Sn.None)o=(new Ds).getLogicalToVisualString(e,t);return o}if(null==e)throw new Error("ArgumentNullException : line");if(null==r)throw new Error("ArgumentNullException : font");var s=null;if(null!=i&&i.textDirection!==Sn.None){var a=(new Ns).shape(e,0);s=this.customLayout(a,t,i)}o=[];if(n){for(var c=s.split(""),h=c.length,u=0;u<h;u++)c[u]=this.addChars(r,c[u]);o=c}else(o=[])[0]=this.addChars(r,s);return o},e.prototype.addChars=function(e,t){var i=t;if(null==e)throw new Error("ArgumentNullException : font");if(null==i)throw new Error("ArgumentNullException : line");var r=i,n=e.fontInternal.ttfReader;e.setSymbols(r),r=n.convertString(r);var o=bn.toUnicodeArray(r,!1);return r=bn.byteToString(o)},e.prototype.customSplitLayout=function(e,t,i,r,n){if(null==e)throw new Error("ArgumentNullException : line");if(null==t)throw new Error("ArgumentNullException : font");return this.customLayout(e,i,n).split("")},e}();!function(e){e[e.Paginate=0]="Paginate",e[e.OnePage=1]="OnePage"}(Vo||(Vo={})),function(e){e[e.FitPage=0]="FitPage",e[e.FitElement=1]="FitElement",e[e.FitColumnsToPage=2]="FitColumnsToPage"}(Fo||(Fo={})),function(e){e[e.Start=0]="Start",e[e.Line=1]="Line",e[e.Bezier3=3]="Bezier3",e[e.Bezier=3]="Bezier",e[e.PathTypeMask=7]="PathTypeMask",e[e.DashMode=16]="DashMode",e[e.PathMarker=32]="PathMarker",e[e.CloseSubpath=128]="CloseSubpath"}(Bo||(Bo={}));var bs=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),zs=function(e){function t(t){var i=e.call(this)||this;return i.mbackground=new Rn(255,255,255),i.mbStroking=!1,i.mfunction=null,i.dictionaryProperties=new Yr,i.mpatternDictionary=new Rr,i.mpatternDictionary.items.setValue(i.dictionaryProperties.type,new Ur(i.dictionaryProperties.pattern)),i.mpatternDictionary.items.setValue(i.dictionaryProperties.patternType,new Hr(2)),i.shading=t,i.colorSpace=Nn.Rgb,i}return bs(t,e),Object.defineProperty(t.prototype,"background",{get:function(){return this.mbackground},set:function(e){this.mbackground=e;var t=this.shading;e.isEmpty?t.remove(this.dictionaryProperties.background):t.items.setValue(this.dictionaryProperties.background,e.toArray(this.colorSpace))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"antiAlias",{get:function(){return this.shading.items.getValue(this.dictionaryProperties.antiAlias).value},set:function(e){var t=this.shading,i=t.items.getValue(this.dictionaryProperties.antiAlias);null==i&&void 0===i?(i=new lo(e),t.items.setValue(this.dictionaryProperties.antiAlias,i)):i.value=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"function",{get:function(){return this.mfunction},set:function(e){this.mfunction=e,null!=e&&void 0!==e?this.shading.items.setValue(this.dictionaryProperties.function,new vn(this.mfunction)):this.shading.remove(this.dictionaryProperties.function)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bBox",{get:function(){return this.shading.items.getValue(this.dictionaryProperties.bBox)},set:function(e){var t=this.shading;null==e&&void 0===e?t.remove(this.dictionaryProperties.bBox):t.items.setValue(this.dictionaryProperties.bBox,e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colorSpace",{get:function(){return this.mcolorSpace},set:function(e){var t=this.shading.items.getValue(this.dictionaryProperties.colorSpace);if(e!==this.mcolorSpace||null==t){this.mcolorSpace=e;var i=this.colorSpaceToDeviceName(e);this.shading.items.setValue(this.dictionaryProperties.colorSpace,new Ur(i))}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stroking",{get:function(){return this.mbStroking},set:function(e){this.mbStroking=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patternDictionary",{get:function(){return null==this.mpatternDictionary&&(this.mpatternDictionary=new Rr),this.mpatternDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shading",{get:function(){return this.mshading},set:function(e){if(null==e)throw new Error("ArgumentNullException : Shading");e!==this.mshading&&(this.mshading=e,this.patternDictionary.items.setValue(this.dictionaryProperties.shading,new vn(this.mshading)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.mmatrix},set:function(e){if(null==e)throw new Error("ArgumentNullException : Matrix");if(e!==this.mmatrix){this.mmatrix=e.clone();var t=new qr(this.mmatrix.matrix.elements);this.mpatternDictionary.items.setValue(this.dictionaryProperties.matrix,t)}},enumerable:!0,configurable:!0}),t.prototype.monitorChanges=function(e,i,r,n,o){var s=!1;if(e instanceof t){this.colorSpace!==o&&(this.colorSpace=o,this.resetFunction()),i.setColorSpace("Pattern",this.mbStroking);var a=r.getResources().getName(this);i.setColourWithPattern(null,a,this.mbStroking),s=!0}return s},t.prototype.resetChanges=function(e){},t.prototype.colorSpaceToDeviceName=function(e){var t;if(e===Nn.Rgb)t="DeviceRGB";return t},t.prototype.resetPatternDictionary=function(e){this.mpatternDictionary=e},t.prototype.cloneAntiAliasingValue=function(e){if(null==e)throw new Error("ArgumentNullException : brush");var t=this.shading.items.getValue(this.dictionaryProperties.antiAlias);null!=t&&e.shading.items.setValue(this.dictionaryProperties.antiAlias,new lo(t.value))},t.prototype.cloneBackgroundValue=function(e){var t=this.background;t.isEmpty||(e.background=t)},Object.defineProperty(t.prototype,"element",{get:function(){return this.patternDictionary},enumerable:!0,configurable:!0}),t}(Gn),vs=function(){function e(e,t){if(this.dictionaryProperties=new Yr,this.writeTransformation=!0,void 0===e);else if(e instanceof Fn&&void 0===t){this.content=new cn;var i=new Fn(e.width,e.height);this.setSize(i),this.initialize()}else this.content=new cn,this.setSize(new Fn(e,t)),this.initialize()}return Object.defineProperty(e.prototype,"size",{get:function(){return this.templateSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.size.width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.size.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"graphics",{get:function(){if(null==this.pdfGraphics||void 0===this.pdfGraphics){var e=new xs(this),t=new Cs(this.size,e,this.content);this.pdfGraphics=t,this.pdfGraphics.initializeCoordinates()}return this.pdfGraphics},enumerable:!0,configurable:!0}),e.prototype.getResources=function(){return null==this.resources&&(this.resources=new Os,this.content.items.setValue(this.dictionaryProperties.resources,this.resources)),this.resources},e.prototype.initialize=function(){this.addType(),this.addSubType()},e.prototype.addType=function(){var e=new Ur(this.dictionaryProperties.xObject);this.content.items.setValue(this.dictionaryProperties.type,e)},e.prototype.addSubType=function(){var e=new Ur(this.dictionaryProperties.form);this.content.items.setValue(this.dictionaryProperties.subtype,e)},e.prototype.reset=function(e){void 0===e?(null!=this.resources&&(this.resources=null,this.content.remove(this.dictionaryProperties.resources)),null!=this.graphics&&this.graphics.reset(this.size)):(this.setSize(e),this.reset())},e.prototype.setSize=function(e){var t=new Bn(new Vn(0,0),e),i=qr.fromRectangle(t);this.content.items.setValue(this.dictionaryProperties.bBox,i),this.templateSize=e},Object.defineProperty(e.prototype,"element",{get:function(){return this.content},enumerable:!0,configurable:!0}),e}(),ws=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Os=function(e){function t(t){var i=e.call(this,t)||this;return i.properties=new Rr,i}return ws(t,e),Object.defineProperty(t.prototype,"names",{get:function(){return this.getNames()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return this.pdfDocument},set:function(e){this.pdfDocument=e},enumerable:!0,configurable:!0}),t.prototype.getName=function(e){var t=e.element,i=null;if(this.names.containsKey(t)&&(i=this.names.getValue(t)),null==i){var r=this.generateName();i=new Ur(r),this.names.setValue(t,i),(e instanceof to||e instanceof vs||e instanceof zs||e instanceof As||e instanceof Eo||e instanceof Ho||e instanceof _o)&&this.add(e,i)}return i},t.prototype.getNames=function(){null==this.pdfNames&&(this.pdfNames=new xo);var e=this.items.getValue(this.dictionaryProperties.font);return null!=e&&Io.dereference(e),this.pdfNames},t.prototype.requireProcedureSet=function(e){if(null==e)throw new Error("ArgumentNullException:procedureSetName");var t=this.items.getValue(this.dictionaryProperties.procset);null==t&&(t=new qr,this.items.setValue(this.dictionaryProperties.procset,t));var i=new Ur(e);t.contains(i)||t.add(i)},t.prototype.removeFont=function(e){for(var t=null,i=this.pdfNames.keys(),r=0;r<this.pdfNames.size();r++)if(this.pdfNames.getValue(i[r])===new Ur(e)){t=i[r];break}null!=t&&this.pdfNames.remove(t)},t.prototype.generateName=function(){return Ts.getNewGuidString()},t.prototype.add=function(e,t){if(e instanceof to){var i=null,r=this.items.getValue(this.dictionaryProperties.font);if(null!=r){var n=r;i=r,i=r}else i=new Rr,this.items.setValue(this.dictionaryProperties.font,i);i.items.setValue(t.value,new vn(e.element))}else if(e instanceof vs){var o=void 0;null==(o=this.items.getValue(this.dictionaryProperties.xObject))&&(o=new Rr,this.items.setValue(this.dictionaryProperties.xObject,o)),o.items.setValue(t.value,new vn(e.element))}else if(e instanceof Gn){if(e instanceof zs||e instanceof As)if(null!=(a=e.element)){var s=this.items.getValue(this.dictionaryProperties.pattern);null==s&&(s=new Rr,this.items.setValue(this.dictionaryProperties.pattern,s)),s.items.setValue(t.value,new vn(a))}}else if(e instanceof Eo){var a=e.element,c=null;null==(c=this.items.getValue(this.dictionaryProperties.extGState))&&(c=new Rr,this.items.setValue(this.dictionaryProperties.extGState,c)),c.items.setValue(t.value,new vn(a))}else{o=this.Dictionary.items.getValue(this.dictionaryProperties.xObject);var h=void 0;void 0!==this.pdfDocument&&(h=this.pdfDocument.sections.element.items.getValue(this.dictionaryProperties.resources).items.getValue(this.dictionaryProperties.xObject)),this.Dictionary.items.values();var u=!1,l=void 0;if(void 0===this.pdfDocument||void 0!==typeof h&&null!=h){if(void 0!==this.pdfDocument)for(var p=h.items.values(),d=0;d<p.length;d++)void 0!==p[d]&&void 0!==p[d].element&&p[d].element.data[0]===e.element.data[0]&&(l=p[d],u=!0)}else h=new Rr,this.pdfDocument.sections.element.items.getValue(this.dictionaryProperties.resources).items.setValue(this.dictionaryProperties.xObject,h);if(null==o&&(o=new Rr,this.Dictionary.items.setValue(this.dictionaryProperties.xObject,o)),u&&void 0!==l)o.items.setValue(t.value,l);else{n=new vn(e.element);o.items.setValue(t.value,n),void 0!==this.pdfDocument&&h.items.setValue(t.value,n)}}},t}(Rr),Ts=function(){function e(){}return e.getNewGuidString=function(){return"aaaaaaaa-aaaa-4aaa-baaa-aaaaaaaaaaaa".replace(/[ab]/g,function(e){var t=16*Math.random()|0;return("a"===e?t:3&t|8).toString(16)})},e}(),Ls=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),As=function(e){function t(t,i){var r=e.call(this)||this;r.mStroking=!1,r.mLocation=new Vn(0,0),r.mDictionaryProperties=new Yr;var n=null;return t instanceof Wn?n=t:t instanceof Fn&&(n=new Wn(0,0,t.width,t.height)),null!==i&&i instanceof Bs&&(r.mPage=i),r.brushStream=new cn,r.mResources=new Os,r.brushStream.items.setValue(r.mDictionaryProperties.resources,r.mResources),r.setBox(n),r.setObligatoryFields(),null!==i&&i instanceof Bs&&(r.mPage=i,r.graphics.colorSpace=i.document.colorSpace),r}return Ls(t,e),t.prototype.initialize=function(e,t,i,r){this.mPage=t,this.mLocation=i,this.mTransformationMatrix=r,this.tempBrushStream=this.brushStream,this.brushStream=new cn;var n=new Os;return this.brushStream.items.setValue(this.mDictionaryProperties.resources,n),this.setBox(e),this.setObligatoryFields(),this},Object.defineProperty(t.prototype,"location",{get:function(){return this.mLocation},set:function(e){this.mLocation=e},enumerable:!0,configurable:!0}),t.prototype.setObligatoryFields=function(){if(this.brushStream.items.setValue(this.mDictionaryProperties.patternType,new Hr(1)),this.brushStream.items.setValue(this.mDictionaryProperties.paintType,new Hr(1)),this.brushStream.items.setValue(this.mDictionaryProperties.tilingType,new Hr(1)),this.brushStream.items.setValue(this.mDictionaryProperties.xStep,new Hr(this.mBox.right-this.mBox.left)),this.brushStream.items.setValue(this.mDictionaryProperties.yStep,new Hr(this.mBox.bottom-this.mBox.top)),null!=this.mPage&&null!=this.mLocation)if(null==this.mTransformationMatrix&&void 0===this.mTransformationMatrix){var e=this.mPage.size.height%this.rectangle.size.height-this.mLocation.y;this.brushStream.items.setValue(this.mDictionaryProperties.matrix,new qr([1,0,0,1,this.mLocation.x,e]))}else{e=0;var t=this.mTransformationMatrix.matrix.elements;e=this.mPage.size.height>this.rectangle.size.height?this.mTransformationMatrix.matrix.offsetY-this.mPage.size.height%this.rectangle.size.height:this.mPage.size.height%this.rectangle.size.height+this.mTransformationMatrix.matrix.offsetY,this.brushStream.items.setValue(this.mDictionaryProperties.matrix,new qr([t[0],t[1],t[2],t[3],t[4],e]))}},t.prototype.setBox=function(e){this.mBox=e;var t=new Bn(this.mBox.left,this.mBox.top,this.mBox.right,this.mBox.bottom);this.brushStream.items.setValue(this.mDictionaryProperties.bBox,qr.fromRectangle(t))},Object.defineProperty(t.prototype,"rectangle",{get:function(){return this.mBox},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.mBox.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"graphics",{get:function(){if(null==this.mGraphics&&void 0===this.mGraphics){var e=new xs(this),t=new Cs(this.size,e,this.brushStream);this.mGraphics=t,this.mResources=this.getResources(),this.mGraphics.initializeCoordinates()}return this.mGraphics},enumerable:!0,configurable:!0}),t.prototype.getResources=function(){return this.mResources},Object.defineProperty(t.prototype,"stroking",{get:function(){return this.mStroking},set:function(e){this.mStroking=e},enumerable:!0,configurable:!0}),t.prototype.clone=function(){var e=this.initialize(this.rectangle,this.mPage,this.location,this.mTransformationMatrix);return null!=this.mTransformationMatrix&&null!=this.mTransformationMatrix.matrix&&e.brushStream.items.setValue(this.mDictionaryProperties.matrix,new qr(this.mTransformationMatrix.matrix.elements)),e.brushStream.data=this.tempBrushStream.data,e.mResources=new Os(this.mResources),e.brushStream.items.setValue(this.mDictionaryProperties.resources,e.mResources),e},t.prototype.monitorChanges=function(e,i,r,n,o){var s=!1;if(e!==this){i.setColorSpace("Pattern",this.mStroking);var a=r.getResources().getName(this);i.setColourWithPattern(null,a,this.mStroking),s=!0}else if(e instanceof t){i.setColorSpace("Pattern",this.mStroking);var c=r.getResources().getName(this);i.setColourWithPattern(null,c,this.mStroking),s=!0}return s},t.prototype.resetChanges=function(e){},Object.defineProperty(t.prototype,"element",{get:function(){return this.brushStream},enumerable:!0,configurable:!0}),t}(Gn),Cs=function(){function e(e,t,i){this.currentColorSpace=Nn.Rgb,this.previousTextRenderingMode=gn.Fill,this.previousCharacterSpacing=0,this.previousWordSpacing=0,this.previousTextScaling=100,this.procedureSets=new Co,this.isNormalRender=!0,this.isUseFontSize=!1,this.isItalic=!1,this.isEmfTextScaled=!1,this.isEmf=!1,this.isEmfPlus=!1,this.isBaselineFormat=!0,this.emfScalingFactor=new Fn(0,0),this.colorSpaceChanged=!1,this.dictionaryProperties=new Yr,this.isOverloadWithPosition=!1,this.isPointOverload=!1,this.currentColorSpaces=["RGB","CMYK","GrayScale","Indexed"],this.isImageOptimized=!1,this.graphicsState=[],this.istransparencySet=!1,this.internalAutomaticFields=null,this.startCutIndex=-1,this.getResources=t,this.canvasSize=e,this.pdfStreamWriter=i instanceof Oo?i:new Oo(i),this.initialize()}return Object.defineProperty(e.prototype,"stringLayoutResult",{get:function(){return this.pdfStringLayoutResult},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.canvasSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mediaBoxUpperRightBound",{get:function(){return void 0===this.internalMediaBoxUpperRightBound&&(this.internalMediaBoxUpperRightBound=0),this.internalMediaBoxUpperRightBound},set:function(e){this.internalMediaBoxUpperRightBound=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clientSize",{get:function(){return new Fn(this.clipBounds.width,this.clipBounds.height)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorSpace",{get:function(){return this.currentColorSpace},set:function(e){this.currentColorSpace=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"streamWriter",{get:function(){return this.pdfStreamWriter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matrix",{get:function(){return null==this.transformationMatrix&&(this.transformationMatrix=new Lo),this.transformationMatrix},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layer",{get:function(){return this.pageLayer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"page",{get:function(){return this.pageLayer.page},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"automaticFields",{get:function(){return null!=this.internalAutomaticFields&&void 0!==this.internalAutomaticFields||(this.internalAutomaticFields=new ko),this.internalAutomaticFields},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){this.bStateSaved=!1,this.currentPen=null,this.currentBrush=null,this.currentFont=null,this.currentColorSpace=Nn.Rgb,this.bCSInitialized=!1,this.transformationMatrix=null,this.previousTextRenderingMode=-1,this.previousCharacterSpacing=-1,this.previousWordSpacing=-1,this.previousTextScaling=-100,this.currentStringFormat=null,this.clipBounds=new Bn(new Vn(0,0),this.size),this.getResources.getResources().requireProcedureSet(this.procedureSets.pdf)},e.prototype.drawPdfTemplate=function(e,t,i){if(void 0===i){if(null==e)throw Error("ArgumentNullException-template");this.drawPdfTemplate(e,t,e.size)}else{if(null==e)throw Error("ArgumentNullException-template");var r=e.width>0?i.width/e.width:1,n=e.height>0?i.height/e.height:1,o=!(1===r&&1===n),s=this.save(),a=new Lo;null!=this.pageLayer&&this.getTranslateTransform(t.x,t.y+i.height,a),o&&this.getScaleTransform(r,n,a),this.pdfStreamWriter.modifyCtm(a);var c=this.getResources.getResources().getName(e);this.pdfStreamWriter.executeObject(c),this.restore(s);var h=e.graphics;if(null!=h)for(var u=0;u<h.automaticFields.automaticFields.length;u++){var l=h.automaticFields.automaticFields[u],p=new Vn(l.location.x+t.x,l.location.y+t.y),d=0==e.size.width?0:i.width/e.size.width,g=0==e.size.height?0:i.height/e.size.height;this.automaticFields.add(new Yo(l.field,p,d,g)),this.page.dictionary.modify()}this.getResources.getResources().requireProcedureSet(this.procedureSets.imageB),this.getResources.getResources().requireProcedureSet(this.procedureSets.imageC),this.getResources.getResources().requireProcedureSet(this.procedureSets.imageI),this.getResources.getResources().requireProcedureSet(this.procedureSets.text)}},e.prototype.drawString=function(e,t,i,r,n,o,s,a,c){if("string"==typeof e&&t instanceof to&&(i instanceof To||null===i)&&(r instanceof Gn||null===r)&&"number"==typeof n&&"number"==typeof o&&(s instanceof Jn||null===s)&&void 0===a)this.isOverloadWithPosition=!0,this.drawString(e,t,i,r,n,o,this.clientSize.width-n,0,s);else{var h=i,u=r,l=n,p=o,d=s,g=a,f=c,M=(new Kn).layout(e,t,f,new Fn(d,g),this.isOverloadWithPosition,this.clientSize);if(!M.empty){var y=this.checkCorrectLayoutRectangle(M.actualSize,l,p,f);d<=0&&(l=y.x,d=y.width),g<=0&&(p=y.y,g=y.height),this.drawStringLayoutResult(M,t,h,u,new Bn(l,p,d,g),f),this.isEmfTextScaled=!1,this.emfScalingFactor=new Fn(0,0)}this.getResources.getResources().requireProcedureSet(this.procedureSets.text),this.isNormalRender=!0,this.pdfStringLayoutResult=M,this.isUseFontSize=!1}},e.prototype.drawLine=function(e,t,i,r,n){if(t instanceof Vn){var o=t,s=i;this.drawLine(e,o.x,o.y,s.x,s.y)}else{o=t,s=i;var a=r,c=n;this.stateControl(e,null,null);var h=this.streamWriter;h.beginPath(o,s),h.appendLineSegment(a,c),h.strokePath(),this.getResources.getResources().requireProcedureSet(this.procedureSets.pdf)}},e.prototype.drawRectangle=function(e,t,i,r,n,o){if(e instanceof To&&"number"==typeof t){var s=i;this.drawRectangle(e,null,t,s,r,n)}else if(e instanceof Gn&&"number"==typeof t){s=i;this.drawRectangle(null,e,t,s,r,n)}else{s=i;var a=r,c=n,h=o;if(t instanceof As){this.bCSInitialized=!1;var u=this.matrix.matrix.offsetX+s,l=void 0;l=null!=this.layer&&null!=this.layer.page?this.layer.page.size.height-this.matrix.matrix.offsetY+a:this.clientSize.height-this.matrix.matrix.offsetY+a,t.location=new Vn(u,l),t.graphics.colorSpace=this.colorSpace}else t instanceof zs&&(t.colorSpace=this.colorSpace);t instanceof qn&&t.color.isEmpty&&(t=null);var p=e,d=t;this.stateControl(p,d,null),this.streamWriter.appendRectangle(s,a,c,h),this.drawPathHelper(p,d,!1)}},e.prototype.drawRoundedRectangle=function(e,t,i,r,n,o,s){if(null===e)throw new Error("pen");if(null===t)throw new Error("brush");if(0===s)this.drawRectangle(e,t,i,r,n,o);else{var a=[i,r,n,o],c=2*s,h=[c,c],u=[a[0],a[1],h[0],h[1]];this._pathPoints=[],this._pathTypes=[];var l=!0;l=this._addArc(u[0],u[1],u[2],u[3],180,90,l),u[0]=a[0]+a[2]-c,l=this._addArc(u[0],u[1],u[2],u[3],270,90,l),u[1]=a[1]+a[3]-c,l=this._addArc(u[0],u[1],u[2],u[3],0,90,l),u[0]=a[0],l=this._addArc(u[0],u[1],u[2],u[3],90,90,l);var p=this._pathPoints.length-1,d=this._pathTypes[p];d|=Bo.CloseSubpath,this._pathTypes[p]=d,this._drawPath(e,t,this._pathPoints,this._pathTypes,mn.Alternate),this._pathPoints=[],this._pathTypes=[]}},e.prototype._addArc=function(e,t,i,r,n,o,s){for(var a=this._getBezierArcPoints(e,t,e+i,t+r,n,o),c=0;c<a.length;c+=8){var h=[a[c],a[c+1],a[c+2],a[c+3],a[c+4],a[c+5],a[c+6],a[c+7]];s=this._addArcPoints(h,Bo.Bezier3,s)}return s},e.prototype._addArcPoints=function(e,t,i){for(var r=0;r<e.length;r++){var n=new Vn(e[r],e[r+1]);0===r?0===this._pathPoints.length||i?(this._addPoint(n,Bo.Start),i=!1):n.x===this._getLastPoint().x&&n.y===this._getLastPoint().y||this._addPoint(n,Bo.Line):this._addPoint(n,t),r++}return i},e.prototype._getLastPoint=function(){var e=new Vn(0,0),t=this._pathPoints.length;return t>0&&(e.x=this._pathPoints[t-1].x,e.y=this._pathPoints[t-1].y),e},e.prototype._addPoint=function(e,t){this._pathPoints.push(e),this._pathTypes.push(t)},e.prototype._getBezierArcPoints=function(e,t,i,r,n,o){if(e>i){var s=void 0;s=e,e=i,i=s}if(r>t){s=void 0;s=t,t=r,r=s}var a,c;Math.abs(o)<=90?(a=o,c=1):a=o/(c=Math.ceil(Math.abs(o)/90));for(var h=(e+i)/2,u=(t+r)/2,l=(i-e)/2,p=(r-t)/2,d=a*(Math.PI/360),g=Math.abs(4/3*(1-Math.cos(d))/Math.sin(d)),f=[],M=0;M<c;M++){var y=(n+M*a)*(Math.PI/180),m=(n+(M+1)*a)*(Math.PI/180),N=Math.cos(y),j=Math.cos(m),D=Math.sin(y),I=Math.sin(m);a>0?f.push(h+l*N,u-p*D,h+l*(N-g*D),u-p*(D+g*N),h+l*(j+g*I),u-p*(I-g*j),h+l*j,u-p*I):f.push(h+l*N,u-p*D,h+l*(N+g*D),u-p*(D-g*N),h+l*(j-g*I),u-p*(I+g*j),h+l*j,u-p*I)}return f},e.prototype.drawPathHelper=function(e,t,i,r){if("boolean"==typeof i){var n=i;this.drawPathHelper(e,t,mn.Winding,n)}else{var o=null!=e,s=null!=t,a=(n=i)===mn.Alternate;o&&s?this.streamWriter.fillStrokePath(a):o||s?o?this.streamWriter.strokePath():this.streamWriter.fillPath(a):this.streamWriter.endPath()}},e.prototype.drawImage=function(e,t,i,r,n){if("number"==typeof t&&"number"==typeof i&&void 0===r){var o=e.physicalDimension;this.drawImage(e,t,i,o.width,o.height)}else{var s=t,a=i,c=n;e.save();var h=new Lo;this.getTranslateTransform(s,a+c,h),this.getScaleTransform(r,n,h),this.pdfStreamWriter.write("q"),this.pdfStreamWriter.modifyCtm(h);var u=this.getResources.getResources();void 0!==this.pageLayer&&null!=this.page&&(u.document=this.page.document);var l=u.getName(e);void 0!==this.pageLayer&&this.page.setResources(u),this.pdfStreamWriter.executeObject(l),this.pdfStreamWriter.write(Qr.restoreState),this.pdfStreamWriter.write(Qr.newLine);var p=this.getResources.getResources();p.requireProcedureSet(this.procedureSets.imageB),p.requireProcedureSet(this.procedureSets.imageC),p.requireProcedureSet(this.procedureSets.imageI),p.requireProcedureSet(this.procedureSets.text)}},e.prototype.getLineBounds=function(e,t,i,r,n){var o;if(!t.empty&&e<t.lineCount&&e>=0){var s=t.lines[e],a=this.getTextVerticalAlignShift(t.actualSize.height,r.height,n)+r.y+t.lineHeight*e,c=s.width,h=this.getHorizontalAlignShift(c,r.width,n),u=this.getLineIndent(s,n,r,0===e);h+=this.rightToLeft(n)?0:u;var l=r.x+h,p=this.shouldJustify(s,r.width,n)?r.width-u:c-u,d=t.lineHeight;o=new Bn(l,a,p,d)}else o=new Bn(0,0,0,0);return o},e.prototype.checkCorrectLayoutRectangle=function(e,t,i,r){var n=new Bn(t,i,e.width,e.width);if(null!=r){switch(r.alignment){case dn.Center:n.x-=n.width/2;break;case dn.Right:n.x-=n.width}switch(r.lineAlignment){case pn.Middle:n.y-=n.height/2;break;case pn.Bottom:n.y-=n.height}}return n},e.prototype.setLayer=function(e){this.pageLayer=e;var t=e.page;null!=t&&void 0!==t&&(t.beginSave=this.pageSave)},e.prototype.pageSave=function(e){if(null!=e.graphics.automaticFields)for(var t=0;t<e.graphics.automaticFields.automaticFields.length;t++){var i=e.graphics.automaticFields.automaticFields[t];i.field.performDraw(e.graphics,i.location,i.scalingX,i.scalingY)}},e.prototype.drawStringLayoutResult=function(e,t,i,r,n,o){if(e.empty)throw new Error("ArgumentNullException:result");this.applyStringSettings(t,i,r,o,n);var s=null!=o?o.horizontalScalingFactor:100;s===this.previousTextScaling||this.isEmfTextScaled||(this.pdfStreamWriter.setTextScaling(s),this.previousTextScaling=s);var a,c=null==o||0===o.lineSpacing?t.height:o.lineSpacing+t.height;a=null!=o&&o.subSuperScript===An.SubScript?c-(t.height+t.metrics.getDescent(o)):c-t.metrics.getAscent(o),this.shift=a,this.pdfStreamWriter.startNextLine(n.x,n.y-a),this.pdfStreamWriter.setLeading(+c);for(var h=0,u="",l=0;l<e.lines.length;l++)if(h+=e.lineHeight,n.y+h>this.clientSize.height){this.startCutIndex=l;break}for(var p=this.startCutIndex;p<e.lines.length&&p>=0;p++)u+=e.lines[p].text;var d=new Bn(n.x,n.y,n.width,n.height);this.drawLayoutResult(e,t,o,n),this.underlineStrikeoutText(i,r,e,t,d,o),this.isEmfPlus=!1,this.isUseFontSize=!1,-1!==this.startCutIndex&&this.getNextPage().graphics.drawString(u,t,i,r,n.x,0,n.width,0,o)},e.prototype.getNextPage=function(){var e=this.currentPage.section,t=e.indexOf(this.currentPage);return t===e.count-1?e.add():e.getPages()[t+1]},e.prototype.setClip=function(e,t){void 0===t?this.setClip(e,mn.Winding):(this.pdfStreamWriter.appendRectangle(e),this.pdfStreamWriter.clipPath(t===mn.Alternate))},e.prototype.applyStringSettings=function(e,t,i,r,n){i instanceof As?(this.bCSInitialized=!1,i.graphics.colorSpace=this.colorSpace):i instanceof zs&&(this.bCSInitialized=!1,i.colorSpace=this.colorSpace);var o=this.getTextRenderingMode(t,i,r);this.stateControl(t,i,e,r),this.pdfStreamWriter.beginText(),o!==this.previousTextRenderingMode&&(this.pdfStreamWriter.setTextRenderingMode(o),this.previousTextRenderingMode=o);var s=null!=r?r.characterSpacing:0;s===this.previousCharacterSpacing||this.isEmfTextScaled||(this.pdfStreamWriter.setCharacterSpacing(s),this.previousCharacterSpacing=s);var a=null!=r?r.wordSpacing:0;a!==this.previousWordSpacing&&(this.pdfStreamWriter.setWordSpacing(a),this.previousWordSpacing=a)},e.prototype.getTextVerticalAlignShift=function(e,t,i){var r=0;if(t>=0&&null!=i&&i.lineAlignment!==pn.Top)switch(i.lineAlignment){case pn.Middle:r=(t-e)/2;break;case pn.Bottom:r=t-e}return r},e.prototype.drawLayoutResult=function(e,t,i,r){var n=this.getTextVerticalAlignShift(e.actualSize.height,r.height,i);0!==n&&this.pdfStreamWriter.startNextLine(0,n);var o=t,s=null!=o&&o.isUnicode;null!=o&&o.isEmbedFont;for(var a=e.lines,c=0,h=a.length;c<h&&c!==this.startCutIndex;c++){var u=a[c];u.text;var l=u.width,p=this.getHorizontalAlignShift(l,r.width,i),d=this.getLineIndent(u,i,r,0===c);0===(p+=this.rightToLeft(i)?0:d)||this.isEmfTextScaled||this.pdfStreamWriter.startNextLine(p,0),s?this.drawUnicodeLine(u,r,t,i):this.drawAsciiLine(u,r,t,i),0===p||this.isEmfTextScaled||this.pdfStreamWriter.startNextLine(-p,0),this.isOverloadWithPosition&&a.length>1&&(this.pdfStreamWriter.startNextLine(-r.x,0),r.x=0,r.width=this.clientSize.width,this.isOverloadWithPosition=!1,this.isPointOverload=!0)}this.getResources.getResources().requireProcedureSet(this.procedureSets.text),0!==n&&this.pdfStreamWriter.startNextLine(0,-(n-e.lineHeight)),this.pdfStreamWriter.endText()},e.prototype.drawAsciiLine=function(e,t,i,r){this.justifyLine(e,t.width,r);var n="";if(-1!==e.text.indexOf("(")||-1!==e.text.indexOf(")"))for(var o=0;o<e.text.length;o++)"("===e.text[o]?n+="\\(":")"===e.text[o]?n+="\\)":n+=e.text[o];""===n&&(n=e.text);var s="("+n+")";this.pdfStreamWriter.showNextLineText(new bn(s))},e.prototype.drawUnicodeLine=function(e,t,i,r){var n=e.text;e.width;var o=null!=r&&r.rightToLeft,s=null!=r&&(0!==r.wordSpacing||r.alignment===dn.Justify),a=i,c=this.justifyLine(e,t.width,r),h=new Ss;if(o||null!=r&&r.textDirection!==Sn.None){var u=null,l=null!=r&&r.alignment===dn.Right,p=null;p=(u=null!=r&&r.textDirection!==Sn.None?h.layout(n,a,r.textDirection===Sn.RightToLeft,s,r):h.layout(n,a,l,s,r)).length>1?null!=r&&r.textDirection!==Sn.None?h.splitLayout(n,a,r.textDirection===Sn.RightToLeft,s,r):h.splitLayout(n,a,l,s,r):[n],this.drawUnicodeBlocks(u,p,a,r,c)}else if(s){var d=this.breakUnicodeLine(n,a,null);u=d.tokens,p=d.words;this.drawUnicodeBlocks(u,p,a,r,c)}else{var g=this.convertToUnicode(n,a),f=this.getUnicodeString(g);this.streamWriter.showNextLineText(f)}},e.prototype.drawUnicodeBlocks=function(e,t,i,r,n){if(null==e)throw new Error("Argument Null Exception : blocks");if(null==t)throw new Error("Argument Null Exception : words");if(null==i)throw new Error("Argument Null Exception : font");this.streamWriter.startNextLine();var o=0,s=0,a=0,c=0;try{null!=r&&(a=r.firstLineIndent,c=r.paragraphIndent,r.firstLineIndent=0,r.paragraphIndent=0);var h=i.getCharWidth(Zn.whiteSpace,r)+n,u=null!=r?r.characterSpacing:0;h+=u+(null!=r&&0===n?r.wordSpacing:0);for(var l=0;l<e.length;l++){var p=e[l],d=t[l],g=0;if(0!==o&&this.streamWriter.startNextLine(o,0),d.length>0){g+=i.measureString(d,r).width,g+=u;var f=this.getUnicodeString(p);this.streamWriter.showText(f)}l!==e.length-1&&(s+=o=g+h)}s>0&&this.streamWriter.startNextLine(-s,0)}finally{null!=r&&(r.firstLineIndent=a,r.paragraphIndent=c)}},e.prototype.breakUnicodeLine=function(e,t,i){if(null===e)throw new Error("Argument Null Exception : line");i=e.split(null);for(var r=[],n=0;n<i.length;n++){var o=i[n],s=this.convertToUnicode(o,t);r[n]=s}return{tokens:r,words:i}},e.prototype.getUnicodeString=function(e){if(null===e)throw new Error("Argument Null Exception : token");var t=new bn(e);return t.converted=!0,t.encode=Kr.ForceEncoding.Ascii,t},e.prototype.convertToUnicode=function(e,t){var i=null;if(null==e)throw new Error("Argument Null Exception : text");if(null==t)throw new Error("Argument Null Exception : ttfFont");if(t.fontInternal instanceof ms){var r=t.fontInternal.ttfReader;t.setSymbols(e),i=r.convertString(e);var n=bn.toUnicodeArray(i,!1);i=bn.byteToString(n)}return i},e.prototype.justifyLine=function(e,t,i){var r=e.text,n=e.width,o=this.shouldJustify(e,t,i),s=null!=i&&0!==i.wordSpacing,a=Zn.spaces,c=Zn.getCharsCount(r,a),h=0;o?(s&&(n-=c*i.wordSpacing),h=(t-n)/c,this.pdfStreamWriter.setWordSpacing(h)):s?this.pdfStreamWriter.setWordSpacing(i.wordSpacing):this.pdfStreamWriter.setWordSpacing(0);return h},e.prototype.reset=function(e){this.canvasSize=e,this.streamWriter.clear(),this.initialize(),this.initializeCoordinates()},e.prototype.shouldJustify=function(e,t,i){var r=e.text,n=e.width,o=null!=i&&i.alignment===dn.Justify,s=t>=0&&n<t,a=Zn.spaces,c=Zn.getCharsCount(r,a)>0&&r[0]!==Zn.whiteSpace,h=(e.lineType&_n.LayoutBreak)>0;return o&&s&&c&&(h||i.alignment===dn.Justify)},e.prototype.underlineStrikeoutText=function(e,t,i,r,n,o){if(r.underline||r.strikeout){var s=this.createUnderlineStikeoutPen(e,t,r,o);if(null!=s){var a=this.getTextVerticalAlignShift(i.actualSize.height,n.height,o),c=0;c=n.y+a+r.metrics.getAscent(o)+1.5*s.width;for(var h=n.y+a+r.metrics.getHeight(o)/2+1.5*s.width,u=i.lines,l=0,p=i.lineCount;l<p;l++){var d=u[l];d.text;var g=d.width,f=this.getHorizontalAlignShift(g,n.width,o),M=this.getLineIndent(d,o,n,0===l);f+=this.rightToLeft(o)?0:M;var y=n.x+f,m=this.shouldJustify(d,n.width,o)?y+n.width-M:y+g-M;if(r.underline){var N=c;this.drawLine(s,y,N,m,N),c+=i.lineHeight}if(r.strikeout){N=h;this.drawLine(s,y,N,m,N),h+=i.lineHeight}this.isPointOverload&&u.length>1&&(n.x=0,n.width=this.clientSize.width)}this.isPointOverload=!1}}},e.prototype.createUnderlineStikeoutPen=function(e,t,i,r){var n=i.metrics.getSize(r)/20,o=null;return null!=e?o=new To(e.color,n):null!=t&&(o=new To(t,n)),o},e.prototype.getTextRenderingMode=function(e,t,i){var r=gn.None;return r=null!=e&&null!=t?gn.FillStroke:null!=e?gn.Stroke:gn.Fill,null!=i&&i.clipPath&&(r|=gn.ClipFlag),r},e.prototype.getLineIndent=function(e,t,i,r){var n=0,o=(e.lineType&_n.FirstParagraphLine)>0;return null!=t&&o&&(n=r?t.firstLineIndent:t.paragraphIndent,n=i.width>0?Math.min(i.width,n):n),n},e.prototype.getHorizontalAlignShift=function(e,t,i){var r=0;if(t>=0&&null!=i&&i.alignment!==dn.Left)switch(i.alignment){case dn.Center:r=(t-e)/2;break;case dn.Right:r=t-e}return r},e.prototype.rightToLeft=function(e){var t=null!=e&&e.rightToLeft;return null!=e&&e.textDirection!==Sn.None&&void 0!==e.textDirection&&(t=!0),t},e.prototype.stateControl=function(e,t,i,r){if(void 0===r)this.stateControl(e,t,i,null);else{t instanceof zs&&(this.bCSInitialized=!1,t.colorSpace=this.colorSpace),t instanceof As&&(this.bCSInitialized=!1,t.graphics.colorSpace=this.colorSpace);var n=!1;null!==t?(void 0!==this.pageLayer&&null!=this.pageLayer&&!1===this.colorSpaceChanged&&(this.lastDocumentCS=this.pageLayer.page.document.colorSpace,this.lastGraphicsCS=this.pageLayer.page.graphics.colorSpace,this.colorSpace=this.pageLayer.page.document.colorSpace,this.currentColorSpace=this.pageLayer.page.document.colorSpace,this.colorSpaceChanged=!0),this.initCurrentColorSpace(this.currentColorSpace)):null!=e&&(void 0!==this.pageLayer&&null!=this.pageLayer&&(this.colorSpace=this.pageLayer.page.document.colorSpace,this.currentColorSpace=this.pageLayer.page.document.colorSpace),this.initCurrentColorSpace(this.currentColorSpace)),this.penControl(e,n),this.brushControl(t,n),this.fontControl(i,r,n)}},e.prototype.initCurrentColorSpace=function(e){this.getResources.getResources(),this.bCSInitialized||(this.currentColorSpace!=Nn.GrayScale?(this.pdfStreamWriter.setColorSpace("Device"+this.currentColorSpaces[this.currentColorSpace],!0),this.pdfStreamWriter.setColorSpace("Device"+this.currentColorSpaces[this.currentColorSpace],!1),this.bCSInitialized=!0):(this.pdfStreamWriter.setColorSpace("DeviceGray",!0),this.pdfStreamWriter.setColorSpace("DeviceGray",!1),this.bCSInitialized=!0))},e.prototype.penControl=function(e,t){null!=e&&(this.currentPen=e,e.monitorChanges(this.currentPen,this.pdfStreamWriter,this.getResources,t,this.colorSpace,this.matrix.clone()),this.currentPen=e.clone())},e.prototype.brushControl=function(e,t){if(null!=e&&void 0!==e){var i=e.clone(),r=i;if(!(null==r||e instanceof qn||e instanceof As)){var n=r.matrix,o=this.matrix.clone();null!=n&&(n.multiply(o),o=n),r.matrix=o}this.currentBrush=r,i.monitorChanges(this.currentBrush,this.pdfStreamWriter,this.getResources,t,this.colorSpace),this.currentBrush=e,e=null}},e.prototype.fontControl=function(e,t,i){if(null!=e){var r=null!=t?t.subSuperScript:An.None,n=null!=this.currentStringFormat?this.currentStringFormat.subSuperScript:An.None;if(i||e!==this.currentFont||r!==n){var o=this.getResources.getResources();this.currentFont=e,this.currentStringFormat=t;var s=e.metrics.getSize(t);this.isEmfTextScaled=!1;var a=o.getName(e);this.pdfStreamWriter.setFont(e,a,s)}}},e.prototype.setTransparency=function(e,t,i){if(void 0===t)this.istransparencySet=!0,this.setTransparency(e,e,jn.Normal);else if("number"==typeof t&&void 0===i)this.setTransparency(e,t,jn.Normal);else{null==this.trasparencies&&(this.trasparencies=new xo);var r=null,n=new ks(e,t,i);this.trasparencies.containsKey(n)&&(r=this.trasparencies.getValue(n)),null==r&&(r=new Eo(e,t,i),this.trasparencies.setValue(n,r));var o=this.getResources.getResources().getName(r);this.streamWriter.setGraphicsState(o)}},e.prototype.clipTranslateMargins=function(e,t,i,r,n,o){if(e instanceof Bn&&void 0===t)this.clipBounds=e,this.pdfStreamWriter.writeComment("Clip margins."),this.pdfStreamWriter.appendRectangle(e),this.pdfStreamWriter.closePath(),this.pdfStreamWriter.clipPath(!1),this.pdfStreamWriter.writeComment("Translate co-ordinate system."),this.translateTransform(e.x,e.y);else if("number"==typeof e){var s=new Bn(i,r,this.size.width-i-n,this.size.height-r-o);this.clipBounds=s,this.pdfStreamWriter.writeComment("Clip margins."),this.pdfStreamWriter.appendRectangle(s),this.pdfStreamWriter.closePath(),this.pdfStreamWriter.clipPath(!1),this.pdfStreamWriter.writeComment("Translate co-ordinate system."),this.translateTransform(e,t)}},e.prototype.updateY=function(e){return-e},e.prototype.translateTransform=function(e,t){var i=new Lo;this.getTranslateTransform(e,t,i),this.pdfStreamWriter.modifyCtm(i),this.matrix.multiply(i)},e.prototype.getTranslateTransform=function(e,t,i){return i.translate(e,this.updateY(t)),i},e.prototype.scaleTransform=function(e,t){var i=new Lo;this.getScaleTransform(e,t,i),this.pdfStreamWriter.modifyCtm(i),this.matrix.multiply(i)},e.prototype.getScaleTransform=function(e,t,i){return null==i&&(i=new Lo),i.scale(e,t),i},e.prototype.rotateTransform=function(e){var t=new Lo;this.getRotateTransform(e,t),this.pdfStreamWriter.modifyCtm(t),this.matrix.multiply(t)},e.prototype.initializeCoordinates=function(){this.pdfStreamWriter.writeComment("Change co-ordinate system to left/top."),this.mediaBoxUpperRightBound!==-this.size.height&&null==this.cropBox&&(this.mediaBoxUpperRightBound===this.size.height||0===this.mediaBoxUpperRightBound?this.translateTransform(0,this.updateY(this.size.height)):this.translateTransform(0,this.updateY(this.mediaBoxUpperRightBound)))},e.prototype.getRotateTransform=function(e,t){return null!=t&&void 0!==t||(t=new Lo),t.rotate(this.updateY(e)),t},e.prototype.save=function(){var e=new Es(this,this.matrix.clone());return e.brush=this.currentBrush,e.pen=this.currentPen,e.font=this.currentFont,e.colorSpace=this.currentColorSpace,e.characterSpacing=this.previousCharacterSpacing,e.wordSpacing=this.previousWordSpacing,e.textScaling=this.previousTextScaling,e.textRenderingMode=this.previousTextRenderingMode,this.graphicsState.push(e),this.pdfStreamWriter.saveGraphicsState(),e},e.prototype.restore=function(e){if(void 0===e)this.graphicsState.length>0&&this.doRestoreState();else if(-1!==this.graphicsState.indexOf(e))for(;0!==this.graphicsState.length;){if(this.doRestoreState()===e)break}},e.prototype.doRestoreState=function(){var e=this.graphicsState.pop();return this.transformationMatrix=e.matrix,this.currentBrush=e.brush,this.currentPen=e.pen,this.currentFont=e.font,this.currentColorSpace=e.colorSpace,this.previousCharacterSpacing=e.characterSpacing,this.previousWordSpacing=e.wordSpacing,this.previousTextScaling=e.textScaling,this.previousTextRenderingMode=e.textRenderingMode,this.pdfStreamWriter.restoreGraphicsState(),e},e.prototype.drawPath=function(e,t,i){this._drawPath(e,t,i.pathPoints,i.pathTypes,i.fillMode)},e.prototype._drawPath=function(e,t,i,r,n){t instanceof As?(this.bCSInitialized=!1,t.graphics.colorSpace=this.colorSpace):t instanceof zs&&(this.bCSInitialized=!1,t.colorSpace=this.colorSpace),this.stateControl(e,t,null),this.buildUpPath(i,r),this.drawPathHelper(e,t,n,!1)},e.prototype.drawArc=function(e,t,i,r,n,o,s){t instanceof Bn?this.drawArc(e,t.x,t.y,t.width,t.height,i,r):0!==s&&(this.stateControl(e,null,null),this.constructArcPath(t,i,t+r,i+n,o,s),this.drawPathHelper(e,null,!1))},e.prototype.buildUpPath=function(t,i){for(var r=t.length,n=0;n<r;++n){var o,s=t[n];switch(i[n]&e.pathTypesValuesMask){case Bo.Start:this.pdfStreamWriter.beginPath(s.x,s.y);break;case Bo.Bezier3:var a=new Vn(0,0),c=new Vn(0,0),h=this.getBezierPoints(t,i,n,a,c);this.pdfStreamWriter.appendBezierSegment(s,h.p2,h.p3),n=h.i;break;case Bo.Line:this.pdfStreamWriter.appendLineSegment(s);break;default:throw new Error("ArithmeticException - Incorrect path formation.")}o=i[n],this.checkFlags(o)}},e.prototype.getBezierPoints=function(t,i,r,n,o){if((i[++r]&e.pathTypesValuesMask)!==Bo.Bezier3)throw new Error("ArgumentException : errorMsg");if(n=t[r],(i[++r]&e.pathTypesValuesMask)!==Bo.Bezier3)throw new Error("ArgumentException : errorMsg");return{i:r,p2:n,p3:t[r]}},e.prototype.checkFlags=function(e){(e&Bo.CloseSubpath)===Bo.CloseSubpath&&this.pdfStreamWriter.closePath()},e.prototype.constructArcPath=function(e,t,i,r,n,o){var s=this.getBezierArc(e,t,i,r,n,o);if(0!==s.length){var a=[s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7]];this.pdfStreamWriter.beginPath(a[0],a[1]);var c=0;for(c=0;c<s.length;c+=8)a=[s[c],s[c+1],s[c+2],s[c+3],s[c+4],s[c+5],s[c+6],s[c+7]],this.pdfStreamWriter.appendBezierSegment(a[2],a[3],a[4],a[5],a[6],a[7])}},e.prototype.getBezierArc=function(e,t,i,r,n,o){if(e>i){var s=void 0;s=e,e=i,i=s}if(r>t){s=void 0;s=t,t=r,r=s}var a,c;Math.abs(o)<=90?(a=o,c=1):a=o/(c=Math.ceil(Math.abs(o)/90));for(var h=(e+i)/2,u=(t+r)/2,l=(i-e)/2,p=(r-t)/2,d=a*(Math.PI/360),g=Math.abs(4/3*(1-Math.cos(d))/Math.sin(d)),f=[],M=0;M<c;M++){var y=(n+M*a)*(Math.PI/180),m=(n+(M+1)*a)*(Math.PI/180),N=Math.cos(y),j=Math.cos(m),D=Math.sin(y),I=Math.sin(m);a>0?f.push(h+l*N,u-p*D,h+l*(N-g*D),u-p*(D+g*N),h+l*(j+g*I),u-p*(I-g*j),h+l*j,u-p*I):f.push(h+l*N,u-p*D,h+l*(N+g*D),u-p*(D-g*N),h+l*(j-g*I),u-p*(I+g*j),h+l*j,u-p*I)}return f},e.pathTypesValuesMask=15,e.transparencyObject=!1,e}(),xs=function(){function e(e){this.sender=e}return e.prototype.getResources=function(){return this.sender.getResources()},e}(),Es=function(){function e(e,t){if(this.internalTextRenderingMode=gn.Fill,this.internalCharacterSpacing=0,this.internalWordSpacing=0,this.internalTextScaling=100,this.pdfColorSpace=Nn.Rgb,void 0!==e){this.pdfGraphics=e;var i=[];e.matrix.matrix.elements.forEach(function(e){i.push(e)}),this.transformationMatrix=new Lo,this.transformationMatrix.matrix=new Ao(i)}}return Object.defineProperty(e.prototype,"graphics",{get:function(){return this.pdfGraphics},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matrix",{get:function(){return this.transformationMatrix},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"characterSpacing",{get:function(){return this.internalCharacterSpacing},set:function(e){this.internalCharacterSpacing=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wordSpacing",{get:function(){return this.internalWordSpacing},set:function(e){this.internalWordSpacing=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textScaling",{get:function(){return this.internalTextScaling},set:function(e){this.internalTextScaling=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pen",{get:function(){return this.pdfPen},set:function(e){this.pdfPen=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"brush",{get:function(){return this.pdfBrush},set:function(e){this.pdfBrush=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"font",{get:function(){return this.pdfFont},set:function(e){this.pdfFont=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorSpace",{get:function(){return this.pdfColorSpace},set:function(e){this.pdfColorSpace=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textRenderingMode",{get:function(){return this.internalTextRenderingMode},set:function(e){this.internalTextRenderingMode=e},enumerable:!0,configurable:!0}),e}(),ks=function(e,t,i){this.alphaPen=e,this.alphaBrush=t,this.blendMode=i},Ps=function(){function e(e,t){if(this.pdfColorSpace=Nn.Rgb,this.isVisible=!0,this.sublayer=!1,this.contentLength=0,this.dictionaryProperties=new Yr,null===e)throw new Error("ArgumentNullException:page");if(this.pdfPage=e,this.clipPageTemplates=!0,void 0===t)this.content=new cn;else if(t instanceof cn||null===t){if(null===t)throw new Error("ArgumentNullException:stream");this.content=t}else this.content=new cn,this.clipPageTemplates=t}return Object.defineProperty(e.prototype,"colorSpace",{get:function(){return this.pdfColorSpace},set:function(e){this.pdfColorSpace=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layerId",{get:function(){return this.layerid},set:function(e){this.layerid=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.layerName},set:function(e){this.layerName=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this.isVisible},set:function(e){this.isVisible=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"graphics",{get:function(){return null==this.pdfGraphics&&this.initializeGraphics(this.page),this.pdfGraphics},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layers",{get:function(){return null==this.layer?(this.layer=new Ys(this.page),this.layer.sublayer=!0,this.layer):this.layer},enumerable:!0,configurable:!0}),e.prototype.add=function(){var t=new e(this.pdfPage);return t.name="",t},e.prototype.sign=function(e){return 0===e?0:e>0?1:-1},e.prototype.initializeGraphics=function(e){var t=e,i=new xs(this.page);if(this.pdfGraphics=new Cs(e.size,i,this.content),this.pdfGraphics.mediaBoxUpperRightBound=0,null!=t){var r=t.section.parent;null!=r&&(this.pdfGraphics.colorSpace=r.document.colorSpace,this.colorSpace=r.document.colorSpace)}var n=this.sign(e.origin.y)===this.sign(e.origin.x);(e.origin.x>=0&&e.origin.y>=0||!n)&&this.pdfGraphics.initializeCoordinates();var o=t.section.getActualBounds(t,!0),s=t.section.pageSettings.margins;this.clipPageTemplates?e.origin.x>=0&&e.origin.y>=0&&this.pdfGraphics.clipTranslateMargins(o):this.graphics.clipTranslateMargins(o.x,o.y,s.left,s.top,s.right,s.bottom),this.pdfGraphics.setLayer(this)},Object.defineProperty(e.prototype,"element",{get:function(){return this.content},enumerable:!0,configurable:!0}),e}(),Us=function(){function e(){}return Object.defineProperty(e.prototype,"count",{get:function(){return void 0===this.collection&&(this.collection=[]),this.collection.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"list",{get:function(){return void 0===this.collection&&(this.collection=[]),this.collection},enumerable:!0,configurable:!0}),e}(),Qs=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Ys=function(e){function t(t){var i=e.call(this)||this;if(i.parentLayerCount=0,i.sublayer=!1,i.optionalContent=new Rr,t instanceof Rs){i.page=t;var r=t;i.parseLayers(r)}return i}return Qs(t,e),t.prototype.items=function(e,t){if("number"==typeof e&&void 0===t)return this.list[e];if(null==t)throw new Error("ArgumentNullException: layer");if(t.page!==this.page)throw new Error("ArgumentException: The layer belongs to another page")},t.prototype.add=function(e,t){if(void 0===e){var i=new Ps(this.page);return i.name="",this.add(i),i}if(e instanceof Ps){var r=this.list.push(e);return this.addLayer(r,e),r}return 0},t.prototype.addLayer=function(e,t){var i=new vn(t);this.page.contents.add(i)},t.prototype.insert=function(e,t){for(var i=[],r=this.list.length,n=e;n<r;n++)i.push(this.list.pop());this.list.push(t);for(n=0;n<i.length;n++)this.list.push(i[n]);this.insertLayer(e,t)},t.prototype.insertLayer=function(e,t){if(null==t)throw new Error("ArgumentNullException:layer");var i=new vn(t);this.page.contents.insert(e,i)},t.prototype.parseLayers=function(e){var t=this.page.contents;this.page.getResources(),e.crossTable;var i=new cn,r=new cn,n=[];n.push("q"),i.data=n,t.insert(0,new vn(i)),(n=[]).push("Q"),r.data=n,t.insert(t.count,new vn(r))},t.prototype.indexOf=function(e){if(null==e)throw new Error("ArgumentNullException: layer");return this.list.indexOf(e)},t}(Us),Rs=function(){function e(e){this.defLayerIndex=-1,this.modified=!1,this.dictionaryProperties=new Yr,this.pageDictionary=e}return Object.defineProperty(e.prototype,"section",{get:function(){return this.pdfSection},set:function(e){this.pdfSection=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dictionary",{get:function(){return this.pageDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.pageDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultLayer",{get:function(){var e=this.layers,t=this.defaultLayerIndex;return e.items(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultLayerIndex",{get:function(){if(0===this.layerCollection.count||-1===this.defLayerIndex){var e=this.layerCollection.add();this.defLayerIndex=this.layerCollection.indexOf(e)}return this.defLayerIndex},set:function(e){if(e<0||e>this.layers.count-1)throw new Error("ArgumentOutOfRangeException : value, Index can not be less 0 and greater Layers.Count - 1");this.defLayerIndex=e,this.modified=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layers",{get:function(){return null!=this.layerCollection&&void 0!==this.layerCollection||(this.layerCollection=new Ys(this)),this.layerCollection},enumerable:!0,configurable:!0}),e.prototype.getResources=function(){return null==this.resources&&(this.resources=new Os,this.dictionary.items.setValue(this.dictionaryProperties.resources,this.resources)),this.resources},Object.defineProperty(e.prototype,"contents",{get:function(){var e=this.pageDictionary.items.getValue(this.dictionaryProperties.contents);return null==e&&(e=new qr,this.pageDictionary.items.setValue(this.dictionaryProperties.contents,e)),e},enumerable:!0,configurable:!0}),e.prototype.setResources=function(e){this.resources=e,this.dictionary.items.setValue(this.dictionaryProperties.resources,this.resources),this.modified=!0},e}(),Vs=function(){function e(e){this.alreadyExistsAnnotationError="This annotatation had been already added to page",this.missingAnnotationException="Annotation is not contained in collection.",this.dictionaryProperties=new Yr,this.internalAnnotations=new qr,this.lists=[],void 0!==e&&(this.page=e)}return Object.defineProperty(e.prototype,"annotations",{get:function(){return this.internalAnnotations},set:function(e){this.internalAnnotations=e},enumerable:!0,configurable:!0}),e.prototype.add=function(e){this.doAdd(e)},e.prototype.doAdd=function(e){if(void 0===e.destination)return e.setPage(this.page),this.internalAnnotations.add(new vn(e)),this.lists.push(e);var t=(new Kn).layout(e.text,e.font,e.stringFormat,new Fn(e.bounds.width,0),!1,new Fn(0,0)),i=e.bounds.y;if(1===t.lines.length){var r=e.font.measureString(t.lines[0].text);e.bounds=new Bn(new Vn(e.bounds.x,i),r),e.text=t.lines[0].text,this.page.graphics.drawString(e.text,e.font,null,e.brush,e.bounds.x,e.bounds.y,e.bounds.width,e.bounds.height,null),e.setPage(this.page),this.setColor(e),this.internalAnnotations.add(new vn(e)),this.lists.push(e)}else for(var n=0;n<t.lines.length;n++){r=e.font.measureString(t.lines[n].text);if(0===n)e.bounds=new Bn(e.bounds.x,i,r.width,r.height),e.text=t.lines[n].text,this.page.graphics.drawString(e.text,e.font,null,e.brush,e.bounds.x,i,r.width,r.height,null),e.setPage(this.page),this.setColor(e),this.internalAnnotations.add(new vn(e)),this.lists.push(e),i+=e.bounds.height;else{var o=e.clone();o.bounds=new Bn(new Vn(e.bounds.x,i),r),o.text=t.lines[n].text,this.page.graphics.drawString(o.text,o.font,null,o.brush,o.bounds.x,o.bounds.y,o.bounds.width,o.bounds.height,null),o.setPage(this.page),this.setColor(o),this.internalAnnotations.add(new vn(o)),this.lists.push(o),i+=o.bounds.height}}},e.prototype.setColor=function(e){var t=Nn.Rgb,i=e.color.toArray(t);e.dictionary.items.setValue(this.dictionaryProperties.c,i)},Object.defineProperty(e.prototype,"element",{get:function(){return this.internalAnnotations},enumerable:!0,configurable:!0}),e}(),Fs=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Bs=function(e){function t(){var t=e.call(this,new Rr)||this;return t.annotationCollection=null,t.beginSave=null,t.initialize(),t}return Fs(t,e),Object.defineProperty(t.prototype,"document",{get:function(){return null!==this.section&&null!==this.section.parent?this.section.parent.document:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"graphics",{get:function(){var e=this.defaultLayer.graphics;return e.currentPage=this,e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"crossTable",{get:function(){if(null===this.section)throw new Error("PdfDocumentException : Page is not created");return null===this.section.parent?this.section.parentDocument.crossTable:this.section.parent.document.crossTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.section.pageSettings.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"origin",{get:function(){return this.section.pageSettings.origin},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"annotations",{get:function(){return null==this.annotationCollection&&(this.annotationCollection=new Vs(this),this.dictionary.items.setValue(this.dictionaryProperties.annots,this.annotationCollection.element),this.annotationCollection.annotations=this.dictionary.items.getValue(this.dictionaryProperties.annots)),this.annotationCollection},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this.dictionary.items.setValue(this.dictionaryProperties.type,new Ur("Page")),this.dictionary.pageBeginDrawTemplate=new Gr(this)},t.prototype.setSection=function(e){this.section=e,this.dictionary.items.setValue(this.dictionaryProperties.parent,new vn(e))},t.prototype.resetProgress=function(){this.isProgressOn=!1},t.prototype.getClientSize=function(){var e=this.section.getActualBounds(this,!0);return new Fn(e.width,e.height)},t.prototype.pageBeginSave=function(){var e=this.document;void 0!==typeof e&&null!=e&&this.drawPageTemplates(e),null!=this.beginSave&&void 0!==this.beginSave&&this.beginSave(this)},t.prototype.drawPageTemplates=function(e){if(this.section.containsTemplates(e,this,!1)){var t=new Ps(this,!1);if(this.layers.insert(0,t),this.section.drawTemplates(this,t,e,!1),null!==t.graphics&&void 0!==t.graphics)for(var i=0;i<t.graphics.automaticFields.automaticFields.length;i++){var r=t.graphics.automaticFields.automaticFields[i];r.field.performDraw(t.graphics,r.location,r.scalingX,r.scalingY)}}if(this.section.containsTemplates(e,this,!0)){var n=new Ps(this,!1);this.layers.add(n),this.section.drawTemplates(this,n,e,!0)}},t}(Rs),Ws=function(){function e(e){this.pdfPage=void 0!==e?e:null}return Object.defineProperty(e.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),e}(),Gs=function(){function e(e){if(this.pdfSection=null,null==e)throw Error('ArgumentNullException("section")');this.section=e}return Object.defineProperty(e.prototype,"section",{get:function(){return this.pdfSection},set:function(e){this.pdfSection=e},enumerable:!0,configurable:!0}),e.prototype.contains=function(e){return this.section.contains(e)},e.prototype.remove=function(e){this.section.remove(e)},e.prototype.add=function(){return this.section.add()},e}(),Hs=function(){function e(){}return Object.defineProperty(e.prototype,"left",{get:function(){return this.leftTemplate},set:function(e){this.leftTemplate=this.checkElement(e,No.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.topTemplate},set:function(e){this.topTemplate=this.checkElement(e,No.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.rightTemplate},set:function(e){this.rightTemplate=this.checkElement(e,No.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.bottomTemplate},set:function(e){this.bottomTemplate=this.checkElement(e,No.Bottom)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"EvenLeft",{get:function(){return this.evenLeft},set:function(e){this.evenLeft=this.checkElement(e,No.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"EvenTop",{get:function(){return this.evenTop},set:function(e){this.evenTop=this.checkElement(e,No.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"EvenRight",{get:function(){return this.evenRight},set:function(e){this.evenRight=this.checkElement(e,No.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"EvenBottom",{get:function(){return this.evenBottom},set:function(e){this.evenBottom=this.checkElement(e,No.Bottom)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OddLeft",{get:function(){return this.oddLeft},set:function(e){this.oddLeft=this.checkElement(e,No.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OddTop",{get:function(){return this.oddTop},set:function(e){this.oddTop=this.checkElement(e,No.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OddRight",{get:function(){return this.oddRight},set:function(e){this.oddRight=this.checkElement(e,No.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OddBottom",{get:function(){return this.oddBottom},set:function(e){this.oddBottom=this.checkElement(e,No.Bottom)},enumerable:!0,configurable:!0}),e.prototype.getLeft=function(e){if(null==e)throw new Error("ArgumentNullException:page");return this.isEven(e)?null!=this.EvenLeft?this.EvenLeft:this.left:null!=this.OddLeft?this.OddLeft:this.left},e.prototype.getTop=function(e){if(null==e)throw new Error("ArgumentNullException:page");return this.isEven(e)?null!=this.EvenTop?this.EvenTop:this.top:null!=this.OddTop?this.OddTop:this.top},e.prototype.getRight=function(e){if(null==e)throw new Error("ArgumentNullException:page");return this.isEven(e)?null!=this.EvenRight?this.EvenRight:this.right:null!=this.OddRight?this.OddRight:this.right},e.prototype.getBottom=function(e){if(null==e)throw new Error("ArgumentNullException:page");return this.isEven(e)?null!=this.EvenBottom?this.EvenBottom:this.bottom:null!=this.OddBottom?this.OddBottom:this.bottom},e.prototype.isEven=function(e){var t=e.section.document.pages;return(t.pageCollectionIndex.containsKey(e)?t.pageCollectionIndex.getValue(e)+1:t.indexOf(e)+1)%2==0},e.prototype.checkElement=function(e,t){if(null!=e){if(void 0!==e.type&&e.type!==No.None)throw new Error("NotSupportedException:Can not reassign the template element. Please, create new one.");e.type=t}return e},e}(),qs=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),_s=function(e){function t(){var t=e.call(this)||this;return t.leftValue=t.topValue=t.rightValue=t.bottomValue=t.stampValue=!0,t}return qs(t,e),Object.defineProperty(t.prototype,"applyDocumentLeftTemplate",{get:function(){return this.leftValue},set:function(e){this.leftValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"applyDocumentTopTemplate",{get:function(){return this.topValue},set:function(e){this.topValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"applyDocumentRightTemplate",{get:function(){return this.rightValue},set:function(e){this.rightValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"applyDocumentBottomTemplate",{get:function(){return this.bottomValue},set:function(e){this.bottomValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"applyDocumentStamps",{get:function(){return this.stampValue},set:function(e){this.stampValue=e},enumerable:!0,configurable:!0}),t}(Hs),Js=function(){function e(e,t){this.pageAdded=new Ws,this.pdfPages=[],this.dictionaryProperties=new Yr,this.pdfDocument=e,void 0===t?(this.settings=e.pageSettings.clone(),this.initialSettings=this.settings.clone()):(this.settings=t.clone(),this.initialSettings=this.settings.clone()),this.initialize()}return Object.defineProperty(e.prototype,"parent",{get:function(){return this.sectionCollection},set:function(e){this.sectionCollection=e,this.section.items.setValue(this.dictionaryProperties.parent,new vn(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentDocument",{get:function(){return this.pdfDocument},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSettings",{get:function(){return this.settings},set:function(e){if(null==e)throw Error("Value can not be null.");this.settings=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.section},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this.pagesReferences.count},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"template",{get:function(){return null==this.pageTemplate&&(this.pageTemplate=new _s),this.pageTemplate},set:function(e){this.pageTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"document",{get:function(){return this.sectionCollection.document},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pages",{get:function(){return null!=this.pagesCollection&&void 0!==this.pagesCollection||(this.pagesCollection=new Gs(this)),this.pagesCollection},enumerable:!0,configurable:!0}),e.prototype.getPages=function(){return this.pdfPages},e.prototype.pointToNativePdf=function(e,t){var i=this.getActualBounds(e,!0);return t.x+=i.x,t.y=this.pageSettings.height-t.y,t},e.prototype.setPageSettings=function(e){this.settings=e,this.state.orientation=e.orientation,this.state.rotate=e.rotate,this.state.size=e.size,this.state.origin=e.origin},e.prototype.initialize=function(){this.pagesReferences=new qr,this.section=new Rr,this.state=new Zs(this.pdfDocument),this.section.sectionBeginSave=new Wr(this,this.state),this.pageCount=new Hr(0),this.section.items.setValue(this.dictionaryProperties.count,this.pageCount),this.section.items.setValue(this.dictionaryProperties.type,new Ur(this.dictionaryProperties.pages)),this.section.items.setValue(this.dictionaryProperties.kids,this.pagesReferences)},e.prototype.containsTemplates=function(e,t,i){var r=this.getDocumentTemplates(e,t,i),n=this.getSectionTemplates(t,i);return r.length>0||n.length>0},e.prototype.getDocumentTemplates=function(e,t,i){var r=[];return this.template.applyDocumentTopTemplate&&null!=e.template.getTop(t)&&(!e.template.getTop(t).foreground&&!i||e.template.getTop(t).foreground&&i)&&r.push(e.template.getTop(t)),this.template.applyDocumentBottomTemplate&&null!=e.template.getBottom(t)&&(!e.template.getBottom(t).foreground&&!i||e.template.getBottom(t).foreground&&i)&&r.push(e.template.getBottom(t)),this.template.applyDocumentLeftTemplate&&null!=e.template.getLeft(t)&&(!e.template.getLeft(t).foreground&&!i||e.template.getLeft(t).foreground&&i)&&r.push(e.template.getLeft(t)),this.template.applyDocumentRightTemplate&&null!=e.template.getRight(t)&&(!e.template.getRight(t).foreground&&!i||e.template.getRight(t).foreground&&i)&&r.push(e.template.getRight(t)),r},e.prototype.getSectionTemplates=function(e,t){var i,r=[];null!=this.template.getTop(e)&&((!(i=this.template.getTop(e)).foreground&&!t||i.foreground&&t)&&r.push(i));null!=this.template.getBottom(e)&&((!(i=this.template.getBottom(e)).foreground&&!t||i.foreground&&t)&&r.push(i));null!=this.template.getLeft(e)&&((!(i=this.template.getLeft(e)).foreground&&!t||i.foreground&&t)&&r.push(i));null!=this.template.getRight(e)&&((!(i=this.template.getRight(e)).foreground&&!t||i.foreground&&t)&&r.push(i));return r},e.prototype.add=function(e){if(void 0===e){var t=new Bs;return this.add(t),t}var i=this.checkPresence(e);this.pdfPages.push(e),this.pagesReferences.add(i),e.setSection(this),e.resetProgress(),this.pageAddedMethod(e)},e.prototype.checkPresence=function(e){for(var t=new vn(e),i=!1,r=this.parent,n=0;n<r.section.length;n++){var o=r.section[n];i=i||o.contains(e)}return t},e.prototype.contains=function(e){return 0<=this.indexOf(e)},e.prototype.indexOf=function(e){for(var t=0;t<this.pdfPages.length;t++)if(this.pdfPages[t]===e)return this.pdfPages.indexOf(e);var i=new vn(e);return this.pagesReferences.indexOf(i)},e.prototype.pageAddedMethod=function(e){var t=new Ws(e);this.onPageAdded(t),this.parent.document.pages.onPageAdded(t),this.pageCount.intValue=this.count},e.prototype.onPageAdded=function(e){},e.prototype.getActualBounds=function(e,t,i){if(e instanceof Bs&&"boolean"==typeof t){var r=this.parent.document;return this.getActualBounds(r,e,t)}var n=new Bn(0,0,0,0);n.height=i?this.pageSettings.size.height:this.pageSettings.getActualSize().height,n.width=i?this.pageSettings.size.width:this.pageSettings.getActualSize().width;var o=this.getLeftIndentWidth(e,t,i),s=this.getTopIndentHeight(e,t,i),a=this.getRightIndentWidth(e,t,i),c=this.getBottomIndentHeight(e,t,i);return n.x+=o,n.y+=s,n.width-=o+a,n.height-=s+c,n},e.prototype.getLeftIndentWidth=function(e,t,i){if(null==e)throw new Error("ArgumentNullException:document");if(null==t)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.left:0,n=null!=this.template.getLeft(t)?this.template.getLeft(t).width:0,o=null!=e.template.getLeft(t)?e.template.getLeft(t).width:0;return r+=this.template.applyDocumentLeftTemplate?Math.max(n,o):n},e.prototype.getTopIndentHeight=function(e,t,i){if(null==e)throw new Error("ArgumentNullException:document");if(null==t)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.top:0,n=null!=this.template.getTop(t)?this.template.getTop(t).height:0,o=null!=e.template.getTop(t)?e.template.getTop(t).height:0;return r+=this.template.applyDocumentTopTemplate?Math.max(n,o):n},e.prototype.getRightIndentWidth=function(e,t,i){if(null==e)throw new Error("ArgumentNullException:document");if(null==t)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.right:0,n=null!=this.template.getRight(t)?this.template.getRight(t).width:0,o=null!=e.template.getRight(t)?e.template.getRight(t).width:0;return r+=this.template.applyDocumentRightTemplate?Math.max(n,o):n},e.prototype.getBottomIndentHeight=function(e,t,i){if(null==e)throw new Error("ArgumentNullException:document");if(null==t)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.bottom:0,n=null!=this.template.getBottom(t)?this.template.getBottom(t).height:0,o=null!=e.template.getBottom(t)?e.template.getBottom(t).height:0;return r+=this.template.applyDocumentBottomTemplate?Math.max(n,o):n},e.prototype.remove=function(e){if(null==e)throw Error('ArgumentNullException("page")');var t=this.pdfPages.indexOf(e);this.pagesReferences.removeAt(t);for(var i=[],r=0;r<t;r++)i.push(this.pdfPages[r]);for(r=t+1;r<this.pdfPages.length;r++)i.push(this.pdfPages[r]);this.pdfPages=i},e.prototype.applyPageSettings=function(e,t,i){var r=new Bn(i.origin,i.size);e.items.setValue(this.dictionaryProperties.mediaBox,qr.fromRectangle(r));var n;n=Ks.rotateFactor*i.rotate;var o=new Hr(n);e.items.setValue(this.dictionaryProperties.rotate,o)},e.prototype.beginSave=function(e,t){var i=t.document;this.applyPageSettings(this.section,i.pageSettings,e)},e.prototype.drawTemplates=function(e,t,i,r){var n=this.getDocumentTemplates(i,e,r),o=this.getSectionTemplates(e,r);this.drawTemplatesHelper(t,i,n),this.drawTemplatesHelper(t,i,o)},e.prototype.drawTemplatesHelper=function(e,t,i){if(null!=i&&i.length>0)for(var r=i.length,n=0;n<r;n++){i[n].draw(e,t)}},e}(),Zs=function(){function e(e){this.pageOrientation=e.pageSettings.orientation,this.pageRotate=e.pageSettings.rotate,this.pageSize=e.pageSettings.size,this.pageOrigin=e.pageSettings.origin}return Object.defineProperty(e.prototype,"orientation",{get:function(){return this.pageOrientation},set:function(e){this.pageOrientation=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotate",{get:function(){return this.pageRotate},set:function(e){this.pageRotate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.pageSize},set:function(e){this.pageSize=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"origin",{get:function(){return this.pageOrigin},set:function(e){this.pageOrigin=e},enumerable:!0,configurable:!0}),e}(),Ks=function(){function e(e){this.sections=[],this.dictionaryProperties=new Yr,this.pdfDocument=e.clone(),this.initialize()}return Object.defineProperty(e.prototype,"section",{get:function(){return this.sections},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"document",{get:function(){return this.pdfDocument},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this.sections.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.pages},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){this.sectionCount=new Hr(0),this.sectionCollection=new qr,this.pages=new Rr,this.pages.beginSave=new Vr(this),this.pages.items.setValue(this.dictionaryProperties.type,new Ur("Pages")),this.pages.items.setValue(this.dictionaryProperties.kids,this.sectionCollection),this.pages.items.setValue(this.dictionaryProperties.count,this.sectionCount),this.pages.items.setValue(this.dictionaryProperties.resources,new Rr),this.setPageSettings(this.pages,this.pdfDocument.pageSettings)},e.prototype.pdfSectionCollection=function(e){if(e<0||e>=this.count)throw new Error("IndexOutOfRangeException()");return this.sections[e]},e.prototype.setPageSettings=function(e,t){var i=new Bn(new Vn,t.size);e.items.setValue(this.dictionaryProperties.mediaBox,qr.fromRectangle(i))},e.prototype.add=function(e){if(void 0===e){var t=new Js(this.pdfDocument);return this.add(t),t}var i=this.checkSection(e);return this.sections.push(e),e.parent=this,this.sectionCollection.add(i),this.sections.indexOf(e)},e.prototype.checkSection=function(e){var t=new vn(e);return this.sectionCollection.contains(t),t},e.prototype.countPages=function(){var e=0;return this.sections.forEach(function(t){return e+=t.count}),e},e.prototype.beginSave=function(){this.sectionCount.intValue=this.countPages()},e.rotateFactor=90,e}(),Xs=function(){function e(e){this.pdfPageCollectionIndex=new Pr,this.document=e}return Object.defineProperty(e.prototype,"count",{get:function(){return this.countPages()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageCollectionIndex",{get:function(){return this.pdfPageCollectionIndex},enumerable:!0,configurable:!0}),e.prototype.add=function(e){if(void 0===e){var t=new Bs;return this.add(t),t}this.getLastSection().add(e)},e.prototype.getLastSection=function(){var e=this.document.sections;return 0===e.section.length&&e.add(),e.section[e.section.length-1]},e.prototype.onPageAdded=function(e){},e.prototype.countPages=function(){for(var e=this.document.sections,t=0,i=0;i<e.section.length;i++)t+=e.section[i].count;return t},e.prototype.getPageByIndex=function(e){return this.getPage(e)},e.prototype.getPage=function(e){if(e<0||e>=this.count)throw Error('ArgumentOutOfRangeException("index", "Value can not be less 0")');for(var t=null,i=0,r=0,n=0,o=this.document.sections.count,s=0;s<o;s++){var a=this.document.sections.section[s];if(r=a.count,n=e-i,e>=i&&n<r){t=a.getPages()[n];break}i+=r}return t},e.prototype.indexOf=function(e){var t=-1;if(null==e)throw new Error("ArgumentNullException: page");for(var i=0,r=0,n=this.document.sections.count;r<n;r++){var o=this.document.sections.pdfSectionCollection(r);if((t=o.indexOf(e))>=0){t+=i;break}t=-1,i+=o.count}return t},e.prototype.remove=function(e){if(null==e)throw Error('ArgumentNullException("page")');for(var t=null,i=0,r=this.document.sections.count;i<r;i++)if((t=this.document.sections.pdfSectionCollection(i)).pages.contains(e)){t.pages.remove(e);break}return t},e}(),$s=function(){function e(){this.referenceObjects=[],this.pdfFontCollection=new Pr}return e.prototype.search=function(e){var t=null,i=this.getGroup(e);return null==i?i=this.createNewGroup():i.length>0&&(t=i[0]),i.push(e),t},e.prototype.createNewGroup=function(){var e=[];return this.referenceObjects.push(e),e},e.prototype.getGroup=function(e){var t=null;if(null!==e)for(var i=this.referenceObjects.length,r=0;r<i;r++){if(this.referenceObjects.length>0){var n=this.referenceObjects[r];if(n.length>0){var o=n[0];if(e.equalsTo(o)){t=n;break}}else this.removeGroup(n)}i=this.referenceObjects.length}return t},e.prototype.removeGroup=function(e){if(null!==e){var t=this.referenceObjects.indexOf(e);this.referenceObjects.slice(t,t+1)}},e.prototype.destroy=function(){this.pdfFontCollection=void 0,this.referenceObjects=void 0},e}(),ea=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),ta=function(e){function t(i){var r=e.call(this)||this;r.defaultMargin=40,r.streamWriter=null,r.document=r;var n=!1;void 0===i?(t.cacheCollection=new $s,n=!1):n=i;var o=new no;r.setMainObjectCollection(o);var s=new Io;s.isMerging=n,s.document=r,r.setCrossTable(s);var a=new Do;return r.setCatalog(a),o.add(a),a.position=-1,r.sectionCollection=new Ks(r),r.documentPageCollection=new Xs(r),a.pages=r.sectionCollection,r}return ea(t,e),Object.defineProperty(t,"defaultFont",{get:function(){return null==this.defaultStandardFont&&(this.defaultStandardFont=new na(On.Helvetica,8)),this.defaultStandardFont},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sections",{get:function(){return this.sectionCollection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageSettings",{get:function(){return null==this.settings&&(this.settings=new wo(this.defaultMargin)),this.settings},set:function(e){this.settings=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pages",{get:function(){return this.documentPageCollection},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cache",{get:function(){return void 0===t.cacheCollection||null==t.cacheCollection?new $s:t.cacheCollection},set:function(e){this.cacheCollection=e},enumerable:!0,configurable:!0}),Object.defineProperty(t,"enableCache",{get:function(){return this.isCacheEnabled},set:function(e){this.isCacheEnabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colorSpace",{get:function(){return this.pdfColorSpace===Nn.Rgb||this.pdfColorSpace===Nn.Cmyk||this.pdfColorSpace===Nn.GrayScale?this.pdfColorSpace:Nn.Rgb},set:function(e){e===Nn.Rgb||e===Nn.Cmyk||e===Nn.GrayScale?this.pdfColorSpace=e:this.pdfColorSpace=Nn.Rgb},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"template",{get:function(){return null==this.pageTemplate&&(this.pageTemplate=new Hs),this.pageTemplate},set:function(e){this.pageTemplate=e},enumerable:!0,configurable:!0}),t.prototype.docSave=function(e,t,i){if(this.checkPagesPresence(),null===e)throw new Error("ArgumentNullException : stream");this.streamWriter=e;var r=new io(e);if(r.document=this,"boolean"==typeof t&&void 0===i)return this.crossTable.save(r);this.crossTable.save(r,t)},t.prototype.checkPagesPresence=function(){0===this.pages.count&&this.pages.add()},t.prototype.destroy=function(){this.catalog=void 0,this.colorSpace=void 0,this.currentSavingObj=void 0,this.documentPageCollection=void 0,this.isStreamCopied=void 0,this.pageSettings=void 0,this.pageTemplate=void 0,this.pdfColorSpace=void 0,this.sectionCollection=void 0,t.cache.destroy(),this.crossTable.pdfObjects.destroy(),t.cache=void 0,this.streamWriter.destroy()},t.defaultStandardFont=null,t.isCacheEnabled=!0,t}(so),ia=function(){function e(){}return e.getMetrics=function(e,t,i){var r=null;switch(e){case On.Helvetica:r=this.getHelveticaMetrics(e,t,i);break;case On.Courier:r=this.getCourierMetrics(e,t,i);break;case On.TimesRoman:r=this.getTimesMetrics(e,t,i);break;case On.Symbol:r=this.getSymbolMetrics(e,t,i);break;case On.ZapfDingbats:r=this.getZapfDingbatsMetrics(e,t,i);break;default:r=this.getHelveticaMetrics(On.Helvetica,t,i)}return r.name=e.toString(),r.subScriptSizeFactor=this.subSuperScriptFactor,r.superscriptSizeFactor=this.subSuperScriptFactor,r},e.getHelveticaMetrics=function(e,t,i){var r=new fs;return(t&wn.Bold)>0&&(t&wn.Italic)>0?(r.ascent=this.helveticaBoldItalicAscent,r.descent=this.helveticaBoldItalicDescent,r.postScriptName=this.helveticaBoldItalicName,r.size=i,r.widthTable=new ys(this.arialBoldWidth),r.height=r.ascent-r.descent):(t&wn.Bold)>0?(r.ascent=this.helveticaBoldAscent,r.descent=this.helveticaBoldDescent,r.postScriptName=this.helveticaBoldName,r.size=i,r.widthTable=new ys(this.arialBoldWidth),r.height=r.ascent-r.descent):(t&wn.Italic)>0?(r.ascent=this.helveticaItalicAscent,r.descent=this.helveticaItalicDescent,r.postScriptName=this.helveticaItalicName,r.size=i,r.widthTable=new ys(this.arialWidth),r.height=r.ascent-r.descent):(r.ascent=this.helveticaAscent,r.descent=this.helveticaDescent,r.postScriptName=this.helveticaName,r.size=i,r.widthTable=new ys(this.arialWidth),r.height=r.ascent-r.descent),r},e.getCourierMetrics=function(e,t,i){var r=new fs;return(t&wn.Bold)>0&&(t&wn.Italic)>0?(r.ascent=this.courierBoldItalicAscent,r.descent=this.courierBoldItalicDescent,r.postScriptName=this.courierBoldItalicName,r.size=i,r.widthTable=new ys(this.fixedWidth),r.height=r.ascent-r.descent):(t&wn.Bold)>0?(r.ascent=this.courierBoldAscent,r.descent=this.courierBoldDescent,r.postScriptName=this.courierBoldName,r.size=i,r.widthTable=new ys(this.fixedWidth),r.height=r.ascent-r.descent):(t&wn.Italic)>0?(r.ascent=this.courierItalicAscent,r.descent=this.courierItalicDescent,r.postScriptName=this.courierItalicName,r.size=i,r.widthTable=new ys(this.fixedWidth),r.height=r.ascent-r.descent):(r.ascent=this.courierAscent,r.descent=this.courierDescent,r.postScriptName=this.courierName,r.size=i,r.widthTable=new ys(this.fixedWidth),r.height=r.ascent-r.descent),r},e.getTimesMetrics=function(e,t,i){var r=new fs;return(t&wn.Bold)>0&&(t&wn.Italic)>0?(r.ascent=this.timesBoldItalicAscent,r.descent=this.timesBoldItalicDescent,r.postScriptName=this.timesBoldItalicName,r.size=i,r.widthTable=new ys(this.timesRomanBoldItalicWidths),r.height=r.ascent-r.descent):(t&wn.Bold)>0?(r.ascent=this.timesBoldAscent,r.descent=this.timesBoldDescent,r.postScriptName=this.timesBoldName,r.size=i,r.widthTable=new ys(this.timesRomanBoldWidth),r.height=r.ascent-r.descent):(t&wn.Italic)>0?(r.ascent=this.timesItalicAscent,r.descent=this.timesItalicDescent,r.postScriptName=this.timesItalicName,r.size=i,r.widthTable=new ys(this.timesRomanItalicWidth),r.height=r.ascent-r.descent):(r.ascent=this.timesAscent,r.descent=this.timesDescent,r.postScriptName=this.timesName,r.size=i,r.widthTable=new ys(this.timesRomanWidth),r.height=r.ascent-r.descent),r},e.getSymbolMetrics=function(e,t,i){var r=new fs;return r.ascent=this.symbolAscent,r.descent=this.symbolDescent,r.postScriptName=this.symbolName,r.size=i,r.widthTable=new ys(this.symbolWidth),r.height=r.ascent-r.descent,r},e.getZapfDingbatsMetrics=function(e,t,i){var r=new fs;return r.ascent=this.zapfDingbatsAscent,r.descent=this.zapfDingbatsDescent,r.postScriptName=this.zapfDingbatsName,r.size=i,r.widthTable=new ys(this.zapfDingbatsWidth),r.height=r.ascent-r.descent,r},e.subSuperScriptFactor=1.52,e.helveticaAscent=931,e.helveticaDescent=-225,e.helveticaName="Helvetica",e.helveticaBoldAscent=962,e.helveticaBoldDescent=-228,e.helveticaBoldName="Helvetica-Bold",e.helveticaItalicAscent=931,e.helveticaItalicDescent=-225,e.helveticaItalicName="Helvetica-Oblique",e.helveticaBoldItalicAscent=962,e.helveticaBoldItalicDescent=-228,e.helveticaBoldItalicName="Helvetica-BoldOblique",e.courierAscent=805,e.courierDescent=-250,e.courierName="Courier",e.courierBoldAscent=801,e.courierBoldDescent=-250,e.courierBoldName="Courier-Bold",e.courierItalicAscent=805,e.courierItalicDescent=-250,e.courierItalicName="Courier-Oblique",e.courierBoldItalicAscent=801,e.courierBoldItalicDescent=-250,e.courierBoldItalicName="Courier-BoldOblique",e.timesAscent=898,e.timesDescent=-218,e.timesName="Times-Roman",e.timesBoldAscent=935,e.timesBoldDescent=-218,e.timesBoldName="Times-Bold",e.timesItalicAscent=883,e.timesItalicDescent=-217,e.timesItalicName="Times-Italic",e.timesBoldItalicAscent=921,e.timesBoldItalicDescent=-218,e.timesBoldItalicName="Times-BoldItalic",e.symbolAscent=1010,e.symbolDescent=-293,e.symbolName="Symbol",e.zapfDingbatsAscent=820,e.zapfDingbatsDescent=-143,e.zapfDingbatsName="ZapfDingbats",e.arialWidth=[278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,0,556,0,222,556,333,1e3,556,556,333,1e3,667,333,1e3,0,611,0,0,222,222,333,333,350,556,1e3,333,1e3,500,333,944,0,500,667,0,333,556,556,556,556,260,556,333,737,370,556,584,0,737,333,400,584,333,333,333,556,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,584,611,556,556,556,556,500,556,500],e.arialBoldWidth=[278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,0,556,0,278,556,500,1e3,556,556,333,1e3,667,333,1e3,0,611,0,0,278,278,500,500,350,556,1e3,333,1e3,556,333,944,0,500,667,0,333,556,556,556,556,280,556,333,737,370,556,584,0,737,333,400,584,333,333,333,611,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,584,611,611,611,611,611,556,611,556],e.fixedWidth=[600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600],e.timesRomanWidth=[250,333,408,500,500,833,778,180,333,333,500,564,250,333,250,278,500,500,500,500,500,500,500,500,500,500,278,278,564,564,564,444,921,722,667,667,722,611,556,722,722,333,389,722,611,889,722,722,556,722,667,556,611,722,722,944,722,722,611,333,278,333,469,500,333,444,500,444,500,444,333,500,500,278,278,500,278,778,500,500,500,500,333,389,278,500,500,722,500,500,444,480,200,480,541,0,500,0,333,500,444,1e3,500,500,333,1e3,556,333,889,0,611,0,0,333,333,444,444,350,500,1e3,333,980,389,333,722,0,444,722,0,333,500,500,500,500,200,500,333,760,276,500,564,0,760,333,400,564,300,300,333,500,453,250,333,300,310,500,750,750,750,444,722,722,722,722,722,722,889,667,611,611,611,611,333,333,333,333,722,722,722,722,722,722,722,564,722,722,722,722,722,722,556,500,444,444,444,444,444,444,667,444,444,444,444,444,278,278,278,278,500,500,500,500,500,500,500,564,500,500,500,500,500,500,500,500],e.timesRomanBoldWidth=[250,333,555,500,500,1e3,833,278,333,333,500,570,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,570,570,570,500,930,722,667,722,722,667,611,778,778,389,500,778,667,944,722,778,611,778,722,556,667,722,722,1e3,722,722,667,333,278,333,581,500,333,500,556,444,556,444,333,500,556,278,333,556,278,833,556,500,556,556,444,389,333,556,500,722,500,500,444,394,220,394,520,0,500,0,333,500,500,1e3,500,500,333,1e3,556,333,1e3,0,667,0,0,333,333,500,500,350,500,1e3,333,1e3,389,333,722,0,444,722,0,333,500,500,500,500,220,500,333,747,300,500,570,0,747,333,400,570,300,300,333,556,540,250,333,300,330,500,750,750,750,500,722,722,722,722,722,722,1e3,722,667,667,667,667,389,389,389,389,722,722,778,778,778,778,778,570,778,722,722,722,722,722,611,556,500,500,500,500,500,500,722,444,444,444,444,444,278,278,278,278,500,556,500,500,500,500,500,570,500,556,556,556,556,500,556,500],e.timesRomanItalicWidth=[250,333,420,500,500,833,778,214,333,333,500,675,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,675,675,675,500,920,611,611,667,722,611,611,722,722,333,444,667,556,833,667,722,611,722,611,500,556,722,611,833,611,556,556,389,278,389,422,500,333,500,500,444,500,444,278,500,500,278,278,444,278,722,500,500,500,500,389,389,278,500,444,667,444,444,389,400,275,400,541,0,500,0,333,500,556,889,500,500,333,1e3,500,333,944,0,556,0,0,333,333,556,556,350,500,889,333,980,389,333,667,0,389,556,0,389,500,500,500,500,275,500,333,760,276,500,675,0,760,333,400,675,300,300,333,500,523,250,333,300,310,500,750,750,750,500,611,611,611,611,611,611,889,667,611,611,611,611,333,333,333,333,722,667,722,722,722,722,722,675,722,722,722,722,722,556,611,500,500,500,500,500,500,500,667,444,444,444,444,444,278,278,278,278,500,500,500,500,500,500,500,675,500,500,500,500,500,444,500,444],e.timesRomanBoldItalicWidths=[250,389,555,500,500,833,778,278,333,333,500,570,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,570,570,570,500,832,667,667,667,722,667,667,722,778,389,500,667,611,889,722,722,611,722,667,556,611,722,667,889,667,611,611,333,278,333,570,500,333,500,500,444,500,444,333,500,556,278,278,500,278,778,556,500,500,500,389,389,278,556,444,667,500,444,389,348,220,348,570,0,500,0,333,500,500,1e3,500,500,333,1e3,556,333,944,0,611,0,0,333,333,500,500,350,500,1e3,333,1e3,389,333,722,0,389,611,0,389,500,500,500,500,220,500,333,747,266,500,606,0,747,333,400,570,300,300,333,576,500,250,333,300,300,500,750,750,750,500,667,667,667,667,667,667,944,667,667,667,667,667,389,389,389,389,722,722,722,722,722,722,722,570,722,722,722,722,722,611,611,500,500,500,500,500,500,500,722,444,444,444,444,444,278,278,278,278,500,556,500,500,500,500,500,570,500,556,556,556,556,444,500,444],e.symbolWidth=[250,333,713,500,549,833,778,439,333,333,500,549,250,549,250,278,500,500,500,500,500,500,500,500,500,500,278,278,549,549,549,444,549,722,667,722,612,611,763,603,722,333,631,722,686,889,722,722,768,741,556,592,611,690,439,768,645,795,611,333,863,333,658,500,500,631,549,549,494,439,521,411,603,329,603,549,549,576,521,549,549,521,549,603,439,576,713,686,493,686,494,480,200,480,549,750,620,247,549,167,713,500,753,753,753,753,1042,987,603,987,603,400,549,411,549,549,713,494,460,549,549,549,549,1e3,603,1e3,658,823,686,795,987,768,768,823,768,768,713,713,713,713,713,713,713,768,713,790,790,890,823,549,250,713,603,603,1042,987,603,987,603,494,329,790,790,786,713,384,384,384,384,384,384,494,494,494,494,329,274,686,686,686,384,384,384,384,384,384,494,494,494,-1],e.zapfDingbatsWidth=[278,974,961,974,980,719,789,790,791,690,960,939,549,855,911,933,911,945,974,755,846,762,761,571,677,763,760,759,754,494,552,537,577,692,786,788,788,790,793,794,816,823,789,841,823,833,816,831,923,744,723,749,790,792,695,776,768,792,759,707,708,682,701,826,815,789,789,707,687,696,689,786,787,713,791,785,791,873,761,762,762,759,759,892,892,788,784,438,138,277,415,392,392,668,668,390,390,317,317,276,276,509,509,410,410,234,234,334,334,732,544,544,910,667,760,760,776,595,694,626,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,894,838,1016,458,748,924,748,918,927,928,928,834,873,828,924,924,917,930,931,463,883,836,836,867,867,696,696,874,874,760,946,771,865,771,888,967,888,831,873,927,970,918],e}(),ra=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),na=function(e){function t(i,r,n){var o=e.call(this,r,void 0===n?i instanceof t?i.style:wn.Regular:n)||this;return o.dictionaryProperties=new Yr,o.encodings=["Unknown","StandardEncoding","MacRomanEncoding","MacExpertEncoding","WinAnsiEncoding","PDFDocEncoding","IdentityH"],o.pdfFontFamily=void 0===i?On.Helvetica:i instanceof t?i.fontFamily:i,o.checkStyle(),o.initializeInternals(),o}return ra(t,e),Object.defineProperty(t.prototype,"fontFamily",{get:function(){return this.pdfFontFamily},enumerable:!0,configurable:!0}),t.prototype.checkStyle=function(){if(this.fontFamily===On.Symbol||this.fontFamily===On.ZapfDingbats){var e=this.style;e&=~(wn.Bold|wn.Italic),this.setStyle(e)}},t.prototype.getLineWidth=function(e,i){if(null==e)throw new Error("ArgumentNullException:line");var r=0;this.name;for(var n=0,o=(e=t.convert(e)).length;n<o;n++){var s=e[n];r+=this.getCharWidthInternal(s,i)}var a=this.metrics.getSize(i);return r*=to.charSizeMultiplier*a,r=this.applyFormatSettings(e,i,r)},t.prototype.equalsToFont=function(e){var t=!1,i=e;if(null!=i){var r=this.fontFamily===i.fontFamily,n=~(wn.Underline|wn.Strikeout),o=(this.style&n)===(i.style&n);t=r&&o}return t},t.prototype.initializeInternals=function(){ta.cache.search(this);var e,t=ia.getMetrics(this.pdfFontFamily,this.style,this.size);this.metrics=t,e=this.createInternals(),this.setInternals(e)},t.prototype.createInternals=function(){var e=new Rr;if(e.items.setValue(this.dictionaryProperties.type,new Ur(this.dictionaryProperties.font)),e.items.setValue(this.dictionaryProperties.subtype,new Ur(this.dictionaryProperties.type1)),e.items.setValue(this.dictionaryProperties.baseFont,new Ur(this.metrics.postScriptName)),this.fontFamily!==On.Symbol&&this.fontFamily!==On.ZapfDingbats){var t=this.encodings[Cn.WinAnsiEncoding];e.items.setValue(this.dictionaryProperties.encoding,new Ur(t))}return e},t.prototype.getCharWidthInternal=function(e,i){var r=0;return r=e.charCodeAt(0),"0"!==this.name&&"1"!==this.name&&"2"!==this.name&&"3"!==this.name&&"4"!==this.name||(r-=t.charOffset),r=r>=0&&128!==r?r:0,this.metrics.widthTable.items(r)},t.convert=function(e){return e},t.charOffset=32,t}(to);let oa=[{prefixIcon:"e-close",tooltipText:"Close",text:"Close",id:"closeDocument"},{prefixIcon:"e-export",tooltipText:"export",text:"export",id:"exportDocument"},{prefixIcon:"e-save",tooltipText:"Save",text:"Save",id:"saveDocument"},"Separator","Undo","Redo","Separator","Image","Table","Hyperlink","Bookmark","TableOfContents","Separator","Header","Footer","PageSetup","PageNumber","Break","InsertFootnote","InsertEndnote","Separator","Find","Separator","Comments","TrackChanges","LocalClipboard","Separator","FormFields","UpdateFields"];te.Inject(ie,re,ne,oe,se,ae,ce,he,ue,le,pe,de,ge,fe,Me,ye,me,Ne,je,De,Ie,Se,be,ze,ve,we,Oe),Te.Inject(Oe,ue);const sa=({documentId:e,documentAPI:r,documentName:n,content:s,replaceToken:c,fileName:h,restrictEditing:u,onClose:l,saved:p})=>{let d;const[g,f]=t({documentAPI:"",documentId:"",readOnly:!1,documentName:""}),[M,y]=t(),[m,N]=t(!1),[j,D]=t(!0);i(()=>{I(),N(u)},[]);const I=()=>{f({documentId:e,documentAPI:r,documentName:n,readOnly:!1})};i(()=>{s&&d?(y(s),S(s)):""!=g.documentAPI&&""!=g.documentId&&(D(!0),b(g.documentId))},[g.documentId,s]),i(()=>{if(k.validString(c)&&d){let e=M;for(let t=0;t<c.length;t++){let i=c[t];e=e?.replace(i.key,i.value),d?.open(e)}}},[c,M]);const S=e=>{d?.open(e),setTimeout(()=>{v()},1e3)},b=e=>{let t=new XMLHttpRequest,i={keyXc:e},r=g.documentAPI+"api/DocumentEditor/LoadDocument";t.open("POST",r,!0),t.setRequestHeader("Content-Type","application/json;charset=UTF-8"),t.setRequestHeader("Access-Control-Allow-Origin","http://localhost:5002"),t.onreadystatechange=()=>{if(4===t.readyState&&(200===t.status||304===t.status)){d.open(t.responseText);let e=d.serialize();y(e),setTimeout(()=>{d.enableTrackChanges||(d.enableTrackChanges=!0)},1e3)}},t.send(JSON.stringify(i))},z=e=>{"closeDoc"==e&&(D(!1),l?.(j),f({documentId:"",documentAPI:r,documentName:n,readOnly:!1}));const t=JSON.stringify({message:e,date:Date.now()});window.parent.postMessage(t,"*")},v=()=>{m||O()},w=()=>{let e=new ta,t=d?.pageCount;d.documentEditorSettings.printDevicePixelRatio=2;let i=0;for(let r=1;r<=t;r++)setTimeout(()=>{let n=d.exportAsImage(r,"image/jpeg");n.onload=function(){let r=parseInt(n.style.height.toString().replace("px","")),o=parseInt(n.style.width.toString().replace("px","")),s=e.sections.add(),a=new wo(0);o>r&&(a.orientation=go.Landscape),a.size=new Fn(o,r),s.setPageSettings(a);let c=s.pages.add().graphics,u=n.src.replace("data:image/jpeg;base64,",""),l=new _o(u);c.drawImage(l,0,0,o,r),i++,i==t&&e.save((h||"sample")+".pdf")}},500)},O=()=>{let e=d.serialize(),t={keyXc:g.documentId,Content:e};var i=new XMLHttpRequest;i.open("POST",r+"api/DocumentEditor/Save",!0),i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.send(JSON.stringify(t)),p?.(!0)};return o(a,{children:""!=g.documentAPI&&j&&o(a,{children:o("div",{children:o(Te,{height:"100vh",enableToolbar:!0,serviceUrl:r+"/",enableTrackChanges:!0,ref:e=>{e&&e.documentEditor&&(d=e.documentEditor)},toolbarItems:oa,toolbarClick:(e=>{switch(e.item.id){case"exportDocument":w();break;case"saveDocument":v();break;case"closeDocument":z("closeDoc");break;case"expand":z("expand")}}).bind(void 0),documentEditorSettings:{optimizeSfdt:!1},restrictEditing:m})})})})},aa=({isOpen:e,setIsOpen:t,onButtonClick:r,children:n,customButtons:a,title:c,confirmBtn:h="Yes",deletBtn:u="No",showConfirmBtn:l=!0,showDeleteBtn:p=!0})=>{const d=e=>{r&&r(e),t&&t(!1)},g=e=>{e.target.closest(".bb-modal-container")||t&&t(!1)};i(()=>(e?document.addEventListener("mousedown",g):document.removeEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}),[e,t]);const f=({children:e,onClick:t,className:i})=>o("button",{onClick:t,className:i,children:e});return e&&o("div",{className:"bb-modal-container",children:s("div",{className:"bb-modal-content",children:[o("p",{className:"bb-modal-title",children:c}),o("div",{className:"bb-modal-children",children:n}),s("div",{className:"bb-modal-buttons",children:[l&&o(f,{onClick:()=>d("Action_1"),className:"bb-modal-buttons-action1",children:h}),p&&o(f,{onClick:()=>d("Action_2"),className:"bb-modal-buttons-action2",children:u}),a]})]})})};let ca=function(e){return e[e["Custom Values"]=1]="Custom Values",e[e["Master Source"]=2]="Master Source",e}({});class ha{rowIndex=0;fileName="";documentId=""}class ua{formId=U.getEmptyGUID();formName="";formCode="";isCaptchaRequired=!1;isOtpVerificarionRequired=!1;isOtpVerified=!1;sectionList=[];sectionDetailList=[];constructor(e){Object.assign(this,e)}}class la{captchaNumber1=0;captchaNumber2=0;captchaSum="";dropdownSource=[];startUpload=0;selectedFile=[];fileCount=0;currentIndex=0;disableUploadButton=!1;imgUploadIndex=0;selectedOption=[];saveDisabled=!1;dropdownReady=!1;showOtpPopup=!1;otpLength=6;otp="";validateOtpPopup=!1;resendOtpButton=!1;disableButtonVerify=!1;remainingTime=0;intervalId=0;setTimerBlock=!1}class pa{otp="";sendOtp=!1;otpLength="";remainingTime=0;setTimerBlock=!1;intervalId=null;resendOtpButton=!1;disableButtonVerify=!1}let da=function(e){return e.TextBox="E6AB81C8-15ED-41A8-BB8D-4CB33CA64898",e.TextArea="DAC3F02A-86C3-485F-BEDE-59C84BB72CAE",e.Dropdown="2BB5CD42-B8BE-4619-A4D0-0B3E99B816CE",e.DropdownMS="34ACC15F-26A6-4920-93C5-2011C9C470BC",e.Datepicker="65E481FB-777A-4686-9E40-D7F47B4DF246",e.CheckBox="D2A6466A-0894-42F7-B24A-C599E5ACE186",e.RadioButton="0E70C6CE-BB48-4958-BAF6-8570D4A07F6F",e.FileUpload="8144DDA7-39B5-435C-ACCA-192618EE000A",e.Aadhar="6F6586D4-F68D-4F12-A454-5E7D2536D993",e.PAN="B2A2B239-851A-4B72-A9EB-1F9622B74D4D",e.MobileNumber="516055D2-2B6F-435C-BD0D-414E41C3F194",e.AccountNumber="41A91692-2843-4AD6-8F53-9C765DF5E142",e.Numeric="083F8AE6-7ECF-4F16-B48C-849AA6638BA5",e.Currency="847C5712-BB9D-4EC9-88BE-2803ECD3A58C",e.Email="42DF0CAE-654F-4CE7-A290-2AA13386E921",e}({});class ga{constructor(){this.yek="",this.xmlYek="",this.api="",this.description=""}}class fa{static apiCollection=[{yek:"FormResponseGet",xmlYek:"FormResponseGet",api:"",description:""},{yek:"FormResponseInsertUpdate",xmlYek:"FormResponseInsertUpdate",api:"",description:""},{yek:"FormOtpVerification",xmlYek:"FormOtpVerification",api:"gbs360/g8lb3e55724c/form/internal/generateemailotp",description:""}];constructor(){}static getMapping(e){let t=this.apiCollection.find(t=>t.yek===e);return t||new ga}}class Ma{static apiModuleUrl="gbs360/e3cb3e55724c/generic/internal/request";constructor(){}static callGenericRequest(e,t={},i=!0,r=""){let n=Q.getConfigValue("coreAPI"),o=fa.getMapping(e);return Y.callGenericRequest(n+(k.validString(o?.api)?o?.api:this.apiModuleUrl),String(o?.xmlYek),t,i,r).then(e=>t.validateToken?e&&e.data?e:void 0:e)}}const ya=(e,t)=>{P.broadcast({key:"bb_toast",type:e,content:t,position:{X:"550",Y:"100"}})};function ma(e){const n=r([]),[c,h]=t(()=>new pa);i(()=>{e.showOtpPopup&&u()},[e.showOtpPopup]);const u=()=>{h(e=>({...e,otp:""}));let t={mode:1,email:e.field.encryptedFieldValue,browserToken:e.browserToken,userId:e.userId};Ma.callGenericRequest("FormOtpVerification",t).then(t=>{if(1==t.success){let e=null!=t.data.result1[0]?.otpExpiry?60*t.data.result1[0]?.otpExpiry:60,i=t.data.result1[0]?.otpLength??6;ya("success","An OTP has been sent to your Email ID"),0!=e?(h(t=>({...t,sendOtp:!0,resendOtpButton:!1,disableButtonVerify:!1,otpLength:i,remainingTime:e})),p(e)):h(e=>({...e,sendOtp:!0,resendOtpButton:!0,disableButtonVerify:!1,otpLength:i}))}else ya("alert",t?.message?t?.message:"OTP generation failed"),e.onClose(),h(e=>({...e,sendOtp:!1}))})},l=()=>{if(""===c.otp)ya("danger","Please enter the OTP");else{let t={mode:2,email:e.field.encryptedFieldValue,otp:c.otp,browserToken:e.browserToken,userId:e.userId};Ma.callGenericRequest("FormOtpVerification",t).then(t=>{var i;!0===t?.success?(ya(0==(t?.data?.result1?.[0].errorStatus??2)?"success":"alert",(t?.data?.result1?.[0].errorStatus??2)<2?t?.data?.result1?.[0]?.outputMessage:"Error While Processing"),0==(t?.data?.result1?.[0].errorStatus??2)&&(i={...e.field,isEmailVerified:!0},e.onChange({...e.field,...i}),d(),g(),h(e=>({...e,otp:"",sendOtp:!1})))):(ya("danger",t.message),g())})}},p=e=>{h(t=>({...t,setTimerBlock:!0,remainingTime:e,resendOtpButton:!1,disableButtonVerify:!1})),c.intervalId&&clearInterval(c.intervalId);const t=setInterval(()=>{h(e=>{const t=e.remainingTime-1;return t<=0?(clearInterval(e.intervalId),{...e,remainingTime:0,setTimerBlock:!1,resendOtpButton:!0,disableButtonVerify:!0}):{...e,remainingTime:t}})},1e3);h(e=>({...e,intervalId:t}))},d=()=>{clearInterval(c.intervalId),h(e=>({...e,setTimerBlock:!1,showOtpPopup:!1,resendOtpButton:!1,disableButtonVerify:!1}))},g=()=>{d(),h(e=>({...e,otp:""})),e.onClose()},f=e=>{e.preventDefault();const t=e.clipboardData.getData("text").replace(/\D/g,"");if(!t)return;const i=Number(c.otpLength),r=t.slice(0,i).split("");h(e=>({...e,otp:r.join("").padEnd(i,"")}));const o=Math.min(r.length,i-1);n.current[o]?.focus()},M=o("div",{className:"otp-wrapper",children:s("div",{className:"row text-center",children:[o("div",{className:"col-lg-12",children:s("div",{className:"np-outer",children:[o("label",{className:"form-label text-center",children:"Enter the OTP"}),o("div",{className:"otp-inputs",children:Array.from({length:Number(c.otpLength)}).map((e,t)=>o("input",{type:"text",className:"otpBox",maxLength:1,value:c.otp[t]||"",onChange:e=>((e,t)=>{const i=e.target.value.replace(/\D/,""),r=c.otp.split("");r[t]=i,h(e=>({...e,otp:r.join("")})),i&&t<Number(c.otpLength)-1&&n.current[t+1]?.focus()})(e,t),onKeyDown:e=>((e,t)=>{"Backspace"===e.key&&!c.otp[t]&&t>0&&n.current[t-1]?.focus()})(e,t),onPaste:f,ref:e=>n.current[t]=e},t))})]})}),s("div",{className:"col-md-12 mb-3",children:[c.setTimerBlock&&s("div",{className:"otp-remaining mb-0",children:[o("i",{className:"bi bi-stopwatch pe-2"}),Math.floor(c.remainingTime/60),":",c.remainingTime%60<10?"0":"",c.remainingTime%60]}),c.resendOtpButton&&s("span",{className:"form-label mb-2",children:["Don't receive the code",o("a",{className:"otp-remaining resend",onClick:()=>u(),children:"Resend"})]})]}),o("div",{className:"col-md-12 mt-2 otp-outer",children:o(Le,{className:"btn-primary",onClick:()=>l(),iconClass:"bi bi-check2-circle",value:"Verify",disabled:c.disableButtonVerify})})]})});return o(a,{children:o("div",{className:"popup-overlay OTP-Verification",children:o(Dr,{className:"popup-content",show:c.sendOtp,title:"OTP Verification",closeBtn:!0,onClose:g,children:M})})})}function Na(e){const[r,n]=t(new la);i(()=>{const t=e.field;if(!t)return;n(e=>({...e,dropdownReady:!1,dropdownSource:[]}));const i=t.fieldTypeId?.toUpperCase();if(i==da.Dropdown||i==da.DropdownMS){(async()=>{if(t.dropdownSourceId===ca["Custom Values"]){const e=(t.options??"").split("|").filter(Boolean).map(e=>({id:e,name:e}));n(t=>({...t,dropdownSource:e,dropdownReady:!0}))}if(t.dropdownSourceId===ca["Master Source"])try{const e=await Ma.callGenericRequest("FormResponseGet",{mode:3,masterSourceId:t.masterSourceId});n(t=>({...t,dropdownSource:e?.data?.result1??[],dropdownReady:!0}))}catch(e){console.error(e)}})()}else i==da.FileUpload&&n(e=>({...e,selectedFile:c(t.selectedFile??"")}))},[e.field]);const c=e=>e.split("|").filter(Boolean).map((e,t)=>{const[i,r]=e.split("*"),n=new ha;return n.documentId=i,n.fileName=r,n.rowIndex=t,n}),h=t=>{e.onChange({...e.field,...t})},u=t=>{const i=(t??"").trim();if(!i)return!0;if(!e.field.validationExpression)return!0;return!!new RegExp(e.field.validationExpression).test(i)||(ya("alert",`Please enter valid ${e.field.fieldName}`),!1)},l=(t,i,r=!1)=>{const n=e.field,c=(l=n.fieldTypeId,l?.toUpperCase()===da.Numeric||l?.toUpperCase()===da.AccountNumber||l?.toUpperCase()===da.MobileNumber||l?.toUpperCase()===da.Aadhar);var l;return s("div",{className:"col-md-3",children:[o(ke,{label:`${n.fieldOrder}. ${n.fieldName}`,placeholder:n.placeholder,className:"form-control mb-0",required:n.isMandatory,maxLength:i,minLength:t,value:n.isDataEncrypted?n.encryptedFieldValue:n.fieldValue,onChange:t=>{let i=t.target.value;c&&(i=i.replace(/\D/g,"")),e.field.isDataEncrypted?h({encryptedFieldValue:i,isEmailVerified:!1}):h({fieldValue:i})},onBlur:r?e=>u(e.target.value):void 0,disabled:!e.isEditable},`${e.field.formResponseDetailId}_${n.fieldName}`),e.isDefault&&e.isOtpVerificarionRequired&&e.field.fieldTypeId.toLocaleUpperCase()===da.Email&&(e.isEditable||!k.isValidGUID(e.formResponseId))&&s(a,{children:[!e.field.isEmailVerified&&o(Le,{className:"btn-verify-email",iconClass:"bi bi-tick",disabled:!e.isEditable,onClick:p,value:"Verify Your Email"}),e.field.isEmailVerified&&o("p",{children:"Email Verified"})]})]})},p=()=>{if(k.validString(e.browserToken)||k.isValidGUID(e.userId)){const t=e.field.encryptedFieldValue;(t??"").trim()&&u(t)&&n(e=>({...e,showOtpPopup:!0}))}else ya("alert","User ID or Browser Token is required")};return s(a,{children:[e.field.fieldTypeId?.toUpperCase()===da.TextBox&&o("div",{className:"col-md-3",children:o(ke,{label:e.field.fieldOrder+". "+e.field.fieldName,placeholder:e.field.placeholder,className:"form-control mb-0",required:e.field.isMandatory,value:e.field.isDataEncrypted?e.field.encryptedFieldValue:e.field.fieldValue,onChange:t=>e.field.isDataEncrypted?h({encryptedFieldValue:t.target.value}):h({fieldValue:t.target.value}),disabled:!e.isEditable},`${e.field.formResponseDetailId}_${e.field.fieldName}`)}),e.field.fieldTypeId?.toUpperCase()===da.TextArea&&o("div",{className:"col-md-3",children:o(Or,{label:e.field.fieldOrder+". "+e.field.fieldName,placeholder:e.field.placeholder,className:"form-control mb-0",required:e.field.isMandatory,value:e.field.isDataEncrypted?e.field.encryptedFieldValue:e.field.fieldValue,onChange:t=>e.field.isDataEncrypted?h({encryptedFieldValue:t.target.value}):h({fieldValue:t.target.value}),disabled:!e.isEditable},`${e.field.formResponseDetailId}_${e.field.fieldName}`)}),e.field.fieldTypeId?.toUpperCase()===da.Dropdown&&o("div",{className:"col-md-3",children:r.dropdownReady&&o(wr,{dataSource:r.dropdownSource,label:e.field.fieldOrder+". "+e.field.fieldName,placeholder:e.field.placeholder,required:e.field.isMandatory,value:e.field.fieldValue||"",allowFiltering:!0,fields:{text:"name",value:"id"},onChange:e=>{h({fieldValue:e.value})},disabled:!e.isEditable},`${e.field.formResponseDetailId}_${e.field.fieldName}`)}),e.field.fieldTypeId?.toUpperCase()===da.DropdownMS&&o("div",{className:"col-md-3",children:r.dropdownReady&&o(xe,{dataSource:r.dropdownSource,label:e.field.fieldOrder+". "+e.field.fieldName,placeholder:e.field.placeholder,required:e.field.isMandatory,allowFiltering:!0,showSelectAll:!0,mode:"CheckBox",fields:{text:"name",value:"id"},value:(e.field.fieldValue??"").split("|").filter(Boolean),onChange:e=>{const t=Array.isArray(e.value)?e.value:[];h({fieldValue:t.join("|")})},disabled:!e.isEditable},`${e.field.formResponseDetailId}_${e.field.fieldName}`)}),e.field.fieldTypeId?.toUpperCase()===da.FileUpload&&s("div",{className:"col-md-6",children:[s("label",{className:"form-label",children:[e.field.fieldOrder+". "+e.field.fieldName,e.field.isMandatory&&o("span",{style:{color:"red"},children:" *"})]},`${e.field.formResponseDetailId}_${e.field.fieldName}_label`),o(Sr,{allowMultipleSelection:e.field.isMultipleFileUpload,fileCount:e.field.isMultipleFileUpload?0:1,inputFileSize:1024*(e.field.maximumFileSize??0),documentAPI:Q.getConfigValue("coreAPI"),startUpload:r.startUpload,onUploadCompleted:e=>(e=>{if(0===e.length)return;const t=e.map(e=>e.documentId).filter(Boolean).join("|");h({fieldValue:t}),n(t=>({...t,startUpload:0,disableUploadButton:!1,documentsUploaded:e}))})(e),onFilesChange:e=>n(t=>({...t,selectedFile:e})),fileTypes:(e.field.fileType??"").split(","),batchId:r.selectedOption||[],documentTypeId:e.field.documentTypeId,files:r.selectedFile??[],index:r.imgUploadIndex,disabled:!e.isEditable,listView:"list",onClearFiles:e=>{n(t=>({...t,clearUploaderFiles:e}))}},`${e.field.formResponseDetailId}_${e.field.fieldName}`),(e.isEditable||!e.isEditable&&!k.isValidGUID(e.formResponseId))&&s(a,{children:[o(Le,{className:"btn btn-upload ms-3",iconClass:"bi bi-upload me-2",onClick:()=>{r.selectedFile.length>0&&n(e=>({...e,startUpload:1,disableUploadButton:!0}))},disabled:!e.isEditable||r.disableUploadButton,value:"Upload"},`${e.field.formResponseDetailId}_${e.field.fieldName}_Upload`),s("label",{className:"form-label max-label",children:["Max Size - ",e.field.maximumFileSize,"MB, Formats -"," ",e.field.fileType]},`${e.field.formResponseDetailId}_${e.field.fieldName}_maxSize`)]})]}),e.field.fieldTypeId?.toUpperCase()===da.RadioButton&&s("div",{className:"col-md-3",children:[s("label",{className:"form-label",children:[e.field.fieldOrder+". "+e.field.fieldName,e.field.isMandatory&&o("span",{style:{color:"red"},children:" *"})]},`${e.field.formResponseDetailId}_${e.field.fieldName}_label`),(e.field.options??"").split("|").map((t,i)=>s("div",{className:"custom-radio-wrapper",children:[o(ke,{type:"radio",className:"custom-radio-input me-2",checked:e.field.fieldValue===t,value:t,name:`radio_${e.field.formSectionDetailId}`,onChange:e=>h({fieldValue:e.target.value}),disabled:!e.isEditable},`${e.field.formResponseDetailId}_${e.field.fieldName}_${t}`),o("label",{className:"custom-radio-label",children:t})]},i))]}),e.field.fieldTypeId?.toUpperCase()===da.CheckBox&&s("div",{className:"col-md-3",children:[s("label",{className:"form-label",children:[e.field.fieldOrder+". "+e.field.fieldName,e.field.isMandatory&&o("span",{style:{color:"red"},children:" *"})]},`${e.field.formResponseDetailId}_${e.field.fieldName}_label`),(e.field.options??"").split("|").map((t,i)=>{const r=i+1;return s("div",{className:"custom-radio-wrapper",children:[o(Ae,{className:"remarks-checkbox custom-checkbox-input me-1",value:String(r),checked:(e.field.fieldValue??"").split("|").includes(String(r)),onChange:t=>((t,i)=>{let r=(e.field.fieldValue??"").split("|");if(t.target.checked)r.push(i);else{if(1===r.length&&r[0]===i)return;r=r.filter(e=>e!==i)}h({fieldValue:r.join("|")})})(t,String(r)),disabled:!e.isEditable},`${e.field.formResponseDetailId}_${e.field.fieldName}_${r}`),o("label",{className:"custom-radio form-check-label",children:t})]},r)})]}),e.field.fieldTypeId?.toUpperCase()===da.Datepicker&&o("div",{className:"col-md-3",children:o(Ce,{label:e.field.fieldOrder+". "+e.field.fieldName,placeholder:e.field.placeholder,format:"dd-MM-yyyy",required:e.field.isMandatory,value:e.field.fieldValue,allowEdit:!1,disabled:!e.isEditable,onChange:e=>h({fieldValue:e.target.value})},`${e.field.formResponseDetailId}_${e.field.fieldName}`)}),e.field.fieldTypeId?.toUpperCase()===da.PAN&&l(10,10,!0),e.field.fieldTypeId?.toUpperCase()===da.Currency&&l(1,15,!0),e.field.fieldTypeId?.toUpperCase()===da.Email&&l(1,200,!0),e.field.fieldTypeId?.toUpperCase()===da.MobileNumber&&l(1,15,!0),e.field.fieldTypeId?.toUpperCase()===da.Aadhar&&l(12,12,!0),e.field.fieldTypeId?.toUpperCase()===da.Numeric&&l(1,15,!0),e.field.fieldTypeId?.toUpperCase()===da.AccountNumber&&l(8,20,!0),r.showOtpPopup&&o(ma,{field:e.field,userId:e.userId,browserToken:e.browserToken,disabled:e.isDefault||!e.isEditable,isEmailVerified:e.isEmailVerified,showOtpPopup:r.showOtpPopup,onChange:e.onChange,onClose:()=>n(e=>({...e,showOtpPopup:!1}))},`${e.field.formResponseDetailId}_${e.field.fieldName}_otpVerification`)]})}function ja(e){const t=e.sectionDetail.reduce((e,t)=>{const i=t.repeatableSectionOrder??0;return e[i]||(e[i]=[]),e[i].push(t),e},{}),i=Object.keys(t).map(Number).length>1;return s("div",{className:"custom-box p-3 mb-4",children:[o("div",{className:"section-heading",children:o("h3",{className:"section-title",children:e.section.sectionName})}),o("div",{className:"field-sec",children:Object.entries(t).sort(([e],[t])=>Number(e)-Number(t)).map(([t,r])=>s("div",{className:"repeatable-section-group mb-3 border rounded p-3",children:[s("div",{className:"d-flex justify-content-between align-items-center mb-2",children:[e.section.isRepeatable&&i&&+t>1&&s("h6",{className:"mb-0",children:[e.section.sectionName," (",+t-1,")"]}),e.isEditable&&Number(t)>1&&o(Le,{iconClass:"bi bi-trash",value:"Remove",disabled:!e.isEditable,onClick:()=>e.onRemoveSection(e.section.formSectionId,Number(t))},`${e.section.formSectionId}`)]}),o("div",{className:"field-card",children:o("div",{className:"row g-3",children:r.map((t,i)=>o(Na,{formResponseId:e.formResponseId,isOtpVerificarionRequired:e.isOtpVerificarionRequired,field:t,isEditable:e.isEditable,isDefault:t.isDefault,isEmailVerified:t.isEmailVerified,userId:e.userId,browserToken:e.browserToken,onChange:e.onFieldChange},`${t.formSectionDetailId}-${t.repeatableSectionOrder}-${i}`))})})]},t))}),e.section.isRepeatable&&(e.isEditable||!k.isValidGUID(e.formResponseId))&&o(Le,{className:"btn-fm-add",iconClass:"bi bi-plus-lg",value:"Add More",onClick:()=>e.onAddSection(e.section.formSectionId),disabled:!e.isEditable},`${e.section.formSectionId}`)]})}function Da(e){const t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],i=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]];let r=0;const n=e.split("").map(Number).reverse();for(let e=0;e<n.length;e++)r=t[r][i[e%8][n[e]]];return 0===r}const Ia=({formId:e="",formResponseId:r="",viewMode:n=!1,saveButtonLabel:a="Save",userId:c="",browserToken:h="",onSubmitCompleted:u})=>{const[l,p]=t(new ua),[d,g]=t(new la);i(()=>{f()},[e,r]);const f=async()=>{let t={};t=void 0!==r&&""!==r?{mode:2,formId:e,formResponseId:r}:{mode:1,formId:e},await Ma.callGenericRequest("FormResponseGet",t,!0,"encryptedFieldValue").then(e=>{const t=e.data.result1?.[0]??{};p(i=>({...i,...t,sectionList:e?.data?.result2??[],sectionDetailList:e?.data?.result3??[]})),t.isCaptchaRequired&&M()})},M=()=>{let e,t;do{e=Math.floor(10*Math.random())}while(0===e);do{t=Math.floor(10*Math.random())}while(0===t);g(i=>({...i,captchaNumber1:e,captchaNumber2:t}))},y=l.sectionList.map(e=>({...e,sectionDetail:l.sectionDetailList.filter(t=>t.formSectionId===e.formSectionId).sort((e,t)=>e.fieldOrder-t.fieldOrder)})),m=e=>{p(t=>{const i=[...t.sectionDetailList],r=i.filter(t=>t.formSectionId===e),n=Math.max(...r.map(e=>e.repeatableSectionOrder??0),0),o=r.filter(e=>1===e.repeatableSectionOrder).sort((e,t)=>e.fieldOrder-t.fieldOrder);if(0===o.length)return t;const s=o.map(e=>({...e,formResponseDetailId:k.getGUID(),fieldValue:"",encryptedFieldValue:"",repeatableSectionOrder:n+1}));return{...t,sectionDetailList:[...i,...s]}})},N=(e,t)=>{p(i=>{const r=i.sectionDetailList.filter(i=>!(i.formSectionId===e&&i.repeatableSectionOrder===t)),n=r.filter(t=>t.formSectionId===e),o=Array.from(new Set(n.map(e=>e.repeatableSectionOrder))).sort((e,t)=>e-t),s=new Map;o.forEach((e,t)=>{s.set(e,t+1)});const a=r.map(t=>t.formSectionId!==e?t:{...t,repeatableSectionOrder:s.get(t.repeatableSectionOrder)});return{...i,sectionDetailList:a}})},j=e=>{p(t=>({...t,sectionDetailList:t.sectionDetailList.map(t=>t.formSectionDetailId===e.formSectionDetailId&&t.repeatableSectionOrder===e.repeatableSectionOrder?e:t)}))};return s("div",{className:"form-builder",children:[y.map((e,t)=>o(ja,{formResponseId:r,isOtpVerificarionRequired:l.isOtpVerificarionRequired,section:e,sectionDetail:l.sectionDetailList.filter(t=>t.formSectionId===e.formSectionId),isEditable:!n,userId:c,browserToken:h,onAddSection:m,onRemoveSection:N,onFieldChange:j},`${e.formSectionId}_${t}`)),!(n&&k.isValidGUID(r))&&l.isCaptchaRequired&&o("div",{className:"row g-3",children:o("div",{className:"col-md-3 ms-4",children:s("div",{className:"col-md-10 mb-4",children:[o("label",{className:"form-label mb-1 count-cap",children:"Enter the sum below"}),s("div",{className:"row align-items-center",children:[o("div",{className:"col-md-3 col-3 cout-box",children:o(ke,{type:"text",value:d.captchaNumber1,className:"form-control",disabled:!0})}),o("div",{className:"col-md-1 col-1 operator-box p-0",children:o("span",{className:"operator-s",children:o("p",{children:"+"})})}),o("div",{className:"col-md-3 col-3 cout-box",children:o(ke,{type:"text",value:d.captchaNumber2,className:"form-control",disabled:!0})}),o("div",{className:"col-md-1 col-1 operator-box p-0",children:o("span",{className:"operator-s",children:o("p",{children:"="})})}),o("div",{className:"col-md-3 col-3 total-box",children:o(ke,{type:"text",className:"form-control text-center",value:d.captchaSum,onChange:e=>g(t=>({...t,captchaSum:e.target.value})),disabled:d.saveDisabled||n})})]})]})})}),!(n&&k.isValidGUID(r))&&o(Le,{className:"btn btn-save ms-3",value:a,onClick:()=>{if(!(()=>{for(const e of l.sectionDetailList){const t=e.isDataEncrypted?(e.encryptedFieldValue??"").toString().trim():(e.fieldValue??"").toString().trim();if(e.isMandatory&&!t)return ya("alert",`${e.fieldName} is required`),!1;if(t){if(e.validationExpression)try{if(!new RegExp(e.validationExpression).test(t))return ya("alert",`Please enter valid ${e.fieldName}`),!1}catch{return ya("alert",`Invalid validation rule for ${e.fieldName}`),!1}if(e.fieldTypeId?.toUpperCase()===da.Email&&e.isDefault&&!e.isEmailVerified)return ya("alert","Please Verify Your Email"),!1;if(e.fieldTypeId?.toUpperCase()===da.Aadhar){const e=t.replace(/\s/g,"");if(!/^\d{12}$/.test(e)||!Da(e))return ya("alert","Please enter a valid Aadhar"),!1}if(l.isCaptchaRequired){const e=d.captchaNumber1+d.captchaNumber2;if(!k.validString(d.captchaSum))return ya("alert","Please enter the CAPTCHA"),!1;if(parseInt(d.captchaSum)!=e)return ya("alert","CAPTCHA sum is incorrect"),!1}}}return!0})())return;let e={mode:k.isValidGUID(r)?2:1,formResponseId:r,...l};Ma.callGenericRequest("FormResponseInsertUpdate",e,!0,"encryptedFieldValue").then(e=>{if(e?.success){const t={success:!0,errorStatus:e?.data?.result1?.[0].errorStatus,outputType:0==(e?.data?.result1?.[0].errorStatus??2)?"success":"alert",formResponseId:0==(e?.data?.result1?.[0].errorStatus??2)?e?.data?.result1?.[0]?.formResponseId:"",outputMessage:(e?.data?.result1?.[0].errorStatus??2)<2?e?.data?.result1?.[0]?.outputMessage:"Error While Processing"};u?.(t),g(e=>({...e,saveDisabled:!1}))}else{const e={success:!1,errorStatus:3,outputType:"alert",formResponseId:"",outputMessage:"Error While Processing"};u?.(e),g(e=>({...e,saveDisabled:!1}))}})},disabled:d.saveDisabled||n})]})};class Sa extends e.Component{constructor(e){super(e)}render(){return o(a,{})}componentDidMount(){}handleChange(e,t,i=-1,r=""){var n,o=Object.keys(t)[0],s=t[o];n=(i=Number(i))>-1&&r?s[r][i]:i>-1?s[i]:s,e&&e.target?"checkbox"===e.target.type?n[e.target.name]=e.target.checked:e.target.element&&e.target.element.classList&&e.target.element.classList.contains("dropdown")?n[e.target.name]=e.target.value[e.target.props.dataItemKey]:n[e.target.name]=e.target.value:e.element&&e.element?.ej2_instances.length>0&&e.element&&e.element.classList&&(e.element.classList.contains("e-combobox")||e.element.classList.contains("e-multiselect"))&&(n[e.element.ej2_instances[0].name]=e.value),t[o]=s,this.setState(t)}initializePageIndex(e){for(var t=0;t<e.length;t++)e[t].rowIndex=t+1;return e}getMenuPrivileges(e,t,i){return new Promise((r,n)=>E.get(i+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/generic/getUserPrivilege?userId="+e+"&menuId="+t).then(e=>{let t=JSON.parse(e.data.data.rulQwyuLst);r(t.map(e=>e.rightsCode))}))}}const ba=({children:e,configUrl:r})=>{const[n,s]=t(!0);return i(()=>{Q.loadConfigData(r).then(e=>{e&&s(!1)})},[]),o(a,{children:!n&&e})},za=({logOut:e,extendSession:r})=>{const[n,c]=t(!1);let h,u;const l=["load","mousemove","mousedown","click","scroll","keypress"],p=()=>{h&&clearTimeout(h),u&&clearTimeout(u),h=setTimeout(()=>c(!0),6e4),u=setTimeout(()=>e,6e4)};return i(()=>{for(const e in l)window.addEventListener(l[e],p);return()=>{for(const e in l)window.removeEventListener(l[e],p)}},[]),o(a,{children:s(Dr,{title:"Session expire warning",show:n,onClose:()=>{c(!1)},toggle:()=>c(!1),closeBtn:!1,children:[s("div",{className:"mt-2",children:["your session will expire in ",1," minutes. Do you want to extend the session?"]}),s("div",{className:"mt-5 btnMain",children:[o("button",{className:"btn btn-info me-2",onClick:e,children:"Logout"}),o("button",{className:"btn btn-success",onClick:r,children:"Extend session"})]})]})})};export{ba as Base,Sa as BaseComponent,Le as Button,Ae as CheckBox,Ce as DatePicker,zr as Dialog,sa as DocumentViewer,wr as DropDown,vr as DropDownTree,Ia as FormBuilder,jr as Grid,za as IdleMonitor,aa as Modal,xe as MultiSelectDropdown,Dr as Popup,Ee as Selector,Or as TextArea,Pe as TextTooltip,ke as Textbox,nr as TimePicker,br as Toast,Tr as Tooltip,Sr as Uploader,Er as Viewer};
|
|
1
|
+
import e,{useState as t,useEffect as i,useRef as r,useMemo as n}from"react";import{jsx as o,jsxs as s,Fragment as a}from"react/jsx-runtime";import{DatePickerComponent as c,DateTimePickerComponent as h,TimePickerComponent as u}from"@syncfusion/ej2-react-calendars";import{MultiSelectComponent as l,Inject as p,CheckBoxSelection as d,DropDownTreeComponent as g,ComboBoxComponent as f,DropDownListComponent as M}from"@syncfusion/ej2-react-dropdowns";import{TooltipComponent as m,DialogUtility as y}from"@syncfusion/ej2-react-popups";import{GridComponent as N,ColumnsDirective as j,ColumnDirective as D,Inject as I,Page as S,Sort as b,Filter as z,Group as v,Search as w,Toolbar as O,ExcelExport as T,PdfExport as L,Resize as A}from"@syncfusion/ej2-react-grids";import{ProgressBar as C,Spinner as x}from"react-bootstrap";import E from"axios";import{utilService as k,messageService as P,urlService as U,configService as Q,genericAPIService as Y}from"gbs-fwk-core";import*as R from"xlsx";import{ToastComponent as V}from"@syncfusion/ej2-react-notifications";import{PdfViewerComponent as F,Inject as B,Toolbar as W,Magnification as G,Navigation as H,Annotation as q,LinkAnnotation as _,BookmarkView as J,ThumbnailView as Z,Print as K,TextSearch as X,FormFields as $,FormDesigner as ee}from"@syncfusion/ej2-react-pdfviewer";import{DocumentEditorComponent as te,Print as ie,SfdtExport as re,WordExport as ne,TextExport as oe,Selection as se,Search as ae,Editor as ce,ImageResizer as he,EditorHistory as ue,ContextMenu as le,OptionsPane as pe,HyperlinkDialog as de,TableDialog as ge,BookmarkDialog as fe,TableOfContentsDialog as Me,PageSetupDialog as me,StyleDialog as ye,ListDialog as Ne,ParagraphDialog as je,BulletsAndNumberingDialog as De,FontDialog as Ie,TablePropertiesDialog as Se,BordersAndShadingDialog as be,TableOptionsDialog as ze,CellOptionsDialog as ve,StylesDialog as we,Toolbar as Oe,DocumentEditorContainerComponent as Te}from"@syncfusion/ej2-react-documenteditor";const Le=({id:e="",value:t="",type:i,className:r="",onClick:n,iconClass:a="",name:c,disabled:h,title:u})=>o("div",{children:s("button",{type:i,className:r,onClick:n,id:e,name:c,disabled:h,title:u,children:[a&&o("i",{className:a}),t]})}),Ae=({className:e,id:t,label:i,onChange:r,disabled:n,name:a,checked:c,change:h})=>s("div",{children:[o("label",{htmlFor:t,className:"form-label",children:i}),o("input",{className:e,type:"checkbox",name:a,onChange:e=>{const t=e.target;h&&h(t),r&&r(e)},checked:c,disabled:n})]}),Ce=({id:e,placeholder:r="",value:n="",onChange:u,onClear:l,className:p="",label:d="",required:g,format:f,name:M,disabled:m,min:y,max:N,allowEdit:j,allowTimePicker:D,enabled:I,start:S,depth:b,timeStep:z=30})=>{const[v,w]=t(m||!1);return i(()=>{void 0!==m&&w(m||!1)},[m]),s("div",{children:[d&&s("label",{htmlFor:e,className:"form-label",children:[d," ",g?o("i",{className:"req-lbl",children:"*"}):o(a,{})]}),D?o(h,{id:e,placeholder:r,value:n,onChange:u,cleared:l,className:p,format:f,name:M,disabled:m,enabled:!v,type:"datepicker",min:y,max:N,allowEdit:j,step:z}):o(c,{id:e,placeholder:r,value:n,onChange:u,cleared:l,className:p,format:f,name:M,enabled:!v,disabled:m,type:"datepicker",min:y,max:N,allowEdit:j,start:S,depth:b})]})},xe=({dataSource:e,placeholder:t,fields:i,onChange:r,className:n,required:c,label:h,id:u,name:g,mode:f,value:M,disabled:m,showSelectAll:y,idForSelectAll:N,allowFiltering:j,filterType:D,onFilterChange:I,onBlur:S,onBlurCallback:b})=>s("div",{children:[h&&s("label",{htmlFor:u,className:"form-label",children:[h," ",c?o("i",{className:"req-lbl",children:"*"}):o(a,{})]}),o(l,{id:u,dataSource:e,placeholder:t,change:t=>{N&&t.value&&e.length>0&&(t.value.length===e.length||t.value.length>=1e3)?(t.value=["5449A75B-7A82-41F4-BCC0-23391656568D"],r?.(t,{})):r?.(t,{})},value:M,fields:i,mode:f,className:n,name:g,changeOnBlur:!1,enabled:!m,type:"multiselect",selectAllText:"Select All",unSelectAllText:"UnSelect All",showSelectAll:y,enableSelectionOrder:!1,allowFiltering:j,filtering:"contains"===D?function(t){const r=e.filter(e=>e[i.text].toLowerCase().includes(t.text.toLowerCase()));t.updateData(r,""),I?.(t)}:void 0,onBlur:S,blur:b,children:o(p,{services:[d]})})]}),Ee=({label:e,action:t,onSelect:i,className:r,id:n,name:a})=>{const c=e=>{const t=e.target.value;i&&i(t)},h=t?.map(e=>s("div",{children:[o("input",{type:"radio",id:e,name:a,value:e,onChange:c})," ",e]},e));return s("div",{className:r,id:n,children:[e," : ",h]})},ke=({type:e="text",disabled:n=!1,required:c=!1,className:h="",name:u="",placeholder:l="",value:p,onChange:d,onKeyPress:g,onKeyDown:f,label:M="",id:y,minLength:N,maxLength:j,step:D,pattern:I="",onBlur:S,defaultValue:b,checked:z=!1,enableTooltip:v,disablePasting:w=!1,autoComplete:O="",inputRef:T})=>{const[L,A]=t(!1),[C,x]=t(p||b),[E,k]=t(),P=e=>{I&&e.target.value&&!(e=>{switch(I){case"email":return/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e);case"phone":return/^[0-9]{10}$/.test(e);case"name":return/^[a-zA-Z0-9.]+$/.test(e)}return!0})(e.target.value)&&A(!0),S?.(e,{})},U=e=>{if(k(Q.current?.value),A(!1),"number"===I)1===e.target.value.length&&"-"===e.target.value||!isNaN(e.target.value)?(d?.(e,{}),x(e.target.value)):e.target.value=C;else if("negativenumber"===I||"preventnegativenumber"===I)e.target.value.includes("-")||isNaN(e.target.value)?e.target.value=C:(d?.(e,{}),x(e.target.value));else if("lettersOnly"===I){/^[a-zA-Z]*$/.test(e.target.value)||""===e.target.value?(x(e.target.value),d?.(e,{})):e.target.value=C}else x(e.target.value),d?.(e,{})},Q=r(null);i(()=>{k(Q.current?.value)},[b,p]),i(()=>{T&&T(Q)},[Q,T]);const Y=(e,t)=>{t&&v||(e.cancel=!0)},R=e=>{f?.(e),e.stopPropagation()};return s(a,{children:[M&&s("label",{htmlFor:y,className:"form-label",children:[M," ",c?o("i",{className:"req-lbl",children:"*"}):o(a,{})]}),s(a,{children:[o(m,null!=p?{beforeOpen:e=>Y(e,E),content:v?E:"",children:o("input",{id:y,type:e,value:p,onChange:U,onKeyPress:g,onKeyDown:R,disabled:n,required:c,className:h,name:u,placeholder:l,minLength:N,maxLength:j,step:D,pattern:I,onBlur:P,defaultValue:b,checked:z,ref:Q,onPaste:w?e=>e.preventDefault():void 0,autoComplete:O})}:{beforeOpen:e=>Y(e,E),content:v?E:"",children:o("input",{id:y,type:e,onChange:U,disabled:n,onKeyPress:g,onKeyDown:R,required:c,className:h,pattern:I,name:u,placeholder:l,minLength:N,maxLength:j,step:D,onBlur:P,defaultValue:b,checked:z,ref:Q,onPaste:w?e=>e.preventDefault():void 0,autoComplete:O})}),L&&o("span",{className:"pat-val-error",children:(()=>{switch(I){case"email":return"Invalid Mail Address";case"phone":return"Invalid Phone Number";case"name":return"Invalid Text Format"}return"Invalid Input"})()})]})]})},Pe=({title:e,tooltip:t})=>s("span",{className:"bb-tooltip",children:[o("span",{className:"bb-data",children:e}),o("span",{className:"bb-tooltiptext",children:t})]});function Ue(e,t){var i=t;return i.unshift(void 0),new(Function.prototype.bind.apply(e,i))}function Qe(e){var t,i=new Uint16Array(5);(window.msCrypto||window.crypto).getRandomValues(i);var r="ej2"+function(e){for(var t="",i=0;i<5;i++)t+=(i?",":"")+e[parseInt(i.toString(),10)];return t}(i),n=function(i){i.source===window&&"string"==typeof i.data&&i.data.length<=32&&i.data===r&&(e(),t())};return window.addEventListener("message",n,!1),window.postMessage(r,"*"),t=function(){window.removeEventListener("message",n),e=n=r=void 0}}function Ye(e,t){for(var i=t,r=e.replace(/\[/g,".").replace(/\]/g,"").split("."),n=0;n<r.length&&!qe(i);n++)i=i[r[parseInt(n.toString(),10)]];return i}function Re(e,t,i){var r,n,o=e.replace(/\[/g,".").replace(/\]/g,"").split("."),s=i||{},a=s,c=o.length;for(r=0;r<c;r++)n=o[parseInt(r.toString(),10)],r+1===c?a[""+n]=void 0===t?{}:t:He(a[""+n])&&(a[""+n]={}),a=a[""+n];return s}function Ve(e,t){delete e[""+t]}var Fe="undefined"!=typeof window?window:{};function Be(e){return!He(e)&&e.constructor==={}.constructor}function We(e,t){if(!He(t))for(var i=e,r=t,n="deepMerge",o=0,s=Object.keys(t);o<s.length;o++){var a=s[o];He(i[""+n])||-1===i[""+n].indexOf(a)||!Be(r[""+a])&&!Array.isArray(r[""+a])?i[""+a]=r[""+a]:Ge(i[""+a],i[""+a],r[""+a],!0)}}function Ge(e,t,i,r){var n=e&&"object"==typeof e?e:{},o=arguments.length;r&&(o-=1);for(var s=function(e){if(!a[e])return"continue";var t=a[e];Object.keys(t).forEach(function(e){var i,o=n[""+e],s=t[""+e];Array.isArray(s)&&Array.isArray(o)&&(s.length,o.length);r&&(Be(s)||Array.isArray(s))?Be(s)?(i=o||{},Array.isArray(i)&&i.hasOwnProperty("isComplexArray")?Ge(i,{},s,r):n[""+e]=Ge(i,{},s,r)):(i=o||[],n[""+e]=Ge([],i,s,i&&i.length||s&&s.length)):n[""+e]=s})},a=arguments,c=1;c<o;c++)s(c);return n}function He(e){return null==e}function qe(e){return void 0===e}function _e(e,t){return e===t||!(e===document||!e)&&_e(e.parentNode,t)}function Je(e){try{throw new Error(e)}catch(e){throw e.message+"\n"+e.stack}}function Ze(){return false}var Ke,Xe={latn:{_digits:"0123456789",_type:"numeric"}},$e={decimal:".",group:",",percentSign:"%",plusSign:"+",minusSign:"-",infinity:"∞",nan:"NaN",exponential:"E"},et=[0,1,2,3,4,5,6,7,8,9],tt=function(){function e(){}return e.getMainObject=function(e,t){return Ye("main."+t,e)},e.getNumberingSystem=function(e){return Ye("supplemental.numberingSystems",e)||this.numberingSystems},e.reverseObject=function(e,t){for(var i={},r=0,n=t||Object.keys(e);r<n.length;r++){var o=n[r];i.hasOwnProperty(e[o])||(i[e[o]]=o)}return i},e.getSymbolRegex=function(e){var t=e.map(function(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}).join("|");return new RegExp(t,"g")},e.getSymbolMatch=function(e){for(var t={},i=0,r=Object.keys($e);i<r.length;i++){var n=r[i];t[e[n]]=$e[n]}return t},e.constructRegex=function(e){for(var t=e.length,i="",r=0;r<t;r++)i+=r!==t-1?e[parseInt(r.toString(),10)]+"|":e[parseInt(r.toString(),10)];return i},e.convertValueParts=function(e,t,i){return e.replace(t,function(e){return i[e]})},e.getDefaultNumberingSystem=function(e){var t={};return t.obj=Ye("numbers",e),t.nSystem=Ye("defaultNumberingSystem",t.obj),t},e.getCurrentNumericOptions=function(e,t,i,r){var n={},o=this.getDefaultNumberingSystem(e);if(!qe(o.nSystem)||r){var s=r?Ye("obj.mapperDigits",o):Ye(o.nSystem+"._digits",t);if(!qe(s)){n.numericPair=this.reverseObject(s,et);var a=RegExp;n.numberParseRegex=new a(this.constructRegex(s),"g"),n.numericRegex="["+s[0]+"-"+s[9]+"]",i&&(n.numericRegex=s[0]+"-"+s[9],n.symbolNumberSystem=Ye(r?"numberSymbols":"symbols-numberSystem-"+o.nSystem,o.obj),n.symbolMatch=this.getSymbolMatch(n.symbolNumberSystem),n.numberSystem=o.nSystem)}}return n},e.getNumberMapper=function(e,t,i){var r={mapper:{}},n=this.getDefaultNumberingSystem(e);if(!qe(n.nSystem)){r.numberSystem=n.nSystem,r.numberSymbols=Ye("symbols-numberSystem-"+n.nSystem,n.obj),r.timeSeparator=Ye("timeSeparator",r.numberSymbols);var o=Ye(n.nSystem+"._digits",t);if(!qe(o))for(var s=0,a=et;s<a.length;s++){var c=a[s];r.mapper[c]=o[c]}}return r},e.nPair="numericPair",e.nRegex="numericRegex",e.numberingSystems=Xe,e}(),it={DJF:"Fdj",ERN:"Nfk",ETB:"Br",NAD:"$",ZAR:"R",XAF:"FCFA",GHS:"GH₵",XDR:"XDR",AED:"د.إ.",BHD:"د.ب.",DZD:"د.ج.",EGP:"ج.م.",ILS:"₪",IQD:"د.ع.",JOD:"د.ا.",KMF:"CF",KWD:"د.ك.",LBP:"ل.ل.",LYD:"د.ل.",MAD:"د.م.",MRU:"أ.م.",OMR:"ر.ع.",QAR:"ر.ق.",SAR:"ر.س.",SDG:"ج.س.",SOS:"S",SSP:"£",SYP:"ل.س.",TND:"د.ت.",YER:"ر.ي.",CLP:"$",INR:"₹",TZS:"TSh",EUR:"€",AZN:"₼",RUB:"₽",BYN:"Br",ZMW:"K",BGN:"лв.",NGN:"₦",XOF:"CFA",BDT:"৳",CNY:"¥",BAM:"КМ",UGX:"USh",USD:"$",CZK:"Kč",GBP:"£",DKK:"kr.",KES:"Ksh",CHF:"CHF",MVR:"ރ.",BTN:"Nu.",XCD:"EC$",AUD:"$",BBD:"$",BIF:"FBu",BMD:"$",BSD:"$",BWP:"P",BZD:"$",CAD:"$",NZD:"$",FJD:"$",FKP:"£",GIP:"£",GMD:"D",GYD:"$",HKD:"$",IDR:"Rp",JMD:"$",KYD:"$",LRD:"$",MGA:"Ar",MOP:"MOP$",MUR:"Rs",MWK:"MK",MYR:"RM",PGK:"K",PHP:"₱",PKR:"Rs",RWF:"RF",SBD:"$",SCR:"SR",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",ANG:"NAf.",SZL:"E",TOP:"T$",TTD:"$",VUV:"VT",WST:"WS$",ARS:"$",BOB:"Bs",BRL:"R$",COP:"$",CRC:"₡",CUP:"$",DOP:"$",GTQ:"Q",HNL:"L",MXN:"$",NIO:"C$",PAB:"B/.",PEN:"S/",PYG:"₲",UYU:"$",VES:"Bs.S",IRR:"ريال",GNF:"FG",CDF:"FC",HTG:"G",XPF:"FCFP",HRK:"kn",HUF:"Ft",AMD:"֏",ISK:"kr",JPY:"¥",GEL:"₾",CVE:"",KZT:"₸",KHR:"៛",KPW:"₩",KRW:"₩",KGS:"сом",AOA:"Kz",LAK:"₭",MZN:"MTn",MKD:"ден",MNT:"₮",BND:"$",MMK:"K",NOK:"kr",NPR:"रु",AWG:"Afl.",SRD:"$",PLN:"zł",AFN:"؋",STN:"Db",MDL:"L",RON:"lei",UAH:"₴",LKR:"රු.",ALL:"Lekë",RSD:"дин.",TJS:"смн",THB:"฿",TMT:"m.",TRY:"₺",UZS:"сўм",VND:"₫",TWD:"NT$"};!function(e){var t=[28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990];e.getHijriDate=function(e){var i=e.getDate(),r=e.getMonth(),n=e.getFullYear(),o=r+1,s=n;o<3&&(s-=1,o+=12);var a=Math.floor(s/100),c=a-Math.floor(a/4)-2,h=Math.floor(365.25*(s+4716))+Math.floor(30.6001*(o+1))+i-c-1524,u=h+(c=(a=Math.floor((h-1867216.25)/36524.25))-Math.floor(a/4)+1)+1524,l=Math.floor((u-122.1)/365.25),p=Math.floor(365.25*l),d=Math.floor((u-p)/30.6001);i=u-p-Math.floor(30.6001*d),(r=Math.floor((u-p)/20.6001))>13&&(l+=1,r-=12),r-=1,n=l-4716;var g=h-24e5,f=10631/30,M=h-1948084,m=Math.floor(M/10631);M-=10631*m;var y=Math.floor((M-.1335)/f),N=30*m+y;M-=Math.floor(y*f+.1335);var j=Math.floor((M+28.5001)/29.5);13===j&&(j=12);for(var D=M-Math.floor(29.5001*j-29),I=0;I<t.length&&!(t[parseInt(I.toString(),10)]>g);I++);var S=I+16260,b=Math.floor((S-1)/12),z=b+1,v=S-12*b,w=g-t[I-1]+1;return(w+"").length>2&&(w=D,v=j,z=N),{year:z,month:v,date:w}},e.toGregorian=function(e,i,r){var n=r+t[12*(e-1)+1+(i-1)-16260-1]-1+24e5,o=Math.floor(n+.5),s=Math.floor((o-1867216.25)/36524.25),a=(s=o+1+s-Math.floor(s/4))+1524,c=Math.floor((a-122.1)/365.25),h=Math.floor(365.25*c),u=Math.floor((a-h)/30.6001),l=a-h-Math.floor(30.6001*u),p=u-(u>13.5?13:1),d=c-(p>2.5?4716:4715);return d<=0&&p--,new Date(d+"/"+p+"/"+l)}}(Ke||(Ke={}));var rt,nt=/\/MMMMM|MMMM|MMM|a|LLLL|LLL|EEEEE|EEEE|E|K|cccc|ccc|WW|W|G+|z+/gi,ot="stand-alone",st=["sun","mon","tue","wed","thu","fri","sat"],at={m:"getMinutes",h:"getHours",H:"getHours",s:"getSeconds",d:"getDate",f:"getMilliseconds"},ct=function(){function e(){}return e.dateFormat=function(e,t,i){var r=this,n=rt.getDependables(i,e,t.calendar);Ye("parserObject.numbers",n);var o=n.dateObject,s={isIslamic:rt.islamicRegex.test(t.calendar)},a=t.format||rt.getResultantPattern(t.skeleton,n.dateObject,t.type,!1,"");if(s.dateSeperator=rt.getDateSeparator(n.dateObject),qe(a))Je("Format options or type given must be invalid");else{a=rt.ConvertDateToWeekFormat(a),s.pattern=a,s.numMapper=tt.getNumberMapper(n.parserObject,tt.getNumberingSystem(i));for(var c=0,h=a.match(nt)||[];c<h.length;c++){var u=h[c],l=u.length,p=u[0];switch("K"===p&&(p="h"),p){case"E":case"c":s.weekday=n.dateObject[rt.days][ot][rt.monthIndex[l]];break;case"M":case"L":s.month=n.dateObject[rt.month][ot][rt.monthIndex[l]];break;case"a":s.designator=Ye("dayPeriods.format.wide",o);break;case"G":var d=l<=3?"eraAbbr":4===l?"eraNames":"eraNarrow";s.era=Ye("eras."+d,n.dateObject);break;case"z":s.timeZone=Ye("dates.timeZoneNames",n.parserObject)}}}return function(e){return isNaN(e.getDate())?null:r.intDateFormatter(e,s)}},e.intDateFormatter=function(e,t){for(var i="",r=t.pattern.match(rt.dateParseRegex),n=this.getCurrentDateValue(e,t.isIslamic),o=0,s=r;o<s.length;o++){var a=s[o],c=a.length,h=a[0];"K"===h&&(h="h");var u=void 0,l="",p=void 0,d=void 0,g="";switch(h){case"M":case"L":u=n.month,c>2?i+=t.month[u]:p=!0;break;case"E":case"c":i+=t.weekday[st[e.getDay()]];break;case"H":case"h":case"m":case"s":case"d":case"f":if(p=!0,"d"===h)u=n.date;else if("f"===h){p=!1,d=!0;var f=(l=(l=e[at[h]]().toString()).substring(0,c)).length;if(c!==f){if(c>3)continue;for(var M=0;M<c-f;M++)l="0"+l.toString()}g+=l}else u=e[at[h]]();"h"===h&&(u=u%12||12);break;case"y":d=!0,g+=n.year,2===c&&(g=g.substr(g.length-2));break;case"a":var m=e.getHours()<12?"am":"pm";i+=t.designator[m];break;case"G":var y=e.getFullYear()<0?0:1,N=t.era[y];He(N)&&(N=t.era[y?0:1]),i+=N||"";break;case"'":i+="''"===a?"'":a.replace(/'/g,"");break;case"z":var j=e.getTimezoneOffset(),D=c<4?"+H;-H":t.timeZone.hourFormat;D=D.replace(/:/g,t.numMapper.timeSeparator),0===j?i+=t.timeZone.gmtZeroFormat:(d=!0,g=this.getTimeZoneValue(j,D)),g=t.timeZone.gmtFormat.replace(/\{0\}/,g);break;case":":i+=t.numMapper.numberSymbols.timeSeparator;break;case"/":i+=t.dateSeperator;break;case"W":p=!0,u=rt.getWeekOfYear(e);break;default:i+=a}p&&(d=!0,g=this.checkTwodigitNumber(u,c)),d&&(i+=tt.convertValueParts(g,rt.latnParseRegex,t.numMapper.mapper))}return i},e.getCurrentDateValue=function(e,t){return t?Ke.getHijriDate(e):{year:e.getFullYear(),month:e.getMonth()+1,date:e.getDate()}},e.checkTwodigitNumber=function(e,t){var i=e+"";return 2===t&&2!==i.length?"0"+i:i},e.getTimeZoneValue=function(e,t){var i=this,r=t.split(";")[e>0?1:0],n=Math.abs(e);return r.replace(/HH?|mm/g,function(e){var t=e.length,r=-1!==e.indexOf("H");return i.checkTwodigitNumber(Math.floor(r?n/60:n%60),t)})},e}(),ht={ms:"minimumSignificantDigits",ls:"maximumSignificantDigits",mf:"minimumFractionDigits",lf:"maximumFractionDigits"},ut=["infinity","nan","group","decimal","exponential"],lt=function(){function e(){}return e.numberFormatter=function(e,t,i){var r,n=this,o=Ge({},t),s={},a={},c=rt.getDependables(i,e,"",!0);c.numericObject,a.numberMapper=tt.getNumberMapper(c.parserObject,tt.getNumberingSystem(i),!0),a.currencySymbol=rt.getCurrencySymbol(c.numericObject,o.currency||gt,t.altSymbol),a.percentSymbol=a.numberMapper.numberSymbols.percentSign,a.minusSymbol=a.numberMapper.numberSymbols.minusSign;var h=a.numberMapper.numberSymbols;if(t.format&&!rt.formatRegex.test(t.format))s=rt.customFormat(t.format,a,c.numericObject);else{Ge(o,rt.getProperNumericSkeleton(t.format||"N")),o.isCurrency="currency"===o.type,o.isPercent="percent"===o.type,r=rt.getSymbolPattern(o.type,a.numberMapper.numberSystem,c.numericObject,o.isAccount),o.groupOne=this.checkValueRange(o.maximumSignificantDigits,o.minimumSignificantDigits,!0),this.checkValueRange(o.maximumFractionDigits,o.minimumFractionDigits,!1,!0),qe(o.fractionDigits)||(o.minimumFractionDigits=o.maximumFractionDigits=o.fractionDigits),qe(o.useGrouping)&&(o.useGrouping=!0),o.isCurrency&&(r=r.replace(/\u00A4/g,rt.defaultCurrency));var u=r.split(";");if(s.nData=rt.getFormatData(u[1]||"-"+u[0],!0,a.currencySymbol),s.pData=rt.getFormatData(u[0],!1,a.currencySymbol),o.useGrouping&&(o.groupSeparator=h[ut[2]],o.groupData=this.getGroupingDetails(u[0])),qe(o.minimumFractionDigits)&&(o.minimumFractionDigits=s.nData.minimumFraction),qe(o.maximumFractionDigits)){var l=s.nData.maximumFraction;o.maximumFractionDigits=qe(l)&&o.isPercent?0:l}var p=o.minimumFractionDigits,d=o.maximumFractionDigits;qe(p)||qe(d)||p>d&&(o.maximumFractionDigits=p)}return Ge(s.nData,o),Ge(s.pData,o),function(e){return isNaN(e)?h[ut[1]]:isFinite(e)?n.intNumberFormatter(e,s,a,t):h[ut[0]]}},e.getGroupingDetails=function(e){var t={},i=e.match(rt.negativeDataRegex);if(i&&i[4]){var r=i[4],n=r.lastIndexOf(",");if(-1!==n){var o=r.split(".")[0];t.primary=o.length-n-1;var s=r.lastIndexOf(",",n-1);-1!==s&&(t.secondary=n-1-s)}}return t},e.checkValueRange=function(e,t,i,r){var n=r?"f":"s",o=0,s=ht["l"+n],a=ht["m"+n];if(qe(e)||(this.checkRange(e,s,r),o++),qe(t)||(this.checkRange(t,a,r),o++),2===o){if(!(e<t))return!0;Je(a+"specified must be less than the"+s)}else i&&1===o&&Je("Both"+a+"and"+a+"must be present");return!1},e.checkRange=function(e,t,i){var r=i?[0,20]:[1,21];(e<r[0]||e>r[1])&&Je(t+"value must be within the range"+r[0]+"to"+r[1])},e.intNumberFormatter=function(e,t,i,r){var n;if(!qe(t.nData.type)){e<0?(e*=-1,n=t.nData):n=0===e&&t.zeroData||t.pData;var o="";if(n.isPercent&&(e*=100),n.groupOne)o=this.processSignificantDigits(e,n.minimumSignificantDigits,n.maximumSignificantDigits);else if(o=this.processFraction(e,n.minimumFractionDigits,n.maximumFractionDigits,r),n.minimumIntegerDigits&&(o=this.processMinimumIntegers(o,n.minimumIntegerDigits)),i.isCustomFormat&&n.minimumFractionDigits<n.maximumFractionDigits&&/\d+\.\d+/.test(o)){for(var s=o.split("."),a=s[1],c=a.length-1;c>=0&&("0"===a[""+c]&&c>=n.minimumFractionDigits);c--)a=a.slice(0,c);o=s[0]+"."+a}return"scientific"===n.type&&(o=(o=e.toExponential(n.maximumFractionDigits)).replace("e",i.numberMapper.numberSymbols[ut[4]])),o=o.replace(".",i.numberMapper.numberSymbols[ut[3]]),o="#,###,,;(#,###,,)"===n.format?this.customPivotFormat(parseInt(o,10)):o,n.useGrouping&&(o=this.groupNumbers(o,n.groupData.primary,n.groupSeparator||",",i.numberMapper.numberSymbols[ut[3]]||".",n.groupData.secondary)),o=tt.convertValueParts(o,rt.latnParseRegex,i.numberMapper.mapper),"N/A"===n.nlead?n.nlead:"0"===o&&r&&"0"===r.format?o+n.nend:n.nlead+o+n.nend}},e.processSignificantDigits=function(e,t,i){var r=e+"";return r.length<t?e.toPrecision(t):+(r=e.toPrecision(i))+""},e.groupNumbers=function(e,t,i,r,n){for(var o=!He(n)&&0!==n,s=e.split(r),a=s[0],c=a.length,h="";c>t;)h=a.slice(c-t,c)+(h.length?i+h:""),c-=t,o&&(t=n,o=!1);return s[0]=a.slice(0,c)+(h.length?i:"")+h,s.join(r)},e.processFraction=function(e,t,i,r){var n=(e+"").split(".")[1],o=n?n.length:0;if(t&&o<t){var s="";if(0!==o){s+=e;for(var a=0;a<t-o;a++)s+="0";return s}return s=e.toFixed(t),e.toFixed(t)}if(!He(i)&&(o>i||0===i))return e.toFixed(i);var c=e+"";return"0"===c[0]&&r&&"###.00"===r.format&&(c=c.slice(1)),c},e.processMinimumIntegers=function(e,t){var i=e.split("."),r=i[0],n=r.length;if(n<t){for(var o=0;o<t-n;o++)r="0"+r;i[0]=r}return i.join(".")},e.customPivotFormat=function(e){if(e>=5e5){var t=(e/=1e6).toString().split(".");t[0];var i=t[1];return i&&+i.substring(0,1)>=5?Math.ceil(e).toString():Math.floor(e).toString()}return""},e}(),pt=function(){function e(e){this.ranArray=[],this.boundedEvents={},He(e)||(this.context=e)}return e.prototype.on=function(e,t,i,r){if(!He(t)){var n=i||this.context;this.notExist(e)?this.boundedEvents[""+e]=[{handler:t,context:n,id:r}]:He(r)?this.isHandlerPresent(this.boundedEvents[""+e],t)||this.boundedEvents[""+e].push({handler:t,context:n}):-1===this.ranArray.indexOf(r)&&(this.ranArray.push(r),this.boundedEvents[""+e].push({handler:t,context:n,id:r}))}},e.prototype.off=function(e,t,i){if(!this.notExist(e)){var r=Ye(e,this.boundedEvents);if(t){for(var n=0;n<r.length;n++)if(i){if(r[parseInt(n.toString(),10)].id===i){r.splice(n,1);var o=this.ranArray.indexOf(i);-1!==o&&this.ranArray.splice(o,1);break}}else if(t===r[parseInt(n.toString(),10)].handler){r.splice(n,1);break}}else delete this.boundedEvents[""+e]}},e.prototype.notify=function(e,t,i,r){if(this.notExist(e))i&&i.call(this,t);else{t&&(t.name=e);var n=Ye(e,this.boundedEvents).slice(0);if(window.Blazor)return this.blazorCallback(n,t,i,r,0);for(var o=0,s=n;o<s.length;o++){var a=s[o];a.handler.call(a.context,t)}i&&i.call(this,t)}},e.prototype.blazorCallback=function(e,t,i,r,n){var o=this,s=n===e.length-1;if(n<e.length){var a=e[parseInt(n.toString(),10)],c=a.handler.call(a.context,t);if(c&&"function"==typeof c.then){if(!i)return c;c.then(function(c){if(c="string"==typeof c&&o.isJson(c)?JSON.parse(c,o.dateReviver):c,Ge(t,t,c,!0),!i||!s)return o.blazorCallback(e,t,i,r,n+1);i.call(a.context,t)}).catch(function(e){r&&r.call(a.context,"string"==typeof e&&o.isJson(e)?JSON.parse(e,o.dateReviver):e)})}else{if(!i||!s)return this.blazorCallback(e,t,i,r,n+1);i.call(a.context,t)}}},e.prototype.dateReviver=function(e,t){return Ze&&"string"==typeof t&&null!==t.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/)?new Date(t):t},e.prototype.isJson=function(e){try{JSON.parse(e)}catch(e){return!1}return!0},e.prototype.destroy=function(){this.boundedEvents=this.context=void 0},e.prototype.offIntlEvents=function(){var e=this.boundedEvents.notifyExternalChange;if(e){for(var t=0;t<e.length;t++){var i=e[""+t].context;i&&i.detectFunction&&i.randomId&&!i.isRendered&&(this.off("notifyExternalChange",i.detectFunction,i.randomId),t--)}this.boundedEvents.notifyExternalChange.length||delete this.boundedEvents.notifyExternalChange}},e.prototype.notExist=function(e){return!1===this.boundedEvents.hasOwnProperty(e)||this.boundedEvents[e].length<=0},e.prototype.isHandlerPresent=function(e,t){for(var i=0,r=e;i<r.length;i++){if(r[i].handler===t)return!0}return!1},e}(),dt=new pt,gt="USD",ft=RegExp,Mt={"en-US":{d:"M/d/y",D:"EEEE, MMMM d, y",f:"EEEE, MMMM d, y h:mm a",F:"EEEE, MMMM d, y h:mm:s a",g:"M/d/y h:mm a",G:"M/d/yyyy h:mm:ss tt",m:"MMMM d",M:"MMMM d",r:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",R:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",t:"h:mm tt",T:"h:m:s tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",U:"dddd, MMMM d, yyyy h:mm:ss tt",y:"MMMM yyyy",Y:"MMMM yyyy"}};!function(e){e.negativeDataRegex=/^(('[^']+'|''|[^*#@0,.E])*)(\*.)?((([#,]*[0,]*0+)(\.0*[0-9]*#*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/,e.customRegex=/^(('[^']+'|''|[^*#@0,.])*)(\*.)?((([0#,]*[0,]*[0#]*[0#\ ]*)(\.[0#]*)?)|([#,]*@+#*))(E\+?0+)?(('[^']+'|''|[^*#@0,.E])*)$/,e.latnParseRegex=/0|1|2|3|4|5|6|7|8|9/g;var t=/[0-9]/g;e.defaultCurrency="$";var i=["infinity","nan","group","decimal"],r=/G|M|L|H|c|'| a|yy|y|EEEE|E/g,n={G:"",M:"m",L:"m",H:"h",c:"d","'":'"'," a":" AM/PM",yy:"yy",y:"yyyy",EEEE:"dddd",E:"ddd"};e.dateConverterMapper=/dddd|ddd/gi;e.islamicRegex=/^islamic/;var o={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};e.formatRegex=new ft("(^[ncpae]{1})([0-1]?[0-9]|20)?$","i"),e.currencyFormatRegex=new ft("(^[ca]{1})([0-1]?[0-9]|20)?$","i"),e.curWithoutNumberRegex=/(c|a)$/gi;var s={$:"isCurrency","%":"isPercent","-":"isNegative",0:"nlead",1:"nend"};function a(t,i,r,n,o){var s,a=r||"date";if(o)s=l({skeleton:t},o).format||l({skeleton:"d"},"en-US").format;else{if(-1!==e.basicPatterns.indexOf(t)){if(s=Ye(a+"Formats."+t,i),"dateTime"===a){var c=Ye("dateFormats."+t,i),h=Ye("timeFormats."+t,i);s=s.replace("{1}",c).replace("{0}",h)}}else s=Ye("dateTimeFormats.availableFormats."+t,i);qe(s)&&"yMd"===t&&(s="M/d/y")}return s}function c(t,i,r,n){var o={},s=r||"gregorian";if(o.parserObject=tt.getMainObject(t,i)||e.defaultObject,n)o.numericObject=Ye("numbers",o.parserObject);else{var a="dates.calendars."+s;o.dateObject=Ye(a,o.parserObject)}return o}function h(e,t,i,r){return Ye(e+"Formats-numberSystem-"+t+(r?".accounting":".standard"),i)||(r?Ye(e+"Formats-numberSystem-"+t+".standard",i):"")}function u(t){t.match(e.dateConverterMapper);return t}function l(e,t){var i=e.format||e.skeleton,r=Ye((t||"en-US")+"."+i,Mt);return r||(r=Ye("en-US."+i,Mt)),r&&(r=u(r),e.format=r.replace(/tt/,"a")),e}function p(t){var i=t.match(e.formatRegex),r={},n=i[1].toUpperCase();return r.isAccount="A"===n,r.type=e.patternMatcher[n],t.length>1&&(r.fractionDigits=parseInt(i[2],10)),r}function d(i,r,n,o){var s=o?{}:{nlead:"",nend:""},a=i.match(e.customRegex);if(a){o||(s.nlead=g(a[1],n),s.nend=g(a[10],n),s.groupPattern=a[4]);var c=a[7];if(c&&r){var h=c.match(t);He(h)?s.minimumFraction=0:s.minimumFraction=h.length,s.maximumFraction=c.length-1}}return s}function g(t,i){return t?(t=t.replace(e.defaultCurrency,i),""===i?t.trim():t):""}function f(e,t,i){return Ye("currencies."+t+(i?"."+i:".symbol"),e)||Ye("currencies."+t+".symbol-alt-narrow",e)||"$"}function M(t,r,n){var o={type:"decimal",minimumFractionDigits:0,maximumFractionDigits:0},s=t.match(e.customRegex);if(He(s)||""===s[5]&&"N/A"!==t)return o.type=void 0,o;o.nlead=s[1],o.nend=s[10];var a=s[6],c=!!a.match(/\ $/g),u=-1!==a.replace(/\ $/g,"").indexOf(" ");o.useGrouping=-1!==a.indexOf(",")||u,a=a.replace(/,/g,"");var l=s[7];if(-1!==a.indexOf("0")&&(o.minimumIntegerDigits=a.length-a.indexOf("0")),He(l)||(o.minimumFractionDigits=l.lastIndexOf("0"),o.maximumFractionDigits=l.lastIndexOf("#"),-1===o.minimumFractionDigits&&(o.minimumFractionDigits=0),(-1===o.maximumFractionDigits||o.maximumFractionDigits<o.minimumFractionDigits)&&(o.maximumFractionDigits=o.minimumFractionDigits)),He(r)?Ge(o,m([o.nlead,o.nend],"%","%")):(r.isCustomFormat=!0,Ge(o,m([o.nlead,o.nend],"$",r.currencySymbol)),o.isCurrency||Ge(o,m([o.nlead,o.nend],"%",r.percentSymbol))),!He(n)){var p=h(o.type,r.numberMapper.numberSystem,n,!1);o.useGrouping&&(o.groupSeparator=u?" ":r.numberMapper.numberSymbols[i[2]],o.groupData=lt.getGroupingDetails(p.split(";")[0])),o.nlead=o.nlead.replace(/'/g,""),o.nend=c?" "+o.nend.replace(/'/g,""):o.nend.replace(/'/g,"")}return o}function m(e,t,i){for(var r={nlead:e[0],nend:e[1]},n=0;n<2;n++){var o=e[parseInt(n.toString(),10)],a=o.indexOf(t);if(-1!==a&&(a<o.indexOf("'")||a>o.lastIndexOf("'"))){r[s[n]]=o.substr(0,a)+i+o.substr(a+1),r[s[t]]=!0,r.type=r.isCurrency?"currency":"percent";break}}return r}function y(e,t,i){e+=".";for(var r=0;r<t;r++)e+="0";if(t<i)for(var n=i-t,o=0;o<n;o++)e+="#";return e}function N(e,t){for(var i=e.split("."),r="",n=0;n<t;n++)r+="0";return i[1]?r+"."+i[1]:r}function j(e){var t=e.split("."),i=t[0],r=3-i.length%3;e="";for(var n=(i=(r&&1===r?"#":2===r?"##":"")+i).length-1;n>0;n-=3)e=","+i[n-2]+i[n-1]+i[parseInt(n.toString(),10)]+e;return e=e.slice(1),t[1]?e+"."+t[1]:e}e.dateParseRegex=/([a-z])\1*|'([^']|'')+'|''|./gi,e.basicPatterns=["short","medium","long","full"],e.defaultObject={dates:{calendars:{gregorian:{months:{"stand-alone":{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}}},days:{"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},dayPeriods:{format:{wide:{am:"AM",pm:"PM"}}},eras:{eraNames:{0:"Before Christ","0-alt-variant":"Before Common Era",1:"Anno Domini","1-alt-variant":"Common Era"},eraAbbr:{0:"BC","0-alt-variant":"BCE",1:"AD","1-alt-variant":"CE"},eraNarrow:{0:"B","0-alt-variant":"BCE",1:"A","1-alt-variant":"CE"}},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y"}}},islamic:{months:{"stand-alone":{abbreviated:{1:"Muh.",2:"Saf.",3:"Rab. I",4:"Rab. II",5:"Jum. I",6:"Jum. II",7:"Raj.",8:"Sha.",9:"Ram.",10:"Shaw.",11:"Dhuʻl-Q.",12:"Dhuʻl-H."},narrow:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},wide:{1:"Muharram",2:"Safar",3:"Rabiʻ I",4:"Rabiʻ II",5:"Jumada I",6:"Jumada II",7:"Rajab",8:"Shaʻban",9:"Ramadan",10:"Shawwal",11:"Dhuʻl-Qiʻdah",12:"Dhuʻl-Hijjah"}}},days:{"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},dayPeriods:{format:{wide:{am:"AM",pm:"PM"}}},eras:{eraNames:{0:"AH"},eraAbbr:{0:"AH"},eraNarrow:{0:"AH"}},dateFormats:{full:"EEEE, MMMM d, y G",long:"MMMM d, y G",medium:"MMM d, y G",short:"M/d/y GGGGG"},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y G",yyyy:"y G",yyyyM:"M/y GGGGG",yyyyMd:"M/d/y GGGGG",yyyyMEd:"E, M/d/y GGGGG",yyyyMMM:"MMM y G",yyyyMMMd:"MMM d, y G",yyyyMMMEd:"E, MMM d, y G",yyyyMMMM:"MMMM y G",yyyyQQQ:"QQQ y G",yyyyQQQQ:"QQQQ y G"}}}},timeZoneNames:{hourFormat:"+HH:mm;-HH:mm",gmtFormat:"GMT{0}",gmtZeroFormat:"GMT"}},numbers:{currencies:{USD:{displayName:"US Dollar",symbol:"$","symbol-alt-narrow":"$"},EUR:{displayName:"Euro",symbol:"€","symbol-alt-narrow":"€"},GBP:{displayName:"British Pound","symbol-alt-narrow":"£"}},defaultNumberingSystem:"latn",minimumGroupingDigits:"1","symbols-numberSystem-latn":{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},"decimalFormats-numberSystem-latn":{standard:"#,##0.###"},"percentFormats-numberSystem-latn":{standard:"#,##0%"},"currencyFormats-numberSystem-latn":{standard:"¤#,##0.00",accounting:"¤#,##0.00;(¤#,##0.00)"},"scientificFormats-numberSystem-latn":{standard:"#E0"}}},e.blazorDefaultObject={numbers:{mapper:{0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9"},mapperDigits:"0123456789",numberSymbols:{decimal:".",group:",",plusSign:"+",minusSign:"-",percentSign:"%",nan:"NaN",timeSeparator:":",infinity:"∞"},timeSeparator:":",currencySymbol:"$",currencypData:{nlead:"$",nend:"",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},percentpData:{nlead:"",nend:"%",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},percentnData:{nlead:"-",nend:"%",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},currencynData:{nlead:"($",nend:")",groupSeparator:",",groupData:{primary:3},maximumFraction:2,minimumFraction:2},decimalnData:{nlead:"-",nend:"",groupData:{primary:3},maximumFraction:2,minimumFraction:2},decimalpData:{nlead:"",nend:"",groupData:{primary:3},maximumFraction:2,minimumFraction:2}},dates:{dayPeriods:{am:"AM",pm:"PM"},dateSeperator:"/",days:{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},short:{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}},months:{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},eras:{1:"AD"}}},e.monthIndex={3:"abbreviated",4:"wide",5:"narrow",1:"abbreviated"},e.month="months",e.days="days",e.patternMatcher={C:"currency",P:"percent",N:"decimal",A:"currency",E:"scientific"},e.getResultantPattern=a,e.getDependables=c,e.getSymbolPattern=h,e.ConvertDateToWeekFormat=u,e.compareBlazorDateFormats=l,e.getProperNumericSkeleton=p,e.getFormatData=d,e.changeCurrencySymbol=g,e.getCurrencySymbol=f,e.customFormat=function(e,t,i){for(var r={},n=e.split(";"),o=["pData","nData","zeroData"],s=0;s<n.length;s++)r[o[s]]=M(n[s],t,i);return He(r.nData)&&(r.nData=Ge({},r.pData),r.nData.nlead=He(t)?"-"+r.nData.nlead:t.minusSymbol+r.nData.nlead),r},e.customNumberFormat=M,e.isCurrencyPercent=m,e.getDateSeparator=function(e){var t=(Ye("dateFormats.short",e)||"").match(/[dM]([^dM])[dM]/i);return t?t[1]:"/"},e.getActualDateTimeFormat=function(e,t,i,o){var s=c(i,e,t.calendar),h=t.format||a(t.skeleton,s.dateObject,t.type);if(o){if(h=h.replace(r,function(e){return n[e]}),-1!==h.indexOf("z")){var u=h.match(/z/g).length,l=void 0,p={timeZone:{}};p.numMapper=tt.getNumberMapper(s.parserObject,tt.getNumberingSystem(i)),p.timeZone=Ye("dates.timeZoneNames",s.parserObject);var d=(new Date).getTimezoneOffset(),g=u<4?"+H;-H":p.timeZone.hourFormat;g=g.replace(/:/g,p.numMapper.timeSeparator),0===d?l=p.timeZone.gmtZeroFormat:(l=ct.getTimeZoneValue(d,g),l=p.timeZone.gmtFormat.replace(/\{0\}/,l)),h=h.replace(/[z]+/,'"'+l+'"')}h=h.replace(/ $/,"")}return h},e.getActualNumberFormat=function(t,i,r,n){var o,s=c(r,t,"",!0),a={custom:!0};s.numericObject;var u={},l=(i.format||"").match(e.currencyFormatRegex);!e.formatRegex.test(i.format)||p(i.format||"N");var g,M={};if(l){M.numberMapper=tt.getNumberMapper(s.parserObject,tt.getNumberingSystem(r),!0);var m=f(s.numericObject,i.currency||gt,i.altSymbol),D=h("currency",M.numberMapper.numberSystem,s.numericObject,/a/i.test(i.format)),I=(D=D.replace(/\u00A4/g,m)).split(";");u.hasNegativePattern=I.length>1,u.nData=d(I[1]||"-"+I[0],!0,m),u.pData=d(I[0],!1,m),l[2]||i.minimumFractionDigits||i.maximumFractionDigits||(o=d(D.split(";")[0],!0,"",!0).minimumFraction)}if(e.formatRegex.test(i.format)||!i.format){if(Ge(a,p(i.format||"N")),a.custom=!1,g="###0",a.fractionDigits||i.minimumFractionDigits||i.maximumFractionDigits||o){a.fractionDigits&&(i.minimumFractionDigits=i.maximumFractionDigits=a.fractionDigits),g=y(g,o||a.fractionDigits||i.minimumFractionDigits||0,i.maximumFractionDigits||0)}if(i.minimumIntegerDigits&&(g=N(g,i.minimumIntegerDigits)),i.useGrouping&&(g=j(g)),"currency"===a.type||(a.type,0)){var S=g;g=u.pData.nlead+S+u.pData.nend,u.hasNegativePattern&&(g+=";"+u.nData.nlead+S+u.nData.nend)}"percent"===a.type&&(g+=" %")}else g=i.format.replace(/'/g,'"');return Object.keys(M).length>0&&(g=n?g:function(e,t){if(-1!==e.indexOf(",")){var i=e.split(",");e=i[0]+Ye("numberMapper.numberSymbols.group",t)+i[1].replace(".",Ye("numberMapper.numberSymbols.decimal",t))}else e=e.replace(".",Ye("numberMapper.numberSymbols.decimal",t));return e}(g,M)),g},e.fractionDigitsPattern=y,e.minimumIntegerPattern=N,e.groupingPattern=j,e.getWeekData=function(e,t){var i="sun",r=Ye("supplemental.weekData.firstDay",t),n=e;return/en-/.test(n)&&(n=n.slice(3)),n=n.slice(0,2).toUpperCase()+n.substr(2),r&&(i=r[""+n]||r[n.slice(0,2)]||"sun"),o[""+i]},e.replaceBlazorCurrency=function(e,t,i){var r=Ye(i||"",it);if(t!==r)for(var n=0,o=e;n<o.length;n++){var s=o[n];s.nend=s.nend.replace(t,r),s.nlead=s.nlead.replace(t,r)}},e.getWeekOfYear=function(e){var t,i=new Date(e.getFullYear(),0,1),r=i.getDay();r=r>=0?r:r+7;var n=Math.floor((e.getTime()-i.getTime()-6e4*(e.getTimezoneOffset()-i.getTimezoneOffset()))/864e5)+1;if(r<4){if((t=Math.floor((n+r-1)/7)+1)>52){var o=new Date(e.getFullYear()+1,0,1).getDay();t=(o=o>=0?o:o+7)<4?1:53}}else t=Math.floor((n+r-1)/7);return t}}(rt||(rt={}));var mt=function(){function e(e,t,i){this.type="GET",this.emitError=!0,"string"==typeof e?(this.url=e,this.type=He(t)?this.type:t.toUpperCase(),this.contentType=i):Be(e)&&Object.keys(e).length>0&&We(this,e),this.contentType=He(this.contentType)?"application/json; charset=utf-8":this.contentType}return e.prototype.send=function(e){var t=this,i={"application/json":"json","multipart/form-data":"formData","application/octet-stream":"blob","application/x-www-form-urlencoded":"formData"};try{He(this.fetchRequest)&&"GET"===this.type?this.fetchRequest=new Request(this.url,{method:this.type}):He(this.fetchRequest)&&(this.data=He(e)?this.data:e,this.fetchRequest=new Request(this.url,{method:this.type,headers:{"Content-Type":this.contentType},body:this.data}));var r={cancel:!1,fetchRequest:this.fetchRequest};return this.triggerEvent(this.beforeSend,r),r.cancel?null:(this.fetchResponse=fetch(this.fetchRequest),this.fetchResponse.then(function(e){if(t.triggerEvent(t.onLoad,e),!e.ok)throw e;for(var r="text",n=0,o=Object.keys(i);n<o.length;n++){var s=o[n];e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf(s)&&(r=i[s])}return e[r]()}).then(function(e){return t.triggerEvent(t.onSuccess,e,t),e}).catch(function(e){var i={};return t.emitError&&(t.triggerEvent(t.onFailure,e),i=Promise.reject(e)),i}))}catch(e){return e}},e.prototype.triggerEvent=function(e,t,i){He(e)||"function"!=typeof e||e(t,i)},e}(),yt=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini|mobile/i,Nt=/msie|trident/i,jt=/Trident\/7\./,Dt=/(ipad|iphone|ipod touch)/i,It=/(ipad|iphone|ipod touch);.*os 7_\d|(ipad|iphone|ipod touch);.*os 8_\d/i,St=/android/i,bt=/trident|windows phone|edge/i,zt=/(version)[ /]([\w.]+)/i,vt={OPERA:/(opera|opr)(?:.*version|)[ /]([\w.]+)/i,EDGE:/(edge)(?:.*version|)[ /]([\w.]+)/i,CHROME:/(chrome|crios)[ /]([\w.]+)/i,PANTHOMEJS:/(phantomjs)[ /]([\w.]+)/i,SAFARI:/(safari)[ /]([\w.]+)/i,WEBKIT:/(webkit)[ /]([\w.]+)/i,MSIE:/(msie|trident) ([\w.]+)/i,MOZILLA:/(mozilla)(?:.*? rv:([\w.]+)|)/i};"undefined"!=typeof window&&(window.browserDetails=window.browserDetails||{});var wt=function(){function e(){}return e.extractBrowserDetail=function(){for(var t={culture:{}},i=[],r=0,n=Object.keys(vt);r<n.length;r++){var o=n[r];if(i=e.userAgent.match(vt[""+o])){if(t.name="opr"===i[1].toLowerCase()?"opera":i[1].toLowerCase(),t.name="crios"===i[1].toLowerCase()?"chrome":t.name,t.version=i[2],t.culture.name=t.culture.language=navigator.language,e.userAgent.match(jt)){t.name="msie";break}var s=e.userAgent.match(zt);"safari"===t.name&&s&&(t.version=s[2]);break}}return t},e.getEvent=function(t){var i={start:{isPointer:"pointerdown",isTouch:"touchstart",isDevice:"mousedown"},move:{isPointer:"pointermove",isTouch:"touchmove",isDevice:"mousemove"},end:{isPointer:"pointerup",isTouch:"touchend",isDevice:"mouseup"},cancel:{isPointer:"pointercancel",isTouch:"touchcancel",isDevice:"mouseleave"}};return e.isPointer?i[""+t].isPointer:e.isTouch?i[""+t].isTouch+(e.isDevice?"":" "+i[""+t].isDevice):i[""+t].isDevice},e.getTouchStartEvent=function(){return e.getEvent("start")},e.getTouchEndEvent=function(){return e.getEvent("end")},e.getTouchMoveEvent=function(){return e.getEvent("move")},e.getTouchCancelEvent=function(){return e.getEvent("cancel")},e.isSafari=function(){return e.isDevice&&e.isIos&&e.isTouch&&"undefined"!=typeof window&&-1===window.navigator.userAgent.toLowerCase().indexOf("iphone")&&window.navigator.userAgent.toLowerCase().indexOf("safari")>-1},e.getValue=function(t,i){var r="undefined"!=typeof window?window.browserDetails:{};return"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1&&!0===e.isTouch&&!vt.CHROME.test(navigator.userAgent)&&(r.isIos=!0,r.isDevice=!0,r.isTouch=!0,r.isPointer=!0),void 0===r[""+t]?r[""+t]=i.test(e.userAgent):r[""+t]},Object.defineProperty(e,"userAgent",{get:function(){return e.uA},set:function(t){e.uA=t,window.browserDetails={}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"info",{get:function(){return qe(window.browserDetails.info)?window.browserDetails.info=e.extractBrowserDetail():window.browserDetails.info},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isIE",{get:function(){return e.getValue("isIE",Nt)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isTouch",{get:function(){return qe(window.browserDetails.isTouch)?window.browserDetails.isTouch="ontouchstart"in window.navigator||window&&window.navigator&&window.navigator.maxTouchPoints>0||"ontouchstart"in window:window.browserDetails.isTouch},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isPointer",{get:function(){return qe(window.browserDetails.isPointer)?window.browserDetails.isPointer="pointerEnabled"in window.navigator:window.browserDetails.isPointer},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isMSPointer",{get:function(){return qe(window.browserDetails.isMSPointer)?window.browserDetails.isMSPointer="msPointerEnabled"in window.navigator:window.browserDetails.isMSPointer},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isDevice",{get:function(){return e.getValue("isDevice",yt)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isIos",{get:function(){return e.getValue("isIos",Dt)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isIos7",{get:function(){return e.getValue("isIos7",It)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isAndroid",{get:function(){return e.getValue("isAndroid",St)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isWebView",{get:function(){return qe(window.browserDetails.isWebView)?(window.browserDetails.isWebView=!(qe(window.cordova)&&qe(window.PhoneGap)&&qe(window.phonegap)&&"object"!==window.forge),window.browserDetails.isWebView):window.browserDetails.isWebView},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isWindows",{get:function(){return e.getValue("isWindows",bt)},enumerable:!0,configurable:!0}),Object.defineProperty(e,"touchStartEvent",{get:function(){return qe(window.browserDetails.touchStartEvent)?window.browserDetails.touchStartEvent=e.getTouchStartEvent():window.browserDetails.touchStartEvent},enumerable:!0,configurable:!0}),Object.defineProperty(e,"touchMoveEvent",{get:function(){return qe(window.browserDetails.touchMoveEvent)?window.browserDetails.touchMoveEvent=e.getTouchMoveEvent():window.browserDetails.touchMoveEvent},enumerable:!0,configurable:!0}),Object.defineProperty(e,"touchEndEvent",{get:function(){return qe(window.browserDetails.touchEndEvent)?window.browserDetails.touchEndEvent=e.getTouchEndEvent():window.browserDetails.touchEndEvent},enumerable:!0,configurable:!0}),Object.defineProperty(e,"touchCancelEvent",{get:function(){return qe(window.browserDetails.touchCancelEvent)?window.browserDetails.touchCancelEvent=e.getTouchCancelEvent():window.browserDetails.touchCancelEvent},enumerable:!0,configurable:!0}),e.uA="undefined"!=typeof navigator?navigator.userAgent:"",e}(),Ot=function(){function e(){}return e.addOrGetEventData=function(e){return"__eventList"in e?e.__eventList.events:(e.__eventList={},e.__eventList.events=[])},e.add=function(t,i,r,n,o){var s,a,c,h,u=e.addOrGetEventData(t);o?(a=r,c=o,s=function(){var e=this,t=arguments;clearTimeout(h),h=setTimeout(function(){return h=null,a.apply(e,t)},c)}):s=r,n&&(s=s.bind(n));for(var l=i.split(" "),p=0;p<l.length;p++)u.push({name:l[parseInt(p.toString(),10)],listener:r,debounce:s}),wt.isIE?t.addEventListener(l[parseInt(p.toString(),10)],s):t.addEventListener(l[parseInt(p.toString(),10)],s,{passive:!1});return s},e.remove=function(t,i,r){for(var n=e.addOrGetEventData(t),o=i.split(" "),s=function(e){var i,s=-1;n&&0!==n.length&&n.some(function(t,n){return t.name===o[parseInt(e.toString(),10)]&&t.listener===r&&(s=n,i=t.debounce,!0)}),-1!==s&&n.splice(s,1),i&&t.removeEventListener(o[parseInt(e.toString(),10)],i)},a=0;a<o.length;a++)s(a)},e.clearEvents=function(t){var i,r;r=Ge([],r,i=e.addOrGetEventData(t));for(var n=0;n<r.length;n++){var o=r[parseInt(n.toString(),10)];t.removeEventListener(o.name,o.debounce),i.shift()}},e.trigger=function(t,i,r){for(var n=0,o=e.addOrGetEventData(t);n<o.length;n++){var s=o[n];s.name===i&&s.debounce.call(this,r)}},e}(),Tt=/^svg|^path|^g/;function Lt(e,t){var i=Tt.test(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return void 0===t||(i.innerHTML=t.innerHTML?t.innerHTML:"",void 0!==t.className&&(i.className=t.className),void 0!==t.id&&(i.id=t.id),void 0!==t.styles&&i.setAttribute("style",t.styles),void 0!==t.attrs&&function(e,t){for(var i=Object.keys(t),r=e,n=0,o=i;n<o.length;n++){var s=o[n];if(Be(r)){var a=s;"tabindex"===s&&(a="tabIndex"),r.attributes[""+a]=t[""+s]}else r.setAttribute(s,t[""+s])}}(i,t.attrs)),i}function At(e,t){for(var i=xt(t),r=RegExp,n=0,o=e;n<o.length;n++)for(var s=o[n],a=0,c=i;a<c.length;a++){var h=c[a];if(Be(s)){var u=Ye("attributes.className",s);He(u)?Re("attributes.className",h,s):new r("\\b"+h+"\\b","i").test(u)||Re("attributes.className",u+" "+h,s)}else s.classList.contains(h)||s.classList.add(h)}return e}function Ct(e,t){for(var i=xt(t),r=0,n=e;r<n.length;r++){var o=n[r],s=Be(o);if(s?Ye("attributes.className",o):""!==o.className)for(var a=0,c=i;a<c.length;a++){var h=c[a];if(s){var u=Ye("attributes.className",o).split(" "),l=u.indexOf(h);-1!==l&&u.splice(l,1),Re("attributes.className",u.join(" "),o)}else o.classList.remove(h)}}return e}function xt(e){var t=[];return"string"==typeof e?t.push(e):t=e,t}function Et(e){var t=e;return""===t.style.visibility&&t.offsetWidth>0}function kt(e,t,i){return void 0===t&&(t=document),e=Pt(e),t.querySelector(e)}function Pt(e){var t=/(!|"|\$|%|&|'|\(|\)|\*|\/|:|;|<|=|\?|@|\]|\^|`|{|}|\||\+|~)/g;if(e.match(/#[0-9]/g)||e.match(t)){for(var i=e.split(","),r=0;r<i.length;r++){for(var n=i[parseInt(r.toString(),10)].split(" "),o=0;o<n.length;o++)if(n[parseInt(o.toString(),10)].indexOf("#")>-1&&!n[parseInt(o.toString(),10)].match(/\[.*\]/)){var s=n[parseInt(o.toString(),10)].split("#");if(s[1].match(/^\d/)||s[1].match(t)){var a=n[parseInt(o.toString(),10)].split(".");a[0]=a[0].replace(/#/,"[id='")+"']",n[parseInt(o.toString(),10)]=a.join(".")}}i[parseInt(r.toString(),10)]=n.join(" ")}return i.join(",")}return e}function Ut(e,t){var i=e;if("function"==typeof i.closest)return i.closest(t);for(;i&&1===i.nodeType;){if(Yt(i,t))return i;i=i.parentNode}return null}function Qt(e,t){void 0!==t&&Object.keys(t).forEach(function(i){e.style[i]=t[i]})}function Yt(e,t){var i=e.matches||e.msMatchesSelector||e.webkitMatchesSelector;return i?i.call(e,t):-1!==[].indexOf.call(document.querySelectorAll(t),e)}var Rt=new RegExp("]"),Vt=function(){function e(e,t){this.isRendered=!1,this.isComplexArraySetter=!1,this.isServerRendered=!1,this.allowServerDataBinding=!0,this.isProtectedOnChange=!0,this.properties={},this.changedProperties={},this.oldProperties={},this.bulkChanges={},this.refreshing=!1,this.ignoreCollectionWatch=!1,this.finalUpdate=function(){},this.childChangedProperties={},this.modelObserver=new pt(this),qe(t)||(this.element="string"==typeof t?document.querySelector(t):t,He(this.element)||(this.isProtectedOnChange=!1,this.addInstance())),qe(e)||this.setProperties(e,!0),this.isDestroyed=!1}return e.prototype.setProperties=function(e,t){var i=this.isProtectedOnChange;this.isProtectedOnChange=!!t,We(this,e),!0!==t&&(We(this.changedProperties,e),this.dataBind()),this.finalUpdate(),this.changedProperties={},this.oldProperties={},this.isProtectedOnChange=i},e.callChildDataBind=function(e,t){for(var i=0,r=Object.keys(e);i<r.length;i++){var n=r[i];if(t[""+n]instanceof Array)for(var o=0,s=t[""+n];o<s.length;o++){var a=s[o];void 0!==a.dataBind&&a.dataBind()}else t[""+n].dataBind()}},e.prototype.clearChanges=function(){this.finalUpdate(),this.changedProperties={},this.oldProperties={},this.childChangedProperties={}},e.prototype.dataBind=function(){if(e.callChildDataBind(this.childChangedProperties,this),Object.getOwnPropertyNames(this.changedProperties).length){var t=this.isProtectedOnChange,i=this.changedProperties,r=this.oldProperties;this.clearChanges(),this.isProtectedOnChange=!0,this.onPropertyChanged(i,r),this.isProtectedOnChange=t}},e.prototype.serverDataBind=function(e){},e.prototype.saveChanges=function(e,t,i){this.isProtectedOnChange||(this.oldProperties[""+e]=i,this.changedProperties[""+e]=t,this.finalUpdate(),this.finalUpdate=Qe(this.dataBind.bind(this)))},e.prototype.addEventListener=function(e,t){this.modelObserver.on(e,t)},e.prototype.removeEventListener=function(e,t){this.modelObserver.off(e,t)},e.prototype.trigger=function(e,t,i,r){var n=this;if(!0!==this.isDestroyed){var o=this.isProtectedOnChange;this.isProtectedOnChange=!1;var s=this.modelObserver.notify(e,t,i,r);if(Rt.test(e)){var a=Ye(e,this);if(a){if(window.Blazor){var c=a.call(this,t);c&&"function"==typeof c.then?i?c.then(function(e){i&&(e="string"==typeof e&&n.modelObserver.isJson(e)?JSON.parse(e):e,i.call(n,e))}).catch(function(e){r&&(e="string"==typeof e&&n.modelObserver.isJson(e)?JSON.parse(e):e,r.call(n,e))}):s=c:i&&i.call(this,t)}else a.call(this,t),i&&i.call(this,t)}else i&&i.call(this,t)}return this.isProtectedOnChange=o,s}},e.prototype.addInstance=function(){var e="e-"+this.getModuleName().toLowerCase();At([this.element],["e-lib",e]),He(this.element.ej2_instances)?Re("ej2_instances",[this],this.element):this.element.ej2_instances.push(this)},e.prototype.destroy=function(){var e=this;this.element.ej2_instances=this.element.ej2_instances?this.element.ej2_instances.filter(function(t){return t!==e}):[],Ct([this.element],["e-"+this.getModuleName()]),0===this.element.ej2_instances.length&&Ct([this.element],["e-lib"]),this.clearChanges(),this.modelObserver.destroy(),this.isDestroyed=!0},e}();function Ft(e,t,i,r){return e.properties.hasOwnProperty(t)&&e.properties[t]instanceof r||(e.properties[""+t]=Ue(r,[e,t,i])),e.properties[""+t]}function Bt(e,t){return function(){return this.properties.hasOwnProperty(t)||(this.properties[""+t]=e),this.properties[""+t]}}function Wt(e,t){return function(i){if(this.properties[""+t]!==i){var r=this.properties.hasOwnProperty(t)?this.properties[t]:e;this.saveChanges(t,i,r),this.properties[""+t]=i}}}function Gt(e,t,i){return function(){return Ft(this,t,e,i)}}function Ht(e,t,i){return function(r){Ft(this,t,e,i).setProperties(r)}}function qt(e){return function(t,i){var r={set:Wt(e,i),get:Bt(e,i),enumerable:!0,configurable:!0};Object.defineProperty(t,i,r),Kt(t,i,"prop",e)}}function _t(e,t){return function(i,r){var n={set:Ht(e,r,t),get:Gt(e,r,t),enumerable:!0,configurable:!0};Object.defineProperty(i,r,n),Kt(i,r,"complexProp",e,t)}}function Jt(){return function(e,t){var i={set:function(e){var i=this.properties[""+t];if(i!==e){var r=Xt(this,t);!1===qe(i)&&r.context.removeEventListener(r.prefix,i),r.context.addEventListener(r.prefix,e),this.properties[""+t]=e}},get:Bt(void 0,t),enumerable:!0,configurable:!0};Object.defineProperty(e,t,i),Kt(e,t,"event")}}function Zt(e){}function Kt(e,t,i,r,n){qe(e.propList)&&(e.propList={props:[],complexProps:[],colProps:[],events:[],propNames:[],complexPropNames:[],colPropNames:[],eventNames:[]}),e.propList[i+"s"].push({propertyName:t,defaultValue:r,type:n}),e.propList[i+"Names"].push(t)}function Xt(e,t){if(!1===e.hasOwnProperty("parentObj"))return{context:e,prefix:t};var i=Ye("propName",e);return i&&(t=i+"-"+t),Xt(Ye("parentObj",e),t)}var $t,ei,ti,ii=($t=function(e,t){return $t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},$t(e,t)},function(e,t){function i(){this.constructor=e}$t(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),ri=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};!function(e){function t(t){var i=e.call(this,t,void 0)||this;return i.easing={ease:"cubic-bezier(0.250, 0.100, 0.250, 1.000)",linear:"cubic-bezier(0.250, 0.250, 0.750, 0.750)",easeIn:"cubic-bezier(0.420, 0.000, 1.000, 1.000)",easeOut:"cubic-bezier(0.000, 0.000, 0.580, 1.000)",easeInOut:"cubic-bezier(0.420, 0.000, 0.580, 1.000)",elasticInOut:"cubic-bezier(0.5,-0.58,0.38,1.81)",elasticIn:"cubic-bezier(0.17,0.67,0.59,1.81)",elasticOut:"cubic-bezier(0.7,-0.75,0.99,1.01)"},i}var i;ii(t,e),i=t,t.prototype.animate=function(e,t){t=t||{};var r,n,o=this.getModel(t);if("string"==typeof e)for(var s=0,a=Array.prototype.slice.call((r=e,void 0===(n=document)&&(n=document),r=Pt(r),n.querySelectorAll(r)));s<a.length;s++){var c=a[s];o.element=c,i.delayAnimation(o)}else o.element=e,i.delayAnimation(o)},t.stop=function(e,t){e.style.animation="",e.removeAttribute("e-animate");var i=e.getAttribute("e-animation-id");if(i){var r=parseInt(i,10);cancelAnimationFrame(r),e.removeAttribute("e-animation-id")}t&&t.end&&t.end.call(this,t)},t.delayAnimation=function(e){ei===ti.Disable?(e.begin&&e.begin.call(this,e),e.end&&e.end.call(this,e)):e.delay?setTimeout(function(){i.applyAnimation(e)},e.delay):i.applyAnimation(e)},t.applyAnimation=function(e){var t=this;e.timeStamp=0;var i=0,r=0,n=0,o=e.duration;e.element.setAttribute("e-animate","true");var s=function(a){try{if(a){n=0===n?a:n,e.timeStamp=a+e.timeStamp-n,n=a,!i&&e.begin&&e.begin.call(t,e),i+=1;var c=e.timeStamp/i;e.timeStamp<o&&e.timeStamp+c<o&&e.element.getAttribute("e-animate")?(e.element.style.animation=e.name+" "+e.duration+"ms "+e.timingFunction,e.progress&&e.progress.call(t,e),requestAnimationFrame(s)):(cancelAnimationFrame(r),e.element.removeAttribute("e-animation-id"),e.element.removeAttribute("e-animate"),e.element.style.animation="",e.end&&e.end.call(t,e))}else r=requestAnimationFrame(s),e.element.setAttribute("e-animation-id",r.toString())}catch(i){cancelAnimationFrame(r),e.element.removeAttribute("e-animation-id"),e.fail&&e.fail.call(t,i)}};s()},t.prototype.getModel=function(e){return{name:e.name||this.name,delay:e.delay||this.delay,duration:void 0!==e.duration?e.duration:this.duration,begin:e.begin||this.begin,end:e.end||this.end,fail:e.fail||this.fail,progress:e.progress||this.progress,timingFunction:this.easing[e.timingFunction]?this.easing[e.timingFunction]:e.timingFunction||this.easing[this.timingFunction]}},t.prototype.onPropertyChanged=function(e,t){},t.prototype.getModuleName=function(){return"animation"},t.prototype.destroy=function(){},ri([qt("FadeIn")],t.prototype,"name",void 0),ri([qt(400)],t.prototype,"duration",void 0),ri([qt("ease")],t.prototype,"timingFunction",void 0),ri([qt(0)],t.prototype,"delay",void 0),ri([Jt()],t.prototype,"progress",void 0),ri([Jt()],t.prototype,"begin",void 0),ri([Jt()],t.prototype,"end",void 0),ri([Jt()],t.prototype,"fail",void 0),t=i=ri([Zt],t)}(Vt),function(e){e.Default="Default",e.Enable="Enable",e.Disable="Disable"}(ti||(ti={}));var ni,oi=function(){function e(e){this.loadedModules=[],this.parent=e}return e.prototype.inject=function(e,t){var i=e.length;if(0!==i){this.loadedModules.length&&this.clearUnusedModule(e);for(var r=0;r<i;r++)for(var n=e[parseInt(r.toString(),10)],o=0,s=t;o<s.length;o++){var a=s[o],c=n.member;if(a&&a.prototype.getModuleName()===n.member&&!this.isModuleLoaded(c)){var h=Ue(a,n.args),u=this.getMemberName(c);n.isProperty?Re(u,a,this.parent):Re(u,h,this.parent);var l=n;l.member=u,this.loadedModules.push(l)}}}else this.clean()},e.prototype.clean=function(){for(var e=0,t=this.loadedModules;e<t.length;e++){var i=t[e];i.isProperty||Ye(i.member,this.parent).destroy()}this.loadedModules=[]},e.prototype.getNonInjectedModules=function(e){var t=this;return e.filter(function(e){return!t.isModuleLoaded(e.member)})},e.prototype.clearUnusedModule=function(e){for(var t=this,i=e.map(function(e){return t.getMemberName(e.member)}),r=0,n=this.loadedModules.filter(function(e){return-1===i.indexOf(e.member)});r<n.length;r++){var o=n[r];o.isProperty||Ye(o.member,this.parent).destroy(),this.loadedModules.splice(this.loadedModules.indexOf(o),1),Ve(this.parent,o.member)}},e.prototype.getMemberName=function(e){return e[0].toLowerCase()+e.substring(1)+"Module"},e.prototype.isModuleLoaded=function(e){for(var t=0,i=this.loadedModules;t<i.length;t++){if(i[t].member===this.getMemberName(e))return!0}return!1},e}(),si=function(){function e(e,t,i,r){this.isComplexArraySetter=!1,this.properties={},this.changedProperties={},this.childChangedProperties={},this.oldProperties={},this.finalUpdate=function(){},this.callChildDataBind=Ye("callChildDataBind",Vt),this.parentObj=e,this.controlParent=this.parentObj.controlParent||this.parentObj,this.propName=t,this.isParentArray=r,this.setProperties(i,!0)}return e.prototype.updateChange=function(e,t){!0===e?this.parentObj.childChangedProperties[""+t]=e:delete this.parentObj.childChangedProperties[""+t],this.parentObj.updateChange&&this.parentObj.updateChange(e,this.parentObj.propName)},e.prototype.updateTimeOut=function(){if(this.parentObj.updateTimeOut)this.parentObj.finalUpdate(),this.parentObj.updateTimeOut();else{var e=setTimeout(this.parentObj.dataBind.bind(this.parentObj));this.finalUpdate=function(){clearTimeout(e)}}},e.prototype.clearChanges=function(){this.finalUpdate(),this.updateChange(!1,this.propName),this.oldProperties={},this.changedProperties={}},e.prototype.setProperties=function(e,t){!0===t?(We(this,e),this.updateChange(!1,this.propName),this.clearChanges()):We(this,e)},e.prototype.dataBind=function(){if(this.callChildDataBind(this.childChangedProperties,this),this.isParentArray){var e=this.parentObj[this.propName].indexOf(this);Object.keys(this.changedProperties).length&&(Re(this.propName+"."+e,this.changedProperties,this.parentObj.changedProperties),Re(this.propName+"."+e,this.oldProperties,this.parentObj.oldProperties))}else this.parentObj.changedProperties[this.propName]=this.changedProperties,this.parentObj.oldProperties[this.propName]=this.oldProperties;this.clearChanges()},e.prototype.saveChanges=function(e,t,i,r){this.controlParent.isProtectedOnChange||(r||this.serverDataBind(e,t,!0),this.oldProperties[""+e]=i,this.changedProperties[""+e]=t,this.updateChange(!0,this.propName),this.finalUpdate(),this.updateTimeOut())},e.prototype.serverDataBind=function(e,t,i,r){},e.prototype.getParentKey=function(e){var t="",i=this.propName;if(this.isParentArray){t=this.parentObj[this.propName].indexOf(this);var r=this.parentObj[this.propName].length;r=e?r:r>0?r-1:0,i+=t=-1!==t?"-"+t:"-"+r}return this.controlParent!==this.parentObj&&(i=this.parentObj.getParentKey()+"."+this.propName+t),i},e}(),ai=["grid","pivotview","treegrid","spreadsheet","rangeNavigator","DocumentEditor","listbox","inplaceeditor","PdfViewer","richtexteditor","DashboardLayout","chart","stockChart","circulargauge","diagram","heatmap","lineargauge","maps","slider","smithchart","barcode","sparkline","treemap","bulletChart","kanban","daterangepicker","schedule","gantt","signature","query-builder","drop-down-tree","carousel","filemanager","uploader","accordion","tab","treeview"],ci=[115,121,110,99,102,117,115,105,111,110,46,105,115,76,105,99,86,97,108,105,100,97,116,101,100],hi=function(){function e(e){var t;this.isValidated=!1,this.isLicensed=!0,this.version="25",this.platform=/JavaScript|ASPNET|ASPNETCORE|ASPNETMVC|FileFormats|essentialstudio/i,this.errors={noLicense:"<span>This application was built using a trial version of Syncfusion Essential Studio. To remove the license validation message permanently, a valid license key must be included.</span>",trailExpired:"<span>This application was built using a trial version of Syncfusion Essential Studio. To remove the license validation message permanently, a valid license key must be included.</span>",versionMismatched:"<span>The included Syncfusion license key is invalid.</span>",platformMismatched:"<span>The included Syncfusion license key is invalid.</span>",invalidKey:"<span>The included Syncfusion license key is invalid.</span>"},this.manager=(t=null,{setKey:function(e){t=e},getKey:function(){return t}}),this.npxManager={getKey:function(){return"npxKeyReplace"}},this.manager.setKey(e)}return e.prototype.validate=function(){if(!this.isValidated&&Fe&&!Ye(li(ci),Fe)&&!Ye("Blazor",Fe)){var e=void 0,t=void 0;if(this.manager&&this.manager.getKey()||this.npxManager&&"npxKeyReplace"!==this.npxManager.getKey()){var i=this.getInfoFromKey();if(i&&i.length)for(var r=0,n=i;r<n.length;r++){var o=n[r];if(!this.platform.test(o.platform)||o.invalidPlatform)e=this.errors.platformMismatched;else if(-1===o.version.indexOf(this.version))e=(e=(e=this.errors.versionMismatched).replace("##LicenseVersion",o.version)).replace("##Requireversion",this.version+".x");else if(o.expiryDate){var s=new Date(o.expiryDate),a=new Date;if(!(s!==a&&s<a))break;e=this.errors.trailExpired}}else e=this.errors.invalidKey}else{var c=Ye(li([115,121,110,99,102,117,115,105,111,110,46,108,105,99,101,110,115,101,67,111,110,116,101,110,116]),Fe);t=Ye(li([115,121,110,99,102,117,115,105,111,110,46,99,108,97,105,109,65,99,99,111,117,110,116,85,82,76]),Fe),e=c&&""!==c?c:this.errors.noLicense}if(e&&"undefined"!=typeof document&&!He(document)){var h=Lt("div",{innerHTML:"<img src='data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9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\n height: 24px;\"/>"+e+' <a style="text-decoration: none;color: #0D6EFD;font-weight: 500;" href='+(ni=t&&""!==t?t:"https://www.syncfusion.com/account/claim-license-key?pl=SmF2YVNjcmlwdA==&vs=MjU=&utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information")+">Claim your free account</a>"});h.setAttribute("style","position: fixed;\n top: 10px;\n left: 10px;\n right: 10px;\n font-size: 14px;\n background: #EEF2FF;\n color: #222222;\n z-index: 999999999;\n text-align: left;\n border: 1px solid #EEEEEE;\n padding: 10px 11px 10px 50px;\n border-radius: 8px;\n font-family: Helvetica Neue, Helvetica, Arial;"),document.body.appendChild(h),this.isLicensed=!1}this.isValidated=!0,Re(li(ci),this.isValidated,Fe)}return this.isLicensed},e.prototype.getDecryptedData=function(e){try{return atob(e)}catch(e){return""}},e.prototype.getInfoFromKey=function(){try{var e="",t=[5439488,7929856,5111808,6488064,4587520,7667712,5439488,6881280,5177344,7208960,4194304,4456448,6619136,7733248,5242880,7077888,6356992,7602176,4587520,7274496,7471104,7143424],i=[],r=[],n=!1,o=!1;this.manager.getKey()?e=this.manager.getKey():(o=!0,e=this.npxManager.getKey().split("npxKeyReplace")[1]);for(var s=e.split(";"),a=0,c=s;a<c.length;a++){var h=c[a],u=this.getDecryptedData(h);if(u){var l=0,p="";if(o){var d=u[u.length-1],g=[];for(f=0;f<u.length;f++)g[""+f]=u[""+f].charCodeAt(0)-d.charCodeAt(0);for(f=0;f<g.length;f++)p+=String.fromCharCode(g[parseInt(f.toString(),10)])}else for(var f=0;f<u.length;f++,l++){l===t.length&&(l=0);var M=u.charCodeAt(f);p+=String.fromCharCode(M^t[parseInt(l.toString(),10)]>>16)}this.platform.test(p)?(i=p.split(";"),n=!1,i.length>3&&r.push({platform:i[0],version:i[1],expiryDate:i[2]})):p&&p.split(";").length>3&&(n=!0)}}return n&&!r.length?[{invalidPlatform:n}]:r.length?r:null}catch(e){return null}},e}(),ui=new hi;function li(e){for(var t="",i=0,r=e;i<r.length;i++){var n=r[i];t+=String.fromCharCode(n)}return t}var pi,di=function(e){return e&&function(e){ui=new hi(e)}(e),ui.validate()},gi=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),fi=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},Mi=0,mi=0,yi=0,Ni=!0,ji=!1;!function(e){function t(t,i){var r=e.call(this,t,i)||this;return r.randomId=function(){if("undefined"!=typeof window){var e=new Uint16Array(5);return(window.msCrypto||window.crypto).getRandomValues(e)}}(),r.isStringTemplate=!1,r.needsID=!1,r.isReactHybrid=!1,He(r.enableRtl)&&r.setProperties({enableRtl:false},!0),He(r.locale)&&r.setProperties({locale:"en-US"},!0),r.moduleLoader=new oi(r),r.localObserver=new pt(r),dt.on("notifyExternalChange",r.detectFunction,r,r.randomId),"undefined"==typeof window||"undefined"==typeof document||di()||-1!==ai.indexOf(r.getModuleName())&&(yi+=1)>5&&(Ni=!1),qe(i)||r.appendTo(),r}gi(t,e),t.prototype.requiredModules=function(){return[]},t.prototype.destroy=function(){this.isDestroyed||(this.enablePersistence&&(this.setPersistData(),this.detachUnloadEvent()),this.localObserver.destroy(),this.refreshing||(Ct([this.element],["e-control"]),this.trigger("destroyed",{cancel:!1}),e.prototype.destroy.call(this),this.moduleLoader.clean(),dt.off("notifyExternalChange",this.detectFunction,this.randomId)))},t.prototype.refresh=function(){this.refreshing=!0,this.moduleLoader.clean(),this.destroy(),this.clearChanges(),this.localObserver=new pt(this),this.preRender(),this.injectModules(),this.render(),this.refreshing=!1},t.prototype.accessMount=function(){this.mount&&!this.isReactHybrid&&this.mount()},t.prototype.getRootElement=function(){return this.isReactHybrid?this.actualElement:this.element},t.prototype.getLocalData=function(){var e=this.getModuleName()+this.element.id;return window.localStorage.getItem(e)},t.prototype.attachUnloadEvent=function(){this.handleUnload=this.handleUnload.bind(this),window.addEventListener("unload",this.handleUnload)},t.prototype.handleUnload=function(){this.setPersistData()},t.prototype.detachUnloadEvent=function(){window.removeEventListener("unload",this.handleUnload)},t.prototype.appendTo=function(t){if(He(t)||"string"!=typeof t?He(t)||(this.element=t):this.element=kt(t,document),!He(this.element)){var i="e-"+this.getModuleName().toLowerCase();At([this.element],["e-control",i]),this.isProtectedOnChange=!1,this.needsID&&!this.element.id&&(this.element.id=this.getUniqueID(this.getModuleName())),this.enablePersistence&&(this.mergePersistData(),this.attachUnloadEvent());var r=Ye("ej2_instances",this.element);r&&-1!==r.indexOf(this)||e.prototype.addInstance.call(this),this.preRender(),this.injectModules();var n={schedule:"all",diagram:"all",PdfViewer:"all",grid:["logger"],richtexteditor:["link","table","image","audio","video","formatPainter","emojiPicker","pasteCleanup","htmlEditor","toolbar"],treegrid:["filter"],gantt:["tooltip"],chart:["Export","Zoom"],accumulationchart:["Export"]},o=this.getModuleName();if(this.requiredModules&&(!n[""+o]||"all"!==n[""+o]))for(var s=this.requiredModules(),a=0,c=this.moduleLoader.getNonInjectedModules(s);a<c.length;a++){var h=c[a],u=h.name?h.name:h.member;if(!n[""+o]||-1===n[""+o].indexOf(h.member)){var l=o.charAt(0).toUpperCase()+o.slice(1);console.warn('[WARNING] :: Module "'+u+'" is not available in '+l+" component! You either misspelled the module name or forgot to load it.")}}Ni||ji||(!function(){var e='\n <div style="\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 99999;\n ">\n <div style="\n background: #FFFFFF;\n height: 455px;\n width: 840px;\n font-family: Helvetica Neue, Helvetica, Arial;\n color: #000000;\n box-shadow: 0px 4.8px 14.4px rgb(0 0 0 / 18%), 0px 25.6px 57.6px rgb(0 0 0 / 22%);\n display: block;\n margin: 8% auto;\n border-radius: 20px;\n ">\n <div style="\n position: absolute;\nwidth: 838px;\nheight: 62px;\nbackground-color: #F9F9F9;\nborder: 1px solid #EEEEEE;\nborder-top-left-radius: 20px;\nborder-top-right-radius: 20px;\n">\n <img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQ2IiBoZWlnaHQ9IjMyIiB2aWV3Qm94PSIwIDAgMTQ2IDMyIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNNDAuNTk2NSAxNS4wMDc4SDMyLjQyNUMzMS41NTU3IDE1LjAwNzggMzAuOTAzNyAxNS4xODEyIDMwLjUxMjUgMTUuNDg0NkMzMC4xMjEzIDE1LjgzMTQgMjkuOTA0IDE2LjMwODIgMjkuOTA0IDE3LjA0NTFDMjkuOTA0IDE3LjYwODYgMzAuMDc3OCAxOC4wNDIxIDMwLjQyNTYgMTguMzAyMkMzMC43NzMzIDE4LjYwNTYgMzEuMjk0OSAxOC43MzU2IDMxLjk5MDMgMTguNzM1NkgzNi4zMzY5QzM4LjExODkgMTguNzM1NiAzOS40MjI5IDE5LjA4MjQgNDAuMTYxOCAxOS43MzI2QzQwLjk0NDIgMjAuNDI2MiA0MS4yOTE5IDIxLjU1MzIgNDEuMjkxOSAyMy4xMTM3QzQxLjI5MTkgMjQuNzE3NiA0MC44NTcyIDI1Ljg4OCAzOS45ODc5IDI2LjY2ODJDMzkuMTE4NiAyNy40MDUxIDM3LjcyNzcgMjcuNzk1MyAzNS44NTg3IDI3Ljc5NTNIMjcuMDc4N1YyNS4wMjFIMzUuMzM3MkMzNi4yOTM0IDI1LjAyMSAzNi45NDU0IDI0Ljg5MSA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cjwvc3ZnPgo=" style="\n text-align: left;\n width: 146px;\n position: absolute;\n top: 14px;\n left: 31px;\n">\n </div>\n <div style="\n position: relative;\n top: 80px;\n left: 32px;\n font-size: 20px;\n text-align: left;\n font-weight: 700;\n letter-spacing: 0.02em;\n font-style: normal;\n line-height: 125%;\n ">Claim your FREE account and get a key in less than a minute</div>\n <ul style="\n font-size: 15px;\n font-weight: 400;\n color: #333333;\n letter-spacing: 0.01em;\n position: relative;\n left: 32px;\n top: 88px;\n line-height: 180%;\n ">\n <li><span>Access to a 30-day free trial of any of our products.</span></li>\n <li><span>Access to 24x5 support by developers via the <a href="https://support.syncfusion.com/create?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">support tickets</a>, <a href="https://www.syncfusion.com/forums?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">forum</a>, <a href="https://www.syncfusion.com/feedback?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information\n " style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">feature & feedback page</a> and chat.</span></li>\n <li><span>200+ <a href="https://www.syncfusion.com/succinctly-free-ebooks?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">ebooks </a>on the latest technologies, industry trends, and research topics.</span>\n </li>\n <li><span>Largest collection of over 7,000 flat and wireframe icons for free with Syncfusion <a href="https://www.syncfusion.com/downloads/metrostudio?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information\n " style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">Metro Studio.</a></span></li>\n <li><span>Free and unlimited access to Syncfusion technical <a href="https://www.syncfusion.com/blogs/?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information\n " style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">blogs</a> and <a href="https://www.syncfusion.com/resources/techportal/whitepapers?utm_source=es_license_validation_banner&utm_medium=listing&utm_campaign=license-information" style="text-decoration: none;\n color: #0D6EFD;\n font-weight: 500;">whitepapers.</a></span></li>\n </ul>\n <div style="\n font-size: 18px;\n font-weight: 700;\n position: relative;\n line-height: 125%;\n letter-spacing: 0.02em;\n top: 90px;\n left: 32px;\n ">Syncfusion is trusted by 29,000+ businesses worldwide</div>\n <img src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODIwIiBoZWlnaHQ9IjU2IiB2aWV3Qm94PSIwIDAgODIwIDU2IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00MjcuNjE3IDIyLjU2NTlWMjQuNzIyNkM0MjYuNTU4IDI0LjM2MzggNDI1LjM5OCAyNC4xNTQ0IDQyNC40NzQgMjQuMTU0NEM0MjMuMzMzIDI0LjE1NDQgNDIyLjY5OCAyNC40OTEyIDQyMi42OTggMjUuMDk2M0M0MjIuNjk4IDI1LjQ4MjQgNDIyLjk3NiAyNS43MzgzIDQyMy43NzMgMjYuMDg1NEw0MjUuOTE3IDI3LjAxNzRDNDI3LjYzMyAyNy43NjM5IDQyOC40OTcgMjguODUzIDQyOC40OTcgMzAuMjY4MUM0MjguNDk3IDMyLjQ1MjIgNDI2LjU0NiAzMy44MyA0MjMuNDUyIDMzLjgzQzQyMi4zMjQgMzMuODMgNDIxLjAxOCAzMy42NzM2IDQxOS42MzYgMzMuMzcwOVYzMS4xNDE2QzQyMS4wMDYgMzEuNTAyOCA0MjIuMjYyIDMxLjY5NTcgNDIzLjIzOSAzMS42OTU3QzQyNC41MTggMzEuNjk1NyA0MjUuMjAzIDMxLjM1MDYgNDI1LjIwMyAzMC43MDc0QzQyNS4yMDMgMzAuMzIwOCA0MjQuOTM1IDMwLjAzNjcgNDI0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M3LjA2MUgyNjEuMTU1VjM3LjA2MVpNMjY1Ljk4NCAzNy4wNjFWMzguNDk3N0gyNzMuMjk1VjM3LjA2MUgyNjUuOTg0WiIgZmlsbD0iIzFGNzBDMSIvPg0KPC9nPg0KPGRlZnM+DQo8Y2xpcFBhdGggaWQ9ImNsaXAwXzU4XzExMSI+DQo8cmVjdCB3aWR0aD0iNDQuNDQ3MyIgaGVpZ2h0PSIyOS42MzE1IiBmaWxsPSJ3aGl0ZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoNzUzLjk1NSAxNC44MTU1KSIvPg0KPC9jbGlwUGF0aD4NCjxjbGlwUGF0aCBpZD0iY2xpcDFfNThfMTExIj4NCjxyZWN0IHdpZHRoPSI3Ni41NDgxIiBoZWlnaHQ9IjE2LjM1MDciIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MjUuNTk5IDIwLjk4ODkpIi8+DQo8L2NsaXBQYXRoPg0KPGNsaXBQYXRoIGlkPSJjbGlwMl81OF8xMTEiPg0KPHJlY3Qgd2lkdGg9IjUyLjEzNzIiIGhlaWdodD0iMjAuOTk4NyIgZmlsbD0id2hpdGUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDIyMS4xNTggMTcuNDk5KSIvPg0KPC9jbGlwUGF0aD4NCjwvZGVmcz4NCjwvc3ZnPg0K" style="\n width: 742.5px;\n position: relative;\n top: 107px;\n left: 32px;\n ">\n <a href='+ni+' style="\n float: left;\n border-radius: 56px;\n background: #0D6EFD;\n padding-top: 8px;\n width: 280px;\n height: 38px;\n text-align: center;\n position: relative;\n top: 127px;\n left: 274px;\n font-size: 16px;\n color: white;\n text-decoration: none;\n letter-spacing: 0.02em;\n ">Claim your FREE account</a>\n <div style="\n font-size: 14px;\n position: relative;\n top: 180px;\n left: 19px;\n letter-spacing: 0.02em;\n font-weight: 500;\n line-height: 125%;\n">have a Syncfusion account? <a href="https://www.syncfusion.com/account/login?ReturnUrl=/account/login" style="text-decoration: none;\ncolor: #0D6EFD;\nfont-weight: 500;">Sign In</a></div>\n </div>\n </div>';if("undefined"!=typeof document&&!He(document)){var t=Lt("div",{innerHTML:e});document.body.appendChild(t)}}(),ji=!0),this.render(),this.mount?this.accessMount():this.trigger("created")}},t.prototype.renderComplete=function(e){this.isRendered=!0},t.prototype.dataBind=function(){this.injectModules(),e.prototype.dataBind.call(this)},t.prototype.on=function(e,t,i){if("string"==typeof e)this.localObserver.on(e,t,i);else for(var r=0,n=e;r<n.length;r++){var o=n[r];this.localObserver.on(o.event,o.handler,o.context)}},t.prototype.off=function(e,t){if("string"==typeof e)this.localObserver.off(e,t);else for(var i=0,r=e;i<r.length;i++){var n=r[i];this.localObserver.off(n.event,n.handler)}},t.prototype.notify=function(e,t){!0!==this.isDestroyed&&this.localObserver.notify(e,t)},t.prototype.getInjectedModules=function(){return this.injectedModules},t.Inject=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.prototype.injectedModules||(this.prototype.injectedModules=[]);for(var i=0;i<e.length;i++)-1===this.prototype.injectedModules.indexOf(e[parseInt(i.toString(),10)])&&this.prototype.injectedModules.push(e[parseInt(i.toString(),10)])},t.prototype.createElement=function(e,t,i){return Lt(e,t)},t.prototype.triggerStateChange=function(e,t){this.isReactHybrid&&(this.setState(),this.currentContext={calls:e,args:t})},t.prototype.injectModules=function(){this.injectedModules&&this.injectedModules.length&&this.moduleLoader.inject(this.requiredModules(),this.injectedModules)},t.prototype.detectFunction=function(e){var t=Object.keys(e);t.length&&(this[t[0]]=e[t[0]])},t.prototype.mergePersistData=function(){var e;He(e=window.localStorage.getItem(this.getModuleName()+this.element.id))||""===e||this.setProperties(JSON.parse(e),!0)},t.prototype.setPersistData=function(){this.isDestroyed||window.localStorage.setItem(this.getModuleName()+this.element.id,this.getPersistData())},t.prototype.renderReactTemplates=function(e){He(e)||e()},t.prototype.clearTemplate=function(e,t){},t.prototype.getUniqueID=function(e){return this.isHistoryChanged()&&(Mi=0),pi=this.pageID(location.href),mi=history.length,e+"_"+pi+"_"+Mi++},t.prototype.pageID=function(e){var t=0;if(0===e.length)return t;for(var i=0;i<e.length;i++){t=(t<<5)-t+e.charCodeAt(i),t&=t}return Math.abs(t)},t.prototype.isHistoryChanged=function(){return pi!==this.pageID(location.href)||mi!==history.length},t.prototype.addOnPersist=function(e){for(var t=this,i={},r=0,n=e;r<n.length;r++){var o,s=n[r];qe(o=Ye(s,this))||Re(s,this.getActualProperties(o),i)}return JSON.stringify(i,function(e,i){return t.getActualProperties(i)})},t.prototype.getActualProperties=function(e){return e instanceof si?Ye("properties",e):e},t.prototype.ignoreOnPersist=function(e){return JSON.stringify(this.iterateJsonProperties(this.properties,e))},t.prototype.iterateJsonProperties=function(e,t){for(var i={},r=function(r){if(-1===t.indexOf(r)){var o=e[r];if("object"!=typeof o||o instanceof Array)i[""+r]=o;else{var s=t.filter(function(e){return new RegExp(r+".").test(e)}).map(function(e){return e.replace(r+".","")});i[""+r]=n.iterateJsonProperties(n.getActualProperties(o),s)}}},n=this,o=0,s=Object.keys(e);o<s.length;o++){r(s[o])}return i},fi([qt(!1)],t.prototype,"enablePersistence",void 0),fi([qt()],t.prototype,"enableRtl",void 0),fi([qt()],t.prototype,"locale",void 0),t=fi([Zt],t)}(Vt),"undefined"!=typeof window&&window.addEventListener("popstate",function(){Mi=0});var Di=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Ii=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},Si={left:0,top:0,bottom:0,right:0},bi={isDragged:!1},zi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Di(t,e),Ii([qt(0)],t.prototype,"left",void 0),Ii([qt(0)],t.prototype,"top",void 0),t}(si);!function(e){function t(t,r){var n=e.call(this,r,t)||this;return n.dragLimit=i.getDefaultPosition(),n.borderWidth=i.getDefaultPosition(),n.padding=i.getDefaultPosition(),n.diffX=0,n.prevLeft=0,n.prevTop=0,n.dragProcessStarted=!1,n.eleTop=0,n.tapHoldTimer=0,n.externalInitialize=!1,n.diffY=0,n.parentScrollX=0,n.parentScrollY=0,n.droppables={},n.bind(),n}var i;Di(t,e),i=t,t.prototype.bind=function(){this.toggleEvents(),wt.isIE&&At([this.element],"e-block-touch"),this.droppables[this.scope]={}},t.getDefaultPosition=function(){return Ge({},Si)},t.prototype.toggleEvents=function(e){var t;qe(this.handle)||(t=kt(this.handle,this.element));var i=this.enableTapHold&&wt.isDevice&&wt.isTouch?this.mobileInitialize:this.initialize;e?Ot.remove(t||this.element,wt.isSafari()?"touchstart":wt.touchStartEvent,i):Ot.add(t||this.element,wt.isSafari()?"touchstart":wt.touchStartEvent,i,this)},t.prototype.mobileInitialize=function(e){var t=this,i=e.currentTarget;this.tapHoldTimer=setTimeout(function(){t.externalInitialize=!0,t.removeTapholdTimer(),t.initialize(e,i)},this.tapHoldThreshold),Ot.add(document,wt.isSafari()?"touchmove":wt.touchMoveEvent,this.removeTapholdTimer,this),Ot.add(document,wt.isSafari()?"touchend":wt.touchEndEvent,this.removeTapholdTimer,this)},t.prototype.removeTapholdTimer=function(){clearTimeout(this.tapHoldTimer),Ot.remove(document,wt.isSafari()?"touchmove":wt.touchMoveEvent,this.removeTapholdTimer),Ot.remove(document,wt.isSafari()?"touchend":wt.touchEndEvent,this.removeTapholdTimer)},t.prototype.getScrollableParent=function(e,t){return He(e)?null:e[{vertical:"scrollHeight",horizontal:"scrollWidth"}[""+t]]>e[{vertical:"clientHeight",horizontal:"clientWidth"}[""+t]]&&("vertical"===t?e.scrollTop>0:e.scrollLeft>0)?("vertical"===t?(this.parentScrollY=this.parentScrollY+(0===this.parentScrollY?e.scrollTop:e.scrollTop-this.parentScrollY),this.tempScrollHeight=e.scrollHeight):(this.parentScrollX=this.parentScrollX+(0===this.parentScrollX?e.scrollLeft:e.scrollLeft-this.parentScrollX),this.tempScrollWidth=e.scrollWidth),He(e)?e:this.getScrollableParent(e.parentNode,t)):this.getScrollableParent(e.parentNode,t)},t.prototype.getScrollableValues=function(){this.parentScrollX=0,this.parentScrollY=0,this.element.classList.contains("e-dialog")&&this.element.classList.contains("e-dlg-modal"),this.getScrollableParent(this.element.parentNode,"vertical"),this.getScrollableParent(this.element.parentNode,"horizontal")},t.prototype.initialize=function(e,t){if(this.currentStateTarget=e.target,!this.isDragStarted()){if(this.isDragStarted(!0),this.externalInitialize=!1,this.target=e.currentTarget||t,this.dragProcessStarted=!1,this.abort){var i=this.abort;"string"==typeof i&&(i=[i]);for(var r=0;r<i.length;r++)if(!He(Ut(e.target,i[parseInt(r.toString(),10)])))return void(this.isDragStarted()&&this.isDragStarted(!0))}this.preventDefault&&!qe(e.changedTouches)&&"touchstart"!==e.type&&e.preventDefault(),this.element.setAttribute("aria-grabbed","true");var n=this.getCoordinates(e);if(this.initialPosition={x:n.pageX,y:n.pageY},!this.clone){var o=this.element.getBoundingClientRect();this.getScrollableValues(),e.clientX===e.pageX&&(this.parentScrollX=0),e.clientY===e.pageY&&(this.parentScrollY=0),this.relativeXPosition=n.pageX-(o.left+this.parentScrollX),this.relativeYPosition=n.pageY-(o.top+this.parentScrollY)}this.externalInitialize?this.intDragStart(e):(Ot.add(document,wt.isSafari()?"touchmove":wt.touchMoveEvent,this.intDragStart,this),Ot.add(document,wt.isSafari()?"touchend":wt.touchEndEvent,this.intDestroy,this)),this.toggleEvents(!0),"touchstart"!==e.type&&this.isPreventSelect&&document.body.classList.add("e-prevent-select"),this.externalInitialize=!1,Ot.trigger(document.documentElement,wt.isSafari()?"touchstart":wt.touchStartEvent,e)}},t.prototype.intDragStart=function(e){this.removeTapholdTimer();var t=!qe(e.changedTouches);if(!t||1===e.changedTouches.length){var i,r=this.getCoordinates(e),n=getComputedStyle(this.element);this.margin={left:parseInt(n.marginLeft,10),top:parseInt(n.marginTop,10),right:parseInt(n.marginRight,10),bottom:parseInt(n.marginBottom,10)};var o=this.element;if(this.clone&&this.dragTarget){var s=Ut(e.target,this.dragTarget);He(s)||(o=s)}this.isReplaceDragEle&&(o=this.currentStateCheck(e.target,o)),this.offset=this.calculateParentPosition(o),this.position=this.getMousePosition(e,this.isDragScroll);var a=this.initialPosition.x-r.pageX,c=this.initialPosition.y-r.pageY;if(Math.sqrt(a*a+c*c)>=this.distance||this.externalInitialize){var h=this.getHelperElement(e);if(!h||He(h))return;t&&e.preventDefault();var u=this.helperElement=h;if(this.parentClientRect=this.calculateParentPosition(u.offsetParent),this.dragStart){var l={event:e,element:o,target:this.getProperTargetElement(e),bindEvents:null,dragElement:u};this.trigger("dragStart",l)}this.dragArea?this.setDragArea():(this.dragLimit={left:0,right:0,bottom:0,top:0},this.borderWidth={top:0,left:0}),i={left:this.position.left-this.parentClientRect.left,top:this.position.top-this.parentClientRect.top},this.clone&&!this.enableTailMode&&(this.diffX=this.position.left-this.offset.left,this.diffY=this.position.top-this.offset.top),this.getScrollableValues();var p=getComputedStyle(o),d=parseFloat(p.marginTop);this.clone&&0!==d&&(i.top+=d),this.eleTop=isNaN(parseFloat(p.top))?0:parseFloat(p.top)-this.offset.top,this.enableScrollHandler&&!this.clone&&(i.top-=this.parentScrollY,i.left-=this.parentScrollX);var g=this.getProcessedPositionValue({top:i.top-this.diffY+"px",left:i.left-this.diffX+"px"});this.dragArea&&"string"!=typeof this.dragArea&&this.dragArea.classList.contains("e-kanban-content")&&"relative"===this.dragArea.style.position&&(i.top+=this.dragArea.scrollTop),this.dragElePosition={top:i.top,left:i.left},Qt(u,this.getDragPosition({position:"absolute",left:g.left,top:g.top})),Ot.remove(document,wt.isSafari()?"touchmove":wt.touchMoveEvent,this.intDragStart),Ot.remove(document,wt.isSafari()?"touchend":wt.touchEndEvent,this.intDestroy),this.bindDragEvents(u)}}},t.prototype.bindDragEvents=function(e){Et(e)?(Ot.add(document,wt.isSafari()?"touchmove":wt.touchMoveEvent,this.intDrag,this),Ot.add(document,wt.isSafari()?"touchend":wt.touchEndEvent,this.intDragStop,this),this.setGlobalDroppables(!1,this.element,e)):(this.toggleEvents(),document.body.classList.remove("e-prevent-select"))},t.prototype.elementInViewport=function(e){for(this.top=e.offsetTop,this.left=e.offsetLeft,this.width=e.offsetWidth,this.height=e.offsetHeight;e.offsetParent;)e=e.offsetParent,this.top+=e.offsetTop,this.left+=e.offsetLeft;return this.top>=window.pageYOffset&&this.left>=window.pageXOffset&&this.top+this.height<=window.pageYOffset+window.innerHeight&&this.left+this.width<=window.pageXOffset+window.innerWidth},t.prototype.getProcessedPositionValue=function(e){return this.queryPositionInfo?this.queryPositionInfo(e):e},t.prototype.calculateParentPosition=function(e){if(He(e))return{left:0,top:0};var t=e.getBoundingClientRect(),i=getComputedStyle(e);return{left:t.left+window.pageXOffset-parseInt(i.marginLeft,10),top:t.top+window.pageYOffset-parseInt(i.marginTop,10)}},t.prototype.intDrag=function(e){if(qe(e.changedTouches)||1===e.changedTouches.length){var t,i;this.clone&&e.changedTouches&&wt.isDevice&&wt.isTouch&&e.preventDefault(),this.position=this.getMousePosition(e,this.isDragScroll);var r=this.getDocumentWidthHeight("Height");r<this.position.top&&(this.position.top=r);var n=this.getDocumentWidthHeight("Width");if(n<this.position.left&&(this.position.left=n),this.drag){var o=this.getProperTargetElement(e);this.trigger("drag",{event:e,element:this.element,target:o})}var s=this.checkTargetElement(e);if(s.target&&s.instance){var a=!0;this.hoverObject&&(this.hoverObject.instance!==s.instance?this.triggerOutFunction(e,s):a=!1),a&&(s.instance.dragData[this.scope]=this.droppables[this.scope],s.instance.intOver(e,s.target),this.hoverObject=s)}else this.hoverObject&&this.triggerOutFunction(e,s);var c=this.droppables[this.scope].helper;this.parentClientRect=this.calculateParentPosition(this.helperElement.offsetParent);var h=this.parentClientRect.left,u=this.parentClientRect.top,l=this.getCoordinates(e),p=l.pageX,d=l.pageY,g=this.position.left-this.diffX,f=this.position.top-this.diffY,M=getComputedStyle(c);if(this.dragArea){if(this.enableAutoScroll&&this.setDragArea(),this.pageX!==p||this.skipDistanceCheck){var m=c.offsetWidth+(parseFloat(M.marginLeft)+parseFloat(M.marginRight));t=this.dragLimit.left>g&&g>0?this.dragLimit.left:this.dragLimit.right+window.pageXOffset<g+m&&g>0?g-(g-this.dragLimit.right)+window.pageXOffset-m:g<0?this.dragLimit.left:g}if(this.pageY!==d||this.skipDistanceCheck){var y=c.offsetHeight+(parseFloat(M.marginTop)+parseFloat(M.marginBottom));i=this.dragLimit.top>f&&f>0?this.dragLimit.top:this.dragLimit.bottom+window.pageYOffset<f+y&&f>0?f-(f-this.dragLimit.bottom)+window.pageYOffset-y:f<0?this.dragLimit.top:f}}else t=g,i=f;var N,j,D=u+this.borderWidth.top,I=h+this.borderWidth.left;if(this.dragProcessStarted&&(He(i)&&(i=this.prevTop),He(t)&&(t=this.prevLeft)),this.helperElement.classList.contains("e-treeview"))this.dragArea?(this.dragLimit.top=this.clone?this.dragLimit.top:0,N=i-D<0?this.dragLimit.top:i-this.borderWidth.top,j=t-I<0?this.dragLimit.left:t-this.borderWidth.left):(N=i-this.borderWidth.top,j=t-this.borderWidth.left);else if(this.dragArea){var S=this.helperElement.classList.contains("e-dialog");this.dragLimit.top=this.clone?this.dragLimit.top:0,N=i-D<0?this.dragLimit.top:i-D,j=t-I<0?S?t-(I-this.borderWidth.left):this.dragElePosition.left:t-I}else N=i-D,j=t-I;var b=parseFloat(getComputedStyle(this.element).marginTop);if(b>0&&(this.clone&&(N+=b,f<0&&(b+f>=0?N=b+f:N-=b),this.dragArea&&(N=this.dragLimit.bottom<N?this.dragLimit.bottom:N)),i-D<0))if(f+b+(c.offsetHeight-D)>=0){var z=this.dragLimit.top+f-D;z+b+D<0?N-=b+D:N=z}else N-=b+D;if(this.dragArea&&this.helperElement.classList.contains("e-treeview"))N=N+(y=c.offsetHeight+(parseFloat(M.marginTop)+parseFloat(M.marginBottom)))>this.dragLimit.bottom?this.dragLimit.bottom-y:N;this.enableScrollHandler&&!this.clone&&(N-=this.parentScrollY,j-=this.parentScrollX),this.dragArea&&"string"!=typeof this.dragArea&&this.dragArea.classList.contains("e-kanban-content")&&"relative"===this.dragArea.style.position&&(N+=this.dragArea.scrollTop);var v=this.getProcessedPositionValue({top:N+"px",left:j+"px"});Qt(c,this.getDragPosition(v)),this.elementInViewport(c)||!this.enableAutoScroll||this.helperElement.classList.contains("e-treeview")||this.helperElement.scrollIntoView();var w=document.querySelectorAll(":hover");if(this.enableAutoScroll&&this.helperElement.classList.contains("e-treeview")){0===w.length&&(w=this.getPathElements(e));var O=this.getScrollParent(w,!1);this.elementInViewport(this.helperElement)?this.getScrollPosition(O,N):this.elementInViewport(this.helperElement)||(0===(w=[].slice.call(document.querySelectorAll(":hover"))).length&&(w=this.getPathElements(e)),O=this.getScrollParent(w,!0),this.getScrollPosition(O,N))}this.dragProcessStarted=!0,this.prevLeft=t,this.prevTop=i,this.position.left=t,this.position.top=i,this.pageX=p,this.pageY=d}},t.prototype.getScrollParent=function(e,t){for(var i,r=t?e.reverse():e,n=r.length-1;n>=0;n--)if(("auto"===(i=window.getComputedStyle(r[parseInt(n.toString(),10)])["overflow-y"])||"scroll"===i)&&r[parseInt(n.toString(),10)].scrollHeight>r[parseInt(n.toString(),10)].clientHeight)return r[parseInt(n.toString(),10)];if("visible"===(i=window.getComputedStyle(document.scrollingElement)["overflow-y"]))return document.scrollingElement.style.overflow="auto",document.scrollingElement},t.prototype.getScrollPosition=function(e,t){if(e&&e===document.scrollingElement)e.clientHeight+document.scrollingElement.scrollTop-this.helperElement.clientHeight<t&&e.getBoundingClientRect().height+this.parentClientRect.top>t?e.scrollTop+=this.helperElement.clientHeight:e.scrollTop>t-this.helperElement.clientHeight&&(e.scrollTop-=this.helperElement.clientHeight);else if(e&&e!==document.scrollingElement){var i=document.scrollingElement.scrollTop,r=this.helperElement.clientHeight;e.clientHeight+e.getBoundingClientRect().top-r+i<t?e.scrollTop+=this.helperElement.clientHeight:e.getBoundingClientRect().top>t-r-i&&(e.scrollTop-=this.helperElement.clientHeight)}},t.prototype.getPathElements=function(e){var t=e.clientX>0?e.clientX:0,i=e.clientY>0?e.clientY:0;return document.elementsFromPoint(t,i)},t.prototype.triggerOutFunction=function(e,t){this.hoverObject.instance.intOut(e,t.target),this.hoverObject.instance.dragData[this.scope]=null,this.hoverObject=null},t.prototype.getDragPosition=function(e){var t=Ge({},e);return this.axis&&("x"===this.axis?delete t.top:"y"===this.axis&&delete t.left),t},t.prototype.getDocumentWidthHeight=function(e){var t=document.body,i=document.documentElement;return Math.max(t["scroll"+e],i["scroll"+e],t["offset"+e],i["offset"+e],i["client"+e])},t.prototype.intDragStop=function(e){if(this.dragProcessStarted=!1,qe(e.changedTouches)||1===e.changedTouches.length){if(-1!==["touchend","pointerup","mouseup"].indexOf(e.type)){if(this.dragStop){var t=this.getProperTargetElement(e);this.trigger("dragStop",{event:e,element:this.element,target:t,helper:this.helperElement})}this.intDestroy(e)}else this.element.setAttribute("aria-grabbed","false");var i=this.checkTargetElement(e);i.target&&i.instance&&(i.instance.dragStopCalled=!0,i.instance.dragData[this.scope]=this.droppables[this.scope],i.instance.intDrop(e,i.target)),this.setGlobalDroppables(!0),document.body.classList.remove("e-prevent-select")}},t.prototype.intDestroy=function(e){this.dragProcessStarted=!1,this.toggleEvents(),document.body.classList.remove("e-prevent-select"),this.element.setAttribute("aria-grabbed","false"),Ot.remove(document,wt.isSafari()?"touchmove":wt.touchMoveEvent,this.intDragStart),Ot.remove(document,wt.isSafari()?"touchend":wt.touchEndEvent,this.intDragStop),Ot.remove(document,wt.isSafari()?"touchend":wt.touchEndEvent,this.intDestroy),Ot.remove(document,wt.isSafari()?"touchmove":wt.touchMoveEvent,this.intDrag),this.isDragStarted()&&this.isDragStarted(!0)},t.prototype.onPropertyChanged=function(e,t){},t.prototype.getModuleName=function(){return"draggable"},t.prototype.isDragStarted=function(e){return e&&(bi.isDragged=!bi.isDragged),bi.isDragged},t.prototype.setDragArea=function(){var e,t,i,r=0,n=0;if(i="string"===typeof this.dragArea?kt(this.dragArea):this.dragArea){var o=i.getBoundingClientRect();e=i.scrollWidth?i.scrollWidth:o.right-o.left,t=i.scrollHeight?this.dragArea&&!He(this.helperElement)&&this.helperElement.classList.contains("e-treeview")?i.clientHeight:i.scrollHeight:o.bottom-o.top;for(var s=["Top","Left","Bottom","Right"],a=getComputedStyle(i),c=0;c<s.length;c++){var h=s[parseInt(c.toString(),10)],u=a["border"+h+"Width"],l=a["padding"+h],p=h.toLowerCase();this.borderWidth[""+p]=isNaN(parseFloat(u))?0:parseFloat(u),this.padding[""+p]=isNaN(parseFloat(l))?0:parseFloat(l)}r=this.dragArea&&!He(this.helperElement)&&this.helperElement.classList.contains("e-treeview")?o.top+document.scrollingElement.scrollTop:o.top,n=o.left,this.dragLimit.left=n+this.borderWidth.left+this.padding.left,this.dragLimit.top=i.offsetTop+this.borderWidth.top+this.padding.top,this.dragLimit.right=n+e-(this.borderWidth.right+this.padding.right),this.dragLimit.bottom=r+t-(this.borderWidth.bottom+this.padding.bottom)}},t.prototype.getProperTargetElement=function(e){var t,i=this.getCoordinates(e),r=this.helperElement.style.pointerEvents||"",n=-1!==e.type.indexOf("pointer")&&"safari"===wt.info.name&&parseInt(wt.info.version,10)>12;return _e(e.target,this.helperElement)||-1!==e.type.indexOf("touch")||n?(this.helperElement.style.pointerEvents="none",t=document.elementFromPoint(i.clientX,i.clientY),this.helperElement.style.pointerEvents=r):t=e.target,t},t.prototype.currentStateCheck=function(e,t){return He(this.currentStateTarget)||this.currentStateTarget===e?He(t)?e:t:this.currentStateTarget},t.prototype.getMousePosition=function(e,t){var i,r,n=void 0!==e.srcElement?e.srcElement:e.target,o=this.getCoordinates(e),s=He(n.offsetParent);if(t?(i=this.clone?o.pageX:o.pageX+(s?0:n.offsetParent.scrollLeft)-this.relativeXPosition,r=this.clone?o.pageY:o.pageY+(s?0:n.offsetParent.scrollTop)-this.relativeYPosition):(i=this.clone?o.pageX:o.pageX+window.pageXOffset-this.relativeXPosition,r=this.clone?o.pageY:o.pageY+window.pageYOffset-this.relativeYPosition),document.scrollingElement&&!t&&!this.clone){var a=document.scrollingElement,c=a.scrollHeight>0&&a.scrollHeight>a.clientHeight&&a.scrollTop>0;i=a.scrollWidth>0&&a.scrollWidth>a.clientWidth&&a.scrollLeft>0?i-a.scrollLeft:i,r=c?r-a.scrollTop:r}return{left:i-(this.margin.left+this.cursorAt.left),top:r-(this.margin.top+this.cursorAt.top)}},t.prototype.getCoordinates=function(e){return e.type.indexOf("touch")>-1?e.changedTouches[0]:e},t.prototype.getHelperElement=function(e){var t;return this.clone?this.helper?t=this.helper({sender:e,element:this.target}):(t=Lt("div",{className:"e-drag-helper e-block-touch",innerHTML:"Draggable"}),document.body.appendChild(t)):t=this.element,t},t.prototype.setGlobalDroppables=function(e,t,i){this.droppables[this.scope]=e?null:{draggable:t,helper:i,draggedElement:this.element}},t.prototype.checkTargetElement=function(e){var t=this.getProperTargetElement(e),i=this.getDropInstance(t);if(!i&&t&&!He(t.parentNode)){var r=Ut(t.parentNode,".e-droppable")||t.parentElement;r&&(i=this.getDropInstance(r))}return{target:t,instance:i}},t.prototype.getDropInstance=function(e){var t,i=e&&e.ej2_instances;if(i)for(var r=0,n=i;r<n.length;r++){var o=n[r];if("droppable"===o.getModuleName()){t=o;break}}return t},t.prototype.destroy=function(){this.toggleEvents(!0),e.prototype.destroy.call(this)},Ii([_t({},zi)],t.prototype,"cursorAt",void 0),Ii([qt(!0)],t.prototype,"clone",void 0),Ii([qt()],t.prototype,"dragArea",void 0),Ii([qt()],t.prototype,"isDragScroll",void 0),Ii([qt()],t.prototype,"isReplaceDragEle",void 0),Ii([qt(!0)],t.prototype,"isPreventSelect",void 0),Ii([Jt()],t.prototype,"drag",void 0),Ii([Jt()],t.prototype,"dragStart",void 0),Ii([Jt()],t.prototype,"dragStop",void 0),Ii([qt(1)],t.prototype,"distance",void 0),Ii([qt()],t.prototype,"handle",void 0),Ii([qt()],t.prototype,"abort",void 0),Ii([qt()],t.prototype,"helper",void 0),Ii([qt("default")],t.prototype,"scope",void 0),Ii([qt("")],t.prototype,"dragTarget",void 0),Ii([qt()],t.prototype,"axis",void 0),Ii([qt()],t.prototype,"queryPositionInfo",void 0),Ii([qt(!1)],t.prototype,"enableTailMode",void 0),Ii([qt(!1)],t.prototype,"skipDistanceCheck",void 0),Ii([qt(!0)],t.prototype,"preventDefault",void 0),Ii([qt(!1)],t.prototype,"enableAutoScroll",void 0),Ii([qt(!1)],t.prototype,"enableTapHold",void 0),Ii([qt(750)],t.prototype,"tapHoldThreshold",void 0),Ii([qt(!1)],t.prototype,"enableScrollHandler",void 0),t=i=Ii([Zt],t)}(Vt);var vi=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),wi=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};!function(e){function t(t,i){var r=e.call(this,i,t)||this;return r.mouseOver=!1,r.dragData={},r.dragStopCalled=!1,r.bind(),r}vi(t,e),t.prototype.bind=function(){this.wireEvents()},t.prototype.wireEvents=function(){Ot.add(this.element,wt.isSafari()?"touchend":wt.touchEndEvent,this.intDrop,this)},t.prototype.onPropertyChanged=function(e,t){},t.prototype.getModuleName=function(){return"droppable"},t.prototype.intOver=function(e,t){if(!this.mouseOver){var i=this.dragData[this.scope];this.trigger("over",{event:e,target:t,dragData:i}),this.mouseOver=!0}},t.prototype.intOut=function(e,t){this.mouseOver&&(this.trigger("out",{evt:e,target:t}),this.mouseOver=!1)},t.prototype.intDrop=function(e,t){if(this.dragStopCalled){this.dragStopCalled=!1;var i,r=!0,n=this.dragData[this.scope],o=!!n&&(n.helper&&Et(n.helper));o&&(i=this.isDropArea(e,n.helper,t),this.accept&&(r=Yt(n.helper,this.accept))),o&&this.drop&&i.canDrop&&r&&this.trigger("drop",{event:e,target:i.target,droppedElement:n.helper,dragData:n}),this.mouseOver=!1}},t.prototype.isDropArea=function(e,t,i){var r={canDrop:!0,target:i||e.target},n="touchend"===e.type;if(n||r.target===t){t.style.display="none";var o=n?e.changedTouches[0]:e,s=document.elementFromPoint(o.clientX,o.clientY);r.canDrop=!1,r.canDrop=_e(s,this.element),r.canDrop&&(r.target=s),t.style.display=""}return r},t.prototype.destroy=function(){Ot.remove(this.element,wt.isSafari()?"touchend":wt.touchEndEvent,this.intDrop),e.prototype.destroy.call(this)},wi([qt()],t.prototype,"accept",void 0),wi([qt("default")],t.prototype,"scope",void 0),wi([Jt()],t.prototype,"drop",void 0),wi([Jt()],t.prototype,"over",void 0),wi([Jt()],t.prototype,"out",void 0),t=wi([Zt],t)}(Vt);var Oi=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Ti=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},Li={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,space:32,escape:27,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,semicolon:186,plus:187,comma:188,minus:189,dot:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222};!function(e){function t(t,r){var n=e.call(this,r,t)||this;return n.keyPressHandler=function(e){for(var t=e.altKey,r=e.ctrlKey,o=e.shiftKey,s=e.which,a=0,c=Object.keys(n.keyConfigs);a<c.length;a++)for(var h=c[a],u=0,l=n.keyConfigs[""+h].split(",");u<l.length;u++){var p=l[u],d=i.getKeyConfigData(p.trim());t===d.altKey&&r===d.ctrlKey&&o===d.shiftKey&&s===d.keyCode&&(e.action=h,n.keyAction&&n.keyAction(e))}},n.bind(),n}var i;Oi(t,e),i=t,t.prototype.destroy=function(){this.unwireEvents(),e.prototype.destroy.call(this)},t.prototype.onPropertyChanged=function(e,t){},t.prototype.bind=function(){this.wireEvents()},t.prototype.getModuleName=function(){return"keyboard"},t.prototype.wireEvents=function(){this.element.addEventListener(this.eventName,this.keyPressHandler)},t.prototype.unwireEvents=function(){this.element.removeEventListener(this.eventName,this.keyPressHandler)},t.getKeyConfigData=function(e){if(e in this.configCache)return this.configCache[""+e];var t=e.toLowerCase().split("+"),r={altKey:-1!==t.indexOf("alt"),ctrlKey:-1!==t.indexOf("ctrl"),shiftKey:-1!==t.indexOf("shift"),keyCode:null};return t[t.length-1].length>1&&Number(t[t.length-1])?r.keyCode=Number(t[t.length-1]):r.keyCode=i.getKeyCode(t[t.length-1]),i.configCache[""+e]=r,r},t.getKeyCode=function(e){return Li[""+e]||e.toUpperCase().charCodeAt(0)},t.configCache={},Ti([qt({})],t.prototype,"keyConfigs",void 0),Ti([qt("keyup")],t.prototype,"eventName",void 0),Ti([Jt()],t.prototype,"keyAction",void 0),t=i=Ti([Zt],t)}(Vt);var Ai=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Ci=function(e,t,i,r){var n,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},xi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ai(t,e),Ci([qt(50)],t.prototype,"swipeThresholdDistance",void 0),t}(si),Ei=/(Up|Down)/;!function(e){function t(t,i){var r=e.call(this,i,t)||this;return r.touchAction=!0,r.tapCount=0,r.startEvent=function(e){if(!0===r.touchAction){var t=r.updateChangeTouches(e);void 0!==e.changedTouches&&(r.touchAction=!1),r.isTouchMoved=!1,r.movedDirection="",r.startPoint=r.lastMovedPoint={clientX:t.clientX,clientY:t.clientY},r.startEventData=t,r.hScrollLocked=r.vScrollLocked=!1,r.tStampStart=Date.now(),r.timeOutTapHold=setTimeout(function(){r.tapHoldEvent(e)},r.tapHoldThreshold),Ot.add(r.element,wt.touchMoveEvent,r.moveEvent,r),Ot.add(r.element,wt.touchEndEvent,r.endEvent,r),Ot.add(r.element,wt.touchCancelEvent,r.cancelEvent,r)}},r.moveEvent=function(e){var t=r.updateChangeTouches(e);r.movedPoint=t,r.isTouchMoved=!(t.clientX===r.startPoint.clientX&&t.clientY===r.startPoint.clientY);var i={};r.isTouchMoved&&(clearTimeout(r.timeOutTapHold),r.calcScrollPoints(e),i=Ge(i,{},{startEvents:r.startEventData,originalEvent:e,startX:r.startPoint.clientX,startY:r.startPoint.clientY,distanceX:r.distanceX,distanceY:r.distanceY,scrollDirection:r.scrollDirection,velocity:r.getVelocity(t)}),r.trigger("scroll",i),r.lastMovedPoint={clientX:t.clientX,clientY:t.clientY})},r.cancelEvent=function(e){clearTimeout(r.timeOutTapHold),clearTimeout(r.timeOutTap),r.tapCount=0,r.swipeFn(e),Ot.remove(r.element,wt.touchCancelEvent,r.cancelEvent)},r.endEvent=function(e){r.swipeFn(e),r.isTouchMoved||"function"==typeof r.tap&&(r.trigger("tap",{originalEvent:e,tapCount:++r.tapCount}),r.timeOutTap=setTimeout(function(){r.tapCount=0},r.tapThreshold)),r.modeclear()},r.swipeFn=function(e){clearTimeout(r.timeOutTapHold),clearTimeout(r.timeOutTap);var t=r.updateChangeTouches(e),i=t.clientX-r.startPoint.clientX,n=t.clientY-r.startPoint.clientY;i=Math.floor(i<0?-1*i:i),n=Math.floor(n<0?-1*n:i),r.isTouchMoved=i>1||n>1,/Firefox/.test(wt.userAgent)&&0===t.clientX&&0===t.clientY&&"mouseup"===e.type&&(r.isTouchMoved=!1),r.endPoint=t,r.calcPoints(e);var o={originalEvent:e,startEvents:r.startEventData,startX:r.startPoint.clientX,startY:r.startPoint.clientY,distanceX:r.distanceX,distanceY:r.distanceY,swipeDirection:r.movedDirection,velocity:r.getVelocity(t)};if(r.isTouchMoved){var s=void 0,a=r.swipeSettings.swipeThresholdDistance;s=Ge(s,r.defaultArgs,o);var c=!1,h=r.element,u=r.isScrollable(h),l=Ei.test(r.movedDirection);(a<r.distanceX&&!l||a<r.distanceY&&l)&&(c=!u||r.checkSwipe(h,l)),c&&r.trigger("swipe",s)}r.modeclear()},r.modeclear=function(){r.modeClear=setTimeout(function(){r.touchAction=!0},"function"!=typeof r.tap?0:20),r.lastTapTime=(new Date).getTime(),Ot.remove(r.element,wt.touchMoveEvent,r.moveEvent),Ot.remove(r.element,wt.touchEndEvent,r.endEvent),Ot.remove(r.element,wt.touchCancelEvent,r.cancelEvent)},r.bind(),r}Ai(t,e),t.prototype.onPropertyChanged=function(e,t){},t.prototype.bind=function(){this.wireEvents(),wt.isIE&&this.element.classList.add("e-block-touch")},t.prototype.destroy=function(){this.unwireEvents(),e.prototype.destroy.call(this)},t.prototype.wireEvents=function(){Ot.add(this.element,wt.touchStartEvent,this.startEvent,this)},t.prototype.unwireEvents=function(){Ot.remove(this.element,wt.touchStartEvent,this.startEvent)},t.prototype.getModuleName=function(){return"touch"},t.prototype.isScrollable=function(e){var t=getComputedStyle(e),i=t.overflow+t.overflowX+t.overflowY;return!!/(auto|scroll)/.test(i)},t.prototype.tapHoldEvent=function(e){var t;this.tapCount=0,this.touchAction=!0,Ot.remove(this.element,wt.touchMoveEvent,this.moveEvent),Ot.remove(this.element,wt.touchEndEvent,this.endEvent),t={originalEvent:e},this.trigger("tapHold",t),Ot.remove(this.element,wt.touchCancelEvent,this.cancelEvent)},t.prototype.calcPoints=function(e){var t=this.updateChangeTouches(e);this.defaultArgs={originalEvent:e},this.distanceX=Math.abs(Math.abs(t.clientX)-Math.abs(this.startPoint.clientX)),this.distanceY=Math.abs(Math.abs(t.clientY)-Math.abs(this.startPoint.clientY)),this.distanceX>this.distanceY?this.movedDirection=t.clientX>this.startPoint.clientX?"Right":"Left":this.movedDirection=t.clientY<this.startPoint.clientY?"Up":"Down"},t.prototype.calcScrollPoints=function(e){var t=this.updateChangeTouches(e);this.defaultArgs={originalEvent:e},this.distanceX=Math.abs(Math.abs(t.clientX)-Math.abs(this.lastMovedPoint.clientX)),this.distanceY=Math.abs(Math.abs(t.clientY)-Math.abs(this.lastMovedPoint.clientY)),(this.distanceX>this.distanceY||!0===this.hScrollLocked)&&!1===this.vScrollLocked?(this.scrollDirection=t.clientX>this.lastMovedPoint.clientX?"Right":"Left",this.hScrollLocked=!0):(this.scrollDirection=t.clientY<this.lastMovedPoint.clientY?"Up":"Down",this.vScrollLocked=!0)},t.prototype.getVelocity=function(e){var t=e.clientX,i=e.clientY,r=Date.now(),n=t-this.startPoint.clientX,o=i-this.startPoint.clientX,s=r-this.tStampStart;return Math.sqrt(n*n+o*o)/s},t.prototype.checkSwipe=function(e,t){var i=["scroll","offset"],r=t?["Height","Top"]:["Width","Left"];return e[i[0]+r[0]]<=e[i[1]+r[0]]||(0===e[i[0]+r[1]]||e[i[1]+r[0]]+e[i[0]+r[1]]>=e[i[0]+r[0]])},t.prototype.updateChangeTouches=function(e){return e.changedTouches&&0!==e.changedTouches.length?e.changedTouches[0]:e},Ci([Jt()],t.prototype,"tap",void 0),Ci([Jt()],t.prototype,"tapHold",void 0),Ci([Jt()],t.prototype,"swipe",void 0),Ci([Jt()],t.prototype,"scroll",void 0),Ci([qt(350)],t.prototype,"tapThreshold",void 0),Ci([qt(750)],t.prototype,"tapHoldThreshold",void 0),Ci([_t({},xi)],t.prototype,"swipeSettings",void 0),t=Ci([Zt],t)}(Vt);var ki=new RegExp("\\n|\\r|\\s\\s+","g"),Pi=new RegExp(/'|"/g),Ui=new RegExp("if ?\\("),Qi=new RegExp("else if ?\\("),Yi=new RegExp("else"),Ri=new RegExp("for ?\\("),Vi=new RegExp("(/if|/for)"),Fi=new RegExp("\\((.*)\\)",""),Bi=new RegExp("^[0-9]+$","g"),Wi=new RegExp("[\\w\"'.\\s+]+","g"),Gi=new RegExp('"(.*?)"',"g"),Hi=new RegExp("[\\w\"'@#$.\\s-+]+","g"),qi=new RegExp("\\${([^}]*)}","g"),_i=/^\..*/gm,Ji=/\\/gi,Zi=/\\\\/gi,Ki=new RegExp("[\\w\"'@#$.\\s+]+","g"),Xi=/\window\./gm;function $i(e,t,i){if("function"==typeof e)return e;var r="data",n=function(e,t,i,r){var n=0,o=[],s=e.match(/class="([^"]+|)\s{2}/g),a="";s&&s.forEach(function(t){a=t.replace(/\s\s+/g," "),e=e.replace(t,a)});if(qi.test(e)){for(var c=!1,h="",u=0;u<e.length;u++)"$"===e[u+""]&&"{"===e[u+1]?c=!0:"}"===e[u+""]&&(c=!1),h+='"'!==e[u+""]||c?e[u+""]:'\\"';e=h}else e=e.replace(/\\?"/g,'\\"');return e.replace(ki,"").replace(Gi,"'$1'").replace(qi,function(e,s,a,c){var h=/@|#|\$/gm,u=s.match(Fi);if(u){var l=u[1];if(Qi.test(s))s='";} '+s.replace(u[1],l.replace(Wi,function(e){return er(e=e.trim(),!Pi.test(e)&&-1===o.indexOf(e),t,o,r)}))+'{ \n str = str + "';else if(Ui.test(s))s='"; '+s.replace(u[1],l.replace(Hi,function(e){return rr(e,t,o,r)}))+'{ \n str = str + "';else if(Ri.test(s)){var p=u[1].split(" of ");s='"; '+s.replace(u[1],function(e){return o.push(p[0]),o.push(p[0]+"Index"),"var i"+(n+=1)+"=0; i"+n+" < "+er(p[1],!0,t,o,r)+".length; i"+n+"++"})+"{ \n "+p[0]+"= "+er(p[1],!0,t,o,r)+"[i"+n+"]; \n var "+p[0]+"Index=i"+n+'; \n str = str + "'}else{var d=s.split("("),g=i&&i.hasOwnProperty(d[0])?"this.":"global";g=/\./.test(d[0])?"":g;var f=u[1].split(",");0===u[1].length||/data/.test(f[0])||/window./.test(f[0])||(u[1]="global"===g?t+"."+u[1]:u[1]);var M=/@|\$|#/gm,m=/\]\./gm;if(Xi.test(s)&&m.test(s)||M.test(s))/@|\$|#|\]\./gm.test(s)&&(s='"+ '+("global"===g?"":g)+s.replace(u[1],l.replace(Ki,function(e){return rr(e,t,o,r)}))+'+ "');else s='" + '+("global"===g?"":g)+s.replace(l,er(u[1].replace(/,( |)data.|,/gi,","+t+".").replace(/,( |)data.window/gi,",window"),"global"!==g,t,o,r))+'+"'}}else Yi.test(s)?s='"; '+s.replace(Yi,'} else { \n str = str + "'):s.match(Vi)?s=s.replace(Vi,'"; \n } \n str = str + "'):h.test(s)?(s.match(Ji)&&(s=ir(s)),s='"+'+tr(s,-1===o.indexOf(s),t,o)+'"]+"'):s=s.match(Ji)?'"+'+tr(s=ir(s),-1===o.indexOf(s),t,o)+'"]+"':""!==s?'"+'+er(s.replace(/,/gi,"+"+t+"."),-1===o.indexOf(s),t,o,r)+'+"':"${}";return s})}(e,r,t,i);return new Function(r,'var str="'+n+"\";var valueRegEx = (/value=\\'([A-Za-z0-9 _]*)((.)([\\w)(!-;?-■\\s]+)['])/g);\n var hrefRegex = (/(?:href)([\\s='\"./]+)([\\w-./?=&\\\\#\"]+)((.)([\\w)(!-;/?-■\\s]+)['])/g);\n if(str.match(valueRegEx)){\n var check = str.match(valueRegEx);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(valueRegEx)[i].split('value=')[1];\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n str = str.replace(str, str1);\n }\n else if (str.match(/(?:href='')/) === null) {\n if(str.match(hrefRegex)) {\n var check = str.match(hrefRegex);\n var str1 = str;\n for (var i=0; i < check.length; i++) {\n var check1 = str.match(hrefRegex)[i].split('href=')[1];\n if (check1) {\n var change = check1.match(/^'/) !== null ? check1.replace(/^'/, '\"') : check1;\n change =change.match(/.$/)[0] === '\\'' ? change.replace(/.$/,'\"') : change;\n str1 = str1.replace(check1, change);\n }\n }\n str = str.replace(str, str1);\n }\n }\n return str;").bind(t)}function er(e,t,i,r,n){return!t||Bi.test(e)||-1!==r.indexOf(e.split(".")[0])||n||"true"===e||"false"===e?e:i+"."+e}function tr(e,t,i,r){return t&&!Bi.test(e)&&-1===r.indexOf(e.split(".")[0])?i+'["'+e:e}function ir(e){return e.match(Zi)||(e=e.replace(Ji,"\\\\")),e}function rr(e,t,i,r){e=e.trim();if(/\window\./gm.test(e))return e;var n=/'|"/gm;return/@|\$|#/gm.test(e)&&(e=tr(e,-1===i.indexOf(e),t,i)+'"]'),_i.test(e)?function(e,t,i,r){return!t||Bi.test(e)||-1!==r.indexOf(e.split(".")[0])||/^\..*/gm.test(e)?e:i+"."+e}(e,!n.test(e)&&-1===i.indexOf(e),t,i):er(e,!n.test(e)&&-1===i.indexOf(e),t,i,r)}(new(function(){function e(){}return e.prototype.compile=function(e,t,i){return void 0===t&&(t={}),$i(e,t)},e}())).compile;const nr=({placeholder:e,className:t,minTime:i,maxTime:r,label:n="",id:a,onChange:c,name:h,value:l,format:p,disabled:d,onClearing:g,allowEdit:f})=>s("div",{children:[o("label",{htmlFor:a,children:n}),o(u,{id:a,placeholder:e,min:i,max:r,className:t,onChange:c,name:h,value:l,disabled:d,format:p,type:"timepicker",cleared:e=>{g(e)},allowEdit:f})]});var or=function(){function e(e){return this.subQuery=null,this.isChild=!1,this.distincts=[],this.queries=[],this.key="",this.fKey="","string"==typeof e?this.fromTable=e:e&&e instanceof Array&&(this.lookups=e),this.expands=[],this.sortedColumns=[],this.groupedColumns=[],this.subQuery=null,this.isChild=!1,this.params=[],this.lazyLoad=[],this}return e.prototype.setKey=function(e){return this.key=e,this},e.prototype.using=function(e){return this.dataManager=e,this},e.prototype.execute=function(e,t,i,r){return(e=e||this.dataManager)?e.executeQuery(this,t,i,r):cr.throwError('Query - execute() : dataManager needs to be is set using "using" function or should be passed as argument')},e.prototype.executeLocal=function(e){return(e=e||this.dataManager)?e.executeLocal(this):cr.throwError('Query - executeLocal() : dataManager needs to be is set using "using" function or should be passed as argument')},e.prototype.clone=function(){var t=new e;return t.queries=this.queries.slice(0),t.key=this.key,t.isChild=this.isChild,t.dataManager=this.dataManager,t.fromTable=this.fromTable,t.params=this.params.slice(0),t.expands=this.expands.slice(0),t.sortedColumns=this.sortedColumns.slice(0),t.groupedColumns=this.groupedColumns.slice(0),t.subQuerySelector=this.subQuerySelector,t.subQuery=this.subQuery,t.fKey=this.fKey,t.isCountRequired=this.isCountRequired,t.distincts=this.distincts.slice(0),t.lazyLoad=this.lazyLoad.slice(0),t},e.prototype.from=function(e){return this.fromTable=e,this},e.prototype.addParams=function(e,t){return"function"==typeof t?this.params.push({key:e,fn:t}):this.params.push({key:e,value:t}),this},e.prototype.distinct=function(e){return this.distincts="string"==typeof e?[].slice.call([e],0):e.slice(0),this},e.prototype.expand=function(e){return this.expands="string"==typeof e?[].slice.call([e],0):e.slice(0),this},e.prototype.where=function(e,t,i,r,n,o){t=t?t.toLowerCase():null;var s=null;return"string"==typeof e?s=new sr(e,t,i,r,n,o):e instanceof sr&&(s=e),this.queries.push({fn:"onWhere",e:s}),this},e.prototype.search=function(e,t,i,r,n){"string"==typeof t&&(t=[t]),i&&"none"!==i||(i="contains");var o=cr.fnOperators[i];return this.queries.push({fn:"onSearch",e:{fieldNames:t,operator:i,searchKey:e,ignoreCase:r,ignoreAccent:n,comparer:o}}),this},e.prototype.sortBy=function(e,t,i){return this.sortByForeignKey(e,t,i)},e.prototype.sortByForeignKey=function(t,i,r,n){var o,s,a=He(n)?"ascending":n;if("string"==typeof t&&cr.endsWith(t.toLowerCase()," desc")&&(t=t.replace(/ desc$/i,""),i="descending"),i&&"string"!=typeof i||(a=i?i.toLowerCase():"ascending",i=cr.fnSort(i)),r){o=e.filterQueries(this.queries,"onSortBy");for(var c=0;c<o.length;c++)if("string"==typeof(s=o[c].e.fieldName)){if(s===t)return this}else if(s instanceof Array)for(var h=0;h<s.length;h++)if(s[h]===t||t.toLowerCase()===s[h]+" desc")return this}return this.queries.push({fn:"onSortBy",e:{fieldName:t,comparer:i,direction:a}}),this},e.prototype.sortByDesc=function(e){return this.sortBy(e,"descending")},e.prototype.group=function(e,t,i){return this.sortBy(e,null,!0),this.queries.push({fn:"onGroup",e:{fieldName:e,comparer:t||null,format:i||null}}),this},e.prototype.page=function(e,t){return this.queries.push({fn:"onPage",e:{pageIndex:e,pageSize:t}}),this},e.prototype.range=function(e,t){return this.queries.push({fn:"onRange",e:{start:e,end:t}}),this},e.prototype.take=function(e){return this.queries.push({fn:"onTake",e:{nos:e}}),this},e.prototype.skip=function(e){return this.queries.push({fn:"onSkip",e:{nos:e}}),this},e.prototype.select=function(e){return"string"==typeof e&&(e=[].slice.call([e],0)),this.queries.push({fn:"onSelect",e:{fieldNames:e}}),this},e.prototype.hierarchy=function(e,t){return this.subQuerySelector=t,this.subQuery=e,this},e.prototype.foreignKey=function(e){return this.fKey=e,this},e.prototype.requiresCount=function(){return this.isCountRequired=!0,this},e.prototype.aggregate=function(e,t){return this.queries.push({fn:"onAggregates",e:{field:t,type:e}}),this},e.filterQueries=function(e,t){return e.filter(function(e){return e.fn===t})},e.filterQueryLists=function(e,t){for(var i=e.filter(function(e){return-1!==t.indexOf(e.fn)}),r={},n=0;n<i.length;n++)r[i[n].fn]||(r[i[n].fn]=i[n].e);return r},e}(),sr=function(){function e(t,i,r,n,o,s){return void 0===n&&(n=!1),this.ignoreAccent=!1,this.isComplex=!1,"string"==typeof t?(this.field=t,this.operator=i.toLowerCase(),this.value=r,this.matchCase=s,this.ignoreCase=n,this.ignoreAccent=o,this.isComplex=!1,this.comparer=cr.fnOperators.processOperator(this.operator)):(t instanceof e&&r instanceof e||r instanceof Array)&&(this.isComplex=!0,this.condition=i.toLowerCase(),this.predicates=[t],this.matchCase=t.matchCase,this.ignoreCase=t.ignoreCase,this.ignoreAccent=t.ignoreAccent,r instanceof Array?[].push.apply(this.predicates,r):this.predicates.push(r)),this}return e.and=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return e.combinePredicates([].slice.call(t,0),"and")},e.prototype.and=function(t,i,r,n,o){return e.combine(this,t,i,r,"and",n,o)},e.or=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return e.combinePredicates([].slice.call(t,0),"or")},e.prototype.or=function(t,i,r,n,o){return e.combine(this,t,i,r,"or",n,o)},e.ornot=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return e.combinePredicates([].slice.call(t,0),"or not")},e.prototype.ornot=function(t,i,r,n,o){return e.combine(this,t,i,r,"ornot",n,o)},e.andnot=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return e.combinePredicates([].slice.call(t,0),"and not")},e.prototype.andnot=function(t,i,r,n,o){return e.combine(this,t,i,r,"andnot",n,o)},e.fromJson=function(e){if(e instanceof Array){for(var t=[],i=0,r=e.length;i<r;i++)t.push(this.fromJSONData(e[i]));return t}var n=e;return this.fromJSONData(n)},e.prototype.validate=function(e){var t,i,r=this.predicates?this.predicates:[];if(!this.isComplex&&this.comparer)return this.condition&&-1!==this.condition.indexOf("not")?(this.condition=""===this.condition.split("not")[0]?void 0:this.condition.split("not")[0],!this.comparer.call(this,cr.getObject(this.field,e),this.value,this.ignoreCase,this.ignoreAccent)):this.comparer.call(this,cr.getObject(this.field,e),this.value,this.ignoreCase,this.ignoreAccent);i=this.condition&&-1!==this.condition.indexOf("not")?-1!==this.condition.indexOf("and"):"and"===this.condition;for(var n=0;n<r.length;n++)if(n>0&&this.condition&&-1!==this.condition.indexOf("not")&&(r[n].condition=r[n].condition?r[n].condition+"not":"not"),t=r[n].validate(e),i){if(!t)return!1}else if(t)return!0;return i},e.prototype.toJson=function(){var e,t;if(this.isComplex){e=[],t=this.predicates;for(var i=0;i<t.length;i++)e.push(t[i].toJson())}return{isComplex:this.isComplex,field:this.field,operator:this.operator,value:this.value,ignoreCase:this.ignoreCase,ignoreAccent:this.ignoreAccent,condition:this.condition,predicates:e,matchCase:this.matchCase}},e.combinePredicates=function(t,i){if(1===t.length){if(!(t[0]instanceof Array))return t[0];t=t[0]}return new e(t[0],i,t.slice(1))},e.combine=function(t,i,r,n,o,s,a){return i instanceof e?e[o](t,i):"string"==typeof i?e[o](t,new e(i,r,n,s,a)):cr.throwError("Predicate - "+o+" : invalid arguments")},e.fromJSONData=function(t){for(var i=t.predicates||[],r=i.length,n=[],o=0;o<r;o++)n.push(this.fromJSONData(i[o]));return t.isComplex?new e(n[0],t.condition,n.slice(1)):new e(t.field,t.operator,t.value,t.ignoreCase,t.ignoreAccent)},e}(),ar={GroupGuid:"{271bbba0-1ee7}"},cr=function(){function e(){}return e.getValue=function(e,t){return"function"==typeof e?e.call(t||{}):e},e.endsWith=function(e,t){return e.slice&&e.slice(-t.length)===t},e.notEndsWith=function(e,t){return e.slice&&e.slice(-t.length)!==t},e.startsWith=function(e,t){return e.slice(0,t.length)===t},e.notStartsWith=function(e,t){return e.slice(0,t.length)!==t},e.wildCard=function(e,t){var i,r;if(-1!==t.indexOf("[")&&(t=t.split("[").join("[[]")),-1!==t.indexOf("(")&&(t=t.split("(").join("[(]")),-1!==t.indexOf(")")&&(t=t.split(")").join("[)]")),-1!==t.indexOf("\\")&&(t=t.split("\\").join("[\\\\]")),-1!==t.indexOf("*")){"*"!==t.charAt(0)&&(t="^"+t),"*"!==t.charAt(t.length-1)&&(t+="$"),i=t.split("*");for(var n=0;n<i.length;n++)-1===i[n].indexOf(".")?i[n]=i[n]+".*":i[n]=i[n]+"*";t=i.join("")}return-1===t.indexOf("%3f")&&-1===t.indexOf("?")||(r=-1!==t.indexOf("%3f")?t.split("%3f"):t.split("?"),t=r.join(".")),new RegExp(t,"g").test(e)},e.like=function(t,i){return-1!==i.indexOf("%")&&("%"===i.charAt(0)&&i.lastIndexOf("%")<2?(i=i.substring(1,i.length),e.startsWith(e.toLowerCase(t),e.toLowerCase(i))):"%"===i.charAt(i.length-1)&&i.indexOf("%")>i.length-3?(i=i.substring(0,i.length-1),e.endsWith(e.toLowerCase(t),e.toLowerCase(i))):i.lastIndexOf("%")!==i.indexOf("%")&&i.lastIndexOf("%")>i.indexOf("%")+1?(i=i.substring(i.indexOf("%")+1,i.lastIndexOf("%")),-1!==t.indexOf(i)):-1!==t.indexOf(i))},e.fnSort=function(t){return"ascending"===(t=t?e.toLowerCase(t):"ascending")?this.fnAscending:this.fnDescending},e.fnAscending=function(e,t){return He(e)&&He(t)||null==t?-1:"string"==typeof e?e.localeCompare(t):null==e?1:e-t},e.fnDescending=function(e,t){return He(e)&&He(t)?-1:null==t?1:"string"==typeof e?-1*e.localeCompare(t):null==e?-1:t-e},e.extractFields=function(e,t){for(var i={},r=0;r<t.length;r++)i=this.setValue(t[r],this.getObject(t[r],e),i);return i},e.select=function(e,t){for(var i=[],r=0;r<e.length;r++)i.push(this.extractFields(e[r],t));return i},e.group=function(t,i,r,n,o,s,a){n=n||1;var c=t,h="GroupGuid";if(c.GroupGuid===ar[h]){for(var u=function(e){if(He(o))c[e].items=l.group(c[e].items,i,r,c.level+1,null,s,a),c[e].count=c[e].items.length;else{var t,n=o.filter(function(t){return t.key===c[e].key});t=o.indexOf(n[0]),c[e].items=l.group(c[e].items,i,r,c.level+1,o[t].items,s,a),c[e].count=o[t].count}},l=this,p=0;p<c.length;p++)u(p);return c.childLevels+=1,c}var d={},g=[];g.GroupGuid=ar[h],g.level=n,g.childLevels=0,g.records=c;for(var f=function(e){var t=M.getVal(c,e,i);if(He(s)||(t=s(t,i)),!d[t]&&(d[t]={key:t,count:0,items:[],aggregates:{},field:i},g.push(d[t]),!He(o))){var n=o.filter(function(e){return e.key===d[t].key});d[t].count=n[0].count}d[t].count=He(o)?d[t].count+=1:d[t].count,(!a||a&&r.length)&&d[t].items.push(c[e])},M=this,m=0;m<c.length;m++)f(m);if(r&&r.length){var y=function(t){for(var i={},n=void 0,s=r,a=0;a<r.length;a++)if(n=e.aggregates[r[a].type],He(o))n&&(i[s[a].field+" - "+s[a].type]=n(g[t].items,s[a].field));else{var c=o.filter(function(e){return e.key===g[t].key});n&&(i[s[a].field+" - "+s[a].type]=n(c[0].items,s[a].field))}g[t].aggregates=i};for(m=0;m<g.length;m++)y(m)}if(a&&g.length&&r.length)for(m=0;m<g.length;m++)g[m].items=[];return c.length&&g||c},e.buildHierarchy=function(e,t,i,r,n){var o,s={};for(r.result&&(r=r.result),r.GroupGuid&&this.throwError("DataManager: Do not have support Grouping in hierarchy"),o=0;o<r.length;o++){(s[a=this.getObject(e,r[o])]||(s[a]=[])).push(r[o])}for(o=0;o<i.length;o++){var a=this.getObject(n||e,i[o]);i[o][t]=s[a]}},e.getFieldList=function(e,t,i){if(void 0===i&&(i=""),null==t)return this.getFieldList(e,[],i);for(var r=e,n=0,o=Object.keys(e);n<o.length;n++){var s=o[n];"object"!=typeof r[s]||r[s]instanceof Array?t.push(i+s):this.getFieldList(r[s],t,i+s+".")}return t},e.getObject=function(e,t){if(!e)return t;if(t){if(-1===e.indexOf(".")){var i=e.charAt(0).toLowerCase()+e.slice(1),r=e.charAt(0).toUpperCase()+e.slice(1);return He(t[e])?He(t[i])?He(t[r])?null:t[r]:t[i]:t[e]}for(var n=t,o=e.split("."),s=0;s<o.length&&null!=n;s++){if(void 0===(n=n[o[s]])){var a=o[s].charAt(0).toUpperCase()+o[s].slice(1);n=t[a]||t[a.charAt(0).toLowerCase()+a.slice(1)]||null}t=n}return n}},e.setValue=function(e,t,i){var r,n,o=e.toString().split("."),s=i||{},a=s,c=o.length;for(r=0;r<c;r++)n=o[r],r+1===c?a[n]=void 0===t?void 0:t:He(a[n])&&(a[n]={}),a=a[n];return s},e.sort=function(e,t,i){if(e.length<=1)return e;var r=parseInt((e.length/2).toString(),10),n=e.slice(0,r),o=e.slice(r);return n=this.sort(n,t,i),o=this.sort(o,t,i),this.merge(n,o,t,i)},e.ignoreDiacritics=function(t){return"string"!=typeof t?t:t.split("").map(function(t){return t in e.diacritics?e.diacritics[t]:t}).join("")},e.merge=function(e,t,i,r){for(var n,o=[];e.length>0||t.length>0;)n=e.length>0&&t.length>0?r?r(this.getVal(e,0,i),this.getVal(t,0,i),e[0],t[0])<=0?e:t:e[0][i]<e[0][i]?e:t:e.length>0?e:t,o.push(n.shift());return o},e.getVal=function(e,t,i){return i?this.getObject(i,e[t]):e[t]},e.toLowerCase=function(e){return e?"string"==typeof e?e.toLowerCase():e.toString():0===e||!1===e?e.toString():""},e.callAdaptorFunction=function(e,t,i,r){if(t in e){var n=e[t](i,r);He(n)||(i=n)}return i},e.getAddParams=function(t,i,r){var n={};return e.callAdaptorFunction(t,"addParams",{dm:i,query:r,params:r.params,reqParams:n}),n},e.isPlainObject=function(e){return!!e&&e.constructor===Object},e.isCors=function(){var e=null;try{e=new window.XMLHttpRequest}catch(e){}return!!e&&"withCredentials"in e},e.getGuid=function(e){var t;return(e||"")+"00000000-0000-4000-0000-000000000000".replace(/0/g,function(e,i){if("crypto"in window&&"getRandomValues"in crypto){var r=new Uint8Array(1);window.crypto.getRandomValues(r),t=r[0]%16|0}else t=16*Math.random()|0;return"0123456789abcdef"[19===i?3&t|8:t]})},e.isNull=function(e){return null==e},e.getItemFromComparer=function(t,i,r){var n,o,s,a=0,c="string"==typeof e.getVal(t,0,i);if(t.length)for(;He(n)&&a<t.length;)n=e.getVal(t,a,i),s=t[a++];for(;a<t.length;a++)He(o=e.getVal(t,a,i))||(c&&(n=+n,o=+o),r(n,o)>0&&(n=o,s=t[a]));return s},e.distinct=function(t,i,r){r=!He(r)&&r;var n,o=[],s={};return t.forEach(function(a,c){(n="object"==typeof t[c]?e.getVal(t,c,i):t[c])in s||(o.push(r?t[c]:n),s[n]=1)}),o},e.processData=function(e,t){var i=this.prepareQuery(e),r=new yr(t);e.requiresCounts&&i.requiresCount();var n=r.executeLocal(i),o={result:e.requiresCounts?n.result:n,count:n.count,aggregates:JSON.stringify(n.aggregates)};return e.requiresCounts?o:n},e.prepareQuery=function(t){var i=this,r=new or;(t.select&&r.select(t.select),t.where)&&e.parse.parseJson(t.where).filter(function(e){if(He(e.condition))r.where(e.field,e.operator,e.value,e.ignoreCase,e.ignoreAccent);else{var t=[];e.field?t.push(new sr(e.field,e.operator,e.value,e.ignoreCase,e.ignoreAccent)):t=t.concat(i.getPredicate(e.predicates)),"or"===e.condition?r.where(sr.or(t)):"and"===e.condition&&r.where(sr.and(t))}});t.search&&e.parse.parseJson(t.search).filter(function(e){return r.search(e.key,e.fields,e.operator,e.ignoreCase,e.ignoreAccent)});return t.aggregates&&t.aggregates.filter(function(e){return r.aggregate(e.type,e.field)}),t.sorted&&t.sorted.filter(function(e){return r.sortBy(e.name,e.direction)}),t.skip&&r.skip(t.skip),t.take&&r.take(t.take),t.group&&t.group.filter(function(e){return r.group(e)}),r},e.getPredicate=function(e){for(var t=[],i=0;i<e.length;i++){var r=e[i];if(r.field)t.push(new sr(r.field,r.operator,r.value,r.ignoreCase,r.ignoreAccent));else{for(var n=[],o=this.getPredicate(r.predicates),s=0,a=Object.keys(o);s<a.length;s++){var c=a[s];n.push(o[c])}t.push("or"===r.condition?sr.or(n):sr.and(n))}}return t},e.serverTimezoneOffset=null,e.timeZoneHandling=!0,e.throwError=function(e){try{throw new Error(e)}catch(e){throw e.message+"\n"+e.stack}},e.aggregates={sum:function(t,i){for(var r,n=0,o="number"!=typeof e.getVal(t,0,i),s=0;s<t.length;s++)r=e.getVal(t,s,i),isNaN(r)||null===r||(o&&(r=+r),n+=r);return n},average:function(t,i){return e.aggregates.sum(t,i)/t.length},min:function(t,i){var r;return"function"==typeof i&&(r=i,i=null),e.getObject(i,e.getItemFromComparer(t,i,r||e.fnAscending))},max:function(t,i){var r;return"function"==typeof i&&(r=i,i=null),e.getObject(i,e.getItemFromComparer(t,i,r||e.fnDescending))},truecount:function(e,t){return new yr(e).executeLocal((new or).where(t,"equal",!0,!0)).length},falsecount:function(e,t){return new yr(e).executeLocal((new or).where(t,"equal",!1,!0)).length},count:function(e,t){return e.length}},e.operatorSymbols={"<":"lessthan",">":"greaterthan","<=":"lessthanorequal",">=":"greaterthanorequal","==":"equal","!=":"notequal","*=":"contains","$=":"endswith","^=":"startswith"},e.odBiOperator={"<":" lt ",">":" gt ","<=":" le ",">=":" ge ","==":" eq ","!=":" ne ",lessthan:" lt ",lessthanorequal:" le ",greaterthan:" gt ",greaterthanorequal:" ge ",equal:" eq ",notequal:" ne "},e.odUniOperator={"$=":"endswith","^=":"startswith","*=":"substringof",endswith:"endswith",startswith:"startswith",contains:"substringof",doesnotendwith:"not endswith",doesnotstartwith:"not startswith",doesnotcontain:"not substringof",wildcard:"wildcard",like:"like"},e.odv4UniOperator={"$=":"endswith","^=":"startswith","*=":"contains",endswith:"endswith",startswith:"startswith",contains:"contains",doesnotendwith:"not endswith",doesnotstartwith:"not startswith",doesnotcontain:"not contains",wildcard:"wildcard",like:"like"},e.diacritics={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ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Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},e.fnOperators={equal:function(t,i,r,n){return n&&(t=e.ignoreDiacritics(t),i=e.ignoreDiacritics(i)),r?e.toLowerCase(t)===e.toLowerCase(i):t===i},notequal:function(t,i,r,n){return n&&(t=e.ignoreDiacritics(t),i=e.ignoreDiacritics(i)),!e.fnOperators.equal(t,i,r)},lessthan:function(t,i,r){return r?e.toLowerCase(t)<e.toLowerCase(i):(He(t)&&(t=void 0),t<i)},greaterthan:function(t,i,r){return r?e.toLowerCase(t)>e.toLowerCase(i):t>i},lessthanorequal:function(t,i,r){return r?e.toLowerCase(t)<=e.toLowerCase(i):(He(t)&&(t=void 0),t<=i)},greaterthanorequal:function(t,i,r){return r?e.toLowerCase(t)>=e.toLowerCase(i):t>=i},contains:function(t,i,r,n){return n&&(t=e.ignoreDiacritics(t),i=e.ignoreDiacritics(i)),r?!He(t)&&!He(i)&&-1!==e.toLowerCase(t).indexOf(e.toLowerCase(i)):!He(t)&&!He(i)&&-1!==t.toString().indexOf(i)},doesnotcontain:function(t,i,r,n){return n&&(t=e.ignoreDiacritics(t),i=e.ignoreDiacritics(i)),r?!He(t)&&!He(i)&&-1===e.toLowerCase(t).indexOf(e.toLowerCase(i)):!He(t)&&!He(i)&&-1===t.toString().indexOf(i)},isnotnull:function(e){return null!=e},isnull:function(e){return null==e},startswith:function(t,i,r,n){return n&&(t=e.ignoreDiacritics(t),i=e.ignoreDiacritics(i)),r?t&&i&&e.startsWith(e.toLowerCase(t),e.toLowerCase(i)):t&&i&&e.startsWith(t,i)},doesnotstartwith:function(t,i,r,n){return n&&(t=e.ignoreDiacritics(t),i=e.ignoreDiacritics(i)),r?t&&i&&e.notStartsWith(e.toLowerCase(t),e.toLowerCase(i)):t&&i&&e.notStartsWith(t,i)},like:function(t,i,r,n){return n&&(t=e.ignoreDiacritics(t),i=e.ignoreDiacritics(i)),r?t&&i&&e.like(e.toLowerCase(t),e.toLowerCase(i)):t&&i&&e.like(t,i)},isempty:function(e){return void 0===e||""===e},isnotempty:function(e){return void 0!==e&&""!==e},wildcard:function(t,i,r,n){return n&&(t=e.ignoreDiacritics(t),i=e.ignoreDiacritics(i)),r?(t||"boolean"==typeof t)&&i&&"object"!=typeof t&&e.wildCard(e.toLowerCase(t),e.toLowerCase(i)):(t||"boolean"==typeof t)&&i&&e.wildCard(t,i)},endswith:function(t,i,r,n){return n&&(t=e.ignoreDiacritics(t),i=e.ignoreDiacritics(i)),r?t&&i&&e.endsWith(e.toLowerCase(t),e.toLowerCase(i)):t&&i&&e.endsWith(t,i)},doesnotendwith:function(t,i,r,n){return n&&(t=e.ignoreDiacritics(t),i=e.ignoreDiacritics(i)),r?t&&i&&e.notEndsWith(e.toLowerCase(t),e.toLowerCase(i)):t&&i&&e.notEndsWith(t,i)},processSymbols:function(t){var i=e.operatorSymbols[t];return i?e.fnOperators[i]:e.throwError("Query - Process Operator : Invalid operator")},processOperator:function(t){var i=e.fnOperators[t];return i||e.fnOperators.processSymbols(t)}},e.parse={parseJson:function(t){return"string"!=typeof t||!/^[\s]*\[|^[\s]*\{(.)+:/g.test(t)&&-1!==t.indexOf('"')?t instanceof Array?e.parse.iterateAndReviveArray(t):"object"==typeof t&&null!==t&&e.parse.iterateAndReviveJson(t):t=JSON.parse(t,e.parse.jsonReviver),t},iterateAndReviveArray:function(t){for(var i=0;i<t.length;i++)"object"==typeof t[i]&&null!==t[i]?e.parse.iterateAndReviveJson(t[i]):"string"!=typeof t[i]||/^[\s]*\[|^[\s]*\{(.)+:|\"/g.test(t[i])&&-1!==t[i].toString().indexOf('"')?t[i]=e.parse.parseJson(t[i]):t[i]=e.parse.jsonReviver("",t[i])},iterateAndReviveJson:function(t){for(var i,r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];e.startsWith(o,"__")||("object"==typeof(i=t[o])?i instanceof Array?e.parse.iterateAndReviveArray(i):i&&e.parse.iterateAndReviveJson(i):t[o]=e.parse.jsonReviver(t[o],i))}},jsonReviver:function(t,i){if("string"==typeof i){var r=/^\/Date\(([+-]?[0-9]+)([+-][0-9]{4})?\)\/$/.exec(i),n=e.timeZoneHandling?e.serverTimezoneOffset:null;if(r)return e.dateParse.toTimeZone(new Date(parseInt(r[1],10)),n,!0);if(/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*){1})([zZ]|([+\-])(\d\d):?(\d\d))?$/.test(i)){var o=i.indexOf("Z")>-1||i.indexOf("z")>-1,s=i.split(/[^0-9.]/);if(o){if(s[5].indexOf(".")>-1){var a=s[5].split(".");s[5]=a[0],s[6]=new Date(i).getUTCMilliseconds().toString()}else s[6]="00";i=e.dateParse.toTimeZone(new Date(parseInt(s[0],10),parseInt(s[1],10)-1,parseInt(s[2],10),parseInt(s[3],10),parseInt(s[4],10),parseInt(s[5]?s[5]:"00",10),parseInt(s[6],10)),e.serverTimezoneOffset,!1)}else{var c=new Date(parseInt(s[0],10),parseInt(s[1],10)-1,parseInt(s[2],10),parseInt(s[3],10),parseInt(s[4],10),parseInt(s[5]?s[5]:"00",10)),h=parseInt(s[6],10),u=parseInt(s[7],10);if(isNaN(h)&&isNaN(u))return c;i.indexOf("+")>-1?c.setHours(c.getHours()-h,c.getMinutes()-u):c.setHours(c.getHours()+h,c.getMinutes()+u),i=e.dateParse.toTimeZone(c,e.serverTimezoneOffset,!1)}null==e.serverTimezoneOffset&&(i=e.dateParse.addSelfOffset(i))}}return i},isJson:function(t){return"string"==typeof t[0]?t:e.parse.parseJson(t)},isGuid:function(e){return null!=/[A-Fa-f0-9]{8}(?:-[A-Fa-f0-9]{4}){3}-[A-Fa-f0-9]{12}/i.exec(e)},replacer:function(t,i){return e.isPlainObject(t)?e.parse.jsonReplacer(t,i):t instanceof Array?e.parse.arrayReplacer(t):t instanceof Date?e.parse.jsonReplacer({val:t},i).val:t},jsonReplacer:function(t,i){for(var r,n=0,o=Object.keys(t);n<o.length;n++){var s=o[n];if((r=t[s])instanceof Date){var a=r;null==e.serverTimezoneOffset?t[s]=e.dateParse.toTimeZone(a,null).toJSON():(a=new Date(+a+36e5*e.serverTimezoneOffset),t[s]=e.dateParse.toTimeZone(e.dateParse.addSelfOffset(a),null).toJSON())}}return t},arrayReplacer:function(t){for(var i=0;i<t.length;i++)e.isPlainObject(t[i])?t[i]=e.parse.jsonReplacer(t[i]):t[i]instanceof Date&&(t[i]=e.parse.jsonReplacer({date:t[i]}).date);return t},jsonDateReplacer:function(t,i){if("value"===t&&i){if("string"==typeof i){var r=/^\/Date\(([+-]?[0-9]+)([+-][0-9]{4})?\)\/$/.exec(i);if(r)i=e.dateParse.toTimeZone(new Date(parseInt(r[1],10)),null,!0);else if(/^(\d{4}\-\d\d\-\d\d([tT][\d:\.]*){1})([zZ]|([+\-])(\d\d):?(\d\d))?$/.test(i)){var n=i.split(/[^0-9]/);i=e.dateParse.toTimeZone(new Date(parseInt(n[0],10),parseInt(n[1],10)-1,parseInt(n[2],10),parseInt(n[3],10),parseInt(n[4],10),parseInt(n[5],10)),null,!0)}}if(i instanceof Date)return i=e.dateParse.addSelfOffset(i),null===e.serverTimezoneOffset?e.dateParse.toTimeZone(e.dateParse.addSelfOffset(i),null).toJSON():(i=e.dateParse.toTimeZone(i,i.getTimezoneOffset()/60-e.serverTimezoneOffset,!1)).toJSON()}return i}},e.dateParse={addSelfOffset:function(e){return new Date(+e-6e4*e.getTimezoneOffset())},toUTC:function(e){return new Date(+e+6e4*e.getTimezoneOffset())},toTimeZone:function(t,i,r){if(null===i)return t;var n=r?e.dateParse.toUTC(t):t;return new Date(+n-36e5*i)},toLocalTime:function(e){var t=e,i=-t.getTimezoneOffset(),r=i>=0?"+":"-",n=function(e){var t=Math.floor(Math.abs(e));return(t<10?"0":"")+t};return t.getFullYear()+"-"+n(t.getMonth()+1)+"-"+n(t.getDate())+"T"+n(t.getHours())+":"+n(t.getMinutes())+":"+n(t.getSeconds())+r+n(i/60)+":"+n(i%60)}},e}(),hr=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),ur={GroupGuid:"{271bbba0-1ee7}"},lr=function(){function e(t){this.options={from:"table",requestType:"json",sortBy:"sorted",select:"select",skip:"skip",group:"group",take:"take",search:"search",count:"requiresCounts",where:"where",aggregates:"aggregates",expand:"expand"},this.type=e,this.dataSource=t,this.pvt={}}return e.prototype.processResponse=function(e,t,i,r){return e},e}(),pr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hr(t,e),t.prototype.processQuery=function(e,t){for(var i,r,n,o=e.dataSource.json.slice(0),s=o.length,a=!0,c={},h=0,u=[],l=0;l<t.lazyLoad.length;l++)h++,c[t.lazyLoad[l].key]=t.lazyLoad[l].value;var p={};for(l=0;l<t.queries.length;l++)"onPage"!==(r=t.queries[l]).fn&&"onGroup"!==r.fn||!t.lazyLoad.length?(i=this[r.fn].call(this,o,r.e,t),"onAggregates"===r.fn?p[r.e.field+" - "+r.e.type]=i:o=void 0!==i?i:o,"onPage"!==r.fn&&"onSkip"!==r.fn&&"onTake"!==r.fn&&"onRange"!==r.fn||(a=!1),a&&(s=o.length)):("onGroup"===r.fn&&u.push(r.e),"onPage"===r.fn&&(n=r.e));if(h){var d={query:t,lazyLoad:c,result:o,group:u,page:n},g=this.lazyLoadGroup(d);o=g.result,s=g.count}return t.isCountRequired&&(o={result:o,count:s,aggregates:p}),o},t.prototype.lazyLoadGroup=function(e){var t=0,i=this.getAggregate(e.query),r=e.result;if(He(e.lazyLoad.onDemandGroupInfo)){s=e.group[0].fieldName;t=(r=cr.group(r,s,i,null,null,e.group[0].comparer,!0)).length;a=r;e.page&&(r=this.onPage(r,e.page,e.query)),this.formGroupResult(r,a)}else{for(var n=e.lazyLoad.onDemandGroupInfo,o=n.where.length-1;o>=0;o--)r=this.onWhere(r,n.where[o]);if(e.group.length!==n.level){var s=e.group[n.level].fieldName;r=cr.group(r,s,i,null,null,e.group[0].comparer,!0)}t=r.length;var a=r;r=(r=r.slice(n.skip)).slice(0,n.take),e.group.length!==n.level&&this.formGroupResult(r,a)}return{result:r,count:t}},t.prototype.formGroupResult=function(e,t){if(e.length&&t.length){var i="GroupGuid",r="childLevels",n="level",o="records";e[i]=t[i],e[r]=t[r],e[n]=t[n],e[o]=t[o]}return e},t.prototype.getAggregate=function(e){var t=or.filterQueries(e.queries,"onAggregates"),i=[];if(t.length)for(var r=void 0,n=0;n<t.length;n++)r=t[n].e,i.push({type:r.type,field:cr.getValue(r.field,e)});return i},t.prototype.batchRequest=function(e,t,i){var r,n=t.deletedRecords.length;for(r=0;r<t.addedRecords.length;r++)this.insert(e,t.addedRecords[r]);for(r=0;r<t.changedRecords.length;r++)this.update(e,i.key,t.changedRecords[r]);for(r=0;r<n;r++)this.remove(e,i.key,t.deletedRecords[r]);return t},t.prototype.onWhere=function(e,t){return e&&e.length?e.filter(function(e){if(t)return t.validate(e)}):e},t.prototype.onAggregates=function(e,t){var i=cr.aggregates[t.type];return e&&i&&0!==e.length?i(e,t.field):null},t.prototype.onSearch=function(e,t){return e&&e.length?(0===t.fieldNames.length&&cr.getFieldList(e[0],t.fieldNames),e.filter(function(e){for(var i=0;i<t.fieldNames.length;i++)if(t.comparer.call(e,cr.getObject(t.fieldNames[i],e),t.searchKey,t.ignoreCase,t.ignoreAccent))return!0;return!1})):e},t.prototype.onSortBy=function(e,t,i){if(!e||!e.length)return e;var r,n=cr.getValue(t.fieldName,i);if(!n)return e.sort(t.comparer);if(n instanceof Array){for(var o=(n=n.slice(0)).length-1;o>=0;o--)n[o]&&(r=t.comparer,cr.endsWith(n[o]," desc")&&(r=cr.fnSort("descending"),n[o]=n[o].replace(" desc","")),e=cr.sort(e,n[o],r));return e}return cr.sort(e,n,t.comparer)},t.prototype.onGroup=function(e,t,i){if(!e||!e.length)return e;var r=this.getAggregate(i);return cr.group(e,cr.getValue(t.fieldName,i),r,null,null,t.comparer)},t.prototype.onPage=function(e,t,i){var r=cr.getValue(t.pageSize,i),n=(cr.getValue(t.pageIndex,i)-1)*r,o=n+r;return e&&e.length?e.slice(n,o):e},t.prototype.onRange=function(e,t){return e&&e.length?e.slice(cr.getValue(t.start),cr.getValue(t.end)):e},t.prototype.onTake=function(e,t){return e&&e.length?e.slice(0,cr.getValue(t.nos)):e},t.prototype.onSkip=function(e,t){return e&&e.length?e.slice(cr.getValue(t.nos)):e},t.prototype.onSelect=function(e,t){return e&&e.length?cr.select(e,cr.getValue(t.fieldNames)):e},t.prototype.insert=function(e,t,i,r,n){return He(n)?e.dataSource.json.push(t):e.dataSource.json.splice(n,0,t)},t.prototype.remove=function(e,t,i,r){var n,o=e.dataSource.json;for("object"!=typeof i||i instanceof Date||(i=cr.getObject(t,i)),n=0;n<o.length&&cr.getObject(t,o[n])!==i;n++);return n!==o.length?o.splice(n,1):null},t.prototype.update=function(e,t,i,r){var n,o,s=e.dataSource.json;for(He(t)||(o=Ye(t,i)),n=0;n<s.length&&(He(t)||Ye(t,s[n])!==o);n++);return n<s.length?We(s[n],i):null},t}(lr),dr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hr(t,e),t.prototype.processQuery=function(e,t,i){var r,n,o=this.getQueryRequest(t),s=or.filterQueryLists(t.queries,["onSelect","onPage","onSkip","onTake","onRange"]),a=t.params,c=e.dataSource.url,h=null,u=this.options,l={sorts:[],groups:[],filters:[],searches:[],aggregates:[]};"onPage"in s?(r=s.onPage,n=((n=cr.getValue(r.pageIndex,t))-1)*(h=cr.getValue(r.pageSize,t))):"onRange"in s&&(n=(r=s.onRange).start,h=r.end-r.start);for(var p=0;p<o.sorts.length;p++)r=cr.getValue(o.sorts[p].e.fieldName,t),l.sorts.push(cr.callAdaptorFunction(this,"onEachSort",{name:r,direction:o.sorts[p].e.direction},t));i&&(r=this.getFiltersFrom(i,t))&&l.filters.push(cr.callAdaptorFunction(this,"onEachWhere",r.toJson(),t));for(p=0;p<o.filters.length;p++){var d=cr.callAdaptorFunction(this,"onEachWhere",o.filters[p].e.toJson(),t);this.getModuleName&&"ODataV4Adaptor"===this.getModuleName()&&!He(o.filters[p].e.key)&&o.filters.length>1&&(d="("+d+")"),l.filters.push(d);for(var g=0,f="object"==typeof l.filters[p]?Object.keys(l.filters[p]):[];g<f.length;g++){var M=f[g];cr.isNull(l[M])&&delete l[M]}}for(p=0;p<o.searches.length;p++)r=o.searches[p].e,l.searches.push(cr.callAdaptorFunction(this,"onEachSearch",{fields:r.fieldNames,operator:r.operator,key:r.searchKey,ignoreCase:r.ignoreCase},t));for(p=0;p<o.groups.length;p++)l.groups.push(cr.getValue(o.groups[p].e.fieldName,t));for(p=0;p<o.aggregates.length;p++)r=o.aggregates[p].e,l.aggregates.push({type:r.type,field:cr.getValue(r.field,t)});var m={};if(this.getRequestQuery(u,t,s,l,m),cr.callAdaptorFunction(this,"addParams",{dm:e,query:t,params:a,reqParams:m}),t.lazyLoad.length)for(p=0;p<t.lazyLoad.length;p++)m[t.lazyLoad[p].key]=t.lazyLoad[p].value;for(var y=0,N=Object.keys(m);y<N.length;y++){M=N[y];(cr.isNull(m[M])||""===m[M]||0===m[M].length)&&delete m[M]}u.skip in m&&u.take in m||null===h||(m[u.skip]=cr.callAdaptorFunction(this,"onSkip",n,t),m[u.take]=cr.callAdaptorFunction(this,"onTake",h,t));var j=this.pvt;return this.pvt={},"json"===this.options.requestType?{data:JSON.stringify(m,cr.parse.jsonDateReplacer),url:c,pvtData:j,type:"POST",contentType:"application/json; charset=utf-8"}:(r=this.convertToQueryString(m,t,e),{type:"GET",url:(r=(-1!==e.dataSource.url.indexOf("?")?"&":"/")+r).length?c.replace(/\/*$/,r):c,pvtData:j})},t.prototype.getRequestQuery=function(e,t,i,r,n){var o=n;o[e.from]=t.fromTable,e.apply&&t.distincts.length&&(o[e.apply]="onDistinct"in this?cr.callAdaptorFunction(this,"onDistinct",t.distincts):""),!t.distincts.length&&e.expand&&(o[e.expand]="onExpand"in this&&"onSelect"in i?cr.callAdaptorFunction(this,"onExpand",{selects:cr.getValue(i.onSelect.fieldNames,t),expands:t.expands},t):t.expands),o[e.select]="onSelect"in i&&!t.distincts.length?cr.callAdaptorFunction(this,"onSelect",cr.getValue(i.onSelect.fieldNames,t),t):"",o[e.count]=t.isCountRequired?cr.callAdaptorFunction(this,"onCount",t.isCountRequired,t):"",o[e.search]=r.searches.length?cr.callAdaptorFunction(this,"onSearch",r.searches,t):"",o[e.skip]="onSkip"in i?cr.callAdaptorFunction(this,"onSkip",cr.getValue(i.onSkip.nos,t),t):"",o[e.take]="onTake"in i?cr.callAdaptorFunction(this,"onTake",cr.getValue(i.onTake.nos,t),t):"",o[e.where]=r.filters.length||r.searches.length?cr.callAdaptorFunction(this,"onWhere",r.filters,t):"",o[e.sortBy]=r.sorts.length?cr.callAdaptorFunction(this,"onSortBy",r.sorts,t):"",o[e.group]=r.groups.length?cr.callAdaptorFunction(this,"onGroup",r.groups,t):"",o[e.aggregates]=r.aggregates.length?cr.callAdaptorFunction(this,"onAggregates",r.aggregates,t):"",o.param=[]},t.prototype.convertToQueryString=function(e,t,i){return""},t.prototype.processResponse=function(e,t,i,r,n,o){if(r&&r.headers.get("Content-Type")&&-1!==r.headers.get("Content-Type").indexOf("application/json")){var s=cr.timeZoneHandling;t&&!t.timeZoneHandling&&(cr.timeZoneHandling=!1),e=cr.parse.parseJson(e),cr.timeZoneHandling=s}var a=n,c=a.pvtData||{},h=e?e.groupDs:[];if(r&&r.headers.get("Content-Type")&&-1!==r.headers.get("Content-Type").indexOf("xml"))return i.isCountRequired?{result:[],count:0}:[];var u=JSON.parse(a.data);if(u&&"batch"===u.action&&e&&e.addedRecords)return o.addedRecords=e.addedRecords,o;e&&e.d&&(e=e.d);var l={};e&&"count"in e&&(l.count=e.count),l.result=e&&e.result?e.result:e;var p=!1;if(Array.isArray(e.result)&&e.result.length){if(He(e.result[0].key)||(l.result=this.formRemoteGroupedData(l.result,1,c.groups.length-1)),i&&i.lazyLoad.length&&c.groups.length)for(var d=0;d<i.lazyLoad.length;d++)if("onDemandGroupInfo"===i.lazyLoad[d].key){var g=i.lazyLoad[d].value.level;c.groups.length===g&&(p=!0)}}return p||this.getAggregateResult(c,e,l,h,i),cr.isNull(l.count)?l.result:{result:l.result,count:l.count,aggregates:l.aggregates}},t.prototype.formRemoteGroupedData=function(e,t,i){for(var r=0;r<e.length;r++)e[r].items.length&&Object.keys(e[r].items[0]).indexOf("key")>-1&&this.formRemoteGroupedData(e[r].items,t+1,i-1);var n="GroupGuid",o="records";return e[n]=ur[n],e.level=t,e.childLevels=i,e[o]=e[0].items.length?this.getGroupedRecords(e,!He(e[0].items[o])):[],e},t.prototype.getGroupedRecords=function(e,t){for(var i=[],r=0;r<e.length;r++)if(t)i=i.concat(e[r].items.records);else for(var n=0;n<e[r].items.length;n++)i.push(e[r].items[n]);return i},t.prototype.onGroup=function(e){return this.pvt.groups=e,e},t.prototype.onAggregates=function(e){this.pvt.aggregates=e},t.prototype.batchRequest=function(e,t,i,r,n){return{type:"POST",url:e.dataSource.batchUrl||e.dataSource.crudUrl||e.dataSource.removeUrl||e.dataSource.url,contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(Ge({},{changed:t.changedRecords,added:t.addedRecords,deleted:t.deletedRecords,action:"batch",table:i[void 0],key:i[void 0]},cr.getAddParams(this,e,r)))}},t.prototype.beforeSend=function(e,t){},t.prototype.insert=function(e,t,i,r){return{url:e.dataSource.insertUrl||e.dataSource.crudUrl||e.dataSource.url,data:JSON.stringify(Ge({},{value:t,table:i,action:"insert"},cr.getAddParams(this,e,r)))}},t.prototype.remove=function(e,t,i,r,n){return{type:"POST",url:e.dataSource.removeUrl||e.dataSource.crudUrl||e.dataSource.url,data:JSON.stringify(Ge({},{key:i,keyColumn:t,table:r,action:"remove"},cr.getAddParams(this,e,n)))}},t.prototype.update=function(e,t,i,r,n){return{type:"POST",url:e.dataSource.updateUrl||e.dataSource.crudUrl||e.dataSource.url,data:JSON.stringify(Ge({},{value:i,action:"update",keyColumn:t,key:cr.getObject(t,i),table:r},cr.getAddParams(this,e,n)))}},t.prototype.getFiltersFrom=function(e,t){var i,r=t.fKey,n=r,o=t.key,s=[];"object"!=typeof e[0]&&(n=null);for(var a=0;a<e.length;a++)i="object"==typeof e[0]?cr.getObject(o||n,e[a]):e[a],s.push(new sr(r,"equal",i));return sr.or(s)},t.prototype.getAggregateResult=function(e,t,i,r,n){var o=t;if(t&&t.result&&(o=t.result),e&&e.aggregates&&e.aggregates.length){var s=e.aggregates,a=void 0,c=o,h={};t.aggregate&&(c=t.aggregate);for(var u=0;u<s.length;u++)(a=cr.aggregates[s[u].type])&&(h[s[u].field+" - "+s[u].type]=a(c,s[u].field));i.aggregates=h}var l=Array.isArray(t.result)&&t.result.length&&!He(t.result[0].key);if(e&&e.groups&&e.groups.length&&!l){var p=e.groups;for(u=0;u<p.length;u++){He(r)||(r=cr.group(r,p[u]));var d=or.filterQueries(n.queries,"onGroup")[u].e;o=cr.group(o,p[u],e.aggregates,null,r,d.comparer)}i.result=o}return i},t.prototype.getQueryRequest=function(e){var t={sorts:[],groups:[],filters:[],searches:[],aggregates:[]};return t.sorts=or.filterQueries(e.queries,"onSortBy"),t.groups=or.filterQueries(e.queries,"onGroup"),t.filters=or.filterQueries(e.queries,"onWhere"),t.searches=or.filterQueries(e.queries,"onSearch"),t.aggregates=or.filterQueries(e.queries,"onAggregates"),t},t.prototype.addParams=function(e){var t=e.reqParams;e.params.length&&(t.params={});for(var i=0,r=e.params;i<r.length;i++){var n=r[i];if(t[n.key])throw new Error("Query() - addParams: Custom Param is conflicting other request arguments");t[n.key]=n.value,n.fn&&(t[n.key]=n.fn.call(e.query,n.key,e.query,e.dm)),t.params[n.key]=t[n.key]}},t}(lr),gr=function(e){function t(t){var i=e.call(this)||this;return i.options=Ge({},i.options,{requestType:"get",accept:"application/json;odata=light;q=1,application/json;odata=verbose;q=0.5",multipartAccept:"multipart/mixed",sortBy:"$orderby",select:"$select",skip:"$skip",take:"$top",count:"$inlinecount",where:"$filter",expand:"$expand",batch:"$batch",changeSet:"--changeset_",batchPre:"batch_",contentId:"Content-Id: ",batchContent:"Content-Type: multipart/mixed; boundary=",changeSetContent:"Content-Type: application/http\nContent-Transfer-Encoding: binary ",batchChangeSetContentType:"Content-Type: application/json; charset=utf-8 ",updateType:"PUT"}),Ge(i.options,t||{}),i}return hr(t,e),t.prototype.getModuleName=function(){return"ODataAdaptor"},t.prototype.onPredicate=function(e,i,r){var n,o,s="",a=e.value,c=typeof a,h=e.field?t.getField(e.field):null;if(a instanceof Date&&(a="datetime'"+cr.parse.replacer(a)+"'"),"string"===c&&(a=a.replace(/'/g,"''"),e.ignoreCase&&(a=a.toLowerCase()),"like"!==e.operator&&(a=encodeURIComponent(a)),"wildcard"!==e.operator&&"like"!==e.operator&&(a="'"+a+"'"),r&&(h="cast("+h+", 'Edm.String')"),cr.parse.isGuid(a)&&(o="guid"),e.ignoreCase&&(o||(h="tolower("+h+")"),a=a.toLowerCase())),"isempty"===e.operator||"isnull"===e.operator||"isnotempty"===e.operator||"isnotnull"===e.operator?(n=-1!==e.operator.indexOf("isnot")?cr.odBiOperator.notequal:cr.odBiOperator.equal,a="isnull"===e.operator||"isnotnull"===e.operator?null:"''"):n=cr.odBiOperator[e.operator],n)return s+=h,s+=n,o&&(s+=o),s+a;if("like"===(n=He(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?cr.odUniOperator[e.operator]:cr.odv4UniOperator[e.operator]))-1!==a.indexOf("%")&&("%"===a.charAt(0)&&a.lastIndexOf("%")<2?(a=a.substring(1,a.length),n=He(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?cr.odUniOperator.startswith:cr.odv4UniOperator.startswith):"%"===a.charAt(a.length-1)&&a.indexOf("%")>a.length-3?(a=a.substring(0,a.length-1),n=He(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?cr.odUniOperator.endswith:cr.odv4UniOperator.endswith):a.lastIndexOf("%")!==a.indexOf("%")&&a.lastIndexOf("%")>a.indexOf("%")+1?(a=a.substring(a.indexOf("%")+1,a.lastIndexOf("%")),n=He(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?cr.odUniOperator.contains:cr.odv4UniOperator.contains):n=He(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?cr.odUniOperator.contains:cr.odv4UniOperator.contains),a="'"+(a=encodeURIComponent(a))+"'";else if("wildcard"===n)if(-1!==a.indexOf("*")){var u=a.split("*"),l=void 0,p=0;if(0!==a.indexOf("*")&&-1===u[0].indexOf("%3f")&&-1===u[0].indexOf("?")&&(l="'"+(l=u[0])+"'",s+=(n=He(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?cr.odUniOperator.startswith:cr.odv4UniOperator.startswith)+"(",s+=h+",",o&&(s+=o),s+=l+")",p++),a.lastIndexOf("*")!==a.length-1&&-1===u[u.length-1].indexOf("%3f")&&-1===u[u.length-1].indexOf("?")&&(l="'"+(l=u[u.length-1])+"'",p>0&&(s+=" and "),s+=(n=He(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?cr.odUniOperator.endswith:cr.odv4UniOperator.endswith)+"(",s+=h+",",o&&(s+=o),s+=l+")",p++),u.length>2)for(var d=1;d<u.length-1;d++)if(-1===u[d].indexOf("%3f")&&-1===u[d].indexOf("?")){if(l="'"+(l=u[d])+"'",p>0&&(s+=" and "),"substringof"===(n=He(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?cr.odUniOperator.contains:cr.odv4UniOperator.contains)||"not substringof"===n){var g=l;l=h,h=g}s+=n+"(",s+=h+",",o&&(s+=o),s+=l+")",p++}0===p?(n=He(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?cr.odUniOperator.contains:cr.odv4UniOperator.contains,-1===a.indexOf("?")&&-1===a.indexOf("%3f")||(a=-1!==a.indexOf("?")?a.split("?").join(""):a.split("%3f").join("")),a="'"+a+"'"):n="wildcard"}else n=He(this.getModuleName)||"ODataV4Adaptor"!==this.getModuleName()?cr.odUniOperator.contains:cr.odv4UniOperator.contains,-1===a.indexOf("?")&&-1===a.indexOf("%3f")||(a=-1!==a.indexOf("?")?a.split("?").join(""):a.split("%3f").join("")),a="'"+a+"'";if("substringof"===n||"not substringof"===n){g=a;a=h,h=g}return"wildcard"!==n&&(s+=n+"(",s+=h+",",o&&(s+=o),s+=a+")"),s},t.prototype.addParams=function(t){e.prototype.addParams.call(this,t),delete t.reqParams.params},t.prototype.onComplexPredicate=function(e,t,i){for(var r=[],n=0;n<e.predicates.length;n++)r.push("("+this.onEachWhere(e.predicates[n],t,i)+")");return r.join(" "+e.condition+" ")},t.prototype.onEachWhere=function(e,t,i){return e.isComplex?this.onComplexPredicate(e,t,i):this.onPredicate(e,t,i)},t.prototype.onWhere=function(e){return this.pvt.search&&e.push(this.onEachWhere(this.pvt.search,null,!0)),e.join(" and ")},t.prototype.onEachSearch=function(e){e.fields&&0===e.fields.length&&cr.throwError("Query() - Search : oData search requires list of field names to search");for(var t=this.pvt.search||[],i=0;i<e.fields.length;i++)t.push(new sr(e.fields[i],e.operator,e.key,e.ignoreCase));this.pvt.search=t},t.prototype.onSearch=function(e){return this.pvt.search=sr.or(this.pvt.search),""},t.prototype.onEachSort=function(e){var i=[];if(e.name instanceof Array)for(var r=0;r<e.name.length;r++)i.push(t.getField(e.name[r])+("descending"===e.direction?" desc":""));else i.push(t.getField(e.name)+("descending"===e.direction?" desc":""));return i.join(",")},t.prototype.onSortBy=function(e){return e.reverse().join(",")},t.prototype.onGroup=function(e){return this.pvt.groups=e,[]},t.prototype.onSelect=function(e){for(var i=0;i<e.length;i++)e[i]=t.getField(e[i]);return e.join(",")},t.prototype.onAggregates=function(e){return this.pvt.aggregates=e,""},t.prototype.onCount=function(e){return!0===e?"allpages":""},t.prototype.beforeSend=function(e,t,i){cr.endsWith(i.url,this.options.batch)&&"post"===i.type.toLowerCase()?(t.headers.set("Accept",this.options.multipartAccept),t.headers.set("DataServiceVersion","2.0")):t.headers.set("Accept",this.options.accept),t.headers.set("DataServiceVersion","2.0"),t.headers.set("MaxDataServiceVersion","2.0")},t.prototype.processResponse=function(e,t,i,r,n,o){var s="odata.metadata";if(n&&"GET"===n.type&&!this.rootUrl&&e[s]){var a=e[s].split("/$metadata#");this.rootUrl=a[0],this.resourceTableName=a[1]}if(!He(e.d)){var c=i&&i.isCountRequired?e.d.results:e.d,h="__metadata";if(!He(c))for(var u=0;u<c.length;u++)He(c[u][h])||delete c[u][h]}var l=n&&n.pvtData,p=this.processBatchResponse(e,i,r,n,o);if(p)return p;var d=r&&n.fetchRequest.headers.get("DataServiceVersion"),g=null,f=d&&parseInt(d,10)||2;if(i&&i.isCountRequired){var M="__count";(e[M]||e["odata.count"])&&(g=e[M]||e["odata.count"]),e.d&&(e=e.d),(e[M]||e["odata.count"])&&(g=e[M]||e["odata.count"])}3===f&&e.value&&(e=e.value),e.d&&(e=e.d),f<3&&e.results&&(e=e.results);var m={};return m.count=g,m.result=e,this.getAggregateResult(l,e,m,null,i),cr.isNull(g)?m.result:{result:m.result,count:m.count,aggregates:m.aggregates}},t.prototype.convertToQueryString=function(e,t,i){var r=[],n="table",o=e[n]||"";delete e[n],i.dataSource.requiresFormat&&(e.$format="json");for(var s=0,a=Object.keys(e);s<a.length;s++){var c=a[s];r.push(c+"="+e[c])}return r=r.join("&"),i.dataSource.url&&-1!==i.dataSource.url.indexOf("?")&&!o?r:r.length?o+"?"+r:o||""},t.prototype.localTimeReplacer=function(e,t){for(var i=0,r=He(t)?[]:Object.keys(t);i<r.length;i++){var n=r[i];t[n]instanceof Date&&(t[n]=cr.dateParse.toLocalTime(t[n]))}return t},t.prototype.insert=function(e,t,i){return{url:(e.dataSource.insertUrl||e.dataSource.url).replace(/\/*$/,i?"/"+i:""),data:JSON.stringify(t,this.options.localTime?this.localTimeReplacer:null)}},t.prototype.remove=function(e,t,i,r){var n;return n="string"!=typeof i||cr.parse.isGuid(i)?"("+i+")":"('"+i+"')",{type:"DELETE",url:(e.dataSource.removeUrl||e.dataSource.url).replace(/\/*$/,r?"/"+r:"")+n}},t.prototype.update=function(e,t,i,r,n,o){var s;return"PATCH"!==this.options.updateType||He(o)||(i=this.compareAndRemove(i,o,t)),s="string"!=typeof i[t]||cr.parse.isGuid(i[t])?"("+i[t]+")":"('"+i[t]+"')",{type:this.options.updateType,url:(e.dataSource.updateUrl||e.dataSource.url).replace(/\/*$/,r?"/"+r:"")+s,data:JSON.stringify(i,this.options.localTime?this.localTimeReplacer:null),accept:this.options.accept}},t.prototype.batchRequest=function(e,t,i,r,n){var o=i.guid=cr.getGuid(this.options.batchPre),s=this.rootUrl?this.rootUrl+"/"+this.options.batch:e.dataSource.url.replace(/\/*$/,"/"+this.options.batch);i.url=this.resourceTableName?this.resourceTableName:i.url;var a={url:i.url,key:i.key,cid:1,cSet:cr.getGuid(this.options.changeSet)},c="--"+o+"\n";return c+="Content-Type: multipart/mixed; boundary="+a.cSet.replace("--","")+"\n",this.pvt.changeSet=0,c+=this.generateInsertRequest(t.addedRecords,a,e),c+=this.generateUpdateRequest(t.changedRecords,a,e,n?n.changedRecords:[]),c+=this.generateDeleteRequest(t.deletedRecords,a,e),c+=a.cSet+"--\n",{type:"POST",url:s,dataType:"json",contentType:"multipart/mixed; charset=UTF-8;boundary="+o,data:c+="--"+o+"--"}},t.prototype.generateDeleteRequest=function(e,t,i){if(!e)return"";var r={method:"DELETE ",url:function(e,t,i){var r=cr.getObject(i,e[t]);return"number"==typeof r||cr.parse.isGuid(r)?"("+r+")":r instanceof Date?"("+e[t][i].toJSON()+")":"('"+r+"')"},data:function(e,t){return""}};return this.generateBodyContent(e,t,r,i)+"\n"},t.prototype.generateInsertRequest=function(e,t,i){if(!e)return"";var r={method:"POST ",url:function(e,t,i){return""},data:function(e,t){return JSON.stringify(e[t])+"\n\n"}};return this.generateBodyContent(e,t,r,i)},t.prototype.generateUpdateRequest=function(e,t,i,r){var n=this;if(!e)return"";e.forEach(function(e){return e=n.compareAndRemove(e,r.filter(function(i){return cr.getObject(t.key,i)===cr.getObject(t.key,e)})[0],t.key)});var o={method:this.options.updateType+" ",url:function(e,t,i){return"number"==typeof e[t][i]||cr.parse.isGuid(e[t][i])?"("+e[t][i]+")":e[t][i]instanceof Date?"("+e[t][i].toJSON()+")":"('"+e[t][i]+"')"},data:function(e,t){return JSON.stringify(e[t])+"\n\n"}};return this.generateBodyContent(e,t,o,i)},t.getField=function(e){return e.replace(/\./g,"/")},t.prototype.generateBodyContent=function(e,t,i,r){for(var n="",o=0;o<e.length;o++)n+="\n"+t.cSet+"\n",n+=this.options.changeSetContent+"\n\n",n+=i.method,"POST "===i.method?n+=(r.dataSource.insertUrl||r.dataSource.crudUrl||t.url)+i.url(e,o,t.key)+" HTTP/1.1\n":"PUT "===i.method||"PATCH "===i.method?n+=(r.dataSource.updateUrl||r.dataSource.crudUrl||t.url)+i.url(e,o,t.key)+" HTTP/1.1\n":"DELETE "===i.method&&(n+=(r.dataSource.removeUrl||r.dataSource.crudUrl||t.url)+i.url(e,o,t.key)+" HTTP/1.1\n"),n+="Accept: "+this.options.accept+"\n",n+="Content-Id: "+this.pvt.changeSet+++"\n",n+=this.options.batchChangeSetContentType+"\n",He(e[o]["@odata.etag"])?n+="\n":(n+="If-Match: "+e[o]["@odata.etag"]+"\n\n",delete e[o]["@odata.etag"]),n+=i.data(e,o);return n},t.prototype.processBatchResponse=function(e,t,i,r,n){if(i&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("xml"))return t.isCountRequired?{result:[],count:0}:[];if(r&&this.options.batch&&cr.endsWith(r.url,this.options.batch)&&"post"===r.type.toLowerCase()){var o=i.headers.get("Content-Type"),s=void 0,a=void 0,c=e+"";if(o=o.substring(o.indexOf("=batchresponse")+1),(c=c.split(o)).length<2)return{};c=c[1];var h=/(?:\bContent-Type.+boundary=)(changesetresponse.+)/i.exec(c);h&&c.replace(h[0],"");for(var u=h?h[1]:"",l=(c=c.split(u)).length;l>-1;l--)/\bContent-ID:/i.test(c[l])&&/\bHTTP.+201/.test(c[l])&&(s=parseInt(/\bContent-ID: (\d+)/i.exec(c[l])[1],10),n.addedRecords[s]&&(a=cr.parse.parseJson(/^\{.+\}/m.exec(c[l])[0]),Ge({},n.addedRecords[s],this.processResponse(a))));return n}return null},t.prototype.compareAndRemove=function(e,t,i){var r=this;return He(t)||Object.keys(e).forEach(function(n){n!==i&&"@odata.etag"!==n&&(cr.isPlainObject(e[n])?(r.compareAndRemove(e[n],t[n]),0===Object.keys(e[n]).filter(function(e){return"@odata.etag"!==e}).length&&delete e[n]):(e[n]===t[n]||e[n]&&t[n]&&e[n].valueOf()===t[n].valueOf())&&delete e[n])}),e},t}(dr);!function(e){function t(t){var i=e.call(this,t)||this;return i.options=Ge({},i.options,{requestType:"get",accept:"application/json, text/javascript, */*; q=0.01",multipartAccept:"multipart/mixed",sortBy:"$orderby",select:"$select",skip:"$skip",take:"$top",count:"$count",search:"$search",where:"$filter",expand:"$expand",batch:"$batch",changeSet:"--changeset_",batchPre:"batch_",contentId:"Content-Id: ",batchContent:"Content-Type: multipart/mixed; boundary=",changeSetContent:"Content-Type: application/http\nContent-Transfer-Encoding: binary ",batchChangeSetContentType:"Content-Type: application/json; charset=utf-8 ",updateType:"PATCH",localTime:!1,apply:"$apply"}),Ge(i.options,t||{}),i}hr(t,e),t.prototype.getModuleName=function(){return"ODataV4Adaptor"},t.prototype.onCount=function(e){return!0===e?"true":""},t.prototype.onPredicate=function(t,i,r){var n="",o=t.value,s=o instanceof Date;if(i instanceof or)for(var a=this.getQueryRequest(i),c=0;c<a.filters.length;c++)a.filters[c].e.key===t.value&&(r=!0);return n=e.prototype.onPredicate.call(this,t,i,r),s&&(n=n.replace(/datetime'(.*)'$/,"$1")),cr.parse.isGuid(o)&&(n=n.replace("guid","").replace(/'/g,"")),n},t.prototype.onEachSearch=function(e){var t=this.pvt.searches||[];t.push(e.key),this.pvt.searches=t},t.prototype.onSearch=function(e){return this.pvt.searches.join(" OR ")},t.prototype.onExpand=function(e){var t=this,i={},r={},n=e.expands.slice(),o=[];return e.selects.filter(function(e){return e.indexOf(".")>-1}).forEach(function(e){var r=e.split(".");if(r[0]in i||(i[r[0]]=[]),2===r.length)i[r[0]].length&&-1!==Object.keys(i).indexOf(r[0])?-1!==i[r[0]][0].indexOf("$expand")&&-1===i[r[0]][0].indexOf(";$select=")?i[r[0]][0]=i[r[0]][0]+";$select="+r[1]:i[r[0]][0]=i[r[0]][0]+","+r[1]:i[r[0]].push("$select="+r[1]);else{for(var n="$select="+r[r.length-1],o="",s="",a=1;a<r.length-1;a++)o=o+"$expand="+r[a]+"(",s+=")";var c=o+n+s;if(i[r[0]].length&&-1!==Object.keys(i).indexOf(r[0])&&t.expandQueryIndex(i[r[0]],!0)){var h=t.expandQueryIndex(i[r[0]]);i[r[0]][h]=i[r[0]][h]+c.replace("$expand=",",")}else i[r[0]].push(c)}}),Object.keys(i).forEach(function(e){-1===n.indexOf(e)&&n.push(e)}),n.forEach(function(e){r[e]=e in i?e+"("+i[e].join(";")+")":e}),Object.keys(r).forEach(function(e){return o.push(r[e])}),o.join(",")},t.prototype.expandQueryIndex=function(e,t){for(var i=0;i<e.length;i++)if(-1!==e[i].indexOf("$expand"))return!!t||i;return!t&&0},t.prototype.onDistinct=function(e){return"groupby(("+e.map(function(e){return gr.getField(e)}).join(",")+"))"},t.prototype.onSelect=function(t){return e.prototype.onSelect.call(this,t.filter(function(e){return-1===e.indexOf(".")}))},t.prototype.beforeSend=function(e,t,i){"POST"!==i.type&&"PUT"!==i.type&&"PATCH"!==i.type||t.headers.set("Prefer","return=representation"),t.headers.set("Accept",this.options.accept)},t.prototype.processResponse=function(t,i,r,n,o,s){var a="@odata.context",c="@context";if(o&&"GET"===o.type&&!this.rootUrl&&(t[a]||t[c])){var h=t[a]?t[a].split("/$metadata#"):t[c].split("/$metadata#");this.rootUrl=h[0],this.resourceTableName=h[1]}var u=o&&o.pvtData,l=e.prototype.processBatchResponse.call(this,t,r,n,o,s);if(l)return l;var p=null,d="@odata.count",g="@count";r&&r.isCountRequired&&(d in t?p=t[d]:g in t&&(p=t[g])),t=He(t.value)?t:t.value;var f={};return f.count=p,f.result=t,this.getAggregateResult(u,t,f,null,r),cr.isNull(p)?f.result:{result:f.result,count:p,aggregates:f.aggregates}}}(gr),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}hr(t,e),t.prototype.getModuleName=function(){return"WebApiAdaptor"},t.prototype.insert=function(e,t,i){return{type:"POST",url:e.dataSource.url,data:JSON.stringify(t)}},t.prototype.remove=function(e,t,i,r){return{type:"DELETE",url:e.dataSource.url+"/"+i,data:JSON.stringify(i)}},t.prototype.update=function(e,t,i,r){return{type:"PUT",url:e.dataSource.url,data:JSON.stringify(i)}},t.prototype.batchRequest=function(e,t,i){var r=this,n=i.guid=cr.getGuid(this.options.batchPre),o=e.dataSource.url.replace(/\/*$/,"/"+this.options.batch);i.url=this.resourceTableName?this.resourceTableName:i.url;for(var s=[],a=function(r,o){t.addedRecords.forEach(function(o,a){var c=function(e,t,i){return""};s.push("--"+n),s.push("Content-Type: application/http; msgtype=request",""),s.push("POST /api/"+(e.dataSource.insertUrl||e.dataSource.crudUrl||i.url)+c(t.addedRecords,r,i.key)+" HTTP/1.1"),s.push("Content-Type: application/json; charset=utf-8"),s.push("Host: "+location.host),s.push("",o?JSON.stringify(o):"")})},c=0,h=t.addedRecords.length;c<h;c++)a(c);var u=function(o,a){t.changedRecords.forEach(function(a,c){r.options.updateType;var h=function(e,t,i){return""};s.push("--"+n),s.push("Content-Type: application/http; msgtype=request",""),s.push("PUT /api/"+(e.dataSource.updateUrl||e.dataSource.crudUrl||i.url)+h(t.changedRecords,o,i.key)+" HTTP/1.1"),s.push("Content-Type: application/json; charset=utf-8"),s.push("Host: "+location.host),s.push("",a?JSON.stringify(a):"")})};for(c=0,h=t.changedRecords.length;c<h;c++)u(c);var l=function(r,o){t.deletedRecords.forEach(function(o,a){var c=function(e,t,i){var r=cr.getObject(i,e[t]);return"number"==typeof r||cr.parse.isGuid(r)?"/"+r:r instanceof Date?"/"+e[t][i].toJSON():"/'"+r+"'"};s.push("--"+n),s.push("Content-Type: application/http; msgtype=request",""),s.push("DELETE /api/"+(e.dataSource.removeUrl||e.dataSource.crudUrl||i.url)+c(t.deletedRecords,r,i.key)+" HTTP/1.1"),s.push("Content-Type: application/json; charset=utf-8"),s.push("Host: "+location.host),s.push("",o?JSON.stringify(o):"")})};for(c=0,h=t.deletedRecords.length;c<h;c++)l(c);return s.push("--"+n+"--",""),{type:"POST",url:o,contentType:"multipart/mixed; boundary="+n,data:s.join("\r\n")}},t.prototype.beforeSend=function(e,t,i){t.headers.set("Accept","application/json, text/javascript, */*; q=0.01")},t.prototype.processResponse=function(e,t,i,r,n,o){var s=n&&n.pvtData,a=null,c={};if(n&&"post"!==n.type.toLowerCase()){var h=r&&n.fetchRequest.headers.get("DataServiceVersion"),u=h&&parseInt(h,10)||2;i&&i.isCountRequired&&(cr.isNull(e.Count)||(a=e.Count)),u<3&&e.Items&&(e=e.Items),c.count=a,c.result=e,this.getAggregateResult(s,e,c,null,i)}return c.result=c.result||e,cr.isNull(a)?c.result:{result:c.result,count:c.count,aggregates:c.aggregates}}}(gr),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}hr(t,e),t.prototype.processQuery=function(e,t,i){var r=(new dr).processQuery(e,t,i),n=cr.parse.parseJson(r.data),o={};if(n.param)for(var s=0;s<n.param.length;s++){var a=n.param[s],c=Object.keys(a)[0];o[c]=a[c]}o.value=n;return{data:JSON.stringify(o),url:r.url,pvtData:r.pvtData,type:"POST",contentType:"application/json; charset=utf-8"}}}(dr);var fr=function(e){function t(){var t=e.call(this)||this;return Re("beforeSend",dr.prototype.beforeSend,t),t}return hr(t,e),t.prototype.insert=function(e,t,i,r,n){return this.pvt.position=n,this.updateType="add",{url:e.dataSource.insertUrl||e.dataSource.crudUrl||e.dataSource.url,data:JSON.stringify(Ge({},{value:t,table:i,action:"insert"},cr.getAddParams(this,e,r)))}},t.prototype.remove=function(t,i,r,n,o){return e.prototype.remove.call(this,t,i,r),{type:"POST",url:t.dataSource.removeUrl||t.dataSource.crudUrl||t.dataSource.url,data:JSON.stringify(Ge({},{key:r,keyColumn:i,table:n,action:"remove"},cr.getAddParams(this,t,o)))}},t.prototype.update=function(e,t,i,r,n){return this.updateType="update",this.updateKey=t,{type:"POST",url:e.dataSource.updateUrl||e.dataSource.crudUrl||e.dataSource.url,data:JSON.stringify(Ge({},{value:i,action:"update",keyColumn:t,key:i[t],table:r},cr.getAddParams(this,e,n)))}},t.prototype.processResponse=function(t,i,r,n,o,s,a){var c;if(t="batch"===(o?JSON.parse(o.data):t).action?cr.parse.parseJson(t):t,"add"===this.updateType&&e.prototype.insert.call(this,i,t,null,null,this.pvt.position),"update"===this.updateType&&e.prototype.update.call(this,i,this.updateKey,t),this.updateType=void 0,t.added)for(c=0;c<t.added.length;c++)e.prototype.insert.call(this,i,t.added[c]);if(t.changed)for(c=0;c<t.changed.length;c++)e.prototype.update.call(this,i,a.key,t.changed[c]);if(t.deleted)for(c=0;c<t.deleted.length;c++)e.prototype.remove.call(this,i,a.key,t.deleted[c]);return t},t.prototype.batchRequest=function(e,t,i,r,n){return{type:"POST",url:e.dataSource.batchUrl||e.dataSource.crudUrl||e.dataSource.url,contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(Ge({},{changed:t.changedRecords,added:t.addedRecords,deleted:t.deletedRecords,action:"batch",table:i.url,key:i.key},cr.getAddParams(this,e,r)))}},t.prototype.addParams=function(e){(new dr).addParams(e)},t}(pr),Mr=function(e){function t(t){var i=e.call(this)||this;return i.options=Ge({},i.options,{getData:new Function,addRecord:new Function,updateRecord:new Function,deleteRecord:new Function,batchUpdate:new Function}),Ge(i.options,t||{}),i}return hr(t,e),t.prototype.getModuleName=function(){return"CustomDataAdaptor"},t}(dr);!function(e){function t(t){var i=e.call(this)||this;return i.opt=t,i.schema=i.opt.response,i.query=i.opt.query,i.getVariables=i.opt.getVariables?i.opt.getVariables:function(){},i.getQuery=function(){return i.query},i}hr(t,e),t.prototype.getModuleName=function(){return"GraphQLAdaptor"},t.prototype.processQuery=function(t,i){var r=e.prototype.processQuery.apply(this,arguments),n=JSON.parse(r.data),o={};["skip","take","sorted","table","select","where","search","requiresCounts","aggregates","params"].filter(function(e){o[e]="searchwhereparams".indexOf(e)>-1?JSON.stringify(n[e]):n[e]});var s=this.getVariables()||{};s.datamanager=o;var a=JSON.stringify({query:this.getQuery(),variables:s});return r.data=a,r},t.prototype.processResponse=function(e,t,i,r,n){var o,s,a=e,c=Ye(this.schema.result,a.data);this.schema.count&&(o=Ye(this.schema.count,a.data)),this.schema.aggregates&&(s=He(s=Ye(this.schema.aggregates,a.data))?s:cr.parse.parseJson(s));var h=n.pvtData||{},u={result:c,aggregates:s},l=u;return h&&h.groups&&h.groups.length&&this.getAggregateResult(h,l,u,null,i),He(o)?u.result:{result:u.result,count:o,aggregates:s}},t.prototype.insert=function(){var t=e.prototype.insert.apply(this,arguments);return this.generateCrudData(t,"insert")},t.prototype.update=function(){var t=e.prototype.update.apply(this,arguments);return this.generateCrudData(t,"update")},t.prototype.remove=function(){var t=e.prototype.remove.apply(this,arguments);return this.generateCrudData(t,"remove")},t.prototype.batchRequest=function(t,i,r,n,o){var s=e.prototype.batchRequest.apply(this,arguments),a=JSON.parse(s.data);return a.key=r.key,s.data=JSON.stringify(a),this.generateCrudData(s,"batch")},t.prototype.generateCrudData=function(e,t){var i=JSON.parse(e.data);return e.data=JSON.stringify({query:this.opt.getMutation(t),variables:i}),e}}(dr);var mr=function(e){function t(t,i,r){var n=e.call(this)||this;n.isCrudAction=!1,n.isInsertAction=!1,He(t)||(n.cacheAdaptor=t),n.pageSize=r,n.guidId=cr.getGuid("cacheAdaptor");window.localStorage.setItem(n.guidId,JSON.stringify({keys:[],results:[]}));var o=n.guidId;return He(i)||setInterval(function(){for(var e=cr.parse.parseJson(window.localStorage.getItem(o)),t=[],r=0;r<e.results.length;r++){var n=+new Date,s=+new Date(e.results[r].timeStamp);e.results[r].timeStamp=n-s,n-s>i&&t.push(r)}for(r=0;r<t.length;r++)e.results.splice(t[r],1),e.keys.splice(t[r],1);window.localStorage.removeItem(o),window.localStorage.setItem(o,JSON.stringify(e))},i),n}return hr(t,e),t.prototype.generateKey=function(e,t){var i=this.getQueryRequest(t),r=or.filterQueryLists(t.queries,["onSelect","onPage","onSkip","onTake","onRange"]),n=e,o="onPage";o in r&&(n+=r[o].pageIndex),i.sorts.forEach(function(e){n+=e.e.direction+e.e.fieldName}),i.groups.forEach(function(e){n+=e.e.fieldName}),i.searches.forEach(function(e){n+=e.e.searchKey});for(var s=0;s<i.filters.length;s++){var a=i.filters[s];if(a.e.isComplex){var c=t.clone();c.queries=[];for(var h=0;h<a.e.predicates.length;h++)c.queries.push({fn:"onWhere",e:a.e.predicates[h],filter:t.queries.filter});n+=a.e.condition+this.generateKey(e,c)}else n+=a.e.field+a.e.operator+a.e.value}return n},t.prototype.processQuery=function(e,t,i){var r=this.generateKey(e.dataSource.url,t),n=cr.parse.parseJson(window.localStorage.getItem(this.guidId)),o=n?n.results[n.keys.indexOf(r)]:null;return null==o||this.isCrudAction||this.isInsertAction?(this.isCrudAction=null,this.isInsertAction=null,this.cacheAdaptor.processQuery.apply(this.cacheAdaptor,[].slice.call(arguments,0))):o},t.prototype.processResponse=function(e,t,i,r,n,o){if(this.isInsertAction||n&&this.cacheAdaptor.options.batch&&cr.endsWith(n.url,this.cacheAdaptor.options.batch)&&"post"===n.type.toLowerCase())return this.cacheAdaptor.processResponse(e,t,i,r,n,o);e=this.cacheAdaptor.processResponse.apply(this.cacheAdaptor,[].slice.call(arguments,0));var s=i?this.generateKey(t.dataSource.url,i):t.dataSource.url,a={},c=(a=cr.parse.parseJson(window.localStorage.getItem(this.guidId))).keys.indexOf(s);for(-1!==c&&(a.results.splice(c,1),a.keys.splice(c,1)),a.results[a.keys.push(s)-1]={keys:s,result:e.result,timeStamp:new Date,count:e.count};a.results.length>this.pageSize;)a.results.splice(0,1),a.keys.splice(0,1);return window.localStorage.setItem(this.guidId,JSON.stringify(a)),e},t.prototype.beforeSend=function(e,t,i){!He(this.cacheAdaptor.options.batch)&&cr.endsWith(i.url,this.cacheAdaptor.options.batch)&&"post"===i.type.toLowerCase()&&t.headers.set("Accept",this.cacheAdaptor.options.multipartAccept),e.dataSource.crossDomain||t.headers.set("Accept",this.cacheAdaptor.options.accept)},t.prototype.update=function(e,t,i,r){return this.isCrudAction=!0,this.cacheAdaptor.update(e,t,i,r)},t.prototype.insert=function(e,t,i){return this.isInsertAction=!0,this.cacheAdaptor.insert(e,t,i)},t.prototype.remove=function(e,t,i,r){return this.isCrudAction=!0,this.cacheAdaptor.remove(e,t,i,r)},t.prototype.batchRequest=function(e,t,i){return this.cacheAdaptor.batchRequest(e,t,i)},t}(dr),yr=function(){function e(e,t,i){var r,n=this;return this.dateParse=!0,this.timeZoneHandling=!0,this.persistQuery={},this.isInitialLoad=!1,this.requests=[],this.isInitialLoad=!0,e||this.dataSource||(e=[]),i=i||e.adaptor,e&&!1===e.timeZoneHandling&&(this.timeZoneHandling=e.timeZoneHandling),e instanceof Array?r={json:e,offline:!0}:"object"==typeof e?(e.json||(e.json=[]),e.enablePersistence||(e.enablePersistence=!1),e.id||(e.id=""),e.ignoreOnPersist||(e.ignoreOnPersist=[]),r={url:e.url,insertUrl:e.insertUrl,removeUrl:e.removeUrl,updateUrl:e.updateUrl,crudUrl:e.crudUrl,batchUrl:e.batchUrl,json:e.json,headers:e.headers,accept:e.accept,data:e.data,timeTillExpiration:e.timeTillExpiration,cachingPageSize:e.cachingPageSize,enableCaching:e.enableCaching,requestType:e.requestType,key:e.key,crossDomain:e.crossDomain,jsonp:e.jsonp,dataType:e.dataType,offline:void 0!==e.offline?e.offline:!(e.adaptor instanceof fr||e.adaptor instanceof Mr)&&!e.url,requiresFormat:e.requiresFormat,enablePersistence:e.enablePersistence,id:e.id,ignoreOnPersist:e.ignoreOnPersist}):cr.throwError("DataManager: Invalid arguments"),void 0!==r.requiresFormat||cr.isCors()||(r.requiresFormat=!!He(r.crossDomain)||r.crossDomain),void 0===r.dataType&&(r.dataType="json"),this.dataSource=r,this.defaultQuery=t,this.dataSource.enablePersistence&&this.dataSource.id&&window.addEventListener("unload",this.setPersistData.bind(this)),r.url&&r.offline&&!r.json.length?(this.isDataAvailable=!1,this.adaptor=i||new gr,this.dataSource.offline=!1,this.ready=this.executeQuery(t||new or),this.ready.then(function(e){n.dataSource.offline=!0,n.isDataAvailable=!0,r.json=e.result,n.adaptor=new pr})):this.adaptor=r.offline?new pr:new gr,!r.jsonp&&this.adaptor instanceof gr&&(r.jsonp="callback"),this.adaptor=i||this.adaptor,r.enableCaching&&(this.adaptor=new mr(this.adaptor,r.timeTillExpiration,r.cachingPageSize)),this}return e.prototype.getPersistedData=function(e){var t=localStorage.getItem(e||this.dataSource.id);return JSON.parse(t)},e.prototype.setPersistData=function(e,t,i){localStorage.setItem(t||this.dataSource.id,JSON.stringify(i||this.persistQuery))},e.prototype.setPersistQuery=function(e){var t=this,i=this.getPersistedData();if(this.isInitialLoad&&i&&Object.keys(i).length){this.persistQuery=i,this.persistQuery.queries=this.persistQuery.queries.filter(function(e){if(t.dataSource.ignoreOnPersist&&t.dataSource.ignoreOnPersist.length&&e.fn&&t.dataSource.ignoreOnPersist.some(function(t){return e.fn===t}))return!1;if("onWhere"===e.fn){var i=e.e;if(i&&i.isComplex&&i.predicates instanceof Array){var r=i.predicates.map(function(e){if(e.predicates&&e.predicates instanceof Array){var t=e.predicates.map(function(e){var t=e.field,i=e.operator,r=e.value,n=e.ignoreCase,o=e.ignoreAccent,s=e.matchCase;return new sr(t,i,r,n,o,s)});return"and"===e.condition?sr.and(t):sr.or(t)}var i=e.field,r=e.operator,n=e.value,o=e.ignoreCase,s=e.ignoreAccent,a=e.matchCase;return new sr(i,r,n,o,s,a)});e.e=new sr(r[0],i.condition,r.slice(1))}}return!0});var r=Ge(new or,this.persistQuery);return this.isInitialLoad=!1,r}return this.persistQuery=e,this.isInitialLoad=!1,e},e.prototype.setDefaultQuery=function(e){return this.defaultQuery=e,this},e.prototype.executeLocal=function(t){this.defaultQuery||t instanceof or||cr.throwError("DataManager - executeLocal() : A query is required to execute"),this.dataSource.json||cr.throwError("DataManager - executeLocal() : Json data is required to execute"),this.dataSource.enablePersistence&&this.dataSource.id&&(t=this.setPersistQuery(t)),t=t||this.defaultQuery;var i=this.adaptor.processQuery(this,t);if(t.subQuery){var r=t.subQuery.fromTable,n=t.subQuery.lookups,o=t.isCountRequired?i.result:i;n&&n instanceof Array&&cr.buildHierarchy(t.subQuery.fKey,r,o,n,t.subQuery.key);for(var s=0;s<o.length;s++)o[s][r]instanceof Array&&(o[s]=Ge({},{},o[s]),o[s][r]=this.adaptor.processResponse(t.subQuery.using(new e(o[s][r].slice(0))).executeLocal(),this,t))}return this.adaptor.processResponse(i,this,t)},e.prototype.executeQuery=function(t,i,r,n){var o=this,s="makeRequest";this.dataSource.enablePersistence&&this.dataSource.id&&(t=this.setPersistQuery(t)),"function"==typeof t&&(n=r,r=i,i=t,t=null),t||(t=this.defaultQuery),t instanceof or||cr.throwError("DataManager - executeQuery() : A query is required to execute");var a=new Nr,c={query:t};if(!this.dataSource.offline&&void 0!==this.dataSource.url&&""!==this.dataSource.url||!He(this.adaptor[s])||this.isCustomDataAdaptor(this.adaptor)){var h=this.adaptor.processQuery(this,t);He(this.adaptor[s])?!He(h.url)||this.isCustomDataAdaptor(this.adaptor)?(this.requests=[],this.makeRequest(h,a,c,t)):(c=e.getDeferedArgs(t,h,c),a.resolve(c)):this.adaptor[s](h,a,c,t)}else e.nextTick(function(){var i=o.executeLocal(t);c=e.getDeferedArgs(t,i,c),a.resolve(c)});return(i||r)&&a.promise.then(i,r),n&&a.promise.then(n,n),a.promise},e.getDeferedArgs=function(e,t,i){return e.isCountRequired?(i.result=t.result,i.count=t.count,i.aggregates=t.aggregates):i.result=t,i},e.nextTick=function(e){(window.setImmediate||window.setTimeout)(e,0)},e.prototype.extendRequest=function(e,t,i){return Ge({},{type:"GET",dataType:this.dataSource.dataType,crossDomain:this.dataSource.crossDomain,jsonp:this.dataSource.jsonp,cache:!0,processData:!1,onSuccess:t,onFailure:i},e)},e.prototype.makeRequest=function(e,t,i,r){var n=this,o=!!r.subQuerySelector,s=function(e){i.error=e,t.reject(i)},a=function(e,r,n,o,s,a,c){i.xhr=n,i.count=r?parseInt(r.toString(),10):0,i.result=e,i.request=o,i.aggregates=a,i.actual=s,i.virtualSelectRecords=c,t.resolve(i)},c=function(e,t){var c=new Nr,h={parent:i};r.subQuery.isChild=!0;var u=n.adaptor.processQuery(n,r.subQuery,e?n.adaptor.processResponse(e):t),l=n.makeRequest(u,c,h,r.subQuery);return o||c.then(function(t){e&&(cr.buildHierarchy(r.subQuery.fKey,r.subQuery.fromTable,e,t,r.subQuery.key),a(e,t.count,t.xhr))},s),l},h=this.extendRequest(e,function(e,t){if(n.isGraphQLAdaptor(n.adaptor)&&!He(e.errors))return s(e.errors);n.isCustomDataAdaptor(n.adaptor)&&(t=Ge({},n.fetchReqOption,t)),-1===t.contentType.indexOf("xml")&&n.dateParse&&(e=cr.parse.parseJson(e));var i=n.adaptor.processResponse(e,n,r,t.fetchRequest,t),h=0,u=null,l=e.virtualSelectRecords;r.isCountRequired&&(h=i.count,u=i.aggregates,i=i.result),r.subQuery?o||c(i,t):a(i,h,t.fetchRequest,t.type,e,u,l)},s);if(this.isCustomDataAdaptor(this.adaptor)){this.fetchReqOption=h;var u=h;this.adaptor.options.getData({data:u.data,onSuccess:u.onSuccess,onFailure:u.onFailure})}else{var l=new mt(h);l.beforeSend=function(){n.beforeSend(l.fetchRequest,l)},(h=l.send()).catch(function(e){return!0}),this.requests.push(l)}if(o){var p=r.subQuerySelector.call(this,{query:r.subQuery,parent:r});p&&p.length?Promise.all([h,c(null,p)]).then(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=e[0],s=n.adaptor.processResponse(i[0],n,r,n.requests[0].fetchRequest,n.requests[0]),c=0;r.isCountRequired&&(c=s.count,s=s.result);var h=n.adaptor.processResponse(i[1],n,r.subQuery,n.requests[1].fetchRequest,n.requests[1]);c=0,r.subQuery.isCountRequired&&(c=h.count,h=h.result),cr.buildHierarchy(r.subQuery.fKey,r.subQuery.fromTable,s,h,r.subQuery.key),o=!1,a(s,c,n.requests[0].fetchRequest)}):o=!1}return h},e.prototype.beforeSend=function(e,t){this.adaptor.beforeSend(this,e,t);for(var i,r=this.dataSource.headers,n=0;r&&n<r.length;n++){i=[];for(var o=0,s=Object.keys(r[n]);o<s.length;o++){var a=s[o];i.push(a),e.headers.set(a,r[n][a])}}},e.prototype.saveChanges=function(e,t,i,r,n){var o=this;i instanceof or&&(r=i,i=null);var s={url:i,key:t||this.dataSource.key},a=this.adaptor.batchRequest(this,e,s,r||new or,n),c="dofetchRequest";if(this.dataSource.offline)return a;if(He(this.adaptor[c])){if(this.isCustomDataAdaptor(this.adaptor))return this.dofetchRequest(a,this.adaptor.options.batchUpdate);var h=new Nr,u=new mt(a);return u.beforeSend=function(){o.beforeSend(u.fetchRequest,u)},u.onSuccess=function(t,i){o.isGraphQLAdaptor(o.adaptor)&&(He(t.errors)||u.onFailure(JSON.stringify(t.errors))),h.resolve(o.adaptor.processResponse(t,o,null,i.fetchRequest,i,e,s))},u.onFailure=function(e){h.reject([{error:e}])},u.send().catch(function(e){return!0}),h.promise}return this.adaptor[c](a)},e.prototype.insert=function(e,t,i,r){t instanceof or&&(i=t,t=null);var n=this.adaptor.insert(this,e,t,i,r),o="dofetchRequest";return this.dataSource.offline?n:He(this.adaptor[o])?this.dofetchRequest(n,this.adaptor.options.addRecord):this.adaptor[o](n)},e.prototype.remove=function(e,t,i,r){"object"==typeof t&&(t=cr.getObject(e,t)),i instanceof or&&(r=i,i=null);var n=this.adaptor.remove(this,e,t,i,r),o="dofetchRequest";if(this.dataSource.offline)return n;if(He(this.adaptor[o])){var s=this.adaptor.options.deleteRecord;return this.dofetchRequest(n,s)}return this.adaptor[o](n)},e.prototype.update=function(e,t,i,r,n){i instanceof or&&(r=i,i=null);var o=this.adaptor.update(this,e,t,i,r,n),s="dofetchRequest";if(this.dataSource.offline)return o;if(He(this.adaptor[s])){var a=this.adaptor.options.updateRecord;return this.dofetchRequest(o,a)}return this.adaptor[s](o)},e.prototype.isCustomDataAdaptor=function(e){return this.adaptor.getModuleName&&"CustomDataAdaptor"===this.adaptor.getModuleName()},e.prototype.isGraphQLAdaptor=function(e){return this.adaptor.getModuleName&&"GraphQLAdaptor"===this.adaptor.getModuleName()},e.prototype.successFunc=function(e,t){if(this.isGraphQLAdaptor(this.adaptor)){var i="object"==typeof e?e:JSON.parse(e);He(i.errors)||this.failureFunc(JSON.stringify(i.errors))}this.isCustomDataAdaptor(this.adaptor)&&(t=Ge({},this.fetchReqOption,t));try{cr.parse.parseJson(e)}catch(t){e=[]}e=this.adaptor.processResponse(cr.parse.parseJson(e),this,null,t.fetchRequest,t),this.fetchDeffered.resolve(e)},e.prototype.failureFunc=function(e){this.fetchDeffered.reject([{error:e}])},e.prototype.dofetchRequest=function(e,t){var i=this;if(e=Ge({},{type:"POST",contentType:"application/json; charset=utf-8",processData:!1},e),this.fetchDeffered=new Nr,this.isCustomDataAdaptor(this.adaptor))this.fetchReqOption=e,t.call(this,{data:e.data,onSuccess:this.successFunc.bind(this),onFailure:this.failureFunc.bind(this)});else{var r=new mt(e);r.beforeSend=function(){i.beforeSend(r.fetchRequest,r)},r.onSuccess=this.successFunc.bind(this),r.onFailure=this.failureFunc.bind(this),r.send().catch(function(e){return!0})}return this.fetchDeffered.promise},e.prototype.clearPersistence=function(){window.removeEventListener("unload",this.setPersistData.bind(this)),this.dataSource.enablePersistence=!1,this.persistQuery={},window.localStorage.setItem(this.dataSource.id,"[]")},e}(),Nr=function(){var e=this;this.promise=new Promise(function(t,i){e.resolve=t,e.reject=i}),this.then=this.promise.then.bind(this.promise),this.catch=this.promise.catch.bind(this.promise)};const jr=({pageSize:e,dataSource:r,allowPaging:a,columns:c=[],columnName:h,className:u,allowColumnSearch:l,allowGenericSearch:p,allowExcelExport:d,allowPdfExport:g,id:f,onRowSelectionChanged:M,excelFileName:m="Excel_Export",toolBarName:y="ExcelExport",pdfOrientation:C,onRefresh:x,allowCheckBox:E,selectedRows:k,checkboxSelectionOnly:P,selectionDisable:U,pageSetting:Q,dataStateChange:Y,serverSidePagination:R=!1,onExcelExport:V,onPdfExport:F,initiateExcelExport:B,initiatepdfExport:W,excelExportCompleted:G,pdfExportCompleted:H,hideOnReport:q=[],currentPage:_,height:J,width:Z,frozenRows:K,frozenColumns:X,rowSelectStyle:$={},gridRef:ee,currentPageNumber:te,isFilterClearing:ie,getActiveFilterCriteria:re,nonExportableColumns:ne,allowResizing:oe=!1,defaultFilter:se=[],allowTextWrap:ae=!1})=>{const[ce,he]=t(r),[ue,le]=t(),pe=["Search"],de={type:"Menu",operators:{stringOperator:[{value:"contains",text:"Contains"}]},showFilterBarOperator:!0};let ge,fe=!1;const Me=()=>{document.getElementById(ge?.element.id+"_searchbar")?.addEventListener("keyup",e=>{ge?.search(e.target.value)})},me=e=>{let t;return M?.(ge.getSelectedRecords(),e),ge&&(t=ge.getSelectedRecords()),t};i(()=>{Q?le(Q):(0===_||_>0)&&0!==ue&&le(_)},[Q,_]),i(()=>{ve()},[ue]),i(()=>{a||(ge.searchSettings.key="")},[a]),i(()=>{if(B&&R)we(!1),ge.excelExport({fileName:`${m}.xlsx`}),G?.(je());else if(W&&R){const e={fileName:`${m}.pdf`,pageOrientation:C};ge.pdfExport(e),H?.(je())}},[B,W]),i(()=>{R&&r&&(ge.dataSource={result:r,count:Number(r?.length>0?r[0].totalCount:0)});const e=document.getElementById(f+"_clearbutton");e&&!fe&&(e.removeEventListener("click",ye),e.addEventListener("click",ye),fe=!0)},[r]),i(()=>{for(let e=0;e<se.length;e++)ge?.filterByColumn(se[e].field,"contains",se[e].value)},[se]);const ye=()=>{document.getElementById(f+"_searchbutton")?.click()};i(()=>(ee&&ee(ge),x&&x(Ne),k&&k(me),()=>{const e=document.getElementById(f+"_clearbutton");e&&e.removeEventListener("click",ye)}),[]);const Ne=(e=!1)=>{ge.clearSelection(),ge.refresh(),e&&ge.clearFiltering()},je=()=>{let e=[];for(var t in ge?.filterModule?.values)e.push({field:t,value:ge?.filterModule?.values[t]});return e},De=e=>{let t=c?.filter(e=>!ne?.includes(e?.field));if(ge&&e.item.id===f+"_excelexport")R?V?.(je()):ne?.length?ge.excelExport({fileName:`${m}.xlsx`,columns:t}):ge.excelExport({fileName:`${m}.xlsx`});else if(ge&&e.item.id===f+"_pdfexport"){let e;e=ne?.length?{fileName:`${m}.pdf`,pageOrientation:C,columns:t}:{fileName:`${m}.pdf`,pageOrientation:C},R?F?.(je()):ge.pdfExport(e)}};n(()=>(he(r),r&&h?cr.distinct(r,h):[]),[r,h]);const Ie={pageSize:e};let Se=[];p&&(Se=[...pe]),d&&(Se=[...Se,"ExcelExport"]),g&&(Se=[...Se,"PdfExport"]),p||d||g||(Se=void 0);const be={type:"Multiple",persistSelection:!0,checkboxOnly:P},ze=e=>{if($&&$.key&&!0===e.data[$.key]){e.row.style.backgroundColor=$.color;e.row.querySelectorAll(".e-leftfreeze").forEach(e=>{e.style.backgroundColor=$.color})}U?.some(t=>t.colName in e.data&&t.colId===e.data[t.colName])&&(e.isSelectable=!1)},ve=()=>{te&&te(ge?.pageSettings?.currentPage),R&&ge?(0==ue||ue>0)&&(ge.pageSettings.currentPage=ue+1,le(null)):ue&&ge&&(ge.pageSettings.currentPage=ue,le(null))},we=e=>{for(let t=0;t<q?.length;t++){let i=ge.columns.find(e=>e.field===q[t]);i&&(i.visible=e)}};function Oe(e,t){return t?`\n <span style="color: red"> *</span>\n <span class="e-headertext">${e}</span>\n `:`<span class="e-headertext">${e}</span>`}const Te=e=>{e.column.template&&"EllipsisWithTooltip"===e.column.clipMode&&e.cell.classList.remove("e-ellipsistooltip")},Le=e=>{"ArrowRight"!=e.key&&"ArrowLeft"!=e.key&&"Tab"!=e.key||(e.target.classList.contains("e-textbox")||e.target.classList.contains("e-combobox")||e.target.classList.contains("e-multiselect"))&&(e.cancel=!0)},Ae=e=>{"filtering"!==e.requestType&&"paging"!==e.requestType||re&&re(je())};return s(N,R?{allowPaging:!0,pageSettings:Ie,className:u,toolbar:Se,filterSettings:l?de:void 0,allowFiltering:!!l,ref:e=>{e&&(ge=e)},actionComplete:Ae,allowExcelExport:d,allowPdfExport:g,toolbarClick:De,created:Me,id:f,rowSelected:me,rowDeselected:me,selectionSettings:be,rowDataBound:ze,dataBound:ve,dataStateChange:Y,queryCellInfo:Te,excelExportComplete:()=>{we(!0)},height:J||"",width:Z||"",frozenRows:K,frozenColumns:X,keyPressed:Le,allowResizing:oe,allowTextWrap:ae,children:[s(j,{children:[E&&o(D,{type:"checkbox",width:"50"}),c.map(e=>o(D,{type:e.type?e.type:"string",width:e.width,textAlign:e.textAlign,headerText:e.headerText?e.headerText:e.templateHeaderText,template:e.template?e.template:void 0,field:e.field,format:e.format,allowFiltering:1==e.allowFiltering,clipMode:e.clipMode,isPrimaryKey:e.isPrimaryKey,visible:e.visible,headerTemplate:e.headerText?Oe(e.headerText,e.mandatory):e.headerTemplate},e.field))]}),o(I,{services:[S,b,z,v,w,O,T,L,A]})]}:{dataSource:ce,allowPaging:a,pageSettings:Ie,className:u,toolbar:Se,filterSettings:l?de:void 0,allowFiltering:!!l,ref:e=>{e&&(ge=e)},actionBegin:e=>{"filtering"===e.requestType&&ie&&ie(!0)},actionComplete:Ae,allowExcelExport:d,allowPdfExport:g,toolbarClick:De,created:Me,id:f,rowSelected:me,rowDeselected:me,selectionSettings:be,rowDataBound:ze,dataBound:ve,queryCellInfo:Te,height:J||"",width:Z||"",frozenRows:K,frozenColumns:X,keyPressed:Le,allowResizing:oe,allowTextWrap:ae,children:[s(j,{children:[E&&o(D,{type:"checkbox",width:"50"}),c.map(e=>o(D,{type:e.type?e.type:"string",width:e.width,textAlign:e.textAlign,headerText:e.headerText?e.headerText:e.templateHeaderText,template:e.template?e.template:void 0,field:e.field,format:e.format,allowFiltering:1==e.allowFiltering,clipMode:e.clipMode,isPrimaryKey:e.isPrimaryKey,visible:e.visible,headerTemplate:e.headerText?Oe(e.headerText,e.mandatory):e.headerTemplate},e.field))]}),o(I,{services:[S,b,z,v,w,O,T,L,A]})]})},Dr=({className:e="",children:t,title:i="",iconClass:r="",show:n=!1,onClose:c,closeBtn:h=!0})=>o(a,{children:n&&o("div",{id:"results",className:"search-results "+e,children:o("div",{className:"popup",children:s("div",{className:"popup-layout",children:[s("div",{className:"popup-header",children:[s("div",{className:"popHeadWrap",children:[o("div",{className:"IconWrap",children:r&&o("i",{className:r})}),o("div",{className:"popup-header-caption",children:i})]}),o("div",{className:h?"":"hidden",children:o("div",{className:"popup-header-close",children:o("i",{className:"bi bi-x-lg",onClick:c})})})]}),o("div",{className:"popup-body",children:o("div",{className:"popup-form-inner-layout row",children:o(a,{children:t})})})]})})})}),Ir=1048576,Sr=({fileCount:r,onFilesChange:n,onUploadCompleted:c,startUpload:h,batchId:u,documentTypeId:l,files:p,inputFileSize:d,fileTypes:g,listOnly:f,imageOnly:M,postExecuteParam:y,listView:N,documentAPI:j,placeholder:D="Drag and drop files here",buttonText:I="Choose file",imageToUpload:S,index:b,onClearFiles:z,onClose:v,fileRemoved:w,disabled:O,imageHeight:T,imageWidth:L,fileView:A=!0,fileDownload:U=!0,handleFileError:Q,showErrorMessage:Y=!0,showDownloadProgress:V=!1,clientId:F,allowMultipleSelection:B=!0,postBody:W={},param:G={}})=>{const[H,q]=t([]),[_,J]=t([]),[Z,K]=t(!1),[X,$]=t(""),ee=e.useRef(null),te=r,[ie,re]=t(1),[ne,oe]=t([]),[se,ae]=t(0),[ce,he]=t(Ir),[ue,le]=t(0),[pe,de]=t(""),[ge,fe]=t(0),[Me,me]=t(0),[ye,Ne]=t(-1),[je,De]=t([]),[Ie,Se]=t(""),[be,ze]=t(!1),ve="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD4AAABNCAYAAAD+d9crAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF+mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9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NZJ2d9XncRyUcF46pbWntqJrx/Wvi7+9bVlGFxvjOo1is7RSpnxAUoGDnTMkW8aUWriUiKY4IZWLhOkRBP9tJ6WQkuhZxX9Rb3kdO11ISRqDPy8j3ICBUfmglKELrDuycV50fUrfL50g7iUWqwjbzBRQev3hdkRUYz5cVL9tY4dg8fOZrJ7d2cpGNAZzgCLYZt+cjo/vqxkOVAxrxVHx0vTH3GYF9RqFbcP9alCqh1q4rylFwi20iaoe4iIx5V0loERmg2FjkT48CrEQoy7cfx4PHSY6UBR+3dfp1d03Dq3P3KTr2uRavdiLHoItqWDMU9zEkOjXpXqv30O49GtwRUWz5XI0KpGlzwj5EdIwuBLbG8r5//ulvPetHnvwcfdobPmKo/O1/+hT+8plXAkeBX/jgl55zIg9PLSoXkFzzmV4XpQbriDLqoqvRUpMwRsBeL20xvdO4/940MmpaPV4LR7Tfm4GeSo4GY3ylqmYBji6TfvxxG3e/+Wty7s4qixxcB0cAOLXcxCe++En8+Bcehafz1ncdkzPf9TVsYFcOtlP8Ec2YDdN/xu8xLUzdtfDfc3d9BrAEMPl7Fv7a7PdS/3fx60hgzyE4+q7gNAFcANiDkZY/NBfTx7MApQCbd+KizVM4n6expStgaSff95AwAsDp3YL3f3nGKxefwy3z1kABzpDMhJOYuQRhTYsN6wEkEycZ9mkGiufeQO8IXBvGzoMU+/dQbJIoI7C0vVKI2CdcR7+GNGeQsO3PgnoaL073LgvABDCbQ6vocWr3CcRG2pPkbeB/6f2KrDIJwXWvehL+B2Bi6PuvmQxqAAAAAElFTkSuQmCC";i(()=>{z&&z(we),je&&0!==je.length||Re(!1)},[]);const we=()=>{q([]),K(!1)};i(()=>{q(S||H),ge>0&&Te(ie)},[ne,ue]),i(()=>{Re(!1)},[l]),e.useEffect(()=>{(!H||0==H?.length)&&p.length>0&&Ue(p)});const Oe=e=>{let t=H;if(t[e]&&t[e].isValid&&!k.isValidGUID(t[e].documentId)){Ne(e),Ee("Uploading...",e),ke();const i=t[e].file;fe(i.size);const r=i.size%Ir==0?i.size/Ir:Math.floor(i.size/Ir)+1;me(r),oe(i);const n=k.getGUID()+"."+i.name.split(".").pop();de(n)}else if(t[e]&&k.isValidGUID(t[e].documentId))le(100),Oe(e+1),H[e+1]||c?.(t);else if(t[e]&&!1===t[e]?.isValid&&e<t?.length)Oe(e+1);else if(e===H?.length)return},Te=e=>{if(re(e+1),e<=Me){var t=ne.slice(se,ce);Le(t)}},Le=async e=>{try{const i=(await E.post(j+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/uploadchunks",e,{params:{id:ie,fileName:pe,documentTypeId:l,clientId:F,param:G},headers:{"Content-Type":"application/json"}})).data;if(i.isSuccess)if(ae(ce),he(ce+Ir),ie==Me)await Ae();else{var t=ie/Me*100;le(t),Ee("Uploading...",ye,t)}else console.log("Error Occurred:",i.errorMessage)}catch(e){console.log("error",e)}},Ae=async()=>{let e=ne;var t=new FormData;t.append("fileName",pe),t.append("physicalName",e.name);const i=await E.post(j+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/uploadcomplete",{},{params:{fileName:pe,documentTypeId:l,physicalName:e.name,clientId:F,param:G},data:t});var r=i.config?.params?.physicalName.toLowerCase().split(".").pop();const n=i.data;if(n.isSuccess){Ee("Uploaded Successfully",ye,100);let e=[...H];e[ye].documentId=n.documentId,e[ye].rowIndex=b,e[ye].batchId=u,q(e),2==h?Ce(n.documentId,r):(Ne(ye+1),Oe(ye+1),H[ye+1]||c?.(e))}},Ce=async(e,t)=>{let i=g?.map(e=>e.toLowerCase()),r=i?.filter(e=>e==t);(new FormData).append("fileName",pe);(await E.post(j+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/dataupload/"+("xlsx"==r?"uploadexceldata":"uploadtextdata"),W,{params:{documentId:e,batchId:u,postExecuteParam:y||""}})).data.isSuccess&&(Ee("Exporting Data",ye,5),xe(u))},xe=e=>{var t=null;t=setInterval(()=>{E.get(j+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/dataupload/getbatchdetails?batchId="+e).then(e=>{const i=e.data;if(i.isSuccess){let e=i.data;5==e.processStatusId?(Ee("Completed",ye,100),clearInterval(t),Ne(ye+1),Oe(ye+1),H[ye+1]||c?.(H)):4==e.processStatusId?(Ee(e.remarks,ye,100,"danger",e.processStatusId),c?.([{error:e.remarks}]),clearInterval(t)):6==e.processStatusId?Ee("Data validation...",ye,e.progress,"info"):e.progress>5&&Ee("",ye,e.progress)}},function(e){"ERR_NETWORK"==e.code&&Ee("Network Failure",ye,100,"danger"),clearInterval(t)})},1e3)},Ee=(e,t,i=0,r="success",n=0)=>{let o=[...H];o[t].statusMessage=e||o[t].statusMessage,o[t].progress=i,o[t].variant=r,o[t].processStatusId=n,q(o)},ke=()=>{le(0),re(1),ae(0),he(Ir)};e.useEffect(()=>{if(J(S),Number(h)>0){const e=H?.filter(e=>e?.isValid);H&&0!==H.length&&H[0]?H.length>0&&e&&0===e?.length?c?.([...H]):Oe(0):c?.([])}},[h,_]);const Pe=e=>{var t=e[0].name.toLowerCase().split(".").pop();["gif","jpeg","png","jpg"].includes(t)?(e=>{let t,i={},r=new FileReader;r.onloadend=()=>{t=new Image,t.src=r.result,t.onload=()=>{i.height=t.height,i.width=t.width,Ve(e,i)}},e&&r.readAsDataURL(e[0])})(e):Ve(e,"")},Ue=async e=>{if(!Z&&e.length>0){for(let t=0;t<e.length;t++)if(Qe(e[t].fileName)&&k.isValidGUID(e[t].documentId)&&!e[t].file&&1!=e[t].fileFetched)try{ze(!0);const i=await E.get(j+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/download?documentId="+e[t].documentId,{responseType:"blob",onDownloadProgress:e=>{const t=Math.round(100*e.loaded/e.total);console.log(t)}});e[t].fileFetched=!0,e[t].src=URL.createObjectURL(new Blob([i.data]))}catch(e){}finally{ze(!1)}else e[t].src=ve;K(!0),q(e)}},Qe=e=>{var t=e.split(".").pop();return["gif","jpeg","png","jpg"].includes(t)},Ye=e=>{var t=e.toLowerCase().split(".").pop();return!!(g&&g.length>0&&g?.includes(t))||(!g||0==g.length)},Re=async(e=!1)=>{if(l)if(e){if(je.length>0){let e=[];const t=R.utils.book_new(),i=R.utils.json_to_sheet([]);R.utils.sheet_add_aoa(i,[je]),R.utils.sheet_add_json(i,e,{origin:"A2",skipHeader:!0}),R.utils.book_append_sheet(t,i,"Sheet1"),R.writeFile(t,Ie+".xlsx")}}else{const e=(await E.get(j+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/getexcelcolumns",{params:{documentTypeId:l}})).data;let t=[];for(let i=0;i<e.length;i++)t.push(e[i].sourceColumn);De(t),t.length>0&&e[0].documentTypeName&&Se(e[0].documentTypeName)}},Ve=(e,t)=>{const i=Number(te);let r="",o=!1,s=0;if(e&&e.length>0){let a=H?[...H]:[];for(let n=0;n<e.length;n++)if(o=!0,r="",s=e[n].size/1024,0==i||i>=a.length+1){if(Ye(e[n].name))if(Number(d)>0&&Number(d)<s)P.broadcast({key:"bb_toast",type:"alert",content:"File too large, allowed size is "+d+" KB",position:{X:"550",Y:"50"}}),o=!1;else{if(a.findIndex(t=>t.fileName==e[n].name)>-1)return P.broadcast({key:"bb_toast",type:"alert",content:"Can't upload duplicate files!",position:{X:"550",Y:"50"}}),!1;(T&&t.height!=T||L&&t.width!=L)&&(P.broadcast({key:"bb_toast",type:"alert",content:"Please choose an image with height "+T+"px and width "+L+"px",position:{X:"550",Y:"50"}}),o=!1)}else P.broadcast({key:"bb_toast",type:"alert",content:"Invalid file, allowed types - "+g?.join(","),position:{X:"550",Y:"50"}}),o=!1;o&&a.push({fileName:e[n].name,fileSize:s.toFixed(1)+" KB",isValid:o,errorMessage:r,file:e[n],statusMessage:"Ready to upload",progress:0,variant:"success",src:Qe(e[n].name)?URL.createObjectURL(e[n]):ve})}else{const e=`You can upload only ${i} file${i>1?"s":""}.`;$(e),P.broadcast({key:"bb_toast",type:"alert",content:e,position:{X:"550",Y:"50"}})}q(a),n?.(a)}return!0};return o("div",{className:"control-pane",ref:ee,onDrop:e=>{return!O&&!M&&((t=e).preventDefault(),$(""),Pe(t.dataTransfer.files),!0);var t},onDragOver:e=>e.preventDefault(),children:o("div",{className:"control-section row uploadpreview",children:o("div",{className:"",children:o("div",{className:"upload_wrapper",children:s("div",{className:"upload-files-container",children:[1!=f&&s(a,{children:[o("div",{className:"drag-file-area",children:s("label",{className:"label",children:[" ",s("span",{className:"browse-files",children:[o("input",{type:"file",id:"bb-file-upload",className:"default-file-input",onClick:e=>(e=>{e.target.value=null})(e),multiple:B,onChange:e=>(Pe(e.target.files),$(""),!0),disabled:O}),o("span",{className:"browse-files-text",children:I})," "]}),o("span",{className:"dynamic-message",children:D})]})}),s("span",{className:"cannot-upload-message",children:[" ",o("span",{className:"material-icons-outlined",children:"error"})," ","Please select a file first"," ",o("span",{className:"material-icons-outlined cancel-alert-button",children:"cancel"})," "]})]}),g?.includes("txt")?o(a,{}):o("span",{className:"bb-excel-download-container",children:je.length>0&&s("a",{className:"bb-download-custom-icon",onClick:()=>Re(!0),children:[" Download Sample Document ",o("i",{className:"bi bi-file-earmark-spreadsheet-fill"})]})}),H?.map((e,t)=>{return o(a,{children:s("div",{className:"list"==N?"file-block-1":"file-block",style:{borderTop:"1px solid #d2d2d2"},children:[o("div",{className:"list"==N?"file-info-1":"file-info",children:s("div",{className:"list"===N?"d-flex":"",children:[1!=M&&o("span",{className:"material-icons-outlined file-icon",children:o("img",{src:e.src})}),1==M&&o("span",{className:"material-icons-outlined file-icon-image",children:o("img",{src:e.src})}),1!=f&&1!=M&&!O&&!(Number(h)>0)&&o("span",{className:"file-action file-action-remove",style:{color:"red"},onClick:()=>(e=>{let t=[...H],i=t.splice(e,1);1===i.length&&(i[0].index=e,q(t),w?.(i))})(t),children:o("i",{className:"bi bi-x-circle",onClick:v})}),U&&1!=M&&o("span",{className:"file-action file-action-download",style:{color:"green"},onClick:()=>(async(e,t)=>{let i=new Blob([]);if(k.isValidGUID(e.documentId))try{const r={responseType:"blob"};V&&(r.onDownloadProgress=e=>{const i=Math.round(100*e.loaded/e.total);Ee("downloading...",t,i)});const n=await E.get(j+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/download?documentId="+e.documentId,r);i=new Blob([n.data])}catch(e){return void console.error("Error downloading file:",e)}else i=new Blob([e.file]);const r=window.URL.createObjectURL(i),n=document.createElement("a");n.href=r,n.download=e.fileName,n.click(),window.URL.revokeObjectURL(r)})(e,t),children:o("i",{className:"bi bi-download"})}),A&&1!=M&&e.documentId&&(()=>{if(e.fileName){const i=["gif","jpeg","png","jpg","pdf","docx","doc"];var t=e.fileName.toLowerCase().split(".").pop();return i.includes(t)}return null})()&&o("span",{className:"file-action",style:{color:"blue"},onClick:()=>(e=>{if(k.isValidGUID(e.documentId)){var t=e.fileName?.split(".").pop();const i=JSON.stringify({message:"_viewDocumentEditor",entity:{documentId:e.documentId,documentName:e.fileName,documentAPI:j,documentType:t}});setTimeout(function(){window.parent.postMessage(i,"*")},2e3)}})(e),children:o("i",{className:"bi bi-eye-fill",title:"View"})}),1!=M&&s("div",{style:{width:"225px"},children:[o(m,{content:e.fileName,children:o("span",{className:"list"==N?"file-name-1":"file-name",children:(i=e.fileName,i?i.length>20?i.substring(0,15)+"..."+i.split(".").pop():i:"")})}),s("span",{className:"list"==N?"file-size-1":"file-size",children:[e.fileSize,e.isValid&&4!=e.processStatusId?o("span",{className:"upd-success-msg",children:e.statusMessage}):e.isValid&&4==e.processStatusId?o("span",{className:"upd-warning-msg",children:e.statusMessage}):o("span",{className:"upd-warning-msg",children:e.errorMessage})]})]})]})}),Y&&X&&t==H.length-1&&o("div",{className:"upd-cmn-error",children:X}),e.progress>0&&o(C,{className:"progressbar",animated:!0,variant:e.variant,now:e.progress,label:`${e.progress.toFixed(0)}%`})]})});var i}),0==H?.length&&(1==f||1==M)&&o("div",{className:"bb-fu-nofiles",children:be?o(x,{animation:"border",role:"status",variant:"danger",children:o("span",{className:"visually-hidden",children:"Loading..."})}):o("span",{children:"No files found !"})})]})})})})})},br=()=>{const e=r(null),t=document.getElementsByTagName("body")[0];return t.hasAttribute("data-listener-bb-toast")||(document.addEventListener("bb_toast",function(t){if("bb_toast"==t.detail.key){e.current?.show({title:t.detail.title,content:t.detail.content,showProgressBar:"true"==t.detail.showProgressBar||!t.detail.showProgressBar,position:t.detail.position?t.detail.position:{X:"Top",Y:"Right"},timeOut:t.detail.timeOut?t.detail.timeOut:2e3});const i=document.getElementsByClassName("e-toast-title"),r={success:"green",warning:"orange",alert:"red"};for(let e=0;e<i.length;e++)i[e].style.color=r[t.detail.type];const n=document.getElementsByClassName("e-toast-progress");for(let e=0;e<n.length;e++)n[e].style.backgroundColor=r[t.detail.type]}},!1),t.setAttribute("data-listener-bb-toast","true")),o("div",{children:o(V,{ref:e,type:"toast"})})},zr=()=>{let e,t,i;const r=()=>{P.broadcast({key:t,status:"action1",keyData:i}),e.hide()},n=()=>{P.broadcast({key:t,status:"action2"}),e.hide()},s=()=>{P.sendMessage({key:"bb_dialog_res",status:"clicked",keyData:i}),e.hide()},a=()=>{document.addEventListener("dialog_alert",function(o){"dialog_alert"===o.detail.key&&(t=o.detail.callbackUrl,i=o.detail.keyData,e="confirm"===o.detail.type?y.confirm({title:o.detail.title,content:o.detail.content,width:o.detail.width?o.detail.width:"500px",position:o.detail.position?o.detail.position:{X:"center",Y:"center"},okButton:{...o.detail.okButton,click:r.bind(this)},cancelButton:{...o.detail.cancelButton,click:n.bind(this)}}):y.alert({title:o.detail.title,content:o.detail.content,width:o.detail.width?o.detail.width:"500px",position:o.detail.position?o.detail.position:{X:"center",Y:"center"},okButton:{...o.detail.okButton,click:s.bind(this)}}))})},c=document.getElementsByTagName("body")[0];return c.hasAttribute("data-listener-dialog-alert")||(a(),c.setAttribute("data-listener-dialog-alert","true")),o("div",{id:"dialog-target"})},vr=({fields:e,allowFiltering:t,id:i,onChange:r,value:n,name:s,className:a,disabled:c})=>o(g,{id:i,fields:e,allowFiltering:t,change:r,value:n,name:s,className:a,disabled:c,type:"dropdowntree"}),wr=({id:e,name:n,dataSource:c,fields:h,sortOrder:u,placeholder:l,allowFiltering:p,popupHeight:d,required:g,label:y,autofill:N,onChange:j,value:D,className:I,disabled:S,showSelectAll:b,displayText:z,filterable:v,onFilterChange:w,dropDownRef:O,readonly:T,filterType:L,valueTemplate:A,itemTemplate:C,isLazy:x=!1,disableTooltip:E=!1})=>{const[k,P]=t(),U=r(null);i(()=>{O?.(U)},[]),i(()=>{P(U?.current?.text)},[D]),i(()=>{z&&(U.current.text=z)},[c]);const Q=e=>{j?.(e,{}),P(U?.current?.text)},Y=e=>{if(v&&w?.(e),!x&&"contains"===L&&c&&h){const t=c.filter(t=>t[h.text].toLowerCase().includes(e.text.toLowerCase()));e.updateData&&e.updateData(t,"")}};return s("div",{className:"",children:[y&&s("label",{htmlFor:e,className:"form-label",children:[y," ",g?o("i",{className:"req-lbl",children:"*"}):o(a,{})]}),o(m,{beforeOpen:e=>E?e.cancel=!0:((e,t)=>{t||(e.cancel=!0)})(e,k),content:E?"":k,children:T?o(M,{id:e,name:n,popupHeight:d,dataSource:c,fields:h,placeholder:l,sortOrder:u,filtering:Y,allowFiltering:p,change:Q,value:D,className:I,enabled:!S,type:"dropdown",ref:U,valueTemplate:A,itemTemplate:C}):o(f,{id:e,name:n,popupHeight:d,dataSource:c,fields:h,placeholder:l,sortOrder:u,autofill:N,filtering:Y,allowFiltering:p,change:Q,value:D,className:I,enabled:!S,type:"dropdown",allowCustom:!1,ref:U,valueTemplate:A,itemTemplate:C})})]})},Or=({id:e,name:n,rows:c,cols:h,value:u,label:l="",onChange:p,required:d,className:g,placeholder:f,disabled:M,onKeypress:y,maxLength:N,onBlur:j,defaultValue:D,enableTooltip:I,maxWords:S})=>{const[b,z]=t(""),v=r(null);i(()=>{z(v.current?.value)},[D,u]);const w=(e,t)=>{t&&I||(e.cancel=!0)},O=e=>{const t=e.target.value,i=t.trim().split(/\s+/);S&&i.length>S||(z(t),p?.(e,{}))},T=e=>{e.stopPropagation(),y?.(e)};return s(a,{children:[l&&s("label",{htmlFor:e,className:"form-label",children:[l," ",d?o("i",{className:"req-lbl",children:"*"}):o(a,{})]}),o(m,null!=u?{beforeOpen:e=>w(e,b),content:I?b:"",children:o("textarea",{id:e,name:n,rows:c,cols:h,value:u,onChange:O,onKeyDown:T,required:d,className:g,placeholder:f,disabled:M,maxLength:N,ref:v})}:{beforeOpen:e=>w(e,b),content:I?b:"",children:o("textarea",{id:e,name:n,rows:c,cols:h,onChange:O,required:d,className:g,placeholder:f,disabled:M,onKeyDown:T,defaultValue:D,onBlur:j,maxLength:N,ref:v})})]})},Tr=({id:e,content:t,target:i,className:r,position:n,children:c})=>s(a,{children:[o(m,{id:e,className:r,content:t,target:i,position:n}),c]}),Lr=({documentId:e,documentAPI:r,documentName:n,actualPath:s,downloadPdfFile:c})=>{const[h,u]=t({documentAPI:"",documentId:"",readOnly:!1,documentName:"",actualPath:"",downloadPdfFile:!1});i(()=>{p()},[]),i(()=>{if(""!=h.documentAPI&&""!=h.documentId){document.getElementById("pdfviewer-container").ej2_instances[0].load(h.documentId,null),l()}else if(""!=h.actualPath){document.getElementById("pdfviewer-container").ej2_instances[0].load(h.actualPath,null),l()}},[h.documentAPI,h.actualPath]);const l=()=>{if(String(document.body.children[2].getAttribute("style")).indexOf("font-family: Helvetica Neue, Helvetica, Arial;")>-1){document.body.children[2].style.display="none"}setTimeout(()=>{let e=document.getElementById("pdfviewer-container_toolbarItemsContainer"),t=document.getElementById("pdfviewer-container_submitFormContainer");if(t&&(t.style.display="none"),e&&e.children.length>0){let t=e.children[0],i=!1,r='<div class="pdf-action-container" style="float: right">';for(let e=0;e<t.children.length;e++)"savePdfBtn"==t.children[e].id&&(i=!0);i||(r+='<div id="closePdfBtn" class="e-toolbar-item e-pv-pan-tool-container e-popup-text action-btn-sep" aria-disabled="false" style="color: #5c636a; " title="Close" >\n <svg id="closePdftbSVG" width="20" height="20" style="width: 18px" fill="currentColor" class="bi bi-close" viewBox="0 0 16 16">\n <path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>\n </svg>\n </div> \n <div class="e-toolbar-item e-pv-pan-separator-container e-separator" aria-disabled="false"></div>',r+="</div>",t.insertAdjacentHTML("beforeend",r+"</div>")),document.getElementById("closePdfBtn")?.addEventListener("click",()=>(e=>{const t=JSON.stringify({message:e,date:Date.now()});window.postMessage(t,"*")})("closeDoc"))}},2e3)},p=()=>{u({documentAPI:r,documentId:e,readOnly:h.readOnly,documentName:n,actualPath:s||"",downloadPdfFile:c||!1})};return o(a,{children:""!=h.documentAPI&&o(a,{children:o("div",{className:"control-section",children:o(F,{id:"pdfviewer-container",documentPath:"",serviceUrl:h.documentAPI+"api/PdfViewer",style:{height:"100vh"},downloadFileName:n,enableDownload:h.downloadPdfFile,contextMenuOption:"None",children:o(B,{services:[W,G,H,q,_,J,Z,K,X,$,ee]})})})})})},Ar=({documentId:e,documentAPI:r,documentName:n,downloadImageFile:c})=>{const[h,u]=t(""),[l,p]=t({documentAPI:"",documentId:"",readOnly:!1,documentName:"",downloadImageFile:!1});i(()=>{d()},[]);const d=()=>{p({documentAPI:r,documentId:e,documentName:n,readOnly:!1,downloadImageFile:c||!1})};i(()=>{g(l.documentId)},[l.documentId]);const g=async e=>{let t;if(k.isValidGUID(e)){const i=await E.get(l.documentAPI+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/document/download?documentId="+e,{responseType:"blob",onDownloadProgress:e=>{const t=Math.round(100*e.loaded/e.total);console.log(t)}});t=URL.createObjectURL(new Blob([i.data])),u(t)}else t=""};return o(a,{children:""!=l.documentAPI&&s("div",{className:"img-container",children:[o("button",{onClick:()=>(e=>{const t=JSON.stringify({message:e,date:Date.now()});window.parent.postMessage(t,"*")})("closeDoc"),children:"X"}),l.downloadImageFile&&o("button",{onClick:()=>{if(h){const e=document.createElement("a");e.href=h,e.download=l.documentName||"image",document.body.appendChild(e),e.click(),document.body.removeChild(e)}},className:"download-button",children:o("span",{children:o("i",{className:"bi bi-download"})})}),o("img",{className:"image-content",src:h,alt:""})]})})};let Cr=[{prefixIcon:"e-close",tooltipText:"Close",text:"Close",id:"closeDocument"},"Separator","Undo","Redo","Separator","Image","Table","Hyperlink","Bookmark","TableOfContents","Separator","Header","Footer","PageSetup","PageNumber","Break","InsertFootnote","InsertEndnote","Separator","Find","Separator","Comments","TrackChanges","LocalClipboard","Separator","FormFields","UpdateFields"];te.Inject(ie,re,ne,oe,se,ae,ce,he,ue,le,pe,de,ge,fe,Me,me,ye,Ne,je,De,Ie,Se,be,ze,ve,we,Oe),Te.Inject(Oe,ue);const xr=({documentId:e,documentAPI:r,documentName:n})=>{let s;const[c,h]=t({documentAPI:"",documentId:"",readOnly:!1,documentName:""});i(()=>{u()},[]);const u=()=>{h({documentAPI:r,documentId:e,documentName:n,readOnly:!1})};i(()=>{""!=c.documentAPI&&""!=c.documentId&&l(c.documentId)},[c.documentId]);const l=e=>{let t=new XMLHttpRequest,i={keyXc:e},r=c.documentAPI+"api/DocumentEditor/LoadDocument";t.open("POST",r,!0),t.setRequestHeader("Content-Type","application/json;charset=UTF-8"),t.setRequestHeader("Access-Control-Allow-Origin","http://localhost:5002"),t.onreadystatechange=()=>{4===t.readyState&&(200!==t.status&&304!==t.status||(s.open(t.responseText),setTimeout(()=>{s.enableTrackChanges||(s.enableTrackChanges=!0)},1e3)))},t.send(JSON.stringify(i))},p=e=>{const t=JSON.stringify({message:e,date:Date.now()});window.parent.postMessage(t,"*")},d=e=>{const{ctrlKey:t,metaKey:i,keyCode:r}=e.event;(t||i)&&[67,88,86].includes(r)&&(e.event.preventDefault(),e.event.stopPropagation(),e.isHandled=!0)};return o(a,{children:""!=c.documentAPI&&o(a,{children:o("div",{onContextMenu:e=>{document.querySelectorAll(".e-menu-item").forEach(e=>{e.style.display="none"})},children:o(Te,{height:"100vh",enableToolbar:!0,serviceUrl:r+"/",enableTrackChanges:!0,ref:e=>{e&&(s=e.documentEditor,s.keyDown=d)},toolbarItems:Cr,toolbarClick:(e=>{switch(e.item.id){case"closeDocument":p("closeDoc");break;case"expand":p("expand")}}).bind(void 0),documentEditorSettings:{optimizeSfdt:!1},restrictEditing:!0})})})})},Er=()=>{const[e,r]=t({documentId:"",showEditor:!1,documentAPI:"",documentName:"",documentType:"",actualPath:"",downloadPdfFile:!1,downloadImageFile:!1});i(()=>{window.addEventListener("message",n)},[]);const n=e=>{try{let t=c(e.data);if(t.message)switch(t.message){case"_viewDocumentEditor":t.entity&&r({documentId:t.entity?.documentId||"",documentAPI:t.entity.documentAPI,showEditor:!0,documentName:t.entity.documentName,documentType:t.entity.documentType.toLowerCase(),actualPath:t.entity?.actualPath,downloadPdfFile:!!t.entity?.downloadPdfFile&&t.entity?.downloadPdfFile,downloadImageFile:!!t.entity?.downloadImageFile&&t.entity?.downloadImageFile});break;case"closeDoc":r(e=>({...e,showEditor:!1}))}}catch(e){}},c=e=>{try{return JSON.parse(e)}catch(e){return{message:"Failed"}}};return o(a,{children:e.showEditor&&s("div",{className:"popup-iframe",children:[("docx"===e.documentType||"doc"===e.documentType)&&o(xr,{documentId:e.documentId,documentAPI:e.documentAPI,documentName:e.documentName}),"pdf"===e.documentType&&o(Lr,{documentId:e.documentId,documentAPI:e.documentAPI,documentName:e.documentName,actualPath:e.actualPath,downloadPdfFile:e.downloadPdfFile}),("jpg"===e.documentType||"jpeg"===e.documentType||"png"===e.documentType||"gif"===e.documentType)&&o(Ar,{documentId:e.documentId,documentAPI:e.documentAPI,documentName:e.documentName,downloadImageFile:e.downloadImageFile})]})})};function kr(e){return"[object String]"===Object.prototype.toString.call(e)?"$s"+e:"$o"+e.toString()}var Pr=function(){function e(e){this.table={},this.nElements=0,this.toStr=e||kr}return e.prototype.getValue=function(e){var t=this.table["$"+this.toStr(e)];if(void 0!==t)return t.value},e.prototype.setValue=function(e,t){var i="$"+this.toStr(e);this.table[i],this.nElements++,this.table[i]={key:e,value:t}},e.prototype.remove=function(e){var t="$"+this.toStr(e),i=this.table[t];return delete this.table[t],this.nElements--,i.value},e.prototype.keys=function(){for(var e=[],t=Object.keys(this.table),i=0;i<t.length;i++){var r=this.table[t[i]];e.push(r.key)}return e},e.prototype.values=function(){for(var e=[],t=Object.keys(this.table),i=0;i<t.length;i++){var r=this.table[t[i]];e.push(r.value)}return e},e.prototype.containsKey=function(e){return!(void 0===this.getValue(e))},e.prototype.clear=function(){this.table={},this.nElements=0},e.prototype.size=function(){return this.nElements},e}(),Ur=function(){function e(e){this.stringStartMark="/",this.internalValue="",this.isSaving6=!1,this.position6=-1,this.internalValue=this.normalizeValue(e)}return Object.defineProperty(e.prototype,"status",{get:function(){return this.status6},set:function(e){this.status6=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSaving",{get:function(){return this.isSaving6},set:function(e){this.isSaving6=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"objectCollectionIndex",{get:function(){return this.index6},set:function(e){this.index6=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.position6},set:function(e){this.position6=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.internalValue},set:function(e){var t=e;null!==e&&e.length>0?(t=e,this.internalValue=this.normalizeValue(t)):this.internalValue=t},enumerable:!0,configurable:!0}),e.prototype.save=function(e){e.write(this.toString())},e.prototype.toString=function(){return this.stringStartMark+this.escapeString(this.value)},e.prototype.clone=function(t){var i=new e;return i.value=this.internalValue,i},e.prototype.escapeString=function(t){for(var i="",r=0,n=t.length;r<n;r++){var o=t[r];e.delimiters.indexOf(o),i+=o}return i},e.prototype.normalizeValue=function(e,t){return e},e.delimiters="()<>[]{}/%}",e.replacements=[" ","\t","\n","\r"],e}(),Qr=function(){function e(){this.forTest="test",this.forTest=e.obj}return e.obj="obj",e.endObj="endobj",e.r="R",e.whiteSpace=" ",e.slash="/",e.newLine="\r\n",e.stream="stream",e.endStream="endstream",e.xref="xref",e.f="f",e.n="n",e.trailer="trailer",e.startxref="startxref",e.eof="%%EOF",e.header="%PDF-1.5",e.beginText="BT",e.endText="ET",e.beginPath="m",e.appendLineSegment="l",e.stroke="S",e.fill="f",e.fillEvenOdd="f*",e.fillStroke="B",e.fillStrokeEvenOdd="B*",e.appendbeziercurve="c",e.appendRectangle="re",e.saveState="q",e.restoreState="Q",e.paintXObject="Do",e.modifyCtm="cm",e.modifyTM="Tm",e.setLineWidth="w",e.setLineCapStyle="J",e.setLineJoinStyle="j",e.setDashPattern="d",e.setFlatnessTolerance="i",e.closePath="h",e.closeStrokePath="s",e.closeFillStrokePath="b",e.setCharacterSpace="Tc",e.setWordSpace="Tw",e.setHorizontalScaling="Tz",e.setTextLeading="TL",e.setFont="Tf",e.setRenderingMode="Tr",e.setTextRise="Ts",e.setTextScaling="Tz",e.setCoords="Td",e.goToNextLine="T*",e.setText="Tj",e.setTextWithFormatting="TJ",e.setTextOnNewLine="'",e.selectcolorspaceforstroking="CS",e.selectcolorspacefornonstroking="cs",e.setrbgcolorforstroking="RG",e.setrbgcolorfornonstroking="rg",e.setcmykcolorforstroking="K",e.setcmykcolorfornonstroking="k",e.setgraycolorforstroking="G",e.setgraycolorfornonstroking="g",e.clipPath="W",e.clipPathEvenOdd="W*",e.endPath="n",e.setGraphicsState="gs",e.comment="%",e.evenOdd="*",e.setMiterLimit="M",e.setColorAndPattern="scn",e.setColorAndPatternStroking="SCN",e}(),Yr=function(){this.pages="Pages",this.kids="Kids",this.count="Count",this.resources="Resources",this.type="Type",this.size="Size",this.mediaBox="MediaBox",this.parent="Parent",this.root="Root",this.decodeParms="DecodeParms",this.filter="Filter",this.font="Font",this.type1="Type1",this.baseFont="BaseFont",this.encoding="Encoding",this.subtype="Subtype",this.contents="Contents",this.procset="ProcSet",this.colorSpace="ColorSpace",this.extGState="ExtGState",this.pattern="Pattern",this.xObject="XObject",this.length="Length",this.width="Width",this.height="Height",this.bitsPerComponent="BitsPerComponent",this.image="Image",this.dctdecode="DCTDecode",this.columns="Columns",this.blackIs1="BlackIs1",this.k="K",this.s="S",this.predictor="Predictor",this.deviceRgb="DeviceRGB",this.next="Next",this.action="Action",this.link="Link",this.a="A",this.annot="Annot",this.p="P",this.c="C",this.rect="Rect",this.uri="URI",this.annots="Annots",this.ca="ca",this.CA="CA",this.xyz="XYZ",this.fit="Fit",this.dest="Dest",this.BM="BM",this.flatedecode="FlateDecode",this.rotate="Rotate",this.bBox="BBox",this.form="Form",this.w="W",this.cIDFontType2="CIDFontType2",this.cIDToGIDMap="CIDToGIDMap",this.identity="Identity",this.dw="DW",this.fontDescriptor="FontDescriptor",this.cIDSystemInfo="CIDSystemInfo",this.fontName="FontName",this.flags="Flags",this.fontBBox="FontBBox",this.missingWidth="MissingWidth",this.stemV="StemV",this.italicAngle="ItalicAngle",this.capHeight="CapHeight",this.ascent="Ascent",this.descent="Descent",this.leading="Leading",this.avgWidth="AvgWidth",this.fontFile2="FontFile2",this.maxWidth="MaxWidth",this.xHeight="XHeight",this.stemH="StemH",this.registry="Registry",this.ordering="Ordering",this.supplement="Supplement",this.type0="Type0",this.identityH="Identity-H",this.toUnicode="ToUnicode",this.descendantFonts="DescendantFonts",this.background="Background",this.shading="Shading",this.matrix="Matrix",this.antiAlias="AntiAlias",this.function="Function",this.extend="Extend",this.shadingType="ShadingType",this.coords="Coords",this.domain="Domain",this.range="Range",this.functionType="FunctionType",this.bitsPerSample="BitsPerSample",this.patternType="PatternType",this.paintType="PaintType",this.tilingType="TilingType",this.xStep="XStep",this.yStep="YStep",this.viewerPreferences="ViewerPreferences",this.centerWindow="CenterWindow",this.displayTitle="DisplayTitle",this.fitWindow="FitWindow",this.hideMenuBar="HideMenubar",this.hideToolBar="HideToolbar",this.hideWindowUI="HideWindowUI",this.pageMode="PageMode",this.pageLayout="PageLayout",this.duplex="Duplex",this.printScaling="PrintScaling"},Rr=function(){function e(e){if(this.position7=-1,this.primitiveItems=new Pr,this.prefix="<<",this.suffix=">>",this.resources=[],this.object=null,this.archive=!0,this.isResource=!1,void 0===e)this.primitiveItems=new Pr,this.encrypt=!0,this.dictionaryProperties=new Yr;else{this.primitiveItems=new Pr;for(var t=e.items.keys(),i=e.items.values(),r=0;r<e.items.size();r++)this.primitiveItems.setValue(t[r],i[r]);this.status=e.status,this.freezeChanges(this),this.encrypt=!0,this.dictionaryProperties=new Yr}}return Object.defineProperty(e.prototype,"items",{get:function(){return this.primitiveItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.status7},set:function(e){this.status7=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSaving",{get:function(){return this.isSaving7},set:function(e){this.isSaving7=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"objectCollectionIndex",{get:function(){return this.index7},set:function(e){this.index7=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clonedObject",{get:function(){return this.object},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.position7},set:function(e){this.position7=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Count",{get:function(){return this.primitiveItems.size()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Dictionary",{get:function(){return this},enumerable:!0,configurable:!0}),e.prototype.getArchive=function(){return this.archive},e.prototype.setArchive=function(e){this.archive=e},e.prototype.setEncrypt=function(e){this.encrypt=e,this.modify()},e.prototype.getEncrypt=function(){return this.encrypt},e.prototype.freezeChanges=function(e){this.bChanged=!1},e.prototype.clone=function(t){return new e},e.prototype.modify=function(){this.bChanged=!0},e.prototype.remove=function(e){"string"!=typeof e?(this.primitiveItems.remove(e.value),this.modify()):this.remove(new Ur(e))},e.prototype.containsKey=function(e){return this.primitiveItems.containsKey(e.toString())},e.prototype.onBeginSave=function(){this.beginSave.sender.beginSave()},e.prototype.onFontDictionaryBeginSave=function(){this.fontDictionaryBeginSave.sender.fontDictionaryBeginSave()},e.prototype.onDescendantFontBeginSave=function(){this.descendantFontBeginSave.sender.descendantFontBeginSave()},e.prototype.onTemplateBeginSave=function(){this.pageBeginDrawTemplate.sender.pageBeginSave()},e.prototype.onBeginAnnotationSave=function(){this.annotationBeginSave.sender.beginSave()},e.prototype.onSectionBeginSave=function(e){var t=this.sectionBeginSave;t.sender.beginSave(t.state,e)},e.prototype.save=function(e,t){void 0===t?this.save(e,!0):(e.write(this.prefix),void 0!==this.beginSave&&this.onBeginSave(),void 0!==this.descendantFontBeginSave&&this.onDescendantFontBeginSave(),void 0!==this.fontDictionaryBeginSave&&this.onFontDictionaryBeginSave(),void 0!==this.annotationBeginSave&&this.onBeginAnnotationSave(),void 0!==this.sectionBeginSave&&this.onSectionBeginSave(e),void 0!==this.pageBeginDrawTemplate&&this.onTemplateBeginSave(),this.Count>0&&this.saveItems(e),e.write(this.suffix),e.write(Qr.newLine))},e.prototype.saveItems=function(e){e.write(Qr.newLine);for(var t=this.primitiveItems.keys(),i=this.primitiveItems.values(),r=0;r<t.length;r++){var n=t[r];new Ur(n).save(e),e.write(Qr.whiteSpace),i[r].save(e),e.write(Qr.newLine)}},e}(),Vr=function(e){this.sender=e},Fr=function(e){this.sender=e},Br=function(e){this.sender=e},Wr=function(e,t){this.sender=e,this.state=t},Gr=function(e){this.sender=e},Hr=function(){function e(e){this.position5=-1,this.value=e}return Object.defineProperty(e.prototype,"intValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isInteger",{get:function(){return this.integer},set:function(e){this.integer=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.status5},set:function(e){this.status5=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSaving",{get:function(){return this.isSaving5},set:function(e){this.isSaving5=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"objectCollectionIndex",{get:function(){return this.index5},set:function(e){this.index5=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.position5},set:function(e){this.position5=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.save=function(e){e.write(this.intValue.toString())},e.prototype.clone=function(t){return new e(this.value)},e.floatToString=function(e){var t=e.toFixed(2);return"0.00"===t&&(t=".00"),t},e.min=function(e,t,i){var r=Math.min(e,t);return Math.min(i,r)},e}(),qr=function(){function e(t){if(this.startMark="[",this.endMark="]",this.position9=-1,this.clonedObject9=null,this.isFont=!1,void 0===t)this.internalElements=[];else if(void 0===t||t instanceof e){var i=t;this.internalElements=[];for(n=0;n<i.elements.length;n++)this.internalElements.push(i.elements[n])}else for(var r=t,n=0;n<r.length;n++){var o=new Hr(r[n]);this.add(o)}}return e.prototype.items=function(e){return this.internalElements[e]},Object.defineProperty(e.prototype,"count",{get:function(){return this.internalElements.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.status9},set:function(e){this.status9=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSaving",{get:function(){return this.isSaving9},set:function(e){this.isSaving9=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clonedObject",{get:function(){return this.clonedObject9},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.position9},set:function(e){this.position9=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"objectCollectionIndex",{get:function(){return this.index9},set:function(e){this.index9=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CrossTable",{get:function(){return this.pdfCrossTable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"elements",{get:function(){return this.internalElements},enumerable:!0,configurable:!0}),e.prototype.add=function(e){void 0===this.internalElements&&(this.internalElements=[]),this.internalElements.push(e),this.markedChange()},e.prototype.markedChange=function(){this.bChanged=!0},e.prototype.contains=function(e){for(var t=0;t<this.internalElements.length;t++){var i=this.internalElements[t],r=e;if(null!=i&&void 0!==i&&null!=r&&void 0!==r&&i.value===r.value)return!0}return!1},e.prototype.getItems=function(e){return this.internalElements[e]},e.prototype.save=function(e){e.write(this.startMark);for(var t=0,i=this.count;t<i;t++)this.getItems(t).save(e),t+1!==i&&e.write(Qr.whiteSpace);e.write(this.endMark)},e.prototype.clone=function(t){this.clonedObject9=null;for(var i=new e,r=0;r<this.internalElements.length;r++){var n=this.internalElements[r];i.add(n.clone(t))}return i.pdfCrossTable=t,this.clonedObject9=i,i},e.fromRectangle=function(t){return new e([t.x,t.y,t.width,t.height])},e.prototype.insert=function(e,t){if(e<this.internalElements.length&&e>0){for(var i=[],r=0;r<e;r++)i.push(this.internalElements[r]);i.push(t);for(r=e;r<this.internalElements.length;r++)i.push(this.internalElements[r]);this.internalElements=i}else this.internalElements.push(t);this.markChanged()},e.prototype.indexOf=function(e){return this.internalElements.indexOf(e)},e.prototype.remove=function(e){var t=this.internalElements.indexOf(e);this.internalElements[t]=null,this.markChanged()},e.prototype.removeAt=function(e){if(this.internalElements.length>e){for(var t=[],i=0;i<e;i++)t.push(this.internalElements[i]);for(i=e+1;i<this.internalElements.length;i++)t.push(this.internalElements[i]);this.internalElements=t}this.markChanged()},e.prototype.clear=function(){this.internalElements=[],this.markChanged()},e.prototype.markChanged=function(){this.bChanged=!0},e}(),_r=function(){function e(){}return e.save=function(e,t){if(null==e||""===e)throw new Error("ArgumentException: fileName cannot be undefined, null or empty");var i=e.substring(e.lastIndexOf(".")+1,e.length),r=this.getMimeType(i);if(""!==r&&(t=new Blob([t],{type:r})),this.isMicrosoftBrowser)navigator.msSaveBlob(t,e);else{var n=document.createElementNS("http://www.w3.org/1999/xhtml","a");this.saveInternal(e,i,t,n,"download"in n)}},e.saveInternal=function(e,t,i,r,n){if(n){r.download=e;var o=window.URL.createObjectURL(i);r.href=o;var s=document.createEvent("MouseEvent");s.initEvent("click",!0,!0),r.dispatchEvent(s),setTimeout(function(){window.URL.revokeObjectURL(o),o=void 0})}else if("docx"!==t&&"xlsx"!==t){var a=window.URL.createObjectURL(i);window.open(a,"_blank")||(window.location.href=a)}else{var c=new FileReader;c.onloadend=function(){window.open(c.result,"_blank")||(window.location.href=c.result)},c.readAsDataURL(i)}},e.getMimeType=function(e){var t="";switch(e){case"html":t="text/html";break;case"pdf":t="application/pdf";break;case"docx":t="application/vnd.openxmlformats-officedocument.wordprocessingml.document";break;case"xlsx":t="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";break;case"txt":t="text/plain"}return t},e}(),Jr=function(){function e(e){this.emitBOM=!0,this.encodingType="Ansi",this.initBOM(e)}return Object.defineProperty(e.prototype,"includeBom",{get:function(){return this.emitBOM},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.encodingType},set:function(e){this.encodingType=e},enumerable:!0,configurable:!0}),e.prototype.initBOM=function(e){this.emitBOM=null==e||e},e.prototype.getByteCount=function(e){return Zr(e,"string"),""===e?this.utf8Len(e.charCodeAt(0)):(null!==this.type&&void 0!==this.type||(this.type="Ansi"),this.getByteCountInternal(e,0,e.length))},e.prototype.utf8Len=function(e){return e<=127?1:e<=2047?2:e<=65535?3:e<=2097151?4:0},e.prototype.isHighSurrogate=function(e){return e>=55296&&e<=56319},e.prototype.toCodepoint=function(e,t){return((e=(1023&e)<<10)|1023&t)+65536},e.prototype.getByteCountInternal=function(e,t,i){var r=0;if("Utf8"===this.encodingType||"Unicode"===this.encodingType){for(var n="Utf8"===this.encodingType,o=0;o<i;o++){var s=e.charCodeAt(n?t:t++);if(this.isHighSurrogate(s))if(n){var a=s,c=e.charCodeAt(++t);r+=this.utf8Len(this.toCodepoint(a,c))}else r+=4,++o;else r+=n?this.utf8Len(s):2;n&&t++}return r}return r=i},e.prototype.getBytes=function(e,t,i){if(Zr(e,"string"),Zr(t,"charIndex"),Zr(i,"charCount"),t<0||i<0)throw new RangeError("Argument Out Of Range Exception: charIndex or charCount is less than zero");if(e.length-t<i)throw new RangeError("Argument Out Of Range Exception: charIndex and charCount do not denote a valid range in string");if(""===e)return new ArrayBuffer(0);null!==this.type&&void 0!==this.type||(this.type="Ansi");var r=this.getByteCountInternal(e,t,i);switch(this.type){case"Utf8":return this.getBytesOfUtf8Encoding(r,e,t,i);case"Unicode":return this.getBytesOfUnicodeEncoding(r,e,t,i);default:return this.getBytesOfAnsiEncoding(r,e,t,i)}},e.prototype.getString=function(e,t,i){if(Zr(e,"bytes"),Zr(t,"index"),Zr(i,"count"),t<0||i<0)throw new RangeError("Argument Out Of Range Exception: index or count is less than zero");if(e.byteLength-t<i)throw new RangeError("Argument Out Of Range Exception: index and count do not denote a valid range in bytes");if(0===e.byteLength||0===i)return"";null!==this.type&&void 0!==this.type||(this.type="Ansi");var r="",n=new Uint8Array(e);switch(this.type){case"Utf8":return this.getStringOfUtf8Encoding(n,t,i);case"Unicode":var o=new Uint16Array(e);return r=this.getStringofUnicodeEncoding(o,t,i);default:for(var s=t,a=0;a<i;a++){var c=n[s];r+=String.fromCharCode(c),s++}return r}},e.prototype.getBytesOfAnsiEncoding=function(e,t,i,r){for(var n=new ArrayBuffer(e),o=new Uint8Array(n),s=0,a=0;a<r;a++){var c=t.charCodeAt(i++);o[s]=c<2048?c:63,s++}return n},e.prototype.getBytesOfUtf8Encoding=function(e,t,i,r){for(var n=new ArrayBuffer(e),o=new Uint8Array(n),s=i,a=0,c=0;c<r;c++){var h=t.charCodeAt(s);h<=127?o[a]=h:h<2048?(o[a]=192|h>>6,o[++a]=128|63&h):h<55296||h>=57344?(o[a]=224|h>>12,o[++a]=128|h>>6&63,o[++a]=128|63&h):(o[a]=239,o[++a]=191,o[++a]=189),++a,++s}return n},e.prototype.getBytesOfUnicodeEncoding=function(e,t,i,r){for(var n=new ArrayBuffer(e),o=new Uint16Array(n),s=0;s<r;s++){var a=t.charCodeAt(s);o[s]=a}return n},e.prototype.getStringOfUtf8Encoding=function(e,t,i){for(var r=0,n=t,o="";r<i;r++){for(var s=e[n++];n>e.length;)return o;s>127&&(s>191&&s<224&&n<i?s=(31&s)<<6|63&e[n]:s>223&&s<240&&n<e.byteLength?s=(15&s)<<12|(63&e[n])<<6|63&e[++n]:s>239&&s<248&&n<e.byteLength&&(s=(7&s)<<18|(63&e[n])<<12|(63&e[++n])<<6|63&e[++n]),++n),o+=String.fromCharCode(s)}return o},e.prototype.getStringofUnicodeEncoding=function(e,t,i){if(i>e.length)throw new RangeError("ArgumentOutOfRange_Count");for(var r=new Uint16Array(i),n=0;n<i&&n<e.length;n++)r[n]=e[t++];return String.fromCharCode.apply(null,r)},e.prototype.destroy=function(){this.emitBOM=void 0,this.encodingType=void 0},e}();function Zr(e,t){if(null==e)throw new Error("ArgumentException: "+t+" cannot be null or undefined")}var Kr,Xr=function(){function e(e){this.bufferBlob=new Blob([""]),this.bufferText="",this.init(e),_r.isMicrosoftBrowser=!!navigator.msSaveBlob}return Object.defineProperty(e.prototype,"buffer",{get:function(){return this.flush(),this.bufferBlob},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"encoding",{get:function(){return this.enc},enumerable:!0,configurable:!0}),e.prototype.init=function(e){null==e?(this.enc=new Jr(!1),this.enc.type="Utf8"):(this.enc=e,this.setBomByte())},e.prototype.setBomByte=function(){if(this.encoding.includeBom)switch(this.encoding.type){case"Unicode":var e=new ArrayBuffer(2),t=new Uint8Array(e);t[0]=255,t[1]=254,this.bufferBlob=new Blob([e]);break;case"Utf8":var i=new ArrayBuffer(3),r=new Uint8Array(i);r[0]=239,r[1]=187,r[2]=191,this.bufferBlob=new Blob([i]);break;default:this.bufferBlob=new Blob([""])}},e.prototype.save=function(e){""!==this.bufferText&&this.flush(),_r.save(e,this.buffer)},e.prototype.write=function(e){if(void 0===this.encoding)throw new Error("Object Disposed Exception: current writer is disposed");Zr(e,"string"),this.bufferText+=e,this.bufferText.length>=10240&&this.flush()},e.prototype.flush=function(){if(void 0!==this.bufferText&&null!==this.bufferText&&0!==this.bufferText.length){var e=this.encoding.getBytes(this.bufferText,0,this.bufferText.length);this.bufferText="",this.bufferBlob=new Blob([this.bufferBlob,e])}},e.prototype.writeLine=function(e){if(void 0===this.encoding)throw new Error("Object Disposed Exception: current writer is disposed");Zr(e,"string"),this.bufferText=this.bufferText+e+"\r\n",this.bufferText.length>=10240&&this.flush()},e.prototype.destroy=function(){this.bufferBlob=void 0,this.bufferText=void 0,this.enc instanceof Jr&&this.enc.destroy(),this.enc=void 0},e}(),$r=new Int16Array(286),en=new Uint8Array(286),tn=new Int16Array(30),rn=new Uint8Array(30),nn=function(){function e(t){this.pendingBuffer=new Uint8Array(65536),this.pendingBufLength=0,this.pendingBufCache=0,this.pendingBufBitsInCache=0,this.bufferPosition=0,this.extraBits=0,this.currentHash=0,this.matchStart=0,this.matchLength=0,this.matchPrevAvail=!1,this.blockStart=0,this.stringStart=0,this.lookAhead=0,this.totalBytesIn=0,this.inputOffset=0,this.inputEnd=0,this.windowSize=32768,this.windowMask=this.windowSize-1,this.hashSize=32768,this.hashMask=this.hashSize-1,this.hashShift=Math.floor(17/3),this.maxDist=this.windowSize-262,this.checkSum=1,this.noWrap=!1,e.isHuffmanTreeInitiated||(e.initHuffmanTree(),e.isHuffmanTreeInitiated=!0),this.treeLiteral=new on(this,286,257,15),this.treeDistances=new on(this,30,1,15),this.treeCodeLengths=new on(this,19,4,7),this.arrDistances=new Uint16Array(16384),this.arrLiterals=new Uint8Array(16384),this.stream=[],this.dataWindow=new Uint8Array(2*this.windowSize),this.hashHead=new Int16Array(this.hashSize),this.hashPrevious=new Int16Array(this.windowSize),this.blockStart=this.stringStart=1,this.noWrap=t,t||this.writeZLibHeader()}return Object.defineProperty(e.prototype,"compressedData",{get:function(){return this.stream},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"getCompressedString",{get:function(){var e="";if(void 0!==this.stream)for(var t=0;t<this.stream.length;t++)e+=String.fromCharCode.apply(null,this.stream[t]);return e},enumerable:!0,configurable:!0}),e.prototype.write=function(e,t,i){if(null==e)throw new Error("ArgumentException: data cannot null or undefined");var r=t+i;if(0>t||t>r||r>e.length)throw new Error("ArgumentOutOfRangeException: Offset or length is incorrect");if("string"==typeof e){var n=new Jr(!1);n.type="Utf8",r=t+(e=new Uint8Array(n.getBytes(e,0,e.length))).length}for(this.inputBuffer=e,this.inputOffset=t,this.inputEnd=r,this.noWrap||(this.checkSum=sn.checksumUpdate(this.checkSum,this.inputBuffer,this.inputOffset,r));this.inputEnd!==this.inputOffset||0!==this.pendingBufLength;)this.pendingBufferFlush(),this.compressData(!1)},e.prototype.writeZLibHeader=function(){var e=30720;e|=64,e+=31-e%31,this.pendingBufferWriteShortBytes(e)},e.prototype.pendingBufferWriteShortBytes=function(e){this.pendingBuffer[this.pendingBufLength++]=e>>8,this.pendingBuffer[this.pendingBufLength++]=e},e.prototype.compressData=function(e){var t;do{this.fillWindow();var i=e&&this.inputEnd===this.inputOffset;t=this.compressSlow(i,e)}while(0===this.pendingBufLength&&t);return t},e.prototype.compressSlow=function(e,t){if(this.lookAhead<262&&!e)return!1;for(;this.lookAhead>=262||e;){if(0===this.lookAhead)return this.lookAheadCompleted(t);this.stringStart>=2*this.windowSize-262&&this.slideWindow();var i=this.matchStart,r=this.matchLength;if(this.lookAhead>=3&&this.discardMatch(),r>=3&&this.matchLength<=r?r=this.matchPreviousBest(i,r):this.matchPreviousAvailable(),this.bufferPosition>=16384)return this.huffmanIsFull(t)}return!0},e.prototype.discardMatch=function(){var e=this.insertString();0!==e&&this.stringStart-e<=this.maxDist&&this.findLongestMatch(e)&&this.matchLength<=5&&3===this.matchLength&&this.stringStart-this.matchStart>4096&&(this.matchLength=2)},e.prototype.matchPreviousAvailable=function(){this.matchPrevAvail&&this.huffmanTallyLit(255&this.dataWindow[this.stringStart-1]),this.matchPrevAvail=!0,this.stringStart++,this.lookAhead--},e.prototype.matchPreviousBest=function(e,t){this.huffmanTallyDist(this.stringStart-1-e,t),t-=2;do{this.stringStart++,this.lookAhead--,this.lookAhead>=3&&this.insertString()}while(--t>0);return this.stringStart++,this.lookAhead--,this.matchPrevAvail=!1,this.matchLength=2,t},e.prototype.lookAheadCompleted=function(e){return this.matchPrevAvail&&this.huffmanTallyLit(255&this.dataWindow[this.stringStart-1]),this.matchPrevAvail=!1,this.huffmanFlushBlock(this.dataWindow,this.blockStart,this.stringStart-this.blockStart,e),this.blockStart=this.stringStart,!1},e.prototype.huffmanIsFull=function(e){var t=this.stringStart-this.blockStart;this.matchPrevAvail&&t--;var i=e&&0===this.lookAhead&&!this.matchPrevAvail;return this.huffmanFlushBlock(this.dataWindow,this.blockStart,t,i),this.blockStart+=t,!i},e.prototype.fillWindow=function(){for(this.stringStart>=this.windowSize+this.maxDist&&this.slideWindow();this.lookAhead<262&&this.inputOffset<this.inputEnd;){var e=2*this.windowSize-this.lookAhead-this.stringStart;e>this.inputEnd-this.inputOffset&&(e=this.inputEnd-this.inputOffset),this.dataWindow.set(this.inputBuffer.subarray(this.inputOffset,this.inputOffset+e),this.stringStart+this.lookAhead),this.inputOffset+=e,this.totalBytesIn+=e,this.lookAhead+=e}this.lookAhead>=3&&this.updateHash()},e.prototype.slideWindow=function(){this.dataWindow.set(this.dataWindow.subarray(this.windowSize,this.windowSize+this.windowSize),0),this.matchStart-=this.windowSize,this.stringStart-=this.windowSize,this.blockStart-=this.windowSize;for(var e=0;e<this.hashSize;++e){var t=65535&this.hashHead[e];this.hashHead[e]=t>=this.windowSize?t-this.windowSize:0}for(e=0;e<this.windowSize;e++){t=65535&this.hashPrevious[e];this.hashPrevious[e]=t>=this.windowSize?t-this.windowSize:0}},e.prototype.insertString=function(){var e,t=(this.currentHash<<this.hashShift^this.dataWindow[this.stringStart+2])&this.hashMask;return this.hashPrevious[this.stringStart&this.windowMask]=e=this.hashHead[t],this.hashHead[t]=this.stringStart,this.currentHash=t,65535&e},e.prototype.findLongestMatch=function(e){var t,i=4096,r=258,n=this.stringStart,o=this.stringStart+this.matchLength,s=Math.max(this.matchLength,2),a=Math.max(this.stringStart-this.maxDist,0),c=this.stringStart+258-1,h=this.dataWindow[o-1],u=this.dataWindow[o],l=this.dataWindow;s>=32&&(i>>=2),r>this.lookAhead&&(r=this.lookAhead);do{if(l[e+s]===u&&l[e+s-1]===h&&l[e]===l[n]&&l[e+1]===l[n+1]){for(t=e+2,n+=2;l[++n]===l[++t]&&l[++n]===l[++t]&&l[++n]===l[++t]&&l[++n]===l[++t]&&l[++n]===l[++t]&&l[++n]===l[++t]&&l[++n]===l[++t]&&l[++n]===l[++t]&&n<c;);if(n>o){if(this.matchStart=e,o=n,(s=n-this.stringStart)>=r)break;h=l[o-1],u=l[o]}n=this.stringStart}}while((e=65535&this.hashPrevious[e&this.windowMask])>a&&0!==--i);return this.matchLength=Math.min(s,this.lookAhead),this.matchLength>=3},e.prototype.updateHash=function(){this.currentHash=this.dataWindow[this.stringStart]<<this.hashShift^this.dataWindow[this.stringStart+1]},e.prototype.huffmanTallyLit=function(e){return this.arrDistances[this.bufferPosition]=0,this.arrLiterals[this.bufferPosition++]=e,this.treeLiteral.codeFrequencies[e]++,this.bufferPosition>=16384},e.prototype.huffmanTallyDist=function(e,t){this.arrDistances[this.bufferPosition]=e,this.arrLiterals[this.bufferPosition++]=t-3;var i=this.huffmanLengthCode(t-3);this.treeLiteral.codeFrequencies[i]++,i>=265&&i<285&&(this.extraBits+=Math.floor((i-261)/4));var r=this.huffmanDistanceCode(e-1);return this.treeDistances.codeFrequencies[r]++,r>=4&&(this.extraBits+=Math.floor(r/2-1)),this.bufferPosition>=16384},e.prototype.huffmanFlushBlock=function(e,t,i,r){this.treeLiteral.codeFrequencies[256]++,this.treeLiteral.buildTree(),this.treeDistances.buildTree(),this.treeLiteral.calculateBLFreq(this.treeCodeLengths),this.treeDistances.calculateBLFreq(this.treeCodeLengths),this.treeCodeLengths.buildTree();for(var n=4,o=18;o>n;o--)this.treeCodeLengths.codeLengths[on.huffCodeLengthOrders[o]]>0&&(n=o+1);var s=14+3*n+this.treeCodeLengths.getEncodedLength()+this.treeLiteral.getEncodedLength()+this.treeDistances.getEncodedLength()+this.extraBits,a=this.extraBits;for(o=0;o<286;o++)a+=this.treeLiteral.codeFrequencies[o]*en[o];for(o=0;o<30;o++)a+=this.treeDistances.codeFrequencies[o]*rn[o];s>=a&&(s=a),t>=0&&i+4<s>>3?this.huffmanFlushStoredBlock(e,t,i,r):s==a?(this.pendingBufferWriteBits(2+(r?1:0),3),this.treeLiteral.setStaticCodes($r,en),this.treeDistances.setStaticCodes(tn,rn),this.huffmanCompressBlock(),this.huffmanReset()):(this.pendingBufferWriteBits(4+(r?1:0),3),this.huffmanSendAllTrees(n),this.huffmanCompressBlock(),this.huffmanReset())},e.prototype.huffmanFlushStoredBlock=function(e,t,i,r){this.pendingBufferWriteBits(0+(r?1:0),3),this.pendingBufferAlignToByte(),this.pendingBufferWriteShort(i),this.pendingBufferWriteShort(~i),this.pendingBufferWriteByteBlock(e,t,i),this.huffmanReset()},e.prototype.huffmanLengthCode=function(e){if(255===e)return 285;for(var t=257;e>=8;)t+=4,e>>=1;return t+e},e.prototype.huffmanDistanceCode=function(e){for(var t=0;e>=4;)t+=2,e>>=1;return t+e},e.prototype.huffmanSendAllTrees=function(e){this.treeCodeLengths.buildCodes(),this.treeLiteral.buildCodes(),this.treeDistances.buildCodes(),this.pendingBufferWriteBits(this.treeLiteral.treeLength-257,5),this.pendingBufferWriteBits(this.treeDistances.treeLength-1,5),this.pendingBufferWriteBits(e-4,4);for(var t=0;t<e;t++)this.pendingBufferWriteBits(this.treeCodeLengths.codeLengths[on.huffCodeLengthOrders[t]],3);this.treeLiteral.writeTree(this.treeCodeLengths),this.treeDistances.writeTree(this.treeCodeLengths)},e.prototype.huffmanReset=function(){this.bufferPosition=0,this.extraBits=0,this.treeLiteral.reset(),this.treeDistances.reset(),this.treeCodeLengths.reset()},e.prototype.huffmanCompressBlock=function(){for(var e=0;e<this.bufferPosition;e++){var t=255&this.arrLiterals[e],i=this.arrDistances[e];if(0!==i--){var r=this.huffmanLengthCode(t);this.treeLiteral.writeCodeToStream(r);var n=Math.floor((r-261)/4);n>0&&n<=5&&this.pendingBufferWriteBits(t&(1<<n)-1,n);var o=this.huffmanDistanceCode(i);this.treeDistances.writeCodeToStream(o),(n=Math.floor(o/2-1))>0&&this.pendingBufferWriteBits(i&(1<<n)-1,n)}else this.treeLiteral.writeCodeToStream(t)}this.treeLiteral.writeCodeToStream(256)},e.prototype.pendingBufferWriteBits=function(e,t){var i=new Uint32Array(1);i[0]=this.pendingBufCache|e<<this.pendingBufBitsInCache,this.pendingBufCache=i[0],this.pendingBufBitsInCache+=t,this.pendingBufferFlushBits()},e.prototype.pendingBufferFlush=function(e){if(this.pendingBufferFlushBits(),this.pendingBufLength>0){var t=new Uint8Array(this.pendingBufLength);t.set(this.pendingBuffer.subarray(0,this.pendingBufLength),0),this.stream.push(t)}this.pendingBufLength=0},e.prototype.pendingBufferFlushBits=function(){for(var e=0;this.pendingBufBitsInCache>=8&&this.pendingBufLength<65536;)this.pendingBuffer[this.pendingBufLength++]=this.pendingBufCache,this.pendingBufCache>>=8,this.pendingBufBitsInCache-=8,e++;return e},e.prototype.pendingBufferWriteByteBlock=function(e,t,i){var r=e.subarray(t,t+i);this.pendingBuffer.set(r,this.pendingBufLength),this.pendingBufLength+=i},e.prototype.pendingBufferWriteShort=function(e){this.pendingBuffer[this.pendingBufLength++]=e,this.pendingBuffer[this.pendingBufLength++]=e>>8},e.prototype.pendingBufferAlignToByte=function(){this.pendingBufBitsInCache>0&&(this.pendingBuffer[this.pendingBufLength++]=this.pendingBufCache),this.pendingBufCache=0,this.pendingBufBitsInCache=0},e.initHuffmanTree=function(){for(var e=0;e<144;)$r[e]=on.bitReverse(48+e<<8),en[e++]=8;for(;e<256;)$r[e]=on.bitReverse(256+e<<7),en[e++]=9;for(;e<280;)$r[e]=on.bitReverse(-256+e<<9),en[e++]=7;for(;e<286;)$r[e]=on.bitReverse(-88+e<<8),en[e++]=8;for(e=0;e<30;e++)tn[e]=on.bitReverse(e<<11),rn[e]=5},e.prototype.close=function(){do{this.pendingBufferFlush(!0),this.compressData(!0)||(this.pendingBufferFlush(!0),this.pendingBufferAlignToByte(),this.noWrap||(this.pendingBufferWriteShortBytes(this.checkSum>>16),this.pendingBufferWriteShortBytes(65535&this.checkSum)),this.pendingBufferFlush(!0))}while(this.inputEnd!==this.inputOffset||0!==this.pendingBufLength)},e.prototype.destroy=function(){this.stream=[],this.stream=void 0,this.pendingBuffer=void 0,this.treeLiteral=void 0,this.treeDistances=void 0,this.treeCodeLengths=void 0,this.arrLiterals=void 0,this.arrDistances=void 0,this.hashHead=void 0,this.hashPrevious=void 0,this.dataWindow=void 0,this.inputBuffer=void 0,this.pendingBufLength=void 0,this.pendingBufCache=void 0,this.pendingBufBitsInCache=void 0,this.bufferPosition=void 0,this.extraBits=void 0,this.currentHash=void 0,this.matchStart=void 0,this.matchLength=void 0,this.matchPrevAvail=void 0,this.blockStart=void 0,this.stringStart=void 0,this.lookAhead=void 0,this.totalBytesIn=void 0,this.inputOffset=void 0,this.inputEnd=void 0,this.windowSize=void 0,this.windowMask=void 0,this.hashSize=void 0,this.hashMask=void 0,this.hashShift=void 0,this.maxDist=void 0,this.checkSum=void 0,this.noWrap=void 0},e.isHuffmanTreeInitiated=!1,e}(),on=function(){function e(e,t,i,r){this.writer=e,this.codeMinCount=i,this.maxLength=r,this.codeFrequency=new Uint16Array(t),this.lengthCount=new Int32Array(r)}return Object.defineProperty(e.prototype,"treeLength",{get:function(){return this.codeCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"codeLengths",{get:function(){return this.codeLength},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"codeFrequencies",{get:function(){return this.codeFrequency},enumerable:!0,configurable:!0}),e.prototype.setStaticCodes=function(e,t){var i=new Int16Array(e.length);i.set(e,0),this.codes=i;var r=new Uint8Array(t.length);r.set(t,0),this.codeLength=r},e.prototype.reset=function(){for(var e=0;e<this.codeFrequency.length;e++)this.codeFrequency[e]=0;this.codes=void 0,this.codeLength=void 0},e.prototype.writeCodeToStream=function(e){this.writer.pendingBufferWriteBits(65535&this.codes[e],this.codeLength[e])},e.prototype.buildCodes=function(){var t=new Int32Array(this.maxLength);this.codes=new Int16Array(this.codeCount);for(var i=0,r=0;r<this.maxLength;r++)t[r]=i,i+=this.lengthCount[r]<<15-r;for(var n=0;n<this.codeCount;n++){var o=this.codeLength[n];o>0&&(this.codes[n]=e.bitReverse(t[o-1]),t[o-1]+=1<<16-o)}},e.bitReverse=function(t){return e.reverseBits[15&t]<<12|e.reverseBits[t>>4&15]<<8|e.reverseBits[t>>8&15]<<4|e.reverseBits[t>>12]},e.prototype.getEncodedLength=function(){for(var e=0,t=0;t<this.codeFrequency.length;t++)e+=this.codeFrequency[t]*this.codeLength[t];return e},e.prototype.calculateBLFreq=function(e){for(var t,i,r,n=-1,o=0;o<this.codeCount;){r=1;var s=this.codeLength[o];for(0===s?(t=138,i=3):(t=6,i=3,n!==s&&(e.codeFrequency[s]++,r=0)),n=s,o++;o<this.codeCount&&n===this.codeLength[o]&&(o++,!(++r>=t)););r<i?e.codeFrequency[n]+=r:0!==n?e.codeFrequency[16]++:r<=10?e.codeFrequency[17]++:e.codeFrequency[18]++}},e.prototype.writeTree=function(e){for(var t,i,r,n=-1,o=0;o<this.codeCount;){r=1;var s=this.codeLength[o];for(0===s?(t=138,i=3):(t=6,i=3,n!==s&&(e.writeCodeToStream(s),r=0)),n=s,o++;o<this.codeCount&&n===this.codeLength[o]&&(o++,!(++r>=t)););if(r<i)for(;r-- >0;)e.writeCodeToStream(n);else 0!==n?(e.writeCodeToStream(16),this.writer.pendingBufferWriteBits(r-3,2)):r<=10?(e.writeCodeToStream(17),this.writer.pendingBufferWriteBits(r-3,3)):(e.writeCodeToStream(18),this.writer.pendingBufferWriteBits(r-11,7))}},e.prototype.buildTree=function(){for(var e=this.codeFrequency.length,t=new Int32Array(e),i=0,r=0,n=0;n<e;n++){var o=this.codeFrequency[n];if(0!==o){for(var s=i++,a=0;s>0&&this.codeFrequency[t[a=Math.floor((s-1)/2)]]>o;)t[s]=t[a],s=a;t[s]=n,r=n}}for(;i<2;)t[i++]=r<2?++r:0;this.codeCount=Math.max(r+1,this.codeMinCount);for(var c=i,h=new Int32Array(4*i-2),u=new Int32Array(2*i-1),l=0;l<i;l++){var p=t[l],d=2*l;h[d]=p,h[d+1]=-1,u[l]=this.codeFrequency[p]<<8,t[l]=l}this.constructHuffmanTree(t,i,u,c,h),this.buildLength(h)},e.prototype.constructHuffmanTree=function(e,t,i,r,n){do{for(var o=e[0],s=e[--t],a=i[s],c=0,h=1;h<t;)h+1<t&&i[e[h]]>i[e[h+1]]&&h++,e[c]=e[h],h=2*(c=h)+1;for(;(h=c)>0&&i[e[c=Math.floor((h-1)/2)]]>a;)e[h]=e[c];e[h]=s;var u=e[0];n[2*(s=r++)]=o,n[2*s+1]=u;var l=Math.min(255&i[o],255&i[u]);for(i[s]=a=i[o]+i[u]-l+1,c=0,h=1;h<t;)h+1<t&&i[e[h]]>i[e[h+1]]&&h++,e[c]=e[h],h=2*(c=h)+1;for(;(h=c)>0&&i[e[c=Math.floor((h-1)/2)]]>a;)e[h]=e[c];e[h]=s}while(t>1)},e.prototype.buildLength=function(e){this.codeLength=new Uint8Array(this.codeFrequency.length);for(var t=Math.floor(e.length/2),i=Math.floor((t+1)/2),r=0,n=0;n<this.maxLength;n++)this.lengthCount[n]=0;if(0!==(r=this.calculateOptimalCodeLength(e,r,t))){var o=this.maxLength-1;do{for(;0===this.lengthCount[--o];);do{this.lengthCount[o]--,this.lengthCount[++o]++,r-=1<<this.maxLength-1-o}while(r>0&&o<this.maxLength-1)}while(r>0);this.recreateTree(e,r,i)}},e.prototype.recreateTree=function(e,t,i){this.lengthCount[this.maxLength-1]+=t,this.lengthCount[this.maxLength-2]-=t;for(var r=2*i,n=this.maxLength;0!==n;n--)for(var o=this.lengthCount[n-1];o>0;){var s=2*e[r++];-1===e[s+1]&&(this.codeLength[e[s]]=n,o--)}},e.prototype.calculateOptimalCodeLength=function(e,t,i){var r=new Int32Array(i);r[i-1]=0;for(var n=i-1;n>=0;n--){var o=2*n+1;if(-1!==e[o]){(s=r[n]+1)>this.maxLength&&(s=this.maxLength,t++),r[e[o-1]]=r[e[o]]=s}else{var s=r[n];this.lengthCount[s-1]++,this.codeLength[e[o-1]]=r[n]}}return t},e.reverseBits=[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15],e.huffCodeLengthOrders=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],e}(),sn=function(){function e(){}return e.checksumUpdate=function(t,i,r,n){var o=new Uint32Array(1);o[0]=t;for(var s=o[0],a=o[0]=65535&s,c=o[0]=s>>e.checkSumBitOffset;n>0;){var h=Math.min(n,e.checksumIterationCount);for(n-=h;--h>=0;)c+=a+=o[0]=255&i[r++];a%=e.checksumBase,c%=e.checksumBase}return s=c<<e.checkSumBitOffset|a},e.checkSumBitOffset=16,e.checksumBase=65521,e.checksumIterationCount=3800,e}(),an=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),cn=function(e){function t(t,i){var r=e.call(this,t)||this;return r.dicPrefix="stream",r.dicSuffix="endstream",r.clonedObject2=null,r.bCompress=!0,void 0!==t||void 0!==i?(r.dataStream2=[],r.dataStream2=i,r.bCompress2=!1):(r.dataStream2=[],r.bCompress2=!0),r}return an(t,e),Object.defineProperty(t.prototype,"internalStream",{get:function(){return this.dataStream2},set:function(e){this.dataStream2=[],this.dataStream2=e,this.modify()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"compress",{get:function(){return this.bCompress},set:function(e){this.bCompress=e,this.modify()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.dataStream2},set:function(e){this.dataStream2=[],this.dataStream2=e,this.modify()},enumerable:!0,configurable:!0}),t.prototype.clearStream=function(){this.internalStream=[],this.items.containsKey(this.dictionaryProperties.filter)&&this.remove(this.dictionaryProperties.filter),this.bCompress=!0,this.modify()},t.prototype.write=function(e){if(null==e)throw new Error("ArgumentNullException:text");if(e.length<=0)throw new Error("ArgumentException: Can not write an empty string, text");this.dataStream2.push(e),this.modify()},t.prototype.writeBytes=function(e){if(null===e)throw new Error("ArgumentNullException:data");if(e.length<=0)throw new Error("ArgumentException: Can not write an empty bytes, data");for(var t="",i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);this.dataStream2.push(t),this.modify()},t.prototype.onCmapBeginSave=function(){this.cmapBeginSave.sender.cmapBeginSave()},t.prototype.onFontProgramBeginSave=function(){this.fontProgramBeginSave.sender.fontProgramBeginSave()},t.prototype.compressContent=function(e,t){if(this.bCompress){for(var i=[],r=0;r<e.length;r++)i.push(e.charCodeAt(r));var n=new Uint8Array(i),o=new nn;o.write(n,0,n.length),o.close(),e=o.getCompressedString,this.addFilter(this.dictionaryProperties.flatedecode)}return e},t.prototype.addFilter=function(e){var t=this.items.getValue(this.dictionaryProperties.filter);t instanceof vn&&(t=t.object);var i=t,r=t;null!=r&&((i=new qr).insert(0,r),this.items.setValue(this.dictionaryProperties.filter,i)),r=new Ur(e),null==i?this.items.setValue(this.dictionaryProperties.filter,r):i.insert(0,r)},t.prototype.save=function(t){void 0!==this.cmapBeginSave&&this.onCmapBeginSave(),void 0!==this.fontProgramBeginSave&&this.onFontProgramBeginSave();for(var i="",r=0;r<this.data.length;r++)i+=this.data[r];i.length>1&&!this.isResource&&(i="q\r\n"+i+"Q\r\n");var n=(i=this.compressContent(i,t)).length;this.items.setValue(this.dictionaryProperties.length,new Hr(n)),e.prototype.save.call(this,t,!1),t.write(this.dicPrefix),t.write(Qr.newLine),i.length>0&&t.write(i),t.write(Qr.newLine),t.write(this.dicSuffix),t.write(Qr.newLine)},t.bytesToString=function(e){for(var t="",i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return t},t}(Rr),hn=function(e){this.sender=e},un=function(e){this.sender=e};!function(e){var t,i;(t=e.ForceEncoding||(e.ForceEncoding={}))[t.None=0]="None",t[t.Ascii=1]="Ascii",t[t.Unicode=2]="Unicode",function(e){e[e.StringValue=0]="StringValue",e[e.ByteBuffer=1]="ByteBuffer"}(i||(i={}))}(Kr||(Kr={}));var ln,pn,dn,gn,fn,Mn,mn,yn,Nn,jn,Dn,In,Sn,bn=function(){function e(e){if(this.bHex=!1,this.position1=-1,this.clonedObject1=null,this.bDecrypted=!1,this.isParentDecrypted=!1,this.isPacked=!1,this.isFormField=!1,this.isColorSpace=!1,this.isHexString=!0,void 0===e)this.bHex=!1;else if(!(e.length>0&&"0xfeff"===e[0])){this.stringValue=e,this.data=[];for(var t=0;t<e.length;++t)this.data.push(e.charCodeAt(t))}}return Object.defineProperty(e.prototype,"hex",{get:function(){return this.bHex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.stringValue},set:function(e){this.stringValue=e,this.data=null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.status1},set:function(e){this.status1=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSaving",{get:function(){return this.isSaving1},set:function(e){this.isSaving1=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"objectCollectionIndex",{get:function(){return this.index1},set:function(e){this.index1=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clonedObject",{get:function(){return this.clonedObject1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.position1},set:function(e){this.position1=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CrossTable",{get:function(){return this.crossTable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"converted",{get:function(){return this.bConverted},set:function(e){this.bConverted=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"encode",{get:function(){return this.bForceEncoding},set:function(e){this.bForceEncoding=e},enumerable:!0,configurable:!0}),e.bytesToHex=function(e){if(null==e)return"";return""},e.prototype.save=function(t){if(null===t)throw new Error("ArgumentNullException : writer");void 0!==this.encode&&this.encode===Kr.ForceEncoding.Ascii?t.write(this.pdfEncode()):t.write(e.stringMark[0]+this.value+e.stringMark[1])},e.prototype.pdfEncode=function(){var t="";if(void 0!==this.encode&&this.encode===Kr.ForceEncoding.Ascii){for(var i=this.escapeSymbols(this.value),r=0;r<i.length;r++)t+=String.fromCharCode(i[r]);t=e.stringMark[0]+t+e.stringMark[1]}else t=this.value;return t},e.prototype.escapeSymbols=function(e){for(var t=[],i=0;i<e.length;i++){var r=e.charCodeAt(i);switch(r){case 40:case 41:case 92:t.push(92),t.push(r);break;case 13:t.push(92),t.push(114);break;default:t.push(r)}}return t},e.prototype.clone=function(t){if(null!==this.clonedObject1&&this.clonedObject1.CrossTable===t)return this.clonedObject1;this.clonedObject1=null;var i=new e(this.stringValue);return i.bHex=this.bHex,i.crossTable=t,i.isColorSpace=this.isColorSpace,this.clonedObject1=i,i},e.toUnicodeArray=function(e,t){if(null==e)throw new Error("Argument Null Exception : value");for(var i=[],r=0;r<e.length;r++){var n=e.charCodeAt(r);i.push(n/256>>>0),i.push(255&n)}return i},e.byteToString=function(e){if(null==e)throw new Error("Argument Null Exception : stream");for(var t="",i=0;i<e.length;++i)t+=String.fromCharCode(e[i]);return t},e.stringMark="()",e.hexStringMark="<>",e.hexFormatPattern="{0:X2}",e}(),zn=function(){function e(e,t){this.index3=-1,this.position3=-1,this.objNumber=0,this.genNumber=0,"number"==typeof e&&"number"==typeof t?(this.objNumber=e,this.genNumber=t):(this.objNumber=Number(e),this.genNumber=Number(t))}return Object.defineProperty(e.prototype,"status",{get:function(){return this.status3},set:function(e){this.status3=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSaving",{get:function(){return this.isSaving3},set:function(e){this.isSaving3=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"objectCollectionIndex",{get:function(){return this.index3},set:function(e){this.index3=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.position3},set:function(e){this.position3=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.save=function(e){e.write(this.toString())},e.prototype.toString=function(){return this.objNumber.toString()+" "+this.genNumber.toString()+" R"},e.prototype.clone=function(e){return null},e}(),vn=function(){function e(e,t){this.index4=-1,this.position4=-1,this.objectIndex=-1,this.dictionaryProperties=new Yr,this.initialize(e)}return Object.defineProperty(e.prototype,"status",{get:function(){return this.status4},set:function(e){this.status4=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSaving",{get:function(){return this.isSaving4},set:function(e){this.isSaving4=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"objectCollectionIndex",{get:function(){return this.index4},set:function(e){this.index4=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.position4},set:function(e){this.position4=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"object",{get:function(){return this.primitiveObject},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reference",{get:function(){return this.pdfReference},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.objectIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.primitiveObject},enumerable:!0,configurable:!0}),e.prototype.initialize=function(e){if(e instanceof qr||e instanceof Rr||e instanceof Ur||e instanceof Hr||e instanceof cn||e instanceof zn||e instanceof bn)this.primitiveObject=e;else{var t=e;this.initialize(t.element)}},e.prototype.save=function(e){e.position;var t=e.document.crossTable;this.object.isSaving=!0;t.getReference(this.object).save(e)},e.prototype.clone=function(e){return null},e}();!function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(ln||(ln={})),function(e){e[e.Top=0]="Top",e[e.Middle=1]="Middle",e[e.Bottom=2]="Bottom"}(pn||(pn={})),function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right",e[e.Justify=3]="Justify"}(dn||(dn={})),function(e){e[e.Fill=0]="Fill",e[e.Stroke=1]="Stroke",e[e.FillStroke=2]="FillStroke",e[e.None=3]="None",e[e.ClipFlag=4]="ClipFlag",e[e.ClipFill=4]="ClipFill",e[e.ClipStroke=5]="ClipStroke",e[e.ClipFillStroke=6]="ClipFillStroke",e[e.Clip=7]="Clip"}(gn||(gn={})),function(e){e[e.Miter=0]="Miter",e[e.Round=1]="Round",e[e.Bevel=2]="Bevel"}(fn||(fn={})),function(e){e[e.Flat=0]="Flat",e[e.Round=1]="Round",e[e.Square=2]="Square"}(Mn||(Mn={})),function(e){e[e.Solid=0]="Solid",e[e.Dash=1]="Dash",e[e.Dot=2]="Dot",e[e.DashDot=3]="DashDot",e[e.DashDotDot=4]="DashDotDot",e[e.Custom=5]="Custom"}(mn||(mn={})),function(e){e[e.Winding=0]="Winding",e[e.Alternate=1]="Alternate"}(yn||(yn={})),function(e){e[e.Rgb=0]="Rgb",e[e.Cmyk=1]="Cmyk",e[e.GrayScale=2]="GrayScale",e[e.Indexed=3]="Indexed"}(Nn||(Nn={})),function(e){e[e.Normal=0]="Normal",e[e.Multiply=1]="Multiply",e[e.Screen=2]="Screen",e[e.Overlay=3]="Overlay",e[e.Darken=4]="Darken",e[e.Lighten=5]="Lighten",e[e.ColorDodge=6]="ColorDodge",e[e.ColorBurn=7]="ColorBurn",e[e.HardLight=8]="HardLight",e[e.SoftLight=9]="SoftLight",e[e.Difference=10]="Difference",e[e.Exclusion=11]="Exclusion",e[e.Hue=12]="Hue",e[e.Saturation=13]="Saturation",e[e.Color=14]="Color",e[e.Luminosity=15]="Luminosity"}(jn||(jn={})),function(e){e[e.Centimeter=0]="Centimeter",e[e.Pica=1]="Pica",e[e.Pixel=2]="Pixel",e[e.Point=3]="Point",e[e.Inch=4]="Inch",e[e.Document=5]="Document",e[e.Millimeter=6]="Millimeter"}(Dn||(Dn={})),function(e){e[e.Fit=0]="Fit",e[e.Center=1]="Center",e[e.Stretch=2]="Stretch",e[e.Tile=3]="Tile"}(In||(In={})),function(e){e[e.None=0]="None",e[e.LeftToRight=1]="LeftToRight",e[e.RightToLeft=2]="RightToLeft"}(Sn||(Sn={}));var wn,On,Tn,Ln,An,Cn,xn,En,kn,Pn,Un,Qn,Yn,Rn=function(){function e(t,i,r,n){void 0===t?void 0!==i&&void 0!==r&&void 0!==n?this.assignRGB(i,r,n):this.filled=!1:t instanceof e?(this.redColor=t.r,this.greenColor=t.g,this.blueColor=t.b,this.grayColor=t.gray,this.alpha=t.alpha,this.filled=0!==this.alpha):"number"==typeof t&&void 0===i&&void 0===r&&void 0===n?(t<0&&(t=0),t>1&&(t=1),this.redColor=t*e.maxColourChannelValue,this.greenColor=t*e.maxColourChannelValue,this.blueColor=t*e.maxColourChannelValue,this.cyanColor=t,this.magentaColor=t,this.yellowColor=t,this.blackColor=t,this.grayColor=t,this.alpha=e.maxColourChannelValue,this.filled=!0):void 0===n?this.assignRGB(t,i,r):this.assignRGB(i,r,n,t)}return e.prototype.assignRGB=function(t,i,r,n){void 0===t||void 0===i||void 0===r?this.filled=!1:(this.cyanColor=0,this.magentaColor=0,this.yellowColor=0,this.blackColor=0,this.grayColor=0,this.redColor=t,this.greenColor=i,this.blueColor=r,this.alpha=void 0===n?e.maxColourChannelValue:n,this.filled=!0,this.assignCMYK(t,i,r))},e.prototype.assignCMYK=function(t,i,r){var n=t/e.maxColourChannelValue,o=i/e.maxColourChannelValue,s=r/e.maxColourChannelValue,a=Hr.min(1-n,1-o,1-s),c=1===a?0:(1-n-a)/(1-a),h=1===a?0:(1-o-a)/(1-a),u=1===a?0:(1-s-a)/(1-a);this.blackColor=a,this.cyanColor=c,this.magentaColor=h,this.yellowColor=u},Object.defineProperty(e.prototype,"r",{get:function(){return this.redColor},set:function(e){this.redColor=e,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"red",{get:function(){return this.r/e.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this.blueColor},set:function(e){this.blueColor=e,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blue",{get:function(){return this.b/e.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"c",{get:function(){return this.cyanColor},set:function(e){this.cyanColor=e<0?0:e>1?1:e,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"k",{get:function(){return this.blackColor},set:function(e){this.blackColor=e<0?0:e>1?1:e,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"m",{get:function(){return this.magentaColor},set:function(e){this.magentaColor=e<0?0:e>1?1:e,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.yellowColor},set:function(e){this.yellowColor=e<0?0:e>1?1:e,this.assignRGB(this.cyanColor,this.magentaColor,this.yellowColor,this.blackColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"g",{get:function(){return this.greenColor},set:function(e){this.greenColor=e,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"green",{get:function(){return this.g/e.maxColourChannelValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gray",{get:function(){return(this.redColor+this.greenColor+this.blueColor)/(3*e.maxColourChannelValue)},set:function(t){this.grayColor=t<0?0:t>1?1:t,this.r=this.grayColor*e.maxColourChannelValue,this.g=this.grayColor*e.maxColourChannelValue,this.b=this.grayColor*e.maxColourChannelValue,this.assignCMYK(this.redColor,this.greenColor,this.blueColor),this.filled=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return!this.filled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"a",{get:function(){return this.alpha},set:function(e){this.alpha=e<0?0:e,this.filled=!0},enumerable:!0,configurable:!0}),e.prototype.toString=function(e,t){if(this.isEmpty)return"";var i="";switch(e){case Nn.Rgb:i=this.rgbToString(t);break;case Nn.GrayScale:i=this.grayScaleToString(t);break;case Nn.Cmyk:i=this.cmykToString(t)}return i},e.prototype.grayScaleToString=function(t){var i=this.gray,r="",n=null;return null==(n=t?e.grayStringsSroke.containsKey(i)?e.grayStringsSroke.getValue(i):null:e.grayStringsFill.containsKey(i)?e.grayStringsFill.getValue(i):null)?t&&(r=i.toString()+" G",e.grayStringsSroke.setValue(i,r)):r=n.toString(),r+Qr.newLine},e.prototype.rgbToString=function(t){var i=this.r,r=this.g,n=this.b,o=(i<<16)+(r<<8)+n;t&&(o+=1<<24);var s="",a=null;if(e.rgbStrings.containsKey(o)&&(a=e.rgbStrings.getValue(o)),null==a){var c=i/e.maxColourChannelValue,h=r/e.maxColourChannelValue,u=n/e.maxColourChannelValue;s=t?c.toString()+" "+h.toString()+" "+u.toString()+" RG":c.toString()+" "+h.toString()+" "+u.toString()+" rg",e.rgbStrings.setValue(o,s)}else s=a.toString();return s+Qr.newLine},e.prototype.cmykToString=function(e){var t=this.c,i=this.m,r=this.y,n=this.b;return t.toString()+" "+i.toString()+" "+r.toString()+" "+n.toString()+" K"+Qr.newLine},e.prototype.toArray=function(e){var t=new qr;if(e===Nn.Rgb)t.add(new Hr(this.red)),t.add(new Hr(this.green)),t.add(new Hr(this.blue));return t},e.rgbStrings=new Pr,e.grayStringsSroke=new Pr,e.grayStringsFill=new Pr,e.maxColourChannelValue=255,e}(),Vn=function(e,t){void 0===e?(this.x=0,this.y=0):(this.x=null!==e?e:0,this.y=null!==t?t:0)},Fn=function(e,t){void 0===t?(this.height=0,this.width=0):(this.height=null!==t?t:0,this.width=null!==e?e:0)},Bn=function(e,t,i,r){if(typeof e==typeof e&&void 0===e)this.x=0,this.y=0,this.height=0,this.width=0;else if(e instanceof Vn&&t instanceof Fn&&void 0===i){var n=e;this.x=n.x,this.y=n.y;var o=t;this.height=o.height,this.width=o.width}else{var s=e,a=t,c=i,h=r;this.x=s,this.y=a,this.height=h,this.width=c}},Wn=function(){function e(e,t,i,r){this.left=e,this.top=t,this.right=i,this.bottom=r}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topLeft",{get:function(){return new Vn(this.left,this.top)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return new Fn(this.width,this.height)},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.topLeft+"x"+this.size},e}(),Gn=function(){function e(){}return e.prototype.clone=function(){return this},e}(),Hn=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),qn=function(e){function t(t){var i=e.call(this)||this;return i.pdfColor=t,i}return Hn(t,e),Object.defineProperty(t.prototype,"color",{get:function(){return this.pdfColor},set:function(e){this.pdfColor=e},enumerable:!0,configurable:!0}),t.prototype.monitorChanges=function(e,t,i,r,n){if(null==t)throw new Error("ArgumentNullException:streamWriter");var o=!1;return o=!0,t.setColorAndSpace(this.pdfColor,n,!1),o},t.prototype.resetChanges=function(e){e.setColorAndSpace(new Rn(0,0,0),Nn.Rgb,!1)},t}(Gn);!function(e){e[e.Regular=0]="Regular",e[e.Bold=1]="Bold",e[e.Italic=2]="Italic",e[e.Underline=4]="Underline",e[e.Strikeout=8]="Strikeout"}(wn||(wn={})),function(e){e[e.Helvetica=0]="Helvetica",e[e.Courier=1]="Courier",e[e.TimesRoman=2]="TimesRoman",e[e.Symbol=3]="Symbol",e[e.ZapfDingbats=4]="ZapfDingbats"}(On||(On={})),function(e){e[e.Standard=0]="Standard",e[e.TrueType=1]="TrueType",e[e.TrueTypeEmbedded=2]="TrueTypeEmbedded"}(Tn||(Tn={})),function(e){e[e.None=0]="None",e[e.Word=1]="Word",e[e.WordOnly=2]="WordOnly",e[e.Character=3]="Character"}(Ln||(Ln={})),function(e){e[e.None=0]="None",e[e.SuperScript=1]="SuperScript",e[e.SubScript=2]="SubScript"}(An||(An={})),function(e){e[e.Unknown=0]="Unknown",e[e.StandardEncoding=1]="StandardEncoding",e[e.MacRomanEncoding=2]="MacRomanEncoding",e[e.MacExpertEncoding=3]="MacExpertEncoding",e[e.WinAnsiEncoding=4]="WinAnsiEncoding",e[e.PdfDocEncoding=5]="PdfDocEncoding",e[e.IdentityH=6]="IdentityH"}(Cn||(Cn={})),function(e){e[e.Apple=0]="Apple",e[e.Microsoft=4]="Microsoft",e[e.Trimmed=6]="Trimmed"}(xn||(xn={})),function(e){e[e.Unknown=0]="Unknown",e[e.Symbol=1]="Symbol",e[e.Unicode=2]="Unicode",e[e.Macintosh=3]="Macintosh"}(En||(En={})),function(e){e[e.AppleUnicode=0]="AppleUnicode",e[e.Macintosh=1]="Macintosh",e[e.Iso=2]="Iso",e[e.Microsoft=3]="Microsoft"}(kn||(kn={})),function(e){e[e.Undefined=0]="Undefined",e[e.Unicode=1]="Unicode"}(Pn||(Pn={})),function(e){e[e.Roman=0]="Roman",e[e.Japanese=1]="Japanese",e[e.Chinese=2]="Chinese"}(Un||(Un={})),function(e){e[e.FixedPitch=1]="FixedPitch",e[e.Serif=2]="Serif",e[e.Symbolic=4]="Symbolic",e[e.Script=8]="Script",e[e.Nonsymbolic=32]="Nonsymbolic",e[e.Italic=64]="Italic",e[e.ForceBold=262144]="ForceBold"}(Qn||(Qn={})),function(e){e[e.Arg1And2AreWords=1]="Arg1And2AreWords",e[e.ArgsAreXyValues=2]="ArgsAreXyValues",e[e.RoundXyToGrid=4]="RoundXyToGrid",e[e.WeHaveScale=8]="WeHaveScale",e[e.Reserved=16]="Reserved",e[e.MoreComponents=32]="MoreComponents",e[e.WeHaveAnXyScale=64]="WeHaveAnXyScale",e[e.WeHaveTwoByTwo=128]="WeHaveTwoByTwo",e[e.WeHaveInstructions=256]="WeHaveInstructions",e[e.UseMyMetrics=512]="UseMyMetrics"}(Yn||(Yn={}));var _n,Jn=function(){function e(e,t){this.scalingFactor=100,this.wordWrapType=Ln.Word,this.internalLineLimit=!0,this.wordWrapType=Ln.Word,void 0!==e&&"string"!=typeof e&&(this.textAlignment=e),void 0!==t&&(this.verticalAlignment=t)}return Object.defineProperty(e.prototype,"alignment",{get:function(){return this.textAlignment},set:function(e){this.textAlignment=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textDirection",{get:function(){return this.direction},set:function(e){this.direction=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineAlignment",{get:function(){return void 0===this.verticalAlignment||null==this.verticalAlignment?pn.Top:this.verticalAlignment},set:function(e){this.verticalAlignment=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightToLeft",{get:function(){return void 0!==this.isRightToLeft&&null!=this.isRightToLeft&&this.isRightToLeft},set:function(e){this.isRightToLeft=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"characterSpacing",{get:function(){return void 0===this.internalCharacterSpacing||null==this.internalCharacterSpacing?0:this.internalCharacterSpacing},set:function(e){this.internalCharacterSpacing=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wordSpacing",{get:function(){return void 0===this.internalWordSpacing||null==this.internalWordSpacing?0:this.internalWordSpacing},set:function(e){this.internalWordSpacing=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineSpacing",{get:function(){return void 0===this.leading||null==this.leading?0:this.leading},set:function(e){this.leading=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clipPath",{get:function(){return void 0!==this.clip&&null!=this.clip&&this.clip},set:function(e){this.clip=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subSuperScript",{get:function(){return void 0===this.pdfSubSuperScript||null==this.pdfSubSuperScript?An.None:this.pdfSubSuperScript},set:function(e){this.pdfSubSuperScript=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paragraphIndent",{get:function(){return void 0===this.internalParagraphIndent||null==this.internalParagraphIndent?0:this.internalParagraphIndent},set:function(e){this.internalParagraphIndent=e,this.firstLineIndent=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineLimit",{get:function(){return this.internalLineLimit},set:function(e){this.internalLineLimit=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"measureTrailingSpaces",{get:function(){return void 0!==this.trailingSpaces&&null!=this.trailingSpaces&&this.trailingSpaces},set:function(e){this.trailingSpaces=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noClip",{get:function(){return void 0!==this.isNoClip&&null!=this.isNoClip&&this.isNoClip},set:function(e){this.isNoClip=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wordWrap",{get:function(){return this.wordWrapType},set:function(e){this.wordWrapType=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalScalingFactor",{get:function(){return this.scalingFactor},set:function(e){if(e<=0)throw new Error("ArgumentOutOfRangeException:The scaling factor cant be less of equal to zero, ScalingFactor");this.scalingFactor=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstLineIndent",{get:function(){return void 0===this.initialLineIndent||null==this.initialLineIndent?0:this.initialLineIndent},set:function(e){this.initialLineIndent=e},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return this},e}(),Zn=function(){function e(e){if(this.currentPosition=0,null==e)throw new Error("ArgumentNullException:text");this.text=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this.text.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this.currentPosition===this.text.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.currentPosition},set:function(e){this.currentPosition=e},enumerable:!0,configurable:!0}),e.getCharsCount=function(e,t){if("string"==typeof t){if(null==e)throw new Error("ArgumentNullException:wholeText");for(var i=0,r=0;-1!==(r=e.indexOf(t,r));)i++,r++;return i}if(null==e)throw new Error("ArgumentNullException:text");if(null==t)throw new Error("ArgumentNullException:symbols");for(var n=0,o=0,s=e.length;o<s;o++){var a=e[o];this.contains(t,a)&&n++}return n},e.prototype.readLine=function(){for(var e=this.currentPosition;e<this.length;){var t=this.text[e];switch(t){case"\r":case"\n":var i=this.text.substr(this.currentPosition,e-this.currentPosition);return this.currentPosition=e+1,"\r"===t&&this.currentPosition<this.length&&"\n"===this.text[this.currentPosition]&&this.currentPosition++,i}e++}if(e>this.currentPosition){var r=this.text.substr(this.currentPosition,e-this.currentPosition);return this.currentPosition=e,r}return null},e.prototype.peekLine=function(){var e=this.currentPosition,t=this.readLine();return this.currentPosition=e,t},e.prototype.readWord=function(){for(var e=this.currentPosition;e<this.length;){var t=this.text[e];switch(t){case"\r":case"\n":var i=this.text.substr(this.currentPosition,e-this.currentPosition);return this.currentPosition=e+1,"\r"===t&&this.currentPosition<this.length&&"\n"===this.text[this.currentPosition]&&this.currentPosition++,i;case" ":case"\t":e===this.currentPosition&&e++;var r=this.text.substr(this.currentPosition,e-this.currentPosition);return this.currentPosition=e,r}e++}if(e>this.currentPosition){var n=this.text.substr(this.currentPosition,e-this.currentPosition);return this.currentPosition=e,n}return null},e.prototype.peekWord=function(){var e=this.currentPosition,t=this.readWord();return this.currentPosition=e,t},e.prototype.read=function(e){if(void 0===e){var t="0";return this.end||(t=this.text[this.currentPosition],this.currentPosition++),t}for(var i=0,r="";!this.end&&i<e;){r+=t=this.read(),i++}return r},e.prototype.peek=function(){var e="0";return this.end||(e=this.text[this.currentPosition]),e},e.prototype.close=function(){this.text=null},e.prototype.readToEnd=function(){var e;return e=0===this.currentPosition?this.text:this.text.substr(this.currentPosition,this.length-this.currentPosition),this.currentPosition=this.length,e},e.contains=function(e,t){for(var i=!1,r=0;r<e.length;r++)if(e[r]===t){i=!0;break}return i},e.whiteSpace=" ",e.tab="\t",e.spaces=[e.whiteSpace,e.tab],e.whiteSpacePattern="^[ \t]+$",e}(),Kn=function(){function e(){this.isOverloadWithPosition=!1}return e.prototype.layout=function(e,t,i,r,n,o,s){if(r instanceof Bn){this.initialize(e,t,i,r,n),this.isOverloadWithPosition=o,this.clientSize=s;var a=this.doLayout();return this.clear(),a}this.initialize(e,t,i,r),this.isOverloadWithPosition=n,this.clientSize=o;a=this.doLayout();return this.clear(),a},e.prototype.initialize=function(e,t,i,r,n){if("number"==typeof n){if(null==e)throw new Error("ArgumentNullException:text");if(null==t)throw new Error("ArgumentNullException:font");this.text=e,this.font=t,this.format=i,this.size=new Fn(r.width,r.height),this.rectangle=r,this.pageHeight=n,this.reader=new Zn(e)}else this.initialize(e,t,i,new Bn(new Vn(0,0),r),0)},e.prototype.clear=function(){this.font=null,this.format=null,this.reader.close(),this.reader=null,this.text=null},e.prototype.doLayout=function(){for(var e=new Xn,t=new Xn,i=[],r=this.reader.peekLine(),n=this.getLineIndent(!0);null!=r;){if(null!==(t=this.layoutLine(r,n))||void 0!==t){var o=0,s=this.copyToResult(e,t,i,o),a=s.success;if(o=s.numInserted,!a){this.reader.read(o);break}}this.reader.readLine(),r=this.reader.peekLine(),n=this.getLineIndent(!1)}return this.finalizeResult(e,i),e},e.prototype.getLineIndent=function(e){var t=0;return null!=this.format&&(t=e?this.format.firstLineIndent:this.format.paragraphIndent,t=this.size.width>0?Math.min(this.size.width,t):t),t},e.prototype.getLineHeight=function(){var e=this.font.height;return null!=this.format&&0!==this.format.lineSpacing&&(e=this.format.lineSpacing+this.font.height),e},e.prototype.getLineWidth=function(e){return this.font.getLineWidth(e,this.format)},e.prototype.layoutLine=function(e,t){var i=new Xn;i.layoutLineHeight=this.getLineHeight();var r=[],n=this.size.width,o=this.getLineWidth(e)+t,s=_n.FirstParagraphLine,a=!0;if(n<=0||Math.round(o)<=Math.round(n))this.addToLineResult(i,r,e,o,_n.NewLineBreak|s);else{var c="",h="";o=t;var u=t,l=new Zn(e),p=l.peekWord();for(p.length!==l.length&&" "===p&&(h+=p,c+=p,l.position+=1,p=l.peekWord());null!=p;){h+=p;var d=this.getLineWidth(h.toString())+u;if(" "===h.toString()&&(h="",d=0),d>n){if(this.getWrapType()===Ln.None)break;if(h.length===p.length){if(this.getWrapType()===Ln.WordOnly){i.textRemainder=e.substring(l.position);break}if(1===h.length){c+=p;break}a=!1,h="",p=l.peek().toString();continue}this.getLineWidth(p.toString())>n?this.format.wordWrap=Ln.Character:void 0!==this.format&&null!==this.format&&(this.format.wordWrap=Ln.Word),this.getWrapType()===Ln.Character&&a?(a=!1,h="",h+=c.toString(),p=l.peek().toString()):(" "!==(g=c.toString())&&this.addToLineResult(i,r,g,o,_n.LayoutBreak|s),this.isOverloadWithPosition&&(n=this.clientSize.width),h="",c="",o=0,u=0,d=0,s=_n.None,p=a?p:l.peekWord(),a=!0)}else c+=p,o=d,a?(l.readWord(),p=l.peekWord()):(l.read(),p=l.peek().toString())}if(c.length>0){var g=c.toString();this.addToLineResult(i,r,g,o,_n.NewLineBreak|_n.LastParagraphLine)}l.close()}i.layoutLines=[];for(var f=0;f<r.length;f++)i.layoutLines.push(r[f]);return r=[],i},e.prototype.addToLineResult=function(e,t,i,r,n){var o=new $n;o.text=i,o.width=r,o.lineType=n,t.push(o);var s=e.actualSize;s.height+=this.getLineHeight(),s.width=Math.max(s.width,r),e.size=s},e.prototype.copyToResult=function(e,t,i,r){var n=!0,o=null!=this.format&&!this.format.lineLimit,s=e.actualSize.height,a=this.size.height;if(this.pageHeight>0&&a+this.rectangle.y>this.pageHeight&&(a=this.rectangle.y-this.pageHeight,a=Math.max(a,-a)),r=0,null!=t.lines)for(var c=0,h=t.lines.length;c<h;c++){var u=s+t.lineHeight;if(!(u<=a||a<=0||o)){n=!1;break}var l=t.lines[c];r+=l.text.length,l=this.trimLine(l,0===i.length),i.push(l);var p=e.actualSize;p.width=Math.max(p.width,l.width),e.size=p,s=u}if(s!=e.size.height){var d=e.actualSize;d.height=s,e.size=d}return{success:n,numInserted:r}},e.prototype.finalizeResult=function(e,t){e.layoutLines=[];for(var i=0;i<t.length;i++)e.layoutLines.push(t[i]);e.layoutLineHeight=this.getLineHeight(),this.reader.end||(e.textRemainder=this.reader.readToEnd()),t=[]},e.prototype.trimLine=function(e,t){var i=e.text,r=e.width;e.lineType,_n.FirstParagraphLine;null==this.format||this.format.rightToLeft;return Zn.spaces,(i=i.trim()).length!==e.text.length&&(r=this.getLineWidth(i),(e.lineType&_n.FirstParagraphLine)>0&&(r+=this.getLineIndent(t))),e.text=i,e.width=r,e},e.prototype.getWrapType=function(){return null!=this.format?this.format.wordWrap:Ln.Word},e}(),Xn=function(){function e(){}return Object.defineProperty(e.prototype,"remainder",{get:function(){return this.textRemainder},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actualSize",{get:function(){return void 0===this.size&&(this.size=new Fn(0,0)),this.size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lines",{get:function(){return this.layoutLines},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineHeight",{get:function(){return this.layoutLineHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return null==this.layoutLines||0===this.layoutLines.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.empty?0:this.layoutLines.length},enumerable:!0,configurable:!0}),e}(),$n=function(){function e(){}return Object.defineProperty(e.prototype,"lineType",{get:function(){return this.type},set:function(e){this.type=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.content},set:function(e){this.content=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.lineWidth},set:function(e){this.lineWidth=e},enumerable:!0,configurable:!0}),e}();!function(e){e[e.None=0]="None",e[e.NewLineBreak=1]="NewLineBreak",e[e.LayoutBreak=2]="LayoutBreak",e[e.FirstParagraphLine=4]="FirstParagraphLine",e[e.LastParagraphLine=8]="LastParagraphLine"}(_n||(_n={}));var eo,to=function(){function e(e,t){this.fontStyle=wn.Regular,"number"==typeof e&&void 0===t?this.fontSize=e:(this.fontSize=e,this.setStyle(t))}return Object.defineProperty(e.prototype,"name",{get:function(){return this.metrics.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.fontSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.metrics.getHeight(null)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this.fontStyle},set:function(e){this.fontStyle=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bold",{get:function(){return(this.style&wn.Bold)>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"italic",{get:function(){return(this.style&wn.Italic)>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strikeout",{get:function(){return(this.style&wn.Strikeout)>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"underline",{get:function(){return(this.style&wn.Underline)>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metrics",{get:function(){return this.fontMetrics},set:function(e){this.fontMetrics=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.pdfFontInternals},enumerable:!0,configurable:!0}),e.prototype.measureString=function(e,t,i,r,n){if("string"==typeof e&&void 0===t)return this.measureString(e,null);if("string"==typeof e&&(t instanceof Jn||null==t)&&void 0===i&&void 0===r){var o=t;return this.measureString(e,o,0,0)}if("string"==typeof e&&(t instanceof Jn||null==t)&&"number"==typeof i&&"number"==typeof r){o=t;return this.measureString(e,0,o,i,r)}if("string"==typeof e&&"number"==typeof t&&(i instanceof Jn||null==i)&&"number"==typeof r&&"number"==typeof n){var s=new Fn(t,0),a=i;return this.measureString(e,s,a,r,n)}if(null==e)throw Error('ArgumentNullException("text")');o=t,a=i;var c=(new Kn).layout(e,this,a,o,!1,new Fn(0,0));return r=e.length,n=c.empty?0:c.lines.length,c.actualSize},e.prototype.equalsTo=function(e){return this.equalsToFont(e)},e.prototype.getInternals=function(){return this.pdfFontInternals},e.prototype.setInternals=function(e){if(null==e)throw new Error("ArgumentNullException:internals");this.pdfFontInternals=e},e.prototype.setStyle=function(e){this.fontStyle=e},e.prototype.applyFormatSettings=function(e,t,i){var r=i;if(null!=t&&i>0&&(0!==t.characterSpacing&&(r+=(e.length-1)*t.characterSpacing),0!==t.wordSpacing)){var n=Zn.spaces;r+=Zn.getCharsCount(e,n)*t.wordSpacing}return r},e.charSizeMultiplier=.001,e.syncObject=new Object,e}(),io=function(){function e(e){this.streamWriter=e}return Object.defineProperty(e.prototype,"document",{get:function(){return this.pdfDocument},set:function(e){this.pdfDocument=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.streamWriter.buffer.size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.streamWriter.buffer.size},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stream",{get:function(){return this.streamWriter},enumerable:!0,configurable:!0}),e.prototype.write=function(e){var t=e;this.streamWriter.write(t)},e}();!function(e){e[e.None=0]="None",e[e.Registered=1]="Registered"}(eo||(eo={}));var ro,no=function(){function e(){this.objectCollections=[],this.mainObjectCollection=new Pr,this.primitiveObjectCollection=new Pr}return Object.defineProperty(e.prototype,"count",{get:function(){return this.objectCollections.length},enumerable:!0,configurable:!0}),e.prototype.items=function(e){return this.objectCollections[e]},Object.defineProperty(e.prototype,"outIsNew",{get:function(){return this.isNew},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=new oo(e);this.objectCollections.push(t),this.primitiveObjectCollection.containsKey(e)||this.primitiveObjectCollection.setValue(e,this.objectCollections.length-1),e.position=this.index=this.objectCollections.length-1,e.status=eo.Registered},e.prototype.lookFor=function(e){var t=-1;if(-1!==e.position)return e.position;if(this.primitiveObjectCollection.containsKey(e)&&this.count===this.primitiveObjectCollection.size())t=this.primitiveObjectCollection.getValue(e);else for(var i=this.count-1;i>=0;i--){if(this.objectCollections[i].object===e){t=i;break}}return t},e.prototype.getReference=function(e,t){return this.index=this.lookFor(e),this.isNew=!1,{reference:this.objectCollections[this.index].reference,wasNew:t}},e.prototype.trySetReference=function(e,t,i){return this.index=this.lookFor(e),this.objectCollections[this.index].setReference(t),!0},e.prototype.destroy=function(){for(var e=0,t=this.objectCollections;e<t.length;e++){var i=t[e];void 0!==i&&(i.pdfObject.position=-1,i.pdfObject.isSaving=void 0,i.pdfObject.objectCollectionIndex=void 0,i.pdfObject.position=void 0)}this.objectCollections=[],this.mainObjectCollection=new Pr,this.primitiveObjectCollection=new Pr},e}(),oo=function(){function e(e,t){this.pdfObject=e,this.pdfReference=t}return Object.defineProperty(e.prototype,"object",{get:function(){return this.pdfObject},set:function(e){this.pdfObject=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reference",{get:function(){return this.pdfReference},enumerable:!0,configurable:!0}),e.prototype.setReference=function(e){this.pdfReference=e},e}(),so=function(){function e(e){this.isStreamCopied=!1,e instanceof ta&&(this.document=e)}return Object.defineProperty(e.prototype,"pdfObjects",{get:function(){return this.objects},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"crossTable",{get:function(){return this.pdfCrossTable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentSavingObj",{get:function(){return this.currentSavingObject},set:function(e){this.currentSavingObject=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"catalog",{get:function(){return this.pdfCatalog},set:function(e){this.pdfCatalog=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewerPreferences",{get:function(){return this.pdfCatalog.viewerPreferences},enumerable:!0,configurable:!0}),e.prototype.setMainObjectCollection=function(e){this.objects=e},e.prototype.setCrossTable=function(e){this.pdfCrossTable=e},e.prototype.setCatalog=function(e){this.pdfCatalog=e},e.prototype.save=function(e){var t=this,i=new Jr(!0),r=new Xr(i);if(void 0===e){var n=new Jr(!0),o=new Xr(n);return new Promise(function(e,i){var r={};r.blobData=new Blob([t.document.docSave(o,!0)],{type:"application/pdf"}),e(r)})}this.document.docSave(r,e,!0)},e.prototype.clone=function(){return this.document},e}();!function(e){e[e.Free=0]="Free",e[e.Normal=1]="Normal",e[e.Packed=2]="Packed"}(ro||(ro={}));var ao,co,ho,uo,lo=function(){function e(e){this.currentPosition=-1,this.value=e}return Object.defineProperty(e.prototype,"status",{get:function(){return this.objectStatus},set:function(e){this.objectStatus=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSaving",{get:function(){return this.saving},set:function(e){this.saving=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"objectCollectionIndex",{get:function(){return this.index},set:function(e){this.index=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return this.currentPosition},set:function(e){this.currentPosition=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clonedObject",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.save=function(e){e.write(this.boolToStr(this.value))},e.prototype.clone=function(t){return new e(this.value)},e.prototype.boolToStr=function(e){return e?"true":"false"},e}(),po=function(){function e(e){this._dictionaryProperties=new Yr,this._centerWindow=!1,this._fitWindow=!1,this._displayTitle=!1,this._splitWindow=!1,this._hideMenuBar=!1,this._hideToolBar=!1,this._hideWindowUI=!1,this._pageMode=ao.UseNone,this._pageLayout=co.SinglePage,this._dictionary=new Rr,this._duplex=ho.None,this._catalog=e}return Object.defineProperty(e.prototype,"centerWindow",{get:function(){return this._centerWindow},set:function(e){this._centerWindow=e,this._dictionary.items.setValue(this._dictionaryProperties.centerWindow,new lo(this._centerWindow))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayTitle",{get:function(){return this._displayTitle},set:function(e){this._displayTitle=e,this._dictionary.items.setValue(this._dictionaryProperties.displayTitle,new lo(this._displayTitle))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fitWindow",{get:function(){return this._fitWindow},set:function(e){this._fitWindow=e,this._dictionary.items.setValue(this._dictionaryProperties.fitWindow,new lo(this._fitWindow))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideMenuBar",{get:function(){return this._hideMenuBar},set:function(e){this._hideMenuBar=e,this._dictionary.items.setValue(this._dictionaryProperties.hideMenuBar,new lo(this._hideMenuBar))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideToolBar",{get:function(){return this._hideToolBar},set:function(e){this._hideToolBar=e,this._dictionary.items.setValue(this._dictionaryProperties.hideToolBar,new lo(this._hideToolBar))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideWindowUI",{get:function(){return this._hideWindowUI},set:function(e){this._hideWindowUI=e,this._dictionary.items.setValue(this._dictionaryProperties.hideWindowUI,new lo(this._hideWindowUI))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageMode",{get:function(){return this._pageMode},set:function(e){this._pageMode=e,this._catalog.items.setValue(this._dictionaryProperties.pageMode,new Ur(this._mapPageMode(this._pageMode)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"duplex",{get:function(){return this._duplex},set:function(e){this._duplex=e,this._catalog.items.setValue(this._dictionaryProperties.duplex,new Ur(this._mapDuplexMode(this._duplex)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageLayout",{get:function(){return this._pageLayout},set:function(e){this._pageLayout=e,this._catalog.items.setValue(this._dictionaryProperties.pageLayout,new Ur(this._mapPageLayout(this._pageLayout)))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageScaling",{get:function(){return this._pageScaling},set:function(e){this._pageScaling=e,this._pageScaling===uo.AppDefault&&this._dictionary.items.containsKey(this._dictionaryProperties.printScaling)?this._dictionary.items.remove(this._dictionaryProperties.printScaling):this._pageScaling===uo.None&&this._dictionary.items.setValue(this._dictionaryProperties.printScaling,new Ur("None"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._dictionary},enumerable:!0,configurable:!0}),e.prototype._mapDuplexMode=function(e){switch(e){case ho.Simplex:return"Simplex";case ho.DuplexFlipShortEdge:return"DuplexFlipShortEdge";case ho.DuplexFlipLongEdge:return"DuplexFlipLongEdge";case ho.None:return"None"}},e.prototype._mapPageMode=function(e){switch(e){case ao.UseNone:return"UseNone";case ao.UseOutlines:return"UseOutlines";case ao.UseThumbs:return"UseThumbs";case ao.FullScreen:return"FullScreen";case ao.UseOC:return"UseOC";case ao.UseAttachments:return"UseAttachments"}},e.prototype._mapPageLayout=function(e){switch(e){case co.SinglePage:return"SinglePage";case co.OneColumn:return"OneColumn";case co.TwoColumnLeft:return"TwoColumnLeft";case co.TwoColumnRight:return"TwoColumnRight";case co.TwoPageLeft:return"TwoPageLeft";case co.TwoPageRight:return"TwoPageRight"}},e}();!function(e){e[e.UseNone=0]="UseNone",e[e.UseOutlines=1]="UseOutlines",e[e.UseThumbs=2]="UseThumbs",e[e.FullScreen=3]="FullScreen",e[e.UseOC=4]="UseOC",e[e.UseAttachments=5]="UseAttachments"}(ao||(ao={})),function(e){e[e.SinglePage=0]="SinglePage",e[e.OneColumn=1]="OneColumn",e[e.TwoColumnLeft=2]="TwoColumnLeft",e[e.TwoColumnRight=3]="TwoColumnRight",e[e.TwoPageLeft=4]="TwoPageLeft",e[e.TwoPageRight=5]="TwoPageRight"}(co||(co={})),function(e){e[e.Simplex=0]="Simplex",e[e.DuplexFlipShortEdge=1]="DuplexFlipShortEdge",e[e.DuplexFlipLongEdge=2]="DuplexFlipLongEdge",e[e.None=3]="None"}(ho||(ho={})),function(e){e[e.AppDefault=0]="AppDefault",e[e.None=1]="None"}(uo||(uo={}));var go,fo,Mo,mo,yo,No,jo=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Do=function(e){function t(){var t=e.call(this)||this;return t.sections=null,t.tempDictionaryProperties=new Yr,t.items.setValue((new Yr).type,new Ur("Catalog")),t}return jo(t,e),Object.defineProperty(t.prototype,"pages",{get:function(){return this.sections},set:function(e){e.element,this.sections=e,this.items.setValue(this.tempDictionaryProperties.pages,new vn(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewerPreferences",{get:function(){return null!==this._viewerPreferences&&void 0!==this._viewerPreferences||(this._viewerPreferences=new po(this),this.items.setValue(this.tempDictionaryProperties.viewerPreferences,new vn(this._viewerPreferences.element))),this._viewerPreferences},enumerable:!0,configurable:!0}),t}(Rr),Io=function(){function e(){this.objects=new Pr,this.maxGenNumIndex=0,this.objectCount=0,this.dictionaryProperties=new Yr}return Object.defineProperty(e.prototype,"isMerging",{get:function(){return this.merging},set:function(e){this.merging=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trailer",{get:function(){return null==this.internalTrailer&&(this.internalTrailer=new cn),this.internalTrailer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"document",{get:function(){return this.pdfDocument},set:function(e){this.pdfDocument=e,this.items=this.pdfDocument.pdfObjects},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pdfObjects",{get:function(){return this.items},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"objectCollection",{get:function(){return this.pdfDocument.pdfObjects},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this.objectCount},set:function(e){this.objectCount=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nextObjNumber",{get:function(){return this.count=this.count+1,this.count},enumerable:!0,configurable:!0}),e.prototype.save=function(e,t){this.saveHead(e),this.mappedReferences=null,this.objects.clear(),this.markTrailerReferences(),this.saveObjects(e);var i=this.count,r=e.position;this.registerObject(0,new zn(0,-1),!0);e.write(Qr.xref),e.write(Qr.newLine),this.saveSections(e),this.saveTrailer(e,this.count,0),this.saveTheEndess(e,r),this.count=i;for(var n=0;n<this.objectCollection.count;++n){this.objectCollection.items(n).object.isSaving=!1}if(void 0===t)return e.stream.buffer;e.stream.save(t)},e.prototype.saveTheEndess=function(e,t){e.write(Qr.newLine+Qr.startxref+Qr.newLine),e.write(t.toString()+Qr.newLine),e.write(Qr.eof+Qr.newLine)},e.prototype.saveTrailer=function(e,t,i){e.write(Qr.trailer+Qr.newLine);var r=this.trailer;r.items.setValue(this.dictionaryProperties.size,new Hr(this.objectCount+1)),(r=new Rr(r)).setEncrypt(!1),r.save(e)},e.prototype.saveSections=function(e){var t=0,i=0;do{i=this.prepareSubsection(t),this.saveSubsection(e,t,i),t+=i}while(0!==i)},e.prototype.saveSubsection=function(e,t,i){if(!(i<=0||t>=this.count)){e.write(t+" "+(i+1)+Qr.newLine);for(var r=t;r<=t+i;++r){var n=this.objects.getValue(r),o="";o=n.type===ro.Free?this.getItem(n.offset,65535,!0):this.getItem(n.offset,n.generation,!1),e.write(o)}}},e.prototype.getItem=function(e,t,i){var r="",n=10-e.toString().length;t<=0&&(t=0);for(var o=5-t.toString().length<=0?0:5-t.toString().length,s=0;s<n;s++)r+="0";r=r+e.toString()+" ";for(s=0;s<o;s++)r+="0";return r=(r=r+t.toString()+" ")+(i?Qr.f:Qr.n)+Qr.newLine},e.prototype.prepareSubsection=function(e){for(var t,i=0,r=this.count,n=0;n<this.document.pdfObjects.count;n++){this.document.pdfObjects.items(n).reference.toString().split(" ")}if(e>=r)return i;for(e=t=e;t<r;++t)++i;return i},e.prototype.markTrailerReferences=function(){this.trailer.items.keys(),this.trailer.items.values()},e.prototype.saveHead=function(e){var t=this.generateFileVersion(e.document);e.write("%PDF-"+t),e.write(Qr.newLine)},e.prototype.generateFileVersion=function(e){return"1."+4..toString()},e.prototype.getReference=function(e,t){if(void 0===t){return this.getReference(e,!1)}return this.getSubReference(e,t)},e.prototype.getSubReference=function(e,t){var i,r=!1,n=null;if(this.items.count>0&&e.objectCollectionIndex>0&&this.items.count>e.objectCollectionIndex-1){var o=this.document.pdfObjects.getReference(e,i);n=o.reference,i=o.wasNew}if(i=null==n&&e.status!==eo.Registered,null==n){var s=this.nextObjNumber;n=new zn(s,0);var a=void 0;if(i){this.document.pdfObjects.add(e),this.document.pdfObjects.trySetReference(e,n,a);var c=this.document.pdfObjects.count-1,h=this.document.pdfObjects.objectCollections[c].reference.objNumber,u=this.document.pdfObjects.objectCollections[this.document.pdfObjects.count-1];this.document.pdfObjects.mainObjectCollection.setValue(h,u),e.position=-1}else this.document.pdfObjects.trySetReference(e,n,a);e.objectCollectionIndex=n.objNumber,e.status=eo.None,r=!0}return r||this.bForceNew,n},e.prototype.saveObjects=function(e){for(var t=this.objectCollection,i=0;i<t.count;++i){var r=t.items(i).object;r.isSaving=!0,this.saveIndirectObject(r,e)}},e.prototype.saveIndirectObject=function(e,t){var i=this.getReference(e);e instanceof Do&&this.trailer.items.setValue(this.dictionaryProperties.root,i),this.pdfDocument.currentSavingObj=i,e.getArchive(),this.registerObject(t.position,i),this.doSaveObject(e,i,t)},e.prototype.doSaveObject=function(e,t,i){i.length,i.write(t.objNumber.toString()),i.write(Qr.whiteSpace),i.write(t.genNumber.toString()),i.write(Qr.whiteSpace),i.write(Qr.obj),i.write(Qr.newLine),e.save(i),i.stream,i.write(Qr.endObj),i.write(Qr.newLine)},e.prototype.registerObject=function(e,t,i){"boolean"==typeof i?(this.objects.setValue(t.objNumber,new So(e,t,i)),this.maxGenNumIndex=Math.max(this.maxGenNumIndex,t.genNumber)):void 0===i&&(this.objects.setValue(t.objNumber,new So(e,t)),this.maxGenNumIndex=Math.max(this.maxGenNumIndex,t.genNumber))},e.dereference=function(e){return null!=e&&(e=e.object),e},e}(),So=function(){function e(e,t,i){var r=e;this.offsetNumber=r;var n=t;this.generation=n.genNumber,this.object=n.objNumber,this.type=void 0===i?ro.Normal:ro.Free}return Object.defineProperty(e.prototype,"objectNumber",{get:function(){return this.object},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offset",{get:function(){return this.offsetNumber},enumerable:!0,configurable:!0}),e}(),bo=function(){function e(){}return e.letter=new Fn(612,792),e.note=new Fn(540,720),e.legal=new Fn(612,1008),e.a0=new Fn(2380,3368),e.a1=new Fn(1684,2380),e.a2=new Fn(1190,1684),e.a3=new Fn(842,1190),e.a4=new Fn(595,842),e.a5=new Fn(421,595),e.a6=new Fn(297,421),e.a7=new Fn(210,297),e.a8=new Fn(148,210),e.a9=new Fn(105,148),e.a10=new Fn(74,105),e.b0=new Fn(2836,4008),e.b1=new Fn(2004,2836),e.b2=new Fn(1418,2004),e.b3=new Fn(1002,1418),e.b4=new Fn(709,1002),e.b5=new Fn(501,709),e.archE=new Fn(2592,3456),e.archD=new Fn(1728,2592),e.archC=new Fn(1296,1728),e.archB=new Fn(864,1296),e.archA=new Fn(648,864),e.flsa=new Fn(612,936),e.halfLetter=new Fn(396,612),e.letter11x17=new Fn(792,1224),e.ledger=new Fn(1224,792),e}();!function(e){e[e.Portrait=0]="Portrait",e[e.Landscape=1]="Landscape"}(go||(go={})),function(e){e[e.RotateAngle0=0]="RotateAngle0",e[e.RotateAngle90=1]="RotateAngle90",e[e.RotateAngle180=2]="RotateAngle180",e[e.RotateAngle270=3]="RotateAngle270"}(fo||(fo={})),function(e){e[e.None=0]="None",e[e.Numeric=1]="Numeric",e[e.LowerLatin=2]="LowerLatin",e[e.LowerRoman=3]="LowerRoman",e[e.UpperLatin=4]="UpperLatin",e[e.UpperRoman=5]="UpperRoman"}(Mo||(Mo={})),function(e){e[e.None=0]="None",e[e.Bottom=1]="Bottom",e[e.Top=2]="Top",e[e.Left=3]="Left",e[e.Right=4]="Right",e[e.Fill=5]="Fill"}(mo||(mo={})),function(e){e[e.None=0]="None",e[e.TopLeft=1]="TopLeft",e[e.TopCenter=2]="TopCenter",e[e.TopRight=3]="TopRight",e[e.MiddleLeft=4]="MiddleLeft",e[e.MiddleCenter=5]="MiddleCenter",e[e.MiddleRight=6]="MiddleRight",e[e.BottomLeft=7]="BottomLeft",e[e.BottomCenter=8]="BottomCenter",e[e.BottomRight=9]="BottomRight"}(yo||(yo={})),function(e){e[e.None=0]="None",e[e.Top=1]="Top",e[e.Bottom=2]="Bottom",e[e.Left=3]="Left",e[e.Right=4]="Right"}(No||(No={}));var zo,vo=function(){function e(){this.pdfMargin=40,this.setMargins(this.pdfMargin)}return Object.defineProperty(e.prototype,"left",{get:function(){return this.leftMargin},set:function(e){this.leftMargin=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.topMargin},set:function(e){this.topMargin=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.rightMargin},set:function(e){this.rightMargin=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.bottomMargin},set:function(e){this.bottomMargin=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"all",{set:function(e){this.setMargins(e)},enumerable:!0,configurable:!0}),e.prototype.setMargins=function(e,t,i,r){void 0===t?this.leftMargin=this.topMargin=this.rightMargin=this.bottomMargin=e:void 0===i?(this.leftMargin=this.rightMargin=e,this.bottomMargin=this.topMargin=t):(this.leftMargin=e,this.topMargin=t,this.rightMargin=i,this.bottomMargin=r)},e.prototype.clone=function(){return this},e}(),wo=function(){function e(e){this.pageMargins=new vo,this.pageSize=bo.a4,this.rotateAngle=fo.RotateAngle0,this.pageOrientation=go.Portrait,this.pageOrigin=new Vn(0,0),this.isRotation=!1,"number"==typeof e&&this.pageMargins.setMargins(e)}return Object.defineProperty(e.prototype,"size",{get:function(){return this.pageSize},set:function(e){this.setSize(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this.pageOrientation},set:function(e){this.pageOrientation!==e&&(this.pageOrientation=e,this.updateSize(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"margins",{get:function(){return this.pageMargins},set:function(e){this.pageMargins=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.pageSize.width},set:function(e){this.pageSize.width=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.pageSize.height},set:function(e){this.pageSize.height=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"origin",{get:function(){return this.pageOrigin},set:function(e){this.pageOrigin=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotate",{get:function(){return this.rotateAngle},set:function(e){this.rotateAngle=e,this.isRotation=!0},enumerable:!0,configurable:!0}),e.prototype.updateSize=function(e){var t=Math.min(this.pageSize.width,this.pageSize.height),i=Math.max(this.pageSize.width,this.pageSize.height);switch(e){case go.Portrait:this.pageSize=new Fn(t,i);break;case go.Landscape:this.pageSize=new Fn(i,t)}},e.prototype.clone=function(){return this.pageMargins=this.pageMargins.clone(),this},e.prototype.getActualSize=function(){var e=this.width-(this.margins.left+this.margins.right),t=this.height-(this.margins.top+this.margins.bottom);return new Fn(e,t)},e.prototype.setSize=function(e){var t=Math.min(e.width,e.height),i=Math.max(e.width,e.height);this.orientation===go.Portrait?this.pageSize=new Fn(t,i):this.pageSize=new Fn(i,t)},e}(),Oo=function(){function e(e){if(null==e)throw new Error("ArgumentNullException:stream");this.stream=e}return e.prototype.clear=function(){this.stream.clearStream()},e.prototype.setGraphicsState=function(e){e instanceof Ur?(this.stream.write(e.toString()),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setGraphicsState)):(this.stream.write(Qr.slash),this.stream.write(e),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setGraphicsState))},e.prototype.executeObject=function(e){this.stream.write(e.toString()),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.paintXObject),this.stream.write(Qr.newLine)},e.prototype.closePath=function(){this.writeOperator(Qr.closePath)},e.prototype.clipPath=function(e){this.stream.write(Qr.clipPath),e&&this.stream.write(Qr.evenOdd),this.stream.write(Qr.whiteSpace),this.stream.write(Qr.endPath),this.stream.write(Qr.newLine)},e.prototype.closeFillStrokePath=function(e){this.stream.write(Qr.closeFillStrokePath),e?(this.stream.write(Qr.evenOdd),this.stream.write(Qr.newLine)):this.stream.write(Qr.newLine)},e.prototype.fillStrokePath=function(e){this.stream.write(Qr.fillStroke),e?(this.stream.write(Qr.evenOdd),this.stream.write(Qr.newLine)):this.stream.write(Qr.newLine)},e.prototype.fillPath=function(e){this.stream.write(Qr.fill),e?(this.stream.write(Qr.evenOdd),this.stream.write(Qr.newLine)):this.stream.write(Qr.newLine)},e.prototype.endPath=function(){this.writeOperator(Qr.n)},e.prototype.closeFillPath=function(e){this.writeOperator(Qr.closePath),this.stream.write(Qr.fill),e?(this.stream.write(Qr.evenOdd),this.stream.write(Qr.newLine)):this.stream.write(Qr.newLine)},e.prototype.closeStrokePath=function(){this.writeOperator(Qr.closeStrokePath)},e.prototype.setTextScaling=function(e){this.stream.write(Hr.floatToString(e)),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setTextScaling)},e.prototype.strokePath=function(){this.writeOperator(Qr.stroke)},e.prototype.restoreGraphicsState=function(){this.writeOperator(Qr.restoreState)},e.prototype.saveGraphicsState=function(){this.writeOperator(Qr.saveState)},e.prototype.startNextLine=function(e,t){void 0===e?this.writeOperator(Qr.goToNextLine):e instanceof Vn?(this.writePoint(e),this.writeOperator(Qr.setCoords)):(this.writePoint(e,t),this.writeOperator(Qr.setCoords))},e.prototype.showText=function(e){this.checkTextParam(e),this.writeText(e),this.writeOperator(Qr.setText)},e.prototype.setLeading=function(e){this.stream.write(Hr.floatToString(e)),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setTextLeading)},e.prototype.beginPath=function(e,t){this.writePoint(e,t),this.writeOperator(Qr.beginPath)},e.prototype.beginText=function(){this.writeOperator(Qr.beginText)},e.prototype.endText=function(){this.writeOperator(Qr.endText)},e.prototype.appendRectangle=function(e,t,i,r){e instanceof Bn?this.appendRectangle(e.x,e.y,e.width,e.height):(this.writePoint(e,t),this.writePoint(i,r),this.writeOperator(Qr.appendRectangle))},e.prototype.appendLineSegment=function(e,t){e instanceof Vn?this.appendLineSegment(e.x,e.y):(this.writePoint(e,t),this.writeOperator(Qr.appendLineSegment))},e.prototype.setTextRenderingMode=function(e){this.stream.write(e.toString()),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setRenderingMode)},e.prototype.setCharacterSpacing=function(e){this.stream.write(Hr.floatToString(e)),this.stream.write(Qr.whiteSpace),this.stream.write(Qr.setCharacterSpace),this.stream.write(Qr.newLine)},e.prototype.setWordSpacing=function(e){this.stream.write(Hr.floatToString(e)),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setWordSpace)},e.prototype.showNextLineText=function(e,t){e instanceof bn?(this.checkTextParam(e),this.writeText(e),this.writeOperator(Qr.setTextOnNewLine)):(this.checkTextParam(e),this.writeText(e,t),this.writeOperator(Qr.setTextOnNewLine))},e.prototype.setColorSpace=function(e,t){if(e instanceof Ur&&"boolean"==typeof t){var i=e,r=(n=t)?Qr.selectcolorspaceforstroking:Qr.selectcolorspacefornonstroking;this.stream.write(i.toString()),this.stream.write(Qr.whiteSpace),this.stream.write(r),this.stream.write(Qr.newLine)}else{i=e;var n=t;this.setColorSpace(new Ur(i),n)}},e.prototype.modifyCtm=function(e){if(null==e)throw new Error("ArgumentNullException:matrix");this.stream.write(e.toString()),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.modifyCtm)},e.prototype.setFont=function(e,t,i){if("string"==typeof t)this.setFont(e,new Ur(t),i);else{if(null==e)throw new Error("ArgumentNullException:font");this.stream.write(t.toString()),this.stream.write(Qr.whiteSpace),this.stream.write(Hr.floatToString(i)),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setFont)}},e.prototype.writeOperator=function(e){this.stream.write(e),this.stream.write(Qr.newLine)},e.prototype.checkTextParam=function(e){if(null==e)throw new Error("ArgumentNullException:text");if("string"==typeof e&&""===e)throw new Error("ArgumentException:The text can not be an empty string, text")},e.prototype.writeText=function(e,t){if(e instanceof bn&&void 0===t)this.stream.write(e.pdfEncode());else{var i=void 0,r=void 0;t?(i=bn.hexStringMark[0],r=bn.hexStringMark[1]):(i=bn.stringMark[0],r=bn.stringMark[1]),this.stream.write(i),this.stream.write(e),this.stream.write(r)}},e.prototype.writePoint=function(e,t){if(e instanceof Vn&&void 0===t)this.writePoint(e.x,e.y);else{var i=e;this.stream.write(Hr.floatToString(i)),this.stream.write(Qr.whiteSpace),t=this.updateY(t),this.stream.write(Hr.floatToString(t)),this.stream.write(Qr.whiteSpace)}},e.prototype.updateY=function(e){return-e},e.prototype.write=function(e){var t="";t+=e,t+=Qr.newLine,this.writeOperator(t)},e.prototype.writeComment=function(e){if(!(null!=e&&e.length>0))throw new Error("Invalid comment");var t="";t+=Qr.comment,t+=Qr.whiteSpace,t+=e,this.writeOperator(t)},e.prototype.setColorAndSpace=function(e,t,i){e.isEmpty||(this.stream.write(e.toString(t,i)),this.stream.write(Qr.newLine))},e.prototype.setLineDashPattern=function(e,t){this.setLineDashPatternHelper(e,t)},e.prototype.setLineDashPatternHelper=function(e,t){var i="[";if(e.length>1)for(var r=0;r<e.length;r++)r===e.length-1?i+=e[r].toString():i+=e[r].toString()+" ";i+="] ",i+=t.toString(),i+=" "+Qr.setDashPattern,this.stream.write(i),this.stream.write(Qr.newLine)},e.prototype.setMiterLimit=function(e){this.stream.write(Hr.floatToString(e)),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setMiterLimit)},e.prototype.setLineWidth=function(e){this.stream.write(Hr.floatToString(e)),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setLineWidth)},e.prototype.setLineCap=function(e){this.stream.write(e.toString()),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setLineCapStyle)},e.prototype.setLineJoin=function(e){this.stream.write(e.toString()),this.stream.write(Qr.whiteSpace),this.writeOperator(Qr.setLineJoinStyle)},Object.defineProperty(e.prototype,"position",{get:function(){return this.stream.position},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){var e=0;if(0!==this.stream.data.length&&-1!==this.stream.data.length)for(var t=0;t<this.stream.data.length;t++)e+=this.stream.data[t].length;return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"document",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.appendBezierSegment=function(e,t,i,r,n,o){e instanceof Vn&&t instanceof Vn&&i instanceof Vn?(this.writePoint(e.x,e.y),this.writePoint(t.x,t.y),this.writePoint(i.x,i.y)):(this.writePoint(e,t),this.writePoint(i,r),this.writePoint(n,o)),this.writeOperator(Qr.appendbeziercurve)},e.prototype.setColourWithPattern=function(e,t,i){if(null!=e){var r=e.length,n=0;for(n=0;n<r;++n)this.stream.write(e[n].toString()),this.stream.write(Qr.whiteSpace)}null!=t&&(this.stream.write(t.toString()),this.stream.write(Qr.whiteSpace)),i?this.writeOperator(Qr.setColorAndPatternStroking):this.writeOperator(Qr.setColorAndPattern)},e}(),To=function(){function e(e,t){this.pdfColor=new Rn(0,0,0),this.dashOffsetValue=0,this.penDashPattern=[0],this.pdfDashStyle=mn.Solid,this.pdfLineCap=0,this.pdfLineJoin=0,this.penWidth=1,this.internalMiterLimit=0,this.colorSpace=Nn.Rgb,e instanceof Gn?this.setBrush(e):e instanceof Rn&&(this.color=e),"number"==typeof t&&(this.width=t)}return Object.defineProperty(e.prototype,"color",{get:function(){return this.pdfColor},set:function(e){this.pdfColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dashOffset",{get:function(){return void 0===this.dashOffsetValue||null==this.dashOffsetValue?0:this.dashOffsetValue},set:function(e){this.dashOffsetValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dashPattern",{get:function(){return this.penDashPattern},set:function(e){this.penDashPattern=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dashStyle",{get:function(){return this.pdfDashStyle},set:function(e){if(this.pdfDashStyle!==e)switch(this.pdfDashStyle=e,this.pdfDashStyle){case mn.Custom:break;case mn.Dash:this.penDashPattern=[3,1];break;case mn.Dot:this.penDashPattern=[1,1];break;case mn.DashDot:this.penDashPattern=[3,1,1,1];break;case mn.DashDotDot:this.penDashPattern=[3,1,1,1,1,1];break;case mn.Solid:break;default:this.pdfDashStyle=mn.Solid,this.penDashPattern=[0]}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineCap",{get:function(){return this.pdfLineCap},set:function(e){this.pdfLineCap=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineJoin",{get:function(){return this.pdfLineJoin},set:function(e){this.pdfLineJoin=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"miterLimit",{get:function(){return this.internalMiterLimit},set:function(e){this.internalMiterLimit=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.penWidth},set:function(e){this.penWidth=e},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return this},e.prototype.setBrush=function(e){var t=e;null!=t&&t instanceof qn&&(this.color=t.color,this.pdfBrush=t),this.color=t.color,this.pdfBrush=t},e.prototype.monitorChanges=function(e,t,i,r,n,o){this.dashControl(e,true,t),t.setLineWidth(this.width),t.setLineJoin(this.lineJoin),t.setLineCap(this.lineCap);var s=this.miterLimit;return s>0&&(t.setMiterLimit(s),!0),this.pdfBrush,t.setColorAndSpace(this.color,n,!0),!0},e.prototype.dashControl=function(e,t,i){var r=this.width,n=this.getPattern();return i.setLineDashPattern(n,this.dashOffset*r),true},e.prototype.getPattern=function(){for(var e=this.dashPattern,t=0;t<e.length;++t)e[t]*=this.width;return e},e}(),Lo=function(){function e(e){this.radDegFactor=180/Math.PI,this.transformationMatrix=new Ao(1,0,0,void 0===e?1:-1,0,0)}return Object.defineProperty(e.prototype,"matrix",{get:function(){return this.transformationMatrix},set:function(e){this.transformationMatrix=e},enumerable:!0,configurable:!0}),e.prototype.translate=function(e,t){this.transformationMatrix.translate(e,t)},e.prototype.scale=function(e,t){this.transformationMatrix.elements[0]=e,this.transformationMatrix.elements[3]=t},e.prototype.rotate=function(e){e=e*Math.PI/180,this.transformationMatrix.elements[0]=Math.cos(e),this.transformationMatrix.elements[1]=Math.sin(e),this.transformationMatrix.elements[2]=-Math.sin(e),this.transformationMatrix.elements[3]=Math.cos(e)},e.prototype.toString=function(){for(var e="",t=0,i=this.transformationMatrix.elements.length;t<i;t++)this.matrix.elements[t],e+=Hr.floatToString(this.transformationMatrix.elements[t]),e+=" ";return e},e.prototype.multiply=function(e){this.transformationMatrix.multiply(e.matrix)},e.degreesToRadians=function(e){return this.degRadFactor*e},e.prototype.radiansToDegrees=function(e){return this.radDegFactor*e},e.prototype.clone=function(){return this},e.degRadFactor=Math.PI/180,e}(),Ao=function(){function e(e,t,i,r,n,o){void 0===e?this.metrixElements=[]:"number"==typeof e?(this.metrixElements=[],this.metrixElements.push(e),this.metrixElements.push(t),this.metrixElements.push(i),this.metrixElements.push(r),this.metrixElements.push(n),this.metrixElements.push(o)):this.metrixElements=e}return Object.defineProperty(e.prototype,"elements",{get:function(){return this.metrixElements},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetX",{get:function(){return this.metrixElements[4]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"offsetY",{get:function(){return this.metrixElements[5]},enumerable:!0,configurable:!0}),e.prototype.translate=function(e,t){this.metrixElements[4]=e,this.metrixElements[5]=t},e.prototype.transform=function(e){var t=e.x,i=e.y,r=t*this.elements[0]+i*this.elements[2]+this.offsetX,n=t*this.elements[1]+i*this.elements[3]+this.offsetY;return new Vn(r,n)},e.prototype.multiply=function(e){var t=[];t.push(this.elements[0]*e.elements[0]+this.elements[1]*e.elements[2]),t[1]=this.elements[0]*e.elements[1]+this.elements[1]*e.elements[3],t[2]=this.elements[2]*e.elements[0]+this.elements[3]*e.elements[2],t[3]=this.elements[2]*e.elements[1]+this.elements[3]*e.elements[3],t[4]=this.offsetX*e.elements[0]+this.offsetY*e.elements[2]+e.offsetX,t[5]=this.offsetX*e.elements[1]+this.offsetY*e.elements[3]+e.offsetY;for(var i=0;i<t.length;i++)this.elements[i]=t[i]},e.prototype.dispose=function(){this.metrixElements=null},e.prototype.clone=function(){return new e(this.metrixElements)},e}(),Co=function(){this.pdf="PDF",this.text="Text",this.imageB="ImageB",this.imageC="ImageC",this.imageI="ImageI"},xo=function(){function e(){this.mKeys=[],this.mValues=[]}return e.prototype.size=function(){return this.mKeys.length},e.prototype.add=function(e,t){if(null==e||null==t)throw new ReferenceError("Provided key or value is not valid.");if(this.mKeys.indexOf(e)<0)return this.mKeys.push(e),this.mValues.push(t),1;throw new RangeError("An item with the same key has already been added.")},e.prototype.keys=function(){return this.mKeys},e.prototype.values=function(){return this.mValues},e.prototype.getValue=function(e){if(null==e)throw new ReferenceError("Provided key is not valid.");var t=this.mKeys.indexOf(e);if(t<0)throw new RangeError("No item with the specified key has been added.");return this.mValues[t]},e.prototype.setValue=function(e,t){if(null==e)throw new ReferenceError("Provided key is not valid.");var i=this.mKeys.indexOf(e);i<0?(this.mKeys.push(e),this.mValues.push(t)):this.mValues[i]=t},e.prototype.remove=function(e){if(null==e)throw new ReferenceError("Provided key is not valid.");var t=this.mKeys.indexOf(e);if(t<0)throw new RangeError("No item with the specified key has been added.");return this.mKeys.splice(t,1),this.mValues.splice(t,1),!0},e.prototype.containsKey=function(e){if(null==e)throw new ReferenceError("Provided key is not valid.");return!(this.mKeys.indexOf(e)<0)},e.prototype.clear=function(){this.mKeys=[],this.mValues=[]},e}(),Eo=function(){function e(e,t,i){this.dictionary=new Rr,this.dictionaryProperties=new Yr,this.dictionary.items.setValue(this.dictionaryProperties.CA,new Hr(e)),this.dictionary.items.setValue(this.dictionaryProperties.ca,new Hr(t)),this.dictionary.items.setValue(this.dictionaryProperties.BM,new Ur(i.toString()))}return Object.defineProperty(e.prototype,"element",{get:function(){return this.dictionary},enumerable:!0,configurable:!0}),e}(),ko=function(){function e(){this.automaticFieldsInformation=[]}return Object.defineProperty(e.prototype,"automaticFields",{get:function(){return this.automaticFieldsInformation},enumerable:!0,configurable:!0}),e.prototype.add=function(e){return this.automaticFields.push(e)},e}(),Po=function(){function e(){}return e.prototype.drawHelper=function(e,t,i){var r=0!==t||0!==i,n=null;r&&(n=e.save(),e.translateTransform(t,i)),this.drawInternal(e),r&&e.restore(n)},e}(),Uo=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Qo=function(e){function t(){var t=e.call(this)||this;return t.internalBounds=new Bn(0,0,0,0),t.internalTemplateSize=new Fn(0,0),t}return Uo(t,e),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.internalBounds},set:function(e){this.internalBounds=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return new Fn(this.bounds.width,this.bounds.height)},set:function(e){this.bounds.width=e.width,this.bounds.height=e.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return new Vn(this.bounds.x,this.bounds.y)},set:function(e){this.bounds.x=e.x,this.bounds.y=e.y},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"font",{get:function(){return this.internalFont},set:function(e){this.internalFont=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"brush",{get:function(){return this.internalBrush},set:function(e){this.internalBrush=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pen",{get:function(){return this.internalPen},set:function(e){this.internalPen=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stringFormat",{get:function(){return this.internalStringFormat},set:function(e){this.internalStringFormat=e},enumerable:!0,configurable:!0}),t.prototype.performDrawHelper=function(e,t,i,r){if(0===this.bounds.height||0===this.bounds.width){var n=this.getValue(e);this.internalTemplateSize=this.getFont().measureString(n,this.size,this.stringFormat)}},t.prototype.draw=function(e,t,i){if(void 0===t){var r=new Vn(0,0);this.draw(e,r)}else if(t instanceof Vn)this.draw(e,t.x,t.y);else{this.drawHelper(e,t,i);var n=new Yo(this,new Vn(t,i));e.automaticFields.add(n)}},t.prototype.getSize=function(){return 0===this.bounds.height||0===this.bounds.width?this.internalTemplateSize:this.size},t.prototype.drawInternal=function(e){},t.prototype.getBrush=function(){return void 0===this.internalBrush||null==this.internalBrush?new qn(new Rn(0,0,0)):this.internalBrush},t.prototype.getFont=function(){return void 0===this.internalFont||null==this.internalFont?ta.defaultFont:this.internalFont},t.prototype.getPageFromGraphics=function(e){return void 0!==e.page&&null!==e.page?e.page:e.currentPage},t}(Po),Yo=function(){function e(t,i,r,n){this.pageNumberFieldLocation=new Vn,this.pageNumberField=null,this.scaleX=1,this.scaleY=1,void 0===i&&t instanceof e?(this.pageNumberField=t.field,this.pageNumberFieldLocation=t.location,this.scaleX=t.scalingX,this.scaleY=t.scalingY):void 0===r&&i instanceof Vn&&t instanceof Qo?(this.pageNumberField=t,this.pageNumberFieldLocation=i):(this.pageNumberField=t,this.pageNumberFieldLocation=i,this.scaleX=r,this.scaleY=n)}return Object.defineProperty(e.prototype,"location",{get:function(){return this.pageNumberFieldLocation},set:function(e){this.pageNumberFieldLocation=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"field",{get:function(){return this.pageNumberField},set:function(e){this.pageNumberField=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingX",{get:function(){return this.scaleX},set:function(e){this.scaleX=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scalingY",{get:function(){return this.scaleY},set:function(e){this.scaleY=e},enumerable:!0,configurable:!0}),e}(),Ro=function(){function e(e){this.mPosition=0,this.buffer=new Uint8Array(e),this.dataView=new DataView(this.buffer.buffer)}return Object.defineProperty(e.prototype,"position",{get:function(){return this.mPosition},set:function(e){this.mPosition=e},enumerable:!0,configurable:!0}),e.prototype.read=function(e,t,i){for(var r=t;r<i;r++){var n=this.position;e.buffer[r]=this.readByte(n),this.position++}},e.prototype.getBuffer=function(e){return this.buffer[e]},e.prototype.writeFromBase64String=function(e){var t=this.encodedString(e);this.buffer=t},e.prototype.encodedString=function(e){var t,i,r,n,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,h=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;e.charAt(e.length-1)===s.charAt(64)&&h--;for(var u=new Uint8Array(0|h);a<e.length;)t=s.indexOf(e.charAt(a++))<<2|(n=s.indexOf(e.charAt(a++)))>>4,i=(15&n)<<4|(o=s.indexOf(e.charAt(a++)))>>2,r=(3&o)<<6|s.indexOf(e.charAt(a++)),u[c++]=t,u[c++]=i,u[c++]=r;return u},e.prototype.readByte=function(e){return this.buffer[e]},Object.defineProperty(e.prototype,"internalBuffer",{get:function(){return this.buffer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this.buffer.byteLength},enumerable:!0,configurable:!0}),e.prototype.readNextTwoBytes=function(e){var t=e.readByte(this.position);return this.position++,t<<=8,t|=e.readByte(this.position),this.position++,t},e}();!function(e){e[e.Unknown=0]="Unknown",e[e.Bmp=1]="Bmp",e[e.Emf=2]="Emf",e[e.Gif=3]="Gif",e[e.Jpeg=4]="Jpeg",e[e.Png=5]="Png",e[e.Wmf=6]="Wmf",e[e.Icon=7]="Icon"}(zo||(zo={}));var Vo,Fo,Bo,Wo=function(){function e(e){this.sof1Marker=193,this.sof2Marker=194,this.sof3Marker=195,this.sof5Marker=197,this.sof6Marker=198,this.sof7Marker=199,this.sof9Marker=201,this.sof10Marker=202,this.sof11Marker=203,this.sof13Marker=205,this.sof14Marker=206,this.sof15Marker=207,this.mFormat=zo.Unknown,this.mbitsPerComponent=8,this.dictionaryProperties=new Yr,this.mStream=e,this.initialize()}return Object.defineProperty(e.prototype,"height",{get:function(){return this.mHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.mWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bitsPerComponent",{get:function(){return this.mbitsPerComponent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.mImageData.count},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imageData",{get:function(){return this.mImageData},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imageDataAsNumberArray",{get:function(){return this.mImageData.internalBuffer.buffer},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){if(this.mFormat!==zo.Unknown||!this.checkIfJpeg())throw new TypeError("Only the JPEG format is supported");this.mFormat=zo.Jpeg,this.parseJpegImage(),this.reset(),this.mImageData=new Ro(this.mStream.count),this.mStream.read(this.mImageData,0,this.mImageData.count)},e.prototype.reset=function(){this.mStream.position=0},e.prototype.parseJpegImage=function(){this.reset();var e=new Ro(this.mStream.count);this.mStream.read(e,0,e.count);for(var t=4,i=!1,r=256*e.getBuffer(t)+e.getBuffer(t+1);t<e.count;){if(!((t+=r)<e.count)){i=!0;break}if(192===e.getBuffer(t+1))return this.mHeight=256*e.getBuffer(t+5)+e.getBuffer(t+6),void(this.mWidth=256*e.getBuffer(t+7)+e.getBuffer(t+8));t+=2,r=256*e.getBuffer(t)+e.getBuffer(t+1)}i&&(this.mStream.position=0,this.skip(this.mStream,2),this.readExceededJPGImage(this.mStream))},Object.defineProperty(e.prototype,"format",{get:function(){return this.mFormat},enumerable:!0,configurable:!0}),e.prototype.checkIfJpeg=function(){this.reset();for(var t=0;t<e.mJpegHeader.length;t++){if(e.mJpegHeader[t]!==this.mStream.readByte(t))return!1;this.mStream.position++}return!0},e.prototype.getImageDictionary=function(){if(this.mFormat===zo.Jpeg){this.imageData.internalBuffer.length,this.imageStream=new cn,this.imageStream.isResource=!0;for(var e="",t="",i=0;i<this.imageDataAsNumberArray.byteLength;i++)e+=String.fromCharCode(null,this.mStream.readByte(i));for(i=0;i<e.length;i++)i%2!=0&&(t+=e[i]);return this.imageStream.data=[t],this.imageStream.compress=!1,this.imageStream.items.setValue(this.dictionaryProperties.type,new Ur(this.dictionaryProperties.xObject)),this.imageStream.items.setValue(this.dictionaryProperties.subtype,new Ur(this.dictionaryProperties.image)),this.imageStream.items.setValue(this.dictionaryProperties.width,new Hr(this.width)),this.imageStream.items.setValue(this.dictionaryProperties.height,new Hr(this.height)),this.imageStream.items.setValue(this.dictionaryProperties.bitsPerComponent,new Hr(this.bitsPerComponent)),this.imageStream.items.setValue(this.dictionaryProperties.filter,new Ur(this.dictionaryProperties.dctdecode)),this.imageStream.items.setValue(this.dictionaryProperties.colorSpace,new Ur(this.getColorSpace())),this.imageStream.items.setValue(this.dictionaryProperties.decodeParms,this.getDecodeParams()),this.imageStream}return this.imageStream},e.prototype.getColorSpace=function(){return this.dictionaryProperties.deviceRgb},e.prototype.getDecodeParams=function(){var e=new Rr;return e.items.setValue(this.dictionaryProperties.columns,new Hr(this.width)),e.items.setValue(this.dictionaryProperties.blackIs1,new lo(!0)),e.items.setValue(this.dictionaryProperties.k,new Hr(-1)),e.items.setValue(this.dictionaryProperties.predictor,new Hr(15)),e.items.setValue(this.dictionaryProperties.bitsPerComponent,new Hr(this.bitsPerComponent)),e},e.prototype.readExceededJPGImage=function(e){this.mStream=e;for(var t=!0;t;){switch(this.getMarker(e)){case this.sof1Marker:case this.sof2Marker:case this.sof3Marker:case this.sof5Marker:case this.sof6Marker:case this.sof7Marker:case this.sof9Marker:case this.sof10Marker:case this.sof11Marker:case this.sof13Marker:case this.sof14Marker:case this.sof15Marker:e.position+=3,this.mHeight=this.mStream.readNextTwoBytes(e),this.mWidth=this.mStream.readNextTwoBytes(e),t=!1;break;default:this.skipStream(e)}}},e.prototype.skip=function(e,t){this.mStream=e;var i=new Ro(t);this.mStream.read(i,0,i.count)},e.prototype.getMarker=function(e){var t=32;for(t=e.readByte(this.mStream.position),e.position++;255!==t;)t=e.readByte(this.mStream.position),e.position++;do{t=e.readByte(this.mStream.position),e.position++}while(255===t);return t},e.prototype.skipStream=function(e){var t=this.mStream.readNextTwoBytes(e)-2;t>0&&(e.position+=t)},e.mPngHeader=[137,80,78,71,13,10,26,10],e.mJpegHeader=[255,216],e.GIF_HEADER="G,I,F,8",e.BMP_HEADER="B,M",e}(),Go=function(){function e(e){this.updateProportionsHelper(e)}return e.prototype.convertUnits=function(e,t,i){return this.convertFromPixels(this.convertToPixels(e,t),i)},e.prototype.convertToPixels=function(e,t){var i=t;return e*this.proportions[i]},e.prototype.convertFromPixels=function(e,t){var i=t;return e/this.proportions[i]},e.prototype.updateProportionsHelper=function(e){this.proportions=[e/2.54,e/6,1,e/72,e,e/300,e/25.4]},e.horizontalResolution=96,e.verticalResolution=96,e}(),Ho=function(){function e(){}return Object.defineProperty(e.prototype,"width",{get:function(){return this.imageWidth},set:function(e){this.imageWidth=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.imageHeight},set:function(e){this.imageHeight=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{set:function(e){this.width=e.width,this.height=e.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"physicalDimension",{get:function(){return this.imagePhysicalDimension=this.getPointSize(this.width,this.height,this.horizontalResolution,this.verticalResolution),new Fn(this.width,this.height)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.imageStream},enumerable:!0,configurable:!0}),e.prototype.getPointSize=function(e,t,i,r){if(void 0===i){var n=Go.horizontalResolution,o=Go.verticalResolution;return this.getPointSize(e,t,n,o)}var s=new Go(i),a=new Go(r),c=s.convertUnits(e,Dn.Pixel,Dn.Point),h=a.convertUnits(t,Dn.Pixel,Dn.Point);return new Fn(c,h)},e}(),qo=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),_o=function(e){function t(t){var i=e.call(this)||this;return i.imageStatus=!0,i.dictionaryProperties=new Yr,i.loadImage(t),i}return qo(t,e),t.prototype.loadImage=function(e){this.initializeAsync(e)},t.prototype.initializeAsync=function(e){var t=new Ro(e.length);t.writeFromBase64String(e),this.decoder=new Wo(t),this.height=this.decoder.height,this.width=this.decoder.width,this.bitsPerComponent=this.decoder.bitsPerComponent},t.prototype.save=function(){this.imageStatus=!0,this.imageStream=this.decoder.getImageDictionary()},t}(Ho),Jo=function(){function e(){}return Object.defineProperty(e.prototype,"empty",{get:function(){return this.offset===this.length&&this.length===this.checksum&&0===this.checksum},enumerable:!0,configurable:!0}),e}(),Zo=function(){},Ko=function(){},Xo=function(){},$o=function(){function e(){}return Object.defineProperty(e.prototype,"isItalic",{get:function(){return!!(2&this.macStyle)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isBold",{get:function(){return!!(1&this.macStyle)},enumerable:!0,configurable:!0}),e}(),es=function(){},ts=function(){},is=function(){},rs=function(){},ns=function(){},os=function(){},ss=function(){function e(){}return Object.defineProperty(e.prototype,"empty",{get:function(){return this.index===this.width&&this.width===this.charCode&&0===this.charCode},enumerable:!0,configurable:!0}),e.prototype.compareTo=function(e){var t=e;return this.index-t.index},e}(),as=function(){},cs=function(){},hs=function(){},us=function(){},ls=function(){},ps=function(){function e(e){this.int32Size=4,this.int16Size=2,this.int64Size=8,this.bufferLength=e,this.buffer=[]}return Object.defineProperty(e.prototype,"data",{get:function(){if(this.buffer.length<this.bufferLength)for(var e=this.bufferLength-this.buffer.length,t=0;t<e;t++)this.buffer.push(0);return this.buffer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position",{get:function(){return void 0!==this.internalPosition&&null!==this.internalPosition||(this.internalPosition=0),this.internalPosition},enumerable:!0,configurable:!0}),e.prototype.writeShort=function(e){var t=[(65280&e)>>8,255&e];this.flush(t)},e.prototype.writeInt=function(e){var t=[(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e];this.flush(t)},e.prototype.writeUInt=function(e){var t=[(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e];this.flush(t)},e.prototype.writeString=function(e){if(null==e)throw new Error("Argument Null Exception : value");for(var t=[],i=0;i<e.length;i++)t.push(e.charCodeAt(i));this.flush(t)},e.prototype.writeBytes=function(e){this.flush(e)},e.prototype.flush=function(e){if(null===e)throw new Error("Argument Null Exception : buff");for(var t=this.position,i=0;i<e.length;i++)this.buffer[t]=e[i],t++;this.internalPosition+=e.length},e}(),ds=function(){function e(e){this.int32Size=4,this.isTtcFont=!1,this.isMacTtf=!1,this.metricsName="",this.isMacTTF=!1,this.missedGlyphs=0,this.tableNames=["cvt ","fpgm","glyf","head","hhea","hmtx","loca","maxp","prep"],this.entrySelectors=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4],this.fontData=e,this.initialize()}return Object.defineProperty(e.prototype,"macintosh",{get:function(){return null!==this.macintoshDictionary&&void 0!==this.macintoshDictionary||(this.macintoshDictionary=new Pr),this.macintoshDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"microsoft",{get:function(){return null!==this.microsoftDictionary&&void 0!==this.microsoftDictionary||(this.microsoftDictionary=new Pr),this.microsoftDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"macintoshGlyphs",{get:function(){return null!==this.internalMacintoshGlyphs&&void 0!==this.internalMacintoshGlyphs||(this.internalMacintoshGlyphs=new Pr),this.internalMacintoshGlyphs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"microsoftGlyphs",{get:function(){return null!==this.internalMicrosoftGlyphs&&void 0!==this.internalMicrosoftGlyphs||(this.internalMicrosoftGlyphs=new Pr),this.internalMicrosoftGlyphs},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){void 0===this.metrics&&(this.metrics=new $o),this.readFontDictionary();var e=this.readNameTable(),t=this.readHeadTable();this.initializeFontName(e),this.metrics.macStyle=t.macStyle},e.prototype.readFontDictionary=function(){this.offset=0,this.checkPreambula();var e=this.readInt16(this.offset);this.readInt16(this.offset),this.readInt16(this.offset),this.readInt16(this.offset),void 0===this.tableDirectory&&(this.tableDirectory=new Pr);for(var t=0;t<e;++t){var i=new Jo,r=this.readString(this.int32Size);i.checksum=this.readInt32(this.offset),i.offset=this.readInt32(this.offset),i.length=this.readInt32(this.offset),this.tableDirectory.setValue(r,i)}this.lowestPosition=this.offset,this.isTtcFont||this.fixOffsets()},e.prototype.fixOffsets=function(){for(var e=Number.MAX_VALUE,t=this.tableDirectory.keys(),i=0;i<t.length;i++){var r=(s=this.tableDirectory.getValue(t[i])).offset;if(e>r&&(e=r)<=this.lowestPosition)break}var n=e-this.lowestPosition;if(0!==n){var o=new Pr;for(i=0;i<t.length;i++){var s;(s=this.tableDirectory.getValue(t[i])).offset-=n,o.setValue(t[i],s)}this.tableDirectory=o}},e.prototype.checkPreambula=function(){var e=this.readInt32(this.offset);if(this.isMacTtf=1953658213===e,65536!==e&&1953658213!==e&&1330926671!==e){if(this.isTtcFont=!0,this.offset=0,"ttcf"!==this.readString(4))throw new Error("Can not read TTF font data");if(this.offset+=4,this.readInt32(this.offset)<0)throw new Error("Can not read TTF font data");this.offset=this.readInt32(this.offset),e=this.readInt32(this.offset)}return e},e.prototype.readNameTable=function(){var e=this.getTable("name");this.offset=e.offset;var t=new Zo;t.formatSelector=this.readUInt16(this.offset),t.recordsCount=this.readUInt16(this.offset),t.offset=this.readUInt16(this.offset),t.nameRecords=[];for(var i=this.offset,r=0;r<t.recordsCount;r++){this.offset=i;var n=new Ko;n.platformID=this.readUInt16(this.offset),n.encodingID=this.readUInt16(this.offset),n.languageID=this.readUInt16(this.offset),n.nameID=this.readUInt16(this.offset),n.length=this.readUInt16(this.offset),n.offset=this.readUInt16(this.offset),this.offset=e.offset+t.offset+n.offset;var o=0===n.platformID||3===n.platformID;n.name=this.readString(n.length,o),t.nameRecords[r]=n,i+=12}return t},e.prototype.readHeadTable=function(){var e=this.getTable("head");this.offset=e.offset;var t=new Xo;return t.version=this.readFixed(this.offset),t.fontRevision=this.readFixed(this.offset),t.checkSumAdjustment=this.readUInt32(this.offset),t.magicNumber=this.readUInt32(this.offset),t.flags=this.readUInt16(this.offset),t.unitsPerEm=this.readUInt16(this.offset),t.created=this.readInt64(this.offset),t.modified=this.readInt64(this.offset),t.xMin=this.readInt16(this.offset),t.yMin=this.readInt16(this.offset),t.xMax=this.readInt16(this.offset),t.yMax=this.readInt16(this.offset),t.macStyle=this.readUInt16(this.offset),t.lowestReadableSize=this.readUInt16(this.offset),t.fontDirectionHint=this.readInt16(this.offset),t.indexToLocalFormat=this.readInt16(this.offset),t.glyphDataFormat=this.readInt16(this.offset),t},e.prototype.readHorizontalHeaderTable=function(){var e=this.getTable("hhea");this.offset=e.offset;var t=new es;return t.version=this.readFixed(this.offset),t.ascender=this.readInt16(this.offset),t.descender=this.readInt16(this.offset),t.lineGap=this.readInt16(this.offset),t.advanceWidthMax=this.readUInt16(this.offset),t.minLeftSideBearing=this.readInt16(this.offset),t.minRightSideBearing=this.readInt16(this.offset),t.xMaxExtent=this.readInt16(this.offset),t.caretSlopeRise=this.readInt16(this.offset),t.caretSlopeRun=this.readInt16(this.offset),this.offset+=10,t.metricDataFormat=this.readInt16(this.offset),t.numberOfHMetrics=this.readUInt16(this.offset),t},e.prototype.readOS2Table=function(){var e=this.getTable("OS/2");this.offset=e.offset;var t=new ts;return t.version=this.readUInt16(this.offset),t.xAvgCharWidth=this.readInt16(this.offset),t.usWeightClass=this.readUInt16(this.offset),t.usWidthClass=this.readUInt16(this.offset),t.fsType=this.readInt16(this.offset),t.ySubscriptXSize=this.readInt16(this.offset),t.ySubscriptYSize=this.readInt16(this.offset),t.ySubscriptXOffset=this.readInt16(this.offset),t.ySubscriptYOffset=this.readInt16(this.offset),t.ySuperscriptXSize=this.readInt16(this.offset),t.ySuperscriptYSize=this.readInt16(this.offset),t.ySuperscriptXOffset=this.readInt16(this.offset),t.ySuperscriptYOffset=this.readInt16(this.offset),t.yStrikeoutSize=this.readInt16(this.offset),t.yStrikeoutPosition=this.readInt16(this.offset),t.sFamilyClass=this.readInt16(this.offset),t.panose=this.readBytes(10),t.ulUnicodeRange1=this.readUInt32(this.offset),t.ulUnicodeRange2=this.readUInt32(this.offset),t.ulUnicodeRange3=this.readUInt32(this.offset),t.ulUnicodeRange4=this.readUInt32(this.offset),t.vendorIdentifier=this.readBytes(4),t.fsSelection=this.readUInt16(this.offset),t.usFirstCharIndex=this.readUInt16(this.offset),t.usLastCharIndex=this.readUInt16(this.offset),t.sTypoAscender=this.readInt16(this.offset),t.sTypoDescender=this.readInt16(this.offset),t.sTypoLineGap=this.readInt16(this.offset),t.usWinAscent=this.readUInt16(this.offset),t.usWinDescent=this.readUInt16(this.offset),t.ulCodePageRange1=this.readUInt32(this.offset),t.ulCodePageRange2=this.readUInt32(this.offset),t.version>1?(t.sxHeight=this.readInt16(this.offset),t.sCapHeight=this.readInt16(this.offset),t.usDefaultChar=this.readUInt16(this.offset),t.usBreakChar=this.readUInt16(this.offset),t.usMaxContext=this.readUInt16(this.offset)):(t.sxHeight=0,t.sCapHeight=0,t.usDefaultChar=0,t.usBreakChar=0,t.usMaxContext=0),t},e.prototype.readPostTable=function(){var e=this.getTable("post");this.offset=e.offset;var t=new is;return t.formatType=this.readFixed(this.offset),t.italicAngle=this.readFixed(this.offset),t.underlinePosition=this.readInt16(this.offset),t.underlineThickness=this.readInt16(this.offset),t.isFixedPitch=this.readUInt32(this.offset),t.minType42=this.readUInt32(this.offset),t.maxType42=this.readUInt32(this.offset),t.minType1=this.readUInt32(this.offset),t.maxType1=this.readUInt32(this.offset),t},e.prototype.readWidthTable=function(e,t){var i=this.getTable("hmtx");this.offset=i.offset;for(var r=[],n=0;n<e;n++){var o=new rs;o.advanceWidth=this.readUInt16(this.offset),o.lsb=this.readInt16(this.offset);var s=1e3*o.advanceWidth/t;r.push(Math.floor(s))}return r},e.prototype.readCmapTable=function(){var e=this.getTable("cmap");this.offset=e.offset;var t=new os;t.version=this.readUInt16(this.offset),t.tablesCount=this.readUInt16(this.offset);for(var i=this.offset,r=[],n=0;n<t.tablesCount;n++){this.offset=i;var o=new ns;o.platformID=this.readUInt16(this.offset),o.encodingID=this.readUInt16(this.offset),o.offset=this.readUInt32(this.offset),i=this.offset,this.readCmapSubTable(o),r[n]=o}return r},e.prototype.readCmapSubTable=function(e){var t=this.getTable("cmap");this.offset=t.offset+e.offset;var i=this.readUInt16(this.offset),r=this.getCmapEncoding(e.platformID,e.encodingID);if(r===En.Macintosh?kn.Macintosh:kn.Microsoft,r!==En.Unknown)switch(i){case xn.Apple:this.readAppleCmapTable(e,r);break;case xn.Microsoft:this.readMicrosoftCmapTable(e,r);break;case xn.Trimmed:this.readTrimmedCmapTable(e,r)}},e.prototype.readAppleCmapTable=function(e,t){var i=this.getTable("cmap");this.offset=i.offset+e.offset;var r=new cs;r.format=this.readUInt16(this.offset),r.length=this.readUInt16(this.offset),r.version=this.readUInt16(this.offset),null!==this.maxMacIndex&&void 0!==this.maxMacIndex||(this.maxMacIndex=0);for(var n=0;n<256;++n){var o=new ss;o.index=this.readByte(this.offset),o.width=this.getWidth(o.index),o.charCode=n,this.macintosh.setValue(n,o),this.addGlyph(o,t),this.maxMacIndex=Math.max(n,this.maxMacIndex)}},e.prototype.readMicrosoftCmapTable=function(e,t){var i=this.getTable("cmap");this.offset=i.offset+e.offset;var r=t===En.Unicode?this.microsoft:this.macintosh,n=new hs;n.format=this.readUInt16(this.offset),n.length=this.readUInt16(this.offset),n.version=this.readUInt16(this.offset),n.segCountX2=this.readUInt16(this.offset),n.searchRange=this.readUInt16(this.offset),n.entrySelector=this.readUInt16(this.offset),n.rangeShift=this.readUInt16(this.offset);var o=n.segCountX2/2;n.endCount=this.readUshortArray(o),n.reservedPad=this.readUInt16(this.offset),n.startCount=this.readUshortArray(o),n.idDelta=this.readUshortArray(o),n.idRangeOffset=this.readUshortArray(o);var s=n.length/2-8-4*o;n.glyphID=this.readUshortArray(s);for(var a=0,c=0,h=0;h<o;h++)for(var u=n.startCount[h];u<=n.endCount[h]&&65535!==u;u++){if(0===n.idRangeOffset[h])a=u+n.idDelta[h]&65535;else{if((c=h+n.idRangeOffset[h]/2-o+u-n.startCount[h])>=n.glyphID.length)continue;a=n.glyphID[c]+n.idDelta[h]&65535}var l=new ss;l.index=a,l.width=this.getWidth(l.index);var p=t===En.Symbol&&61440==(65280&u)?255&u:u;l.charCode=p,r.setValue(p,l),this.addGlyph(l,t)}},e.prototype.readTrimmedCmapTable=function(e,t){var i=this.getTable("cmap");this.offset=i.offset+e.offset;var r=new us;r.format=this.readUInt16(this.offset),r.length=this.readUInt16(this.offset),r.version=this.readUInt16(this.offset),r.firstCode=this.readUInt16(this.offset),r.entryCount=this.readUInt16(this.offset);for(var n=0;n<r.entryCount;++n){var o=new ss;o.index=this.readUInt16(this.offset),o.width=this.getWidth(o.index),o.charCode=n+r.firstCode,this.macintosh.setValue(n,o),this.addGlyph(o,t),this.maxMacIndex=Math.max(n,this.maxMacIndex)}},e.prototype.initializeFontName=function(e){for(var t=0;t<e.recordsCount;t++){var i=e.nameRecords[t];if(1===i.nameID?this.metrics.fontFamily=i.name:6===i.nameID&&(this.metrics.postScriptName=i.name),null!==this.metrics.fontFamily&&void 0!==this.metrics.fontFamily&&null!==this.metrics.postScriptName&&void 0!==this.metrics.postScriptName)break}},e.prototype.getTable=function(e){var t,i=new Jo;return this.tableDirectory.containsKey(e)&&(t=this.tableDirectory.getValue(e)),null!=t&&(i=t),i},e.prototype.getWidth=function(e){return e=e<this.width.length?e:this.width.length-1,this.width[e]},e.prototype.getCmapEncoding=function(e,t){var i=En.Unknown;return e==kn.Microsoft&&t==Pn.Undefined?i=En.Symbol:e==kn.Microsoft&&t==Pn.Unicode?i=En.Unicode:e==kn.Macintosh&&t==Un.Roman&&(i=En.Macintosh),i},e.prototype.addGlyph=function(e,t){var i=null;switch(t){case En.Unicode:i=this.microsoftGlyphs;break;case En.Macintosh:case En.Symbol:i=this.macintoshGlyphs}i.setValue(e.index,e)},e.prototype.initializeMetrics=function(e,t,i,r,n,o){this.initializeFontName(e);for(var s=!1,a=0;a<o.length;a++){var c=o[a];if(this.getCmapEncoding(c.platformID,c.encodingID)===En.Symbol){s=!0;break}}this.metrics.isSymbol=s,this.metrics.macStyle=t.macStyle,this.metrics.isFixedPitch=0!==n.isFixedPitch,this.metrics.italicAngle=n.italicAngle;var h=1e3/t.unitsPerEm;this.metrics.winAscent=r.sTypoAscender*h,this.metrics.macAscent=i.ascender*h,this.metrics.capHeight=0!==r.sCapHeight?r.sCapHeight:.7*t.unitsPerEm*h,this.metrics.winDescent=r.sTypoDescender*h,this.metrics.macDescent=i.descender*h,this.metrics.leading=(r.sTypoAscender-r.sTypoDescender+r.sTypoLineGap)*h,this.metrics.lineGap=Math.ceil(i.lineGap*h);var u=t.xMin*h,l=Math.ceil(this.metrics.macAscent+this.metrics.lineGap),p=t.xMax*h,d=this.metrics.macDescent;this.metrics.fontBox=new Wn(u,l,p,d),this.metrics.stemV=80,this.metrics.widthTable=this.updateWidth(),this.metrics.contains=this.tableDirectory.containsKey("CFF"),this.metrics.subScriptSizeFactor=t.unitsPerEm/r.ySubscriptYSize,this.metrics.superscriptSizeFactor=t.unitsPerEm/r.ySuperscriptYSize},e.prototype.updateWidth=function(){var e=[];if(this.metrics.isSymbol)for(var t=0;t<256;t++){var i=this.getGlyph(String.fromCharCode(t));e[t]=i.empty?0:i.width}else{var r=[],n=String.fromCharCode(32);for(t=0;t<256;t++){r[0]=t;var o=this.getString(r,0,r.length),s=o.length>0?o[0]:"?";(i=this.getGlyph(s)).empty?(i=this.getGlyph(n),e[t]=i.empty?0:i.width):e[t]=i.width}}return e},e.prototype.getDefaultGlyph=function(){return this.getGlyph(Zn.whiteSpace)},e.prototype.getString=function(e,t,i){for(var r="",n=0;n<i;n++)r+=String.fromCharCode(e[n+t]);return r},e.prototype.readLocaTable=function(e){var t=this.getTable("loca");this.offset=t.offset;var i=new as,r=null;if(e){var n=t.length/2;r=[];for(var o=0;o<n;o++)r[o]=2*this.readUInt16(this.offset)}else{n=t.length/4;r=[];for(o=0;o<n;o++)r[o]=this.readUInt32(this.offset)}return i.offsets=r,i},e.prototype.updateGlyphChars=function(e,t){e.containsKey(0)||e.setValue(0,0);for(var i=new Pr,r=e.keys(),n=0;n<r.length;n++)i.setValue(r[n],e.getValue(r[n]));for(n=0;n<r.length;n++){var o=r[n];this.processCompositeGlyph(e,o,t)}},e.prototype.processCompositeGlyph=function(e,t,i){if(t<i.offsets.length-1){var r=i.offsets[t];if(r!==i.offsets[t+1]){var n=this.getTable("glyf");this.offset=n.offset+r;var o=new ls;if(o.numberOfContours=this.readInt16(this.offset),o.xMin=this.readInt16(this.offset),o.yMin=this.readInt16(this.offset),o.xMax=this.readInt16(this.offset),o.yMax=this.readInt16(this.offset),o.numberOfContours<0)for(var s=0;;){var a=this.readUInt16(this.offset),c=this.readUInt16(this.offset);if(e.containsKey(c)||e.setValue(c,0),0===(a&Yn.MoreComponents))break;s=0!==(a&Yn.Arg1And2AreWords)?4:2,0!==(a&Yn.WeHaveScale)?s+=2:0!==(a&Yn.WeHaveAnXyScale)?s+=4:0!==(a&Yn.WeHaveTwoByTwo)&&(s+=8),this.offset+=s}}}},e.prototype.generateGlyphTable=function(e,t,i,r){i=[];var n=e.keys();n.sort(function(e,t){return e-t});for(var o=0,s=0;s<n.length;s++){var a=n[s];t.offsets.length>0&&(o+=t.offsets[a+1]-t.offsets[a])}var c=this.align(o);r=[];for(s=0;s<c;s++)r.push(0);var h=0,u=0,l=this.getTable("glyf");for(s=0;s<t.offsets.length;s++)if(i.push(h),u<n.length&&n[u]===s){++u,i[s]=h;var p=t.offsets[s],d=t.offsets[s+1]-p;if(d>0)this.offset=l.offset+p,r=this.read(r,h,d).buffer,h+=d}return{glyphTableSize:o,newLocaTable:i,newGlyphTable:r}},e.prototype.updateLocaTable=function(e,t,i){if(null===e)throw new Error("Argument Null Exception : newLocaTable");for(var r=t?2*e.length:4*e.length,n=this.align(r),o=new ps(n),s=0;s<e.length;s++){var a=e[s];t?(a/=2,o.writeShort(a)):o.writeInt(a)}return{newLocaUpdated:o.data,newLocaSize:r}},e.prototype.align=function(e){return e+3&-4},e.prototype.getFontProgram=function(e,t,i,r){if(null===e)throw new Error("Argument Null Exception : newLocaTableOut");if(null===t)throw new Error("Argument Null Exception : newGlyphTable");this.tableNames;var n=this.getFontProgramLength(e,t,0),o=n.fontProgramLength,s=n.numTables,a=new ps(o);a.writeInt(65536),a.writeShort(s);var c=this.entrySelectors[s];return a.writeShort(16*(1<<(31&c))),a.writeShort(c),a.writeShort(16*(s-(1<<(31&c)))),this.writeCheckSums(a,s,e,t,i,r),this.writeGlyphs(a,e,t),a.data},e.prototype.getFontProgramLength=function(e,t,i){if(null===e)throw new Error("Argument Null Exception : newLocaTableOut");if(null===t)throw new Error("Argument Null Exception : newGlyphTable");i=2;for(var r=this.tableNames,n=0,o=0;o<r.length;o++){var s=r[o];if("glyf"!==s&&"loca"!==s){var a=this.getTable(s);a.empty||(++i,n+=this.align(a.length))}}return n+=e.length,n+=t.length,{fontProgramLength:n+=16*i+12,numTables:i}},e.prototype.writeCheckSums=function(e,t,i,r,n,o){if(null===e)throw new Error("Argument Null Exception : writer");if(null===i)throw new Error("Argument Null Exception : newLocaTableOut");if(null===r)throw new Error("Argument Null Exception : newGlyphTable");for(var s=this.tableNames,a=16*t+12,c=0,h=0;h<s.length;h++){var u=s[h],l=this.getTable(u);if(!l.empty){if(e.writeString(u),"glyf"===u){var p=this.calculateCheckSum(r);e.writeInt(p),c=n}else if("loca"===u){p=this.calculateCheckSum(i);e.writeInt(p),c=o}else e.writeInt(l.checksum),c=l.length;e.writeUInt(a),e.writeUInt(c),a+=this.align(c)}}},e.prototype.calculateCheckSum=function(e){if(null===e)throw new Error("Argument Null Exception : bytes");for(var t=0,i=0,r=0,n=0,o=0,s=0;s<(e.length+1)/4;s++)o+=255&e[t++],n+=255&e[t++],r+=255&e[t++],i+=255&e[t++];var a=i;return a+=r<<8,a+=n<<16,a+=o<<24},e.prototype.writeGlyphs=function(e,t,i){if(null===e)throw new Error("Argument Null Exception : writer");if(null===t)throw new Error("Argument Null Exception : newLocaTableOut");if(null===i)throw new Error("Argument Null Exception : newGlyphTable");for(var r=this.tableNames,n=0;n<r.length;n++){var o=r[n],s=this.getTable(o);if(!s.empty)if("glyf"===o)e.writeBytes(i);else if("loca"===o)e.writeBytes(t);else{for(var a=this.align(s.length),c=[],h=0;h<a;h++)c.push(0);this.offset=s.offset;var u=this.read(c,0,s.length);e.writeBytes(u.buffer)}}},e.prototype.setOffset=function(e){this.offset=e},e.prototype.createInternals=function(){this.metrics=new $o;var e=this.readNameTable(),t=this.readHeadTable();this.bIsLocaShort=0===t.indexToLocalFormat;var i=this.readHorizontalHeaderTable(),r=this.readOS2Table(),n=this.readPostTable();this.width=this.readWidthTable(i.numberOfHMetrics,t.unitsPerEm);var o=this.readCmapTable();this.initializeMetrics(e,t,i,r,n,o)},e.prototype.getGlyph=function(e){if("number"==typeof e){var t=null;return this.metrics.isSymbol||null==this.microsoftGlyphs?this.metrics.isSymbol&&null!=this.macintoshGlyphs&&this.macintoshGlyphs.containsKey(e)&&(t=this.macintoshGlyphs.getValue(e)):this.microsoftGlyphs.containsKey(e)&&(t=this.microsoftGlyphs.getValue(e)),null!=t?t:this.getDefaultGlyph()}var i=null,r=e.charCodeAt(0);return this.metrics.isSymbol||null===this.microsoft?(this.metrics.isSymbol&&null!==this.macintosh||this.isMacTTF)&&(0!==this.maxMacIndex?r%=this.maxMacIndex+1:r=61440==(65280&r)?255&r:r,this.macintosh.containsKey(r)&&(i=this.macintosh.getValue(r),this.isFontPresent=!0)):this.microsoft.containsKey(r)?(i=this.microsoft.getValue(r),r!==Zn.whiteSpace.charCodeAt(0)&&(this.isFontPresent=!0)):r!==Zn.whiteSpace.charCodeAt(0)&&(this.isFontPresent=!1),e===Zn.whiteSpace&&null===i&&(i=new ss),null!==i?i:this.getDefaultGlyph()},e.prototype.getGlyphChars=function(e){if(null==e)throw new Error("Argument Null Exception : chars");for(var t=new Pr,i=e.keys(),r=0;r<i.length;r++){var n=i[r],o=this.getGlyph(n);o.empty||t.setValue(o.index,n.charCodeAt(0))}return t},e.prototype.getAllGlyphs=function(){for(var e=[],t=new ss,i=0,r=0;r<this.width.length;r++){var n=this.width[r];t.index=i,t.width=n,e.push(t),i++}return e},e.prototype.readFontProgram=function(e){var t=this.getGlyphChars(e),i=this.readLocaTable(this.bIsLocaShort);t.size()<e.size()&&(this.missedGlyphs=e.size()-t.size()),this.updateGlyphChars(t,i);var r=this.generateGlyphTable(t,i,null,null),n=r.glyphTableSize,o=r.newLocaTable,s=r.newGlyphTable,a=this.updateLocaTable(o,this.bIsLocaShort,null),c=a.newLocaSize,h=a.newLocaUpdated;return this.getFontProgram(h,s,n,c)},e.prototype.convertString=function(e){if(null===e)throw new Error("Argument Null Exception : text");for(var t="",i=0;i<e.length;i++){var r=e[i],n=this.getGlyph(r);n.empty||(t+=String.fromCharCode(n.index))}return t},e.prototype.getCharWidth=function(e){var t=this.getGlyph(e);return(t=t.empty?this.getDefaultGlyph():t).empty?0:t.width},e.prototype.readString=function(e,t){if(void 0===t)return this.readString(e,!1);var i="";if(t)for(var r=0;r<e;r++)r%2!=0&&(i+=String.fromCharCode(this.fontData[this.offset])),this.offset+=1;else for(r=0;r<e;r++)i+=String.fromCharCode(this.fontData[this.offset]),this.offset+=1;return i},e.prototype.readFixed=function(e){return this.readInt16(e)+this.readInt16(e+2)/16384},e.prototype.readInt32=function(e){var t=this.fontData[e+3],i=this.fontData[e+2],r=this.fontData[e+1],n=this.fontData[e];return this.offset+=4,t+(i<<8)+(r<<16)+(n<<24)},e.prototype.readUInt32=function(e){var t=this.fontData[e+3],i=this.fontData[e+2],r=this.fontData[e+1],n=this.fontData[e];return this.offset+=4,t|i<<8|r<<16|n<<24},e.prototype.readInt16=function(e){var t=(this.fontData[e]<<8)+this.fontData[e+1];return t=32768&t?t-65536:t,this.offset+=2,t},e.prototype.readInt64=function(e){var t=this.readInt32(e+4),i=4294967296*this.readInt32(e)+t;return t<0&&(i+=4294967296),i},e.prototype.readUInt16=function(e){var t=this.fontData[e]<<8|this.fontData[e+1];return this.offset+=2,t},e.prototype.readUshortArray=function(e){for(var t=[],i=0;i<e;i++)t[i]=this.readUInt16(this.offset);return t},e.prototype.readBytes=function(e){for(var t=[],i=0;i<e;i++)t.push(this.fontData[this.offset]),this.offset+=1;return t},e.prototype.readByte=function(e){var t=this.fontData[e];return this.offset+=1,t},e.prototype.read=function(e,t,i){if(null===e)throw new Error("Argument Null Exception : buffer");var r=0,n=0;do{for(var o=0;o<i-r&&this.offset+o<this.fontData.length;o++)e[t+o]=this.fontData[this.offset+o];n=i-r,this.offset+=n,r+=n}while(r<i);return{buffer:e,written:r}},e}(),gs=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),fs=function(){function e(){this.lineGap=0}return e.prototype.getAscent=function(e){return this.ascent*to.charSizeMultiplier*this.getSize(e)},e.prototype.getDescent=function(e){return this.descent*to.charSizeMultiplier*this.getSize(e)},e.prototype.getLineGap=function(e){return this.lineGap*to.charSizeMultiplier*this.getSize(e)},e.prototype.getHeight=function(e){return this.getDescent(e)<0?this.getAscent(e)-this.getDescent(e)+this.getLineGap(e):this.getAscent(e)+this.getDescent(e)+this.getLineGap(e)},e.prototype.getSize=function(e){var t=this.size;if(null!=e)switch(e.subSuperScript){case An.SubScript:t/=this.subScriptSizeFactor;break;case An.SuperScript:t/=this.superscriptSizeFactor}return t},e.prototype.clone=function(){return this.widthTable=Ms.clone(),this},Object.defineProperty(e.prototype,"widthTable",{get:function(){return this.internalWidthTable},set:function(e){this.internalWidthTable=e},enumerable:!0,configurable:!0}),e}(),Ms=function(){function e(){}return e.clone=function(){return null},e}(),ms=function(e){function t(t){var i=e.call(this)||this;if(null==t)throw new Error("ArgumentNullException:widths");return i.widths=t,i}return gs(t,e),t.prototype.items=function(e){if(e<0||e>=this.widths.length)throw new Error("ArgumentOutOfRangeException:index, The character is not supported by the font.");return this.widths[e]},Object.defineProperty(t.prototype,"length",{get:function(){return this.widths.length},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return this.widths=this.widths,this},t.prototype.toArray=function(){return new qr(this.widths)},t}(Ms),ys=function(){function e(e,t){if(this.nameString="ABCDEFGHIJKLMNOPQRSTUVWXYZ",this.dictionaryProperties=new Yr,this.isCompress=!1,this.isEmbedFont=!1,this.cmapPrefix="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap"+Qr.newLine+"/CIDSystemInfo << /Registry (Adobe)/Ordering (UCS)/Supplement 0>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange"+Qr.newLine,this.cmapEndCodespaceRange="endcodespacerange"+Qr.newLine,this.cmapBeginRange="beginbfrange"+Qr.newLine,this.cmapEndRange="endbfrange"+Qr.newLine,this.cmapSuffix="endbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend end"+Qr.newLine,null==e)throw new Error("ArgumentNullException:base64String");this.fontSize=t,this.fontString=e,this.Initialize()}return e.prototype.getCharWidth=function(e){return this.ttfReader.getCharWidth(e)},e.prototype.getLineWidth=function(e){for(var t=0,i=0,r=e.length;i<r;i++){var n=e[i];t+=this.getCharWidth(n)}return t},e.prototype.Initialize=function(){var e=new Ro(this.fontString.length);e.writeFromBase64String(this.fontString),this.fontData=e.internalBuffer,this.ttfReader=new ds(this.fontData),this.ttfMetrics=this.ttfReader.metrics},e.prototype.createInternals=function(){this.fontDictionary=new Rr,this.fontProgram=new cn,this.cmap=new cn,this.descendantFont=new Rr,this.metrics=new fs,this.ttfReader.createInternals(),this.ttfMetrics=this.ttfReader.metrics,this.initializeMetrics(),this.subsetName=this.getFontName(),this.createDescendantFont(),this.createCmap(),this.createFontDictionary(),this.createFontProgram()},e.prototype.getInternals=function(){return this.fontDictionary},e.prototype.initializeMetrics=function(){var e=this.ttfReader.metrics;this.metrics.ascent=e.macAscent,this.metrics.descent=e.macDescent,this.metrics.height=e.macAscent-e.macDescent+e.lineGap,this.metrics.name=e.fontFamily,this.metrics.postScriptName=e.postScriptName,this.metrics.size=this.fontSize,this.metrics.widthTable=new ms(e.widthTable),this.metrics.lineGap=e.lineGap,this.metrics.subScriptSizeFactor=e.subScriptSizeFactor,this.metrics.superscriptSizeFactor=e.superscriptSizeFactor,this.metrics.isBold=e.isBold},e.prototype.getFontName=function(){for(var e,t="",i=0;i<6;i++){var r=Math.floor(26*Math.random())+0;t+=this.nameString[r]}return t+="+",e=(t+=this.ttfReader.metrics.postScriptName).toString(),e=this.formatName(e)},e.prototype.formatName=function(e){var t=e.replace("(","#28");return(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(")","#29")).replace("[","#5B")).replace("]","#5D")).replace("<","#3C")).replace(">","#3E")).replace("{","#7B")).replace("}","#7D")).replace("/","#2F")).replace("%","#25")).replace(" ","#20")},e.prototype.createDescendantFont=function(){this.descendantFont.isResource=!0,this.descendantFont.descendantFontBeginSave=new Fr(this),this.descendantFont.items.setValue(this.dictionaryProperties.type,new Ur(this.dictionaryProperties.font)),this.descendantFont.items.setValue(this.dictionaryProperties.subtype,new Ur(this.dictionaryProperties.cIDFontType2)),this.descendantFont.items.setValue(this.dictionaryProperties.baseFont,new Ur(this.subsetName)),this.descendantFont.items.setValue(this.dictionaryProperties.cIDToGIDMap,new Ur(this.dictionaryProperties.identity)),this.descendantFont.items.setValue(this.dictionaryProperties.dw,new Hr(1e3)),this.fontDescriptor=this.createFontDescriptor(),this.descendantFont.items.setValue(this.dictionaryProperties.fontDescriptor,new vn(this.fontDescriptor));var e=this.createSystemInfo();this.descendantFont.items.setValue(this.dictionaryProperties.cIDSystemInfo,e)},e.prototype.createFontDescriptor=function(){var e=new Rr,t=this.ttfReader.metrics;return e.isResource=!0,e.items.setValue(this.dictionaryProperties.type,new Ur(this.dictionaryProperties.fontDescriptor)),e.items.setValue(this.dictionaryProperties.fontName,new Ur(this.subsetName)),e.items.setValue(this.dictionaryProperties.flags,new Hr(this.getDescriptorFlags())),e.items.setValue(this.dictionaryProperties.fontBBox,qr.fromRectangle(this.getBoundBox())),e.items.setValue(this.dictionaryProperties.missingWidth,new Hr(t.widthTable[32])),e.items.setValue(this.dictionaryProperties.stemV,new Hr(t.stemV)),e.items.setValue(this.dictionaryProperties.italicAngle,new Hr(t.italicAngle)),e.items.setValue(this.dictionaryProperties.capHeight,new Hr(t.capHeight)),e.items.setValue(this.dictionaryProperties.ascent,new Hr(t.winAscent)),e.items.setValue(this.dictionaryProperties.descent,new Hr(t.winDescent)),e.items.setValue(this.dictionaryProperties.leading,new Hr(t.leading)),e.items.setValue(this.dictionaryProperties.avgWidth,new Hr(t.widthTable[32])),e.items.setValue(this.dictionaryProperties.fontFile2,new vn(this.fontProgram)),e.items.setValue(this.dictionaryProperties.maxWidth,new Hr(t.widthTable[32])),e.items.setValue(this.dictionaryProperties.xHeight,new Hr(0)),e.items.setValue(this.dictionaryProperties.stemH,new Hr(0)),e},e.prototype.createCmap=function(){this.cmap.cmapBeginSave=new hn(this)},e.prototype.createFontDictionary=function(){this.fontDictionary.isResource=!0,this.fontDictionary.fontDictionaryBeginSave=new Br(this),this.fontDictionary.items.setValue(this.dictionaryProperties.type,new Ur(this.dictionaryProperties.font)),this.fontDictionary.items.setValue(this.dictionaryProperties.baseFont,new Ur(this.subsetName)),this.fontDictionary.items.setValue(this.dictionaryProperties.subtype,new Ur(this.dictionaryProperties.type0)),this.fontDictionary.items.setValue(this.dictionaryProperties.encoding,new Ur(this.dictionaryProperties.identityH));var e=new qr,t=new vn(this.descendantFont);e.isFont=!0,e.add(t),this.fontDictionary.items.setValue(this.dictionaryProperties.descendantFonts,e)},e.prototype.createFontProgram=function(){this.fontProgram.fontProgramBeginSave=new un(this)},e.prototype.createSystemInfo=function(){var e=new Rr;return e.items.setValue(this.dictionaryProperties.registry,new bn("Adobe")),e.items.setValue(this.dictionaryProperties.ordering,new bn(this.dictionaryProperties.identity)),e.items.setValue(this.dictionaryProperties.supplement,new Hr(0)),e},e.prototype.descendantFontBeginSave=function(){if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){var e=this.getDescendantWidth();null!==e&&this.descendantFont.items.setValue(this.dictionaryProperties.w,e)}},e.prototype.cmapBeginSave=function(){this.generateCmap()},e.prototype.fontDictionaryBeginSave=function(){null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0&&!this.fontDictionary.containsKey(this.dictionaryProperties.toUnicode)&&this.fontDictionary.items.setValue(this.dictionaryProperties.toUnicode,new vn(this.cmap))},e.prototype.fontProgramBeginSave=function(){this.isCompress=!0,this.generateFontProgram()},e.prototype.getDescendantWidth=function(){var e=new qr;if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){for(var t=[],i=this.usedChars.keys(),r=0;r<i.length;r++){var n=i[r];(h=this.ttfReader.getGlyph(n)).empty||t.push(h)}t.sort(function(e,t){return e.index-t.index});var o=0,s=0,a=!1,c=new qr;for(r=0;r<t.length;r++){var h=t[r];a||(a=!0,o=h.index,s=h.index-1),(s+1!==h.index||r+1===t.length)&&t.length>1&&(e.add(new Hr(o)),0!==r&&e.add(c),o=h.index,c=new qr),c.add(new Hr(h.width)),r+1===t.length&&(e.add(new Hr(o)),e.add(c)),s=h.index}}return e},e.prototype.generateCmap=function(){if(null!==this.usedChars&&void 0!==this.usedChars&&this.usedChars.size()>0){var e=this.ttfReader.getGlyphChars(this.usedChars);if(e.size()>0){var t=e.keys().sort(),i=t[0],r=t[t.length-1],n=this.toHexString(i,!1)+this.toHexString(r,!1)+Qr.newLine,o="";o+=this.cmapPrefix,o+=n,o+=this.cmapEndCodespaceRange;for(var s=0,a=0;a<t.length;a++){0===s&&(0!==a&&(o+=this.cmapEndRange),o+=s=Math.min(100,t.length-a),o+=Qr.whiteSpace,o+=this.cmapBeginRange),s-=1;var c=t[a];o+=this.toHexString(c,!0)+this.toHexString(c,!0)+this.toHexString(e.getValue(c),!0)+"\n"}o+=this.cmapSuffix,this.cmap.clearStream(),this.cmap.isResource=!0,this.cmap.write(o)}}},e.prototype.generateFontProgram=function(){var e;this.usedChars=null===this.usedChars||void 0===this.usedChars?new Pr:this.usedChars,this.ttfReader.setOffset(0),e=this.ttfReader.readFontProgram(this.usedChars),this.fontProgram.clearStream(),this.fontProgram.isResource=!0,this.fontProgram.writeBytes(e)},e.prototype.getDescriptorFlags=function(){var e=0,t=this.ttfReader.metrics;return t.isFixedPitch&&(e|=Qn.FixedPitch),t.isSymbol?e|=Qn.Symbolic:e|=Qn.Nonsymbolic,t.isItalic&&(e|=Qn.Italic),t.isBold&&(e|=Qn.ForceBold),e},e.prototype.getBoundBox=function(){var e=this.ttfReader.metrics.fontBox,t=Math.abs(e.right-e.left),i=Math.abs(e.top-e.bottom);return new Bn(e.left,e.bottom,t,i)},e.prototype.toHexString=function(e,t){var i=e.toString(16);return t&&(i=i.toUpperCase()),"<0000".substring(0,5-i.length)+i+">"},e.prototype.setSymbols=function(e){if(null===e)throw new Error("Argument Null Exception : text");null!==this.usedChars&&void 0!==this.usedChars||(this.usedChars=new Pr);for(var t=0;t<e.length;t++){var i=e[t];this.usedChars.setValue(i,String.fromCharCode(0))}!1===this.isEmbedFont&&this.getDescendantWidth()},e}(),Ns=function(){function e(){this.arabicCharTable=[["ء","ﺀ"],["آ","ﺁ","ﺂ"],["أ","ﺃ","ﺄ"],["ؤ","ﺅ","ﺆ"],["إ","ﺇ","ﺈ"],["ئ","ﺉ","ﺊ","ﺋ","ﺌ"],["ا","ﺍ","ﺎ"],["ب","ﺏ","ﺐ","ﺑ","ﺒ"],["ة","ﺓ","ﺔ"],["ت","ﺕ","ﺖ","ﺗ","ﺘ"],["ث","ﺙ","ﺚ","ﺛ","ﺜ"],["ج","ﺝ","ﺞ","ﺟ","ﺠ"],["ح","ﺡ","ﺢ","ﺣ","ﺤ"],["خ","ﺥ","ﺦ","ﺧ","ﺨ"],["د","ﺩ","ﺪ"],["ذ","ﺫ","ﺬ"],["ر","ﺭ","ﺮ"],["ز","ﺯ","ﺰ"],["س","ﺱ","ﺲ","ﺳ","ﺴ"],["ش","ﺵ","ﺶ","ﺷ","ﺸ"],["ص","ﺹ","ﺺ","ﺻ","ﺼ"],["ض","ﺽ","ﺾ","ﺿ","ﻀ"],["ط","ﻁ","ﻂ","ﻃ","ﻄ"],["ظ","ﻅ","ﻆ","ﻇ","ﻈ"],["ع","ﻉ","ﻊ","ﻋ","ﻌ"],["غ","ﻍ","ﻎ","ﻏ","ﻐ"],["ـ","ـ","ـ","ـ","ـ"],["ف","ﻑ","ﻒ","ﻓ","ﻔ"],["ق","ﻕ","ﻖ","ﻗ","ﻘ"],["ك","ﻙ","ﻚ","ﻛ","ﻜ"],["ل","ﻝ","ﻞ","ﻟ","ﻠ"],["م","ﻡ","ﻢ","ﻣ","ﻤ"],["ن","ﻥ","ﻦ","ﻧ","ﻨ"],["ه","ﻩ","ﻪ","ﻫ","ﻬ"],["و","ﻭ","ﻮ"],["ى","ﻯ","ﻰ","ﯨ","ﯩ"],["ي","ﻱ","ﻲ","ﻳ","ﻴ"],["ٱ","ﭐ","ﭑ"],["ٹ","ﭦ","ﭧ","ﭨ","ﭩ"],["ٺ","ﭞ","ﭟ","ﭠ","ﭡ"],["ٻ","ﭒ","ﭓ","ﭔ","ﭕ"],["پ","ﭖ","ﭗ","ﭘ","ﭙ"],["ٿ","ﭢ","ﭣ","ﭤ","ﭥ"],["ڀ","ﭚ","ﭛ","ﭜ","ﭝ"],["ڃ","ﭶ","ﭷ","ﭸ","ﭹ"],["ڄ","ﭲ","ﭳ","ﭴ","ﭵ"],["چ","ﭺ","ﭻ","ﭼ","ﭽ"],["ڇ","ﭾ","ﭿ","ﮀ","ﮁ"],["ڈ","ﮈ","ﮉ"],["ڌ","ﮄ","ﮅ"],["ڍ","ﮂ","ﮃ"],["ڎ","ﮆ","ﮇ"],["ڑ","ﮌ","ﮍ"],["ژ","ﮊ","ﮋ"],["ڤ","ﭪ","ﭫ","ﭬ","ﭭ"],["ڦ","ﭮ","ﭯ","ﭰ","ﭱ"],["ک","ﮎ","ﮏ","ﮐ","ﮑ"],["ڭ","ﯓ","ﯔ","ﯕ","ﯖ"],["گ","ﮒ","ﮓ","ﮔ","ﮕ"],["ڱ","ﮚ","ﮛ","ﮜ","ﮝ"],["ڳ","ﮖ","ﮗ","ﮘ","ﮙ"],["ں","ﮞ","ﮟ"],["ڻ","ﮠ","ﮡ","ﮢ","ﮣ"],["ھ","ﮪ","ﮫ","ﮬ","ﮭ"],["ۀ","ﮤ","ﮥ"],["ہ","ﮦ","ﮧ","ﮨ","ﮩ"],["ۅ","ﯠ","ﯡ"],["ۆ","ﯙ","ﯚ"],["ۇ","ﯗ","ﯘ"],["ۈ","ﯛ","ﯜ"],["ۉ","ﯢ","ﯣ"],["ۋ","ﯞ","ﯟ"],["ی","ﯼ","ﯽ","ﯾ","ﯿ"],["ې","ﯤ","ﯥ","ﯦ","ﯧ"],["ے","ﮮ","ﮯ"],["ۓ","ﮰ","ﮱ"]],this.alef="ا",this.alefHamza="أ",this.alefHamzaBelow="إ",this.alefMadda="آ",this.lam="ل",this.hamza="ء",this.zeroWidthJoiner="",this.hamzaAbove="ٔ",this.hamzaBelow="ٕ",this.wawHamza="ؤ",this.yehHamza="ئ",this.waw="و",this.alefMaksura="ى",this.yeh="ي",this.farsiYeh="ی",this.shadda="ّ",this.madda="ٓ",this.lwa="ﻻ",this.lwawh="ﻷ",this.lwawhb="ﻹ",this.lwawm="ﻵ",this.bwhb="ۓ",this.fathatan="ً",this.superScriptalef="ٰ",this.vowel=1,this.arabicMapTable=new Pr;for(var e=0;e<this.arabicCharTable.length;e++)this.arabicMapTable.setValue(this.arabicCharTable[e][0],this.arabicCharTable[e])}return e.prototype.getCharacterShape=function(e,t){if(e>=this.hamza&&e<=this.bwhb){if(this.arabicMapTable.getValue(e))return this.arabicMapTable.getValue(e)[t+1]}else if(e>=this.lwawm&&e<=this.lwa)return e;return e},e.prototype.shape=function(e,t){for(var i="",r="",n=0;n<e.length;n++){var o=e[n];if(o>=""&&o<="ۿ")r+=o;else{if(r.length>0)i+=this.doShape(r.toString(),0),r="";i+=o}}r.length>0&&(i+=this.doShape(r.toString(),0));return i.toString()},e.prototype.doShape=function(e,t){for(var i="",r=0,n=0,o="",s=new js,a=new js;n<e.length;)if(o=e[n++],0===this.ligature(o,a)){var c=this.getShapeCount(o);r=1===c?0:2,s.Shapes>2&&(r+=1),r%=a.Shapes,a.Value=this.getCharacterShape(a.Value,r),i=this.append(i,s,t),s=a,(a=new js).Value=o,a.Shapes=c,a.Ligature++}return r=s.Shapes>2?1:0,r%=a.Shapes,a.Value=this.getCharacterShape(a.Value,r),i=this.append(i,s,t),(i=this.append(i,a,t)).toString()},e.prototype.append=function(e,t,i){return""!==t.Value&&(e+=t.Value,t.Ligature-=1,""!==t.Type&&(0===(i&this.vowel)?(e+=t.Type,t.Ligature-=1):t.Ligature-=1),""!==t.vowel&&(0===(i&this.vowel)?(e+=t.vowel,t.Ligature-=1):t.Ligature-=1)),e},e.prototype.ligature=function(e,t){if(""!==t.Value){var i=0;if(e>=this.fathatan&&e<=this.hamzaBelow||e===this.superScriptalef){if(i=1,""!==t.vowel&&e!==this.shadda&&(i=2),e===this.shadda){if(null!=t.Type)return 0;t.Type=this.shadda}else e===this.hamzaBelow?t.Value===this.alef?(t.Value=this.alefHamzaBelow,i=2):e===this.lwa?(t.Value=this.lwawhb,i=2):t.Type=this.hamzaBelow:e===this.hamzaAbove?t.Value===this.alef?(t.Value=this.alefHamza,i=2):t.Value===this.lwa?(t.Value=this.lwawh,i=2):t.Value===this.waw?(t.Value=this.wawHamza,i=2):t.Value===this.yeh||t.Value===this.alefMaksura||t.Value===this.farsiYeh?(t.Value=this.yehHamza,i=2):t.Type=this.hamzaAbove:e===this.madda?t.Value===this.alef&&(t.Value=this.alefMadda,i=2):t.vowel=e;return 1===i&&t.Ligature++,i}return""!==t.vowel?0:(t.Value===this.lam&&(e===this.alef?(t.Value=this.lwa,t.Shapes=2,i=3):e===this.alefHamza?(t.Value=this.lwawh,t.Shapes=2,i=3):e===this.alefHamzaBelow?(t.Value=this.lwawhb,t.Shapes=2,i=3):e===this.alefMadda&&(t.Value=this.lwawm,t.Shapes=2,i=3)),i)}return 0},e.prototype.getShapeCount=function(e){if(e>=this.hamza&&e<=this.bwhb&&!(e>=this.fathatan&&e<=this.hamzaBelow||e===this.superScriptalef)){if(this.arabicMapTable.getValue(e))return this.arabicMapTable.getValue(e).length-1}else if(e===this.zeroWidthJoiner)return 4;return 1},e}(),js=function(){function e(){this.shapeValue="",this.shapeType="",this.shapeVowel="",this.shapeLigature=0,this.shapeShapes=1}return Object.defineProperty(e.prototype,"Value",{get:function(){return this.shapeValue},set:function(e){this.shapeValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Type",{get:function(){return this.shapeType},set:function(e){this.shapeType=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"vowel",{get:function(){return this.shapeVowel},set:function(e){this.shapeVowel=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Ligature",{get:function(){return this.shapeLigature},set:function(e){this.shapeLigature=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"Shapes",{get:function(){return this.shapeShapes},set:function(e){this.shapeShapes=e},enumerable:!0,configurable:!0}),e}(),Ds=function(){function e(){this.indexes=[],this.indexLevels=[],this.mirroringShapeCharacters=new Pr,this.update()}return e.prototype.doMirrorShaping=function(e){for(var t=[],i=0;i<e.length;i++)1&~this.indexLevels[i]||!this.mirroringShapeCharacters.containsKey(e[i].charCodeAt(0))?t[i]=e[i].toString():t[i]=String.fromCharCode(this.mirroringShapeCharacters.getValue(e[i].charCodeAt(0)));for(var r="",n=0;n<t.length;n++)r+=t[n];return r},e.prototype.getLogicalToVisualString=function(e,t){var i=new Is;this.indexLevels=i.getVisualOrder(e,t),this.setDefaultIndexLevel(),this.doOrder(0,this.indexLevels.length-1);for(var r=this.doMirrorShaping(e),n="",o=0;o<this.indexes.length;o++){n+=r[this.indexes[o]]}return n.toString()},e.prototype.setDefaultIndexLevel=function(){for(var e=0;e<this.indexLevels.length;e++)this.indexes[e]=e},e.prototype.doOrder=function(e,t){for(var i=this.indexLevels[e],r=i,n=i,o=i,s=e+1;s<=t;++s){var a=this.indexLevels[s];a>i?i=a:a<r&&(r=a),n&=a,o|=a}if(1&o)if(1&~n)for(r|=1;i>=r;){for(var c=e;;){for(;c<=t&&!(this.indexLevels[c]>=i);)c+=1;if(c>t)break;for(var h=c+1;h<=t&&!(this.indexLevels[h]<i);)h+=1;this.reArrange(c,h),c=h+1}i-=1}else this.reArrange(e,t+1)},e.prototype.reArrange=function(e,t){var i=(e+t)/2;for(--t;e<i;++e,--t){var r=this.indexes[e];this.indexes[e]=this.indexes[t],this.indexes[t]=r}},e.prototype.update=function(){this.mirroringShapeCharacters.setValue(40,41),this.mirroringShapeCharacters.setValue(41,40),this.mirroringShapeCharacters.setValue(60,62),this.mirroringShapeCharacters.setValue(62,60),this.mirroringShapeCharacters.setValue(91,93),this.mirroringShapeCharacters.setValue(93,91),this.mirroringShapeCharacters.setValue(123,125),this.mirroringShapeCharacters.setValue(125,123),this.mirroringShapeCharacters.setValue(171,187),this.mirroringShapeCharacters.setValue(187,171),this.mirroringShapeCharacters.setValue(8249,8250),this.mirroringShapeCharacters.setValue(8250,8249),this.mirroringShapeCharacters.setValue(8261,8262),this.mirroringShapeCharacters.setValue(8262,8261),this.mirroringShapeCharacters.setValue(8317,8318),this.mirroringShapeCharacters.setValue(8318,8317),this.mirroringShapeCharacters.setValue(8333,8334),this.mirroringShapeCharacters.setValue(8334,8333),this.mirroringShapeCharacters.setValue(8712,8715),this.mirroringShapeCharacters.setValue(8713,8716),this.mirroringShapeCharacters.setValue(8714,8717),this.mirroringShapeCharacters.setValue(8715,8712),this.mirroringShapeCharacters.setValue(8716,8713),this.mirroringShapeCharacters.setValue(8717,8714),this.mirroringShapeCharacters.setValue(8725,10741),this.mirroringShapeCharacters.setValue(8764,8765),this.mirroringShapeCharacters.setValue(8765,8764),this.mirroringShapeCharacters.setValue(8771,8909),this.mirroringShapeCharacters.setValue(8786,8787),this.mirroringShapeCharacters.setValue(8787,8786),this.mirroringShapeCharacters.setValue(8788,8789),this.mirroringShapeCharacters.setValue(8789,8788),this.mirroringShapeCharacters.setValue(8804,8805),this.mirroringShapeCharacters.setValue(8805,8804),this.mirroringShapeCharacters.setValue(8806,8807),this.mirroringShapeCharacters.setValue(8807,8806),this.mirroringShapeCharacters.setValue(8808,8809),this.mirroringShapeCharacters.setValue(8809,8808),this.mirroringShapeCharacters.setValue(8810,8811),this.mirroringShapeCharacters.setValue(8811,8810),this.mirroringShapeCharacters.setValue(8814,8815),this.mirroringShapeCharacters.setValue(8815,8814),this.mirroringShapeCharacters.setValue(8816,8817),this.mirroringShapeCharacters.setValue(8817,8816),this.mirroringShapeCharacters.setValue(8818,8819),this.mirroringShapeCharacters.setValue(8819,8818),this.mirroringShapeCharacters.setValue(8820,8821),this.mirroringShapeCharacters.setValue(8821,8820),this.mirroringShapeCharacters.setValue(8822,8823),this.mirroringShapeCharacters.setValue(8823,8822),this.mirroringShapeCharacters.setValue(8824,8825),this.mirroringShapeCharacters.setValue(8825,8824),this.mirroringShapeCharacters.setValue(8826,8827),this.mirroringShapeCharacters.setValue(8827,8826),this.mirroringShapeCharacters.setValue(8828,8829),this.mirroringShapeCharacters.setValue(8829,8828),this.mirroringShapeCharacters.setValue(8830,8831),this.mirroringShapeCharacters.setValue(8831,8830),this.mirroringShapeCharacters.setValue(8832,8833),this.mirroringShapeCharacters.setValue(8833,8832),this.mirroringShapeCharacters.setValue(8834,8835),this.mirroringShapeCharacters.setValue(8835,8834),this.mirroringShapeCharacters.setValue(8836,8837),this.mirroringShapeCharacters.setValue(8837,8836),this.mirroringShapeCharacters.setValue(8838,8839),this.mirroringShapeCharacters.setValue(8839,8838),this.mirroringShapeCharacters.setValue(8840,8841),this.mirroringShapeCharacters.setValue(8841,8840),this.mirroringShapeCharacters.setValue(8842,8843),this.mirroringShapeCharacters.setValue(8843,8842),this.mirroringShapeCharacters.setValue(8847,8848),this.mirroringShapeCharacters.setValue(8848,8847),this.mirroringShapeCharacters.setValue(8849,8850),this.mirroringShapeCharacters.setValue(8850,8849),this.mirroringShapeCharacters.setValue(8856,10680),this.mirroringShapeCharacters.setValue(8866,8867),this.mirroringShapeCharacters.setValue(8867,8866),this.mirroringShapeCharacters.setValue(8870,10974),this.mirroringShapeCharacters.setValue(8872,10980),this.mirroringShapeCharacters.setValue(8873,10979),this.mirroringShapeCharacters.setValue(8875,10981),this.mirroringShapeCharacters.setValue(8880,8881),this.mirroringShapeCharacters.setValue(8881,8880),this.mirroringShapeCharacters.setValue(8882,8883),this.mirroringShapeCharacters.setValue(8883,8882),this.mirroringShapeCharacters.setValue(8884,8885),this.mirroringShapeCharacters.setValue(8885,8884),this.mirroringShapeCharacters.setValue(8886,8887),this.mirroringShapeCharacters.setValue(8887,8886),this.mirroringShapeCharacters.setValue(8905,8906),this.mirroringShapeCharacters.setValue(8906,8905),this.mirroringShapeCharacters.setValue(8907,8908),this.mirroringShapeCharacters.setValue(8908,8907),this.mirroringShapeCharacters.setValue(8909,8771),this.mirroringShapeCharacters.setValue(8912,8913),this.mirroringShapeCharacters.setValue(8913,8912),this.mirroringShapeCharacters.setValue(8918,8919),this.mirroringShapeCharacters.setValue(8919,8918),this.mirroringShapeCharacters.setValue(8920,8921),this.mirroringShapeCharacters.setValue(8921,8920),this.mirroringShapeCharacters.setValue(8922,8923),this.mirroringShapeCharacters.setValue(8923,8922),this.mirroringShapeCharacters.setValue(8924,8925),this.mirroringShapeCharacters.setValue(8925,8924),this.mirroringShapeCharacters.setValue(8926,8927),this.mirroringShapeCharacters.setValue(8927,8926),this.mirroringShapeCharacters.setValue(8928,8929),this.mirroringShapeCharacters.setValue(8929,8928),this.mirroringShapeCharacters.setValue(8930,8931),this.mirroringShapeCharacters.setValue(8931,8930),this.mirroringShapeCharacters.setValue(8932,8933),this.mirroringShapeCharacters.setValue(8933,8932),this.mirroringShapeCharacters.setValue(8934,8935),this.mirroringShapeCharacters.setValue(8935,8934),this.mirroringShapeCharacters.setValue(8936,8937),this.mirroringShapeCharacters.setValue(8937,8936),this.mirroringShapeCharacters.setValue(8938,8939),this.mirroringShapeCharacters.setValue(8939,8938),this.mirroringShapeCharacters.setValue(8940,8941),this.mirroringShapeCharacters.setValue(8941,8940),this.mirroringShapeCharacters.setValue(8944,8945),this.mirroringShapeCharacters.setValue(8945,8944),this.mirroringShapeCharacters.setValue(8946,8954),this.mirroringShapeCharacters.setValue(8947,8955),this.mirroringShapeCharacters.setValue(8948,8956),this.mirroringShapeCharacters.setValue(8950,8957),this.mirroringShapeCharacters.setValue(8951,8958),this.mirroringShapeCharacters.setValue(8954,8946),this.mirroringShapeCharacters.setValue(8955,8947),this.mirroringShapeCharacters.setValue(8956,8948),this.mirroringShapeCharacters.setValue(8957,8950),this.mirroringShapeCharacters.setValue(8958,8951),this.mirroringShapeCharacters.setValue(8968,8969),this.mirroringShapeCharacters.setValue(8969,8968),this.mirroringShapeCharacters.setValue(8970,8971),this.mirroringShapeCharacters.setValue(8971,8970),this.mirroringShapeCharacters.setValue(9001,9002),this.mirroringShapeCharacters.setValue(9002,9001),this.mirroringShapeCharacters.setValue(10088,10089),this.mirroringShapeCharacters.setValue(10089,10088),this.mirroringShapeCharacters.setValue(10090,10091),this.mirroringShapeCharacters.setValue(10091,10090),this.mirroringShapeCharacters.setValue(10092,10093),this.mirroringShapeCharacters.setValue(10093,10092),this.mirroringShapeCharacters.setValue(10094,10095),this.mirroringShapeCharacters.setValue(10095,10094),this.mirroringShapeCharacters.setValue(10096,10097),this.mirroringShapeCharacters.setValue(10097,10096),this.mirroringShapeCharacters.setValue(10098,10099),this.mirroringShapeCharacters.setValue(10099,10098),this.mirroringShapeCharacters.setValue(10100,10101),this.mirroringShapeCharacters.setValue(10101,10100),this.mirroringShapeCharacters.setValue(10197,10198),this.mirroringShapeCharacters.setValue(10198,10197),this.mirroringShapeCharacters.setValue(10205,10206),this.mirroringShapeCharacters.setValue(10206,10205),this.mirroringShapeCharacters.setValue(10210,10211),this.mirroringShapeCharacters.setValue(10211,10210),this.mirroringShapeCharacters.setValue(10212,10213),this.mirroringShapeCharacters.setValue(10213,10212),this.mirroringShapeCharacters.setValue(10214,10215),this.mirroringShapeCharacters.setValue(10215,10214),this.mirroringShapeCharacters.setValue(10216,10217),this.mirroringShapeCharacters.setValue(10217,10216),this.mirroringShapeCharacters.setValue(10218,10219),this.mirroringShapeCharacters.setValue(10219,10218),this.mirroringShapeCharacters.setValue(10627,10628),this.mirroringShapeCharacters.setValue(10628,10627),this.mirroringShapeCharacters.setValue(10629,10630),this.mirroringShapeCharacters.setValue(10630,10629),this.mirroringShapeCharacters.setValue(10631,10632),this.mirroringShapeCharacters.setValue(10632,10631),this.mirroringShapeCharacters.setValue(10633,10634),this.mirroringShapeCharacters.setValue(10634,10633),this.mirroringShapeCharacters.setValue(10635,10636),this.mirroringShapeCharacters.setValue(10636,10635),this.mirroringShapeCharacters.setValue(10637,10640),this.mirroringShapeCharacters.setValue(10638,10639),this.mirroringShapeCharacters.setValue(10639,10638),this.mirroringShapeCharacters.setValue(10640,10637),this.mirroringShapeCharacters.setValue(10641,10642),this.mirroringShapeCharacters.setValue(10642,10641),this.mirroringShapeCharacters.setValue(10643,10644),this.mirroringShapeCharacters.setValue(10644,10643),this.mirroringShapeCharacters.setValue(10645,10646),this.mirroringShapeCharacters.setValue(10646,10645),this.mirroringShapeCharacters.setValue(10647,10648),this.mirroringShapeCharacters.setValue(10648,10647),this.mirroringShapeCharacters.setValue(10680,8856),this.mirroringShapeCharacters.setValue(10688,10689),this.mirroringShapeCharacters.setValue(10689,10688),this.mirroringShapeCharacters.setValue(10692,10693),this.mirroringShapeCharacters.setValue(10693,10692),this.mirroringShapeCharacters.setValue(10703,10704),this.mirroringShapeCharacters.setValue(10704,10703),this.mirroringShapeCharacters.setValue(10705,10706),this.mirroringShapeCharacters.setValue(10706,10705),this.mirroringShapeCharacters.setValue(10708,10709),this.mirroringShapeCharacters.setValue(10709,10708),this.mirroringShapeCharacters.setValue(10712,10713),this.mirroringShapeCharacters.setValue(10713,10712),this.mirroringShapeCharacters.setValue(10714,10715),this.mirroringShapeCharacters.setValue(10715,10714),this.mirroringShapeCharacters.setValue(10741,8725),this.mirroringShapeCharacters.setValue(10744,10745),this.mirroringShapeCharacters.setValue(10745,10744),this.mirroringShapeCharacters.setValue(10748,10749),this.mirroringShapeCharacters.setValue(10749,10748),this.mirroringShapeCharacters.setValue(10795,10796),this.mirroringShapeCharacters.setValue(10796,10795),this.mirroringShapeCharacters.setValue(10797,10796),this.mirroringShapeCharacters.setValue(10798,10797),this.mirroringShapeCharacters.setValue(10804,10805),this.mirroringShapeCharacters.setValue(10805,10804),this.mirroringShapeCharacters.setValue(10812,10813),this.mirroringShapeCharacters.setValue(10813,10812),this.mirroringShapeCharacters.setValue(10852,10853),this.mirroringShapeCharacters.setValue(10853,10852),this.mirroringShapeCharacters.setValue(10873,10874),this.mirroringShapeCharacters.setValue(10874,10873),this.mirroringShapeCharacters.setValue(10877,10878),this.mirroringShapeCharacters.setValue(10878,10877),this.mirroringShapeCharacters.setValue(10879,10880),this.mirroringShapeCharacters.setValue(10880,10879),this.mirroringShapeCharacters.setValue(10881,10882),this.mirroringShapeCharacters.setValue(10882,10881),this.mirroringShapeCharacters.setValue(10883,10884),this.mirroringShapeCharacters.setValue(10884,10883),this.mirroringShapeCharacters.setValue(10891,10892),this.mirroringShapeCharacters.setValue(10892,10891),this.mirroringShapeCharacters.setValue(10897,10898),this.mirroringShapeCharacters.setValue(10898,10897),this.mirroringShapeCharacters.setValue(10899,10900),this.mirroringShapeCharacters.setValue(10900,10899),this.mirroringShapeCharacters.setValue(10901,10902),this.mirroringShapeCharacters.setValue(10902,10901),this.mirroringShapeCharacters.setValue(10903,10904),this.mirroringShapeCharacters.setValue(10904,10903),this.mirroringShapeCharacters.setValue(10905,10906),this.mirroringShapeCharacters.setValue(10906,10905),this.mirroringShapeCharacters.setValue(10907,10908),this.mirroringShapeCharacters.setValue(10908,10907),this.mirroringShapeCharacters.setValue(10913,10914),this.mirroringShapeCharacters.setValue(10914,10913),this.mirroringShapeCharacters.setValue(10918,10919),this.mirroringShapeCharacters.setValue(10919,10918),this.mirroringShapeCharacters.setValue(10920,10921),this.mirroringShapeCharacters.setValue(10921,10920),this.mirroringShapeCharacters.setValue(10922,10923),this.mirroringShapeCharacters.setValue(10923,10922),this.mirroringShapeCharacters.setValue(10924,10925),this.mirroringShapeCharacters.setValue(10925,10924),this.mirroringShapeCharacters.setValue(10927,10928),this.mirroringShapeCharacters.setValue(10928,10927),this.mirroringShapeCharacters.setValue(10931,10932),this.mirroringShapeCharacters.setValue(10932,10931),this.mirroringShapeCharacters.setValue(10939,10940),this.mirroringShapeCharacters.setValue(10940,10939),this.mirroringShapeCharacters.setValue(10941,10942),this.mirroringShapeCharacters.setValue(10942,10941),this.mirroringShapeCharacters.setValue(10943,10944),this.mirroringShapeCharacters.setValue(10944,10943),this.mirroringShapeCharacters.setValue(10945,10946),this.mirroringShapeCharacters.setValue(10946,10945),this.mirroringShapeCharacters.setValue(10947,10948),this.mirroringShapeCharacters.setValue(10948,10947),this.mirroringShapeCharacters.setValue(10949,10950),this.mirroringShapeCharacters.setValue(10950,10949),this.mirroringShapeCharacters.setValue(10957,10958),this.mirroringShapeCharacters.setValue(10958,10957),this.mirroringShapeCharacters.setValue(10959,10960),this.mirroringShapeCharacters.setValue(10960,10959),this.mirroringShapeCharacters.setValue(10961,10962),this.mirroringShapeCharacters.setValue(10962,10961),this.mirroringShapeCharacters.setValue(10963,10964),this.mirroringShapeCharacters.setValue(10964,10963),this.mirroringShapeCharacters.setValue(10965,10966),this.mirroringShapeCharacters.setValue(10966,10965),this.mirroringShapeCharacters.setValue(10974,8870),this.mirroringShapeCharacters.setValue(10979,8873),this.mirroringShapeCharacters.setValue(10980,8872),this.mirroringShapeCharacters.setValue(10981,8875),this.mirroringShapeCharacters.setValue(10988,10989),this.mirroringShapeCharacters.setValue(10989,10988),this.mirroringShapeCharacters.setValue(10999,11e3),this.mirroringShapeCharacters.setValue(11e3,10999),this.mirroringShapeCharacters.setValue(11001,11002),this.mirroringShapeCharacters.setValue(11002,11001),this.mirroringShapeCharacters.setValue(12296,12297),this.mirroringShapeCharacters.setValue(12297,12296),this.mirroringShapeCharacters.setValue(12298,12299),this.mirroringShapeCharacters.setValue(12299,12298),this.mirroringShapeCharacters.setValue(12300,12301),this.mirroringShapeCharacters.setValue(12301,12300),this.mirroringShapeCharacters.setValue(12302,12303),this.mirroringShapeCharacters.setValue(12303,12302),this.mirroringShapeCharacters.setValue(12304,12305),this.mirroringShapeCharacters.setValue(12305,12304),this.mirroringShapeCharacters.setValue(12308,12309),this.mirroringShapeCharacters.setValue(12309,12308),this.mirroringShapeCharacters.setValue(12310,12311),this.mirroringShapeCharacters.setValue(12311,12310),this.mirroringShapeCharacters.setValue(12312,12313),this.mirroringShapeCharacters.setValue(12313,12312),this.mirroringShapeCharacters.setValue(12314,12315),this.mirroringShapeCharacters.setValue(12315,12314),this.mirroringShapeCharacters.setValue(65288,65289),this.mirroringShapeCharacters.setValue(65289,65288),this.mirroringShapeCharacters.setValue(65308,65310),this.mirroringShapeCharacters.setValue(65310,65308),this.mirroringShapeCharacters.setValue(65339,65341),this.mirroringShapeCharacters.setValue(65341,65339),this.mirroringShapeCharacters.setValue(65371,65373),this.mirroringShapeCharacters.setValue(65373,65371),this.mirroringShapeCharacters.setValue(65375,65376),this.mirroringShapeCharacters.setValue(65376,65375),this.mirroringShapeCharacters.setValue(65378,65379),this.mirroringShapeCharacters.setValue(65379,65378)},e}(),Is=function(){function e(){this.types=[],this.textOrder=-1,this.rtlCharacterTypes=new Array(65536),this.L=0,this.LRE=1,this.LRO=2,this.R=3,this.AL=4,this.RLE=5,this.RLO=6,this.PDF=7,this.EN=8,this.ES=9,this.ET=10,this.AN=11,this.CS=12,this.NSM=13,this.BN=14,this.B=15,this.S=16,this.WS=17,this.ON=18,this.charTypes=[this.L,this.EN,this.BN,this.ES,this.ES,this.S,this.ET,this.ET,this.B,this.AN,this.AN,this.S,this.CS,this.CS,this.WS,this.NSM,this.NSM,this.B,this.BN,27,this.BN,28,30,this.B,31,31,this.S,32,32,this.WS,33,34,this.ON,35,37,this.ET,38,42,this.ON,43,43,this.ET,44,44,this.CS,45,45,this.ET,46,46,this.CS,47,47,this.CS,48,57,this.EN,58,58,this.CS,59,64,this.ON,65,90,this.L,91,96,this.ON,97,122,this.L,123,126,this.ON,127,132,this.BN,133,133,this.B,134,159,this.BN,160,160,this.CS,161,161,this.ON,162,165,this.ET,166,169,this.ON,170,170,this.L,171,175,this.ON,176,177,this.ET,178,179,this.EN,180,180,this.ON,181,181,this.L,182,184,this.ON,185,185,this.EN,186,186,this.L,187,191,this.ON,192,214,this.L,215,215,this.ON,216,246,this.L,247,247,this.ON,248,696,this.L,697,698,this.ON,699,705,this.L,706,719,this.ON,720,721,this.L,722,735,this.ON,736,740,this.L,741,749,this.ON,750,750,this.L,751,767,this.ON,768,855,this.NSM,856,860,this.L,861,879,this.NSM,880,883,this.L,884,885,this.ON,886,893,this.L,894,894,this.ON,895,899,this.L,900,901,this.ON,902,902,this.L,903,903,this.ON,904,1013,this.L,1014,1014,this.ON,1015,1154,this.L,1155,1158,this.NSM,1159,1159,this.L,1160,1161,this.NSM,1162,1417,this.L,1418,1418,this.ON,1419,1424,this.L,1425,1441,this.NSM,1442,1442,this.L,1443,1465,this.NSM,1466,1466,this.L,1467,1469,this.NSM,1470,1470,this.R,1471,1471,this.NSM,1472,1472,this.R,1473,1474,this.NSM,1475,1475,this.R,1476,1476,this.NSM,1477,1487,this.L,1488,1514,this.R,1515,1519,this.L,1520,1524,this.R,1525,1535,this.L,1536,1539,this.AL,1540,1547,this.L,1548,1548,this.CS,1549,1549,this.AL,1550,1551,this.ON,1552,1557,this.NSM,1558,1562,this.L,1563,1563,this.AL,1564,1566,this.L,1567,1567,this.AL,1568,1568,this.L,1569,1594,this.AL,1595,1599,this.L,1600,1610,this.AL,1611,1624,this.NSM,1625,1631,this.L,1632,1641,this.AN,1642,1642,this.ET,1643,1644,this.AN,1645,1647,this.AL,1648,1648,this.NSM,1649,1749,this.AL,1750,1756,this.NSM,1757,1757,this.AL,1758,1764,this.NSM,1765,1766,this.AL,1767,1768,this.NSM,1769,1769,this.ON,1770,1773,this.NSM,1774,1775,this.AL,1776,1785,this.EN,1786,1805,this.AL,1806,1806,this.L,1807,1807,this.BN,1808,1808,this.AL,1809,1809,this.NSM,1810,1839,this.AL,1840,1866,this.NSM,1867,1868,this.L,1869,1871,this.AL,1872,1919,this.L,1920,1957,this.AL,1958,1968,this.NSM,1969,1969,this.AL,1970,2304,this.L,2305,2306,this.NSM,2307,2363,this.L,2364,2364,this.NSM,2365,2368,this.L,2369,2376,this.NSM,2377,2380,this.L,2381,2381,this.NSM,2382,2384,this.L,2385,2388,this.NSM,2389,2401,this.L,2402,2403,this.NSM,2404,2432,this.L,2433,2433,this.NSM,2434,2491,this.L,2492,2492,this.NSM,2493,2496,this.L,2497,2500,this.NSM,2501,2508,this.L,2509,2509,this.NSM,2510,2529,this.L,2530,2531,this.NSM,2532,2545,this.L,2546,2547,this.ET,2548,2560,this.L,2561,2562,this.NSM,2563,2619,this.L,2620,2620,this.NSM,2621,2624,this.L,2625,2626,this.NSM,2627,2630,this.L,2631,2632,this.NSM,2633,2634,this.L,2635,2637,this.NSM,2638,2671,this.L,2672,2673,this.NSM,2674,2688,this.L,2689,2690,this.NSM,2691,2747,this.L,2748,2748,this.NSM,2749,2752,this.L,2753,2757,this.NSM,2758,2758,this.L,2759,2760,this.NSM,2761,2764,this.L,2765,2765,this.NSM,2766,2785,this.L,2786,2787,this.NSM,2788,2800,this.L,2801,2801,this.ET,2802,2816,this.L,2817,2817,this.NSM,2818,2875,this.L,2876,2876,this.NSM,2877,2878,this.L,2879,2879,this.NSM,2880,2880,this.L,2881,2883,this.NSM,2884,2892,this.L,2893,2893,this.NSM,2894,2901,this.L,2902,2902,this.NSM,2903,2945,this.L,2946,2946,this.NSM,2947,3007,this.L,3008,3008,this.NSM,3009,3020,this.L,3021,3021,this.NSM,3022,3058,this.L,3059,3064,this.ON,3065,3065,this.ET,3066,3066,this.ON,3067,3133,this.L,3134,3136,this.NSM,3137,3141,this.L,3142,3144,this.NSM,3145,3145,this.L,3146,3149,this.NSM,3150,3156,this.L,3157,3158,this.NSM,3159,3259,this.L,3260,3260,this.NSM,3261,3275,this.L,3276,3277,this.NSM,3278,3392,this.L,3393,3395,this.NSM,3396,3404,this.L,3405,3405,this.NSM,3406,3529,this.L,3530,3530,this.NSM,3531,3537,this.L,3538,3540,this.NSM,3541,3541,this.L,3542,3542,this.NSM,3543,3632,this.L,3633,3633,this.NSM,3634,3635,this.L,3636,3642,this.NSM,3643,3646,this.L,3647,3647,this.ET,3648,3654,this.L,3655,3662,this.NSM,3663,3760,this.L,3761,3761,this.NSM,3762,3763,this.L,3764,3769,this.NSM,3770,3770,this.L,3771,3772,this.NSM,3773,3783,this.L,3784,3789,this.NSM,3790,3863,this.L,3864,3865,this.NSM,3866,3892,this.L,3893,3893,this.NSM,3894,3894,this.L,3895,3895,this.NSM,3896,3896,this.L,3897,3897,this.NSM,3898,3901,this.ON,3902,3952,this.L,3953,3966,this.NSM,3967,3967,this.L,3968,3972,this.NSM,3973,3973,this.L,3974,3975,this.NSM,3976,3983,this.L,3984,3991,this.NSM,3992,3992,this.L,3993,4028,this.NSM,4029,4037,this.L,4038,4038,this.NSM,4039,4140,this.L,4141,4144,this.NSM,4145,4145,this.L,4146,4146,this.NSM,4147,4149,this.L,4150,4151,this.NSM,4152,4152,this.L,4153,4153,this.NSM,4154,4183,this.L,4184,4185,this.NSM,4186,5759,this.L,5760,5760,this.WS,5761,5786,this.L,5787,5788,this.ON,5789,5905,this.L,5906,5908,this.NSM,5909,5937,this.L,5938,5940,this.NSM,5941,5969,this.L,5970,5971,this.NSM,5972,6001,this.L,6002,6003,this.NSM,6004,6070,this.L,6071,6077,this.NSM,6078,6085,this.L,6086,6086,this.NSM,6087,6088,this.L,6089,6099,this.NSM,6100,6106,this.L,6107,6107,this.ET,6108,6108,this.L,6109,6109,this.NSM,6110,6127,this.L,6128,6137,this.ON,6138,6143,this.L,6144,6154,this.ON,6155,6157,this.NSM,6158,6158,this.WS,6159,6312,this.L,6313,6313,this.NSM,6314,6431,this.L,6432,6434,this.NSM,6435,6438,this.L,6439,6443,this.NSM,6444,6449,this.L,6450,6450,this.NSM,6451,6456,this.L,6457,6459,this.NSM,6460,6463,this.L,6464,6464,this.ON,6465,6467,this.L,6468,6469,this.ON,6470,6623,this.L,6624,6655,this.ON,6656,8124,this.L,8125,8125,this.ON,8126,8126,this.L,8127,8129,this.ON,8130,8140,this.L,8141,8143,this.ON,8144,8156,this.L,8157,8159,this.ON,8160,8172,this.L,8173,8175,this.ON,8176,8188,this.L,8189,8190,this.ON,8191,8191,this.L,8192,8202,this.WS,8203,8205,this.BN,8206,8206,this.L,8207,8207,this.R,8208,8231,this.ON,8232,8232,this.WS,8233,8233,this.B,8234,8234,this.LRE,8235,8235,this.RLE,8236,8236,this.PDF,8237,8237,this.LRO,8238,8238,this.RLO,8239,8239,this.WS,8240,8244,this.ET,8245,8276,this.ON,8277,8278,this.L,8279,8279,this.ON,8280,8286,this.L,8287,8287,this.WS,8288,8291,this.BN,8292,8297,this.L,8298,8303,this.BN,8304,8304,this.EN,8305,8307,this.L,8308,8313,this.EN,8314,8315,this.ET,8316,8318,this.ON,8319,8319,this.L,8320,8329,this.EN,8330,8331,this.ET,8332,8334,this.ON,8335,8351,this.L,8352,8369,this.ET,8370,8399,this.L,8400,8426,this.NSM,8427,8447,this.L,8448,8449,this.ON,8450,8450,this.L,8451,8454,this.ON,8455,8455,this.L,8456,8457,this.ON,8458,8467,this.L,8468,8468,this.ON,8469,8469,this.L,8470,8472,this.ON,8473,8477,this.L,8478,8483,this.ON,8484,8484,this.L,8485,8485,this.ON,8486,8486,this.L,8487,8487,this.ON,8488,8488,this.L,8489,8489,this.ON,8490,8493,this.L,8494,8494,this.ET,8495,8497,this.L,8498,8498,this.ON,8499,8505,this.L,8506,8507,this.ON,8508,8511,this.L,8512,8516,this.ON,8517,8521,this.L,8522,8523,this.ON,8524,8530,this.L,8531,8543,this.ON,8544,8591,this.L,8592,8721,this.ON,8722,8723,this.ET,8724,9013,this.ON,9014,9082,this.L,9083,9108,this.ON,9109,9109,this.L,9110,9168,this.ON,9169,9215,this.L,9216,9254,this.ON,9255,9279,this.L,9280,9290,this.ON,9291,9311,this.L,9312,9371,this.EN,9372,9449,this.L,9450,9450,this.EN,9451,9751,this.ON,9752,9752,this.L,9753,9853,this.ON,9854,9855,this.L,9856,9873,this.ON,9874,9887,this.L,9888,9889,this.ON,9890,9984,this.L,9985,9988,this.ON,9989,9989,this.L,9990,9993,this.ON,9994,9995,this.L,9996,10023,this.ON,10024,10024,this.L,10025,10059,this.ON,10060,10060,this.L,10061,10061,this.ON,10062,10062,this.L,10063,10066,this.ON,10067,10069,this.L,10070,10070,this.ON,10071,10071,this.L,10072,10078,this.ON,10079,10080,this.L,10081,10132,this.ON,10133,10135,this.L,10136,10159,this.ON,10160,10160,this.L,10161,10174,this.ON,10175,10191,this.L,10192,10219,this.ON,10220,10223,this.L,10224,11021,this.ON,11022,11903,this.L,11904,11929,this.ON,11930,11930,this.L,11931,12019,this.ON,12020,12031,this.L,12032,12245,this.ON,12246,12271,this.L,12272,12283,this.ON,12284,12287,this.L,12288,12288,this.WS,12289,12292,this.ON,12293,12295,this.L,12296,12320,this.ON,12321,12329,this.L,12330,12335,this.NSM,12336,12336,this.ON,12337,12341,this.L,12342,12343,this.ON,12344,12348,this.L,12349,12351,this.ON,12352,12440,this.L,12441,12442,this.NSM,12443,12444,this.ON,12445,12447,this.L,12448,12448,this.ON,12449,12538,this.L,12539,12539,this.ON,12540,12828,this.L,12829,12830,this.ON,12831,12879,this.L,12880,12895,this.ON,12896,12923,this.L,12924,12925,this.ON,12926,12976,this.L,12977,12991,this.ON,12992,13003,this.L,13004,13007,this.ON,13008,13174,this.L,13175,13178,this.ON,13179,13277,this.L,13278,13279,this.ON,13280,13310,this.L,13311,13311,this.ON,13312,19903,this.L,19904,19967,this.ON,19968,42127,this.L,42128,42182,this.ON,42183,64284,this.L,64285,64285,this.R,64286,64286,this.NSM,64287,64296,this.R,64297,64297,this.ET,64298,64310,this.R,64311,64311,this.L,64312,64316,this.R,64317,64317,this.L,64318,64318,this.R,64319,64319,this.L,64320,64321,this.R,64322,64322,this.L,64323,64324,this.R,64325,64325,this.L,64326,64335,this.R,64336,64433,this.AL,64434,64466,this.L,64467,64829,this.AL,64830,64831,this.ON,64832,64847,this.L,64848,64911,this.AL,64912,64913,this.L,64914,64967,this.AL,64968,65007,this.L,65008,65020,this.AL,65021,65021,this.ON,65022,65023,this.L,65024,65039,this.NSM,65040,65055,this.L,65056,65059,this.NSM,65060,65071,this.L,65072,65103,this.ON,65104,65104,this.CS,65105,65105,this.ON,65106,65106,this.CS,65107,65107,this.L,65108,65108,this.ON,65109,65109,this.CS,65110,65118,this.ON,65119,65119,this.ET,65120,65121,this.ON,65122,65123,this.ET,65124,65126,this.ON,65127,65127,this.L,65128,65128,this.ON,65129,65130,this.ET,65131,65131,this.ON,65132,65135,this.L,65136,65140,this.AL,65141,65141,this.L,65142,65276,this.AL,65277,65278,this.L,65279,65279,this.BN,65280,65280,this.L,65281,65282,this.ON,65283,65285,this.ET,65286,65290,this.ON,65291,65291,this.ET,65292,65292,this.CS,65293,65293,this.ET,65294,65294,this.CS,65295,65295,this.ES,65296,65305,this.EN,65306,65306,this.CS,65307,65312,this.ON,65313,65338,this.L,65339,65344,this.ON,65345,65370,this.L,65371,65381,this.ON,65382,65503,this.L,65504,65505,this.ET,65506,65508,this.ON,65509,65510,this.ET,65511,65511,this.L,65512,65518,this.ON,65519,65528,this.L,65529,65531,this.BN,65532,65533,this.ON,65534,65535,this.L];for(var e=0;e<this.charTypes.length;++e)for(var t=this.charTypes[e],i=this.charTypes[++e],r=this.charTypes[++e];t<=i;)this.rtlCharacterTypes[t++]=r}return e.prototype.getVisualOrder=function(e,t){this.types=this.getCharacterCode(e),this.textOrder=t?this.LRE:this.L,this.doVisualOrder();for(var i=[],r=0;r<this.levels.length;r++)i[r]=this.levels[r];return i},e.prototype.getCharacterCode=function(e){for(var t=[],i=0;i<e.length;i++)t[i]=this.rtlCharacterTypes[e[i].charCodeAt(0)];return t},e.prototype.setDefaultLevels=function(){for(var e=0;e<this.length;e++)this.levels[e]=this.textOrder},e.prototype.setLevels=function(){this.setDefaultLevels();for(var e=0;e<this.length;++e){var t=this.levels[e];128&t&&(t&=127,this.result[e]=1&t?this.R:this.L),this.levels[e]=t}},e.prototype.updateLevels=function(e,t,i){if(1&t)for(r=e;r<i;++r)this.result[r]!==this.R&&(this.levels[r]+=1);else for(var r=e;r<i;++r)this.result[r]===this.R?this.levels[r]+=1:this.result[r]!==this.L&&(this.levels[r]+=2)},e.prototype.doVisualOrder=function(){this.length=this.types.length,this.result=this.types,this.levels=[],this.setLevels(),this.length=this.getEmbeddedCharactersLength();for(var e=this.textOrder,t=0;t<this.length;){for(var i=this.levels[t],r=1&Math.max(e,i)?this.R:this.L,n=t+1;n<this.length&&this.levels[n]===i;)++n;var o=n<this.length?this.levels[n]:this.textOrder,s=1&Math.max(o,i)?this.R:this.L;this.checkNSM(t,n,i,r,s),this.updateLevels(t,i,n),e=i,t=n}this.checkEmbeddedCharacters(this.length)},e.prototype.getEmbeddedCharactersLength=function(){for(var e=0,t=0;t<this.length;++t)this.types[t]!==this.LRE&&this.types[t]!==this.RLE&&this.types[t]!==this.LRO&&this.types[t]!==this.RLO&&this.types[t]!==this.PDF&&this.types[t]!==this.BN&&(this.result[e]=this.result[t],this.levels[e]=this.levels[t],e++);return e},e.prototype.checkEmbeddedCharacters=function(e){for(var t=this.types.length-1;t>=0;--t)this.types[t]===this.LRE||this.types[t]===this.RLE||this.types[t]===this.LRO||this.types[t]===this.RLO||this.types[t]===this.PDF||this.types[t]===this.BN?(this.result[t]=this.types[t],this.levels[t]=-1):(e-=1,this.result[t]=this.result[e],this.levels[t]=this.levels[e]);for(t=0;t<this.types.length;t++)-1===this.levels[t]&&(this.levels[t]=0===t?this.textOrder:this.levels[t-1])},e.prototype.checkNSM=function(e,t,i,r,n){for(var o=r,s=e;s<t;++s)this.result[s]===this.NSM?this.result[s]=o:o=this.result[s];this.checkEuropeanDigits(e,t,i,r,n)},e.prototype.checkEuropeanDigits=function(e,t,i,r,n){for(var o=e;o<t;++o)if(this.result[o]===this.EN)for(var s=o-1;s>=e;--s)if(this.result[s]===this.L||this.result[s]===this.R||this.result[s]===this.AL){this.result[s]===this.AL&&(this.result[o]=this.AN);break}this.checkArabicCharacters(e,t,i,r,n)},e.prototype.checkArabicCharacters=function(e,t,i,r,n){for(var o=e;o<t;++o)this.result[o]===this.AL&&(this.result[o]=this.R);this.checkEuropeanNumberSeparator(e,t,i,r,n)},e.prototype.checkEuropeanNumberSeparator=function(e,t,i,r,n){for(var o=e+1;o<t-1;++o)if(this.result[o]===this.ES||this.result[o]===this.CS){var s=this.result[o-1],a=this.result[o+1];s===this.EN&&a===this.EN?this.result[o]=this.EN:this.result[o]===this.CS&&s===this.AN&&a===this.AN&&(this.result[o]=this.AN)}this.checkEuropeanNumberTerminator(e,t,i,r,n)},e.prototype.checkEuropeanNumberTerminator=function(e,t,i,r,n){for(var o=e;o<t;++o)if(this.result[o]===this.ET){var s=o,a=[];a.push(this.ET);var c=this.getLength(s,t,a),h=s===e?r:this.result[s-1];if(h!==this.EN&&(h=c===t?n:this.result[c]),h===this.EN)for(var u=s;u<c;++u)this.result[u]=this.EN;o=c}this.checkOtherNeutrals(e,t,i,r,n)},e.prototype.checkOtherNeutrals=function(e,t,i,r,n){for(var o=e;o<t;++o)this.result[o]!==this.ES&&this.result[o]!==this.ET&&this.result[o]!==this.CS||(this.result[o]=this.ON);this.checkOtherCharacters(e,t,i,r,n)},e.prototype.checkOtherCharacters=function(e,t,i,r,n){for(var o=e;o<t;++o)if(this.result[o]===this.EN){for(var s=r,a=o-1;a>=e;--a)if(this.result[a]===this.L||this.result[a]===this.R){s=this.result[a];break}s===this.L&&(this.result[o]=this.L)}this.checkCommanCharacters(e,t,i,r,n)},e.prototype.getLength=function(e,t,i){for(--e;++e<t;){for(var r=this.result[e],n=0;n<i.length;++n)r===i[n]&&(e=this.getLength(++e,t,i));return e}return t},e.prototype.checkCommanCharacters=function(e,t,i,r,n){for(var o=e;o<t;++o)if(this.result[o]===this.WS||this.result[o]===this.ON||this.result[o]===this.B||this.result[o]===this.S){var s=o,a=[this.B,this.S,this.WS,this.ON],c=this.getLength(s,t,a),h=0,u=0,l=0;s===e?h=r:((h=this.result[s-1])===this.AN||h===this.EN)&&(h=this.R),c===t?u=n:((u=this.result[c])===this.AN||u===this.EN)&&(u=this.R),l=h===u?h:1&i?this.R:this.L;for(var p=s;p<c;++p)this.result[p]=l;o=c}},e}(),Ss=function(){function e(){this.openBracket="(",this.closeBracket=")"}return e.prototype.layout=function(e,t,i,r,n){if(null==e)throw new Error("ArgumentNullException : line");if(null==t)throw new Error("ArgumentNullException : font");var o=[];return t.Unicode?o=this.customLayout(e,i,n,t,r):(o=[])[0]=e,o},e.prototype.splitLayout=function(e,t,i,r,n){if(null==e)throw new Error("ArgumentNullException : line");if(null==t)throw new Error("ArgumentNullException : font");return this.customSplitLayout(e,t,i,r,n)},e.prototype.getGlyphIndex=function(e,t,i,r,n){if(null==e)throw new Error("ArgumentNullException : line");if(null==t)throw new Error("ArgumentNullException : font");if(r=null,0===e.length)return{success:!1,glyphs:r};var o=(new Ns).shape(e,0),s=t.fontInternal.ttfReader;r=new Uint16Array(o.length);for(var a=0,c=0,h=o.length;c<h;c++){var u=o[c],l=s.getGlyph(u);null!=l&&(r[a++]=l.index)}return{success:!0,glyphs:r}},e.prototype.customLayout=function(e,t,i,r,n){if(null==n){if(null==e)throw new Error("ArgumentNullException : line");var o=null;if(null!=i&&i.textDirection!==Sn.None)o=(new Ds).getLogicalToVisualString(e,t);return o}if(null==e)throw new Error("ArgumentNullException : line");if(null==r)throw new Error("ArgumentNullException : font");var s=null;if(null!=i&&i.textDirection!==Sn.None){var a=(new Ns).shape(e,0);s=this.customLayout(a,t,i)}o=[];if(n){for(var c=s.split(""),h=c.length,u=0;u<h;u++)c[u]=this.addChars(r,c[u]);o=c}else(o=[])[0]=this.addChars(r,s);return o},e.prototype.addChars=function(e,t){var i=t;if(null==e)throw new Error("ArgumentNullException : font");if(null==i)throw new Error("ArgumentNullException : line");var r=i,n=e.fontInternal.ttfReader;e.setSymbols(r),r=n.convertString(r);var o=bn.toUnicodeArray(r,!1);return r=bn.byteToString(o)},e.prototype.customSplitLayout=function(e,t,i,r,n){if(null==e)throw new Error("ArgumentNullException : line");if(null==t)throw new Error("ArgumentNullException : font");return this.customLayout(e,i,n).split("")},e}();!function(e){e[e.Paginate=0]="Paginate",e[e.OnePage=1]="OnePage"}(Vo||(Vo={})),function(e){e[e.FitPage=0]="FitPage",e[e.FitElement=1]="FitElement",e[e.FitColumnsToPage=2]="FitColumnsToPage"}(Fo||(Fo={})),function(e){e[e.Start=0]="Start",e[e.Line=1]="Line",e[e.Bezier3=3]="Bezier3",e[e.Bezier=3]="Bezier",e[e.PathTypeMask=7]="PathTypeMask",e[e.DashMode=16]="DashMode",e[e.PathMarker=32]="PathMarker",e[e.CloseSubpath=128]="CloseSubpath"}(Bo||(Bo={}));var bs=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),zs=function(e){function t(t){var i=e.call(this)||this;return i.mbackground=new Rn(255,255,255),i.mbStroking=!1,i.mfunction=null,i.dictionaryProperties=new Yr,i.mpatternDictionary=new Rr,i.mpatternDictionary.items.setValue(i.dictionaryProperties.type,new Ur(i.dictionaryProperties.pattern)),i.mpatternDictionary.items.setValue(i.dictionaryProperties.patternType,new Hr(2)),i.shading=t,i.colorSpace=Nn.Rgb,i}return bs(t,e),Object.defineProperty(t.prototype,"background",{get:function(){return this.mbackground},set:function(e){this.mbackground=e;var t=this.shading;e.isEmpty?t.remove(this.dictionaryProperties.background):t.items.setValue(this.dictionaryProperties.background,e.toArray(this.colorSpace))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"antiAlias",{get:function(){return this.shading.items.getValue(this.dictionaryProperties.antiAlias).value},set:function(e){var t=this.shading,i=t.items.getValue(this.dictionaryProperties.antiAlias);null==i&&void 0===i?(i=new lo(e),t.items.setValue(this.dictionaryProperties.antiAlias,i)):i.value=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"function",{get:function(){return this.mfunction},set:function(e){this.mfunction=e,null!=e&&void 0!==e?this.shading.items.setValue(this.dictionaryProperties.function,new vn(this.mfunction)):this.shading.remove(this.dictionaryProperties.function)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bBox",{get:function(){return this.shading.items.getValue(this.dictionaryProperties.bBox)},set:function(e){var t=this.shading;null==e&&void 0===e?t.remove(this.dictionaryProperties.bBox):t.items.setValue(this.dictionaryProperties.bBox,e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colorSpace",{get:function(){return this.mcolorSpace},set:function(e){var t=this.shading.items.getValue(this.dictionaryProperties.colorSpace);if(e!==this.mcolorSpace||null==t){this.mcolorSpace=e;var i=this.colorSpaceToDeviceName(e);this.shading.items.setValue(this.dictionaryProperties.colorSpace,new Ur(i))}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"stroking",{get:function(){return this.mbStroking},set:function(e){this.mbStroking=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patternDictionary",{get:function(){return null==this.mpatternDictionary&&(this.mpatternDictionary=new Rr),this.mpatternDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shading",{get:function(){return this.mshading},set:function(e){if(null==e)throw new Error("ArgumentNullException : Shading");e!==this.mshading&&(this.mshading=e,this.patternDictionary.items.setValue(this.dictionaryProperties.shading,new vn(this.mshading)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.mmatrix},set:function(e){if(null==e)throw new Error("ArgumentNullException : Matrix");if(e!==this.mmatrix){this.mmatrix=e.clone();var t=new qr(this.mmatrix.matrix.elements);this.mpatternDictionary.items.setValue(this.dictionaryProperties.matrix,t)}},enumerable:!0,configurable:!0}),t.prototype.monitorChanges=function(e,i,r,n,o){var s=!1;if(e instanceof t){this.colorSpace!==o&&(this.colorSpace=o,this.resetFunction()),i.setColorSpace("Pattern",this.mbStroking);var a=r.getResources().getName(this);i.setColourWithPattern(null,a,this.mbStroking),s=!0}return s},t.prototype.resetChanges=function(e){},t.prototype.colorSpaceToDeviceName=function(e){var t;if(e===Nn.Rgb)t="DeviceRGB";return t},t.prototype.resetPatternDictionary=function(e){this.mpatternDictionary=e},t.prototype.cloneAntiAliasingValue=function(e){if(null==e)throw new Error("ArgumentNullException : brush");var t=this.shading.items.getValue(this.dictionaryProperties.antiAlias);null!=t&&e.shading.items.setValue(this.dictionaryProperties.antiAlias,new lo(t.value))},t.prototype.cloneBackgroundValue=function(e){var t=this.background;t.isEmpty||(e.background=t)},Object.defineProperty(t.prototype,"element",{get:function(){return this.patternDictionary},enumerable:!0,configurable:!0}),t}(Gn),vs=function(){function e(e,t){if(this.dictionaryProperties=new Yr,this.writeTransformation=!0,void 0===e);else if(e instanceof Fn&&void 0===t){this.content=new cn;var i=new Fn(e.width,e.height);this.setSize(i),this.initialize()}else this.content=new cn,this.setSize(new Fn(e,t)),this.initialize()}return Object.defineProperty(e.prototype,"size",{get:function(){return this.templateSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.size.width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.size.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"graphics",{get:function(){if(null==this.pdfGraphics||void 0===this.pdfGraphics){var e=new xs(this),t=new Cs(this.size,e,this.content);this.pdfGraphics=t,this.pdfGraphics.initializeCoordinates()}return this.pdfGraphics},enumerable:!0,configurable:!0}),e.prototype.getResources=function(){return null==this.resources&&(this.resources=new Os,this.content.items.setValue(this.dictionaryProperties.resources,this.resources)),this.resources},e.prototype.initialize=function(){this.addType(),this.addSubType()},e.prototype.addType=function(){var e=new Ur(this.dictionaryProperties.xObject);this.content.items.setValue(this.dictionaryProperties.type,e)},e.prototype.addSubType=function(){var e=new Ur(this.dictionaryProperties.form);this.content.items.setValue(this.dictionaryProperties.subtype,e)},e.prototype.reset=function(e){void 0===e?(null!=this.resources&&(this.resources=null,this.content.remove(this.dictionaryProperties.resources)),null!=this.graphics&&this.graphics.reset(this.size)):(this.setSize(e),this.reset())},e.prototype.setSize=function(e){var t=new Bn(new Vn(0,0),e),i=qr.fromRectangle(t);this.content.items.setValue(this.dictionaryProperties.bBox,i),this.templateSize=e},Object.defineProperty(e.prototype,"element",{get:function(){return this.content},enumerable:!0,configurable:!0}),e}(),ws=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Os=function(e){function t(t){var i=e.call(this,t)||this;return i.properties=new Rr,i}return ws(t,e),Object.defineProperty(t.prototype,"names",{get:function(){return this.getNames()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return this.pdfDocument},set:function(e){this.pdfDocument=e},enumerable:!0,configurable:!0}),t.prototype.getName=function(e){var t=e.element,i=null;if(this.names.containsKey(t)&&(i=this.names.getValue(t)),null==i){var r=this.generateName();i=new Ur(r),this.names.setValue(t,i),(e instanceof to||e instanceof vs||e instanceof zs||e instanceof As||e instanceof Eo||e instanceof Ho||e instanceof _o)&&this.add(e,i)}return i},t.prototype.getNames=function(){null==this.pdfNames&&(this.pdfNames=new xo);var e=this.items.getValue(this.dictionaryProperties.font);return null!=e&&Io.dereference(e),this.pdfNames},t.prototype.requireProcedureSet=function(e){if(null==e)throw new Error("ArgumentNullException:procedureSetName");var t=this.items.getValue(this.dictionaryProperties.procset);null==t&&(t=new qr,this.items.setValue(this.dictionaryProperties.procset,t));var i=new Ur(e);t.contains(i)||t.add(i)},t.prototype.removeFont=function(e){for(var t=null,i=this.pdfNames.keys(),r=0;r<this.pdfNames.size();r++)if(this.pdfNames.getValue(i[r])===new Ur(e)){t=i[r];break}null!=t&&this.pdfNames.remove(t)},t.prototype.generateName=function(){return Ts.getNewGuidString()},t.prototype.add=function(e,t){if(e instanceof to){var i=null,r=this.items.getValue(this.dictionaryProperties.font);if(null!=r){var n=r;i=r,i=r}else i=new Rr,this.items.setValue(this.dictionaryProperties.font,i);i.items.setValue(t.value,new vn(e.element))}else if(e instanceof vs){var o=void 0;null==(o=this.items.getValue(this.dictionaryProperties.xObject))&&(o=new Rr,this.items.setValue(this.dictionaryProperties.xObject,o)),o.items.setValue(t.value,new vn(e.element))}else if(e instanceof Gn){if(e instanceof zs||e instanceof As)if(null!=(a=e.element)){var s=this.items.getValue(this.dictionaryProperties.pattern);null==s&&(s=new Rr,this.items.setValue(this.dictionaryProperties.pattern,s)),s.items.setValue(t.value,new vn(a))}}else if(e instanceof Eo){var a=e.element,c=null;null==(c=this.items.getValue(this.dictionaryProperties.extGState))&&(c=new Rr,this.items.setValue(this.dictionaryProperties.extGState,c)),c.items.setValue(t.value,new vn(a))}else{o=this.Dictionary.items.getValue(this.dictionaryProperties.xObject);var h=void 0;void 0!==this.pdfDocument&&(h=this.pdfDocument.sections.element.items.getValue(this.dictionaryProperties.resources).items.getValue(this.dictionaryProperties.xObject)),this.Dictionary.items.values();var u=!1,l=void 0;if(void 0===this.pdfDocument||void 0!==typeof h&&null!=h){if(void 0!==this.pdfDocument)for(var p=h.items.values(),d=0;d<p.length;d++)void 0!==p[d]&&void 0!==p[d].element&&p[d].element.data[0]===e.element.data[0]&&(l=p[d],u=!0)}else h=new Rr,this.pdfDocument.sections.element.items.getValue(this.dictionaryProperties.resources).items.setValue(this.dictionaryProperties.xObject,h);if(null==o&&(o=new Rr,this.Dictionary.items.setValue(this.dictionaryProperties.xObject,o)),u&&void 0!==l)o.items.setValue(t.value,l);else{n=new vn(e.element);o.items.setValue(t.value,n),void 0!==this.pdfDocument&&h.items.setValue(t.value,n)}}},t}(Rr),Ts=function(){function e(){}return e.getNewGuidString=function(){return"aaaaaaaa-aaaa-4aaa-baaa-aaaaaaaaaaaa".replace(/[ab]/g,function(e){var t=16*Math.random()|0;return("a"===e?t:3&t|8).toString(16)})},e}(),Ls=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),As=function(e){function t(t,i){var r=e.call(this)||this;r.mStroking=!1,r.mLocation=new Vn(0,0),r.mDictionaryProperties=new Yr;var n=null;return t instanceof Wn?n=t:t instanceof Fn&&(n=new Wn(0,0,t.width,t.height)),null!==i&&i instanceof Bs&&(r.mPage=i),r.brushStream=new cn,r.mResources=new Os,r.brushStream.items.setValue(r.mDictionaryProperties.resources,r.mResources),r.setBox(n),r.setObligatoryFields(),null!==i&&i instanceof Bs&&(r.mPage=i,r.graphics.colorSpace=i.document.colorSpace),r}return Ls(t,e),t.prototype.initialize=function(e,t,i,r){this.mPage=t,this.mLocation=i,this.mTransformationMatrix=r,this.tempBrushStream=this.brushStream,this.brushStream=new cn;var n=new Os;return this.brushStream.items.setValue(this.mDictionaryProperties.resources,n),this.setBox(e),this.setObligatoryFields(),this},Object.defineProperty(t.prototype,"location",{get:function(){return this.mLocation},set:function(e){this.mLocation=e},enumerable:!0,configurable:!0}),t.prototype.setObligatoryFields=function(){if(this.brushStream.items.setValue(this.mDictionaryProperties.patternType,new Hr(1)),this.brushStream.items.setValue(this.mDictionaryProperties.paintType,new Hr(1)),this.brushStream.items.setValue(this.mDictionaryProperties.tilingType,new Hr(1)),this.brushStream.items.setValue(this.mDictionaryProperties.xStep,new Hr(this.mBox.right-this.mBox.left)),this.brushStream.items.setValue(this.mDictionaryProperties.yStep,new Hr(this.mBox.bottom-this.mBox.top)),null!=this.mPage&&null!=this.mLocation)if(null==this.mTransformationMatrix&&void 0===this.mTransformationMatrix){var e=this.mPage.size.height%this.rectangle.size.height-this.mLocation.y;this.brushStream.items.setValue(this.mDictionaryProperties.matrix,new qr([1,0,0,1,this.mLocation.x,e]))}else{e=0;var t=this.mTransformationMatrix.matrix.elements;e=this.mPage.size.height>this.rectangle.size.height?this.mTransformationMatrix.matrix.offsetY-this.mPage.size.height%this.rectangle.size.height:this.mPage.size.height%this.rectangle.size.height+this.mTransformationMatrix.matrix.offsetY,this.brushStream.items.setValue(this.mDictionaryProperties.matrix,new qr([t[0],t[1],t[2],t[3],t[4],e]))}},t.prototype.setBox=function(e){this.mBox=e;var t=new Bn(this.mBox.left,this.mBox.top,this.mBox.right,this.mBox.bottom);this.brushStream.items.setValue(this.mDictionaryProperties.bBox,qr.fromRectangle(t))},Object.defineProperty(t.prototype,"rectangle",{get:function(){return this.mBox},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.mBox.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"graphics",{get:function(){if(null==this.mGraphics&&void 0===this.mGraphics){var e=new xs(this),t=new Cs(this.size,e,this.brushStream);this.mGraphics=t,this.mResources=this.getResources(),this.mGraphics.initializeCoordinates()}return this.mGraphics},enumerable:!0,configurable:!0}),t.prototype.getResources=function(){return this.mResources},Object.defineProperty(t.prototype,"stroking",{get:function(){return this.mStroking},set:function(e){this.mStroking=e},enumerable:!0,configurable:!0}),t.prototype.clone=function(){var e=this.initialize(this.rectangle,this.mPage,this.location,this.mTransformationMatrix);return null!=this.mTransformationMatrix&&null!=this.mTransformationMatrix.matrix&&e.brushStream.items.setValue(this.mDictionaryProperties.matrix,new qr(this.mTransformationMatrix.matrix.elements)),e.brushStream.data=this.tempBrushStream.data,e.mResources=new Os(this.mResources),e.brushStream.items.setValue(this.mDictionaryProperties.resources,e.mResources),e},t.prototype.monitorChanges=function(e,i,r,n,o){var s=!1;if(e!==this){i.setColorSpace("Pattern",this.mStroking);var a=r.getResources().getName(this);i.setColourWithPattern(null,a,this.mStroking),s=!0}else if(e instanceof t){i.setColorSpace("Pattern",this.mStroking);var c=r.getResources().getName(this);i.setColourWithPattern(null,c,this.mStroking),s=!0}return s},t.prototype.resetChanges=function(e){},Object.defineProperty(t.prototype,"element",{get:function(){return this.brushStream},enumerable:!0,configurable:!0}),t}(Gn),Cs=function(){function e(e,t,i){this.currentColorSpace=Nn.Rgb,this.previousTextRenderingMode=gn.Fill,this.previousCharacterSpacing=0,this.previousWordSpacing=0,this.previousTextScaling=100,this.procedureSets=new Co,this.isNormalRender=!0,this.isUseFontSize=!1,this.isItalic=!1,this.isEmfTextScaled=!1,this.isEmf=!1,this.isEmfPlus=!1,this.isBaselineFormat=!0,this.emfScalingFactor=new Fn(0,0),this.colorSpaceChanged=!1,this.dictionaryProperties=new Yr,this.isOverloadWithPosition=!1,this.isPointOverload=!1,this.currentColorSpaces=["RGB","CMYK","GrayScale","Indexed"],this.isImageOptimized=!1,this.graphicsState=[],this.istransparencySet=!1,this.internalAutomaticFields=null,this.startCutIndex=-1,this.getResources=t,this.canvasSize=e,this.pdfStreamWriter=i instanceof Oo?i:new Oo(i),this.initialize()}return Object.defineProperty(e.prototype,"stringLayoutResult",{get:function(){return this.pdfStringLayoutResult},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.canvasSize},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mediaBoxUpperRightBound",{get:function(){return void 0===this.internalMediaBoxUpperRightBound&&(this.internalMediaBoxUpperRightBound=0),this.internalMediaBoxUpperRightBound},set:function(e){this.internalMediaBoxUpperRightBound=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clientSize",{get:function(){return new Fn(this.clipBounds.width,this.clipBounds.height)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorSpace",{get:function(){return this.currentColorSpace},set:function(e){this.currentColorSpace=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"streamWriter",{get:function(){return this.pdfStreamWriter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matrix",{get:function(){return null==this.transformationMatrix&&(this.transformationMatrix=new Lo),this.transformationMatrix},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layer",{get:function(){return this.pageLayer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"page",{get:function(){return this.pageLayer.page},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"automaticFields",{get:function(){return null!=this.internalAutomaticFields&&void 0!==this.internalAutomaticFields||(this.internalAutomaticFields=new ko),this.internalAutomaticFields},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){this.bStateSaved=!1,this.currentPen=null,this.currentBrush=null,this.currentFont=null,this.currentColorSpace=Nn.Rgb,this.bCSInitialized=!1,this.transformationMatrix=null,this.previousTextRenderingMode=-1,this.previousCharacterSpacing=-1,this.previousWordSpacing=-1,this.previousTextScaling=-100,this.currentStringFormat=null,this.clipBounds=new Bn(new Vn(0,0),this.size),this.getResources.getResources().requireProcedureSet(this.procedureSets.pdf)},e.prototype.drawPdfTemplate=function(e,t,i){if(void 0===i){if(null==e)throw Error("ArgumentNullException-template");this.drawPdfTemplate(e,t,e.size)}else{if(null==e)throw Error("ArgumentNullException-template");var r=e.width>0?i.width/e.width:1,n=e.height>0?i.height/e.height:1,o=!(1===r&&1===n),s=this.save(),a=new Lo;null!=this.pageLayer&&this.getTranslateTransform(t.x,t.y+i.height,a),o&&this.getScaleTransform(r,n,a),this.pdfStreamWriter.modifyCtm(a);var c=this.getResources.getResources().getName(e);this.pdfStreamWriter.executeObject(c),this.restore(s);var h=e.graphics;if(null!=h)for(var u=0;u<h.automaticFields.automaticFields.length;u++){var l=h.automaticFields.automaticFields[u],p=new Vn(l.location.x+t.x,l.location.y+t.y),d=0==e.size.width?0:i.width/e.size.width,g=0==e.size.height?0:i.height/e.size.height;this.automaticFields.add(new Yo(l.field,p,d,g)),this.page.dictionary.modify()}this.getResources.getResources().requireProcedureSet(this.procedureSets.imageB),this.getResources.getResources().requireProcedureSet(this.procedureSets.imageC),this.getResources.getResources().requireProcedureSet(this.procedureSets.imageI),this.getResources.getResources().requireProcedureSet(this.procedureSets.text)}},e.prototype.drawString=function(e,t,i,r,n,o,s,a,c){if("string"==typeof e&&t instanceof to&&(i instanceof To||null===i)&&(r instanceof Gn||null===r)&&"number"==typeof n&&"number"==typeof o&&(s instanceof Jn||null===s)&&void 0===a)this.isOverloadWithPosition=!0,this.drawString(e,t,i,r,n,o,this.clientSize.width-n,0,s);else{var h=i,u=r,l=n,p=o,d=s,g=a,f=c,M=(new Kn).layout(e,t,f,new Fn(d,g),this.isOverloadWithPosition,this.clientSize);if(!M.empty){var m=this.checkCorrectLayoutRectangle(M.actualSize,l,p,f);d<=0&&(l=m.x,d=m.width),g<=0&&(p=m.y,g=m.height),this.drawStringLayoutResult(M,t,h,u,new Bn(l,p,d,g),f),this.isEmfTextScaled=!1,this.emfScalingFactor=new Fn(0,0)}this.getResources.getResources().requireProcedureSet(this.procedureSets.text),this.isNormalRender=!0,this.pdfStringLayoutResult=M,this.isUseFontSize=!1}},e.prototype.drawLine=function(e,t,i,r,n){if(t instanceof Vn){var o=t,s=i;this.drawLine(e,o.x,o.y,s.x,s.y)}else{o=t,s=i;var a=r,c=n;this.stateControl(e,null,null);var h=this.streamWriter;h.beginPath(o,s),h.appendLineSegment(a,c),h.strokePath(),this.getResources.getResources().requireProcedureSet(this.procedureSets.pdf)}},e.prototype.drawRectangle=function(e,t,i,r,n,o){if(e instanceof To&&"number"==typeof t){var s=i;this.drawRectangle(e,null,t,s,r,n)}else if(e instanceof Gn&&"number"==typeof t){s=i;this.drawRectangle(null,e,t,s,r,n)}else{s=i;var a=r,c=n,h=o;if(t instanceof As){this.bCSInitialized=!1;var u=this.matrix.matrix.offsetX+s,l=void 0;l=null!=this.layer&&null!=this.layer.page?this.layer.page.size.height-this.matrix.matrix.offsetY+a:this.clientSize.height-this.matrix.matrix.offsetY+a,t.location=new Vn(u,l),t.graphics.colorSpace=this.colorSpace}else t instanceof zs&&(t.colorSpace=this.colorSpace);t instanceof qn&&t.color.isEmpty&&(t=null);var p=e,d=t;this.stateControl(p,d,null),this.streamWriter.appendRectangle(s,a,c,h),this.drawPathHelper(p,d,!1)}},e.prototype.drawRoundedRectangle=function(e,t,i,r,n,o,s){if(null===e)throw new Error("pen");if(null===t)throw new Error("brush");if(0===s)this.drawRectangle(e,t,i,r,n,o);else{var a=[i,r,n,o],c=2*s,h=[c,c],u=[a[0],a[1],h[0],h[1]];this._pathPoints=[],this._pathTypes=[];var l=!0;l=this._addArc(u[0],u[1],u[2],u[3],180,90,l),u[0]=a[0]+a[2]-c,l=this._addArc(u[0],u[1],u[2],u[3],270,90,l),u[1]=a[1]+a[3]-c,l=this._addArc(u[0],u[1],u[2],u[3],0,90,l),u[0]=a[0],l=this._addArc(u[0],u[1],u[2],u[3],90,90,l);var p=this._pathPoints.length-1,d=this._pathTypes[p];d|=Bo.CloseSubpath,this._pathTypes[p]=d,this._drawPath(e,t,this._pathPoints,this._pathTypes,yn.Alternate),this._pathPoints=[],this._pathTypes=[]}},e.prototype._addArc=function(e,t,i,r,n,o,s){for(var a=this._getBezierArcPoints(e,t,e+i,t+r,n,o),c=0;c<a.length;c+=8){var h=[a[c],a[c+1],a[c+2],a[c+3],a[c+4],a[c+5],a[c+6],a[c+7]];s=this._addArcPoints(h,Bo.Bezier3,s)}return s},e.prototype._addArcPoints=function(e,t,i){for(var r=0;r<e.length;r++){var n=new Vn(e[r],e[r+1]);0===r?0===this._pathPoints.length||i?(this._addPoint(n,Bo.Start),i=!1):n.x===this._getLastPoint().x&&n.y===this._getLastPoint().y||this._addPoint(n,Bo.Line):this._addPoint(n,t),r++}return i},e.prototype._getLastPoint=function(){var e=new Vn(0,0),t=this._pathPoints.length;return t>0&&(e.x=this._pathPoints[t-1].x,e.y=this._pathPoints[t-1].y),e},e.prototype._addPoint=function(e,t){this._pathPoints.push(e),this._pathTypes.push(t)},e.prototype._getBezierArcPoints=function(e,t,i,r,n,o){if(e>i){var s=void 0;s=e,e=i,i=s}if(r>t){s=void 0;s=t,t=r,r=s}var a,c;Math.abs(o)<=90?(a=o,c=1):a=o/(c=Math.ceil(Math.abs(o)/90));for(var h=(e+i)/2,u=(t+r)/2,l=(i-e)/2,p=(r-t)/2,d=a*(Math.PI/360),g=Math.abs(4/3*(1-Math.cos(d))/Math.sin(d)),f=[],M=0;M<c;M++){var m=(n+M*a)*(Math.PI/180),y=(n+(M+1)*a)*(Math.PI/180),N=Math.cos(m),j=Math.cos(y),D=Math.sin(m),I=Math.sin(y);a>0?f.push(h+l*N,u-p*D,h+l*(N-g*D),u-p*(D+g*N),h+l*(j+g*I),u-p*(I-g*j),h+l*j,u-p*I):f.push(h+l*N,u-p*D,h+l*(N+g*D),u-p*(D-g*N),h+l*(j-g*I),u-p*(I+g*j),h+l*j,u-p*I)}return f},e.prototype.drawPathHelper=function(e,t,i,r){if("boolean"==typeof i){var n=i;this.drawPathHelper(e,t,yn.Winding,n)}else{var o=null!=e,s=null!=t,a=(n=i)===yn.Alternate;o&&s?this.streamWriter.fillStrokePath(a):o||s?o?this.streamWriter.strokePath():this.streamWriter.fillPath(a):this.streamWriter.endPath()}},e.prototype.drawImage=function(e,t,i,r,n){if("number"==typeof t&&"number"==typeof i&&void 0===r){var o=e.physicalDimension;this.drawImage(e,t,i,o.width,o.height)}else{var s=t,a=i,c=n;e.save();var h=new Lo;this.getTranslateTransform(s,a+c,h),this.getScaleTransform(r,n,h),this.pdfStreamWriter.write("q"),this.pdfStreamWriter.modifyCtm(h);var u=this.getResources.getResources();void 0!==this.pageLayer&&null!=this.page&&(u.document=this.page.document);var l=u.getName(e);void 0!==this.pageLayer&&this.page.setResources(u),this.pdfStreamWriter.executeObject(l),this.pdfStreamWriter.write(Qr.restoreState),this.pdfStreamWriter.write(Qr.newLine);var p=this.getResources.getResources();p.requireProcedureSet(this.procedureSets.imageB),p.requireProcedureSet(this.procedureSets.imageC),p.requireProcedureSet(this.procedureSets.imageI),p.requireProcedureSet(this.procedureSets.text)}},e.prototype.getLineBounds=function(e,t,i,r,n){var o;if(!t.empty&&e<t.lineCount&&e>=0){var s=t.lines[e],a=this.getTextVerticalAlignShift(t.actualSize.height,r.height,n)+r.y+t.lineHeight*e,c=s.width,h=this.getHorizontalAlignShift(c,r.width,n),u=this.getLineIndent(s,n,r,0===e);h+=this.rightToLeft(n)?0:u;var l=r.x+h,p=this.shouldJustify(s,r.width,n)?r.width-u:c-u,d=t.lineHeight;o=new Bn(l,a,p,d)}else o=new Bn(0,0,0,0);return o},e.prototype.checkCorrectLayoutRectangle=function(e,t,i,r){var n=new Bn(t,i,e.width,e.width);if(null!=r){switch(r.alignment){case dn.Center:n.x-=n.width/2;break;case dn.Right:n.x-=n.width}switch(r.lineAlignment){case pn.Middle:n.y-=n.height/2;break;case pn.Bottom:n.y-=n.height}}return n},e.prototype.setLayer=function(e){this.pageLayer=e;var t=e.page;null!=t&&void 0!==t&&(t.beginSave=this.pageSave)},e.prototype.pageSave=function(e){if(null!=e.graphics.automaticFields)for(var t=0;t<e.graphics.automaticFields.automaticFields.length;t++){var i=e.graphics.automaticFields.automaticFields[t];i.field.performDraw(e.graphics,i.location,i.scalingX,i.scalingY)}},e.prototype.drawStringLayoutResult=function(e,t,i,r,n,o){if(e.empty)throw new Error("ArgumentNullException:result");this.applyStringSettings(t,i,r,o,n);var s=null!=o?o.horizontalScalingFactor:100;s===this.previousTextScaling||this.isEmfTextScaled||(this.pdfStreamWriter.setTextScaling(s),this.previousTextScaling=s);var a,c=null==o||0===o.lineSpacing?t.height:o.lineSpacing+t.height;a=null!=o&&o.subSuperScript===An.SubScript?c-(t.height+t.metrics.getDescent(o)):c-t.metrics.getAscent(o),this.shift=a,this.pdfStreamWriter.startNextLine(n.x,n.y-a),this.pdfStreamWriter.setLeading(+c);for(var h=0,u="",l=0;l<e.lines.length;l++)if(h+=e.lineHeight,n.y+h>this.clientSize.height){this.startCutIndex=l;break}for(var p=this.startCutIndex;p<e.lines.length&&p>=0;p++)u+=e.lines[p].text;var d=new Bn(n.x,n.y,n.width,n.height);this.drawLayoutResult(e,t,o,n),this.underlineStrikeoutText(i,r,e,t,d,o),this.isEmfPlus=!1,this.isUseFontSize=!1,-1!==this.startCutIndex&&this.getNextPage().graphics.drawString(u,t,i,r,n.x,0,n.width,0,o)},e.prototype.getNextPage=function(){var e=this.currentPage.section,t=e.indexOf(this.currentPage);return t===e.count-1?e.add():e.getPages()[t+1]},e.prototype.setClip=function(e,t){void 0===t?this.setClip(e,yn.Winding):(this.pdfStreamWriter.appendRectangle(e),this.pdfStreamWriter.clipPath(t===yn.Alternate))},e.prototype.applyStringSettings=function(e,t,i,r,n){i instanceof As?(this.bCSInitialized=!1,i.graphics.colorSpace=this.colorSpace):i instanceof zs&&(this.bCSInitialized=!1,i.colorSpace=this.colorSpace);var o=this.getTextRenderingMode(t,i,r);this.stateControl(t,i,e,r),this.pdfStreamWriter.beginText(),o!==this.previousTextRenderingMode&&(this.pdfStreamWriter.setTextRenderingMode(o),this.previousTextRenderingMode=o);var s=null!=r?r.characterSpacing:0;s===this.previousCharacterSpacing||this.isEmfTextScaled||(this.pdfStreamWriter.setCharacterSpacing(s),this.previousCharacterSpacing=s);var a=null!=r?r.wordSpacing:0;a!==this.previousWordSpacing&&(this.pdfStreamWriter.setWordSpacing(a),this.previousWordSpacing=a)},e.prototype.getTextVerticalAlignShift=function(e,t,i){var r=0;if(t>=0&&null!=i&&i.lineAlignment!==pn.Top)switch(i.lineAlignment){case pn.Middle:r=(t-e)/2;break;case pn.Bottom:r=t-e}return r},e.prototype.drawLayoutResult=function(e,t,i,r){var n=this.getTextVerticalAlignShift(e.actualSize.height,r.height,i);0!==n&&this.pdfStreamWriter.startNextLine(0,n);var o=t,s=null!=o&&o.isUnicode;null!=o&&o.isEmbedFont;for(var a=e.lines,c=0,h=a.length;c<h&&c!==this.startCutIndex;c++){var u=a[c];u.text;var l=u.width,p=this.getHorizontalAlignShift(l,r.width,i),d=this.getLineIndent(u,i,r,0===c);0===(p+=this.rightToLeft(i)?0:d)||this.isEmfTextScaled||this.pdfStreamWriter.startNextLine(p,0),s?this.drawUnicodeLine(u,r,t,i):this.drawAsciiLine(u,r,t,i),0===p||this.isEmfTextScaled||this.pdfStreamWriter.startNextLine(-p,0),this.isOverloadWithPosition&&a.length>1&&(this.pdfStreamWriter.startNextLine(-r.x,0),r.x=0,r.width=this.clientSize.width,this.isOverloadWithPosition=!1,this.isPointOverload=!0)}this.getResources.getResources().requireProcedureSet(this.procedureSets.text),0!==n&&this.pdfStreamWriter.startNextLine(0,-(n-e.lineHeight)),this.pdfStreamWriter.endText()},e.prototype.drawAsciiLine=function(e,t,i,r){this.justifyLine(e,t.width,r);var n="";if(-1!==e.text.indexOf("(")||-1!==e.text.indexOf(")"))for(var o=0;o<e.text.length;o++)"("===e.text[o]?n+="\\(":")"===e.text[o]?n+="\\)":n+=e.text[o];""===n&&(n=e.text);var s="("+n+")";this.pdfStreamWriter.showNextLineText(new bn(s))},e.prototype.drawUnicodeLine=function(e,t,i,r){var n=e.text;e.width;var o=null!=r&&r.rightToLeft,s=null!=r&&(0!==r.wordSpacing||r.alignment===dn.Justify),a=i,c=this.justifyLine(e,t.width,r),h=new Ss;if(o||null!=r&&r.textDirection!==Sn.None){var u=null,l=null!=r&&r.alignment===dn.Right,p=null;p=(u=null!=r&&r.textDirection!==Sn.None?h.layout(n,a,r.textDirection===Sn.RightToLeft,s,r):h.layout(n,a,l,s,r)).length>1?null!=r&&r.textDirection!==Sn.None?h.splitLayout(n,a,r.textDirection===Sn.RightToLeft,s,r):h.splitLayout(n,a,l,s,r):[n],this.drawUnicodeBlocks(u,p,a,r,c)}else if(s){var d=this.breakUnicodeLine(n,a,null);u=d.tokens,p=d.words;this.drawUnicodeBlocks(u,p,a,r,c)}else{var g=this.convertToUnicode(n,a),f=this.getUnicodeString(g);this.streamWriter.showNextLineText(f)}},e.prototype.drawUnicodeBlocks=function(e,t,i,r,n){if(null==e)throw new Error("Argument Null Exception : blocks");if(null==t)throw new Error("Argument Null Exception : words");if(null==i)throw new Error("Argument Null Exception : font");this.streamWriter.startNextLine();var o=0,s=0,a=0,c=0;try{null!=r&&(a=r.firstLineIndent,c=r.paragraphIndent,r.firstLineIndent=0,r.paragraphIndent=0);var h=i.getCharWidth(Zn.whiteSpace,r)+n,u=null!=r?r.characterSpacing:0;h+=u+(null!=r&&0===n?r.wordSpacing:0);for(var l=0;l<e.length;l++){var p=e[l],d=t[l],g=0;if(0!==o&&this.streamWriter.startNextLine(o,0),d.length>0){g+=i.measureString(d,r).width,g+=u;var f=this.getUnicodeString(p);this.streamWriter.showText(f)}l!==e.length-1&&(s+=o=g+h)}s>0&&this.streamWriter.startNextLine(-s,0)}finally{null!=r&&(r.firstLineIndent=a,r.paragraphIndent=c)}},e.prototype.breakUnicodeLine=function(e,t,i){if(null===e)throw new Error("Argument Null Exception : line");i=e.split(null);for(var r=[],n=0;n<i.length;n++){var o=i[n],s=this.convertToUnicode(o,t);r[n]=s}return{tokens:r,words:i}},e.prototype.getUnicodeString=function(e){if(null===e)throw new Error("Argument Null Exception : token");var t=new bn(e);return t.converted=!0,t.encode=Kr.ForceEncoding.Ascii,t},e.prototype.convertToUnicode=function(e,t){var i=null;if(null==e)throw new Error("Argument Null Exception : text");if(null==t)throw new Error("Argument Null Exception : ttfFont");if(t.fontInternal instanceof ys){var r=t.fontInternal.ttfReader;t.setSymbols(e),i=r.convertString(e);var n=bn.toUnicodeArray(i,!1);i=bn.byteToString(n)}return i},e.prototype.justifyLine=function(e,t,i){var r=e.text,n=e.width,o=this.shouldJustify(e,t,i),s=null!=i&&0!==i.wordSpacing,a=Zn.spaces,c=Zn.getCharsCount(r,a),h=0;o?(s&&(n-=c*i.wordSpacing),h=(t-n)/c,this.pdfStreamWriter.setWordSpacing(h)):s?this.pdfStreamWriter.setWordSpacing(i.wordSpacing):this.pdfStreamWriter.setWordSpacing(0);return h},e.prototype.reset=function(e){this.canvasSize=e,this.streamWriter.clear(),this.initialize(),this.initializeCoordinates()},e.prototype.shouldJustify=function(e,t,i){var r=e.text,n=e.width,o=null!=i&&i.alignment===dn.Justify,s=t>=0&&n<t,a=Zn.spaces,c=Zn.getCharsCount(r,a)>0&&r[0]!==Zn.whiteSpace,h=(e.lineType&_n.LayoutBreak)>0;return o&&s&&c&&(h||i.alignment===dn.Justify)},e.prototype.underlineStrikeoutText=function(e,t,i,r,n,o){if(r.underline||r.strikeout){var s=this.createUnderlineStikeoutPen(e,t,r,o);if(null!=s){var a=this.getTextVerticalAlignShift(i.actualSize.height,n.height,o),c=0;c=n.y+a+r.metrics.getAscent(o)+1.5*s.width;for(var h=n.y+a+r.metrics.getHeight(o)/2+1.5*s.width,u=i.lines,l=0,p=i.lineCount;l<p;l++){var d=u[l];d.text;var g=d.width,f=this.getHorizontalAlignShift(g,n.width,o),M=this.getLineIndent(d,o,n,0===l);f+=this.rightToLeft(o)?0:M;var m=n.x+f,y=this.shouldJustify(d,n.width,o)?m+n.width-M:m+g-M;if(r.underline){var N=c;this.drawLine(s,m,N,y,N),c+=i.lineHeight}if(r.strikeout){N=h;this.drawLine(s,m,N,y,N),h+=i.lineHeight}this.isPointOverload&&u.length>1&&(n.x=0,n.width=this.clientSize.width)}this.isPointOverload=!1}}},e.prototype.createUnderlineStikeoutPen=function(e,t,i,r){var n=i.metrics.getSize(r)/20,o=null;return null!=e?o=new To(e.color,n):null!=t&&(o=new To(t,n)),o},e.prototype.getTextRenderingMode=function(e,t,i){var r=gn.None;return r=null!=e&&null!=t?gn.FillStroke:null!=e?gn.Stroke:gn.Fill,null!=i&&i.clipPath&&(r|=gn.ClipFlag),r},e.prototype.getLineIndent=function(e,t,i,r){var n=0,o=(e.lineType&_n.FirstParagraphLine)>0;return null!=t&&o&&(n=r?t.firstLineIndent:t.paragraphIndent,n=i.width>0?Math.min(i.width,n):n),n},e.prototype.getHorizontalAlignShift=function(e,t,i){var r=0;if(t>=0&&null!=i&&i.alignment!==dn.Left)switch(i.alignment){case dn.Center:r=(t-e)/2;break;case dn.Right:r=t-e}return r},e.prototype.rightToLeft=function(e){var t=null!=e&&e.rightToLeft;return null!=e&&e.textDirection!==Sn.None&&void 0!==e.textDirection&&(t=!0),t},e.prototype.stateControl=function(e,t,i,r){if(void 0===r)this.stateControl(e,t,i,null);else{t instanceof zs&&(this.bCSInitialized=!1,t.colorSpace=this.colorSpace),t instanceof As&&(this.bCSInitialized=!1,t.graphics.colorSpace=this.colorSpace);var n=!1;null!==t?(void 0!==this.pageLayer&&null!=this.pageLayer&&!1===this.colorSpaceChanged&&(this.lastDocumentCS=this.pageLayer.page.document.colorSpace,this.lastGraphicsCS=this.pageLayer.page.graphics.colorSpace,this.colorSpace=this.pageLayer.page.document.colorSpace,this.currentColorSpace=this.pageLayer.page.document.colorSpace,this.colorSpaceChanged=!0),this.initCurrentColorSpace(this.currentColorSpace)):null!=e&&(void 0!==this.pageLayer&&null!=this.pageLayer&&(this.colorSpace=this.pageLayer.page.document.colorSpace,this.currentColorSpace=this.pageLayer.page.document.colorSpace),this.initCurrentColorSpace(this.currentColorSpace)),this.penControl(e,n),this.brushControl(t,n),this.fontControl(i,r,n)}},e.prototype.initCurrentColorSpace=function(e){this.getResources.getResources(),this.bCSInitialized||(this.currentColorSpace!=Nn.GrayScale?(this.pdfStreamWriter.setColorSpace("Device"+this.currentColorSpaces[this.currentColorSpace],!0),this.pdfStreamWriter.setColorSpace("Device"+this.currentColorSpaces[this.currentColorSpace],!1),this.bCSInitialized=!0):(this.pdfStreamWriter.setColorSpace("DeviceGray",!0),this.pdfStreamWriter.setColorSpace("DeviceGray",!1),this.bCSInitialized=!0))},e.prototype.penControl=function(e,t){null!=e&&(this.currentPen=e,e.monitorChanges(this.currentPen,this.pdfStreamWriter,this.getResources,t,this.colorSpace,this.matrix.clone()),this.currentPen=e.clone())},e.prototype.brushControl=function(e,t){if(null!=e&&void 0!==e){var i=e.clone(),r=i;if(!(null==r||e instanceof qn||e instanceof As)){var n=r.matrix,o=this.matrix.clone();null!=n&&(n.multiply(o),o=n),r.matrix=o}this.currentBrush=r,i.monitorChanges(this.currentBrush,this.pdfStreamWriter,this.getResources,t,this.colorSpace),this.currentBrush=e,e=null}},e.prototype.fontControl=function(e,t,i){if(null!=e){var r=null!=t?t.subSuperScript:An.None,n=null!=this.currentStringFormat?this.currentStringFormat.subSuperScript:An.None;if(i||e!==this.currentFont||r!==n){var o=this.getResources.getResources();this.currentFont=e,this.currentStringFormat=t;var s=e.metrics.getSize(t);this.isEmfTextScaled=!1;var a=o.getName(e);this.pdfStreamWriter.setFont(e,a,s)}}},e.prototype.setTransparency=function(e,t,i){if(void 0===t)this.istransparencySet=!0,this.setTransparency(e,e,jn.Normal);else if("number"==typeof t&&void 0===i)this.setTransparency(e,t,jn.Normal);else{null==this.trasparencies&&(this.trasparencies=new xo);var r=null,n=new ks(e,t,i);this.trasparencies.containsKey(n)&&(r=this.trasparencies.getValue(n)),null==r&&(r=new Eo(e,t,i),this.trasparencies.setValue(n,r));var o=this.getResources.getResources().getName(r);this.streamWriter.setGraphicsState(o)}},e.prototype.clipTranslateMargins=function(e,t,i,r,n,o){if(e instanceof Bn&&void 0===t)this.clipBounds=e,this.pdfStreamWriter.writeComment("Clip margins."),this.pdfStreamWriter.appendRectangle(e),this.pdfStreamWriter.closePath(),this.pdfStreamWriter.clipPath(!1),this.pdfStreamWriter.writeComment("Translate co-ordinate system."),this.translateTransform(e.x,e.y);else if("number"==typeof e){var s=new Bn(i,r,this.size.width-i-n,this.size.height-r-o);this.clipBounds=s,this.pdfStreamWriter.writeComment("Clip margins."),this.pdfStreamWriter.appendRectangle(s),this.pdfStreamWriter.closePath(),this.pdfStreamWriter.clipPath(!1),this.pdfStreamWriter.writeComment("Translate co-ordinate system."),this.translateTransform(e,t)}},e.prototype.updateY=function(e){return-e},e.prototype.translateTransform=function(e,t){var i=new Lo;this.getTranslateTransform(e,t,i),this.pdfStreamWriter.modifyCtm(i),this.matrix.multiply(i)},e.prototype.getTranslateTransform=function(e,t,i){return i.translate(e,this.updateY(t)),i},e.prototype.scaleTransform=function(e,t){var i=new Lo;this.getScaleTransform(e,t,i),this.pdfStreamWriter.modifyCtm(i),this.matrix.multiply(i)},e.prototype.getScaleTransform=function(e,t,i){return null==i&&(i=new Lo),i.scale(e,t),i},e.prototype.rotateTransform=function(e){var t=new Lo;this.getRotateTransform(e,t),this.pdfStreamWriter.modifyCtm(t),this.matrix.multiply(t)},e.prototype.initializeCoordinates=function(){this.pdfStreamWriter.writeComment("Change co-ordinate system to left/top."),this.mediaBoxUpperRightBound!==-this.size.height&&null==this.cropBox&&(this.mediaBoxUpperRightBound===this.size.height||0===this.mediaBoxUpperRightBound?this.translateTransform(0,this.updateY(this.size.height)):this.translateTransform(0,this.updateY(this.mediaBoxUpperRightBound)))},e.prototype.getRotateTransform=function(e,t){return null!=t&&void 0!==t||(t=new Lo),t.rotate(this.updateY(e)),t},e.prototype.save=function(){var e=new Es(this,this.matrix.clone());return e.brush=this.currentBrush,e.pen=this.currentPen,e.font=this.currentFont,e.colorSpace=this.currentColorSpace,e.characterSpacing=this.previousCharacterSpacing,e.wordSpacing=this.previousWordSpacing,e.textScaling=this.previousTextScaling,e.textRenderingMode=this.previousTextRenderingMode,this.graphicsState.push(e),this.pdfStreamWriter.saveGraphicsState(),e},e.prototype.restore=function(e){if(void 0===e)this.graphicsState.length>0&&this.doRestoreState();else if(-1!==this.graphicsState.indexOf(e))for(;0!==this.graphicsState.length;){if(this.doRestoreState()===e)break}},e.prototype.doRestoreState=function(){var e=this.graphicsState.pop();return this.transformationMatrix=e.matrix,this.currentBrush=e.brush,this.currentPen=e.pen,this.currentFont=e.font,this.currentColorSpace=e.colorSpace,this.previousCharacterSpacing=e.characterSpacing,this.previousWordSpacing=e.wordSpacing,this.previousTextScaling=e.textScaling,this.previousTextRenderingMode=e.textRenderingMode,this.pdfStreamWriter.restoreGraphicsState(),e},e.prototype.drawPath=function(e,t,i){this._drawPath(e,t,i.pathPoints,i.pathTypes,i.fillMode)},e.prototype._drawPath=function(e,t,i,r,n){t instanceof As?(this.bCSInitialized=!1,t.graphics.colorSpace=this.colorSpace):t instanceof zs&&(this.bCSInitialized=!1,t.colorSpace=this.colorSpace),this.stateControl(e,t,null),this.buildUpPath(i,r),this.drawPathHelper(e,t,n,!1)},e.prototype.drawArc=function(e,t,i,r,n,o,s){t instanceof Bn?this.drawArc(e,t.x,t.y,t.width,t.height,i,r):0!==s&&(this.stateControl(e,null,null),this.constructArcPath(t,i,t+r,i+n,o,s),this.drawPathHelper(e,null,!1))},e.prototype.buildUpPath=function(t,i){for(var r=t.length,n=0;n<r;++n){var o,s=t[n];switch(i[n]&e.pathTypesValuesMask){case Bo.Start:this.pdfStreamWriter.beginPath(s.x,s.y);break;case Bo.Bezier3:var a=new Vn(0,0),c=new Vn(0,0),h=this.getBezierPoints(t,i,n,a,c);this.pdfStreamWriter.appendBezierSegment(s,h.p2,h.p3),n=h.i;break;case Bo.Line:this.pdfStreamWriter.appendLineSegment(s);break;default:throw new Error("ArithmeticException - Incorrect path formation.")}o=i[n],this.checkFlags(o)}},e.prototype.getBezierPoints=function(t,i,r,n,o){if((i[++r]&e.pathTypesValuesMask)!==Bo.Bezier3)throw new Error("ArgumentException : errorMsg");if(n=t[r],(i[++r]&e.pathTypesValuesMask)!==Bo.Bezier3)throw new Error("ArgumentException : errorMsg");return{i:r,p2:n,p3:t[r]}},e.prototype.checkFlags=function(e){(e&Bo.CloseSubpath)===Bo.CloseSubpath&&this.pdfStreamWriter.closePath()},e.prototype.constructArcPath=function(e,t,i,r,n,o){var s=this.getBezierArc(e,t,i,r,n,o);if(0!==s.length){var a=[s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7]];this.pdfStreamWriter.beginPath(a[0],a[1]);var c=0;for(c=0;c<s.length;c+=8)a=[s[c],s[c+1],s[c+2],s[c+3],s[c+4],s[c+5],s[c+6],s[c+7]],this.pdfStreamWriter.appendBezierSegment(a[2],a[3],a[4],a[5],a[6],a[7])}},e.prototype.getBezierArc=function(e,t,i,r,n,o){if(e>i){var s=void 0;s=e,e=i,i=s}if(r>t){s=void 0;s=t,t=r,r=s}var a,c;Math.abs(o)<=90?(a=o,c=1):a=o/(c=Math.ceil(Math.abs(o)/90));for(var h=(e+i)/2,u=(t+r)/2,l=(i-e)/2,p=(r-t)/2,d=a*(Math.PI/360),g=Math.abs(4/3*(1-Math.cos(d))/Math.sin(d)),f=[],M=0;M<c;M++){var m=(n+M*a)*(Math.PI/180),y=(n+(M+1)*a)*(Math.PI/180),N=Math.cos(m),j=Math.cos(y),D=Math.sin(m),I=Math.sin(y);a>0?f.push(h+l*N,u-p*D,h+l*(N-g*D),u-p*(D+g*N),h+l*(j+g*I),u-p*(I-g*j),h+l*j,u-p*I):f.push(h+l*N,u-p*D,h+l*(N+g*D),u-p*(D-g*N),h+l*(j-g*I),u-p*(I+g*j),h+l*j,u-p*I)}return f},e.pathTypesValuesMask=15,e.transparencyObject=!1,e}(),xs=function(){function e(e){this.sender=e}return e.prototype.getResources=function(){return this.sender.getResources()},e}(),Es=function(){function e(e,t){if(this.internalTextRenderingMode=gn.Fill,this.internalCharacterSpacing=0,this.internalWordSpacing=0,this.internalTextScaling=100,this.pdfColorSpace=Nn.Rgb,void 0!==e){this.pdfGraphics=e;var i=[];e.matrix.matrix.elements.forEach(function(e){i.push(e)}),this.transformationMatrix=new Lo,this.transformationMatrix.matrix=new Ao(i)}}return Object.defineProperty(e.prototype,"graphics",{get:function(){return this.pdfGraphics},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matrix",{get:function(){return this.transformationMatrix},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"characterSpacing",{get:function(){return this.internalCharacterSpacing},set:function(e){this.internalCharacterSpacing=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wordSpacing",{get:function(){return this.internalWordSpacing},set:function(e){this.internalWordSpacing=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textScaling",{get:function(){return this.internalTextScaling},set:function(e){this.internalTextScaling=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pen",{get:function(){return this.pdfPen},set:function(e){this.pdfPen=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"brush",{get:function(){return this.pdfBrush},set:function(e){this.pdfBrush=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"font",{get:function(){return this.pdfFont},set:function(e){this.pdfFont=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorSpace",{get:function(){return this.pdfColorSpace},set:function(e){this.pdfColorSpace=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textRenderingMode",{get:function(){return this.internalTextRenderingMode},set:function(e){this.internalTextRenderingMode=e},enumerable:!0,configurable:!0}),e}(),ks=function(e,t,i){this.alphaPen=e,this.alphaBrush=t,this.blendMode=i},Ps=function(){function e(e,t){if(this.pdfColorSpace=Nn.Rgb,this.isVisible=!0,this.sublayer=!1,this.contentLength=0,this.dictionaryProperties=new Yr,null===e)throw new Error("ArgumentNullException:page");if(this.pdfPage=e,this.clipPageTemplates=!0,void 0===t)this.content=new cn;else if(t instanceof cn||null===t){if(null===t)throw new Error("ArgumentNullException:stream");this.content=t}else this.content=new cn,this.clipPageTemplates=t}return Object.defineProperty(e.prototype,"colorSpace",{get:function(){return this.pdfColorSpace},set:function(e){this.pdfColorSpace=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layerId",{get:function(){return this.layerid},set:function(e){this.layerid=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.layerName},set:function(e){this.layerName=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this.isVisible},set:function(e){this.isVisible=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"graphics",{get:function(){return null==this.pdfGraphics&&this.initializeGraphics(this.page),this.pdfGraphics},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layers",{get:function(){return null==this.layer?(this.layer=new Ys(this.page),this.layer.sublayer=!0,this.layer):this.layer},enumerable:!0,configurable:!0}),e.prototype.add=function(){var t=new e(this.pdfPage);return t.name="",t},e.prototype.sign=function(e){return 0===e?0:e>0?1:-1},e.prototype.initializeGraphics=function(e){var t=e,i=new xs(this.page);if(this.pdfGraphics=new Cs(e.size,i,this.content),this.pdfGraphics.mediaBoxUpperRightBound=0,null!=t){var r=t.section.parent;null!=r&&(this.pdfGraphics.colorSpace=r.document.colorSpace,this.colorSpace=r.document.colorSpace)}var n=this.sign(e.origin.y)===this.sign(e.origin.x);(e.origin.x>=0&&e.origin.y>=0||!n)&&this.pdfGraphics.initializeCoordinates();var o=t.section.getActualBounds(t,!0),s=t.section.pageSettings.margins;this.clipPageTemplates?e.origin.x>=0&&e.origin.y>=0&&this.pdfGraphics.clipTranslateMargins(o):this.graphics.clipTranslateMargins(o.x,o.y,s.left,s.top,s.right,s.bottom),this.pdfGraphics.setLayer(this)},Object.defineProperty(e.prototype,"element",{get:function(){return this.content},enumerable:!0,configurable:!0}),e}(),Us=function(){function e(){}return Object.defineProperty(e.prototype,"count",{get:function(){return void 0===this.collection&&(this.collection=[]),this.collection.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"list",{get:function(){return void 0===this.collection&&(this.collection=[]),this.collection},enumerable:!0,configurable:!0}),e}(),Qs=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Ys=function(e){function t(t){var i=e.call(this)||this;if(i.parentLayerCount=0,i.sublayer=!1,i.optionalContent=new Rr,t instanceof Rs){i.page=t;var r=t;i.parseLayers(r)}return i}return Qs(t,e),t.prototype.items=function(e,t){if("number"==typeof e&&void 0===t)return this.list[e];if(null==t)throw new Error("ArgumentNullException: layer");if(t.page!==this.page)throw new Error("ArgumentException: The layer belongs to another page")},t.prototype.add=function(e,t){if(void 0===e){var i=new Ps(this.page);return i.name="",this.add(i),i}if(e instanceof Ps){var r=this.list.push(e);return this.addLayer(r,e),r}return 0},t.prototype.addLayer=function(e,t){var i=new vn(t);this.page.contents.add(i)},t.prototype.insert=function(e,t){for(var i=[],r=this.list.length,n=e;n<r;n++)i.push(this.list.pop());this.list.push(t);for(n=0;n<i.length;n++)this.list.push(i[n]);this.insertLayer(e,t)},t.prototype.insertLayer=function(e,t){if(null==t)throw new Error("ArgumentNullException:layer");var i=new vn(t);this.page.contents.insert(e,i)},t.prototype.parseLayers=function(e){var t=this.page.contents;this.page.getResources(),e.crossTable;var i=new cn,r=new cn,n=[];n.push("q"),i.data=n,t.insert(0,new vn(i)),(n=[]).push("Q"),r.data=n,t.insert(t.count,new vn(r))},t.prototype.indexOf=function(e){if(null==e)throw new Error("ArgumentNullException: layer");return this.list.indexOf(e)},t}(Us),Rs=function(){function e(e){this.defLayerIndex=-1,this.modified=!1,this.dictionaryProperties=new Yr,this.pageDictionary=e}return Object.defineProperty(e.prototype,"section",{get:function(){return this.pdfSection},set:function(e){this.pdfSection=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dictionary",{get:function(){return this.pageDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.pageDictionary},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultLayer",{get:function(){var e=this.layers,t=this.defaultLayerIndex;return e.items(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultLayerIndex",{get:function(){if(0===this.layerCollection.count||-1===this.defLayerIndex){var e=this.layerCollection.add();this.defLayerIndex=this.layerCollection.indexOf(e)}return this.defLayerIndex},set:function(e){if(e<0||e>this.layers.count-1)throw new Error("ArgumentOutOfRangeException : value, Index can not be less 0 and greater Layers.Count - 1");this.defLayerIndex=e,this.modified=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layers",{get:function(){return null!=this.layerCollection&&void 0!==this.layerCollection||(this.layerCollection=new Ys(this)),this.layerCollection},enumerable:!0,configurable:!0}),e.prototype.getResources=function(){return null==this.resources&&(this.resources=new Os,this.dictionary.items.setValue(this.dictionaryProperties.resources,this.resources)),this.resources},Object.defineProperty(e.prototype,"contents",{get:function(){var e=this.pageDictionary.items.getValue(this.dictionaryProperties.contents);return null==e&&(e=new qr,this.pageDictionary.items.setValue(this.dictionaryProperties.contents,e)),e},enumerable:!0,configurable:!0}),e.prototype.setResources=function(e){this.resources=e,this.dictionary.items.setValue(this.dictionaryProperties.resources,this.resources),this.modified=!0},e}(),Vs=function(){function e(e){this.alreadyExistsAnnotationError="This annotatation had been already added to page",this.missingAnnotationException="Annotation is not contained in collection.",this.dictionaryProperties=new Yr,this.internalAnnotations=new qr,this.lists=[],void 0!==e&&(this.page=e)}return Object.defineProperty(e.prototype,"annotations",{get:function(){return this.internalAnnotations},set:function(e){this.internalAnnotations=e},enumerable:!0,configurable:!0}),e.prototype.add=function(e){this.doAdd(e)},e.prototype.doAdd=function(e){if(void 0===e.destination)return e.setPage(this.page),this.internalAnnotations.add(new vn(e)),this.lists.push(e);var t=(new Kn).layout(e.text,e.font,e.stringFormat,new Fn(e.bounds.width,0),!1,new Fn(0,0)),i=e.bounds.y;if(1===t.lines.length){var r=e.font.measureString(t.lines[0].text);e.bounds=new Bn(new Vn(e.bounds.x,i),r),e.text=t.lines[0].text,this.page.graphics.drawString(e.text,e.font,null,e.brush,e.bounds.x,e.bounds.y,e.bounds.width,e.bounds.height,null),e.setPage(this.page),this.setColor(e),this.internalAnnotations.add(new vn(e)),this.lists.push(e)}else for(var n=0;n<t.lines.length;n++){r=e.font.measureString(t.lines[n].text);if(0===n)e.bounds=new Bn(e.bounds.x,i,r.width,r.height),e.text=t.lines[n].text,this.page.graphics.drawString(e.text,e.font,null,e.brush,e.bounds.x,i,r.width,r.height,null),e.setPage(this.page),this.setColor(e),this.internalAnnotations.add(new vn(e)),this.lists.push(e),i+=e.bounds.height;else{var o=e.clone();o.bounds=new Bn(new Vn(e.bounds.x,i),r),o.text=t.lines[n].text,this.page.graphics.drawString(o.text,o.font,null,o.brush,o.bounds.x,o.bounds.y,o.bounds.width,o.bounds.height,null),o.setPage(this.page),this.setColor(o),this.internalAnnotations.add(new vn(o)),this.lists.push(o),i+=o.bounds.height}}},e.prototype.setColor=function(e){var t=Nn.Rgb,i=e.color.toArray(t);e.dictionary.items.setValue(this.dictionaryProperties.c,i)},Object.defineProperty(e.prototype,"element",{get:function(){return this.internalAnnotations},enumerable:!0,configurable:!0}),e}(),Fs=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),Bs=function(e){function t(){var t=e.call(this,new Rr)||this;return t.annotationCollection=null,t.beginSave=null,t.initialize(),t}return Fs(t,e),Object.defineProperty(t.prototype,"document",{get:function(){return null!==this.section&&null!==this.section.parent?this.section.parent.document:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"graphics",{get:function(){var e=this.defaultLayer.graphics;return e.currentPage=this,e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"crossTable",{get:function(){if(null===this.section)throw new Error("PdfDocumentException : Page is not created");return null===this.section.parent?this.section.parentDocument.crossTable:this.section.parent.document.crossTable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.section.pageSettings.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"origin",{get:function(){return this.section.pageSettings.origin},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"annotations",{get:function(){return null==this.annotationCollection&&(this.annotationCollection=new Vs(this),this.dictionary.items.setValue(this.dictionaryProperties.annots,this.annotationCollection.element),this.annotationCollection.annotations=this.dictionary.items.getValue(this.dictionaryProperties.annots)),this.annotationCollection},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this.dictionary.items.setValue(this.dictionaryProperties.type,new Ur("Page")),this.dictionary.pageBeginDrawTemplate=new Gr(this)},t.prototype.setSection=function(e){this.section=e,this.dictionary.items.setValue(this.dictionaryProperties.parent,new vn(e))},t.prototype.resetProgress=function(){this.isProgressOn=!1},t.prototype.getClientSize=function(){var e=this.section.getActualBounds(this,!0);return new Fn(e.width,e.height)},t.prototype.pageBeginSave=function(){var e=this.document;void 0!==typeof e&&null!=e&&this.drawPageTemplates(e),null!=this.beginSave&&void 0!==this.beginSave&&this.beginSave(this)},t.prototype.drawPageTemplates=function(e){if(this.section.containsTemplates(e,this,!1)){var t=new Ps(this,!1);if(this.layers.insert(0,t),this.section.drawTemplates(this,t,e,!1),null!==t.graphics&&void 0!==t.graphics)for(var i=0;i<t.graphics.automaticFields.automaticFields.length;i++){var r=t.graphics.automaticFields.automaticFields[i];r.field.performDraw(t.graphics,r.location,r.scalingX,r.scalingY)}}if(this.section.containsTemplates(e,this,!0)){var n=new Ps(this,!1);this.layers.add(n),this.section.drawTemplates(this,n,e,!0)}},t}(Rs),Ws=function(){function e(e){this.pdfPage=void 0!==e?e:null}return Object.defineProperty(e.prototype,"page",{get:function(){return this.pdfPage},enumerable:!0,configurable:!0}),e}(),Gs=function(){function e(e){if(this.pdfSection=null,null==e)throw Error('ArgumentNullException("section")');this.section=e}return Object.defineProperty(e.prototype,"section",{get:function(){return this.pdfSection},set:function(e){this.pdfSection=e},enumerable:!0,configurable:!0}),e.prototype.contains=function(e){return this.section.contains(e)},e.prototype.remove=function(e){this.section.remove(e)},e.prototype.add=function(){return this.section.add()},e}(),Hs=function(){function e(){}return Object.defineProperty(e.prototype,"left",{get:function(){return this.leftTemplate},set:function(e){this.leftTemplate=this.checkElement(e,No.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.topTemplate},set:function(e){this.topTemplate=this.checkElement(e,No.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.rightTemplate},set:function(e){this.rightTemplate=this.checkElement(e,No.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.bottomTemplate},set:function(e){this.bottomTemplate=this.checkElement(e,No.Bottom)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"EvenLeft",{get:function(){return this.evenLeft},set:function(e){this.evenLeft=this.checkElement(e,No.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"EvenTop",{get:function(){return this.evenTop},set:function(e){this.evenTop=this.checkElement(e,No.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"EvenRight",{get:function(){return this.evenRight},set:function(e){this.evenRight=this.checkElement(e,No.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"EvenBottom",{get:function(){return this.evenBottom},set:function(e){this.evenBottom=this.checkElement(e,No.Bottom)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OddLeft",{get:function(){return this.oddLeft},set:function(e){this.oddLeft=this.checkElement(e,No.Left)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OddTop",{get:function(){return this.oddTop},set:function(e){this.oddTop=this.checkElement(e,No.Top)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OddRight",{get:function(){return this.oddRight},set:function(e){this.oddRight=this.checkElement(e,No.Right)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OddBottom",{get:function(){return this.oddBottom},set:function(e){this.oddBottom=this.checkElement(e,No.Bottom)},enumerable:!0,configurable:!0}),e.prototype.getLeft=function(e){if(null==e)throw new Error("ArgumentNullException:page");return this.isEven(e)?null!=this.EvenLeft?this.EvenLeft:this.left:null!=this.OddLeft?this.OddLeft:this.left},e.prototype.getTop=function(e){if(null==e)throw new Error("ArgumentNullException:page");return this.isEven(e)?null!=this.EvenTop?this.EvenTop:this.top:null!=this.OddTop?this.OddTop:this.top},e.prototype.getRight=function(e){if(null==e)throw new Error("ArgumentNullException:page");return this.isEven(e)?null!=this.EvenRight?this.EvenRight:this.right:null!=this.OddRight?this.OddRight:this.right},e.prototype.getBottom=function(e){if(null==e)throw new Error("ArgumentNullException:page");return this.isEven(e)?null!=this.EvenBottom?this.EvenBottom:this.bottom:null!=this.OddBottom?this.OddBottom:this.bottom},e.prototype.isEven=function(e){var t=e.section.document.pages;return(t.pageCollectionIndex.containsKey(e)?t.pageCollectionIndex.getValue(e)+1:t.indexOf(e)+1)%2==0},e.prototype.checkElement=function(e,t){if(null!=e){if(void 0!==e.type&&e.type!==No.None)throw new Error("NotSupportedException:Can not reassign the template element. Please, create new one.");e.type=t}return e},e}(),qs=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),_s=function(e){function t(){var t=e.call(this)||this;return t.leftValue=t.topValue=t.rightValue=t.bottomValue=t.stampValue=!0,t}return qs(t,e),Object.defineProperty(t.prototype,"applyDocumentLeftTemplate",{get:function(){return this.leftValue},set:function(e){this.leftValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"applyDocumentTopTemplate",{get:function(){return this.topValue},set:function(e){this.topValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"applyDocumentRightTemplate",{get:function(){return this.rightValue},set:function(e){this.rightValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"applyDocumentBottomTemplate",{get:function(){return this.bottomValue},set:function(e){this.bottomValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"applyDocumentStamps",{get:function(){return this.stampValue},set:function(e){this.stampValue=e},enumerable:!0,configurable:!0}),t}(Hs),Js=function(){function e(e,t){this.pageAdded=new Ws,this.pdfPages=[],this.dictionaryProperties=new Yr,this.pdfDocument=e,void 0===t?(this.settings=e.pageSettings.clone(),this.initialSettings=this.settings.clone()):(this.settings=t.clone(),this.initialSettings=this.settings.clone()),this.initialize()}return Object.defineProperty(e.prototype,"parent",{get:function(){return this.sectionCollection},set:function(e){this.sectionCollection=e,this.section.items.setValue(this.dictionaryProperties.parent,new vn(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentDocument",{get:function(){return this.pdfDocument},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSettings",{get:function(){return this.settings},set:function(e){if(null==e)throw Error("Value can not be null.");this.settings=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.section},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this.pagesReferences.count},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"template",{get:function(){return null==this.pageTemplate&&(this.pageTemplate=new _s),this.pageTemplate},set:function(e){this.pageTemplate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"document",{get:function(){return this.sectionCollection.document},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pages",{get:function(){return null!=this.pagesCollection&&void 0!==this.pagesCollection||(this.pagesCollection=new Gs(this)),this.pagesCollection},enumerable:!0,configurable:!0}),e.prototype.getPages=function(){return this.pdfPages},e.prototype.pointToNativePdf=function(e,t){var i=this.getActualBounds(e,!0);return t.x+=i.x,t.y=this.pageSettings.height-t.y,t},e.prototype.setPageSettings=function(e){this.settings=e,this.state.orientation=e.orientation,this.state.rotate=e.rotate,this.state.size=e.size,this.state.origin=e.origin},e.prototype.initialize=function(){this.pagesReferences=new qr,this.section=new Rr,this.state=new Zs(this.pdfDocument),this.section.sectionBeginSave=new Wr(this,this.state),this.pageCount=new Hr(0),this.section.items.setValue(this.dictionaryProperties.count,this.pageCount),this.section.items.setValue(this.dictionaryProperties.type,new Ur(this.dictionaryProperties.pages)),this.section.items.setValue(this.dictionaryProperties.kids,this.pagesReferences)},e.prototype.containsTemplates=function(e,t,i){var r=this.getDocumentTemplates(e,t,i),n=this.getSectionTemplates(t,i);return r.length>0||n.length>0},e.prototype.getDocumentTemplates=function(e,t,i){var r=[];return this.template.applyDocumentTopTemplate&&null!=e.template.getTop(t)&&(!e.template.getTop(t).foreground&&!i||e.template.getTop(t).foreground&&i)&&r.push(e.template.getTop(t)),this.template.applyDocumentBottomTemplate&&null!=e.template.getBottom(t)&&(!e.template.getBottom(t).foreground&&!i||e.template.getBottom(t).foreground&&i)&&r.push(e.template.getBottom(t)),this.template.applyDocumentLeftTemplate&&null!=e.template.getLeft(t)&&(!e.template.getLeft(t).foreground&&!i||e.template.getLeft(t).foreground&&i)&&r.push(e.template.getLeft(t)),this.template.applyDocumentRightTemplate&&null!=e.template.getRight(t)&&(!e.template.getRight(t).foreground&&!i||e.template.getRight(t).foreground&&i)&&r.push(e.template.getRight(t)),r},e.prototype.getSectionTemplates=function(e,t){var i,r=[];null!=this.template.getTop(e)&&((!(i=this.template.getTop(e)).foreground&&!t||i.foreground&&t)&&r.push(i));null!=this.template.getBottom(e)&&((!(i=this.template.getBottom(e)).foreground&&!t||i.foreground&&t)&&r.push(i));null!=this.template.getLeft(e)&&((!(i=this.template.getLeft(e)).foreground&&!t||i.foreground&&t)&&r.push(i));null!=this.template.getRight(e)&&((!(i=this.template.getRight(e)).foreground&&!t||i.foreground&&t)&&r.push(i));return r},e.prototype.add=function(e){if(void 0===e){var t=new Bs;return this.add(t),t}var i=this.checkPresence(e);this.pdfPages.push(e),this.pagesReferences.add(i),e.setSection(this),e.resetProgress(),this.pageAddedMethod(e)},e.prototype.checkPresence=function(e){for(var t=new vn(e),i=!1,r=this.parent,n=0;n<r.section.length;n++){var o=r.section[n];i=i||o.contains(e)}return t},e.prototype.contains=function(e){return 0<=this.indexOf(e)},e.prototype.indexOf=function(e){for(var t=0;t<this.pdfPages.length;t++)if(this.pdfPages[t]===e)return this.pdfPages.indexOf(e);var i=new vn(e);return this.pagesReferences.indexOf(i)},e.prototype.pageAddedMethod=function(e){var t=new Ws(e);this.onPageAdded(t),this.parent.document.pages.onPageAdded(t),this.pageCount.intValue=this.count},e.prototype.onPageAdded=function(e){},e.prototype.getActualBounds=function(e,t,i){if(e instanceof Bs&&"boolean"==typeof t){var r=this.parent.document;return this.getActualBounds(r,e,t)}var n=new Bn(0,0,0,0);n.height=i?this.pageSettings.size.height:this.pageSettings.getActualSize().height,n.width=i?this.pageSettings.size.width:this.pageSettings.getActualSize().width;var o=this.getLeftIndentWidth(e,t,i),s=this.getTopIndentHeight(e,t,i),a=this.getRightIndentWidth(e,t,i),c=this.getBottomIndentHeight(e,t,i);return n.x+=o,n.y+=s,n.width-=o+a,n.height-=s+c,n},e.prototype.getLeftIndentWidth=function(e,t,i){if(null==e)throw new Error("ArgumentNullException:document");if(null==t)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.left:0,n=null!=this.template.getLeft(t)?this.template.getLeft(t).width:0,o=null!=e.template.getLeft(t)?e.template.getLeft(t).width:0;return r+=this.template.applyDocumentLeftTemplate?Math.max(n,o):n},e.prototype.getTopIndentHeight=function(e,t,i){if(null==e)throw new Error("ArgumentNullException:document");if(null==t)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.top:0,n=null!=this.template.getTop(t)?this.template.getTop(t).height:0,o=null!=e.template.getTop(t)?e.template.getTop(t).height:0;return r+=this.template.applyDocumentTopTemplate?Math.max(n,o):n},e.prototype.getRightIndentWidth=function(e,t,i){if(null==e)throw new Error("ArgumentNullException:document");if(null==t)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.right:0,n=null!=this.template.getRight(t)?this.template.getRight(t).width:0,o=null!=e.template.getRight(t)?e.template.getRight(t).width:0;return r+=this.template.applyDocumentRightTemplate?Math.max(n,o):n},e.prototype.getBottomIndentHeight=function(e,t,i){if(null==e)throw new Error("ArgumentNullException:document");if(null==t)throw new Error("ArgumentNullException:page");var r=i?this.pageSettings.margins.bottom:0,n=null!=this.template.getBottom(t)?this.template.getBottom(t).height:0,o=null!=e.template.getBottom(t)?e.template.getBottom(t).height:0;return r+=this.template.applyDocumentBottomTemplate?Math.max(n,o):n},e.prototype.remove=function(e){if(null==e)throw Error('ArgumentNullException("page")');var t=this.pdfPages.indexOf(e);this.pagesReferences.removeAt(t);for(var i=[],r=0;r<t;r++)i.push(this.pdfPages[r]);for(r=t+1;r<this.pdfPages.length;r++)i.push(this.pdfPages[r]);this.pdfPages=i},e.prototype.applyPageSettings=function(e,t,i){var r=new Bn(i.origin,i.size);e.items.setValue(this.dictionaryProperties.mediaBox,qr.fromRectangle(r));var n;n=Ks.rotateFactor*i.rotate;var o=new Hr(n);e.items.setValue(this.dictionaryProperties.rotate,o)},e.prototype.beginSave=function(e,t){var i=t.document;this.applyPageSettings(this.section,i.pageSettings,e)},e.prototype.drawTemplates=function(e,t,i,r){var n=this.getDocumentTemplates(i,e,r),o=this.getSectionTemplates(e,r);this.drawTemplatesHelper(t,i,n),this.drawTemplatesHelper(t,i,o)},e.prototype.drawTemplatesHelper=function(e,t,i){if(null!=i&&i.length>0)for(var r=i.length,n=0;n<r;n++){i[n].draw(e,t)}},e}(),Zs=function(){function e(e){this.pageOrientation=e.pageSettings.orientation,this.pageRotate=e.pageSettings.rotate,this.pageSize=e.pageSettings.size,this.pageOrigin=e.pageSettings.origin}return Object.defineProperty(e.prototype,"orientation",{get:function(){return this.pageOrientation},set:function(e){this.pageOrientation=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rotate",{get:function(){return this.pageRotate},set:function(e){this.pageRotate=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.pageSize},set:function(e){this.pageSize=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"origin",{get:function(){return this.pageOrigin},set:function(e){this.pageOrigin=e},enumerable:!0,configurable:!0}),e}(),Ks=function(){function e(e){this.sections=[],this.dictionaryProperties=new Yr,this.pdfDocument=e.clone(),this.initialize()}return Object.defineProperty(e.prototype,"section",{get:function(){return this.sections},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"document",{get:function(){return this.pdfDocument},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this.sections.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.pages},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){this.sectionCount=new Hr(0),this.sectionCollection=new qr,this.pages=new Rr,this.pages.beginSave=new Vr(this),this.pages.items.setValue(this.dictionaryProperties.type,new Ur("Pages")),this.pages.items.setValue(this.dictionaryProperties.kids,this.sectionCollection),this.pages.items.setValue(this.dictionaryProperties.count,this.sectionCount),this.pages.items.setValue(this.dictionaryProperties.resources,new Rr),this.setPageSettings(this.pages,this.pdfDocument.pageSettings)},e.prototype.pdfSectionCollection=function(e){if(e<0||e>=this.count)throw new Error("IndexOutOfRangeException()");return this.sections[e]},e.prototype.setPageSettings=function(e,t){var i=new Bn(new Vn,t.size);e.items.setValue(this.dictionaryProperties.mediaBox,qr.fromRectangle(i))},e.prototype.add=function(e){if(void 0===e){var t=new Js(this.pdfDocument);return this.add(t),t}var i=this.checkSection(e);return this.sections.push(e),e.parent=this,this.sectionCollection.add(i),this.sections.indexOf(e)},e.prototype.checkSection=function(e){var t=new vn(e);return this.sectionCollection.contains(t),t},e.prototype.countPages=function(){var e=0;return this.sections.forEach(function(t){return e+=t.count}),e},e.prototype.beginSave=function(){this.sectionCount.intValue=this.countPages()},e.rotateFactor=90,e}(),Xs=function(){function e(e){this.pdfPageCollectionIndex=new Pr,this.document=e}return Object.defineProperty(e.prototype,"count",{get:function(){return this.countPages()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageCollectionIndex",{get:function(){return this.pdfPageCollectionIndex},enumerable:!0,configurable:!0}),e.prototype.add=function(e){if(void 0===e){var t=new Bs;return this.add(t),t}this.getLastSection().add(e)},e.prototype.getLastSection=function(){var e=this.document.sections;return 0===e.section.length&&e.add(),e.section[e.section.length-1]},e.prototype.onPageAdded=function(e){},e.prototype.countPages=function(){for(var e=this.document.sections,t=0,i=0;i<e.section.length;i++)t+=e.section[i].count;return t},e.prototype.getPageByIndex=function(e){return this.getPage(e)},e.prototype.getPage=function(e){if(e<0||e>=this.count)throw Error('ArgumentOutOfRangeException("index", "Value can not be less 0")');for(var t=null,i=0,r=0,n=0,o=this.document.sections.count,s=0;s<o;s++){var a=this.document.sections.section[s];if(r=a.count,n=e-i,e>=i&&n<r){t=a.getPages()[n];break}i+=r}return t},e.prototype.indexOf=function(e){var t=-1;if(null==e)throw new Error("ArgumentNullException: page");for(var i=0,r=0,n=this.document.sections.count;r<n;r++){var o=this.document.sections.pdfSectionCollection(r);if((t=o.indexOf(e))>=0){t+=i;break}t=-1,i+=o.count}return t},e.prototype.remove=function(e){if(null==e)throw Error('ArgumentNullException("page")');for(var t=null,i=0,r=this.document.sections.count;i<r;i++)if((t=this.document.sections.pdfSectionCollection(i)).pages.contains(e)){t.pages.remove(e);break}return t},e}(),$s=function(){function e(){this.referenceObjects=[],this.pdfFontCollection=new Pr}return e.prototype.search=function(e){var t=null,i=this.getGroup(e);return null==i?i=this.createNewGroup():i.length>0&&(t=i[0]),i.push(e),t},e.prototype.createNewGroup=function(){var e=[];return this.referenceObjects.push(e),e},e.prototype.getGroup=function(e){var t=null;if(null!==e)for(var i=this.referenceObjects.length,r=0;r<i;r++){if(this.referenceObjects.length>0){var n=this.referenceObjects[r];if(n.length>0){var o=n[0];if(e.equalsTo(o)){t=n;break}}else this.removeGroup(n)}i=this.referenceObjects.length}return t},e.prototype.removeGroup=function(e){if(null!==e){var t=this.referenceObjects.indexOf(e);this.referenceObjects.slice(t,t+1)}},e.prototype.destroy=function(){this.pdfFontCollection=void 0,this.referenceObjects=void 0},e}(),ea=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),ta=function(e){function t(i){var r=e.call(this)||this;r.defaultMargin=40,r.streamWriter=null,r.document=r;var n=!1;void 0===i?(t.cacheCollection=new $s,n=!1):n=i;var o=new no;r.setMainObjectCollection(o);var s=new Io;s.isMerging=n,s.document=r,r.setCrossTable(s);var a=new Do;return r.setCatalog(a),o.add(a),a.position=-1,r.sectionCollection=new Ks(r),r.documentPageCollection=new Xs(r),a.pages=r.sectionCollection,r}return ea(t,e),Object.defineProperty(t,"defaultFont",{get:function(){return null==this.defaultStandardFont&&(this.defaultStandardFont=new na(On.Helvetica,8)),this.defaultStandardFont},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sections",{get:function(){return this.sectionCollection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageSettings",{get:function(){return null==this.settings&&(this.settings=new wo(this.defaultMargin)),this.settings},set:function(e){this.settings=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pages",{get:function(){return this.documentPageCollection},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cache",{get:function(){return void 0===t.cacheCollection||null==t.cacheCollection?new $s:t.cacheCollection},set:function(e){this.cacheCollection=e},enumerable:!0,configurable:!0}),Object.defineProperty(t,"enableCache",{get:function(){return this.isCacheEnabled},set:function(e){this.isCacheEnabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colorSpace",{get:function(){return this.pdfColorSpace===Nn.Rgb||this.pdfColorSpace===Nn.Cmyk||this.pdfColorSpace===Nn.GrayScale?this.pdfColorSpace:Nn.Rgb},set:function(e){e===Nn.Rgb||e===Nn.Cmyk||e===Nn.GrayScale?this.pdfColorSpace=e:this.pdfColorSpace=Nn.Rgb},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"template",{get:function(){return null==this.pageTemplate&&(this.pageTemplate=new Hs),this.pageTemplate},set:function(e){this.pageTemplate=e},enumerable:!0,configurable:!0}),t.prototype.docSave=function(e,t,i){if(this.checkPagesPresence(),null===e)throw new Error("ArgumentNullException : stream");this.streamWriter=e;var r=new io(e);if(r.document=this,"boolean"==typeof t&&void 0===i)return this.crossTable.save(r);this.crossTable.save(r,t)},t.prototype.checkPagesPresence=function(){0===this.pages.count&&this.pages.add()},t.prototype.destroy=function(){this.catalog=void 0,this.colorSpace=void 0,this.currentSavingObj=void 0,this.documentPageCollection=void 0,this.isStreamCopied=void 0,this.pageSettings=void 0,this.pageTemplate=void 0,this.pdfColorSpace=void 0,this.sectionCollection=void 0,t.cache.destroy(),this.crossTable.pdfObjects.destroy(),t.cache=void 0,this.streamWriter.destroy()},t.defaultStandardFont=null,t.isCacheEnabled=!0,t}(so),ia=function(){function e(){}return e.getMetrics=function(e,t,i){var r=null;switch(e){case On.Helvetica:r=this.getHelveticaMetrics(e,t,i);break;case On.Courier:r=this.getCourierMetrics(e,t,i);break;case On.TimesRoman:r=this.getTimesMetrics(e,t,i);break;case On.Symbol:r=this.getSymbolMetrics(e,t,i);break;case On.ZapfDingbats:r=this.getZapfDingbatsMetrics(e,t,i);break;default:r=this.getHelveticaMetrics(On.Helvetica,t,i)}return r.name=e.toString(),r.subScriptSizeFactor=this.subSuperScriptFactor,r.superscriptSizeFactor=this.subSuperScriptFactor,r},e.getHelveticaMetrics=function(e,t,i){var r=new fs;return(t&wn.Bold)>0&&(t&wn.Italic)>0?(r.ascent=this.helveticaBoldItalicAscent,r.descent=this.helveticaBoldItalicDescent,r.postScriptName=this.helveticaBoldItalicName,r.size=i,r.widthTable=new ms(this.arialBoldWidth),r.height=r.ascent-r.descent):(t&wn.Bold)>0?(r.ascent=this.helveticaBoldAscent,r.descent=this.helveticaBoldDescent,r.postScriptName=this.helveticaBoldName,r.size=i,r.widthTable=new ms(this.arialBoldWidth),r.height=r.ascent-r.descent):(t&wn.Italic)>0?(r.ascent=this.helveticaItalicAscent,r.descent=this.helveticaItalicDescent,r.postScriptName=this.helveticaItalicName,r.size=i,r.widthTable=new ms(this.arialWidth),r.height=r.ascent-r.descent):(r.ascent=this.helveticaAscent,r.descent=this.helveticaDescent,r.postScriptName=this.helveticaName,r.size=i,r.widthTable=new ms(this.arialWidth),r.height=r.ascent-r.descent),r},e.getCourierMetrics=function(e,t,i){var r=new fs;return(t&wn.Bold)>0&&(t&wn.Italic)>0?(r.ascent=this.courierBoldItalicAscent,r.descent=this.courierBoldItalicDescent,r.postScriptName=this.courierBoldItalicName,r.size=i,r.widthTable=new ms(this.fixedWidth),r.height=r.ascent-r.descent):(t&wn.Bold)>0?(r.ascent=this.courierBoldAscent,r.descent=this.courierBoldDescent,r.postScriptName=this.courierBoldName,r.size=i,r.widthTable=new ms(this.fixedWidth),r.height=r.ascent-r.descent):(t&wn.Italic)>0?(r.ascent=this.courierItalicAscent,r.descent=this.courierItalicDescent,r.postScriptName=this.courierItalicName,r.size=i,r.widthTable=new ms(this.fixedWidth),r.height=r.ascent-r.descent):(r.ascent=this.courierAscent,r.descent=this.courierDescent,r.postScriptName=this.courierName,r.size=i,r.widthTable=new ms(this.fixedWidth),r.height=r.ascent-r.descent),r},e.getTimesMetrics=function(e,t,i){var r=new fs;return(t&wn.Bold)>0&&(t&wn.Italic)>0?(r.ascent=this.timesBoldItalicAscent,r.descent=this.timesBoldItalicDescent,r.postScriptName=this.timesBoldItalicName,r.size=i,r.widthTable=new ms(this.timesRomanBoldItalicWidths),r.height=r.ascent-r.descent):(t&wn.Bold)>0?(r.ascent=this.timesBoldAscent,r.descent=this.timesBoldDescent,r.postScriptName=this.timesBoldName,r.size=i,r.widthTable=new ms(this.timesRomanBoldWidth),r.height=r.ascent-r.descent):(t&wn.Italic)>0?(r.ascent=this.timesItalicAscent,r.descent=this.timesItalicDescent,r.postScriptName=this.timesItalicName,r.size=i,r.widthTable=new ms(this.timesRomanItalicWidth),r.height=r.ascent-r.descent):(r.ascent=this.timesAscent,r.descent=this.timesDescent,r.postScriptName=this.timesName,r.size=i,r.widthTable=new ms(this.timesRomanWidth),r.height=r.ascent-r.descent),r},e.getSymbolMetrics=function(e,t,i){var r=new fs;return r.ascent=this.symbolAscent,r.descent=this.symbolDescent,r.postScriptName=this.symbolName,r.size=i,r.widthTable=new ms(this.symbolWidth),r.height=r.ascent-r.descent,r},e.getZapfDingbatsMetrics=function(e,t,i){var r=new fs;return r.ascent=this.zapfDingbatsAscent,r.descent=this.zapfDingbatsDescent,r.postScriptName=this.zapfDingbatsName,r.size=i,r.widthTable=new ms(this.zapfDingbatsWidth),r.height=r.ascent-r.descent,r},e.subSuperScriptFactor=1.52,e.helveticaAscent=931,e.helveticaDescent=-225,e.helveticaName="Helvetica",e.helveticaBoldAscent=962,e.helveticaBoldDescent=-228,e.helveticaBoldName="Helvetica-Bold",e.helveticaItalicAscent=931,e.helveticaItalicDescent=-225,e.helveticaItalicName="Helvetica-Oblique",e.helveticaBoldItalicAscent=962,e.helveticaBoldItalicDescent=-228,e.helveticaBoldItalicName="Helvetica-BoldOblique",e.courierAscent=805,e.courierDescent=-250,e.courierName="Courier",e.courierBoldAscent=801,e.courierBoldDescent=-250,e.courierBoldName="Courier-Bold",e.courierItalicAscent=805,e.courierItalicDescent=-250,e.courierItalicName="Courier-Oblique",e.courierBoldItalicAscent=801,e.courierBoldItalicDescent=-250,e.courierBoldItalicName="Courier-BoldOblique",e.timesAscent=898,e.timesDescent=-218,e.timesName="Times-Roman",e.timesBoldAscent=935,e.timesBoldDescent=-218,e.timesBoldName="Times-Bold",e.timesItalicAscent=883,e.timesItalicDescent=-217,e.timesItalicName="Times-Italic",e.timesBoldItalicAscent=921,e.timesBoldItalicDescent=-218,e.timesBoldItalicName="Times-BoldItalic",e.symbolAscent=1010,e.symbolDescent=-293,e.symbolName="Symbol",e.zapfDingbatsAscent=820,e.zapfDingbatsDescent=-143,e.zapfDingbatsName="ZapfDingbats",e.arialWidth=[278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,0,556,0,222,556,333,1e3,556,556,333,1e3,667,333,1e3,0,611,0,0,222,222,333,333,350,556,1e3,333,1e3,500,333,944,0,500,667,0,333,556,556,556,556,260,556,333,737,370,556,584,0,737,333,400,584,333,333,333,556,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,584,611,556,556,556,556,500,556,500],e.arialBoldWidth=[278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,0,556,0,278,556,500,1e3,556,556,333,1e3,667,333,1e3,0,611,0,0,278,278,500,500,350,556,1e3,333,1e3,556,333,944,0,500,667,0,333,556,556,556,556,280,556,333,737,370,556,584,0,737,333,400,584,333,333,333,611,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,584,611,611,611,611,611,556,611,556],e.fixedWidth=[600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600,600],e.timesRomanWidth=[250,333,408,500,500,833,778,180,333,333,500,564,250,333,250,278,500,500,500,500,500,500,500,500,500,500,278,278,564,564,564,444,921,722,667,667,722,611,556,722,722,333,389,722,611,889,722,722,556,722,667,556,611,722,722,944,722,722,611,333,278,333,469,500,333,444,500,444,500,444,333,500,500,278,278,500,278,778,500,500,500,500,333,389,278,500,500,722,500,500,444,480,200,480,541,0,500,0,333,500,444,1e3,500,500,333,1e3,556,333,889,0,611,0,0,333,333,444,444,350,500,1e3,333,980,389,333,722,0,444,722,0,333,500,500,500,500,200,500,333,760,276,500,564,0,760,333,400,564,300,300,333,500,453,250,333,300,310,500,750,750,750,444,722,722,722,722,722,722,889,667,611,611,611,611,333,333,333,333,722,722,722,722,722,722,722,564,722,722,722,722,722,722,556,500,444,444,444,444,444,444,667,444,444,444,444,444,278,278,278,278,500,500,500,500,500,500,500,564,500,500,500,500,500,500,500,500],e.timesRomanBoldWidth=[250,333,555,500,500,1e3,833,278,333,333,500,570,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,570,570,570,500,930,722,667,722,722,667,611,778,778,389,500,778,667,944,722,778,611,778,722,556,667,722,722,1e3,722,722,667,333,278,333,581,500,333,500,556,444,556,444,333,500,556,278,333,556,278,833,556,500,556,556,444,389,333,556,500,722,500,500,444,394,220,394,520,0,500,0,333,500,500,1e3,500,500,333,1e3,556,333,1e3,0,667,0,0,333,333,500,500,350,500,1e3,333,1e3,389,333,722,0,444,722,0,333,500,500,500,500,220,500,333,747,300,500,570,0,747,333,400,570,300,300,333,556,540,250,333,300,330,500,750,750,750,500,722,722,722,722,722,722,1e3,722,667,667,667,667,389,389,389,389,722,722,778,778,778,778,778,570,778,722,722,722,722,722,611,556,500,500,500,500,500,500,722,444,444,444,444,444,278,278,278,278,500,556,500,500,500,500,500,570,500,556,556,556,556,500,556,500],e.timesRomanItalicWidth=[250,333,420,500,500,833,778,214,333,333,500,675,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,675,675,675,500,920,611,611,667,722,611,611,722,722,333,444,667,556,833,667,722,611,722,611,500,556,722,611,833,611,556,556,389,278,389,422,500,333,500,500,444,500,444,278,500,500,278,278,444,278,722,500,500,500,500,389,389,278,500,444,667,444,444,389,400,275,400,541,0,500,0,333,500,556,889,500,500,333,1e3,500,333,944,0,556,0,0,333,333,556,556,350,500,889,333,980,389,333,667,0,389,556,0,389,500,500,500,500,275,500,333,760,276,500,675,0,760,333,400,675,300,300,333,500,523,250,333,300,310,500,750,750,750,500,611,611,611,611,611,611,889,667,611,611,611,611,333,333,333,333,722,667,722,722,722,722,722,675,722,722,722,722,722,556,611,500,500,500,500,500,500,500,667,444,444,444,444,444,278,278,278,278,500,500,500,500,500,500,500,675,500,500,500,500,500,444,500,444],e.timesRomanBoldItalicWidths=[250,389,555,500,500,833,778,278,333,333,500,570,250,333,250,278,500,500,500,500,500,500,500,500,500,500,333,333,570,570,570,500,832,667,667,667,722,667,667,722,778,389,500,667,611,889,722,722,611,722,667,556,611,722,667,889,667,611,611,333,278,333,570,500,333,500,500,444,500,444,333,500,556,278,278,500,278,778,556,500,500,500,389,389,278,556,444,667,500,444,389,348,220,348,570,0,500,0,333,500,500,1e3,500,500,333,1e3,556,333,944,0,611,0,0,333,333,500,500,350,500,1e3,333,1e3,389,333,722,0,389,611,0,389,500,500,500,500,220,500,333,747,266,500,606,0,747,333,400,570,300,300,333,576,500,250,333,300,300,500,750,750,750,500,667,667,667,667,667,667,944,667,667,667,667,667,389,389,389,389,722,722,722,722,722,722,722,570,722,722,722,722,722,611,611,500,500,500,500,500,500,500,722,444,444,444,444,444,278,278,278,278,500,556,500,500,500,500,500,570,500,556,556,556,556,444,500,444],e.symbolWidth=[250,333,713,500,549,833,778,439,333,333,500,549,250,549,250,278,500,500,500,500,500,500,500,500,500,500,278,278,549,549,549,444,549,722,667,722,612,611,763,603,722,333,631,722,686,889,722,722,768,741,556,592,611,690,439,768,645,795,611,333,863,333,658,500,500,631,549,549,494,439,521,411,603,329,603,549,549,576,521,549,549,521,549,603,439,576,713,686,493,686,494,480,200,480,549,750,620,247,549,167,713,500,753,753,753,753,1042,987,603,987,603,400,549,411,549,549,713,494,460,549,549,549,549,1e3,603,1e3,658,823,686,795,987,768,768,823,768,768,713,713,713,713,713,713,713,768,713,790,790,890,823,549,250,713,603,603,1042,987,603,987,603,494,329,790,790,786,713,384,384,384,384,384,384,494,494,494,494,329,274,686,686,686,384,384,384,384,384,384,494,494,494,-1],e.zapfDingbatsWidth=[278,974,961,974,980,719,789,790,791,690,960,939,549,855,911,933,911,945,974,755,846,762,761,571,677,763,760,759,754,494,552,537,577,692,786,788,788,790,793,794,816,823,789,841,823,833,816,831,923,744,723,749,790,792,695,776,768,792,759,707,708,682,701,826,815,789,789,707,687,696,689,786,787,713,791,785,791,873,761,762,762,759,759,892,892,788,784,438,138,277,415,392,392,668,668,390,390,317,317,276,276,509,509,410,410,234,234,334,334,732,544,544,910,667,760,760,776,595,694,626,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,788,894,838,1016,458,748,924,748,918,927,928,928,834,873,828,924,924,917,930,931,463,883,836,836,867,867,696,696,874,874,760,946,771,865,771,888,967,888,831,873,927,970,918],e}(),ra=function(){var e=function(t,i){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])},e(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),na=function(e){function t(i,r,n){var o=e.call(this,r,void 0===n?i instanceof t?i.style:wn.Regular:n)||this;return o.dictionaryProperties=new Yr,o.encodings=["Unknown","StandardEncoding","MacRomanEncoding","MacExpertEncoding","WinAnsiEncoding","PDFDocEncoding","IdentityH"],o.pdfFontFamily=void 0===i?On.Helvetica:i instanceof t?i.fontFamily:i,o.checkStyle(),o.initializeInternals(),o}return ra(t,e),Object.defineProperty(t.prototype,"fontFamily",{get:function(){return this.pdfFontFamily},enumerable:!0,configurable:!0}),t.prototype.checkStyle=function(){if(this.fontFamily===On.Symbol||this.fontFamily===On.ZapfDingbats){var e=this.style;e&=~(wn.Bold|wn.Italic),this.setStyle(e)}},t.prototype.getLineWidth=function(e,i){if(null==e)throw new Error("ArgumentNullException:line");var r=0;this.name;for(var n=0,o=(e=t.convert(e)).length;n<o;n++){var s=e[n];r+=this.getCharWidthInternal(s,i)}var a=this.metrics.getSize(i);return r*=to.charSizeMultiplier*a,r=this.applyFormatSettings(e,i,r)},t.prototype.equalsToFont=function(e){var t=!1,i=e;if(null!=i){var r=this.fontFamily===i.fontFamily,n=~(wn.Underline|wn.Strikeout),o=(this.style&n)===(i.style&n);t=r&&o}return t},t.prototype.initializeInternals=function(){ta.cache.search(this);var e,t=ia.getMetrics(this.pdfFontFamily,this.style,this.size);this.metrics=t,e=this.createInternals(),this.setInternals(e)},t.prototype.createInternals=function(){var e=new Rr;if(e.items.setValue(this.dictionaryProperties.type,new Ur(this.dictionaryProperties.font)),e.items.setValue(this.dictionaryProperties.subtype,new Ur(this.dictionaryProperties.type1)),e.items.setValue(this.dictionaryProperties.baseFont,new Ur(this.metrics.postScriptName)),this.fontFamily!==On.Symbol&&this.fontFamily!==On.ZapfDingbats){var t=this.encodings[Cn.WinAnsiEncoding];e.items.setValue(this.dictionaryProperties.encoding,new Ur(t))}return e},t.prototype.getCharWidthInternal=function(e,i){var r=0;return r=e.charCodeAt(0),"0"!==this.name&&"1"!==this.name&&"2"!==this.name&&"3"!==this.name&&"4"!==this.name||(r-=t.charOffset),r=r>=0&&128!==r?r:0,this.metrics.widthTable.items(r)},t.convert=function(e){return e},t.charOffset=32,t}(to);let oa=[{prefixIcon:"e-close",tooltipText:"Close",text:"Close",id:"closeDocument"},{prefixIcon:"e-export",tooltipText:"export",text:"export",id:"exportDocument"},{prefixIcon:"e-save",tooltipText:"Save",text:"Save",id:"saveDocument"},"Separator","Undo","Redo","Separator","Image","Table","Hyperlink","Bookmark","TableOfContents","Separator","Header","Footer","PageSetup","PageNumber","Break","InsertFootnote","InsertEndnote","Separator","Find","Separator","Comments","TrackChanges","LocalClipboard","Separator","FormFields","UpdateFields"];te.Inject(ie,re,ne,oe,se,ae,ce,he,ue,le,pe,de,ge,fe,Me,me,ye,Ne,je,De,Ie,Se,be,ze,ve,we,Oe),Te.Inject(Oe,ue);const sa=({documentId:e,documentAPI:r,documentName:n,content:s,replaceToken:c,fileName:h,restrictEditing:u,onClose:l,saved:p})=>{let d;const[g,f]=t({documentAPI:"",documentId:"",readOnly:!1,documentName:""}),[M,m]=t(),[y,N]=t(!1),[j,D]=t(!0);i(()=>{I(),N(u)},[]);const I=()=>{f({documentId:e,documentAPI:r,documentName:n,readOnly:!1})};i(()=>{s&&d?(m(s),S(s)):""!=g.documentAPI&&""!=g.documentId&&(D(!0),b(g.documentId))},[g.documentId,s]),i(()=>{if(k.validString(c)&&d){let e=M;for(let t=0;t<c.length;t++){let i=c[t];e=e?.replace(i.key,i.value),d?.open(e)}}},[c,M]);const S=e=>{d?.open(e),setTimeout(()=>{v()},1e3)},b=e=>{let t=new XMLHttpRequest,i={keyXc:e},r=g.documentAPI+"api/DocumentEditor/LoadDocument";t.open("POST",r,!0),t.setRequestHeader("Content-Type","application/json;charset=UTF-8"),t.setRequestHeader("Access-Control-Allow-Origin","http://localhost:5002"),t.onreadystatechange=()=>{if(4===t.readyState&&(200===t.status||304===t.status)){d.open(t.responseText);let e=d.serialize();m(e),setTimeout(()=>{d.enableTrackChanges||(d.enableTrackChanges=!0)},1e3)}},t.send(JSON.stringify(i))},z=e=>{"closeDoc"==e&&(D(!1),l?.(j),f({documentId:"",documentAPI:r,documentName:n,readOnly:!1}));const t=JSON.stringify({message:e,date:Date.now()});window.parent.postMessage(t,"*")},v=()=>{y||O()},w=()=>{let e=new ta,t=d?.pageCount;d.documentEditorSettings.printDevicePixelRatio=2;let i=0;for(let r=1;r<=t;r++)setTimeout(()=>{let n=d.exportAsImage(r,"image/jpeg");n.onload=function(){let r=parseInt(n.style.height.toString().replace("px","")),o=parseInt(n.style.width.toString().replace("px","")),s=e.sections.add(),a=new wo(0);o>r&&(a.orientation=go.Landscape),a.size=new Fn(o,r),s.setPageSettings(a);let c=s.pages.add().graphics,u=n.src.replace("data:image/jpeg;base64,",""),l=new _o(u);c.drawImage(l,0,0,o,r),i++,i==t&&e.save((h||"sample")+".pdf")}},500)},O=()=>{let e=d.serialize(),t={keyXc:g.documentId,Content:e};var i=new XMLHttpRequest;i.open("POST",r+"api/DocumentEditor/Save",!0),i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.send(JSON.stringify(t)),p?.(!0)};return o(a,{children:""!=g.documentAPI&&j&&o(a,{children:o("div",{children:o(Te,{height:"100vh",enableToolbar:!0,serviceUrl:r+"/",enableTrackChanges:!0,ref:e=>{e&&e.documentEditor&&(d=e.documentEditor)},toolbarItems:oa,toolbarClick:(e=>{switch(e.item.id){case"exportDocument":w();break;case"saveDocument":v();break;case"closeDocument":z("closeDoc");break;case"expand":z("expand")}}).bind(void 0),documentEditorSettings:{optimizeSfdt:!1},restrictEditing:y})})})})},aa=({isOpen:e,setIsOpen:t,onButtonClick:r,children:n,customButtons:a,title:c,confirmBtn:h="Yes",deletBtn:u="No",showConfirmBtn:l=!0,showDeleteBtn:p=!0})=>{const d=e=>{r&&r(e),t&&t(!1)},g=e=>{e.target.closest(".bb-modal-container")||t&&t(!1)};i(()=>(e?document.addEventListener("mousedown",g):document.removeEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}),[e,t]);const f=({children:e,onClick:t,className:i})=>o("button",{onClick:t,className:i,children:e});return e&&o("div",{className:"bb-modal-container",children:s("div",{className:"bb-modal-content",children:[o("p",{className:"bb-modal-title",children:c}),o("div",{className:"bb-modal-children",children:n}),s("div",{className:"bb-modal-buttons",children:[l&&o(f,{onClick:()=>d("Action_1"),className:"bb-modal-buttons-action1",children:h}),p&&o(f,{onClick:()=>d("Action_2"),className:"bb-modal-buttons-action2",children:u}),a]})]})})};let ca=function(e){return e[e["Custom Values"]=1]="Custom Values",e[e["Master Source"]=2]="Master Source",e}({});class ha{rowIndex=0;fileName="";documentId=""}class ua{formId=U.getEmptyGUID();formName="";formCode="";isCaptchaRequired=!1;isOtpVerificarionRequired=!1;isOtpVerified=!1;sectionList=[];sectionDetailList=[];constructor(e){Object.assign(this,e)}}class la{captchaNumber1=0;captchaNumber2=0;captchaSum="";dropdownSource=[];startUpload=0;selectedFile=[];fileCount=0;currentIndex=0;disableUploadButton=!1;imgUploadIndex=0;selectedOption=[];saveDisabled=!1;dropdownReady=!1;showOtpPopup=!1;otpLength=6;otp="";validateOtpPopup=!1;resendOtpButton=!1;disableButtonVerify=!1;remainingTime=0;intervalId=0;setTimerBlock=!1}class pa{otp="";sendOtp=!1;otpLength="";remainingTime=0;setTimerBlock=!1;intervalId=null;resendOtpButton=!1;disableButtonVerify=!1}let da=function(e){return e.TextBox="E6AB81C8-15ED-41A8-BB8D-4CB33CA64898",e.TextArea="DAC3F02A-86C3-485F-BEDE-59C84BB72CAE",e.Dropdown="2BB5CD42-B8BE-4619-A4D0-0B3E99B816CE",e.DropdownMS="34ACC15F-26A6-4920-93C5-2011C9C470BC",e.Datepicker="65E481FB-777A-4686-9E40-D7F47B4DF246",e.CheckBox="D2A6466A-0894-42F7-B24A-C599E5ACE186",e.RadioButton="0E70C6CE-BB48-4958-BAF6-8570D4A07F6F",e.FileUpload="8144DDA7-39B5-435C-ACCA-192618EE000A",e.Aadhar="6F6586D4-F68D-4F12-A454-5E7D2536D993",e.PAN="B2A2B239-851A-4B72-A9EB-1F9622B74D4D",e.MobileNumber="516055D2-2B6F-435C-BD0D-414E41C3F194",e.AccountNumber="41A91692-2843-4AD6-8F53-9C765DF5E142",e.Numeric="083F8AE6-7ECF-4F16-B48C-849AA6638BA5",e.Currency="847C5712-BB9D-4EC9-88BE-2803ECD3A58C",e.Email="42DF0CAE-654F-4CE7-A290-2AA13386E921",e}({});class ga{constructor(){this.yek="",this.xmlYek="",this.api="",this.description=""}}class fa{static apiCollection=[{yek:"FormResponseGet",xmlYek:"FormResponseGet",api:"",description:""},{yek:"FormResponseInsertUpdate",xmlYek:"FormResponseInsertUpdate",api:"",description:""},{yek:"FormOtpVerification",xmlYek:"FormOtpVerification",api:"gbs360/g8lb3e55724c/form/internal/generateemailotp",description:""}];constructor(){}static getMapping(e){let t=this.apiCollection.find(t=>t.yek===e);return t||new ga}}class Ma{static apiModuleUrl="gbs360/e3cb3e55724c/generic/internal/request";constructor(){}static callGenericRequest(e,t={},i=!0,r=""){let n=Q.getConfigValue("coreAPI"),o=fa.getMapping(e);return Y.callGenericRequest(n+(k.validString(o?.api)?o?.api:this.apiModuleUrl),String(o?.xmlYek),t,i,r).then(e=>t.validateToken?e&&e.data?e:void 0:e)}}const ma=(e,t)=>{P.broadcast({key:"bb_toast",type:e,content:t,position:{X:"550",Y:"100"}})};function ya(e){const n=r([]),[c,h]=t(()=>new pa);i(()=>{e.showOtpPopup&&u()},[e.showOtpPopup]);const u=()=>{h(e=>({...e,otp:""}));let t={mode:1,email:e.field.encryptedFieldValue,browserToken:e.browserToken,userId:e.userId};Ma.callGenericRequest("FormOtpVerification",t).then(t=>{if(1==t.success){let e=null!=t.data.result1[0]?.otpExpiry?60*t.data.result1[0]?.otpExpiry:60,i=t.data.result1[0]?.otpLength??6;ma("success","An OTP has been sent to your Email ID"),0!=e?(h(t=>({...t,sendOtp:!0,resendOtpButton:!1,disableButtonVerify:!1,otpLength:i,remainingTime:e})),p(e)):h(e=>({...e,sendOtp:!0,resendOtpButton:!0,disableButtonVerify:!1,otpLength:i}))}else ma("alert",t?.message?t?.message:"OTP generation failed"),e.onClose(),h(e=>({...e,sendOtp:!1}))})},l=()=>{if(""===c.otp)ma("danger","Please enter the OTP");else{let t={mode:2,email:e.field.encryptedFieldValue,otp:c.otp,browserToken:e.browserToken,userId:e.userId};Ma.callGenericRequest("FormOtpVerification",t).then(t=>{var i;!0===t?.success?(ma(0==(t?.data?.result1?.[0].errorStatus??2)?"success":"alert",(t?.data?.result1?.[0].errorStatus??2)<2?t?.data?.result1?.[0]?.outputMessage:"Error While Processing"),0==(t?.data?.result1?.[0].errorStatus??2)&&(i={...e.field,isEmailVerified:!0},e.onChange({...e.field,...i}),d(),g(),h(e=>({...e,otp:"",sendOtp:!1})))):(ma("danger",t.message),g())})}},p=e=>{h(t=>({...t,setTimerBlock:!0,remainingTime:e,resendOtpButton:!1,disableButtonVerify:!1})),c.intervalId&&clearInterval(c.intervalId);const t=setInterval(()=>{h(e=>{const t=e.remainingTime-1;return t<=0?(clearInterval(e.intervalId),{...e,remainingTime:0,setTimerBlock:!1,resendOtpButton:!0,disableButtonVerify:!0}):{...e,remainingTime:t}})},1e3);h(e=>({...e,intervalId:t}))},d=()=>{clearInterval(c.intervalId),h(e=>({...e,setTimerBlock:!1,showOtpPopup:!1,resendOtpButton:!1,disableButtonVerify:!1}))},g=()=>{d(),h(e=>({...e,otp:""})),e.onClose()},f=e=>{e.preventDefault();const t=e.clipboardData.getData("text").replace(/\D/g,"");if(!t)return;const i=Number(c.otpLength),r=t.slice(0,i).split("");h(e=>({...e,otp:r.join("").padEnd(i,"")}));const o=Math.min(r.length,i-1);n.current[o]?.focus()},M=o("div",{className:"otp-wrapper",children:s("div",{className:"row text-center",children:[o("div",{className:"col-lg-12",children:s("div",{className:"np-outer",children:[o("label",{className:"form-label text-center",children:"Enter the OTP"}),o("div",{className:"otp-inputs",children:Array.from({length:Number(c.otpLength)}).map((e,t)=>o("input",{type:"text",className:"otpBox",maxLength:1,value:c.otp[t]||"",onChange:e=>((e,t)=>{const i=e.target.value.replace(/\D/,""),r=c.otp.split("");r[t]=i,h(e=>({...e,otp:r.join("")})),i&&t<Number(c.otpLength)-1&&n.current[t+1]?.focus()})(e,t),onKeyDown:e=>((e,t)=>{"Backspace"===e.key&&!c.otp[t]&&t>0&&n.current[t-1]?.focus()})(e,t),onPaste:f,ref:e=>n.current[t]=e},t))})]})}),s("div",{className:"col-md-12 mb-3",children:[c.setTimerBlock&&s("div",{className:"otp-remaining mb-0",children:[o("i",{className:"bi bi-stopwatch pe-2"}),Math.floor(c.remainingTime/60),":",c.remainingTime%60<10?"0":"",c.remainingTime%60]}),c.resendOtpButton&&s("span",{className:"form-label mb-2",children:["Don't receive the code",o("a",{className:"otp-remaining resend",onClick:()=>u(),children:"Resend"})]})]}),o("div",{className:"col-md-12 mt-2 otp-outer",children:o(Le,{className:"btn-primary",onClick:()=>l(),iconClass:"bi bi-check2-circle",value:"Verify",disabled:c.disableButtonVerify})})]})});return o(a,{children:o("div",{className:"popup-overlay OTP-Verification",children:o(Dr,{className:"popup-content",show:c.sendOtp,title:"OTP Verification",closeBtn:!0,onClose:g,children:M})})})}function Na(e){const[r,n]=t(new la);i(()=>{const t=e.field;if(!t)return;n(e=>({...e,dropdownReady:!1,dropdownSource:[]}));const i=t.fieldTypeId?.toUpperCase();if(i==da.Dropdown||i==da.DropdownMS){(async()=>{if(t.dropdownSourceId===ca["Custom Values"]){const e=(t.options??"").split("|").filter(Boolean).map(e=>({id:e,name:e}));n(t=>({...t,dropdownSource:e,dropdownReady:!0}))}if(t.dropdownSourceId===ca["Master Source"])try{const e=await Ma.callGenericRequest("FormResponseGet",{mode:3,masterSourceId:t.masterSourceId});n(t=>({...t,dropdownSource:e?.data?.result1??[],dropdownReady:!0}))}catch(e){console.error(e)}})()}else i==da.FileUpload&&n(e=>({...e,selectedFile:c(t.selectedFile??"")}))},[e.field.formResponseDetailId]);const c=e=>e.split("|").filter(Boolean).map((e,t)=>{const[i,r]=e.split("*"),n=new ha;return n.documentId=i,n.fileName=r,n.rowIndex=t,n}),h=t=>{e.onChange({...e.field,...t})},u=t=>{const i=(t??"").trim();if(!i)return!0;if(!e.field.validationExpression)return!0;return new RegExp(e.field.validationExpression).test(i)?(h({error:""}),!0):(h({error:`Please enter valid ${e.field.fieldName}`}),!1)},l=(t,i,r=!1)=>{const n=e.field,c=(l=n.fieldTypeId,l?.toUpperCase()===da.Numeric||l?.toUpperCase()===da.AccountNumber||l?.toUpperCase()===da.MobileNumber||l?.toUpperCase()===da.Aadhar);var l;return s("div",{className:"col-md-4",children:[o(ke,{label:`${n.fieldOrder}. ${n.fieldName}`,placeholder:n.placeholder,className:"form-control mb-0",required:n.isMandatory,maxLength:i,minLength:t,value:n.isDataEncrypted?n.encryptedFieldValue:n.fieldValue,onChange:t=>{let i=t.target.value;c&&(i=i.replace(/\D/g,"")),n.fieldTypeId.toUpperCase()===da.PAN&&(i=i.toUpperCase()),e.field.isDataEncrypted?h({encryptedFieldValue:i,isEmailVerified:!1}):h({fieldValue:i})},onBlur:r?e=>u(e.target.value):void 0,disabled:!e.isEditable},`${e.field.formResponseDetailId}_${n.fieldName}`),e.field.error&&o("div",{className:"error-message",children:e.field.error}),e.isDefault&&e.isOtpVerificarionRequired&&e.field.fieldTypeId.toLocaleUpperCase()===da.Email&&!k.validString(e.field.error)&&(e.isEditable||!k.isValidGUID(e.formResponseId))&&s(a,{children:[!e.field.isEmailVerified&&o(Le,{className:"btn-verify-email",iconClass:"bi bi-tick",disabled:!e.isEditable,onClick:p,value:"Verify Your Email"}),e.field.isEmailVerified&&o("p",{children:"Email Verified"})]})]})},p=()=>{if(k.validString(e.browserToken)||k.isValidGUID(e.userId)){const t=e.field.encryptedFieldValue;(t??"").trim()&&u(t)&&n(e=>({...e,showOtpPopup:!0}))}else ma("alert","User ID or Browser Token is required")};return s(a,{children:[e.field.fieldTypeId?.toUpperCase()===da.TextBox&&s("div",{className:"col-md-4",children:[o(ke,{label:e.field.fieldOrder+". "+e.field.fieldName,placeholder:e.field.placeholder,className:"form-control mb-0",required:e.field.isMandatory,value:e.field.isDataEncrypted?e.field.encryptedFieldValue:e.field.fieldValue,onChange:t=>e.field.isDataEncrypted?h({encryptedFieldValue:t.target.value}):h({fieldValue:t.target.value}),disabled:!e.isEditable},`${e.field.formResponseDetailId}_${e.field.fieldName}`),e.field.error&&o("div",{className:"error-message",children:e.field.error})]}),e.field.fieldTypeId?.toUpperCase()===da.TextArea&&s("div",{className:"col-md-8",children:[o(Or,{label:e.field.fieldOrder+". "+e.field.fieldName,placeholder:e.field.placeholder,className:"form-control mb-0",required:e.field.isMandatory,value:e.field.isDataEncrypted?e.field.encryptedFieldValue:e.field.fieldValue,onChange:t=>e.field.isDataEncrypted?h({encryptedFieldValue:t.target.value}):h({fieldValue:t.target.value}),disabled:!e.isEditable},`${e.field.formResponseDetailId}_${e.field.fieldName}`),e.field.error&&o("div",{className:"error-message",children:e.field.error})]}),e.field.fieldTypeId?.toUpperCase()===da.Dropdown&&o("div",{className:"col-md-12",children:r.dropdownReady&&s(a,{children:[o(wr,{dataSource:r.dropdownSource,label:e.field.fieldOrder+". "+e.field.fieldName,placeholder:e.field.placeholder,required:e.field.isMandatory,value:e.field.fieldValue||"",allowFiltering:!0,fields:{text:"name",value:"id"},onChange:e=>{h({fieldValue:e.value})},disabled:!e.isEditable},`${e.field.formResponseDetailId}_${e.field.fieldName}`),e.field.error&&o("div",{className:"error-message",children:e.field.error})]})}),e.field.fieldTypeId?.toUpperCase()===da.DropdownMS&&o("div",{className:"col-md-4",children:r.dropdownReady&&s(a,{children:[o(xe,{dataSource:r.dropdownSource,label:e.field.fieldOrder+". "+e.field.fieldName,placeholder:e.field.placeholder,required:e.field.isMandatory,allowFiltering:!0,showSelectAll:!0,mode:"CheckBox",fields:{text:"name",value:"id"},value:(e.field.fieldValue??"").split("|").filter(Boolean),onChange:e=>{const t=Array.isArray(e.value)?e.value:[];h({fieldValue:t.join("|")})},disabled:!e.isEditable},`${e.field.formResponseDetailId}_${e.field.fieldName}`),e.field.error&&o("div",{className:"error-message",children:e.field.error})]})}),e.field.fieldTypeId?.toUpperCase()===da.FileUpload&&s("div",{className:"col-md-6",children:[s("label",{className:"form-label",children:[e.field.fieldOrder+". "+e.field.fieldName,e.field.isMandatory&&o("span",{style:{color:"red"},children:" *"})]},`${e.field.formResponseDetailId}_${e.field.fieldName}_label`),o(Sr,{allowMultipleSelection:e.field.isMultipleFileUpload,fileCount:e.field.isMultipleFileUpload?0:1,inputFileSize:1024*(e.field.maximumFileSize??0),documentAPI:Q.getConfigValue("coreAPI"),startUpload:r.startUpload,onUploadCompleted:e=>(e=>{if(0===e.length)return;const t=e.map(e=>e.documentId).filter(Boolean).join("|");h({fieldValue:t}),n(t=>({...t,startUpload:0,documentsUploaded:e}))})(e),onFilesChange:e=>n(t=>({...t,selectedFile:e})),fileTypes:(e.field.fileType??"").split(","),batchId:r.selectedOption||[],documentTypeId:e.field.documentTypeId,files:r.selectedFile??[],index:r.imgUploadIndex,disabled:!e.isEditable,listView:"list",onClearFiles:e=>{n(t=>({...t,clearUploaderFiles:e}))},onClose:()=>{h({fieldValue:""}),n(e=>({...e,disableUploadButton:!1}))}},`${e.field.formResponseDetailId}_${e.field.fieldName}`),e.field.error&&o("div",{className:"error-message",children:e.field.error}),(e.isEditable||!e.isEditable&&!k.isValidGUID(e.formResponseId))&&s(a,{children:[o(Le,{className:"btn btn-upload ms-3",iconClass:"bi bi-upload me-2",onClick:()=>{r.selectedFile.length>0&&n(e=>({...e,startUpload:1,disableUploadButton:!0}))},disabled:!e.isEditable||r.disableUploadButton,value:"Upload"},`${e.field.formResponseDetailId}_${e.field.fieldName}_Upload`),s("label",{className:"form-label max-label",children:["Max Size - ",e.field.maximumFileSize,"MB, Formats -"," ",e.field.fileType]},`${e.field.formResponseDetailId}_${e.field.fieldName}_maxSize`)]})]}),e.field.fieldTypeId?.toUpperCase()===da.RadioButton&&s("div",{className:"col-md-3",children:[s("label",{className:"form-label",children:[e.field.fieldOrder+". "+e.field.fieldName,e.field.isMandatory&&o("span",{style:{color:"red"},children:" *"})]},`${e.field.formResponseDetailId}_${e.field.fieldName}_label`),(e.field.options??"").split("|").map((t,i)=>s("div",{className:"custom-radio-wrapper",children:[o(ke,{type:"radio",className:"custom-radio-input me-2",checked:e.field.fieldValue===t,value:t,name:`radio_${e.field.formSectionDetailId}`,onChange:e=>h({fieldValue:e.target.value}),disabled:!e.isEditable},`${e.field.formResponseDetailId}_${e.field.fieldName}_${t}`),o("label",{className:"custom-radio-label",children:t})]},i)),e.field.error&&o("div",{className:"error-message",children:e.field.error})]}),e.field.fieldTypeId?.toUpperCase()===da.CheckBox&&s("div",{className:"col-md-3",children:[s("label",{className:"form-label",children:[e.field.fieldOrder+". "+e.field.fieldName,e.field.isMandatory&&o("span",{style:{color:"red"},children:" *"})]},`${e.field.formResponseDetailId}_${e.field.fieldName}_label`),(e.field.options??"").split("|").map((t,i)=>{const r=i+1;return s("div",{className:"custom-radio-wrapper",children:[o(Ae,{className:"remarks-checkbox custom-checkbox-input me-1",value:String(r),checked:(e.field.fieldValue??"").split("|").includes(String(r)),onChange:t=>((t,i)=>{let r=(e.field.fieldValue??"").split("|");if(t.target.checked)r.push(i);else{if(1===r.length&&r[0]===i)return;r=r.filter(e=>e!==i)}h({fieldValue:r.join("|")})})(t,String(r)),disabled:!e.isEditable},`${e.field.formResponseDetailId}_${e.field.fieldName}_${r}`),o("label",{className:"custom-radio form-check-label",children:t})]},r)}),e.field.error&&o("div",{className:"error-message",children:e.field.error})]}),e.field.fieldTypeId?.toUpperCase()===da.Datepicker&&s("div",{className:"col-md-3",children:[o(Ce,{label:e.field.fieldOrder+". "+e.field.fieldName,placeholder:e.field.placeholder,format:"dd-MM-yyyy",required:e.field.isMandatory,value:e.field.fieldValue,allowEdit:!1,disabled:!e.isEditable,onChange:e=>h({fieldValue:e.target.value})},`${e.field.formResponseDetailId}_${e.field.fieldName}`),e.field.error&&o("div",{className:"error-message",children:e.field.error})]}),e.field.fieldTypeId?.toUpperCase()===da.PAN&&l(10,10,!0),e.field.fieldTypeId?.toUpperCase()===da.Currency&&l(1,15,!0),e.field.fieldTypeId?.toUpperCase()===da.Email&&l(1,200,!0),e.field.fieldTypeId?.toUpperCase()===da.MobileNumber&&l(1,15,!0),e.field.fieldTypeId?.toUpperCase()===da.Aadhar&&l(12,12,!0),e.field.fieldTypeId?.toUpperCase()===da.Numeric&&l(1,15,!0),e.field.fieldTypeId?.toUpperCase()===da.AccountNumber&&l(8,20,!0),r.showOtpPopup&&o(ya,{field:e.field,userId:e.userId,browserToken:e.browserToken,disabled:e.isDefault||!e.isEditable,isEmailVerified:e.isEmailVerified,showOtpPopup:r.showOtpPopup,onChange:e.onChange,onClose:()=>n(e=>({...e,showOtpPopup:!1}))},`${e.field.formResponseDetailId}_${e.field.fieldName}_otpVerification`)]})}function ja(e){const t=e.sectionDetail.reduce((e,t)=>{const i=t.repeatableSectionOrder??0;return e[i]||(e[i]=[]),e[i].push(t),e},{}),i=Object.keys(t).map(Number).length>1;return s("div",{className:"custom-box p-3 mb-4",children:[o("div",{className:"section-heading",children:o("h3",{className:"section-title",children:e.section.sectionName})}),o("div",{className:"field-sec",children:Object.entries(t).sort(([e],[t])=>Number(e)-Number(t)).map(([t,r])=>s("div",{className:"repeatable-section-group mb-3 border rounded p-3",children:[s("div",{className:"d-flex justify-content-between align-items-center mb-2",children:[e.section.isRepeatable&&i&&+t>1&&s("h6",{className:"mb-0",children:[e.section.sectionName," (",+t-1,")"]}),e.isEditable&&Number(t)>1&&o(Le,{iconClass:"bi bi-trash",value:"Remove",disabled:!e.isEditable,onClick:()=>e.onRemoveSection(e.section.formSectionId,Number(t))},`${e.section.formSectionId}`)]}),o("div",{className:"field-card",children:o("div",{className:"row g-3",children:r.map((t,i)=>o(Na,{formResponseId:e.formResponseId,isOtpVerificarionRequired:e.isOtpVerificarionRequired,field:t,isEditable:e.isEditable,isDefault:t.isDefault,isEmailVerified:t.isEmailVerified,userId:e.userId,browserToken:e.browserToken,onChange:e.onFieldChange},`${t.formSectionDetailId}-${t.repeatableSectionOrder}-${i}`))})})]},t))}),e.section.isRepeatable&&(e.isEditable||!k.isValidGUID(e.formResponseId))&&o(Le,{className:"btn-fm-add",iconClass:"bi bi-plus-lg",value:"Add More",onClick:()=>e.onAddSection(e.section.formSectionId),disabled:!e.isEditable},`${e.section.formSectionId}`)]})}function Da(e){const t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],i=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]];let r=0;const n=e.split("").map(Number).reverse();for(let e=0;e<n.length;e++)r=t[r][i[e%8][n[e]]];return 0===r}const Ia=({formId:e="",formResponseId:r="",viewMode:n=!1,saveButtonLabel:a="Save",cancelButtonLabel:c="Cancel",userId:h="",browserToken:u="",onSubmitCompleted:l,onCancelClick:p})=>{const[d,g]=t(new ua),[f,M]=t(new la);i(()=>{m()},[e,r]);const m=async()=>{let t={};t=void 0!==r&&""!==r?{mode:2,formId:e,formResponseId:r}:{mode:1,formId:e},await Ma.callGenericRequest("FormResponseGet",t,!0,"encryptedFieldValue").then(e=>{const t=e.data.result1?.[0]??{};g(i=>({...i,...t,sectionList:e?.data?.result2??[],sectionDetailList:e?.data?.result3??[]})),t.isCaptchaRequired&&y()})},y=()=>{let e,t;do{e=Math.floor(10*Math.random())}while(0===e);do{t=Math.floor(10*Math.random())}while(0===t);M(i=>({...i,captchaNumber1:e,captchaNumber2:t}))},N=d.sectionList.map(e=>({...e,sectionDetail:d.sectionDetailList.filter(t=>t.formSectionId===e.formSectionId).sort((e,t)=>e.fieldOrder-t.fieldOrder)})),j=e=>{g(t=>{const i=[...t.sectionDetailList],r=i.filter(t=>t.formSectionId===e),n=Math.max(...r.map(e=>e.repeatableSectionOrder??0),0),o=r.filter(e=>1===e.repeatableSectionOrder).sort((e,t)=>e.fieldOrder-t.fieldOrder);if(0===o.length)return t;const s=o.map(e=>({...e,formResponseDetailId:k.getGUID(),fieldValue:"",encryptedFieldValue:"",repeatableSectionOrder:n+1}));return{...t,sectionDetailList:[...i,...s]}})},D=(e,t)=>{g(i=>{const r=i.sectionDetailList.filter(i=>!(i.formSectionId===e&&i.repeatableSectionOrder===t)),n=r.filter(t=>t.formSectionId===e),o=Array.from(new Set(n.map(e=>e.repeatableSectionOrder))).sort((e,t)=>e-t),s=new Map;o.forEach((e,t)=>{s.set(e,t+1)});const a=r.map(t=>t.formSectionId!==e?t:{...t,repeatableSectionOrder:s.get(t.repeatableSectionOrder)});return{...i,sectionDetailList:a}})},I=e=>{g(t=>({...t,sectionDetailList:t.sectionDetailList.map(t=>t.formSectionDetailId===e.formSectionDetailId&&t.repeatableSectionOrder===e.repeatableSectionOrder?e:t)}))};return s("div",{className:"form-builder",children:[N.map((e,t)=>o(ja,{formResponseId:r,isOtpVerificarionRequired:d.isOtpVerificarionRequired,section:e,sectionDetail:d.sectionDetailList.filter(t=>t.formSectionId===e.formSectionId),isEditable:!n,userId:h,browserToken:u,onAddSection:j,onRemoveSection:D,onFieldChange:I},`${e.formSectionId}_${t}`)),!(n&&k.isValidGUID(r))&&d.isCaptchaRequired&&o("div",{className:"row g-3",children:o("div",{className:"col-md-3 ms-4",children:s("div",{className:"col-md-10 mb-4",children:[o("label",{className:"form-label mb-1 count-cap",children:"Enter the sum below"}),s("div",{className:"row align-items-center",children:[o("div",{className:"col-md-3 col-3 cout-box",children:o(ke,{type:"text",value:f.captchaNumber1,className:"form-control",disabled:!0})}),o("div",{className:"col-md-1 col-1 operator-box p-0",children:o("span",{className:"operator-s",children:o("p",{children:"+"})})}),o("div",{className:"col-md-3 col-3 cout-box",children:o(ke,{type:"text",value:f.captchaNumber2,className:"form-control",disabled:!0})}),o("div",{className:"col-md-1 col-1 operator-box p-0",children:o("span",{className:"operator-s",children:o("p",{children:"="})})}),o("div",{className:"col-md-4 col-3 total-box",children:o(ke,{type:"text",className:"form-control text-center",value:f.captchaSum,onChange:e=>M(t=>({...t,captchaSum:e.target.value})),disabled:f.saveDisabled||n})})]})]})})}),!(n&&k.isValidGUID(r))&&s("div",{className:"d-flex justify-content-end",children:[o(Le,{className:"btn btn-cancel ms-3",value:c,onClick:p,disabled:f.saveDisabled||n}),o(Le,{className:"btn btn-save ms-3",value:a,onClick:()=>{if(!(()=>{for(const e of d.sectionDetailList){const t=e.isDataEncrypted?(e.encryptedFieldValue??"").toString().trim():(e.fieldValue??"").toString().trim();if(e.isMandatory&&!t)return ma("alert",`${e.fieldName} is required`),!1;if(t){if(e.validationExpression)try{if(!new RegExp(e.validationExpression).test(t))return ma("alert",`Please enter valid ${e.fieldName}`),!1}catch{return ma("alert",`Invalid validation rule for ${e.fieldName}`),!1}if(e.fieldTypeId?.toUpperCase()===da.Email&&e.isDefault&&!e.isEmailVerified)return ma("alert","Please Verify Your Email"),!1;if(e.fieldTypeId?.toUpperCase()===da.Aadhar){const e=t.replace(/\s/g,"");if(!/^\d{12}$/.test(e)||!Da(e))return ma("alert","Please enter a valid Aadhar"),!1}if(d.isCaptchaRequired){const e=f.captchaNumber1+f.captchaNumber2;if(!k.validString(f.captchaSum))return ma("alert","Please enter the CAPTCHA"),!1;if(parseInt(f.captchaSum)!=e)return ma("alert","CAPTCHA sum is incorrect"),!1}}}return!0})())return;let e={mode:k.isValidGUID(r)?2:1,formResponseId:r,...d};Ma.callGenericRequest("FormResponseInsertUpdate",e,!0,"encryptedFieldValue").then(e=>{if(e?.success){const t={success:!0,errorStatus:e?.data?.result1?.[0].errorStatus,outputType:0==(e?.data?.result1?.[0].errorStatus??2)?"success":"alert",formResponseId:0==(e?.data?.result1?.[0].errorStatus??2)?e?.data?.result1?.[0]?.formResponseId:"",outputMessage:(e?.data?.result1?.[0].errorStatus??2)<2?e?.data?.result1?.[0]?.outputMessage:"Error While Processing"};l?.(t),M(e=>({...e,saveDisabled:!1}))}else{const e={success:!1,errorStatus:3,outputType:"alert",formResponseId:"",outputMessage:"Error While Processing"};l?.(e),M(e=>({...e,saveDisabled:!1}))}})},disabled:f.saveDisabled||n})]})]})};class Sa extends e.Component{constructor(e){super(e)}render(){return o(a,{})}componentDidMount(){}handleChange(e,t,i=-1,r=""){var n,o=Object.keys(t)[0],s=t[o];n=(i=Number(i))>-1&&r?s[r][i]:i>-1?s[i]:s,e&&e.target?"checkbox"===e.target.type?n[e.target.name]=e.target.checked:e.target.element&&e.target.element.classList&&e.target.element.classList.contains("dropdown")?n[e.target.name]=e.target.value[e.target.props.dataItemKey]:n[e.target.name]=e.target.value:e.element&&e.element?.ej2_instances.length>0&&e.element&&e.element.classList&&(e.element.classList.contains("e-combobox")||e.element.classList.contains("e-multiselect"))&&(n[e.element.ej2_instances[0].name]=e.value),t[o]=s,this.setState(t)}initializePageIndex(e){for(var t=0;t<e.length;t++)e[t].rowIndex=t+1;return e}getMenuPrivileges(e,t,i){return new Promise((r,n)=>E.get(i+"core/7bda9c96-1af4-4b19-aa6d-98e1995e4255/generic/getUserPrivilege?userId="+e+"&menuId="+t).then(e=>{let t=JSON.parse(e.data.data.rulQwyuLst);r(t.map(e=>e.rightsCode))}))}}const ba=({children:e,configUrl:r})=>{const[n,s]=t(!0);return i(()=>{Q.loadConfigData(r).then(e=>{e&&s(!1)})},[]),o(a,{children:!n&&e})},za=({logOut:e,extendSession:r})=>{const[n,c]=t(!1);let h,u;const l=["load","mousemove","mousedown","click","scroll","keypress"],p=()=>{h&&clearTimeout(h),u&&clearTimeout(u),h=setTimeout(()=>c(!0),6e4),u=setTimeout(()=>e,6e4)};return i(()=>{for(const e in l)window.addEventListener(l[e],p);return()=>{for(const e in l)window.removeEventListener(l[e],p)}},[]),o(a,{children:s(Dr,{title:"Session expire warning",show:n,onClose:()=>{c(!1)},toggle:()=>c(!1),closeBtn:!1,children:[s("div",{className:"mt-2",children:["your session will expire in ",1," minutes. Do you want to extend the session?"]}),s("div",{className:"mt-5 btnMain",children:[o("button",{className:"btn btn-info me-2",onClick:e,children:"Logout"}),o("button",{className:"btn btn-success",onClick:r,children:"Extend session"})]})]})})};export{ba as Base,Sa as BaseComponent,Le as Button,Ae as CheckBox,Ce as DatePicker,zr as Dialog,sa as DocumentViewer,wr as DropDown,vr as DropDownTree,Ia as FormBuilder,jr as Grid,za as IdleMonitor,aa as Modal,xe as MultiSelectDropdown,Dr as Popup,Ee as Selector,Or as TextArea,Pe as TextTooltip,ke as Textbox,nr as TimePicker,br as Toast,Tr as Tooltip,Sr as Uploader,Er as Viewer};
|