kendoui-rails 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +9 -1
- data/EULA-Kendo.pdf +0 -0
- data/LicenseAgreements/EULA.rtf +352 -335
- data/LicenseAgreements/EULA.txt +264 -295
- data/lib/kendoui-rails/version.rb +2 -2
- data/vendor/assets/changelog.html +731 -0
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.af-ZA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.af.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.am-ET.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.am.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-AE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-BH.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-DZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-EG.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-IQ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-JO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-KW.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-LB.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-LY.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-MA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-OM.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-QA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-SA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-SY.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-TN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar-YE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ar.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.arn-CL.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.arn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.as-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.as.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.az-Cyrl-AZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.az-Cyrl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.az-Latn-AZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.az-Latn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.az.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ba-RU.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ba.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.be-BY.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.be.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bg-BG.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bg.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bn-BD.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bn-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bo-CN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bo.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.br-FR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.br.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bs-Cyrl-BA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bs-Cyrl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bs-Latn-BA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bs-Latn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.bs.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ca-ES.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ca.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.co-FR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.co.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.cs-CZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.cs.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.cy-GB.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.cy.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.da-DK.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.da.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.de-AT.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.de-CH.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.de-DE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.de-LI.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.de-LU.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.de.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.dsb-DE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.dsb.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.dv-MV.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.dv.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.el-GR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.el.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-029.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-AU.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-BZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-CA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-GB.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-IE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-JM.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-MY.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-NZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-PH.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-SG.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-TT.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-US.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-ZA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en-ZW.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.en.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-AR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-BO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-CL.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-CO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-CR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-DO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-EC.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-ES.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-GT.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-HN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-MX.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-NI.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-PA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-PE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-PR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-PY.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-SV.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-US.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-UY.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es-VE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.es.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.et-EE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.et.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.eu-ES.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.eu.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fa-IR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fa.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fi-FI.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fi.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fil-PH.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fil.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fo-FO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fo.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr-BE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr-CA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr-CH.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr-FR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr-LU.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr-MC.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fr.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fy-NL.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.fy.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ga-IE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ga.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gd-GB.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gd.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gl-ES.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gsw-FR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gsw.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gu-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.gu.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ha-Latn-NG.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ha-Latn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ha.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.he-IL.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.he.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hi-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hi.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hr-BA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hr-HR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hr.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hsb-DE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hsb.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hu-HU.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hu.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hy-AM.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.hy.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.id-ID.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.id.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ig-NG.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ig.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ii-CN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ii.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.is-IS.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.is.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.it-CH.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.it-IT.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.it.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.iu-Cans-CA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.iu-Cans.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.iu-Latn-CA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.iu-Latn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.iu.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ja-JP.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ja.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ka-GE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ka.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kk-KZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kk.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kl-GL.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.km-KH.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.km.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kn-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ko-KR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ko.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kok-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.kok.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ky-KG.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ky.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lb-LU.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lb.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lo-LA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lo.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lt-LT.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lt.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lv-LV.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.lv.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mi-NZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mi.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mk-MK.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mk.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ml-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ml.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mn-Cyrl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mn-MN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mn-Mong-CN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mn-Mong.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.moh-CA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.moh.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mr-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mr.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ms-BN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ms-MY.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ms.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mt-MT.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.mt.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nb-NO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nb.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ne-NP.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ne.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nl-BE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nl-NL.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nn-NO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.no.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nso-ZA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.nso.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.oc-FR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.oc.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.or-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.or.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pa-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pa.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pl-PL.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.prs-AF.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.prs.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ps-AF.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ps.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pt-BR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pt-PT.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.pt.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.qut-GT.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.qut.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.quz-BO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.quz-EC.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.quz-PE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.quz.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.rm-CH.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.rm.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ro-RO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ro.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ru-RU.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ru-UA.min.js +10 -0
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ru.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.rw-RW.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.rw.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sa-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sa.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sah-RU.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sah.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.se-FI.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.se-NO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.se-SE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.se.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.si-LK.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.si.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sk-SK.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sk.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sl-SI.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sma-NO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sma-SE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sma.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.smj-NO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.smj-SE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.smj.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.smn-FI.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.smn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sms-FI.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sms.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sq-AL.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sq.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Cyrl-BA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Cyrl-CS.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Cyrl-ME.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Cyrl-RS.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Cyrl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Latn-BA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Latn-CS.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Latn-ME.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Latn-RS.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr-Latn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sr.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sv-FI.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sv-SE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sv.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sw-KE.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.sw.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.syr-SY.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.syr.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ta-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ta.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.te-IN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.te.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tg-Cyrl-TJ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tg-Cyrl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tg.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.th-TH.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.th.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tk-TM.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tk.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tn-ZA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tr-TR.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tr.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tt-RU.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tt.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tzm-Latn-DZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tzm-Latn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.tzm.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ug-CN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ug.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uk-UA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uk.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ur-PK.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.ur.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uz-Cyrl-UZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uz-Cyrl.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uz-Latn-UZ.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uz-Latn.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.uz.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.vi-VN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.vi.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.wo-SN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.wo.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.xh-ZA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.xh.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.yo-NG.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.yo.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-CHS.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-CHT.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-CN.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-HK.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-Hans.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-Hant.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-MO.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-SG.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh-TW.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zh.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zu-ZA.min.js +2 -2
- data/vendor/assets/javascripts/kendo/cultures/kendo.culture.zu.min.js +2 -2
- data/vendor/assets/javascripts/kendo/kendo.autocomplete.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.binder.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.calendar.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.columnmenu.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.combobox.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.core.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.data.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.data.odata.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.data.xml.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.datepicker.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.datetimepicker.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.draganddrop.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.dropdownlist.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.editable.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.editor.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.filtermenu.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.fx.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.grid.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.groupable.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.list.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.listview.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.menu.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.mobile.scroller.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.numerictextbox.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.pager.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.panelbar.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.popup.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.reorderable.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.resizable.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.selectable.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.slider.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.sortable.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.splitter.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.tabstrip.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.timepicker.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.treeview.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.upload.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.validator.min.js +10 -0
- data/vendor/assets/javascripts/kendo/kendo.web.min.js +2 -2
- data/vendor/assets/javascripts/kendo/kendo.window.min.js +10 -0
- data/vendor/assets/stylesheets/kendo/Black/sprite.png +0 -0
- data/vendor/assets/stylesheets/kendo/BlueOpal/sprite.png +0 -0
- data/vendor/assets/stylesheets/kendo/Default/sprite.png +0 -0
- data/vendor/assets/stylesheets/kendo/Metro/sprite.png +0 -0
- data/vendor/assets/stylesheets/kendo/Silver/sprite.png +0 -0
- data/vendor/assets/stylesheets/kendo/kendo.black.min.css +2 -2
- data/vendor/assets/stylesheets/kendo/kendo.blueopal.min.css +2 -2
- data/vendor/assets/stylesheets/kendo/kendo.common.min.css +2 -2
- data/vendor/assets/stylesheets/kendo/kendo.default.min.css +2 -2
- data/vendor/assets/stylesheets/kendo/kendo.hakama.min.css +11 -0
- data/vendor/assets/stylesheets/kendo/kendo.kendo.min.css +11 -0
- data/vendor/assets/stylesheets/kendo/kendo.metro.min.css +2 -2
- data/vendor/assets/stylesheets/kendo/kendo.silver.min.css +2 -2
- metadata +47 -4
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){var c=window.kendo,d=c.mobile,e=c.fx,f=d.ui,g=a.proxy,h=a.extend,i=f.Widget,j=c.Class,k=c.ui.Movable,l=c.ui.Pane,m=c.ui.PaneDimensions,n=e.Transition,o=e.Animation,p=500,q=.7,r=.93,s=.5,t="km-scroller-release",u="km-scroller-refresh",v="pull",w="change",x="resize",y="scroll",z=o.extend({init:function(a){var b=this;o.fn.init.call(b),h(b,a,{transition:new n({axis:a.axis,movable:a.movable,onEnd:function(){b._end()}})}),b.tap.bind("press",function(){b.cancel()}),b.drag.bind("end",g(b.start,b)),b.drag.bind("tap",g(b.onEnd,b))},onCancel:function(){this.transition.cancel()},freeze:function(a){var b=this;b.cancel(),b._moveTo(a)},onEnd:function(){var a=this;a._outOfBounds()?a._snapBack():a._end()},done:function(){return Math.abs(this.velocity)<1},start:function(){var a=this;!a.dimension.present()||(a._outOfBounds()?a._snapBack():(a.velocity=a.drag[a.axis].velocity*16,a.velocity&&(a.tap.captureNext(),o.fn.start.call(a))))},tick:function(){var a=this,b=a.dimension,c=a._outOfBounds()?s:r,d=a.velocity*=c,e=a.movable[a.axis]+d;!a.elastic&&b.outOfBounds(e)&&(e=Math.max(Math.min(e,b.max),b.min),a.velocity=0),a.movable.moveAxis(a.axis,e)},_end:function(){this.tap.cancelCapture(),this.end()},_outOfBounds:function(){return this.dimension.outOfBounds(this.movable[this.axis])},_snapBack:function(){var a=this,b=a.dimension,c=a.movable[a.axis]>b.max?b.max:b.min;a._moveTo(c)},_moveTo:function(a){this.transition.moveTo({location:a,duration:p,ease:n.easeOutExpo})}}),A=j.extend({init:function(b){var c=this,d=b.axis==="x",e=a('<div class="km-touch-scrollbar km-'+(d?"horizontal":"vertical")+'-scrollbar" />');h(c,b,{element:e,elementSize:0,movable:new k(e),scrollMovable:b.movable,size:d?"width":"height"}),c.scrollMovable.bind(w,g(c._move,c)),c.container.append(e)},_move:function(){var a=this,b=a.axis,c=a.dimension,d=c.size,e=a.scrollMovable,f=d/c.total,g=Math.round(-e[b]*f),h=Math.round(d*f);g+h>d?h=d-g:g<0&&(h+=g,g=0),a.elementSize!=h&&(a.element.css(a.size,h+"px"),a.elementSize=h),a.movable.moveAxis(b,g)},show:function(){this.element.css({opacity:q,visibility:"visible"})},hide:function(){this.element.css({opacity:0})}}),B=i.extend({init:function(b,d){var e=this;i.fn.init.call(e,b,d),b=e.element,b.css("overflow","hidden").addClass("km-scroll-wrapper").wrapInner('<div class="km-scroll-container"/>').prepend('<div class="km-scroll-header"/>');var f=b.children().eq(1),g=new c.Tap(b),j=new k(f),n=new m({element:f,container:b,change:function(){e.trigger(x)}}),o=new c.Drag(b,{allowSelection:!0,start:function(a){n.refresh(),n.present()?o.capture():o.cancel()}}),p=new l({movable:j,dimensions:n,drag:o,elastic:e.options.elastic});j.bind(w,function(){e.scrollTop=-j.y,e.scrollLeft=-j.x,e.trigger(y,{scrollTop:e.scrollTop,scrollLeft:e.scrollLeft})}),h(e,{movable:j,dimensions:n,drag:o,pane:p,tap:g,pulled:!1,scrollElement:f,fixedContainer:b.children().first()}),e._initAxis("x"),e._initAxis("y"),n.refresh(),e.options.pullToRefresh&&e._initPullToRefresh(),c.onResize(a.proxy(e.reset,e))},scrollHeight:function(){return this.scrollElement[0].scrollHeight},scrollWidth:function(){return this.scrollElement[0].scrollWidth},options:{name:"Scroller",pullOffset:140,elastic:!0,pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"},events:[v,y,x],setOptions:function(a){var b=this;i.fn.setOptions.call(b,a),a.pullToRefresh&&b._initPullToRefresh()},reset:function(){this.movable.moveTo({x:0,y:0})},scrollTo:function(a,b){this.movable.moveTo({x:a,y:b})},pullHandled:function(){var a=this;a.refreshHint.removeClass(u),a.hintContainer.html(a.pullTemplate({})),a.yinertia.onEnd(),a.xinertia.onEnd()},_initPullToRefresh:function(){var a=this;a.pullTemplate=c.template(a.options.pullTemplate),a.releaseTemplate=c.template(a.options.releaseTemplate),a.refreshTemplate=c.template(a.options.refreshTemplate),a.scrollElement.prepend('<span class="km-scroller-pull"><span class="km-icon"></span><span class="km-template">'+a.pullTemplate({})+"</span></span>"),a.refreshHint=a.scrollElement.children().first(),a.hintContainer=a.refreshHint.children(".km-template"),a.pane.y.bind("change",g(a._paneChange,a)),a.drag.bind("end",g(a._dragEnd,a))},_dragEnd:function(){var a=this;!a.pulled||(a.pulled=!1,a.refreshHint.removeClass(t).addClass(u),a.hintContainer.html(a.refreshTemplate({})),a.trigger("pull"),a.yinertia.freeze(a.options.pullOffset/2))},_paneChange:function(){var a=this;a.movable.y/s>a.options.pullOffset?a.pulled||(a.pulled=!0,a.refreshHint.removeClass(u).addClass(t),a.hintContainer.html(a.releaseTemplate({}))):a.pulled&&(a.pulled=!1,a.refreshHint.removeClass(t),a.hintContainer.html(a.pullTemplate({})))},_initAxis:function(a){var b=this,c=b.movable,d=b.dimensions[a],e=b.tap,f=new A({axis:a,movable:c,dimension:d,container:b.element}),g=new z({axis:a,movable:c,tap:e,drag:b.drag,dimension:d,elastic:b.options.elastic,end:function(){f.hide()}});b[a+"inertia"]=g,b.pane[a].bind(w,function(){f.show()})}});f.plugin(B)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function E(c,d){var e,f=d!==b;if(document.selection){a(c).is(":visible")&&c.focus(),e=document.selection.createRange();if(f)e.move("character",d),e.select();else{var g=c.createTextRange(),h=g.duplicate();g.moveToBookmark(e.getBookmark()),h.setEndPoint("EndToStart",g),d=h.text.length}}else c.selectionStart!==b&&(f?(c.focus(),c.setSelectionRange(d,d)):d=c.selectionStart);return d}function D(a,b){return'<span unselectable="on" class="k-link"><span unselectable="on" class="k-icon k-i-arrow-'+a+'" title="'+b+'">'+b+"</span></span>"}var c=window.kendo,d=c.keys,e=c.ui,f=e.Widget,g=c.parseFloat,h=c.support.placeholder,i=c.support.touch,j=c.getCulture,k="change",l="disabled",m="k-input",n="spin",o="touchend",p=i?"touchstart":"mousedown",q=i?"touchmove "+o:"mouseup mouseleave",r="k-state-default",s="k-state-focused",t="k-state-hover",u="mouseenter mouseleave",v=".",w="k-state-selected",x="k-state-disabled",y=i?"number":"text",z=null,A=a.proxy,B={190:".",188:","},C=f.extend({init:function(a,d){var e=this,g=d&&d.step!==b,h,i,j,k,l;f.fn.init.call(e,a,d),d=e.options,a=e.element.addClass(m).bind({keydown:A(e._keydown,e),paste:A(e._paste,e),blur:A(e._focusout,e)}),a.closest("form").bind("reset",function(){setTimeout(function(){e.value(a[0].value)})}),d.placeholder=d.placeholder||a.attr("placeholder"),e._wrapper(),e._arrows(),e._input(),e._text.focus(A(e._click,e)),h=e.min(a.attr("min")),i=e.max(a.attr("max")),j=e._parse(a.attr("step")),d.min===z&&h!==z&&(d.min=h),d.max===z&&i!==z&&(d.max=i),!g&&j!==z&&(d.step=j),l=d.format,l.slice(0,3)==="{0:"&&(d.format=l.slice(3,l.length-1)),k=d.value,e.value(k!==z?k:a.val()),e.enable(!a.is("[disabled]")),c.notify(e)},options:{name:"NumericTextBox",decimals:z,min:z,max:z,value:z,step:1,culture:"",format:"n",spinners:!0,placeholder:"",upArrowText:"Increase value",downArrowText:"Decrease value"},events:[k,n],enable:function(a){var b=this,c=b._text.add(b.element),d=b._inputWrapper.unbind(u),e=b._upArrow.unbind(p),f=b._downArrow.unbind(p);b._toggleText(!0),a===!1?(d.removeClass(r).addClass(x),c.attr(l,l)):(d.addClass(r).removeClass(x).bind(u,b._toggleHover),c.removeAttr(l),e.bind(p,function(a){a.preventDefault(),b._spin(1),b._upArrow.addClass(w)}),f.bind(p,function(a){a.preventDefault(),b._spin(-1),b._downArrow.addClass(w)}))},min:function(a){return this._option("min",a)},max:function(a){return this._option("max",a)},step:function(a){return this._option("step",a)},value:function(a){var c=this,d;if(a===b)return c._value;a=c._parse(a),d=c._adjust(a);a===d&&(c._update(a),c._old=c._value)},_adjust:function(a){var b=this,c=b.options,d=c.min,e=c.max;if(a===z)return a;d!==z&&a<d?a=d:e!==z&&a>e&&(a=e);return a},_arrows:function(){var b=this,d,e=b.options,f=e.spinners,g=b.element;d=g.siblings(".k-icon"),d[0]||(d=a(D("n",e.upArrowText)+D("s",e.downArrowText)).insertAfter(g),d.wrapAll('<span class="k-select"/>')),d.bind(q,function(a){(!i||c.eventTarget(a)!=a.currentTarget||a.type===o)&&clearTimeout(b._spinning),d.removeClass(w)}),f||(d.toggle(f),b._inputWrapper.addClass("k-expand-padding")),b._upArrow=d.eq(0),b._downArrow=d.eq(1)},_blur:function(){var a=this;a._toggleText(!0),a._change(a.element.val())},_click:function(a){var b=this;clearTimeout(b._focusing),b._focusing=setTimeout(function(){var c=a.target,d=E(c),e=c.value.substring(0,d),f=b._format(b.options.format),g=f[","],h=new RegExp("\\"+g,"g"),i=new RegExp("([\\d\\"+g+"]+)(\\"+f[v]+")?(\\d+)?"),j=i.exec(e),k=0;j&&(k=j[0].replace(h,"").length,e.indexOf("(")!=-1&&b._value<0&&k++),b._focusin(),E(b.element[0],k)})},_change:function(a){var b=this;b._update(a),a=b._value,b._old!=a&&(b._old=a,b.trigger(k),b.element.trigger(k))},_culture:function(a){return a||j(this.options.culture)},_focusin:function(){var a=this;a._toggleText(!1),a.element.focus(),a._inputWrapper.addClass(s)},_focusout:function(){var a=this;clearTimeout(a._focusing),a._inputWrapper.removeClass(s),a._blur()},_format:function(a,b){var c=this._culture(b).numberFormat;a=a.toLowerCase(),a.indexOf("c")>-1?c=c.currency:a.indexOf("p")>-1&&(c=c.percent);return c},_input:function(){var b=this,c="k-formatted-value",d=b.element.show()[0],e=b.wrapper,f;f=e.find(v+c),f[0]||(f=a("<input />").insertBefore(d).addClass(c)),d.type=y,f[0].type="text",f[0].style.cssText=d.style.cssText,f.attr("placeholder",b.options.placeholder),b._text=f.attr("readonly",!0).addClass(d.className)},_keydown:function(a){var b=this,c=a.keyCode;c==d.DOWN?b._step(-1):c==d.UP?b._step(1):c==d.ENTER&&b._change(b.element.val()),b._prevent(c)&&!a.ctrlKey&&a.preventDefault()},_paste:function(a){var b=this,c=a.target,d=c.value;setTimeout(function(){b._parse(c.value)===z&&b._update(d)})},_prevent:function(a){var b=this,c=b.element[0],e=c.value,f=b.options,g=f.min,h=b._format(f.format),i=h[v],j=f.decimals,k=E(c),l=!0,m;j===z&&(j=h.decimals),a>16&&a<21||a>32&&a<37||a>47&&a<58||a>95&&a<106||a==d.INSERT||a==d.DELETE||a==d.LEFT||a==d.RIGHT||a==d.TAB||a==d.BACKSPACE||a==d.ENTER?l=!1:B[a]===i&&j>0&&e.indexOf(i)==-1?l=!1:!(g===z||g<0)||e.indexOf("-")!=-1||a!=189&&a!=109||k!==0?a==110&&j>0&&e.indexOf(i)==-1&&(m=e.substring(k),c.value=e.substring(0,k)+i+m):l=!1;return l},_option:function(a,c){var d=this,e=d.options;if(c===b)return e[a];c=d._parse(c);if(!!c||a!=="step")e[a]=d._parse(c)},_spin:function(a,b){var c=this;b=b||500,clearTimeout(c._spinning),c._spinning=setTimeout(function(){c._spin(a,50)},b),c._step(a)},_step:function(a){var b=this,c=b.element,d=b._parse(c.val())||0;document.activeElement!=c[0]&&b._focusin(),d+=b.options.step*a,b._update(b._adjust(d)),b.trigger(n)},_toggleHover:function(b){i||a(b.currentTarget).toggleClass(t,b.type==="mouseenter")},_toggleText:function(a){var b=this;a=!!a,b._text.toggle(a),b.element.toggle(!a)},_parse:function(a,b){return g(a,this._culture(b),this.options.format)},_update:function(a){var b=this,d=b.options,e=d.format,f=d.decimals,g=b._culture(),h=b._format(e,g),i;f===z&&(f=h.decimals),a=b._parse(a,g),i=a!==z,i&&(a=parseFloat(a.toFixed(f))),b._value=a=b._adjust(a),b._placeholder(c.toString(a,e,g)),b.element.val(i?a.toString().replace(v,h[v]):"")},_placeholder:function(a){this._text.val(a),!h&&!a&&this._text.val(this.options.placeholder)},_wrapper:function(){var b=this,c=b.element,d;d=c.parents(".k-numerictextbox"),d.is("span.k-numerictextbox")||(d=c.hide().wrap('<span class="k-numeric-wrap k-state-default" />').parent(),d=d.wrap("<span/>").parent()),d[0].style.cssText=c[0].style.cssText,c[0].style.width="",b.wrapper=d.addClass("k-widget k-numerictextbox").show(),b._inputWrapper=a(d[0].firstChild)}});e.plugin(C)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function v(a,b,c){r(a,h,c,b>=c)}function u(a,b,c){r(a,j,Math.min(c,b+1),b>=c)}function t(a,b,c){r(a,i,Math.max(1,b-1),b<=1)}function s(a,b,c){r(a,g,1,b<=1)}function r(a,b,d,e){a.find(b).parent().attr(c.attr("page"),d).toggleClass("k-state-disabled",e)}function q(a,b){return o({className:a.substring(1),text:b})}function p(a,b,d,e){return a({idx:b,text:d,ns:c.ns,numeric:e})}var c=window.kendo,d=c.ui,e=d.Widget,f=a.proxy,g=".k-i-seek-w",h=".k-i-seek-e",i=".k-i-arrow-w",j=".k-i-arrow-e",k="change",l="click",m="keydown",n="disabled",o=c.template('<a href="\\#" title="#=text#" class="k-link"><span class="k-icon #= className #">#=text#</span></a>'),w=e.extend({init:function(b,d){var n=this,o,p;e.fn.init.call(n,b,d),d=n.options,n.dataSource=d.dataSource,n.linkTemplate=c.template(n.options.linkTemplate),n.selectTemplate=c.template(n.options.selectTemplate),o=n.page(),p=n.totalPages(),n._refreshHandler=f(n.refresh,n),n.dataSource.bind(k,n._refreshHandler),d.previousNext&&(n.element.find(g).length||(n.element.append(q(g,d.messages.first)),s(n.element,o,p)),n.element.find(i).length||(n.element.append(q(i,d.messages.previous)),t(n.element,o,p))),d.numeric&&(n.list=n.element.find(".k-pager-numbers"),n.list.length||(n.list=a('<ul class="k-pager-numbers k-reset" />').appendTo(n.element))),d.input&&(n.element.find(".k-pager-input").length||n.element.append('<span class="k-pager-input k-label">'+d.messages.page+'<input class="k-textbox">'+c.format(d.messages.of,p)+"</span>"),n._keydownHandler=f(n._keydown,n),n.element.on(m,".k-pager-input input",n._keydownHandler)),d.previousNext&&(n.element.find(j).length||(n.element.append(q(j,d.messages.next)),u(n.element,o,p)),n.element.find(h).length||(n.element.append(q(h,d.messages.last)),v(n.element,o,p))),d.pageSizes&&(n.element.find(".k-pager-sizes").length||a('<span class="k-pager-sizes k-label"><select/>'+d.messages.itemsPerPage+"</span>").appendTo(n.element).find("select").html(a.map(a.isArray(d.pageSizes)?d.pageSizes:[5,10,20],function(a){return"<option>"+a+"</option>"}).join("")).end().appendTo(n.element),n.element.find(".k-pager-sizes select").val(n.pageSize()),c.ui.DropDownList&&n.element.find(".k-pager-sizes select").kendoDropDownList(),n._changeHandler=f(n._change,n),n.element.on(k,".k-pager-sizes select",n._changeHandler)),d.refresh&&(n.element.find(".k-pager-refresh").length||n.element.append('<a href="#" class="k-pager-refresh k-link" title="'+d.messages.refresh+'"><span class="k-icon k-i-refresh">'+d.messages.refresh+"</span></a>"),n._reloadHandler=f(n._refreshClick,n),n.element.on(l,".k-pager-refresh",n._reloadHandler)),d.info&&(n.element.find(".k-pager-info").length||n.element.append('<span class="k-pager-info k-label" />')),n._clickHandler=f(n._click,n),n.element.on(l,"a",n._clickHandler),d.autoBind&&n.refresh()},destroy:function(){var a=this;a.element.off(l,"a",a._clickHandler),a.element.off(m,".k-pager-input input",a._keydownHandler),a.element.off(k,".k-pager-sizes select",a._changeHandler),a.element.off(l,".k-pager-refresh",a._reloadHandler),a.dataSource.unbind(k,a._refreshHandler)},events:[k],options:{name:"Pager",selectTemplate:'<li><span class="k-state-selected">#=text#</span></li>',linkTemplate:'<li><a href="\\#" class="k-link" data-#=ns#page="#=idx#">#=text#</a></li>',buttonCount:10,autoBind:!0,numeric:!0,info:!0,input:!1,previousNext:!0,pageSizes:!1,refresh:!1,messages:{display:"{0} - {1} of {2} items",empty:"No items to display",page:"Page",of:"of {0}",itemsPerPage:"items per page",first:"Go to the first page",previous:"Go to the previous page",next:"Go to the next page",last:"Go to the last page",refresh:"Refresh"}},refresh:function(){var a=this,b,d,e=1,f="",g,h=a.page(),i=a.options,j=a.pageSize(),k=a.dataSource.total(),l=a.totalPages(),m=a.linkTemplate,o=i.buttonCount;if(i.numeric){h>o&&(g=h%o,e=g===0?h-o+1:h-g+1),d=Math.min(e+o-1,l),e>1&&(f+=p(m,e-1,"...",!1));for(b=e;b<=d;b++)f+=p(b==h?a.selectTemplate:m,b,b,!0);d<l&&(f+=p(m,b,"...",!1)),f===""&&(f=a.selectTemplate({text:0})),a.list.html(f)}i.info&&(k>0?f=c.format(i.messages.display,(h-1)*j+1,Math.min(h*j,k),k):f=i.messages.empty,a.element.find(".k-pager-info").html(f)),i.input&&a.element.find(".k-pager-input").html(a.options.messages.page+'<input class="k-textbox">'+c.format(i.messages.of,l)).find("input").val(h).attr(n,k<1).toggleClass("k-state-disabled",k<1),i.previousNext&&(s(a.element,h,l),t(a.element,h,l),u(a.element,h,l),v(a.element,h,l)),i.pageSizes&&a.element.find(".k-pager-sizes select").val(j)},_keydown:function(a){if(a.keyCode===c.keys.ENTER){var b=this.element.find(".k-pager-input").find("input"),d=parseInt(b.val(),10);if(isNaN(d)||d<1||d>this.totalPages())d=this.page();b.val(d),this.page(d)}},_refreshClick:function(a){a.preventDefault(),this.dataSource.read()},_change:function(a){var b=parseInt(a.currentTarget.value,10);isNaN(b)||this.dataSource.pageSize(b)},_click:function(b){var d=a(b.currentTarget);b.preventDefault(),d.is(".k-state-disabled")||this.page(d.attr(c.attr("page")))},totalPages:function(){return Math.ceil((this.dataSource.total()||0)/this.pageSize())},pageSize:function(){return this.dataSource.pageSize()||this.dataSource.total()},page:function(a){if(a!==b)this.dataSource.page(a),this.trigger(k,{index:a});else return this.dataSource.total()>0?this.dataSource.page():0}});d.plugin(w)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function U(a,b){a.find(J).removeClass(E.substr(1)),a.find(K).removeClass(G.substr(1)),b.addClass(E.substr(1)),b.parentsUntil(a,p).filter(":has(.k-header)").addClass(G.substr(1))}function T(b){b=a(b),b.filter(".k-first:not(:first-child)").removeClass(r),b.filter(".k-last:not(:last-child)").removeClass(l),b.filter(":first-child").addClass(r),b.filter(":last-child").addClass(l)}function S(b){b=a(b),b.children(".k-link").children(".k-icon").remove(),b.filter(":has(.k-panel),:has(.k-content)").children(".k-link:not(:has([class*=k-i-arrow]))").each(function(){var b=a(this),c=b.parent();b.append("<span class='k-icon "+(c.hasClass(B.substr(1))?"k-i-arrow-n k-panelbar-collapse":"k-i-arrow-s k-panelbar-expand")+"'/>")})}function R(b,c){b=a(b).addClass("k-item"),b.children(j).addClass(q),b.children("a").addClass(m).children(j).addClass(q),b.filter(":not([disabled]):not([class*=k-state])").addClass("k-state-default"),b.filter("li[disabled]").addClass("k-state-disabled").removeAttr("disabled"),b.filter(":not([class*=k-state])").children("a").filter(":focus").parent().addClass(B.substr(1)),b.find(">div").addClass(u).css({display:"none"}),b.each(function(){var b=a(this);b.children("."+m).length||b.contents().filter(function(){return!this.nodeName.match(i)&&(this.nodeType!=3||!!a.trim(this.nodeValue))}).wrapAll("<span class='"+m+"'/>")}),c.find(" > li > ."+m).addClass("k-header")}var c=window.kendo,d=c.ui,e=a.extend,f=a.each,g=c.template,h=d.Widget,i=/^(ul|a|div)$/i,j="img",k="href",l="k-last",m="k-link",n="error",o="click",p=".k-item",q="k-image",r="k-first",s="expand",t="select",u="k-content",v="activate",w="collapse",x="contentUrl",y="mouseenter",z="mouseleave",A="contentLoad",B=".k-state-active",C="> .k-panel",D="> .k-content",E=".k-state-selected",F=".k-state-disabled",G=".k-state-highlighted",H=p+":not(.k-state-disabled) .k-link",I=p+".k-state-disabled .k-link",J="> li > .k-state-selected, .k-panel > li > .k-state-selected",K="> .k-state-highlighted, .k-panel > .k-state-highlighted",L="k-state-default",M=":visible",N=":empty",O="single",P={content:g("<div class='k-content'#= contentAttributes(data) #>#= content(item) #</div>"),group:g("<ul class='#= groupCssClass(group) #'#= groupAttributes(group) #>#= renderItems(data) #</ul>"),itemWrapper:g("<#= tag(item) # class='#= textClass(item, group) #'#= contentUrl(item) ##= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) ##= arrow(data) #</#= tag(item) #>"),item:g("<li class='#= wrapperCssClass(group, item) #'>#= itemWrapper(data) ## if (item.items) { ##= subGroup({ items: item.items, panelBar: panelBar, group: { expanded: item.expanded } }) ## } #</li>"),image:g("<img class='k-image' alt='' src='#= imageUrl #' />"),arrow:g("<span class='#= arrowClass(item) #'></span>"),sprite:g("<span class='k-sprite #= spriteCssClass #'></span>"),empty:g("")},Q={wrapperCssClass:function(a,b){var c="k-item",d=b.index;b.enabled===!1?c+=" k-state-disabled":b.expanded===!0?c+=" k-state-active":c+=" k-state-default",d===0&&(c+=" k-first"),d==a.length-1&&(c+=" k-last");return c},textClass:function(a,b){var c=m;b.firstLevel&&(c+=" k-header");return c},textAttributes:function(a){return a.url?" href='"+a.url+"'":""},arrowClass:function(a){var b="k-icon";b+=a.expanded?" k-i-arrow-n k-panelbar-collapse":" k-i-arrow-s k-panelbar-expand";return b},text:function(a){return a.encoded===!1?a.text:c.htmlEncode(a.text)},tag:function(a){return a.url?"a":"span"},groupAttributes:function(a){return a.expanded!==!0?" style='display:none'":""},groupCssClass:function(a){return"k-group k-panel"},contentAttributes:function(a){return a.item.expanded!==!0?" style='display:none'":""},content:function(a){return a.content?a.content:a.contentUrl?"":" "},contentUrl:function(a){return a.contentUrl?c.attr("content-url")+'="'+a.contentUrl+'"':""}},V=h.extend({init:function(b,d){var e=this,f;h.fn.init.call(e,b,d),b=e.wrapper=e.element,d=e.options,d.dataSource&&(e.element.empty(),e.append(d.dataSource,b)),e._updateClasses(),d.animation===!1&&(d.animation={expand:{show:!0,effects:{}},collapse:{hide:!0,effects:{}}}),b.delegate(H,o,a.proxy(e._click,e)).delegate(H,y+" "+z,e._toggleHover).delegate(I,o,!1),d.contentUrls&&b.find("> .k-item").each(function(b,c){a(c).find("."+m).data(x,d.contentUrls[b])}),f=b.find("li"+B+" > ."+u),f.length>0&&e.expand(f.parent(),!1),c.notify(e)},events:[s,w,t,v,n,A],options:{name:"PanelBar",animation:{expand:{effects:"expand:vertical",duration:200,show:!0},collapse:{duration:200}},expandMode:"multiple"},expand:function(b,c){var d=this,e={};c=c!==!1,b=this.element.find(b),b.each(function(f,g){g=a(g);var h=g.find(C).add(g.find(D));if(!g.hasClass(F)&&h.length>0){if(d.options.expandMode==O&&d._collapseAllExpanded(g))return d;b.find(G).removeClass(G.substr(1)),g.addClass(G.substr(1)),c||(e=d.options.animation,d.options.animation={expand:{show:!0,effects:{}},collapse:{hide:!0,effects:{}}}),d._triggerEvent(s,g)||d._toggleItem(g,!1,null),c||(d.options.animation=e)}});return d},collapse:function(b,c){var d=this,e={};c=c!==!1,b=d.element.find(b),b.each(function(b,f){f=a(f);var g=f.find(C).add(f.find(D));!f.hasClass(F)&&g.is(M)&&(f.removeClass(G.substr(1)),c||(e=d.options.animation,d.options.animation={expand:{show:!0,effects:{}},collapse:{hide:!0,effects:{}}}),d._triggerEvent(w,f)||d._toggleItem(f,!0,null),c||(d.options.animation=e))});return d},_toggleDisabled:function(a,b){a=this.element.find(a),a.toggleClass(L,b).toggleClass(F.substr(1),!b)},select:function(b){var c=this;b=c.element.find(b);if(arguments.length===0)return c.element.find(J).parent();b.each(function(b,d){d=a(d);var e=d.children("."+m);if(d.is(F))return c;U(c.element,e)});return c},enable:function(a,b){this._toggleDisabled(a,b!==!1);return this},disable:function(a){this._toggleDisabled(a,!1);return this},append:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.length?c.find(C):null);f(d.items,function(b){d.group.append(this);var c=d.contents[b];c&&a(this).append(c),T(this)}),S(c),T(d.group.find(".k-first, .k-last")),d.group.height("auto");return this},insertBefore:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.parent());f(d.items,function(b){c.before(this);var e=d.contents[b];e&&a(this).append(e),T(this)}),T(c),d.group.height("auto");return this},insertAfter:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.parent());f(d.items,function(b){c.after(this);var e=d.contents[b];e&&a(this).append(e),T(this)}),T(c),d.group.height("auto");return this},remove:function(a){a=this.element.find(a);var b=this,c=a.parentsUntil(b.element,p),d=a.parent("ul");a.remove(),d&&!d.hasClass("k-panelbar")&&!d.children(p).length&&d.remove(),c.length&&(c=c.eq(0),S(c),T(c));return b},reload:function(b){var c=this;b=c.element.find(b),b.each(function(){var b=a(this);c._ajaxRequest(b,b.children("."+u),!b.is(M))})},_insert:function(b,c,d){var f=this,g,h=[];if(!c||!c.length)d=f.element;var i=a.isPlainObject(b),j={firstLevel:d.hasClass("k-panelbar"),expanded:d.parent().hasClass("k-state-active"),length:d.children().length};c&&!d.length&&(d=a(V.renderGroup({group:j})).appendTo(c)),i||a.isArray(b)?(g=a.map(i?[b]:b,function(b,c){return typeof b=="string"?a(b):a(V.renderItem({group:j,item:e(b,{index:c})}))}),h=a.map(i?[b]:b,function(b,c){return b.content||b.contentUrl?a(V.renderContent({item:e(b,{index:c})})):!1})):(g=a(b),R(g,f.element));return{items:g,group:d,contents:h}},_toggleHover:function(b){var c=a(b.currentTarget);c.parents("li"+F).length||c.toggleClass("k-state-hover",b.type==y)},_updateClasses:function(){var b=this;b.element.addClass("k-widget k-reset k-header k-panelbar");var c=b.element.find("li > ul").not(function(){return a(this).parentsUntil(".k-panelbar","div").length}).addClass("k-group k-panel").add(b.element),d=c.find("> li:not("+B+") > ul").css({display:"none"}).end().find("> li");d.each(function(){R(this,b.element)}),S(d),T(d)},_click:function(b){var c=this,d=a(b.currentTarget),e=c.element;if(!d.parents("li"+F).length){if(d.closest(".k-widget")[0]!=e[0])return;var f=d.closest("."+m),g=f.closest(p);U(e,f);var h=g.find(C).add(g.find(D)),i=f.attr(k),j=f.data(x)||i&&(i.charAt(i.length-1)=="#"||i.indexOf("#"+c.element[0].id+"-")!=-1);if(h.data("animating"))return;c._triggerEvent(t,g)&&b.preventDefault();if(j||h.length)b.preventDefault();else return;if(c.options.expandMode==O&&c._collapseAllExpanded(g))return;if(h.length){var l=h.is(M);c._triggerEvent(l?w:s,g)||c._toggleItem(g,l,b)}}},_toggleItem:function(a,b,c){var d=this,e=a.find(C);if(e.length)this._toggleGroup(e,b),c&&c.preventDefault();else{var f=a.find("> ."+u);f.length&&(c&&c.preventDefault(),f.is(N)?d._ajaxRequest(a,f,b):d._toggleGroup(f,b))}},_toggleGroup:function(a,b){var c=this,d=c.options.animation,f=d.expand,g=e({},d.collapse),h=g&&"effects"in g;a.is(M)==b&&(a.parent().toggleClass(L,b).toggleClass(B.substr(1),!b).find("> .k-link > .k-icon").toggleClass("k-i-arrow-n",!b).toggleClass("k-panelbar-collapse",!b).toggleClass("k-i-arrow-s",b).toggleClass("k-panelbar-expand",b),b?f=e(h?g:e({reverse:!0},f),{show:!1,hide:!0}):f=e({complete:function(a){c._triggerEvent(v,a.closest(p))}},f),a.kendoStop(!0,!0).kendoAnimate(f))},_collapseAllExpanded:function(b){var c=this,d,e=!1;if(b.find("> ."+m).hasClass("k-header")){var f=b.find(C).add(b.find(D));f.is(M)&&(e=!0),!f.is(M)&&f.length!==0&&(d=a(c.element).children(),d.find(C).add(d.find(D)).filter(function(){return a(this).is(M)}).each(function(b,d){d=a(d),e=c._triggerEvent(w,d.closest(p)),e||c._toggleGroup(d,!0)}));return e}},_ajaxRequest:function(b,c,d){var e=this,f=b.find(".k-panelbar-collapse, .k-panelbar-expand"),g=b.find("."+m),h=setTimeout(function(){f.addClass("k-loading")},100),i={};a.ajax({type:"GET",cache:!1,url:g.data(x)||g.attr(k),dataType:"html",data:i,error:function(a,b){f.removeClass("k-loading"),e.trigger(n,{xhr:a,status:b})&&this.complete()},complete:function(){clearTimeout(h),f.removeClass("k-loading")},success:function(a,f){c.html(a),e._toggleGroup(c,d),e.trigger(A,{item:b[0],contentElement:c[0]})}})},_triggerEvent:function(a,b){var c=this;return c.trigger(a,{item:b[0]})}});e(V,{renderItem:function(a){a=e({panelBar:{},group:{}},a);var b=P.empty,c=a.item;return P.item(e(a,{image:c.imageUrl?P.image:b,sprite:c.spriteCssClass?P.sprite:b,itemWrapper:P.itemWrapper,arrow:c.items||c.content||c.contentUrl?P.arrow:b,subGroup:V.renderGroup},Q))},renderGroup:function(a){return P.group(e({renderItems:function(a){var b="",c=0,d=a.items,f=d?d.length:0,g=e({length:f},a.group);for(;c<f;c++)b+=V.renderItem(e(a,{group:g,item:e({index:c},d[c])}));return b}},a,Q))},renderContent:function(a){return P.content(e(a,Q))}}),c.ui.plugin(V)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function M(b,c){return b===c||a.contains(b,c)}var c=window.kendo,d=c.ui,e=d.Widget,f=c.support,g=f.touch,h=c.getOffset,i=a.browser.msie&&a.browser.version<9,j="open",k="close",l="deactivate",m="activate",n="center",o="left",p="right",q="top",r="bottom",s="absolute",t="hidden",u="body",v="location",w="position",x="visible",y="fitted",z="effects",A="k-state-active",B="k-state-border",C=".k-picker-wrap, .k-dropdown-wrap, .k-link",D=g?"touchstart":"mousedown",E=a(document),F=a(window),G=a(document.documentElement),H="resize scroll",I=f.transitions.css,J=I+"transform",K=a.extend,L=["font-family","font-size","font-stretch","font-style","font-weight","line-height"],N=e.extend({init:function(b,d){var f=this,g;e.fn.init.call(f,b,d),b=f.element,d=f.options,f.collisions=d.collision?d.collision.split(" "):[],f.collisions.length===1&&f.collisions.push(f.collisions[0]),g=a(f.options.anchor).closest(".k-popup,.k-group"),d.appendTo=a(a(d.appendTo)[0]||g[0]||u),f.element.hide().addClass("k-popup k-group k-reset").css({position:s}).appendTo(d.appendTo).bind("mouseenter mouseleave",function(a){f._hovered=a.type==="mouseenter"}),f.wrapper=a(),d.animation===!1&&(d.animation={open:{show:!0,effects:{}},close:{hide:!0,effects:{}}}),K(d.animation.open,{complete:function(){f.wrapper.css({overflow:x}),f.trigger(m)}}),K(d.animation.close,{complete:function(){f.wrapper.hide();var e=f.wrapper.data(v),g=a(d.anchor),h,i;e&&f.wrapper.css(e),d.anchor!=u&&(h=g.hasClass(B+"-down")?"down":"up",i=B+"-"+h,g.removeClass(i).children(C).removeClass(A).removeClass(i),b.removeClass(B+"-"+c.directions[h].reverse)),f._closing=!1,f.trigger(l)}}),f._mousedownProxy=function(a){f._mousedown(a)},f._currentWidth=E.width(),f._resizeProxy=function(a){f._resize(a)},d.toggleTarget&&a(d.toggleTarget).bind(d.toggleEvent,a.proxy(f.toggle,f))},events:[j,m,k,l],options:{name:"Popup",toggleEvent:"click",origin:r+" "+o,position:q+" "+o,anchor:u,collision:"flip fit",viewport:window,animation:{open:{effects:"slideIn:down",transition:!0,duration:200,show:!0},close:{duration:100,show:!1,hide:!0}}},open:function(b,d){var e=this,h={isFixed:!isNaN(parseInt(d,10)),x:b,y:d},i=e.element,k=e.options,l="down",m,n,o=a(k.anchor),p,r;if(!e.visible()){for(r=0;r<L.length;r++)p=L[r],i.css(p,o.css(p));if(i.data("animating")||e.trigger(j))return;G.unbind(D,e._mousedownProxy).bind(D,e._mousedownProxy),g||F.unbind(H,e._resizeProxy).bind(H,e._resizeProxy),e.wrapper=n=c.wrap(i).css({overflow:t,display:"block",position:s}),f.mobileOS.android&&n.add(o).css(J,"translatez(0)"),n.css(w),k.appendTo==u&&n.css(q,"-10000px"),m=K(!0,{},k.animation.open),e.flipped=e._position(h),m.effects=c.parseEffects(m.effects,e.flipped),l=m.effects.slideIn?m.effects.slideIn.direction:l;if(k.anchor!=u){var v=B+"-"+l;i.addClass(B+"-"+c.directions[l].reverse),o.addClass(v).children(C).addClass(A).addClass(v)}i.data(z,m.effects).kendoStop(!0).kendoAnimate(m)}},toggle:function(){var a=this;a[a.visible()?k:j]()},visible:function(){return this.element.is(":"+x)},close:function(){var b=this,d=b.options,e,f,g;if(b.visible()){if(b._closing||b.trigger(k))return;b.element.find(".k-popup").each(function(){var b=a(this),c=b.data("kendoPopup");c&&c.close()}),G.unbind(D,b._mousedownProxy),F.unbind(H,b._resizeProxy),e=K(!0,{},d.animation.close),f=b.element.data(z),g=e.effects,b.wrapper=c.wrap(b.element).css({overflow:t}),!g&&!c.size(g)&&f&&c.size(f)&&(e.effects=f,e.reverse=!0),b._closing=!0,b.element.kendoStop(!0).kendoAnimate(e)}},_resize:function(a){var b=this;if(i){var c=E.width();if(c==b._currentWidth)return;b._currentWidth=c}b._hovered||b.close()},_mousedown:function(b){var d=this,e=d.element[0],f=d.options,g=a(f.anchor)[0],h=f.toggleTarget,i=c.eventTarget(b),j=a(i).closest(".k-popup")[0];(!j||j===d.element[0])&&!M(e,i)&&!M(g,i)&&(!h||!M(a(h)[0],i))&&d.close()},_fit:function(a,b,c){var d=0;a+b>c&&(d=c-(a+b)),a<0&&(d=-a);return d},_flip:function(a,b,c,d,e,f,g){var h=0;g=g||b,f!==e&&f!==n&&e!==n&&(a+g>d&&(h+=-(c+b)),a+h<0&&(h+=c+b));return h},_position:function(b){var c=this,d=c.element,e=c.wrapper,g=c.options,i=a(g.viewport),j=a(i).offset(),k=a(g.anchor),l=g.origin.toLowerCase().split(" "),m=g.position.toLowerCase().split(" "),n=c.collisions,o=f.zoomLevel(),p=10002,q=k.parents().filter(e.siblings());if(q[0]){var r=Number(a(q).css("zIndex"));r&&(p=r+1)}e.css("zIndex",p),b&&b.isFixed?e.css({left:b.x,top:b.y}):e.css(c._align(l,m));var s=h(e,w),t=h(e),u=k.offsetParent().parent(".k-animation-container");u.length&&u.data(y)&&(s=h(e,w),t=h(e)),i[0]===window?(t.top-=window.pageYOffset||document.documentElement.scrollTop||0,t.left-=window.pageXOffset||document.documentElement.scrollLeft||0):(t.top-=j.top,t.left-=j.left),c.wrapper.data(v)||e.data(v,K({},s));var x=K({},t),z=K({},s);n[0]==="fit"&&(z.top+=c._fit(x.top,e.outerHeight(),i.height()/o)),n[1]==="fit"&&(z.left+=c._fit(x.left,e.outerWidth(),i.width()/o)),z.left!=s.left||z.top!=s.top?e.data(y,!0):e.removeData(y);var A=K({},z);n[0]==="flip"&&(z.top+=c._flip(x.top,d.outerHeight(),k.outerHeight(),i.height()/o,l[0],m[0],e.outerHeight())),n[1]==="flip"&&(z.left+=c._flip(x.left,d.outerWidth(),k.outerWidth(),i.width()/o,l[1],m[1],e.outerWidth())),e.css(z);return z.left!=A.left||z.top!=A.top},_align:function(b,c){var d=this,e=d.wrapper,f=a(d.options.anchor),g=b[0],i=b[1],j=c[0],k=c[1],l=h(f),m=a(d.options.appendTo),o,q=e.outerWidth(),s=e.outerHeight(),t=f.outerWidth(),u=f.outerHeight(),v=l.top,w=l.left,x=Math.round;m[0]!=document.body&&(o=h(m),v-=o.top,w-=o.left),g===r&&(v+=u),g===n&&(v+=x(u/2)),j===r&&(v-=s),j===n&&(v-=x(s/2)),i===p&&(w+=t),i===n&&(w+=x(t/2)),k===p&&(w-=q),k===n&&(w-=x(q/2));return{top:v,left:w}}});d.plugin(N)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function g(b,c){b=a(b),c?b.find(".k-drag-status").removeClass("k-add").addClass("k-denied"):b.find(".k-drag-status").removeClass("k-denied").addClass("k-add")}var c=window.kendo,d=c.ui.Widget,e="change",f="k-reorderable",h=d.extend({init:function(b,h){var i=this,j,k=c.guid()+"-reorderable";d.fn.init.call(i,b,h),b=i.element.addClass(f),h=i.options,j=h.draggable||new c.ui.Draggable(b,{group:k,filter:h.filter,hint:h.hint}),i.reorderDropCue=a('<div class="k-reorder-cue"><div class="k-icon k-i-arrow-s"></div><div class="k-icon k-i-arrow-n"></div></div>'),b.find(j.options.filter).kendoDropTarget({group:j.options.group,dragenter:function(a){if(!!i._draggable){var c=this.element,d=c[0]===i._draggable[0];g(a.draggable.hint,d),d||i.reorderDropCue.css({height:c.outerHeight(),top:b.offset().top,left:c.offset().left+(c.index()>i._draggable.index()?c.outerWidth():0)}).appendTo(document.body)}},dragleave:function(a){g(a.draggable.hint,!0),i.reorderDropCue.remove()},drop:function(){if(!!i._draggable){var a=i._draggable[0],c=this.element[0],d;a!==c&&(d=b.find(j.options.filter),i.trigger(e,{element:i._draggable,oldIndex:d.index(a),newIndex:d.index(c)}))}}}),j.bind(["dragcancel","dragend","dragstart"],{dragcancel:function(){i.reorderDropCue.remove(),i._draggable=null},dragend:function(){i.reorderDropCue.remove(),i._draggable=null},dragstart:function(a){i._draggable=a.currentTarget}})},options:{name:"Reorderable",filter:"*"},events:[e]});c.ui.plugin(h)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){var c=window.kendo,d=c.ui,e=d.Widget,f=a.proxy,g=a.isFunction,h=a.extend,i="horizontal",j="vertical",k="start",l="resize",m="resizeend",n=e.extend({init:function(a,b){var c=this;e.fn.init.call(c,a,b),c.orientation=c.options.orientation.toLowerCase()!=j?i:j,c._positionMouse=c.orientation==i?"x":"y",c._position=c.orientation==i?"left":"top",c._sizingDom=c.orientation==i?"outerWidth":"outerHeight",new d.Draggable(a,{distance:0,filter:b.handle,drag:f(c._resize,c),dragstart:f(c._start,c),dragend:f(c._stop,c)})},events:[l,m,k],options:{name:"Resizable",orientation:i},_max:function(a){var c=this,d=c.hint?c.hint[c._sizingDom]():0,e=c.options.max;return g(e)?e(a):e!==b?c._initialElementPosition+e-d:e},_min:function(a){var c=this,d=c.options.min;return g(d)?d(a):d!==b?c._initialElementPosition+d:d},_start:function(b){var c=this,d=c.options.hint,e=a(b.currentTarget);c._initialMousePosition=b[c._positionMouse].location,c._initialElementPosition=e.position()[c._position],d&&(c.hint=g(d)?a(d(e)):d,c.hint.css({position:"absolute"}).css(c._position,c._initialElementPosition).appendTo(c.element)),c.trigger(k,b),c._maxPosition=c._max(b),c._minPosition=c._min(b),a(document.body).css("cursor",e.css("cursor"))},_resize:function(c){var d=this,e=a(c.currentTarget),f=d._maxPosition,g=d._minPosition,i=d._initialElementPosition+(c[d._positionMouse].location-d._initialMousePosition),j;j=g!==b?Math.max(g,i):i,d.position=j=f!==b?Math.min(f,j):j,d.hint&&d.hint.toggleClass(d.options.invalidClass||"",j==f||j==g).css(d._position,j),d.trigger(l,h(c,{position:j}))},_stop:function(b){var c=this;c.hint&&c.hint.remove(),c.trigger(m,h(b,{position:c.position})),a(document.body).css("cursor","")}});c.ui.plugin(n)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){var c=window.kendo,d=c.support.touch,e=c.ui.Widget,f=a.proxy,g=d?"touchend":"mouseup",h=d?"touchstart":"mousedown",i=d?"touchmove":"mousemove",j="k-state-selected",k="k-state-selecting",l="k-selectable",m="selectstart",n=a(document),o="change",p="k-state-unselecting",q=e.extend({init:function(b,c){var d=this;e.fn.init.call(d,b,c),d._marquee=a("<div class='k-marquee'></div>"),d._lastActive=null,d._moveDelegate=f(d._move,d),d._upDelegate=f(d._up,d),d.element.addClass(l),d.element.delegate("."+l+" "+d.options.filter,h,f(d._down,d))},events:[o],options:{name:"Selectable",filter:">*",multiple:!1},_collide:function(a,b){var c=a.offset(),d={left:c.left,top:c.top,right:c.left+a.outerWidth(),bottom:c.top+a.outerHeight()};return!(d.left>b.right||d.right<b.left||d.top>b.bottom||d.bottom<b.top)},_position:function(a){var b=this._originalPosition,c=b.x,d=b.y,e=a.pageX,f=a.pageY,g;c>e&&(g=e,e=c,c=g),d>f&&(g=f,f=d,d=g);return{top:d,right:e,left:c,bottom:f}},_down:function(b){var d=this,e,f=b.ctrlKey,h=b.shiftKey,o=!d.options.multiple;d._downTarget=a(b.currentTarget),d._shiftPressed=h;if(d._downTarget.closest("."+l)[0]===d.element[0]){n.unbind(g,d._upDelegate).bind(g,d._upDelegate),d._originalPosition={x:b.pageX,y:b.pageY},!o&&a(b.target).is(":not(:input, a)")&&(n.unbind(i,d._moveDelegate).bind(i,d._moveDelegate).unbind(m,!1).bind(m,!1),c.support.touch||b.preventDefault()),o||(a("body").append(d._marquee),d._marquee.css({left:b.clientX+1,top:b.clientY+1,width:0,height:0})),e=d._downTarget.hasClass(j),(o||!f&&!h)&&d.element.find(d.options.filter+"."+j).not(d._downTarget).removeClass(j),f&&(d._lastActive=d._downTarget);if(e&&(f||h))d._downTarget.addClass(j),h||d._downTarget.addClass(p);else if(!c.support.touch||!o)d._downTarget.addClass(k),o&&d._downTarget.hasClass(j)&&d._downTarget.removeClass(k)}},_move:function(b){var c=this,d=c._position(b),e=b.ctrlKey,f,g;c._marquee.css({left:d.left,top:d.top,width:d.right-d.left,height:d.bottom-d.top}),c.element.find(c.options.filter).each(function(){f=a(this),g=c._collide(f,d),g?f.hasClass(j)?c._downTarget[0]!==f[0]&&e&&f.removeClass(j).addClass(p):!f.hasClass(k)&&!f.hasClass(p)&&f.addClass(k):f.hasClass(k)?f.removeClass(k):e&&f.hasClass(p)&&f.removeClass(p).addClass(j)})},_up:function(a){var b=this,d=b.options,e=!d.multiple;n.unbind(m,!1).unbind(i,b._moveDelegate).unbind(g,b._upDelegate),e||b._marquee.remove(),c.support.touch&&e&&b._downTarget.addClass(k),!e&&b._shiftPressed===!0?b.selectRange(b._firstSelectee(),b._downTarget):(b.element.find(d.filter+"."+p).removeClass(p).removeClass(j),b.value(b.element.find(d.filter+"."+k))),b._shiftPressed||(b._lastActive=b._downTarget),b._downTarget=null,b._shiftPressed=!1},value:function(a){var b=this,c=f(b._selectElement,b);if(a)a.each(function(){c(this)}),b.trigger(o,{});else return b.element.find(b.options.filter+"."+j)},_firstSelectee:function(){var a=this,b;if(a._lastActive!==null)return a._lastActive;b=a.value();return b.length>0?b[0]:a.element.find(a.options.filter)},_selectElement:function(b){var c=a(b),d=this.trigger("select",{element:b});c.removeClass(k),d||c.addClass(j)},clear:function(){var a=this;a.element.find(a.options.filter+"."+j).removeClass(j)},selectRange:function(b,c){var d=this,e=!1,g=f(d._selectElement,d),h;b=a(b)[0],c=a(c)[0],d.element.find(d.options.filter).each(function(){h=a(this);if(e)g(this),e=this!==c;else if(this===b)e=b!==c,g(this);else if(this===c){var d=b;b=c,c=d,e=!0,g(this)}else h.removeClass(j)}),d.trigger(o,{})}});c.ui.plugin(q)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function R(a){return typeof a!==F}function P(a,c){var d=h(a.getAttribute(c));d===null&&(d=b);return d}function O(a){a=parseFloat(a,10);var b=k.pow(10,D||0);return k.round(a*b)/b}function N(a){return(a+"").replace(".",c.cultures.current.numberFormat["."])}function M(a){return function(){return a}}function L(a){return function(b){return b+a}}function K(a){var b=a.is("input")?1:2;return"<div class='k-slider-track'><div class='k-slider-selection'><!-- --></div><a href='#' class='k-draghandle' title='Drag'>Drag</a>"+(b>1?"<a href='#' class='k-draghandle' title='Drag'>Drag</a>":"")+"</div>"}function J(a,b){var c="<ul class='k-reset k-slider-items'>",d=k.floor(O(b/a.smallStep))+1,e;for(e=0;e<d;e++)c+="<li class='k-tick'> </li>";c+="</ul>";return c}function I(a,b,c){var d="";b=="increase"?d=c?"k-i-arrow-e":"k-i-arrow-n":d=c?"k-i-arrow-w":"k-i-arrow-s";return"<a class='k-button k-button-"+b+"'><span class='k-icon "+d+"' title='"+a[b+"ButtonTitle"]+"'>"+a[b+"ButtonTitle"]+"</span></a>"}function H(a,b,c){var d=c?" k-slider-horizontal":" k-slider-vertical",e=a.style?a.style:b.attr("style"),f=b.attr("class")?" "+b.attr("class"):"",g="";a.tickPlacement=="bottomRight"?g=" k-slider-bottomright":a.tickPlacement=="topLeft"&&(g=" k-slider-topleft"),e=e?" style='"+e+"'":"";return"<div class='k-widget k-slider"+d+f+"'"+e+">"+"<div class='k-slider-wrap"+(a.showButtons?" k-slider-buttons":"")+g+"'></div></div>"}var c=window.kendo,d=c.ui.Widget,e=c.ui.Draggable,f=a.extend,g=c.format,h=c.parseFloat,i=a.proxy,j=a.isArray,k=Math,l=c.support,m=l.touch,n=l.pointers,o="change",p="slide",q=m?"touchstart":"mousedown",r=m?"touchstart":n?"MSPointerDown":"mousedown",s=m?"touchend":"mouseup",t="moveSelection",u="keydown",v="click",w="mouseover",x=".k-draghandle",y=".k-slider-track",z=".k-tick",A="k-state-selected",B="k-state-default",C="k-state-disabled",D=3,E="disabled",F="undefined",G=d.extend({init:function(a,b){var e=this;d.fn.init.call(e,a,b),b=e.options,e._distance=b.max-b.min,e._isHorizontal=b.orientation=="horizontal",e._position=e._isHorizontal?"left":"bottom",e._size=e._isHorizontal?"width":"height",e._outerSize=e._isHorizontal?"outerWidth":"outerHeight",b.tooltip.format=b.tooltip.enabled?b.tooltip.format||"{0}":"{0}",e._createHtml(),e.wrapper=e.element.closest(".k-slider"),e._trackDiv=e.wrapper.find(y),e._setTrackDivWidth(),e._maxSelection=e._trackDiv[e._size]();var f=e._maxSelection/((b.max-b.min)/b.smallStep),g=e._calculateItemsWidth(k.floor(e._distance/b.smallStep));b.tickPlacement!="none"&&f>=2&&(e._trackDiv.before(J(b,e._distance)),e._setItemsWidth(g),e._setItemsTitle(),e._setItemsLargeTick()),e._calculateSteps(g),e[b.enabled?"enable":"disable"](),e._keyMap={37:L(-b.smallStep),40:L(-b.smallStep),39:L(+b.smallStep),38:L(+b.smallStep),35:M(b.max),36:M(b.min),33:L(+b.largeStep),34:L(-b.largeStep)},c.notify(e)},events:[o,p],options:{enabled:!0,min:0,max:10,smallStep:1,largeStep:5,orientation:"horizontal",tickPlacement:"both",tooltip:{enabled:!0,format:"{0}"}},_setTrackDivWidth:function(){var a=this,b=parseFloat(a._trackDiv.css(a._position),10)*2;a._trackDiv[a._size](a.wrapper[a._size]()-2-b)},_setItemsWidth:function(b){var c=this,d=c.options,e=0,f=b.length-1,g=c.wrapper.find(z),h,i=0,j=2,k=g.length,l=0;for(h=0;h<k-2;h++)a(g[h+1])[c._size](b[h]);c._isHorizontal?(a(g[e]).addClass("k-first")[c._size](b[f-1]),a(g[f]).addClass("k-last")[c._size](b[f])):(a(g[f]).addClass("k-first")[c._size](b[f]),a(g[e]).addClass("k-last")[c._size](b[f-1]));if(c._distance%d.smallStep!==0&&!c._isHorizontal){for(h=0;h<b.length;h++)l+=b[h];i=c._maxSelection-l,i+=parseFloat(c._trackDiv.css(c._position),10)+j,c.wrapper.find(".k-slider-items").css("padding-top",i)}},_setItemsTitle:function(){var b=this,c=b.options,d=b.wrapper.find(z),e=c.min,f=d.length,h=b._isHorizontal?0:f-1,i=b._isHorizontal?f:-1,j=b._isHorizontal?1:-1;for(;h-i!==0;h+=j)a(d[h]).attr("title",g(c.tooltip.format,O(e))),e+=c.smallStep},_setItemsLargeTick:function(){var b=this,c=b.options,d,e=b.wrapper.find(z),f={},g=O(c.largeStep/c.smallStep);if(1e3*c.largeStep%(1e3*c.smallStep)===0)if(b._isHorizontal)for(d=0;d<e.length;d=O(d+g))f=a(e[d]),f.addClass("k-tick-large").html("<span class='k-label'>"+f.attr("title")+"</span>");else for(d=e.length-1;d>=0;d=O(d-g))f=a(e[d]),f.addClass("k-tick-large").html("<span class='k-label'>"+f.attr("title")+"</span>"),d!==0&&d!==e.length-1&&f.css("line-height",f[b._size]()+"px")},_calculateItemsWidth:function(a){var b=this,c=b.options,d=parseFloat(b._trackDiv.css(b._size))+1,e=d/b._distance,f,g,h;b._distance/c.smallStep-k.floor(b._distance/c.smallStep)>0&&(d-=b._distance%c.smallStep*e),f=d/a,g=[];for(h=0;h<a-1;h++)g[h]=f;g[a-1]=g[a]=f/2;return b._roundWidths(g)},_roundWidths:function(a){var b=0,c=a.length,d;for(d=0;d<c;d++)b+=a[d]-k.floor(a[d]),a[d]=k.floor(a[d]);b=k.round(b);return this._addAdditionalSize(b,a)},_addAdditionalSize:function(a,b){if(a===0)return b;var c=parseFloat(b.length-1)/parseFloat(a==1?a:a-1),d;for(d=0;d<a;d++)b[parseInt(k.round(c*d),10)]+=1;return b},_calculateSteps:function(a){var b=this,c=b.options,d=c.min,e=0,f=k.ceil(b._distance/c.smallStep),g=1,h;f+=b._distance/c.smallStep%1===0?1:0,a.splice(0,0,a[f-2]*2),a.splice(f-1,1,a.pop()*2),b._pixelSteps=[e],b._values=[d];if(f!==0){while(g<f)e+=(a[g-1]+a[g])/2,b._pixelSteps[g]=e,b._values[g]=d+=c.smallStep,g++;h=b._distance%c.smallStep===0?f-1:f,b._pixelSteps[h]=b._maxSelection,b._values[h]=c.max}},_getValueFromPosition:function(a,b){var c=this,d=c.options,e=k.max(d.smallStep*(c._maxSelection/c._distance),0),f=0,g=e/2,h;c._isHorizontal?f=a-b.startPoint:f=b.startPoint-a;if(c._maxSelection-(parseInt(c._maxSelection%e,10)-3)/2<f)return d.max;for(h=0;h<c._pixelSteps.length;h++)if(k.abs(c._pixelSteps[h]-f)-1<=g)return O(c._values[h])},_getDragableArea:function(){var a=this,b=a._trackDiv.offset().left,c=a._trackDiv.offset().top;return{startPoint:a._isHorizontal?b:c+a._maxSelection,endPoint:a._isHorizontal?b+a._maxSelection:c}},_createHtml:function(){var a=this,b=a.element,c=a.options,d=b.find("input");d.length==2?(d.eq(0).val(c.selectionStart),d.eq(1).val(c.selectionEnd)):b.val(c.value),b.wrap(H(c,b,a._isHorizontal)).hide(),c.showButtons&&b.before(I(c,"increase",a._isHorizontal)).before(I(c,"decrease",a._isHorizontal)),b.before(K(b))}}),Q=function(a){return{idx:0,x:a.pageX,y:a.pageY}};l.pointers&&(Q=function(a){return{idx:0,x:a.originalEvent.clientX,y:a.originalEvent.clientY}}),l.touch&&(Q=function(b,c){var d=b.changedTouches||b.originalEvent.changedTouches;if(c){var e=null;a.each(d,function(a,b){c==b.identifier&&(e={idx:b.identifier,x:b.pageX,y:b.pageY})});return e}return{idx:d[0].identifier,x:d[0].pageX,y:d[0].pageY}});var S=G.extend({init:function(c,d){var e=this,g;c.type="text",d=f({},{value:P(c,"value"),min:P(c,"min"),max:P(c,"max"),smallStep:P(c,"step")},d),c=a(c),d&&d.enabled===b&&(d.enabled=!c.is("[disabled]")),G.fn.init.call(e,c,d),d=e.options,R(d.value)||(d.value=d.min,c.val(d.min)),g=e.wrapper.find(x),new S.Selection(g,e,d),e._drag=new S.Drag(g,"",e,d)},options:{name:"Slider",showButtons:!0,increaseButtonTitle:"Increase",decreaseButtonTitle:"Decrease",tooltip:{format:"{0}"}},enable:function(b){var d=this,e=d.options,f,g;d.disable();if(b!==!1){d.wrapper.removeClass(C).addClass(B),d.wrapper.find("input").removeAttr(E),f=function(b){var c=Q(b),e=d._isHorizontal?c.x:c.y,f=d._getDragableArea(),g=a(b.target);g.hasClass("k-draghandle")?g.addClass(A):(d._update(d._getValueFromPosition(e,f)),d._drag.dragstart(b))},d.wrapper.find(z+", "+y).bind(r,f).end().bind(r,function(){a(document.documentElement).one("selectstart",c.preventDefault)}),d.wrapper.find(x).bind(s,function(b){a(b.target).removeClass(A)}).bind(v,function(a){a.preventDefault()}),g=i(function(a){d._setValueInRange(d._nextValueByIndex(d._valueIndex+a*1))},d);if(e.showButtons){var h=i(function(a,b){if(a.which===1||m&&a.which===0)g(b),this.timeout=setTimeout(i(function(){this.timer=setInterval(function(){g(b)},60)},this),200)},d);d.wrapper.find(".k-button").bind(s,i(function(a){this._clearTimer()},d)).bind(w,function(b){a(b.currentTarget).addClass("k-state-hover")}).bind("mouseout",i(function(b){a(b.currentTarget).removeClass("k-state-hover"),this._clearTimer()},d)).eq(0).bind(q,i(function(a){h(a,1)},d)).click(!1).end().eq(1).bind(q,i(function(a){h(a,-1)},d)).click(!1)}d.wrapper.find(x).bind(u,i(this._keydown,d)),e.enabled=!0}},disable:function(){var b=this;b.wrapper.removeClass(B).addClass(C),a(b.element).attr(E,E),b.wrapper.find(".k-button").unbind(q).bind(q,c.preventDefault).unbind(s).bind(s,c.preventDefault).unbind("mouseleave").bind("mouseleave",c.preventDefault).unbind(w).bind(w,c.preventDefault),b.wrapper.find(z+", "+y).unbind(r),b.wrapper.find(x).unbind(s).unbind(u).unbind(v).bind(u,!1),b.options.enabled=!1},_update:function(a){var b=this,c=b.value()!=a;b.value(a),c&&b.trigger(o,{value:b.options.value})},value:function(a){var b=this,c=b.options;a=O(a);if(isNaN(a))return c.value;a>=c.min&&a<=c.max&&c.value!=a&&(b.element.attr("value",N(a)),c.value=a,b._refresh())},_refresh:function(){this.trigger(t,{value:this.options.value})},_clearTimer:function(a){clearTimeout(this.timeout),clearInterval(this.timer)},_keydown:function(a){var b=this;a.keyCode in b._keyMap&&(b._setValueInRange(b._keyMap[a.keyCode](b.options.value)),a.preventDefault())},_setValueInRange:function(a){var b=this,c=b.options;a=O(a);isNaN(a)?b._update(c.min):(a=k.max(k.min(a,c.max),c.min),b._update(a))},_nextValueByIndex:function(a){var b=this._values.length;return this._values[k.max(0,k.min(a,b-1))]}});S.Selection=function(a,b,c){function d(d){var e=d-c.min,f=b._valueIndex=k.ceil(O(e/c.smallStep)),g=parseInt(b._pixelSteps[f],10),h=b._trackDiv.find(".k-slider-selection"),i=parseInt(a[b._outerSize]()/2,10);h[b._size](g),a.css(b._position,g-i)}d(c.value),b.bind([o,p,t],function(a){d(parseFloat(a.value,10))})},S.Drag=function(a,b,c,d){var f=this;f.owner=c,f.options=d,f.dragHandle=a,f.dragHandleSize=a[c._outerSize](),f.type=b,f.draggable=new e(a,{threshold:0,dragstart:i(f._dragstart,f),drag:i(f.drag,f),dragend:i(f.dragend,f),dragcancel:i(f.dragcancel,f)}),a.click(!1)},S.Drag.prototype={dragstart:function(a){this.draggable.drag._start(a)},_dragstart:function(b){var d=this,e=d.owner,f=d.options,h=f.tooltip,i="",j,l,m;f.enabled?(e.element.unbind(w),d.dragHandle.addClass(A),d.dragableArea=e._getDragableArea(),d.step=k.max(f.smallStep*(e._maxSelection/e._distance),0),d.type?(d.selectionStart=f.selectionStart,d.selectionEnd=f.selectionEnd,e._setZIndex(d.type)):d.oldVal=d.val=f.value,h.enabled&&(h.template&&(j=d.tooltipTemplate=c.template(h.template)),d.tooltipDiv=a("<div class='k-widget k-tooltip'><!-- --></div>").appendTo(document.body),d.type?d.tooltipTemplate?i=j({selectionStart:d.selectionStart,selectionEnd:d.selectionEnd}):(l=g(h.format,d.selectionStart),m=g(h.format,d.selectionEnd),i=l+" - "+m):(d.tooltipInnerDiv="<div class='k-callout k-callout-"+(e._isHorizontal?"s":"e")+"'><!-- --></div>",d.tooltipTemplate?i=j({value:d.val}):i=g(h.format,d.val),i+=d.tooltipInnerDiv),d.tooltipDiv.html(i),d.moveTooltip())):b.preventDefault()},drag:function(a){var b=this,c=b.owner,d=b.options,e=a.x.location,f=a.y.location,h=b.dragableArea.startPoint,i=b.dragableArea.endPoint,j=d.tooltip,k="",l=b.tooltipTemplate,m,n,o;a.preventDefault(),c._isHorizontal?b.val=b.constrainValue(e,h,i,e>=i):b.val=b.constrainValue(f,i,h,f<=i),b.oldVal!=b.val&&(b.oldVal=b.val,b.type?(b.type=="firstHandle"?b.val<b.selectionEnd?b.selectionStart=b.val:b.selectionStart=b.selectionEnd=b.val:b.val>b.selectionStart?b.selectionEnd=b.val:b.selectionStart=b.selectionEnd=b.val,m={values:[b.selectionStart,b.selectionEnd],value:[b.selectionStart,b.selectionEnd]}):m={value:b.val},c.trigger(p,m),j.enabled&&(b.type?b.tooltipTemplate?k=l({selectionStart:b.selectionStart,selectionEnd:b.selectionEnd}):(n=g(j.format,b.selectionStart),o=g(j.format,b.selectionEnd),k=n+" - "+o):(b.tooltipTemplate?k=l({value:b.val}):k=g(j.format,b.val),k+=b.tooltipInnerDiv),b.tooltipDiv.html(k),b.moveTooltip()))},dragcancel:function(a){this.owner._refresh();return this._end()},dragend:function(a){var b=this,c=b.owner;b.type?c._update(b.selectionStart,b.selectionEnd):c._update(b.val);return b._end()},_end:function(){var a=this,b=a.owner;b.options.tooltip.enabled&&b.options.enabled&&a.tooltipDiv.remove(),a.dragHandle.removeClass(A),b.element.bind(w);return!1},moveTooltip:function(){var a=this,b=a.owner,c=0,d=0,e=a.dragHandle.offset(),f=4,g=a.tooltipDiv.find(".k-callout"),h,i,j;a.type?(h=b.wrapper.find(x),i=h.eq(0).offset(),j=h.eq(1).offset(),b._isHorizontal?(c=j.top,d=i.left+(j.left-i.left)/2):(c=i.top+(j.top-i.top)/2,d=j.left)):(c=e.top,d=e.left),b._isHorizontal?(d-=parseInt((a.tooltipDiv.outerWidth()-a.dragHandle[b._outerSize]())/2,10),c-=a.tooltipDiv.outerHeight()+g.height()+f):(c-=parseInt((a.tooltipDiv.outerHeight()-a.dragHandle[b._outerSize]())/2,10),d-=a.tooltipDiv.outerWidth()+g.width()+f),a.tooltipDiv.css({top:c,left:d})},constrainValue:function(a,b,c,d){var e=this,f=0;b<a&&a<c?f=e.owner._getValueFromPosition(a,e.dragableArea):d?f=e.options.max:f=e.options.min;return f}},c.ui.plugin(S);var T=G.extend({init:function(c,d){var e=this,g=a(c).find("input"),h=g.eq(0)[0],i=g.eq(1)[0];h.type="text",i.type="text",d=f({},{selectionStart:P(h,"value"),min:P(h,"min"),max:P(h,"max"),smallStep:P(h,"step")},{selectionEnd:P(i,"value"),min:P(i,"min"),max:P(i,"max"),smallStep:P(i,"step")},d),d&&d.enabled===b&&(d.enabled=!g.is("[disabled]")),G.fn.init.call(e,c,d),d=e.options,R(d.selectionStart)||(d.selectionStart=d.min,g.eq(0).val(d.min)),R(d.selectionEnd)||(d.selectionEnd=d.max,g.eq(1).val(d.max));var j=e.wrapper.find(x);new T.Selection(j,e,d),e._firstHandleDrag=new S.Drag(j.eq(0),"firstHandle",e,d),e._lastHandleDrag=new S.Drag(j.eq(1),"lastHandle",e,d)},options:{name:"RangeSlider",tooltip:{format:"{0}"}},enable:function(b){var d=this,e=d.options,f;d.disable();b!==!1&&(d.wrapper.removeClass(C).addClass(B),d.wrapper.find("input").removeAttr(E),f=function(b){var c=Q(b),f=d._isHorizontal?c.x:c.y,g=d._getDragableArea(),h=d._getValueFromPosition(f,g),i=a(b.target);i.hasClass("k-draghandle")?i.addClass(A):h<e.selectionStart?(d._setValueInRange(h,e.selectionEnd),d._firstHandleDrag.dragstart(b)):h>d.selectionEnd?(d._setValueInRange(e.selectionStart,h),d._lastHandleDrag.dragstart(b)):h-e.selectionStart<=e.selectionEnd-h?(d._setValueInRange(h,e.selectionEnd),d._firstHandleDrag.dragstart(b)):(d._setValueInRange(e.selectionStart,h),d._lastHandleDrag.dragstart(b))},d.wrapper.find(z+", "+y).bind(r,f).end().bind(r,function(){a(document.documentElement).one("selectstart",c.preventDefault)}),d.wrapper.find(x).bind(s,function(b){a(b.target).removeClass(A)}).bind(v,function(a){a.preventDefault()}),d.wrapper.find(x).eq(0).bind(u,i(function(a){this._keydown(a,"firstHandle")},d)).end().eq(1).bind(u,i(function(a){this._keydown(a,"lastHandle")},d)),d.options.enabled=!0)},disable:function(){var a=this;a.wrapper.removeClass(B).addClass(C),a.wrapper.find("input").attr(E,E),a.wrapper.find(z+", "+y).unbind(r),a.wrapper.find(x).unbind(s).unbind(u).unbind(v).bind(u,c.preventDefault),a.options.enabled=!1},_keydown:function(a,b){var c=this,d=c.options.selectionStart,e=c.options.selectionEnd;a.keyCode in c._keyMap&&(b=="firstHandle"?(d=c._keyMap[a.keyCode](d),d>e&&(e=d)):(e=c._keyMap[a.keyCode](e),d>e&&(d=e)),c._setValueInRange(d,e),a.preventDefault())},_update:function(a,b){var c=this,d=c.value(),e=d[0]!=a||d[1]!=b;c.value([a,b]),e&&c.trigger(o,{values:[a,b],value:[a,b]})},value:function(a){return a&&a.length?this._value(a[0],a[1]):this._value()},_value:function(a,b){var c=this,d=c.options,e=d.selectionStart,f=d.selectionEnd;if(isNaN(a)&&isNaN(b))return[e,f];a=O(a),b=O(b),a>=d.min&&a<=d.max&&b>=d.min&&b<=d.max&&a<=b&&(e!=a||f!=b)&&(c.element.find("input").eq(0).attr("value",N(a)).end().eq(1).attr("value",N(b)),d.selectionStart=a,d.selectionEnd=b,c._refresh())},values:function(a,b){return j(a)?this._value(a[0],a[1]):this._value(a,b)},_refresh:function(){var a=this,b=a.options;a.trigger(t,{values:[b.selectionStart,b.selectionEnd],value:[b.selectionStart,b.selectionEnd]}),b.selectionStart==b.max&&b.selectionEnd==b.max&&a._setZIndex("firstHandle")},_setValueInRange:function(a,b){var c=this.options;a=k.max(k.min(a,c.max),c.min),b=k.max(k.min(b,c.max),c.min),a==c.max&&b==c.max&&this._setZIndex("firstHandle"),this._update(k.min(a,b),k.max(a,b))},_setZIndex:function(b){this.wrapper.find(x).each(function(c){a(this).css("z-index",b=="firstHandle"?1-c:c)})}});T.Selection=function(a,b,c){function e(a,c){var d=0,e=0,f=b._trackDiv.find(".k-slider-selection");d=k.abs(a-c),e=a<c?a:c,f[b._size](d),f.css(b._position,e-1)}function d(d){d=d||[];var f=d[0]-c.min,g=d[1]-c.min,h=k.ceil(O(f/c.smallStep)),i=k.ceil(O(g/c.smallStep)),j=b._pixelSteps[h],l=b._pixelSteps[i],m=parseInt(a.eq(0)[b._outerSize]()/2,10);a.eq(0).css(b._position,j-m).end().eq(1).css(b._position,l-m),e(j,l)}d(b.value()),b.bind([o,p,t],function(a){d(a.values)})},c.ui.plugin(T)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){var c=window.kendo,d=a.proxy,e="data-dir",f="asc",g="single",h="data-field",i="desc",j=".k-link",k=c.ui.Widget,l=k.extend({init:function(a,b){var c=this,e;k.fn.init.call(c,a,b),c.dataSource=c.options.dataSource.bind("change",d(c.refresh,c)),e=c.element.find(j),e[0]||(e=c.element.wrapInner('<a class="k-link" href="#"/>').find(j)),c.link=e,c.element.click(d(c._click,c))},options:{name:"Sortable",mode:g,allowUnsort:!0},refresh:function(){var b=this,c=b.dataSource.sort()||[],d,g,j,k,l=b.element,m=l.attr(h);l.removeAttr(e);for(d=0,g=c.length;d<g;d++)j=c[d],m==j.field&&l.attr(e,j.dir);k=l.attr(e),l.find(".k-i-arrow-n,.k-i-arrow-s").remove(),k===f?a('<span class="k-icon k-i-arrow-n" />').appendTo(b.link):k===i&&a('<span class="k-icon k-i-arrow-s" />').appendTo(b.link)},_click:function(a){var c=this,d=c.element,j=d.attr(h),k=d.attr(e),l=c.options,m=c.dataSource.sort()||[],n,o;k===f?k=i:k===i&&l.allowUnsort?k=b:k=f;if(l.mode===g)m=[{field:j,dir:k}];else if(l.mode==="multiple"){for(n=0,o=m.length;n<o;n++)if(m[n].field===j){m.splice(n,1);break}m.push({field:j,dir:k})}a.preventDefault(),c.dataSource.sort(m)}});c.ui.plugin(l)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function D(a){var b=this,d=a.orientation;b.owner=a,b._element=a.element,b.orientation=d,e(b,d===o?C:B),b._resizable=new c.ui.Resizable(a.element,{orientation:d,handle:a.element.children(".k-splitbar-draggable-"+d),hint:f(b._createHint,b),start:f(b._start,b),max:f(b._max,b),min:f(b._min,b),invalidClass:"k-restricted-size-"+d,resizeend:f(b._stop,b)})}function z(b,c){return function(d,e){var f=a(d).data(s);if(arguments.length==1)return f[b];f[b]=e;if(c){var g=this.element.data("kendoSplitter");g.trigger(m)}}}function y(a){return!w(a)&&!x(a)}function x(a){return h.test(a)}function w(a){return i.test(a)}var c=window.kendo,d=c.ui,e=a.extend,f=a.proxy,g=d.Widget,h=/^\d+(\.\d+)?px$/i,i=/^\d+(\.\d+)?%$/i,j="expand",k="collapse",l="contentLoad",m="resize",n="layoutChange",o="horizontal",p="vertical",q="mouseenter",r="click",s="pane",t="mouseleave",u="k-"+s,v="."+u,A=g.extend({init:function(b,c){var d=this,e=function(){d.trigger(m)};g.fn.init.call(d,b,c),d.wrapper=d.element,d.orientation=d.options.orientation.toLowerCase()!=p?o:p,d.bind(m,f(d._resize,d)),d._initPanes(),d._attachEvents(),a(window).resize(e),d.resizing=new D(d),d.element.triggerHandler("init.kendoSplitter")},events:[j,k,l,m,n],_attachEvents:function(){var b=this,c=b.options.orientation,d=".k-splitbar-draggable-"+c,e=".k-splitbar .k-icon:not(.k-resize-handle)",g=function(){b.trigger(m)};b.element.delegate(d,q,function(){a(this).addClass("k-splitbar-"+b.orientation+"-hover")}).delegate(d,t,function(){a(this).removeClass("k-splitbar-"+b.orientation+"-hover")}).delegate(d,"mousedown",function(){b._contentFrames(this).after("<div class='k-overlay' />")}).delegate(d,"mouseup",function(){b._contentFrames(this).next(".k-overlay").remove()}).delegate(e,q,function(){a(this).addClass("k-state-hover")}).delegate(e,t,function(){a(this).removeClass("k-state-hover")}).delegate(".k-splitbar .k-collapse-next, .k-splitbar .k-collapse-prev",r,b._arrowClick(k)).delegate(".k-splitbar .k-expand-next, .k-splitbar .k-expand-prev",r,b._arrowClick(j)).delegate(".k-splitbar","dblclick",f(b._dbclick,b)).parent().closest(".k-splitter").each(function(){var b=a(this),c=b.data("kendoSplitter");c?c.bind(m,g):b.one("init.kendoSplitter",function(){a(this).data("kendoSplitter").bind(m,g),g()})})},options:{name:"Splitter",orientation:o},_initPanes:function(){var b=this,c=b.options.panes||[];b.element.addClass("k-widget").addClass("k-splitter").children().addClass(u).each(function(d,e){var f=c&&c[d];e=a(e),e.data(s,f?f:{}).toggleClass("k-scrollable",f?f.scrollable!==!1:!0),b.ajaxRequest(e)}).end(),b.trigger(m)},ajaxRequest:function(b,d,e){b=a(b);var f=this,g=b.data(s);d=d||g.contentUrl,d&&(b.append("<span class='k-icon k-loading k-pane-loading' />"),c.isLocalUrl(d)?a.ajax({url:d,data:e||{},type:"GET",dataType:"html",success:function(a){b.html(a),f.trigger(l,{pane:b[0]})}}):b.removeClass("k-scrollable").html("<iframe src='"+d+"' frameborder='0' class='k-content-frame'>"+"This page requires frames in order to show content"+"</iframe>"))},_triggerAction:function(a,b){this.trigger(a,{pane:b[0]})||this[a](b[0])},_dbclick:function(b){var c=this,d=a(b.target),e;if(d.closest(".k-splitter")[0]==c.element[0]){e=d.children(".k-icon:not(.k-resize-handle)");if(e.length!==1)return;e.is(".k-collapse-prev")?c._triggerAction(k,d.prev()):e.is(".k-collapse-next")?c._triggerAction(k,d.next()):e.is(".k-expand-prev")?c._triggerAction(j,d.prev()):e.is(".k-expand-next")&&c._triggerAction(j,d.next())}},_arrowClick:function(b){var c=this;return function(d){var e=a(d.target),f;e.closest(".k-splitter")[0]==c.element[0]&&(e.is(".k-"+b+"-prev")?f=e.parent().prev():f=e.parent().next(),c._triggerAction(b,f))}},_updateSplitBar:function(a,b,c){var d=function(a,b){return b?"<div class='k-icon "+a+"' />":""},e=this.orientation,f=b.resizable!==!1&&c.resizable!==!1,g=b.collapsible,h=b.collapsed,i=c.collapsible,j=c.collapsed;a.addClass("k-splitbar k-state-default k-splitbar-"+e).removeClass("k-splitbar-"+e+"-hover").toggleClass("k-splitbar-draggable-"+e,f&&!h&&!j).toggleClass("k-splitbar-static-"+e,!f&&!g&&!i).html(d("k-collapse-prev",g&&!h&&!j)+d("k-expand-prev",g&&h&&!j)+d("k-resize-handle",f)+d("k-collapse-next",i&&!j&&!h)+d("k-expand-next",i&&j&&!h))},_updateSplitBars:function(){var b=this;this.element.children(".k-splitbar").each(function(){var c=a(this),d=c.prev(v).data(s),e=c.next(v).data(s);!e||b._updateSplitBar(c,d,e)})},_contentFrames:function(b){return a(b).siblings(v).find("> .k-content-frame")},_resize:function(){var b=this,c=b.element,d=c.children(":not(.k-splitbar)"),e=b.orientation==o,f=c.children(".k-splitbar"),g=f.length,h=e?"width":"height",i=c[h]();g===0?(g=d.length-1,d.slice(0,g).after("<div class='k-splitbar' />"),b._updateSplitBars(),f=c.children(".k-splitbar")):b._updateSplitBars(),f.each(function(){i-=this[e?"offsetWidth":"offsetHeight"]});var j=0,k=0,l=a();d.css({position:"absolute",top:0})[h](function(){var b=a(this).data(s)||{},c;if(b.collapsed)c=0,a(this).css("overflow","hidden");else{if(y(b.size)){l=l.add(this);return}c=parseInt(b.size,10),w(b.size)&&(c=Math.floor(c*i/100))}k++,j+=c;return c}),i-=j;var m=l.length,p=Math.floor(i/m);l.slice(0,m-1).css(h,p).end().eq(m-1).css(h,i-(m-1)*p);var q=0,r=e?"height":"width",t=e?"left":"top",u=e?"offsetWidth":"offsetHeight";if(m===0){var v=d.filter(function(){return!(a(this).data(s)||{}).collapsed}).last();v[h](i+v[0][u])}c.children().css(r,c[r]()).each(function(a,b){b.style[t]=Math.floor(q)+"px",q+=b[u]}),b.trigger(n)},toggle:function(c,d){var e;c=a(c),e=c.data(s),arguments.length==1&&(d=e.collapsed===b?!1:e.collapsed),e.collapsed=!d,e.collapsed?c.css("overflow","hidden"):c.css("overflow",""),this.trigger(m)},collapse:function(a){this.toggle(a,!1)},expand:function(a){this.toggle(a,!0)},size:z("size",!0),min:z("min"),max:z("max")});d.plugin(A);var B={sizingProperty:"height",sizingDomProperty:"offsetHeight",alternateSizingProperty:"width",positioningProperty:"top",mousePositioningProperty:"pageY"},C={sizingProperty:"width",sizingDomProperty:"offsetWidth",alternateSizingProperty:"height",positioningProperty:"left",mousePositioningProperty:"pageX"};D.prototype={_createHint:function(b){var c=this;return a("<div class='k-ghost-splitbar k-ghost-splitbar-"+c.orientation+" k-state-default' />").css(c.alternateSizingProperty,b[c.alternateSizingProperty]())},_start:function(b){var c=this,d=a(b.currentTarget),e=d.prev(),f=d.next(),g=e.data(s),h=f.data(s),i=parseInt(e[0].style[c.positioningProperty],10),j=parseInt(f[0].style[c.positioningProperty],10)+f[0][c.sizingDomProperty]-d[0][c.sizingDomProperty],k=c._element.css(c.sizingProperty),l=function(a){var b=parseInt(a,10);return(x(a)?b:k*b/100)||0},m=l(g.min),n=l(g.max)||j-i,o=l(h.min),p=l(h.max)||j-i;c.previousPane=e,c.nextPane=f,c._maxPosition=Math.min(j-o,i+n),c._minPosition=Math.max(i+m,j-p)},_max:function(a){return this._maxPosition},_min:function(a){return this._minPosition},_stop:function(b){var d=this,e=a(b.currentTarget),f=d.owner;f._contentFrames(e).next(".k-overlay").remove();if(b.keyCode!==c.keys.ESC){var g=b.position,h=e.prev(),i=e.next(),j=h.data(s),k=i.data(s),l=g-parseInt(h[0].style[d.positioningProperty],10),n=parseInt(i[0].style[d.positioningProperty],10)+i[0][d.sizingDomProperty]-g-e[0][d.sizingDomProperty],o=d._element.children(v).filter(function(){return y(a(this).data(s).size)}).length;if(!y(j.size)||o>1)y(j.size)&&o--,j.size=l+"px";if(!y(k.size)||o>1)k.size=n+"px";f.trigger(m)}return!1}}})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function M(a){var b=a.children(".k-item");b.filter(".k-first:not(:first-child)").removeClass(t),b.filter(".k-last:not(:last-child)").removeClass(o),b.filter(":first-child").addClass(t),b.filter(":last-child").addClass(o)}function L(b){b.children(l).addClass(s),b.children("a").addClass(n).children(l).addClass(s),b.filter(":not([disabled]):not([class*=k-state-disabled])").addClass(F),b.filter("li[disabled]").addClass(E).removeAttr("disabled"),b.filter(":not([class*=k-state])").children("a").filter(":focus").parent().addClass(G+" "+I),b.each(function(){var b=a(this);b.children("."+n).length||b.contents().filter(function(){return!this.nodeName.match(k)&&(this.nodeType!=3||!!g(this.nodeValue))}).wrapAll("<a class='"+n+"'/>")})}var c=window.kendo,d=c.ui,e=a.map,f=a.each,g=a.trim,h=a.extend,i=c.template,j=d.Widget,k=/^(a|div)$/i,l="img",m="href",n="k-link",o="k-last",p="click",q="error",r=":empty",s="k-image",t="k-first",u="select",v="activate",w="k-content",x="contentUrl",y="mouseenter",z="mouseleave",A="contentLoad",B=".k-tabstrip-items > .k-item:not(.k-state-disabled)",C=".k-tabstrip-items > .k-item:not(.k-state-disabled):not(.k-state-active)",D=".k-tabstrip-items > .k-state-disabled .k-link",E="k-state-disabled",F="k-state-default",G="k-state-active",H="k-state-hover",I="k-tab-on-top",J={content:i("<div class='k-content'#= contentAttributes(data) #>#= content(item) #</div>"),itemWrapper:i("<#= tag(item) # class='k-link'#= contentUrl(item) ##= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) #</#= tag(item) #>"),item:i("<li class='#= wrapperCssClass(group, item) #'>#= itemWrapper(data) #</li>"),image:i("<img class='k-image' alt='' src='#= imageUrl #' />"),sprite:i("<span class='k-sprite #= spriteCssClass #'></span>"),empty:i("")},K={wrapperCssClass:function(a,b){var c="k-item",d=b.index;b.enabled===!1?c+=" k-state-disabled":c+=" k-state-default",d===0&&(c+=" k-first"),d==a.length-1&&(c+=" k-last");return c},textAttributes:function(a){return a.url?" href='"+a.url+"'":""},text:function(a){return a.encoded===!1?a.text:c.htmlEncode(a.text)},tag:function(a){return a.url?"a":"span"},contentAttributes:function(a){return a.active!==!0?" style='display:none'":""},content:function(a){return a.content?a.content:a.contentUrl?"":" "},contentUrl:function(a){return a.contentUrl?c.attr("content-url")+'="'+a.contentUrl+'"':""}},N=j.extend({init:function(b,d){var e=this;e._animations(d),j.fn.init.call(e,b,d),e.element.is("ul")?e.wrapper=e.element.wrapAll("<div />").parent():e.wrapper=e.element,d=e.options,e.wrapper.delegate(B,p,a.proxy(e._click,e)).delegate(C,y+" "+z,e._toggleHover).delegate(D,p,!1),e._updateClasses(),e._dataSource(),d.dataSource&&e.dataSource.fetch(),e.options.contentUrls&&e.wrapper.find(".k-tabstrip-items > .k-item").each(function(b,c){a(c).find(">."+n).data(x,e.options.contentUrls[b])});var f=e.wrapper.find("li."+G),g=a(e.contentElement(f.parent().children().index(f)));g.length>0&&g[0].childNodes.length===0&&e.activateTab(f.eq(0)),c.notify(e)},_dataSource:function(){var b=this;b.dataSource&&b._refreshHandler?b.dataSource.unbind("change",b._refreshHandler):b._refreshHandler=a.proxy(b.refresh,b),b.dataSource=c.data.DataSource.create(b.options.dataSource).bind("change",b._refreshHandler)},setDataSource:function(a){this.options.dataSource=a,this._dataSource(),a.fetch()},_animations:function(a){a&&"animation"in a&&!a.animation&&(a.animation={open:{effects:{},show:!0},close:{effects:{}}})},refresh:function(a){var b=this,d=b.options,e=c.getter(d.dataTextField),f=c.getter(d.dataContentField),g=c.getter(d.dataContentUrlField),h=c.getter(d.dataImageUrlField),i=c.getter(d.dataUrlField),j=c.getter(d.dataSpriteCssClass),k,l=[],m,n,o=b.dataSource.view(),p;a=a||{},n=a.action,n&&(o=a.items);for(k=0,p=o.length;k<p;k++)m={text:e(o[k])},d.dataContentField&&(m.content=f(o[k])),d.dataContentUrlField&&(m.contentUrl=g(o[k])),d.dataUrlField&&(m.url=i(o[k])),d.dataImageUrlField&&(m.imageUrl=h(o[k])),d.dataSpriteCssClass&&(m.spriteCssClass=j(o[k])),l[k]=m;if(a.action=="add")a.index<b.tabGroup.children().length?b.insertBefore(l,b.tabGroup.children().eq(a.index)):b.append(l);else if(a.action=="remove")for(k=0;k<o.length;k++)b.remove(a.index);else a.action=="itemchange"?(k=b.dataSource.view().indexOf(o[0]),a.field===d.dataTextField&&b.tabGroup.children().eq(k).find(".k-link").text(o[0].get(a.field))):(b.trigger("dataBinding"),b.append(l),b.trigger("dataBound"))},value:function(c){var d=this;if(c!==b)c!=d.value()&&d.tabGroup.children().each(function(){a.trim(a(this).text())==c&&d.select(this)});else return d.select().text()},items:function(){return this.tabGroup[0].children},setOptions:function(a){var b=this.options.animation;this._animations(a),a.animation=h(!0,b,a.animation),j.fn.setOptions.call(this,a)},events:[u,v,q,A,"change","dataBinding","dataBound"],options:{name:"TabStrip",dataTextField:"",dataContentField:"",dataImageUrlField:"",dataUrlField:"",dataSpriteCssClass:"",dataContentUrlField:"",animation:{open:{effects:"expand:vertical fadeIn",duration:200,show:!0},close:{duration:200}},collapsible:!1},select:function(b){var c=this;if(arguments.length===0)return c.wrapper.find("li."+G);isNaN(b)||(b=c.tabGroup.children().get(b)),b=c.element.find(b),a(b).each(function(b,d){d=a(d),!d.hasClass(G)&&!c.trigger(u,{item:d[0],contentElement:c.contentElement(d.index())})&&c.activateTab(d)});return c},enable:function(a,b){this._toggleDisabled(a,b!==!1);return this},disable:function(a){this._toggleDisabled(a,!1);return this},reload:function(b){b=this.tabGroup.find(b);var c=this;b.each(function(){var b=a(this),d=b.find("."+n).data(x);d&&c.ajaxRequest(b,a(c.contentElement(b.index())),null,d)});return c},append:function(a){var b=this,c=b._create(a);f(c.tabs,function(a){b.tabGroup.append(this),b.wrapper.append(c.contents[a])}),M(b.tabGroup),b._updateContentElements();return b},insertBefore:function(b,c){var d=this,e=d._create(b),g=a(d.contentElement(c.index()));f(e.tabs,function(a){c.before(this),g.before(e.contents[a])}),M(d.tabGroup),d._updateContentElements();return d},insertAfter:function(b,c){var d=this,e=d._create(b),g=a(d.contentElement(c.index()));f(e.tabs,function(a){c.after(this),g.after(e.contents[a])}),M(d.tabGroup),d._updateContentElements();return d},remove:function(b){var c=this,d=typeof b,e;d==="string"?b=c.tabGroup.find(b):d==="number"&&(b=c.tabGroup.children().eq(b)),e=a(c.contentElement(b.index())),e.remove(),b.remove(),c._updateContentElements();return c},_create:function(b){var c=a.isPlainObject(b),d=this,f,g;c||a.isArray(b)?(b=a.isArray(b)?b:[b],f=e(b,function(b,c){return a(N.renderItem({group:d.tabGroup,item:h(b,{index:c})}))}),g=e(b,function(b,c){if(b.content||b.contentUrl)return a(N.renderContent({item:h(b,{index:c})}))})):(f=a(b),g=a("<div class='"+w+"'/>"),L(f));return{tabs:f,contents:g}},_toggleDisabled:function(b,c){b=this.tabGroup.find(b),b.each(function(){a(this).toggleClass(F,c).toggleClass(E,!c)})},_updateClasses:function(){var c=this,d,e,f;c.wrapper.addClass("k-widget k-header k-tabstrip"),c.tabGroup=c.wrapper.children("ul").addClass("k-tabstrip-items k-reset"),c.tabGroup[0]||(c.tabGroup=a("<ul class='k-tabstrip-items k-reset'/>").appendTo(c.wrapper)),d=c.tabGroup.find("li").addClass("k-item"),d.length&&(e=d.filter("."+G).index(),f=e>=0?e:b,c.tabGroup.contents().filter(function(){return this.nodeType==3&&!g(this.nodeValue)}).remove()),d.eq(e).addClass(I),c.contentElements=c.wrapper.children("div"),c.contentElements.addClass(w).eq(f).addClass(G).css({display:"block"}),d.length&&(L(d),M(c.tabGroup),c._updateContentElements())},_updateContentElements:function(){var b=this,d=b.options.contentUrls||[],e=b.element.attr("id"),f=b.wrapper.children("div");b.tabGroup.find(".k-item").each(function(c){var g=f.eq(c),h=e+"-"+(c+1);!g.length&&d[c]?a("<div id='"+h+"' class='"+w+"'/>").appendTo(b.wrapper):g.attr("id",h)}),b.contentElements=b.contentAnimators=b.wrapper.children("div"),c.support.touch&&c.mobile.ui.Scroller&&(c.touchScroller(b.contentElements),b.contentElements=b.contentElements.children(".km-scroll-container"))},_toggleHover:function(b){a(b.currentTarget).toggleClass(H,b.type==y)},_click:function(b){var c=this,d=a(b.currentTarget),e=d.find("."+n),f=e.attr(m),g=c.options.collapsible,h=a(c.contentElement(d.index()));if(d.closest(".k-widget")[0]==c.wrapper[0]){if(d.is("."+E+(g?"":",."+G))){b.preventDefault();return}if(c.tabGroup.children("[data-animating], [data-in-request]").length)return;if(c.trigger(u,{item:d[0],contentElement:h[0]}))b.preventDefault();else{var i=e.data(x)||f&&(f.charAt(f.length-1)=="#"||f.indexOf("#"+c.element[0].id+"-")!=-1);if(!f||i)b.preventDefault();else return;if(g&&d.is("."+G)){c.deactivateTab(d),b.preventDefault();return}c.activateTab(d)&&b.preventDefault()}}},deactivateTab:function(a){var b=this,d=b.options.animation,e=d.open,f=h({},d.close),g=f&&"effects"in f;a=b.tabGroup.find(a),f=h(g?f:h({reverse:!0},e),{show:!1,hide:!0}),c.size(e.effects)?(a.kendoAddClass(F,{duration:e.duration}),a.kendoRemoveClass(G,{duration:e.duration})):(a.addClass(F),a.removeClass(G)),b.contentAnimators.filter("."+G).kendoStop(!0,!0).kendoAnimate(f).removeClass(G)},activateTab:function(b){b=this.tabGroup.find(b);var d=this,e=d.options.animation,f=e.open,g=h({},e.close),i=g&&"effects"in g,j=b.parent().children(),k=j.filter("."+G),l=j.index(b);g=h(i?g:h({reverse:!0},f),{show:!1,hide:!0}),c.size(f.effects)?(k.kendoRemoveClass(G,{duration:g.duration}),b.kendoRemoveClass(H,{duration:g.duration})):(k.removeClass(G),b.removeClass(H));var m=d.contentAnimators;if(m.length===0){k.removeClass(I),b.addClass(I).css("z-index"),b.addClass(G),d.trigger("change");return!1}var o=m.filter("."+G),p=a(d.contentElement(l));if(p.length===0){o.removeClass(G).kendoStop(!0,!0).kendoAnimate(g);return!1}b.attr("data-animating",!0);var q=(b.children("."+n).data(x)||!1)&&p.is(r),s=function(){k.removeClass(I),b.addClass(I).css("z-index"),c.size(f.effects)?(k.kendoAddClass(F,{duration:f.duration}),b.kendoAddClass(G,{duration:f.duration})):(k.addClass(F),b.addClass(G)),p.closest(".k-content").addClass(G).kendoStop(!0,!0).kendoAnimate(h({init:function(){d.trigger(v,{item:b[0],contentElement:p[0]})}},f,{complete:function(){b.removeAttr("data-animating")}}))},t=function(){q?d.ajaxRequest(b,p,function(){s(),d.trigger("change")}):(s(),d.trigger("change"))};o.removeClass(G),o.length?o.kendoStop(!0,!0).kendoAnimate(h({complete:t},g)):t();return!0},contentElement:function(a){if(!isNaN(a-0)){var b=this.contentElements,c=new RegExp("-"+(a+1)+"$");for(var d=0,e=b.length;d<e;d++)if(c.test(b.closest(".k-content")[d].id))return b[d]}},ajaxRequest:function(b,c,d,e){b=this.tabGroup.find(b);if(!b.find(".k-loading").length){var f=this,g=b.find("."+n),h={},i=null,j=setTimeout(function(){i=a("<span class='k-icon k-loading'/>").prependTo(g)},100);b.attr("data-in-request",!0),a.ajax({type:"GET",cache:!1,url:e||g.data(x)||g.attr(m),dataType:"html",data:h,error:function(a,c){b.removeAttr("data-animating"),f.trigger("error",{xhr:a,status:c})&&this.complete()},complete:function(){b.removeAttr("data-in-request"),clearTimeout(j),i!==null&&i.remove()},success:function(a,e){c.html(a),d&&d.call(f,c),f.trigger(A,{item:b[0],contentElement:c[0]})}})}}});h(N,{renderItem:function(a){a=h({tabStrip:{},group:{}},a);var b=J.empty,c=a.item;return J.item(h(a,{image:c.imageUrl?J.image:b,sprite:c.spriteCssClass?J.sprite:b,itemWrapper:J.itemWrapper},K))},renderContent:function(a){return J.content(h(a,K))}}),c.ui.plugin(N)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function K(a){a.preventDefault()}function J(a){var b=a.parseFormats;a.format=f(a.format||c.getCulture(a.culture).calendars.standard.patterns.t),b=y(b)?b:[b],b.splice(0,0,a.format),a.parseFormats=b}function H(a,b,c){var d=G(b),e=G(c),f;if(!a||d==e)return!0;f=G(a),d>f&&(f+=v),e<d&&(e+=v);return f>=d&&f<=e}function G(a){return a.getHours()*60*u+a.getMinutes()*u+a.getSeconds()*1e3+a.getMilliseconds()}function F(){var a=new B,b=new B(a.getFullYear(),a.getMonth(),a.getDate(),0,0,0),c=new B(a.getFullYear(),a.getMonth(),a.getDate(),12,0,0);return-1*(b.getTimezoneOffset()-c.getTimezoneOffset())}function E(a,b,c){var d=a.getTimezoneOffset(),e;a.setTime(a.getTime()+b),c||(e=a.getTimezoneOffset()-d,a.setTime(a.getTime()+e*u))}var c=window.kendo,d=c.support.touch,e=c.keys,f=c._extractFormat,g=c.ui,h=g.Widget,i="open",j="close",k="change",l=d?"touchend":"click",m="k-state-default",n="disabled",o="li",p="<span/>",q="k-state-focused",r="k-state-hover",s="mouseenter mouseleave",t="mousedown",u=6e4,v=864e5,w="k-state-selected",x="k-state-disabled",y=a.isArray,z=a.extend,A=a.proxy,B=Date,C=new B;C=new B(C.getFullYear(),C.getMonth(),C.getDate(),0,0,0);var D=function(b){var d=this;d.options=b,d.ul=a('<ul unselectable="on" class="k-list k-reset"/>').css({overflow:c.support.touch?"":"auto"}).delegate(o,l,A(d._click,d)).delegate(o,"mouseenter",function(){a(this).addClass(r)}).delegate(o,"mouseleave",function(){a(this).removeClass(r)}),d.list=a("<div class='k-list-container'/>").append(d.ul).mousedown(K),d._popup(),d.template=c.template('<li class="k-item" unselectable="on">#=data#</li>',{useWithBlock:!1})};D.prototype={current:function(c){var d=this;if(c!==b)d._current&&d._current.removeClass(w),c&&(c=a(c),c.addClass(w),d.scroll(c[0])),d._current=c;else return d._current},close:function(){this.popup.close()},open:function(){var a=this;a.ul[0].firstChild||a.bind(),a.popup.open(),a._current&&a.scroll(a._current[0])},dataBind:function(a){var b=this,d=b.options,e=d.format,f=c.toString,g=b.template,h=a.length,i=0,j,k="";for(;i<h;i++)j=a[i],H(j,d.min,d.max)&&(k+=g(f(j,e,d.culture)));b._html(k,h)},refresh:function(){var a=this,b=a.options,d=b.format,e=F(),f=e<0,g=b.min,h=b.max,i=G(g),j=G(h),k=b.interval*u,l=c.toString,m=a.template,n=new B(g),o=0,p,q="";f?p=(v+e*u)/k:p=v/k,i!=j&&(i>j&&(j+=v),p=(j-i)/k+1);for(;o<p;o++)o&&E(n,k,f),j&&G(n)>j&&(n=new B(h)),q+=m(l(n,d,b.culture));a._html(q,p)},bind:function(){var a=this,b=a.options.dates;b&&b[0]?a.dataBind(b):a.refresh()},_html:function(a,b){var c=this;c.ul[0].innerHTML=a,c._height(b),c.current(null),c.select(c._value)},scroll:function(a){if(!!a){var b=this.ul[0],c=a.offsetTop,d=a.offsetHeight,e=b.scrollTop,f=b.clientHeight,g=c+d;b.scrollTop=e>c?c:g>e+f?g-f:e}},select:function(b){var d=this,e=d.options,f=d._current;b instanceof Date&&(b=c.toString(b,e.format,e.culture)),typeof b=="string"&&(!f||f.text()!==b?(b=a.grep(d.ul[0].childNodes,function(a){return(a.textContent||a.innerText)==b}),b=b[0]?b:null):b=f),d.current(b)},toggle:function(){var a=this;a.popup.visible()?a.close():a.open()},value:function(a){var b=this;b._value=a,b.ul[0].firstChild&&b.select(a)},_click:function(b){var c=this,d=a(b.currentTarget);b.isDefaultPrevented()||(c.select(d),c.options.change(d.text(),!0),c.close())},_height:function(a){if(a){var b=this,c=b.list,d=c.parent(".k-animation-container"),e=b.options.height;c.add(d).show().height(b.ul[0].scrollHeight>e?e:"auto").hide()}},_parse:function(a){var b=this,d=b.options,e=b._value||C;if(a instanceof B)return a;a=c.parseDate(a,d.parseFormats,d.culture),a&&(a=new B(e.getFullYear(),e.getMonth(),e.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return a},_popup:function(){var a=this,b=a.list,d=a.options,e=d.anchor,f;a.popup=new g.Popup(b,z(d.popup,{anchor:e,open:d.open,close:d.close,animation:d.animation})),f=e.outerWidth()-(b.outerWidth()-b.width()),b.css({fontFamily:e.css("font-family"),width:f}),c.touchScroller(a.popup.element)},move:function(a){var b=this,c=a.keyCode,d=b.ul[0],f=b._current,g=c===e.DOWN;if(c===e.UP||g){if(a.altKey){b.toggle(g);return}g?f=f?f[0].nextSibling:d.firstChild:f=f?f[0].previousSibling:d.lastChild,f&&b.select(f),b.options.change(b._current.text()),a.preventDefault()}else if(c===e.ENTER||c===e.TAB||c===e.ESC)a.preventDefault(),f&&b.options.change(f.text(),!0),b.close()}},D.getMilliseconds=G,c.TimeView=D;var I=h.extend({init:function(a,b){var e=this;h.fn.init.call(e,a,b),a=e.element,b=e.options,J(b),e._wrapper(),e.timeView=new D(z({},b,{anchor:e.wrapper,format:b.format,change:function(b,c){c?e._change(b):a.val(b)},open:function(a){e.trigger(i)&&a.preventDefault()},close:function(a){e.trigger(j)&&a.preventDefault()}})),e._icon(),d||(a[0].type="text"),a.addClass("k-input").bind({keydown:A(e._keydown,e),focus:function(a){e._inputWrapper.addClass(q)},blur:A(e._blur,e)}).closest("form").bind("reset",function(){e.value(a[0].defaultValue)}),e.enable(!a.is("[disabled]")),e.value(b.value||a.val()),c.notify(e)},options:{name:"TimePicker",min:C,max:C,format:"",dates:[],parseFormats:[],value:null,interval:30,height:200,animation:{}},events:[i,j,k],setOptions:function(a){var b=this;h.fn.setOptions.call(b,a),J(b.options),z(b.timeView.options,b.options),b.timeView.ul[0].innerHTML=""},dataBind:function(a){y(a)&&this.timeView.dataBind(a)},enable:function(a){var b=this,c=b.element,d=b._arrow.unbind(l+" "+t),e=b._inputWrapper.unbind(s);a===!1?(e.removeClass(m).addClass(x),c.attr(n,n)):(e.removeClass(x).addClass(m).bind(s,b._toggleHover),c.removeAttr(n),d.bind(l,A(b._click,b)).bind(t,K))},close:function(){this.timeView.close()},open:function(){this.timeView.open()},min:function(a){return this._option("min",a)},max:function(a){return this._option("max",a)},value:function(a){var c=this;if(a===b)return c._value;c._old=c._update(a)},_blur:function(){var a=this;a.close(),a._change(a.element.val()),a._inputWrapper.removeClass(q)},_click:function(){var a=this,b=a.element;a.timeView.toggle(),!d&&b[0]!==document.activeElement&&b.focus()},_change:function(a){var b=this;a=b._update(a),+b._old!=+a&&(b._old=a,b.trigger(k),b.element.trigger(k))},_icon:function(){var b=this,c=b.element,d;d=c.next("span.k-select"),d[0]||(d=a('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-clock">select</span></span>').insertAfter(c)),b._arrow=d},_keydown:function(a){var b=this,c=a.keyCode,d=b.timeView;d.popup.visible()||a.altKey?d.move(a):c===e.ENTER&&b._change(b.element.val())},_option:function(a,c){var d=this,e=d.options;if(c===b)return e[a];c=d.timeView._parse(c);!c||(c=new B(c),e[a]=c,d.timeView.options[a]=c,d.timeView.bind())},_toggleHover:function(b){d||a(b.currentTarget).toggleClass(r,b.type==="mouseenter")},_update:function(a){var b=this,d=b.options,e=b.timeView._parse(a);H(e,d.min,d.max)||(e=null),b._value=e,b.element.val(e?c.toString(e,d.format,d.culture):a),b.timeView.value(e);return e},_wrapper:function(){var b=this,c=b.element,d;d=c.parents(".k-timepicker"),d[0]||(d=c.wrap(p).parent().addClass("k-picker-wrap k-state-default"),d=d.wrap(p).parent()),d[0].style.cssText=c[0].style.cssText,c.css({width:"100%",height:c[0].style.height}),b.wrapper=d.addClass("k-widget k-timepicker k-header"),b._inputWrapper=a(d[0].firstChild)}});g.plugin(I)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function K(a){var b=this;b.treeview=a,b._draggable=new d.Draggable(a.element,{filter:"div:not(.k-state-disabled) .k-in",hint:function(a){return z.dragClue({text:a.text()})},cursorOffset:{left:10,top:c.support.touch?-40/c.support.zoomLevel():10},dragstart:k(b.dragstart,b),dragcancel:k(b.dragcancel,b),drag:k(b.drag,b),dragend:k(b.dragend,b)})}function J(a,b,c){var d=a.children("div"),e=a.children("ul");a.hasClass("k-treeview")||(c=f({expanded:e.css("display")!="none",index:a.index(),enabled:!d.children(".k-in").hasClass("k-state-disabled")},c),b=f({firstLevel:a.parent().parent().hasClass(w),length:a.parent().children().length},b),a.removeClass("k-first k-last").addClass(A.wrapperCssClass(b,c)),d.removeClass("k-top k-mid k-bot").addClass(A.cssClass(b,c)),d.children(".k-in").removeClass("k-in k-state-default k-state-disabled").addClass(A.textClass(c)),e.length&&(d.children(".k-icon").removeClass("k-plus k-minus k-plus-disabled k-minus-disabled").addClass(A.toggleButtonClass(c)),e.addClass("k-group")))}function I(b){var c=b.children("div"),d=b.children("ul"),e=c.children(".k-icon"),f=c.children(".k-in"),g,h;if(!b.hasClass("k-treeview")){c.length||(c=a("<div />").prependTo(b));if(!e.length&&d.length)e=a("<span class='k-icon' />").prependTo(c);else if(!d.length||!d.children().length)e.remove(),d.remove();if(!f.length){f=a("<span class='k-in' />").appendTo(c)[0],g=c[0].nextSibling,f=c.find(".k-in")[0];while(g&&g.nodeName.toLowerCase()!="ul")h=g,g=g.nextSibling,h.nodeType==3&&(h.nodeValue=a.trim(h.nodeValue)),f.appendChild(h)}}}function H(b){return a(b).closest("[data-role=treeview]").data("kendoTreeView")}function G(a){return function(b){var c=b.children(".k-animation-container");c.length||(c=b);return c.children(a)}}var c=window.kendo,d=c.ui,e=c.data,f=a.extend,g=c.template,h=a.isArray,i=d.Widget,j=e.HierarchicalDataSource,k=a.proxy,l="select",m="expand",n="change",o="collapse",p="dragstart",q="drag",r="drop",s="dragend",t="click",u="visibility",v="k-state-hover",w="k-treeview",x=":visible",y=".k-item",z,A,B,C,D,E={text:"dataTextField",url:"dataUrlField",spriteCssClass:"dataSpriteCssClassField",imageUrl:"dataImageUrlField"},F=function(a){return typeof HTMLElement=="object"?a instanceof HTMLElement:a&&typeof a=="object"&&a.nodeType===1&&typeof a.nodeName=="string"};C=G(".k-group"),D=G(".k-group,.k-content"),z={dragClue:g("<div class='k-header k-drag-clue'><span class='k-icon k-drag-status'></span>#= text #</div>"),group:g("<ul class='#= r.groupCssClass(group) #'#= r.groupAttributes(group) #>#= renderItems(data) #</ul>")},B=i.extend({init:function(b,c){var d=this,e=".k-in:not(.k-state-selected,.k-state-disabled)",f="mouseenter",j,l=!1;h(c)&&(j=!0,c={dataSource:c}),c&&typeof c.loadOnDemand=="undefined"&&h(c.dataSource)&&(c.loadOnDemand=!1),i.prototype.init.call(d,b,c),b=d.element,c=d.options,l=b.is("ul")||b.hasClass(w),l&&(c.dataSource.list=b.is("ul")?b:b.children("ul")),d._animation(),d._accessors(),c.template&&typeof c.template=="string"?c.template=g(c.template):c.template||(c.template=d._textTemplate()),c.checkboxTemplate&&typeof c.checkboxTemplate=="string"&&(c.checkboxTemplate=g(c.checkboxTemplate)),d.templates={item:d._itemTemplate(),loading:d._loadingTemplate()},b.hasClass(w)?(d.wrapper=b,d.root=b.children("ul").eq(0)):(d._wrapper(),l&&(d.root=b,d._group(d.wrapper))),d._dataSource(l),d.wrapper.on(f,".k-in.k-state-selected",function(a){a.preventDefault()}).on(f,e,function(){a(this).addClass(v)}).on("mouseleave",e,function(){a(this).removeClass(v)}).on(t,e,k(d._nodeClick,d)).on("dblclick","div:not(.k-state-disabled) .k-in",k(d._toggleButtonClick,d)).on(t,".k-plus,.k-minus",k(d._toggleButtonClick,d)),c.dragAndDrop&&(d.dragging=new K(d)),l?d._attachUids():c.autoBind&&(d._progress(!0),d.dataSource.read())},_attachUids:function(b,d){var e=this,f,g=c.attr("uid");b=b||e.root,d=d||e.dataSource,f=d.view(),b.children("li").each(function(b,c){c=a(c).attr(g,f[b].uid),e._attachUids(c.children("ul"),f[b].children)})},_animation:function(){var a=this.options;a.animation===!1&&(a.animation={expand:{show:!0,effects:{}},collapse:{hide:!0,effects:{}}})},_dataSource:function(a){function e(a){for(var b=0;b<a.length;b++)a[b].children.read(),e(a[b].children.view())}var b=this,c=b.options,d=c.dataSource;d=h(d)?{data:d}:d,b.dataSource&&b._refreshHandler?b.dataSource.unbind(n,b._refreshHandler):b._refreshHandler=k(b.refresh,b),d.fields||(d.fields=[{field:"text"},{field:"url"},{field:"spriteCssClass"},{field:"imageUrl"}]),b.dataSource=j.create(d),a&&(b.dataSource.read(),e(b.dataSource.view())),b.dataSource.bind(n,b._refreshHandler)},events:[p,q,r,s,m,o,l],options:{name:"TreeView",dataSource:{},animation:{expand:{effects:"expand:vertical",duration:200,show:!0},collapse:{duration:100}},dragAndDrop:!1,autoBind:!0,loadOnDemand:!0},_accessors:function(){var a=this,b=a.options,d,e,f,g=a.element;for(d in E)e=b[E[d]],f=g.attr(c.attr(d+"-field")),f&&(e=f),e||(e=d),h(e)||(e=[e]),b[E[d]]=e},_fieldFor:function(a){var b=this.options[E[a]],c=b.length;return c===0?"'"+a+"'":c==1?"'"+b[0]+"'":"['"+b.join("','")+"']"+"[item.level() < "+c+" ? item.level() : "+(c-1)+"]"},_textTemplate:function(){var a=this,b=function(b){return"item["+a._fieldFor(b)+"]"},c="# var text = "+b("text")+"; #"+"# if (typeof item.encoded != 'undefined' && item.encoded === false) {#"+"#= text #"+"# } else { #"+"#: text #"+"# } #";return g(c)},_loadingTemplate:function(){return g("<div class='k-icon k-loading' /> Loading...")},_itemTemplate:function(){var a=this,b=function(b){return"item["+a._fieldFor(b)+"]"},d="<li class='#= r.wrapperCssClass(group, item) #' "+c.attr("uid")+"='#= item.uid #'"+">"+"<div class='#= r.cssClass(group, item) #'>"+"# if (item.hasChildren) { #"+"<span class='#= r.toggleButtonClass(item) #'></span>"+"# } #"+"# if (treeview.checkboxTemplate) { #"+"<span class='k-checkbox'>"+"#= treeview.checkboxTemplate(data) #"+"</span>"+"# } #"+"# var url = "+b("url")+"; #"+"# var tag = url ? 'a' : 'span'; #"+"# var textAttr = url ? ' href=\\'' + url + '\\'' : ''; #"+"<#=tag# class='#= r.textClass(item) #'#= textAttr #>"+"# var imageUrl = "+b("imageUrl")+"; #"+"# if (imageUrl) { #"+"<img class='k-image' alt='' src='#= imageUrl #'>"+"# } #"+"# var spriteCssClass = "+b("spriteCssClass")+"; #"+"# if (spriteCssClass) { #"+"<span class='k-sprite #= spriteCssClass #'></span>"+"# } #"+"#= treeview.template(data) #"+"</#=tag#>"+"</div>"+"</li>";return g(d)},setOptions:function(a){var b=this;"dragAndDrop"in a&&a.dragAndDrop&&!b.options.dragAndDrop&&(b.dragging=new K(b)),i.fn.setOptions.call(b,a),b._animation()},_trigger:function(a,b){return this.trigger(a,{node:b.closest(y)[0]})},_toggleButtonClick:function(b){this.toggle(a(b.target).closest(y))},_nodeClick:function(b){var c=this,d=a(b.target),e=D(d.closest(y)),f=d.attr("href"),g;f?g=f=="#"||f.indexOf("#"+this.element.id+"-")>=0:g=e.length&&!e.children().length,g&&b.preventDefault(),!d.hasClass(".k-state-selected")&&!c._trigger("select",d)&&c.select(d)},_wrapper:function(){var a=this,b=a.element,c,d,e="k-widget k-treeview k-reset";b.is("div")?(c=b,d=c.children("ul").eq(0)):(c=b.wrap("<div />").parent(),d=b),a.wrapper=c.addClass(e),a.root=d},_group:function(a){var b=this,c=a.hasClass(w),d={firstLevel:c,expanded:c||b._expanded(a)},e=a.children("ul");e.addClass(A.groupCssClass(d)).css("display",d.expanded?"":"none"),b._nodes(e,d)},_nodes:function(b,c){var d=this,e=b.children("li"),g;c=f({length:e.length},c),e.each(function(b,e){e=a(e),g={index:b,expanded:d._expanded(e)},I(e),J(e,c,g),d._group(e)})},_processNodes:function(b,c){var d=this;d.element.find(b).each(function(b,e){c.call(d,b,a(e).closest(y))})},dataItem:function(b){var d=a(b).closest(y).attr(c.attr("uid")),e=this.dataSource;return e&&e.getByUid(d)},_insertNode:function(b,c,d,e,f){var g=this,h=C(d),i=h.children().length+1,j,k={firstLevel:d.hasClass(w),expanded:!f,length:i},l,m,n,o="",p=function(a,b){a.appendTo(b)};for(m=0;m<b.length;m++)n=b[m],n.index=c+m,o+=g._renderItem({group:k,item:n});l=a(o);if(!!l.length){h.length||(h=a(g._renderGroup({group:k})).appendTo(d)),e(l,h),d.hasClass("k-item")&&(I(d),J(d)),J(l.prev()),J(l.next());for(m=0;m<b.length;m++)n=b[m],j=n.children.data(),j.length&&g._insertNode(j,n.index,l.eq(m),p,!g._expanded(l.eq(m)));return l}},refresh:function(a){function j(a,c,d){var e=C(c),f=e.children();typeof g=="undefined"&&(g=f.length),b._insertNode(a,g,c,function(a,b){g==f.length?a.appendTo(b):a.insertBefore(f.eq(g))},d)}var b=this,c=b.wrapper,d=a.node,e=a.action,f=a.items,g=a.index,h=b.options.loadOnDemand,i;if(!a.field){d&&(c=b.findByUid(d.uid),b._progress(c,!1)),e=="add"?j(f,c):e=="remove"?b._remove(b.findByUid(f[0].uid),!1):d?(C(c).empty(),j(f,c,!0),b._expanded(c)&&(J(c,{},{expanded:!0}),C(c).css("display","block"))):b.root=b.wrapper.html(b._renderGroup({items:f,group:{firstLevel:!0,expanded:!0}})).children("ul");if(!h)for(i=0;i<f.length;i++)f[i].load()}},expand:function(a){this._processNodes(a,function(a,b){var c=D(b);c.length>0&&!c.is(x)&&this.toggle(b)})},collapse:function(a){this._processNodes(a,function(a,b){var c=D(b);c.length>0&&c.is(x)&&this.toggle(b)})},enable:function(a,b){b=arguments.length==2?!!b:!0,this._processNodes(a,function(a,c){var d=!D(c).is(x);b||(this.collapse(c),d=!0),J(c,{},{enabled:b,expanded:!d})})},select:function(b){var c=this.element;if(!arguments.length)return c.find(".k-state-selected").closest(y);b=a(b,c).closest(y),b.length&&(c.find(".k-in").removeClass("k-state-hover k-state-selected"),b.find(".k-in:first").addClass("k-state-selected"))},toggle:function(b){b=a(b);if(!!b.find(">div>.k-icon").is(".k-minus,.k-plus,.k-minus-disabled,.k-plus-disabled")){var c=this,d=D(b),e=!d.is(x),g=c.options,h=g.animation||{},i=h.expand,j=f({},h.collapse),k=j&&"effects"in j,l=c.dataItem(b);if(d.data("animating"))return;e||(i=f(k?j:f({reverse:!0},i),{show:!1,hide:!0})),c._trigger(e?"expand":"collapse",b)||(c._expanded(b,e),d.children().length>0?(J(b,{},{expanded:e}),e||d.css("height",d.height()).css("height"),d.kendoStop(!0,!0).kendoAnimate(f(i,{complete:function(){e&&d.css("height","")}}))):l&&(g.loadOnDemand&&c._progress(b,!0),l.load()))}},_expanded:function(a,b){var d=c.attr("expanded"),e=this.dataItem(a);if(arguments.length==1)return a.attr(d)==="true"||e&&e.expanded;e&&e.set("expanded",b),b?a.attr(d,"true"):a.removeAttr(d)},_progress:function(a,b){var c=this.element;arguments.length==1?(b=a,b?c.html(this.templates.loading):c.empty()):a.find("> div > .k-icon").toggleClass("k-loading",b)},text:function(b){return a(b).closest(y).find(">div>.k-in").text()},_dataSourceMove:function(b,d,f,g){var i=this,j=H(b),k,l,m,n,o=H(f||d),p=o.dataSource;f&&(m=o.dataItem(f),m.loaded()||(m.load(),i._expanded(f,!0)),f!=i.root&&(p=m.children));if(b instanceof a||F(b))b=a(b),k=j.dataSource,l=k.getByUid(b.attr(c.attr("uid"))),l=k.remove(l),l=g(p,l);else if(h(b)||b instanceof e.ObservableArray)for(n=0;n<b.length;n++)l=g(p,b[n]);else l=g(p,b);return i.findByUid(l.uid)},insertAfter:function(a,b){var c=b.parent(),d;c.parent().is("li")&&(d=c.parent());return this._dataSourceMove(a,c,d,function(a,c){return a.insert(b.index()+1,c)})},insertBefore:function(a,b){var c=b.parent(),d;c.parent().is("li")&&(d=c.parent());return this._dataSourceMove(a,c,d,function(a,c){return a.insert(b.index(),c)})},append:function(a,b){var c=this,d=c.root;b&&(d=C(b));return c._dataSourceMove(a,d,b,function(a,d){b&&c._expanded(b,!0);return a.add(d)})},_remove:function(b,c){var d,e,f;b=a(b,this.element),d=b.parent().parent(),e=b.prev(),f=b.next(),b[c?"detach":"remove"](),d.hasClass("k-item")&&(I(d),J(d)),J(e),J(f);return b},remove:function(a){var b=this.dataItem(a);b&&this.dataSource.remove(b)},detach:function(a){return this._remove(a,!0)},findByText:function(b){return a(this.element).find(".k-in").filter(function(c,d){return a(d).text()==b}).closest(y)},findByUid:function(a){return this.element.find(".k-item["+c.attr("uid")+"="+a+"]")},_renderItem:function(a){a.group||(a.group={}),a.treeview=this.options,a.r=A;return this.templates.item(a)},_renderGroup:function(a){var b=this;a.renderItems=function(a){var c="",d=0,e=a.items,f=e?e.length:0,g=a.group;g.length=f;for(;d<f;d++)a.group=g,a.item=e[d],a.item.index=d,c+=b._renderItem(a);return c},a.r=A;return z.group(a)}}),K.prototype={_hintStatus:function(b){var c=this._draggable.hint.find(".k-drag-status")[0];if(b)c.className="k-icon k-drag-status "+b;else return a.trim(c.className.replace(/k-(icon|drag-status)/g,""))},dragstart:function(b){var c=this,d=c.treeview,e=c.sourceNode=b.currentTarget.closest(y);d.trigger(p,{sourceNode:e[0]})&&b.preventDefault(),c.dropHint=a("<div class='k-drop-hint' />").css(u,"hidden").appendTo(d.element)},drag:function(b){var d=this,e=d.treeview,f=d.sourceNode,g=d.dropTarget=a(c.eventTarget(b)),h,i,j,k,l,m,n,o,p,r;g.closest(".k-treeview").length?a.contains(f[0],g[0])?h="k-denied":(h="k-insert-middle",d.dropHint.css(u,"visible"),i=g.closest(".k-top,.k-mid,.k-bot"),i.length>0?(k=i.outerHeight(),l=i.offset().top,m=g.closest(".k-in"),n=k/(m.length>0?4:2),o=b.pageY<l+n,p=l+k-n<b.pageY,r=m.length>0&&!o&&!p,m.toggleClass(v,r),d.dropHint.css(u,r?"hidden":"visible"),r?h="k-add":(j=i.position(),j.top+=o?0:k,d.dropHint.css(j)[o?"prependTo":"appendTo"](g.closest(y).children("div:first")),o&&i.hasClass("k-top")&&(h="k-insert-top"),p&&i.hasClass("k-bot")&&(h="k-insert-bottom"))):g[0]!=d.dropHint[0]&&(h="k-denied")):h="k-denied",e.trigger(q,{sourceNode:f[0],dropTarget:g[0],pageY:b.pageY,pageX:b.pageX,statusClass:h.substring(2),setStatusClass:function(a){h=a}}),h.indexOf("k-insert")!==0&&d.dropHint.css(u,"hidden"),d._hintStatus(h)},dragcancel:function(a){this.dropHint.remove()},dragend:function(a){var b=this,c=b.treeview,d="over",e=b.sourceNode,f,g=b.dropHint,h,i;g.css(u)=="visible"?(d=g.prevAll(".k-in").length>0?"after":"before",f=g.closest(y)):b.dropTarget&&(f=b.dropTarget.closest(y)),h=b._hintStatus()!="k-denied",i=c.trigger(r,{sourceNode:e[0],destinationNode:f[0],valid:h,setValid:function(a){h=a},dropTarget:a.target,dropPosition:d}),g.remove();!h||i?b._draggable.dropped=h:(b._draggable.dropped=!0,d=="over"?(c.append(e,f),c.expand(f)):d=="before"?c.insertBefore(e,f):d=="after"&&c.insertAfter(e,f),c.trigger(s,{sourceNode:e[0],destinationNode:f[0],dropPosition:d}))}},A={wrapperCssClass:function(a,b){var c="k-item",d=b.index;a.firstLevel&&d===0&&(c+=" k-first"),d==a.length-1&&(c+=" k-last");return c},cssClass:function(a,b){var c="",d=b.index,e=a.length-1;a.firstLevel&&d===0&&(c+="k-top "),d===0&&d!=e?c+="k-top":d==e?c+="k-bot":c+="k-mid";return c},textClass:function(a){var b="k-in";a.enabled===!1&&(b+=" k-state-disabled"),a.selected===!0&&(b+=" k-state-selected");return b},toggleButtonClass:function(a){var b="k-icon";a.expanded!==!0?b+=" k-plus":b+=" k-minus",a.enabled===!1&&(b+="-disabled");return b},groupAttributes:function(a){return a.expanded!==!0?" style='display:none'":""},groupCssClass:function(a){var b="k-group";a.firstLevel&&(b+=" k-treeview-lines");return b}},d.plugin(B)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function F(){var c={},d=a("meta[name=csrf-token]").attr("content"),e=a("meta[name=csrf-param]").attr("content");a("input[name^='__RequestVerificationToken']").each(function(){c[this.name]=this.value}),e!==b&&d!==b&&(c[e]=d);return c}function E(b){return a(b.target).closest(".k-file")}function D(a){return a.children(".k-icon").is(".k-loading, .k-success, .k-fail")}function C(a,b,c){var d,e;a.bind("dragenter",function(a){b(),e=new Date,d||(d=setInterval(function(){var a=new Date-e;a>100&&(c(),clearInterval(d),d=null)},100))}).bind("dragover",function(a){e=new Date})}function B(a){a.stopPropagation(),a.preventDefault()}function A(b,c,d){var e=!1,f="";try{f=a.parseJSON(b),e=!0}catch(g){d()}e&&c(f)}function z(b,c,d){if(!!c._supportsRemove()){var f=b.data("fileNames"),g=a.map(f,function(a){return a.name});c._submitRemove(g,d,function(a,d,e){c._removeFileEntry(b),c.trigger(i,{operation:"remove",files:f,response:a,XMLHttpRequest:e})},function(a,b,b){var d=c.trigger(j,{operation:"remove",files:f,XMLHttpRequest:a});e("Server response: "+a.responseText)})}}function y(a){var b=a.lastIndexOf("\\");return b!=-1?a.substr(b+1):a}function x(a){var b=a.match(f);return b?b[0]:""}function w(a){var b=a.name||a.fileName;return{name:b,extension:x(b),size:a.size||a.fileSize,rawFile:a}}function v(b){return a.map(b,function(a){return w(a)})}function u(a){var b=a[0];return b.files?v(b.files):[{name:y(b.value),extension:x(b.value),size:null}]}function t(b){return a.map(u(b),function(a){return a.name}).join(", ")}var c=window.kendo,d=c.ui.Widget,e=c.logToConsole,f=/\.([^\.]+)$/,g="select",h="upload",i="success",j="error",k="complete",l="cancel",m="load",n="progress",o="remove",p=d.extend({init:function(c,e){var f=this;d.fn.init.call(f,c,e),f.name=c.name,f.multiple=f.options.multiple,f.localization=f.options.localization;var g=f.element;f.wrapper=g.closest(".k-upload"),f.wrapper.length==0&&(f.wrapper=f._wrapInput(g)),f._activeInput(g),f.toggle(f.options.enabled),g.closest("form").bind({submit:a.proxy(f._onParentFormSubmit,f),reset:a.proxy(f._onParentFormReset,f)}),f.options.async.saveUrl!=b?(f._module=f._supportsFormData()?new s(f):new r(f),f._async=!0):f._module=new q(f),f._supportsDrop()&&f._setupDropZone(),f.wrapper.delegate(".k-upload-action","click",a.proxy(f._onFileAction,f)).delegate(".k-upload-selected","click",a.proxy(f._onUploadSelected,f)).delegate(".k-file","t:progress",a.proxy(f._onFileProgress,f)).delegate(".k-file","t:upload-success",a.proxy(f._onUploadSuccess,f)).delegate(".k-file","t:upload-error",a.proxy(f._onUploadError,f))},events:[g,h,i,j,k,l,n,o],options:{name:"Upload",enabled:!0,multiple:!0,showFileList:!0,async:{removeVerb:"POST",autoUpload:!0},localization:{select:"Select...",cancel:"Cancel",retry:"Retry",remove:"Remove",uploadSelectedFiles:"Upload files",dropFilesHere:"drop files here to upload",statusUploading:"uploading",statusUploaded:"uploaded",statusFailed:"failed"}},setOptions:function(a){var b=this,c=b.element;d.fn.setOptions.call(b,a),b.multiple=b.options.multiple,c.attr("multiple",b._supportsMultiple()?b.multiple:!1),b.toggle(b.options.enabled)},enable:function(a){a=typeof a=="undefined"?!0:a,this.toggle(a)},disable:function(){this.toggle(!1)},toggle:function(a){a=typeof a=="undefined"?a:!a,this.wrapper.toggleClass("k-state-disabled",a)},_addInput:function(b){var c=this;b.insertAfter(c.element).data("kendoUpload",c),a(c.element).hide().removeAttr("id"),c._activeInput(b)},_activeInput:function(b){var c=this,d=c.wrapper;c.element=b,b.attr("multiple",c._supportsMultiple()?c.multiple:!1).attr("autocomplete","off").click(function(a){d.hasClass("k-state-disabled")&&a.preventDefault()}).change(a.proxy(c._onInputChange,c))},_onInputChange:function(b){var c=this,d=a(b.target),e=c.trigger(g,{files:u(d)});e?(c._addInput(d.clone().val("")),d.remove()):d.trigger("t:select")},_onDrop:function(b){var c=b.originalEvent.dataTransfer,d=this,e=c.files;B(b);if(e.length>0){var f=d.trigger(g,{files:v(e)});f||a(".k-dropzone",d.wrapper).trigger("t:select",[e])}},_enqueueFile:function(b,c){var d=this,e,f,g=a(".k-upload-files",d.wrapper);g.length==0&&(g=a("<ul class='k-upload-files k-reset'></ul>").appendTo(d.wrapper),d.options.showFileList||g.hide()),e=a(".k-file",g),f=a("<li class='k-file'><span class='k-filename' title='"+b+"'>"+b+"</span></li>").appendTo(g).data(c),d._async&&f.prepend("<span class='k-icon'></span>"),d.multiple||e.trigger("t:remove");return f},_removeFileEntry:function(b){var c=b.closest(".k-upload-files"),d;b.remove(),d=a(".k-file",c),d.find("> .k-fail").length===d.length&&this._hideUploadButton(),d.length==0&&c.remove()},_fileAction:function(a,b){var c={remove:"k-delete",cancel:"k-cancel",retry:"k-retry"};!c.hasOwnProperty(b)||(this._clearFileAction(a),a.append(this._renderAction(c[b],this.localization[b]).addClass("k-upload-action")))},_fileState:function(a,b){var c=this.localization,d={uploading:{cssClass:"k-loading",text:c.statusUploading},uploaded:{cssClass:"k-success",text:c.statusUploaded},failed:{cssClass:"k-fail",text:c.statusFailed}},e=d[b];if(e){var f=a.children(".k-icon").text(e.text);f[0].className="k-icon "+e.cssClass}},_renderAction:function(b,c){return b!=""?a("<button type='button' class='k-button k-button-icontext'><span class='k-icon "+b+"'></span>"+c+"</button>"):a("<button type='button' class='k-button'>"+c+"</button>")},_clearFileAction:function(a){a.find(".k-upload-action").remove()},_onFileAction:function(b){var c=this;if(!c.wrapper.hasClass("k-state-disabled")){var d=a(b.target).closest(".k-upload-action"),e=d.find(".k-icon"),f=d.closest(".k-file"),g={files:f.data("fileNames")};e.hasClass("k-delete")?c.trigger(o,g)||f.trigger("t:remove",g.data):e.hasClass("k-cancel")?(c.trigger(l,g),f.trigger("t:cancel"),this._checkAllComplete()):e.hasClass("k-retry")&&f.trigger("t:retry")}return!1},_onUploadSelected:function(){this.wrapper.trigger("t:saveSelected");return!1},_onFileProgress:function(b,c){var d=a(".k-progress-status",b.target);d.length==0&&(d=a("<span class='k-progress'><span class='k-state-selected k-progress-status' style='width: 0;'></span></span>").appendTo(a(".k-filename",b.target)).find(".k-progress-status")),d.width(c+"%"),this.trigger(n,{files:E(b).data("fileNames"),percentComplete:c})},_onUploadSuccess:function(a,b,c){var d=E(a);this._fileState(d,"uploaded"),this.trigger(i,{files:d.data("fileNames"),response:b,operation:"upload",XMLHttpRequest:c}),this._supportsRemove()?this._fileAction(d,o):this._clearFileAction(d),this._checkAllComplete()},_onUploadError:function(a,b){var c=E(a);this._fileState(c,"failed"),this._fileAction(c,"retry");var d=this.trigger(j,{operation:"upload",files:c.data("fileNames"),XMLHttpRequest:b});e("Server response: "+b.responseText),this._checkAllComplete()},_showUploadButton:function(){var b=a(".k-upload-selected",this.wrapper);b.length==0&&(b=this._renderAction("",this.localization.uploadSelectedFiles).addClass("k-upload-selected")),this.wrapper.append(b)},_hideUploadButton:function(){a(".k-upload-selected",this.wrapper).remove()},_onParentFormSubmit:function(){var b=this,c=b.element;c.trigger("t:abort");if(!c.value){var d=a(c);d.attr("disabled","disabled"),window.setTimeout(function(){d.removeAttr("disabled")},0)}},_onParentFormReset:function(){a(".k-upload-files",this.wrapper).remove()},_supportsFormData:function(){return typeof FormData!="undefined"},_supportsMultiple:function(){return!a.browser.opera},_supportsDrop:function(){var a=this._userAgent().toLowerCase(),c=/chrome/.test(a),d=!c&&/safari/.test(a),e=d&&/windows/.test(a);return!e&&this._supportsFormData()&&this.options.async.saveUrl!=b},_userAgent:function(){return navigator.userAgent},_setupDropZone:function(){a(".k-upload-button",this.wrapper).wrap("<div class='k-dropzone'></div>");var b=a(".k-dropzone",this.wrapper).append(a("<em>"+this.localization.dropFilesHere+"</em>")).bind({dragenter:B,dragover:function(a){a.preventDefault()},drop:a.proxy(this._onDrop,this)});C(b,function(){b.addClass("k-dropzone-hovered")},function(){b.removeClass("k-dropzone-hovered")}),C(a(document),function(){b.addClass("k-dropzone-active")},function(){b.removeClass("k-dropzone-active")})},_supportsRemove:function(){return this.options.async.removeUrl!=b},_submitRemove:function(b,c,d,e){var f=this,g=f.options.async.removeField||"fileNames",h=a.extend(c,F());h[g]=b,a.ajax({type:this.options.async.removeVerb,dataType:"json",url:this.options.async.removeUrl,traditional:!0,data:h,success:d,error:e})},_wrapInput:function(a){a.wrap("<div class='k-widget k-upload'><div class='k-button k-upload-button'></div></div>"),a.closest(".k-button").append("<span>"+this.localization.select+"</span>");return a.closest(".k-upload")},_checkAllComplete:function(){a(".k-file .k-icon.k-loading",this.wrapper).length==0&&this.trigger(k)}}),q=function(b){this.name="syncUploadModule",this.element=b.wrapper,this.upload=b,this.element.bind("t:select",a.proxy(this.onSelect,this)).bind("t:remove",a.proxy(this.onRemove,this)).closest("form").attr("enctype","multipart/form-data").attr("encoding","multipart/form-data")};q.prototype={onSelect:function(b){var c=this.upload,d=a(b.target);c._addInput(d.clone().val(""));var e=c._enqueueFile(t(d),{relatedInput:d,fileNames:u(d)});c._fileAction(e,o)},onRemove:function(a){var b=E(a);b.data("relatedInput").remove(),this.upload._removeFileEntry(b)}};var r=function(b){this.name="iframeUploadModule",this.element=b.wrapper,this.upload=b,this.iframes=[],this.element.bind("t:select",a.proxy(this.onSelect,this)).bind("t:cancel",a.proxy(this.onCancel,this)).bind("t:retry",a.proxy(this.onRetry,this)).bind("t:remove",a.proxy(this.onRemove,this)).bind("t:saveSelected",a.proxy(this.onSaveSelected,this)).bind("t:abort",a.proxy(this.onAbort,this))};p._frameId=0,r.prototype={onSelect:function(b){var c=this.upload,d=a(b.target),e=this.prepareUpload(d);c.options.async.autoUpload?this.performUpload(e):(c._supportsRemove()&&this.upload._fileAction(e,o),c._showUploadButton())},prepareUpload:function(b){var c=this.upload,d=a(c.element),e=c.options.async.saveField||b.attr("name");c._addInput(b.clone().val("")),b.attr("name",e);var f=this.createFrame(c.name+"_"+p._frameId++);this.registerFrame(f);var g=this.createForm(c.options.async.saveUrl,f.attr("name")).append(d),h=c._enqueueFile(t(b),{frame:f,relatedInput:d,fileNames:u(b)});f.data({form:g,file:h});return h},performUpload:function(b){var c={files:b.data("fileNames")},d=b.data("frame"),e=this.upload;if(!e.trigger(h,c)){e._hideUploadButton(),d.appendTo(document.body);var f=d.data("form").appendTo(document.body);c.data=a.extend({},c.data,F());for(var g in c.data){var i=f.find("input[name='"+g+"']");i.length==0&&(i=a("<input>",{type:"hidden",name:g}).appendTo(f)),i.val(c.data[g])}e._fileAction(b,l),e._fileState(b,"uploading"),d.one("load",a.proxy(this.onIframeLoad,this)),f[0].submit()}else e._removeFileEntry(d.data("file")),this.cleanupFrame(d),this.unregisterFrame(d)},onSaveSelected:function(b){var c=this;a(".k-file",this.element).each(function(){var b=a(this),d=D(b);d||c.performUpload(b)})},onIframeLoad:function(b){var c=a(b.target);try{var d=c.contents().text()}catch(b){d="Error trying to get server response: "+b}this.processResponse(c,d)},processResponse:function(b,c){var d=b.data("file"),e=this,f={responseText:c};A(c,function(c){a.extend(f,{statusText:"OK",status:"200"}),d.trigger("t:progress",[100]),d.trigger("t:upload-success",[c,f]),e.cleanupFrame(b),e.unregisterFrame(b)},function(){a.extend(f,{statusText:"error",status:"500"}),d.trigger("t:upload-error",[f])})},onCancel:function(b){var c=a(b.target).data("frame");this.stopFrameSubmit(c),this.cleanupFrame(c),this.unregisterFrame(c),this.upload._removeFileEntry(c.data("file"))},onRetry:function(a){var b=E(a);this.performUpload(b)},onRemove:function(a,b){var c=E(a),d=c.data("frame");d?(this.unregisterFrame(d),this.upload._removeFileEntry(c),this.cleanupFrame(d)):z(c,this.upload,b)},onAbort:function(){var b=this.element,c=this;a.each(this.iframes,function(){a("input",this.data("form")).appendTo(b),c.stopFrameSubmit(this[0]),this.data("form").remove(),this.remove()}),this.iframes=[]},createFrame:function(b){return a("<iframe name='"+b+"'"+" id='"+b+"'"+" style='display:none;' />")},createForm:function(b,c){return a("<form enctype='multipart/form-data' method='POST' action='"+b+"'"+" target='"+c+"'"+"/>")},stopFrameSubmit:function(a){typeof a.stop!="undefined"?a.stop():a.document&&(a.document.execCommand("Stop"),a.contentWindow.location.href=a.contentWindow.location.href)},registerFrame:function(a){this.iframes.push(a)},unregisterFrame:function(b){this.iframes=a.grep(this.iframes,function(a){return a.attr("name")!=b.attr("name")})},cleanupFrame:function(a){var b=a.data("form");a.data("file").data("frame",null),setTimeout(function(){b.remove(),a.remove()},1)}};var s=function(b){this.name="formDataUploadModule",this.element=b.wrapper,this.upload=b,this.element.bind("t:select",a.proxy(this.onSelect,this)).bind("t:cancel",a.proxy(this.onCancel,this)).bind("t:remove",a.proxy(this.onRemove,this)).bind("t:retry",a.proxy(this.onRetry,this)).bind("t:saveSelected",a.proxy(this.onSaveSelected,this)).bind("t:abort",a.proxy(this.onAbort,this))};s.prototype={onSelect:function(b,c){var d=this.upload,e=this,f=a(b.target),g=c?v(c):this.inputFiles(f),h=this.prepareUpload(f,g);a.each(h,function(){d.options.async.autoUpload?e.performUpload(this):(d._supportsRemove()&&d._fileAction(this,o),d._showUploadButton())})},prepareUpload:function(b,c){var d=this.enqueueFiles(c);b.is("input")&&(a.each(d,function(){a(this).data("relatedInput",b)}),b.data("relatedFileEntries",d),this.upload._addInput(b.clone().val("")));return d},enqueueFiles:function(a){var b=this.upload;fileEntries=[];for(var c=0;c<a.length;c++){var d=a[c],e=d.name,f=b._enqueueFile(e,{fileNames:[d]});f.data("file",d),fileEntries.push(f)}return fileEntries},inputFiles:function(a){return u(a)},performUpload:function(b){var c=this.upload,d=this.createFormData(b.data("file")),e={files:b.data("fileNames")};if(!c.trigger(h,e)){c._fileAction(b,l),c._hideUploadButton(),e.data=a.extend({},e.data,F());for(var f in e.data)d.append(f,e.data[f]);c._fileState(b,"uploading"),this.postFormData(this.upload.options.async.saveUrl,d,b)}else this.removeFileEntry(b)},onSaveSelected:function(b){var c=this;a(".k-file",this.element).each(function(){var b=a(this),d=D(b);d||c.performUpload(b)})},onCancel:function(a){var b=E(a);this.stopUploadRequest(b),this.removeFileEntry(b)},onRetry:function(a){var b=E(a);this.performUpload(b)},onRemove:function(a,b){var c=E(a);c.children(".k-icon").is(".k-success")?z(c,this.upload,b):this.removeFileEntry(c)},postFormData:function(a,b,c){var d=new XMLHttpRequest,e=this;c.data("request",d),d.addEventListener("load",function(a){e.onRequestSuccess.call(e,a,c)},!1),d.addEventListener(j,function(a){e.onRequestError.call(e,a,c)},!1),d.upload.addEventListener("progress",function(a){e.onRequestProgress.call(e,a,c)},!1),d.open("POST",a),d.withCredentials="true",d.send(b)},createFormData:function(a){var b=new FormData,c=this.upload;b.append(c.options.async.saveField||c.name,a.rawFile);return b},onRequestSuccess:function(a,b){function e(){b.trigger("t:upload-error",[c])}var c=a.target,d=this;c.status>=200&&c.status<=299?A(c.responseText,function(a){b.trigger("t:progress",[100]),b.trigger("t:upload-success",[a,c]),d.cleanupFileEntry(b)},e):e()},onRequestError:function(a,b){var c=a.target;b.trigger("t:upload-error",[c])},cleanupFileEntry:function(b){var c=b.data("relatedInput"),d=!0;c&&(a.each(c.data("relatedFileEntries")||[],function(){this.parent().length>0&&this[0]!=b[0]&&(d=d&&this.children(".k-icon").is(".k-success"))}),d&&c.remove())},removeFileEntry:function(a){this.cleanupFileEntry(a),this.upload._removeFileEntry(a)},onRequestProgress:function(a,b){var c=Math.round(a.loaded*100/a.total);b.trigger("t:progress",[c])},stopUploadRequest:function(a){a.data("request").abort()}},c.ui.plugin(p)})(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function u(a){return a.replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function t(b){var d=c.ui.validator.ruleResolvers||{},e={},f;for(f in d)a.extend(!0,e,d[f].resolve(b));return e}var c=window.kendo,d=c.ui.Widget,e="k-invalid-msg",f="k-invalid",g=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,h=/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,i=":input:not(:button,[type=submit],[type=reset])",j="[type=number],[type=range]",k="blur",l="name",m="form",n="novalidate",o=a.proxy,p=function(a,b){typeof b=="string"&&(b=new RegExp("^(?:"+b+")$"));return b.test(a)},q=function(a,b,c){var d=a.val();if(a.filter(b).length&&d!=="")return p(d,c);return!0},r=function(a,c){if(a.length)return a[0].attributes[c]!==b;return!1},s=/(\[|\]|\$|\.|\:|\+)/g;c.ui.validator||(c.ui.validator={rules:{},messages:{}});var v=d.extend({init:function(b,e){var f=this,g=t(b);e=e||{},e.rules=a.extend({},c.ui.validator.rules,g.rules,e.rules),e.messages=a.extend({},c.ui.validator.messages,g.messages,e.messages),d.fn.init.call(f,b,e),f._errorTemplate=c.template(f.options.errorTemplate),f.element.is(m)&&f.element.attr(n,n),f._errors={},f._attachEvents()},options:{name:"Validator",errorTemplate:'<span class="k-widget k-tooltip k-tooltip-validation"><span class="k-icon k-warning"> </span> ${message}</span>',messages:{required:"{0} is required",pattern:"{0} is not valid",min:"{0} should be greater than or equal to {1}",max:"{0} should be smaller than or equal to {1}",step:"{0} is not valid",email:"{0} is not valid email",url:"{0} is not valid URL",date:"{0} is not valid date"},rules:{required:function(a){var b=a.filter("[type=checkbox]").length&&a.attr("checked")!=="checked",c=a.val();return!r(a,"required")||c!==""&&!!c&&!b},pattern:function(a){if(a.filter("[type=text],[type=email],[type=url],[type=tel],[type=search],[type=password]").filter("[pattern]").length&&a.val()!=="")return p(a.val(),a.attr("pattern"));return!0},min:function(a){if(a.filter(j+",["+c.attr("type")+"=number]").filter("[min]").length&&a.val()!==""){var b=parseFloat(a.attr("min"))||0,d=parseFloat(a.val());return b<=d}return!0},max:function(a){if(a.filter(j+",["+c.attr("type")+"=number]").filter("[max]").length&&a.val()!==""){var b=parseFloat(a.attr("max"))||0,d=parseFloat(a.val());return b>=d}return!0},step:function(a){if(a.filter(j+",["+c.attr("type")+"=number]").filter("[step]").length&&a.val()!==""){var b=parseFloat(a.attr("min"))||0,d=parseFloat(a.attr("step"))||0,e=parseFloat(a.val());return(e-b)*10%(d*10)/100===0}return!0},email:function(a){return q(a,"[type=email],["+c.attr("type")+"=email]",g)},url:function(a){return q(a,"[type=url],["+c.attr("type")+"=url]",h)},date:function(a){if(a.filter("[type^=date],["+c.attr("type")+"=date]").length&&a.val()!=="")return c.parseDate(a.val(),a.attr(c.attr("format")))!==null;return!0}},validateOnBlur:!0},_submit:function(a){if(!this.validate()){a.stopPropagation(),a.stopImmediatePropagation(),a.preventDefault();return!1}return!0},_attachEvents:function(){var b=this;b.element.is(m)&&b.element.submit(o(b._submit,b)),b.options.validateOnBlur&&(b.element.is(i)?b.element.bind(k,function(){b.validateInput(b.element)}):b.element.delegate(i,k,function(){b.validateInput(a(this))}))},validate:function(){var a=this,b,c,d=!1,e;a._errors={};if(!a.element.is(i)){b=a.element.find(i);for(c=0,e=b.length;c<e;c++)a.validateInput(b.eq(c))||(d=!0);return!d}return a.validateInput(a.element)},validateInput:function(b){b=a(b);var c=this,d=c._errorTemplate,g=c._checkValidity(b),h=g.valid,i="."+e,j=b.attr(l)||"",k=c._findMessageContainer(j).add(b.next(i)).hide(),m;if(!h){m=c._extractMessage(b,g.key),c._errors[j]=m;var n=a(d({message:u(m)}));c._decorateMessageContainer(n,j),k.replaceWith(n).length||n.insertAfter(b),n.show()}b.toggleClass(f,!h);return h},_findMessageContainer:function(a){var b=c.ui.validator.messageLocators,d,f=this.element.find("."+e+"["+c.attr("for")+"="+a.replace(s,"\\$1")+"]");for(d in b)f=f.add(b[d].locate(this.element,a));return f},_decorateMessageContainer:function(a,b){var d=c.ui.validator.messageLocators,f;a.addClass(e).attr(c.attr("for"),b||"");for(f in d)d[f].decorate(a,b)},_extractMessage:function(b,d){var e=this,f=e.options.messages[d],g=b.attr(l);f=a.isFunction(f)?f(b):f;return c.format(b.attr(c.attr(d+"-msg"))||b.attr("validationMessage")||b.attr("title")||f||"",g,b.attr(d))},_checkValidity:function(a){var b=this.options.rules,c;for(c in b)if(!b[c](a))return{valid:!1,key:c};return{valid:!0}},errors:function(){var a=[],b=this._errors,c;for(c in b)a.push(b[c]);return a}});c.ui.plugin(v)})(jQuery);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
(function(a,b){function bf(d,e){var f={},g;for(option in e)g=be(d,option),g!==b&&(bb.test(option)&&(g=c.template(a("#"+g).html())),f[option]=g);return f}function be(d,e){var f;e.indexOf("data")===0&&(e=e.substring(4),e=e.charAt(0).toLowerCase()+e.substring(1)),e=e.replace(bd,"-$1"),f=d.getAttribute("data-"+c.ns+e),f===null?f=b:f==="null"?f=null:f==="true"?f=!0:f==="false"?f=!1:isNaN(parseFloat(f))?bc.test(f)&&(f=a.parseJSON(f)):f=parseFloat(f);return f}function X(a){return(""+a).replace(U,"&").replace(V,"<").replace(W,">")}function T(a,b,c,d){b&&(b=b.split(" "),e(b,function(b,c){a.toggleClass(c,d)}));return a}function S(a,b,c,d,e,f){return P.transitionPromise(a,b,Q(c,d,e,f))}function R(b,c,d,e,f){b.each(function(b,g){g=a(g),g.queue(function(){P.promise(g,Q(c,d,e,f))})});return b}function Q(a,b,c,e){typeof a===p&&(i(b)&&(e=b,b=400,c=!1),i(c)&&(e=c,c=!1),typeof b===t&&(c=b,b=400),a={effects:a,duration:b,reverse:c,complete:e});return d({effects:{},duration:400,reverse:!1,init:h,teardown:h,hide:!1,show:!1},a,{completeCallback:a.complete,complete:h})}function O(a){var b={};e(typeof a=="string"?a.split(" "):a,function(a){b[a]=this});return b}function M(a,b){b||(b="offset");var c=a[b](),d=m.mobileOS;if(m.touch&&d.ios&&d.flatVersion<410){var e=b=="offset"?c:a.offset(),f=c.left==e.left&&c.top==e.top;if(f)return{top:c.top-window.scrollY,left:c.left-window.scrollX}}return c}function L(b){return a.trim(a(b).contents().filter(function(){return this.nodeType!=8}).html())===""}function K(a){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}function J(a,b){var c,d,e,f;for(c in b)d=b[c],e=typeof d,e===r&&d!==null&&d.constructor!==Array?(f=a[c],typeof f===r?a[c]=f||{}:a[c]={},J(a[c],d)):e!==u&&(a[c]=d);return a}function I(a){var b=1,c=arguments.length;for(b=1;b<c;b++)J(a,arguments[b]);return a}function H(b){var d=a.browser;if(!b.parent().hasClass("k-animation-container")){var e=b.css(c.support.transitions.css+"box-shadow")||b.css("box-shadow"),f=e?e.match(n)||[0,0,0,0,0]:[0,0,0,0,0],g=j.max(+f[3],+(f[4]||0)),h=-f[1]+g,i=+f[1]+g,k=+f[2]+g;d.opera&&(h=i=k=5),b.wrap(a("<div/>").addClass("k-animation-container").css({width:b.outerWidth(),height:b.outerHeight(),marginLeft:-h,paddingLeft:h,paddingRight:i,paddingBottom:k}))}else{var l=b.parent(".k-animation-container");l.is(":hidden")&&l.show(),l.css({width:b.outerWidth(),height:b.outerHeight()})}d.msie&&j.floor(d.version)<=7&&b.css({zoom:1});return b.parent()}function A(a,b){if(b)return"'"+a.split("'").join("\\'").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")+"'";var c=a.charAt(0),d=a.substring(1);return c==="="?"+("+d+")+":c===":"?"+e("+d+")+":";"+a+";o+="}function y(){}var c=window.kendo=window.kendo||{},d=a.extend,e=a.each,f=a.proxy,g=a.isArray,h=a.noop,i=a.isFunction,j=Math,k,l=window.JSON||{},m={},n=/(\d+?)px\s*(\d+?)px\s*(\d+?)px\s*(\d+?)?/i,o="function",p="string",q="number",r="object",s="null",t="boolean",u="undefined",v={},w={},x=window.Globalize;y.extend=function(a){var b=function(){},c,e=this,f=a&&a.init?a.init:function(){e.apply(this,arguments)},g;b.prototype=e.prototype,g=f.fn=f.prototype=new b;for(c in a)typeof a[c]!==r||a[c]instanceof Array||a[c]===null?g[c]=a[c]:g[c]=d(!0,{},b.prototype[c],a[c]);g.constructor=f,f.extend=e.extend;return f};var z=y.extend({init:function(){this._events={}},bind:function(a,b,c){var d=this,e,f=typeof a===p?[a]:a,g,h,i,j=typeof b===o,k;for(e=0,g=f.length;e<g;e++)a=f[e],i=j?b:b[a],i&&(c&&(h=i,i=function(){d.unbind(a,i),h.apply(d,arguments)}),k=d._events[a]=d._events[a]||[],k.push(i));return d},one:function(a,b){return this.bind(a,b,!0)},trigger:function(a,b){var c=this,d=c._events[a],e,f=!1;if(d){b=b||{},b.sender=c,b.preventDefault=function(){f=!0},b.isDefaultPrevented=function(){return f};for(e=0;e<d.length;e++)d[e].call(c,b)}return f},unbind:function(a,b){var c=this,d=c._events[a],e,f;if(d)if(b)for(e=0,f=d.length;e<f;e++)d[e]===b&&d.splice(e,1);else c._events[a]=[];return c}}),B=/^\w+/,C=/\${([^}]*)}/g,D=/\\}/g,E=/__CURLY__/g,F=/\\#/g,G=/__SHARP__/g;k={paramName:"data",useWithBlock:!0,render:function(a,b){var c,d,e="";for(c=0,d=b.length;c<d;c++)e+=a(b[c]);return e},compile:function(b,e){var f=d({},this,e),g=f.paramName,h=g.match(B)[0],j=f.useWithBlock,k="var o,e=kendo.htmlEncode;",l,m,n;if(i(b)){if(b.length===2)return function(c){return b(a,{data:c}).join("")};return b}k+=j?"with("+g+"){":"",k+="o=",l=b.replace(D,"__CURLY__").replace(C,"#=e($1)#").replace(E,"}").replace(F,"__SHARP__").split("#");for(n=0;n<l.length;n++)k+=A(l[n],n%2===0);k+=j?";}":";",k+="return o;",k=k.replace(G,"#");try{return new Function(h,k)}catch(o){throw new Error(c.format("Invalid template:'{0}' Generated code:'{1}'",b,k))}}},function(){function k(a,b){var e,g,l,m,n=c,u,v=b[a],w;v&&typeof v===r&&typeof v.toJSON===o&&(v=v.toJSON(a)),typeof f===o&&(v=f.call(b,a,v)),w=typeof v;if(w===p)return j(v);if(w===q)return isFinite(v)?String(v):s;if(w===t||w===s)return String(v);if(w===r){if(!v)return s;c+=d,u=[];if(h.apply(v)==="[object Array]"){m=v.length;for(e=0;e<m;e++)u[e]=k(e,v)||s;l=u.length===0?"[]":c?"[\n"+c+u.join(",\n"+c)+"\n"+n+"]":"["+u.join(",")+"]",c=n;return l}if(f&&typeof f===r){m=f.length;for(e=0;e<m;e++)typeof f[e]===p&&(g=f[e],l=k(g,v),l&&u.push(j(g)+(c?": ":":")+l))}else for(g in v)i.call(v,g)&&(l=k(g,v),l&&u.push(j(g)+(c?": ":":")+l));l=u.length===0?"{}":c?"{\n"+c+u.join(",\n"+c)+"\n"+n+"}":"{"+u.join(",")+"}",c=n;return l}}function j(a){b.lastIndex=0;return b.test(a)?'"'+a.replace(b,function(a){var b=e[a];return typeof b===p?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}var a=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,b=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c,d,e={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},f,g,h={}.toString,i={}.hasOwnProperty;typeof Date.prototype.toJSON!==o&&(Date.prototype.toJSON=function(a){var b=this;return isFinite(b.valueOf())?b.getUTCFullYear()+"-"+pad(b.getUTCMonth()+1)+"-"+pad(b.getUTCDate())+"T"+pad(b.getUTCHours())+":"+pad(b.getUTCMinutes())+":"+pad(b.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(a){return this.valueOf()}),typeof l.stringify!==o&&(l.stringify=function(a,b,e){var g;c="",d="";if(typeof e===q)for(g=0;g<e;g+=1)d+=" ";else typeof e===p&&(d=e);f=b;if(b&&typeof b!==o&&(typeof b!==r||typeof b.length!==q))throw new Error("JSON.stringify");return k("",{"":a})})}(),function(){function t(a,c){if(c){if(a instanceof Date)return r(a,c);if(typeof a===q)return s(a,c)}return a!==b?a:""}function s(a,d){var f=c.cultures.current,j=f.numberFormat,o=j.groupSize[0],p=j[k],q=j[i],r=j.decimals,s=j.pattern[0],t=[],u,v,w,x,y,z=a<0,A,B,C,D,E=h,F=h,G,H,I,J,K,L,M=-1,N;if(a===b)return h;if(!isFinite(a))return a;if(!d)return f.name.length?a.toLocaleString():a.toString();y=e.exec(d);if(y){d=y[1].toLowerCase(),v=d==="c",w=d==="p";if(v||w)j=v?j.currency:j.percent,o=j.groupSize[0],p=j[k],q=j[i],r=j.decimals,u=j.symbol,s=j.pattern[z?0:1];x=y[2],x&&(r=+x);if(d==="e")return x?a.toExponential(r):a.toExponential();w&&(a*=100),a=a.toFixed(r),a=a.split(i),A=a[0],B=a[1],z&&(A=A.substring(1)),F=A,C=A.length;if(C>=o){F=h;for(G=0;G<C;G++)G>0&&(C-G)%o===0&&(F+=p),F+=A.charAt(G)}B&&(F+=q+B);if(d==="n"&&!z)return F;a=h;for(G=0,H=s.length;G<H;G++)I=s.charAt(G),I==="n"?a+=F:I==="$"||I==="%"?a+=u:a+=I;return a}d=d.split(";");if(z&&d[1])a=-a,d=d[1];else if(a===0){d=d[2]||d[0];if(d.indexOf(l)==-1&&d.indexOf(m)==-1)return d}else d=d[0];if(d.indexOf("'")>-1||d.indexOf('"')>-1)d=d.replace(g,function(a){t.push(a);return n});v=d.indexOf("$")!=-1,w=d.indexOf("%")!=-1,w&&(a*=100);if(v||w)j=v?j.currency:j.percent,o=j.groupSize[0],p=j[k],q=j[i],r=j.decimals,u=j.symbol;J=d.indexOf(i),H=d.length,J!=-1?(K=d.lastIndexOf(l),L=d.lastIndexOf(m),L!=-1&&(F=a.toFixed(L-J),a=a.toString(),a=a.length>F.length&&K>L?a:F)):a=a.toFixed(0),K=d.indexOf(l),L=d.indexOf(m),K==-1&&L!=-1?M=L:K!=-1&&L==-1?M=K:M=K>L?L:K,K=d.lastIndexOf(l),L=d.lastIndexOf(m),K==-1&&L!=-1?N=L:K!=-1&&L==-1?N=K:N=K>L?K:L,M==H&&(N=M);if(M!=-1){F=a.toString().split(i),A=F[0],B=F[1]||h,C=A.length,D=B.length;if(C>=o&&d.indexOf(k)!=-1){F=h;for(G=0;G<C;G++)G>0&&(C-G)%o===0&&(F+=p),F+=A.charAt(G);A=F}a=d.substring(0,M);for(G=M;G<H;G++){I=d.charAt(G);if(J==-1){if(N-G<C){a+=A;break}}else{L!=-1&&L<G&&(E=h),J-G<=C&&J-G>-1&&(a+=A,G=J);if(J===G){a+=(B?q:h)+B,G+=N-J+1;continue}}if(I===m)a+=I,E=I;else if(I===l)a+=E;else if(I===k)continue}N>=M&&(a+=d.substring(N+1));if(v||w){F=h;for(G=0,H=a.length;G<H;G++)I=a.charAt(G),F+=I==="$"||I==="%"?u:I;a=F}if(t[0]){H=t.length;for(G=0;G<H;G++)a=a.replace(n,t[G])}}return a}function r(a,e){var f=c.cultures.current.calendar,g=f.days,h=f.months;e=f.patterns[e]||e;return e.replace(d,function(c){var d;c==="d"?d=a.getDate():c==="dd"?d=p(a.getDate()):c==="ddd"?d=g.namesAbbr[a.getDay()]:c==="dddd"?d=g.names[a.getDay()]:c==="M"?d=a.getMonth()+1:c==="MM"?d=p(a.getMonth()+1):c==="MMM"?d=h.namesAbbr[a.getMonth()]:c==="MMMM"?d=h.names[a.getMonth()]:c==="yy"?d=p(a.getFullYear()%100):c==="yyyy"?d=a.getFullYear():c==="h"?d=a.getHours()%12||12:c==="hh"?d=p(a.getHours()%12||12):c==="H"?d=a.getHours():c==="HH"?d=p(a.getHours()):c==="m"?d=a.getMinutes():c==="mm"?d=p(a.getMinutes()):c==="s"?d=a.getSeconds():c==="ss"?d=p(a.getSeconds()):c==="f"?d=j.floor(a.getMilliseconds()/100):c==="ff"?d=j.floor(a.getMilliseconds()/10):c==="fff"?d=a.getMilliseconds():c==="tt"&&(d=a.getHours()<12?f.AM[0]:f.PM[0]);return d!==b?d:c.slice(1,c.length-1)})}function p(a){return a<10?"0"+a:a}var a=/{(\d+)(:[^\}]+)?}/g,d=/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|ss|s|"[^"]*"|'[^']*'/g,e=/^(n|c|p|e)(\d*)$/i,g=/["'].*?["']/g,h="",i=".",k=",",l="#",m="0",n="??",o="en-US";c.cultures={"en-US":{name:o,numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"$"}},calendars:{standard:{days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December"],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",F:"dddd, MMMM dd, yyyy h:mm:ss tt",g:"M/d/yyyy h:mm tt",G:"M/d/yyyy h:mm:ss tt",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'ddTHH':'mm':'ss",t:"h:mm tt",T:"h:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":"/",":":":",firstDay:0}}}},c.culture=function(a){if(a===b)return c.cultures.current;var d=c.cultures,e=d[a]||d[o];e.calendar=e.calendars.standard,d.current=e},c.culture(o),x&&(t=f(x.format,x)),c.format=function(b){var c=arguments;return b.replace(a,function(a,b,d){var e=c[parseInt(b)+1];return t(e,d?d.substring(1):"")})},c.toString=t}(),function(){function h(a,b,c){if(!a)return null;var d=function(a){var c=0;while(b[q]===a)c++,q++;c>0&&(q-=1);return c},f=function(b){var c=new RegExp("^\\d{1,"+b+"}"),d=a.substr(r,b).match(c);if(d){d=d[0],r+=d.length;return parseInt(d,10)}return null},g=function(b){var c=0,d=b.length,e,f;for(;c<d;c++){e=b[c],f=e.length;if(a.substr(r,f)==e){r+=f;return c+1}}return null},h=function(){a.charAt(r)==b[q]&&r++},i=c.calendar,j=null,k=null,l=null,m=null,n=null,o=null,p=null,q=0,r=0,s=!1,t=new Date,u=t.getFullYear(),v=30,w,x,y,z,A,B,C;b||(b="d"),C=i.patterns[b],C&&(b=C),b=b.split(""),B=b.length;for(;q<B;q++){w=b[q];if(s)w==="'"?s=!1:h();else if(w==="d"){x=d("d"),l=x<3?f(2):g(i.days[x==3?"namesAbbr":"names"]);if(l===null||e(l,1,31))return null}else if(w==="M"){x=d("M"),k=x<3?f(2):g(i.months[x==3?"namesAbbr":"names"]);if(k===null||e(k,1,12))return null;k-=1}else if(w==="y")x=d("y"),j=f(x<3?2:4),j===null&&(j=u),j<v&&(j=u-u%100+j);else if(w==="h"){d("h"),m=f(2),m==12&&(m=0);if(m===null||e(m,0,11))return null}else if(w==="H"){d("H"),m=f(2);if(m===null||e(m,0,23))return null}else if(w==="m"){d("m"),n=f(2);if(n===null||e(n,0,59))return null}else if(w==="s"){d("s"),o=f(2);if(o===null||e(o,0,59))return null}else if(w==="f"){x=d("f"),p=f(x);if(p===null||e(p,0,999))return null}else w==="t"?(x=d("t"),A=g(i.PM)):w==="'"?(h(),s=!0):h()}A&&m<12&&(m+=12),l===null&&(l=1);return new Date(j,k,l,m,n,o,p)}function e(a,b,c){return!(a>=b&&a<=c)}var a=/\u00A0/g,b=/[eE][-+]?[0-9]+/,d=["G","g","d","F","D","y","m","T","t"];c.parseDate=function(a,b,e){if(a instanceof Date)return a;var f=0,i=null,j,k,l;e?typeof e===p&&(c.culture(e),e=c.culture()):e=c.culture();if(!b){b=[],l=e.calendar.patterns,j=d.length;for(;f<j;f++)b[f]=l[d[f]];b[f]="ddd MMM dd yyyy HH:mm:ss",f=0}b=g(b)?b:[b],j=b.length;for(;f<j;f++){i=h(a,b[f],e);if(i)return i}return i},c.parseInt=function(a,b){var d=c.parseFloat(a,b);d&&(d=d|0);return d},c.parseFloat=function(d,e){if(!d&&d!==0)return null;if(typeof d===q)return d;d=d.toString(),e=c.cultures[e]||c.cultures.current;var f=e.numberFormat,g=f.percent,h=f.currency,i=h.symbol,j=g.symbol,k=d.indexOf("-")>-1,l;if(b.test(d)){d=parseFloat(d),isNaN(d)&&(d=null);return d}d.indexOf(i)>-1?(f=h,l=f.pattern[0].replace("$",i).split("n"),d.indexOf(l[0])>-1&&d.indexOf(l[1])>-1&&(d=d.replace(l[0],"").replace(l[1],""),k=!0)):d.indexOf(j)>-1&&(f=g,i=j),d=d.replace("-","").replace(i,"").replace(a," ").split(f[","].replace(a," ")).join("").replace(f["."],"."),d=parseFloat(d),isNaN(d)?d=null:k&&(d*=-1);return d},x&&(c.parseDate=f(x.parseDate,x),c.parseFloat=f(x.parseFloat,x))}(),function(){m.scrollbar=function(){var a=document.createElement("div"),b;a.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both",a.innerHTML=" ",document.body.appendChild(a),b=a.offsetWidth-a.scrollWidth,document.body.removeChild(a);return b};var a=document.createElement("table");try{a.innerHTML="<tr><td></td></tr>",m.tbodyInnerHtml=!0}catch(c){m.tbodyInnerHtml=!1}m.touch="ontouchstart"in window,m.pointers=navigator.msPointerEnabled;var d=m.transitions=!1,f=m.transforms=!1;m.hasHW3D="WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in document.documentElement.style,m.hasNativeScrolling=typeof document.documentElement.style.webkitOverflowScrolling=="string",e(["Moz","webkit","O","ms"],function(){var b=this.toString(),c=typeof a.style[b+"Transition"]===p;if(c||typeof a.style[b+"Transform"]===p){var e=b.toLowerCase();f={css:"-"+e+"-",prefix:b,event:e==="o"||e==="webkit"?e:""},c&&(d=f,d.event=d.event?d.event+"TransitionEnd":"transitionend");return!1}}),m.transforms=f,m.transitions=d,m.detectOS=function(a){var b=!1,c=[],d={fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android)\s+(\d+)\.(\d+(\.\d+)?)/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|PlayBook).*?Version\/(\d+)\.(\d+(\.\d+)?)/},e={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i},f=function(a){for(var b in e)if(e.hasOwnProperty(b)&&e[b].test(a))return b;return a};for(var g in d)if(d.hasOwnProperty(g)){c=a.match(d[g]);if(c){b={},b.device=g,b.name=f(g),b[b.name]=!0,b.majorVersion=c[2],b.minorVersion=c[3].replace("_","."),b.flatVersion=b.majorVersion+b.minorVersion.replace(".",""),b.flatVersion=b.flatVersion+Array(4-b.flatVersion.length).join("0"),b.appMode=window.navigator.standalone||/file|local/.test(window.location.protocol)||typeof window.PhoneGap!==u;break}}return b},m.mobileOS=m.detectOS(navigator.userAgent),m.zoomLevel=function(){return m.touch?document.documentElement.clientWidth/window.innerWidth:1},m.devicePixelRatio=window.devicePixelRatio===b?1:window.devicePixelRatio,m.placeholder="placeholder"in document.createElement("input"),m.stableSort=function(){var a=[0,1,2,3,4,5,6,7,8,9,10,11,12].sort(function(){return 0});return a[0]===0&&a[1]===1&&a[2]===2&&a[3]===3&&a[4]===4&&a[5]===5&&a[6]===6&&a[7]===7&&a[8]===8&&a[9]===9&&a[10]===10&&a[11]===11&&a[12]===12}()}();var N={left:{reverse:"right"},right:{reverse:"left"},down:{reverse:"up"},up:{reverse:"down"},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out"},out:{reverse:"in"}},P={promise:function(a,b){b.show&&a.css({display:a.data("olddisplay")||"block"}).css("display"),b.hide&&a.data("olddisplay",a.css("display")).hide(),b.init&&b.init(),b.completeCallback&&b.completeCallback(a),a.dequeue()},transitionPromise:function(a,b,d){var e=c.wrap(a);e.append(b),a.hide(),b.show(),d.completeCallback&&d.completeCallback(a);return a}};d(a.fn,{kendoStop:function(a,b){return this.stop(a,b)},kendoAnimate:function(a,b,c,d){return R(this,a,b,c,d)},kendoAnimateTo:function(a,b,c,d,e){return S(this,a,b,c,d,e)}}),d(a.fn,{kendoAddClass:function(a,b){return T(this,a,b,!0)},kendoRemoveClass:function(a,b){return T(this,a,b,!1)},kendoToggleClass:function(a,b,c){return T(this,a,b,c)}});var U=/&/g,V=/</g,W=/>/g,Y=function(a){return{idx:0,x:a.pageX,y:a.pageY}},Z=function(a){return a.target};m.touch&&(Y=function(a,b){var c=a.changedTouches||a.originalEvent.changedTouches;if(b){var d=null;e(c,function(a,c){b==c.identifier&&(d={idx:c.identifier,x:c.pageX,y:c.pageY})});return d}return{idx:c[0].identifier,x:c[0].pageX,y:c[0].pageY}},Z=function(a){var b="originalEvent"in a?a.originalEvent.changedTouches:"changedTouches"in a?a.changedTouches:null;return b?document.elementFromPoint(b[0].clientX,b[0].clientY):null},e(["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap"],function(b,c){a.fn[c]=function(a){return this.bind(c,a)}})),m.touch?(m.mousedown="touchstart",m.mouseup="touchend",m.mousemove="touchmove",m.mousecancel="touchcancel"):(m.mousemove="mousemove",m.mousedown="mousedown",m.mouseup="mouseup",m.mousecancel="mouseleave");var $=function(a){var b="d",c,d,e,f,g=1;for(d=0,e=a.length;d<e;d++)f=a[d],f!==""&&(c=f.indexOf("["),c!=0&&(c==-1?f="."+f:(g++,f="."+f.substring(0,c)+" || {})"+f.substring(c))),g++,b+=f+(d<e-1?" || {})":")"));return Array(g).join("(")+b},_=/^([a-z]+:)?\/\//i;d(c,{ui:{progress:function(b,c){var d=b.find(".k-loading-mask");c?d.length||(d=a("<div class='k-loading-mask'><span class='k-loading-text'>Loading...</span><div class='k-loading-image'/><div class='k-loading-color'/></div>").width("100%").height("100%").prependTo(b).css({top:b.scrollTop(),left:b.scrollLeft()})):d&&d.remove()}},fx:P,data:{},mobile:{},keys:{DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F10:121,F12:123},support:m,animate:R,ns:"",attr:function(a){return"data-"+c.ns+a},wrap:H,deepExtend:I,size:K,isNodeEmpty:L,getOffset:M,parseEffects:O,toggleClass:T,directions:N,Observable:z,Class:y,Template:k,template:f(k.compile,k),render:f(k.render,k),stringify:f(l.stringify,l),touchLocation:Y,eventTarget:Z,htmlEncode:X,isLocalUrl:function(a){return a&&!_.test(a)},expr:function(a,b){a=a||"",a&&a.charAt(0)!=="["&&(a="."+a),b?a=$(a.split(".")):a="d"+a;return a},getter:function(a,b){return v[a]=v[a]||new Function("d","return "+c.expr(a,b))},setter:function(a){return w[a]=w[a]||new Function("d,value","d."+a+"=value")},accessor:function(a){return{get:c.getter(a),set:c.setter(a)}},guid:function(){var a="",b,c;for(b=0;b<32;b++){c=j.random()*16|0;if(b==8||b==12||b==16||b==20)a+="-";a+=(b==12?4:b==16?c&3|8:c).toString(16)}return a},roleSelector:function(a){return"["+c.attr("role")+"="+a+"]"},logToConsole:function(a){typeof console!="undefined"&&console.log&&console.log(a)}});var ba=z.extend({init:function(b,e){var f=this;f.element=a(b),z.fn.init.call(f),f.options=d(!0,{},f.options,e),f.element.attr(c.attr("role"))||f.element.attr(c.attr("role"),(f.options.name||"").toLowerCase()),f.element.data("kendo"+f.options.prefix+f.options.name,f),f.bind(f.events,f.options)},events:[],options:{prefix:""},setOptions:function(b){a.extend(this.options,b),this.bind(this.events,b)}});c.notify=h;var bb=/template$/i,bc=/^(?:\{.*\}|\[.*\])$/,bd=/([A-Z])/g;c.initWidget=function(d,e,f){var g,h,i,j,k,l,m;d=d.nodeType?d:d[0],l=d.getAttribute("data-"+c.ns+"role");if(!!l){m=be(d,"dataSource"),i=(f||c.ui).roles[l];if(!i)return;e=a.extend({},bf(d,i.fn.options),e),m&&(typeof m===p?e.dataSource=c.getter(m)(window):e.dataSource=m);for(j=0,k=i.fn.events.length;j<k;j++)h=i.fn.events[j],value=be(d,h),value!==b&&(e[h]=c.getter(value)(window));g=a(d).data("kendo"+i.fn.options.name),g?g.setOptions(e):g=new i(d,e);return g}},c.init=function(b,d){a(b).find("[data-"+c.ns+"role]").andSelf().each(function(){c.initWidget(this,{},d)})},c.parseOptions=bf,d(c.ui,{Widget:ba,roles:{},plugin:function(b,d,e){var f=b.fn.options.name;d=d||c.ui,e=e||"",d[f]=b,d.roles[f.toLowerCase()]=b,f="kendo"+e+f,a.fn[f]=function(c){a(this).each(function(){new b(this,c)});return this}}});var bg=ba.extend({init:function(a,b){ba.fn.init.call(this,a,b),this.wrapper=this.element},options:{prefix:"Mobile"},events:[],viewShow:a.noop,viewInit:function(a){this.view=a}});a.extend(c.mobile,{init:function(a){c.init(a,c.mobile.ui)},ui:{Widget:bg,roles:{},plugin:function(a){c.ui.plugin(a,c.mobile.ui,"Mobile")}}}),c.touchScroller=function(a,b){if(m.touch&&c.mobile.ui.Scroller){a.kendoMobileScroller(b);return a.data("kendoMobileScroller")}return!1}})(jQuery),function(a,b){function V(a,b){if(k){var c=a.css(L);if(c=="none")return b=="scale"?1:0;var d=c.match(new RegExp(b+"\\s*\\(([\\d\\w\\.]+)")),e=0;d?e=N(d[1]):(d=c.match(q)||[0,0,0,0],s.test(b)?e=N(d[2]):b.toLowerCase()=="translatey"?e=N(d[3]):b.toLowerCase()=="scale"&&(e=parseFloat(d[1])));return e}return a.css(b)}function R(b){var d=b.effects,e;d==="zoom"&&(d="zoomIn fadeIn"),d==="slide"&&(d="slide:left"),d==="fade"&&(d="fadeIn"),d==="overlay"&&(d="slideIn:left"),/^overlay:(.+)$/.test(d)&&(d="slideIn:"+RegExp.$1),e=b.reverse&&/^(slide:)/.test(d),e&&delete b.reverse,b.effects=a.extend(c.parseEffects(d,e),{show:!0});return b}function Q(a){a.effects.slideIn=a.effects.slide,delete a.effects.slide;return a}function P(a,b){var c={};if(b){if(document.defaultView&&document.defaultView.getComputedStyle){var d=document.defaultView.getComputedStyle(a,"");e(b,function(a,b){c[b]=d.getPropertyValue(b)})}else if(a.currentStyle){var f=a.currentStyle;e(b,function(a,b){c[b]=f[b.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()})]})}}else c=document.defaultView.getComputedStyle(a,"");return c}function O(a,b){return N(a.css(b))}function N(a){return parseInt(a,10)}var c=window.kendo,d=c.fx,e=a.each,f=a.extend,g=a.proxy,h=c.size,i=a.browser,j=c.support,k=j.transforms,l=j.transitions,m={scale:0,scaleX:0,scaleY:0,scale3d:0},n={translate:0,translateX:0,translateY:0,translate3d:0},o=typeof document.documentElement.style.zoom!="undefined"&&a.browser.msie,p=[1,0,0,0,0,1,0,0,0,0,1,1,0,0,0,1],q=/matrix3?d?\s*\(.*,\s*([\d\w\.\-]+),\s*([\d\w\.\-]+),\s*([\d\w\.\-]+)/,r=/^(-?[\d\.\-]+)?[\w\s]*,?\s*(-?[\d\.\-]+)?[\w\s]*/i,s=/translatex?$/i,t=/(zoom|fade|expand)(\w+)/,u=/(zoom|fade|expand)/,v=["perspective","rotate","rotateX","rotateY","rotateZ","rotate3d","scale","scaleX","scaleY","scaleZ","scale3d","skew","skewX","skewY","translate","translateX","translateY","translateZ","translate3d","matrix","matrix3d"],w=k.css,x=Math.round,y="",z="px",A="none",B="auto",C="scale",D="width",E="height",F="hidden",G="origin",H="abortId",I="overflow",J="translate",K=w+"transition",L=w+"transform";c.directions={left:{reverse:"right",property:"left",transition:"translateX",vertical:!1,modifier:-1},right:{reverse:"left",property:"left",transition:"translateX",vertical:!1,modifier:1},down:{reverse:"up",property:"top",transition:"translateY",vertical:!0,modifier:1},up:{reverse:"down",property:"top",transition:"translateY",vertical:!0,modifier:-1},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out",modifier:-1},out:{reverse:"in",modifier:1}},f(a.fn,{kendoStop:function(a,b){return l?c.fx.stopQueue(this,a||!1,b||!1):this.stop(a,b)}}),a.fn.scale=function(b){if(typeof b=="undefined")return V(this,"scale");a(this).css(L,"scale("+b+")");return this};var M=a.fx.prototype.cur;a.fx.prototype.cur=function(){if(this.prop=="scale")return parseFloat(a(this.elem).scale());return M.apply(this,arguments)},a.fx.step.scale=function(b){a(b.elem).scale(b.now)},c.toggleClass=function(a,b,c,d){b&&(b=b.split(" "),l&&(c=f({exclusive:"all",duration:400,ease:"ease-out"},c),a.css(K,c.exclusive+" "+c.duration+"ms "+c.ease),setTimeout(function(){a.css(K,A).css(E)},c.duration)),e(b,function(b,c){a.toggleClass(c,d)}));return a},c.parseEffects=function(a,b){var d={};typeof a=="string"?e(a.split(" "),function(a,e){var f=!u.test(e),g=e.replace(t,function(a,b,c){return b+":"+c.toLowerCase()}),h=g.split(":"),i=h[1],j={};h.length>1&&(j.direction=b&&f?c.directions[i].reverse:i),d[h[0]]=j}):e(a,function(a){var e=this.direction;e&&b&&!u.test(a)&&(this.direction=c.directions[e].reverse),d[a]=this});return d};if(l){function S(a){var b=[];for(var c in a)b.push(c);return b}function T(a){a.css(K,A),i.safari||a.css(E)}function U(a){var b=a.object;!a||(b.css(a.setup),b.css(K),b.data(H,setTimeout(function(){T(b),b.dequeue(),a.complete.call(b)},a.duration)),b.css(a.CSS))}f(c.fx,{transition:function(b,c,d){d=f({duration:200,ease:"ease-out",complete:null,exclusive:"all"},d),d.duration=a.fx?a.fx.speeds[d.duration]||d.duration:d.duration;var e=[],g={},h;for(h in c)v.indexOf(h)!=-1?e.push(h+"("+c[h]+")"):g[h]=c[h];e.length&&(g[L]=e.join(" "));var i={keys:S(g),CSS:g,object:b,setup:{},duration:d.duration,complete:d.complete};i.setup[K]=d.exclusive+" "+d.duration+"ms "+d.ease;var j=b.data("keys")||[];a.merge(j,i.keys),b.data("keys",a.unique(j)),U(i)},stopQueue:function(a,b,c){a.data(H)&&(clearTimeout(a.data(H)),a.removeData(H));var d=this,e=a.data("keys"),f=c===!1&&e;if(f)var g=P(a[0],e);T(a),f&&a.css(g),a.removeData("keys"),d.complete&&d.complete.call(a),a.stop(b);return a}})}c.fx.promise=function(b,d){var g=[],i;i=c.parseEffects(d.effects),d.effects=i,b.data("animating",!0);var j={keep:[],restore:[]},l={},m={setup:[],teardown:[]},n={},o=a.Deferred(function(g){if(h(i)){var o=f({},d,{complete:g.resolve});e(i,function(g,h){var i=c.fx[g];if(i){var k=c.directions[h.direction];h.direction&&k&&(h.direction=d.reverse?k.reverse:h.direction,b.data(g,h)),o=f(!0,o,h),e(m,function(a){i[a]&&m[a].push(i[a])}),e(j,function(b){i[b]&&a.merge(j[b],i[b])}),i.css&&(l=f(l,i.css))}});if(m.setup.length){e(a.unique(j.keep),function(a,c){b.data(c)||b.data(c,b.css(c))}),d.show&&(l=f(l,{display:b.data("olddisplay")||"block"}));var p=l.transform;delete l.transform,k&&(l[L]=p),b.css(l),b.css("overflow"),e(m.setup,function(){n=f(n,this(b,o))}),c.fx.animate&&(d.init(),c.fx.animate(b,n,o));return}}else d.show&&(b.css({display:b.data("olddisplay")||"block"}).css("display"),d.init());g.resolve()}).promise();g.push(o),a.when.apply(null,g).then(function(){b.removeData("animating").dequeue(),d.hide&&b.data("olddisplay",b.css("display")).hide();if(h(i)){var c=function(){e(a.unique(j.restore),function(a,c){b.css(c,b.data(c))})};a.browser.msie?setTimeout(c,0):c(),e(m.teardown,function(){this(b,d)})}d.completeCallback&&d.completeCallback(b)})},c.fx.transitionPromise=function(a,b,d){c.fx.animateTo(a,b,d);return a},f(c.fx,{animate:function(c,g,h){var i=h.transition!==!1;delete h.transition,l&&"transition"in d&&i?d.transition(c,g,h):c.each(function(){var c=a(this),d={};e(v,function(a,e){var h,i=g?g[e]+" ":null;if(i){var j=g;if(e in m&&g[e]!==b){h=i.match(r);if(o){var l=(1-h[1])/2;f(j,{zoom:+h[1],marginLeft:c.width()*l,marginTop:c.height()*l})}else k&&f(j,{scale:+h[0]})}else if(e in n&&g[e]!==b){var p=c.css("position"),q=p=="absolute"||p=="fixed";c.data(J)||(q?c.data(J,{top:O(c,"top")||0,left:O(c,"left")||0,bottom:O(c,"bottom"),right:O(c,"right")}):c.data(J,{top:O(c,"marginTop")||0,left:O(c,"marginLeft")||0}));var s=c.data(J);h=i.match(r);if(h){var t=e==J+"Y"?+null:+h[1],u=e==J+"Y"?+h[1]:+h[2];q?(isNaN(s.right)?!isNaN(t)&&f(j,{left:s.left+t}):!isNaN(t)&&f(j,{right:s.right-t}),isNaN(s.bottom)?!isNaN(u)&&f(j,{top:s.top+u}):!isNaN(u)&&f(j,{bottom:s.bottom-u})):(!isNaN(t)&&f(j,{marginLeft:s.left+t}),!isNaN(u)&&f(j,{marginTop:s.top+u}))}}!k&&e!="scale"&&e in j&&delete j[e],j&&f(d,j)}}),a.browser.msie&&delete d.scale,c.animate(d,f({queue:!1,show:!1,hide:!1,duration:h.duration,complete:h.complete}))})},animateTo:function(b,c,d){function h(){c[0].style.cssText="",b[0].style.cssText="",f.css(I,g),d.completeCallback&&d.completeCallback()}var e,f=b.parents().filter(c.parents()).first(),g=f.css(I);d=R(d),f.css(I,"hidden"),a.each(d.effects,function(a,b){e=e||b.direction}),d.complete=a.browser.msie?function(){setTimeout(h)}:h,"slide"in d.effects?(b.kendoAnimate(d),c.kendoAnimate(Q(d))):(d.reverse?b:c).kendoAnimate(d)},fade:{css:{opacity:function(){var c=a(this).data("fade"),d=c?c.direction=="in":!1;return d&&!this.style.opacity?0:b}},setup:function(a,b){return f({opacity:b.effects.fade.direction=="out"?0:1},b.properties)}},zoom:{css:{transform:function(){var c=a(this).data("zoom"),d=c?c.direction=="in":!1;return d&&l?"scale(.01)":b},zoom:function(){var c=a(this).data("zoom"),d=c?c.direction=="in":!1;return d&&o?".01":b}},setup:function(b,c){var d=c.effects.zoom.direction=="out";if(o){var e=a.browser.version,g=b[0].currentStyle,h=g.width.indexOf("%")!=-1?b.parent().width():b.width(),i=g.height.indexOf("%")!=-1?b.parent().height():parseInt(g.height,10),j=e<9&&c.effects.fade?0:(1-parseInt(b.css("zoom"),10)/100)/2;b.css({marginLeft:h*(e<8?0:j),marginTop:i*j})}return f({scale:d?.01:1},c.properties)}},slide:{setup:function(a,b){var d=c.directions[b.effects.slide.direction],e={},g,h=b.reverse,i=l&&b.transition!==!1?d.transition:d.property,j=b.divisor||1;if(!h){var k=a.data(G);g=d.modifier*(d.vertical?a.outerHeight():a.outerWidth())/j,!k&&k!==0&&a.data(G,parseFloat(V(a,i)))}e[i]=h?a.data(G)||0:(a.data(G)||0)+g+z;return f(e,b.properties)}},slideMargin:{setup:function(a,b){var c=a.data(G),d=b.offset,e,g={},h=b.reverse;!h&&!c&&c!==0&&a.data(G,parseInt(a.css("margin-"+b.axis),10)),e=a.data(G)||0,g["margin-"+b.axis]=h?e:e+d;return f(g,b.properties)}},slideTo:{setup:function(a,b){var c=(b.offset+"").split(","),d={},e=b.reverse;l&&b.transition!==!1?d.translate=e?0:c+z:(d.left=e?0:c[0],d.top=e?0:c[1]),a.css("left");return f(d,b.properties)}},slideIn:{setup:function(a,b){var d=c.directions[b.effects.slideIn.direction],e=b.reverse,g=e?c.directions[d.reverse]:d,h=-g.modifier*(g.vertical?a.outerHeight():a.outerWidth()),i={};l&&b.transition!==!1?(a.css(L,g.transition+"("+(e?0:h)+"px)"),i[g.transition]=e?h+z:0,a.css(L)):(!e&&a.css(g.property,h+z),i[g.property]=e?h+z:0,a.css(g.property));return f(i,b.properties)}},expand:{keep:[I],css:{overflow:F},restore:[I],setup:function(a,c){var d=c.reverse,e=c.effects.expand.direction,g=(e?e=="vertical":!0)?E:D,h=a[0].style[g],i=a.data(g),j=N(i||h)||x(a.css(g,B)[g]()),k={};k[g]=(d?0:j)+z,a.css(g,d?j:0).css(g),i===b&&a.data(g,h);return f(k,c.properties)},teardown:function(a,b){var c=b.effects.expand.direction,d=(c?c=="vertical":!0)?E:D,e=a.data(d);(e==B||e===y)&&setTimeout(function(){a.css(d,B).css(d)},0)}},simple:{setup:function(a,b){return b.properties}}}),c.fx.expandVertical=c.fx.expand;var W=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){setTimeout(a,1e3/60)},X=c.Class.extend({init:function(){var a=this;a._tickProxy=g(a._tick,a),a._started=!1},tick:a.noop,done:a.noop,onEnd:a.noop,onCancel:a.noop,start:function(){this._started=!0,W(this._tickProxy)},cancel:function(){this._started=!1,this.onCancel()},_tick:function(){var a=this;!a._started||(a.tick(),a.done()?(a._started=!1,a.onEnd()):W(a._tickProxy))}}),Y=X.extend({init:function(a){var b=this;f(b,a),X.fn.init.call(b)},done:function(){return this.timePassed()>=this.duration},timePassed:function(){return Math.min(this.duration,+(new Date)-this.startDate)},moveTo:function(a){var b=this,c=b.movable;b.initial=c[b.axis],b.delta=a.location-b.initial,b.duration=a.duration||300,b.tick=b._easeProxy(a.ease||Ease.easeOutQuad),b.startDate=+(new Date),b.start()},_easeProxy:function(a){var b=this;return function(){b.movable.moveAxis(b.axis,a(b.timePassed(),b.initial,b.delta,b.duration))}}});f(Y,{easeOutExpo:function(a,b,c,d){return a==d?b+c:c*(-Math.pow(2,-10*a/d)+1)+b},easeOutBack:function(a,b,c,d,e){e=1.70158;return c*((a=a/d-1)*a*((e+1)*a+e)+1)+b}}),d.Animation=X,d.Transition=Y}(jQuery),function(a,b){function h(d){var f=[],g=d.logic||"and",i,j,k,l,m,n,o,p=d.filters;for(i=0,j=p.length;i<j;i++)d=p[i],k=d.field,o=d.value,n=d.operator,d.filters?d=h(d):(k=k.replace(/\./g,"/"),d=e[n],d&&o!==b&&(l=a.type(o),l==="string"?(m="'{1}'",o=o.replace(/'/g,"''")):l==="date"?m="datetime'{1:yyyy-MM-ddTHH:mm:ss}'":m="{1}",d.length>3?d!=="substringof"?m="{0}({2},"+m+")":m="{0}("+m+",{2})":m="{2} {0} "+m,d=c.format(m,d,o,k))),f.push(d);d=f.join(" "+g+" "),f.length>1&&(d="("+d+")");return d}var c=window.kendo,d=a.extend,e={eq:"eq",neq:"ne",gt:"gt",gte:"ge",lt:"lt",lte:"le",contains:"substringof",endswith:"endswith",startswith:"startswith"},f={pageSize:a.noop,page:a.noop,filter:function(a,b){b&&(a.$filter=h(b))},sort:function(b,c){b.$orderby=a.map(c,function(a){var b=a.field.replace(/\./g,"/");a.dir==="desc"&&(b+=" desc");return b}).join(",")},skip:function(a,b){b&&(a.$skip=b)},take:function(a,b){b&&(a.$top=b)}},g={read:{dataType:"jsonp"}};d(!0,c.data,{schemas:{odata:{type:"json",data:function(a){return a.d.results||[a.d]},total:"d.__count"}},transports:{odata:{read:{cache:!0,dataType:"jsonp",jsonp:"$callback"},update:{cache:!0,dataType:"json",contentType:"application/json",type:"PUT"},create:{cache:!0,dataType:"json",contentType:"application/json",type:"POST"},destroy:{cache:!0,dataType:"json",type:"DELETE"},parameterMap:function(a,b){var d,e,h,i;a=a||{},b=b||"read",i=(this.options||g)[b],i=i?i.dataType:"json";if(b==="read"){d={$format:"json",$inlinecount:"allpages"};for(h in a)f[h]?f[h](d,a[h]):d[h]=a[h]}else{if(i!=="json")throw new Error("Only json dataType can be used for "+b+" operation.");if(b!=="destroy"){for(h in a)e=a[h],typeof e=="number"&&(a[h]=e+"");d=c.stringify(a)}}return d}}}})}(jQuery),function(a,b){var c=window.kendo,d=a.isArray,e=a.isPlainObject,f=a.map,g=a.each,h=a.extend,i=c.getter,j=c.Class,k=j.extend({init:function(a){var b=this,i=a.total,j=a.model,k=a.data;if(j){if(e(j)){j.fields&&g(j.fields,function(a,c){e(c)&&c.field?c=h(c,{field:b.getter(c.field)}):c={field:b.getter(c)},j.fields[a]=c});var l=j.id;if(l){var m={};m[b.xpathToMember(l,!0)]={field:b.getter(l)},j.fields=h(m,j.fields),j.id=b.xpathToMember(l)}j=c.data.Model.define(j)}b.model=j}i&&(i=b.getter(i),b.total=function(a){return parseInt(i(a))}),k&&(k=b.xpathToMember(k),b.data=function(a){var c,e,g=b.evaluate(a,k),h,i;g=d(g)?g:[g];if(b.model&&j.fields){i=new b.model;return f(g,function(a){if(a){c={};for(e in j.fields)c[e]=i._parse(e,j.fields[e].field(a));return c}})}return g})},total:function(a){return this.data(a).length},parseDOM:function(a){var c={},e,f,g,h,i,j,k=a.attributes,l=k.length,m;for(m=0;m<l;m++)j=k[m],c["@"+j.nodeName]=j.nodeValue;for(f=a.firstChild;f;f=f.nextSibling)g=f.nodeType,g===3||g===4?c["#text"]=f.nodeValue:g===1&&(e=this.parseDOM(f),h=f.nodeName,i=c[h],d(i)?i.push(e):i!==b?i=[i,e]:i=e,c[h]=i);return c},evaluate:function(a,b){var c=b.split("."),e,f,g,h,i;while(e=c.shift()){a=a[e];if(d(a)){f=[],b=c.join(".");for(i=0,g=a.length;i<g;i++)h=this.evaluate(a[i],b),h=d(h)?h:[h],f.push.apply(f,h);return f}}return a},parse:function(b){var c,d,e={};c=b.documentElement||a.parseXML(b).documentElement,d=this.parseDOM(c),e[c.nodeName]=d;return e},xpathToMember:function(a,b){if(!a)return"";a=a.replace(/^\//,"").replace(/\//g,".");if(a.indexOf("@")>=0)return a.replace(/\.?(@.*)/,b?"$1":'["$1"]');if(a.indexOf("text()")>=0)return a.replace(/(\.?text\(\))/,b?"#text":'["#text"]');return a},getter:function(a){return i(this.xpathToMember(a),!0)}});a.extend(!0,c.data,{XmlDataReader:k,readers:{xml:k}})}(jQuery),function(a,b){function bs(b,c){var d=a(b)[0].tBodies[0],e=d?d.rows:[],f,g,h,i=c.length,j=[],k,l,m,n;for(f=0,g=e.length;f<g;f++){l={},n=!0,k=e[f].cells;for(h=0;h<i;h++)m=k[h],m.nodeName.toLowerCase()!=="th"&&(n=!1,l[c[h].field]=m.innerHTML);n||j.push(l)}return j}function br(b,c){var d=a(b)[0].children,e,f,g=[],h,i=c[0],j=c[1],k,l;for(e=0,f=d.length;e<f;e++)h={},l=d[e],h[i.field]=l.text,k=l.attributes.value,k&&k.specified?k=l.value:k=l.text,h[j.field]=k,g.push(h);return g}function bo(){this._store={}}function bl(a,b){var c=new _(a),b=b||{},d=b.aggregate,e=b.filter;e&&(c=c.filter(e));return c.aggregate(d)}function bk(a,c){var d=new _(a),c=c||{},e=c.group,f=bf(e||[]).concat(ba(c.sort||[])),g,h=c.filter,i=c.skip,j=c.take;h&&(d=d.filter(h),g=d.toArray().length),f&&(d=d.sort(f),e&&(a=d.toArray())),i!==b&&j!==b&&(d=d.range(i,j)),e&&(d=d.group(e,a));return{total:g,data:d.toArray()}}function bj(a){var b,c=a.length,d=Array(c);for(b=0;b<c;b++)d[b]=a[b].toJSON();return d}function bh(a,b,c,d,e){b=b||[];var f,g,h,i,j=b.length;for(f=0;f<j;f++){g=b[f],h=g.aggregate;var k=g.field;a[k]=a[k]||{},a[k][h]=bi[h.toLowerCase()](a[k][h],c,n.accessor(k),d,e)}}function bg(a,b){if(a&&a.getTime&&b&&b.getTime)return a.getTime()===b.getTime();return a===b}function bf(a,c){var d=typeof a===q?{field:a,dir:c}:a,e=h(d)?d:d!==b?[d]:[];return k(e,function(a){return{field:a.field,dir:a.dir||"asc",aggregates:a.aggregates}})}function be(a){return a=h(a)?a:[a]}function bd(a){if(a&&!g(a)){if(h(a)||!a.filters)a={logic:"and",filters:h(a)?a:[a]};bc(a);return a}}function bc(a){var b,c,d,e,f=a.filters;if(f)for(b=0,c=f.length;b<c;b++)d=f[b],e=d.operator,e&&typeof e===q&&(d.operator=bb[e.toLowerCase()]||e),bc(d)}function ba(a,c){if(a){var d=typeof a===q?{field:a,dir:c}:a,e=h(d)?d:d!==b?[d]:[];return i(e,function(a){return!!a.dir})}}function _(a){this.data=a||[]}function U(b,c){if(b===c)return!0;var d=a.type(b),e=a.type(c),f;if(d!==e)return!1;if(d==="date")return b.getTime()===c.getTime();if(d!=="object"&&d!=="array")return!1;for(f in b)if(!U(b[f],c[f]))return!1;return!0}var c=a.extend,d=a.proxy,e=a.isFunction,f=a.isPlainObject,g=a.isEmptyObject,h=a.isArray,i=a.grep,j=a.ajax,k,l=a.each,m=a.noop,n=window.kendo,o=n.Observable,p=n.Class,q="string",r="function",s="create",t="read",u="update",v="destroy",w="change",x="get",y="multiple",z="single",A="error",B="requestStart",C=[s,t,u,v],D=function(a){return a},E=n.getter,F=n.stringify,G=Math,H=[].push,I=[].join,J=[].pop,K=[].splice,L=[].shift,M=[].slice,N=[].unshift,O={}.toString,P=n.support.stableSort,Q=/^\/Date\((.*?)\)\/$/,R=/(?=['\\])/g,S=o.extend({init:function(a,b){var c=this;c.type=b||T,o.fn.init.call(c),c.length=a.length,c.wrapAll(a,c)},wrapAll:function(a,b){var c,d;b=b||[];for(c=0,d=a.length;c<d;c++)b[c]=this.wrap(a[c]);return b},wrap:function(a){var b=this;if(a!==null&&O.call(a)==="[object Object]"){var c=a instanceof b.type||a instanceof X;c||(a=a instanceof T?a.toJSON():a,a=new b.type(a)),a.bind(w,function(a){b.trigger(w,{field:a.field,items:[this],action:"itemchange"})})}return a},push:function(){var a=this.length,b=this.wrapAll(arguments),c;c=H.apply(this,b),this.trigger(w,{action:"add",index:a,items:b});return c},slice:M,join:I,pop:function(){var a=this.length,b=J.apply(this);a&&this.trigger(w,{action:"remove",index:a-1,items:[b]});return b},splice:function(a,b,c){var d=this.wrapAll(M.call(arguments,2)),e;e=K.apply(this,[a,b].concat(d)),e.length&&this.trigger(w,{action:"remove",index:a,items:e}),c&&this.trigger(w,{action:"add",index:a,items:d});return e},shift:function(){var a=this.length,b=L.apply(this);a&&this.trigger(w,{action:"remove",index:0,items:[b]});return b},unshift:function(){var a=this.wrapAll(arguments),b;b=N.apply(this,a),this.trigger(w,{action:"add",index:0,items:a});return b},indexOf:function(a){var b=this,c,d;for(c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1}}),T=o.extend({init:function(a){var b=this,c,d,e;o.fn.init.call(this);for(d in a)c=a[d],d.charAt(0)!="_"&&(e=O.call(c),c=b.wrap(c,d)),b[d]=c;b.uid=n.guid()},shouldSerialize:function(a){return this.hasOwnProperty(a)&&a!=="_events"&&typeof this[a]!==r&&a!=="uid"},toJSON:function(){var a={},b;for(b in this)this.shouldSerialize(b)&&(a[b]=this[b]);return a},get:function(a,b){var c=this,d,e;c.trigger(x,{field:a}),a==="this"?d=c:(e=n.getter(a,!0),d=e(c),b&&typeof d===r&&(d=d.call(c)));return d},_set:function(a,b){var c=this;if(a.indexOf(".")){var d=a.split("."),e="";while(d.length>1){e+=d.shift();var f=n.getter(e,!0)(c);if(f instanceof T){f.set(d.join("."),b);return}e+="."}}n.setter(a)(c,b)},set:function(a,b){var c=this,d=c[a],e;d!=b&&(c.trigger("set",{field:a,value:b})||(c._set(a,c.wrap(b,a)),c.trigger(w,{field:a})))},wrap:function(a,b){var c=this,d=O.call(a);a===null||d!=="[object Object]"||a instanceof bq?a!==null&&d==="[object Array]"&&(a=new S(a),function(b){a.bind(w,function(a){c.trigger(w,{field:b,index:a.index,items:a.items,action:a.action})})}(b)):(a instanceof T||(a=new T(a)),function(b){a.bind(x,function(a){a.field=b+"."+a.field,c.trigger(x,a)}),a.bind(w,function(a){a.field=b+"."+a.field,c.trigger(w,a)})}(b));return a}}),V={number:function(a){return n.parseFloat(a)},date:function(a){if(typeof a===q){var b=Q.exec(a);if(b)return new Date(parseInt(b[1]))}return n.parseDate(a)},"boolean":function(a){if(typeof a===q)return a.toLowerCase()==="true";return!!a},string:function(a){return a+""},"default":function(a){return a}},W={string:"",number:0,date:new Date,"boolean":!1,"default":""},X=T.extend({init:function(c){var d=this;if(!c||a.isEmptyObject(c))c=a.extend({},d.defaults,c);T.fn.init.call(d,c),d.dirty=!1,d.idField&&(d.id=d.get(d.idField),d.id===b&&(d.id=d._defaultId))},shouldSerialize:function(a){return T.fn.shouldSerialize.call(this,a)&&a!=="uid"&&(this.idField==="id"||a!=="id")&&a!=="dirty"&&a!=="_accessors"},_parse:function(a,b){var c=this,d;a=(c.fields||{})[a],a&&(d=a.parse,!d&&a.type&&(d=V[a.type.toLowerCase()]));return d?d(b):b},editable:function(a){a=(this.fields||{})[a];return a?a.editable!==!1:!0},set:function(a,b,c){var d=this;d.editable(a)&&(b=d._parse(a,b),U(b,d.get(a))||(T.fn.set.call(d,a,b,c),d.dirty=!0))},accept:function(a){var b=this;c(b,a),b.idField&&(b.id=b.get(b.idField)),b.dirty=!1},isNew:function(){return this.id===this._defaultId}});X.define=function(a){var d,e=c({},{defaults:{}},a),f=e.id;f&&(e.idField=f),e.id&&delete e.id,f&&(e.defaults[f]=e._defaultId="");for(var g in e.fields){var h=e.fields[g],i=h.type||"default",j=null;g=h.field||g,h.nullable||(j=e.defaults[g]=h.defaultValue!==b?h.defaultValue:W[i.toLowerCase()]),a.id===g&&(e._defaultId=j),e.defaults[g]=j,h.parse=h.parse||V[i]}d=X.extend(e),e.fields&&(d.fields=e.fields,d.idField=e.idField);return d};var Y={selector:function(a){return e(a)?a:E(a)},asc:function(a){var b=this.selector(a);return function(a,c){a=b(a),c=b(c);return a>c?1:a<c?-1:0}},desc:function(a){var b=this.selector(a);return function(a,c){a=b(a),c=b(c);return a<c?1:a>c?-1:0}},create:function(a){return Y[a.dir.toLowerCase()](a.field)},combine:function(a){return function(b,c){var d=a[0](b,c),e,f;for(e=1,f=a.length;e<f;e++)d=d||a[e](b,c);return d}}},Z={selector:function(a){return e(a)?a:E(a)},asc:function(a){var b=this.selector(a);return function(a,c){var d=b(a),e=b(c);if(d===e)return a.__position-c.__position;return d>e?1:d<e?-1:0}},desc:function(a){var b=this.selector(a);return function(a,c){var d=b(a),e=b(c);if(d===e)return a.__position-c.__position;return d<e?1:d>e?-1:0}},create:function(a){return Z[a.dir.toLowerCase()](a.field)},combine:function(a){return function(b,c){var d=a[0](b,c),e,f;for(e=1,f=a.length;e<f;e++)d=d||a[e](b,c);return d}}};k=function(a,b){var c,d=a.length,e=Array(d);for(c=0;c<d;c++)e[c]=b(a[c],c,a);return e};var $=function(){function c(c,d,e,f){var g;e!=b&&(typeof e===q&&(e=a(e),g=Q.exec(e),g?e=new Date(+g[1]):f?(e="'"+e.toLowerCase()+"'",d=d+".toLowerCase()"):e="'"+e+"'"),e.getTime&&(d="("+d+"?"+d+".getTime():"+d+")",e=e.getTime()));return d+" "+c+" "+e}function a(a){return a.replace(R,"\\")}return{eq:function(a,b,d){return c("==",a,b,d)},neq:function(a,b,d){return c("!=",a,b,d)},gt:function(a,b,d){return c(">",a,b,d)},gte:function(a,b,d){return c(">=",a,b,d)},lt:function(a,b,d){return c("<",a,b,d)},lte:function(a,b,d){return c("<=",a,b,d)},startswith:function(b,c,d){d&&(b=b+".toLowerCase()",c&&(c=c.toLowerCase())),c&&(c=a(c));return b+".lastIndexOf('"+c+"', 0) == 0"},endswith:function(b,c,d){d&&(b=b+".toLowerCase()",c&&(c=c.toLowerCase())),c&&(c=a(c));return b+".lastIndexOf('"+c+"') == "+b+".length - "+(c||"").length},contains:function(b,c,d){d&&(b=b+".toLowerCase()",c&&(c=c.toLowerCase())),c&&(c=a(c));return b+".indexOf('"+c+"') >= 0"}}}();_.normalizeFilter=bd,_.filterExpr=function(a){var c=[],d={and:" && ",or:" || "},e,f,g,h,i=[],j=[],k,l,m=a.filters;for(e=0,f=m.length;e<f;e++)g=m[e],k=g.field,l=g.operator,g.filters?(h=_.filterExpr(g),g=h.expression.replace(/__o\[(\d+)\]/g,function(a,b){b=+b;return"__o["+(j.length+b)+"]"}).replace(/__f\[(\d+)\]/g,function(a,b){b=+b;return"__f["+(i.length+b)+"]"}),j.push.apply(j,h.operators),i.push.apply(i,h.fields)):(typeof k===r?(h="__f["+i.length+"](d)",i.push(k)):h=n.expr(k),typeof l===r?(g="__o["+j.length+"]("+h+", "+g.value+")",j.push(l)):g=$[(l||"eq").toLowerCase()](h,g.value,g.ignoreCase!==b?g.ignoreCase:!0)),c.push(g);return{expression:"("+c.join(d[a.logic])+")",fields:i,operators:j}};var bb={"==":"eq",equals:"eq",isequalto:"eq",equalto:"eq",equal:"eq","!=":"neq",ne:"neq",notequals:"neq",isnotequalto:"neq",notequalto:"neq",notequal:"neq","<":"lt",islessthan:"lt",lessthan:"lt",less:"lt","<=":"lte",le:"lte",islessthanorequalto:"lte",lessthanequal:"lte",">":"gt",isgreaterthan:"gt",greaterthan:"gt",greater:"gt",">=":"gte",isgreaterthanorequalto:"gte",greaterthanequal:"gte",ge:"gte"};_.prototype={toArray:function(){return this.data},range:function(a,b){return new _(this.data.slice(a,a+b))},skip:function(a){return new _(this.data.slice(a))},take:function(a){return new _(this.data.slice(0,a))},select:function(a){return new _(k(this.data,a))},orderBy:function(a){var b=this.data.slice(0),c=e(a)||!a?Y.asc(a):a.compare;return new _(b.sort(c))},orderByDescending:function(a){return new _(this.data.slice(0).sort(Y.desc(a)))},sort:function(a,b,c){var d,e,f=ba(a,b),g=[];c=c||Y;if(f.length){for(d=0,e=f.length;d<e;d++)g.push(c.create(f[d]));return this.orderBy({compare:c.combine(g)})}return this},filter:function(a){var b,c,d,e,f,g=this.data,h,i,j=[],k;a=bd(a);if(!a||a.filters.length===0)return this;e=_.filterExpr(a),h=e.fields,i=e.operators,f=k=new Function("d, __f, __o","return "+e.expression);if(h.length||i.length)k=function(a){return f(a,h,i)};for(b=0,d=g.length;b<d;b++)c=g[b],k(c)&&j.push(c);return new _(j)},group:function(a,b){a=bf(a||[]),b=b||this.data;var c=this,d=new _(c.data),e;a.length>0&&(e=a[0],d=d.groupBy(e).select(function(c){var d=(new _(b)).filter([{field:c.field,operator:"eq",value:c.value}]);return{field:c.field,value:c.value,items:a.length>1?(new _(c.items)).group(a.slice(1),d.toArray()).toArray():c.items,hasSubgroups:a.length>1,aggregates:d.aggregate(e.aggregates)}}));return d},groupBy:function(a){if(g(a)||!this.data.length)return new _([]);var b=a.field,c=this._sortForGrouping(b,a.dir||"asc"),d=n.accessor(b),e,f=d.get(c[0],b),h={field:b,value:f,items:[]},i,j,k,l=[h];for(j=0,k=c.length;j<k;j++)e=c[j],i=d.get(e,b),bg(f,i)||(f=i,h={field:b,value:f,items:[]},l.push(h)),h.items.push(e);return new _(l)},_sortForGrouping:function(a,b){var c,d,e=this.data;if(!P){for(c=0,d=e.length;c<d;c++)e[c].__position=c;e=(new _(e)).sort(a,b,Z).toArray();for(c=0,d=e.length;c<d;c++)delete e[c].__position;return e}return this.sort(a,b).toArray()},aggregate:function(a){var b,c,d={};if(a&&a.length)for(b=0,c=this.data.length;b<c;b++)bh(d,a,this.data[b],b,c);return d}};var bi={sum:function(a,b,c){return a=(a||0)+c.get(b)},count:function(a,b,c){return(a||0)+1},average:function(a,b,c,d,e){a=(a||0)+c.get(b),d==e-1&&(a=a/e);return a},max:function(a,b,c){var a=a||0,d=c.get(b);a<d&&(a=d);return a},min:function(a,b,c){var d=c.get(b),a=a||d;a>d&&(a=d);return a}},bm=p.extend({init:function(a){this.data=a.data},read:function(a){a.success(this.data)},update:function(a){a.success(a.data)},create:function(a){a.success(a.data)},destroy:m}),bn=p.extend({init:function(a){var b=this,d;a=b.options=c({},b.options,a),l(C,function(b,c){typeof a[c]===q&&(a[c]={url:a[c]})}),b.cache=a.cache?bo.create(a.cache):{find:m,add:m},d=a.parameterMap,b.parameterMap=e(d)?d:function(a){var b={};l(a,function(a,c){a in d&&(a=d[a],f(a)&&(c=a.value(c),a=a.key)),b[a]=c});return b}},options:{parameterMap:D},create:function(a){return j(this.setup(a,s))},read:function(c){var d=this,e,f,g,h=d.cache;c=d.setup(c,t),e=c.success||m,f=c.error||m,g=h.find(c.data),g!==b?e(g):(c.success=function(a){h.add(c.data,a),e(a)},a.ajax(c))},update:function(a){return j(this.setup(a,u))},destroy:function(a){return j(this.setup(a,v))},setup:function(a,b){a=a||{};var d=this,f,g=d.options[b],h=e(g.data)?g.data():g.data;a=c(!0,{},g,a),f=c(h,a.data),a.data=d.parameterMap(f,b),e(a.url)&&(a.url=a.url(f));return a}});bo.create=function(a){var b={inmemory:function(){return new bo}};if(f(a)&&e(a.find))return a;if(a===!0)return new bo;return b[a]()},bo.prototype={add:function(a,c){a!==b&&(this._store[F(a)]=c)},find:function(a){return this._store[F(a)]},clear:function(){this._store={}},remove:function(a){delete this._store[F(a)]}};var bp=p.extend({init:function(a){var b=this,c,d,e;a=a||{};for(c in a)d=a[c],b[c]=typeof d===q?E(d):d;if(f(b.model)){b.model=e=n.data.Model.define(b.model);var h=b.data,i={};e.fields&&l(e.fields,function(a,b){f(b)&&b.field?i[b.field]=E(b.field):i[a]=E(a)}),b.data=function(a){var c,d,e,f,j=new b.model;a=h(a);if(!g(i))for(e=0,f=a.length;e<f;e++){c=a[e];for(d in i)c[d]=j._parse(d,i[d](c))}return a}}},parse:D,data:D,total:function(a){return a.length},groups:D,status:function(a){return a.status},aggregates:function(){return{}}}),bq=o.extend({init:function(a){var d=this,f,g,h;a=d.options=c({},d.options,a),c(d,{_map:{},_prefetch:{},_data:[],_ranges:[],_view:[],_pristine:[],_destroyed:[],_pageSize:a.pageSize,_page:a.page||(a.pageSize?1:b),_sort:ba(a.sort),_filter:bd(a.filter),_group:bf(a.group),_aggregate:a.aggregate}),o.fn.init.call(d),h=a.transport,h?(h.read=typeof h.read===q?{url:h.read}:h.read,a.type&&(h=c(!0,{},n.data.transports[a.type],h),a.schema=c(!0,{},n.data.schemas[a.type],a.schema)),d.transport=e(h.read)?h:new bn(h)):d.transport=new bm({data:a.data}),d.reader=new n.data.readers[a.schema.type||"json"](a.schema),g=d.reader.model||{},d._data=d._observe(d._data),f=g.id,f&&(d.id=function(a){return f(a)}),d.bind([A,w,B],a)},options:{data:[],schema:{},serverSorting:!1,serverPaging:!1,serverFiltering:!1,serverGrouping:!1,serverAggregates:!1,sendAllFields:!0,batch:!1},get:function(a){var b,c,d=this._data;for(b=0,c=d.length;b<c;b++)if(d[b].id==a)return d[b]},getByUid:function(a){var b,c,d=this._data;for(b=0,c=d.length;b<c;b++)if(d[b].uid==a)return d[b]},sync:function(){var b=this,c,d,e=[],f=[],g=b._destroyed,h=b._data;if(!!b.reader.model){for(c=0,d=h.length;c<d;c++)h[c].isNew()?e.push(h[c]):h[c].dirty&&f.push(h[c]);var i=b._send("create",e);i.push.apply(i,b._send("update",f)),i.push.apply(i,b._send("destroy",g)),a.when.apply(null,i).then(function(){var a,c;for(a=0,c=arguments.length;a<c;a++)b._accept(arguments[a]);b._change()})}},_accept:function(b){var d=this,e=b.models,f=b.response,g=0,h=d.reader.data(d._pristine),i=b.type,j;f?f=d.reader.data(d.reader.parse(f)):f=a.map(e,function(a){return a.toJSON()}),a.isArray(f)||(f=[f]),i==="destroy"&&(d._destroyed=[]);for(g=0,j=e.length;g<j;g++)i!=="destroy"?(e[g].accept(f[g]),i==="create"?h.push(e[g]):i==="update"&&c(h[d._pristineIndex(e[g])],f[g])):h.splice(d._pristineIndex(e[g]),1)},_pristineIndex:function(a){var b=this,c,d,e=b.reader.data(b._pristine);for(c=0,d=e.length;c<d;c++)if(e[c][a.idField]===a.id)return c;return-1},_promise:function(b,d,e){var f=this,g=f.transport;return a.Deferred(function(a){g[e].call(g,c({success:function(b){a.resolve({response:b,models:d,type:e})},error:function(b){a.reject(b),f.trigger(A,b)}},b))}).promise()},_send:function(a,b){var c=this,d,e,f=[],g=c.transport;if(c.options.batch)b.length&&f.push(c._promise({data:{models:bj(b)}},b,a));else for(d=0,e=b.length;d<e;d++)f.push(c._promise({data:b[d].toJSON()},[b[d]],a));return f},add:function(a){return this.insert(this._data.length,a)},insert:function(a,b){b||(b=a,a=0),b instanceof X||(this.reader.model?b=new this.reader.model(b):b=new T(b)),this._data.splice(a,0,b);return b},cancelChanges:function(a){var b=this,d,e=b.reader.data(b._pristine),f;a instanceof n.data.Model?(f=b.indexOf(a),d=b._pristineIndex(a),f!=-1&&(d!=-1&&!a.isNew()?c(!0,b._data[f],e[d]):b._data.splice(f,1))):(b._data=b._observe(e),b._change())},read:function(a){var b=this,c=b._params(a);b._queueRequest(c,function(){b.trigger(B),b._ranges=[],b.transport.read({data:c,success:d(b.success,b),error:d(b.error,b)})})},indexOf:function(a){var b,c,d=this._data;if(a)for(b=0,c=d.length;b<c;b++)if(d[b].uid==a.uid)return b;return-1},_params:function(a){var b=this,d=c({take:b.take(),skip:b.skip(),page:b.page(),pageSize:b.pageSize(),sort:b._sort,filter:b._filter,group:b._group,aggregate:b._aggregate},a);b.options.serverPaging||(delete d.take,delete d.skip,delete d.page,delete d.pageSize);return d},_queueRequest:function(a,c){var e=this;e._requestInProgress?e._pending={callback:d(c,e),options:a}:(e._requestInProgress=!0,e._pending=b,c())},_dequeueRequest:function(){var a=this;a._requestInProgress=!1,a._pending&&a._queueRequest(a._pending.options,a._pending.callback)},remove:function(a){var b,c,d=this._data;for(b=0,c=d.length;b<c;b++)if(d[b].uid==a.uid){a=d[b],d.splice(b,1);return a}},error:function(a,b,c){this.trigger(A,{xhr:a,status:b,errorThrown:c})},success:function(b){var c=this,d={},e,g=c.options.serverGrouping===!0&&c._group&&c._group.length>0;b=c.reader.parse(b),c._pristine=f(b)?a.extend(!0,{},b):b.slice(0),c._total=c.reader.total(b),c._aggregate&&c.options.serverAggregates&&(c._aggregateResult=c.reader.aggregates(b)),g?b=c.reader.groups(b):b=c.reader.data(b),c._data=c._observe(b);var h=c._skip||0,i=h+c._data.length;c._ranges.push({start:h,end:i,data:c._data}),c._ranges.sort(function(a,b){return a.start-b.start}),c._dequeueRequest(),c._process(c._data)},_observe:function(a){var b=this,c=b.reader.model,e=!1;c&&a.length&&(e=!(a[0]instanceof c)),a instanceof S?e&&(a.type=b.reader.model,a.wrapAll(a,a)):a=new S(a,b.reader.model);return a.bind(w,d(b._change,b))},_change:function(a){var b=this,c,d,e=a?a.action:"";if(e==="remove")for(c=0,d=a.items.length;c<d;c++)(!a.items[c].isNew||!a.items[c].isNew())&&b._destroyed.push(a.items[c]);if(!b.options.autoSync||e!=="add"&&e!=="remove"&&e!=="itemchange"){var f=b._total||b.reader.total(b._pristine);e==="add"?f++:e==="remove"?f--:e!=="itemchange"&&!b.options.serverPaging&&(f=b.reader.total(b._pristine)),b._total=f,b._process(b._data,a)}else b.sync()},_process:function(a,c){var d=this,e={},f,g=d.options.serverGrouping===!0&&d._group&&d._group.length>0;d.options.serverPaging!==!0&&(e.skip=d._skip,e.take=d._take||d._pageSize,e.skip===b&&d._page!==b&&d._pageSize!==b&&(e.skip=(d._page-1)*d._pageSize)),d.options.serverSorting!==!0&&(e.sort=d._sort),d.options.serverFiltering!==!0&&(e.filter=d._filter),d.options.serverGrouping!==!0&&(e.group=d._group),d.options.serverAggregates!==!0&&(e.aggregate=d._aggregate,d._aggregateResult=bl(a,e)),f=bk(a,e),d._view=f.data,f.total!==b&&!d.options.serverFiltering&&(d._total=f.total),d.trigger(w,c)},at:function(a){return this._data[a]},data:function(a){var c=this;if(a!==b)c._data=this._observe(a),c._total=c._data.length,c._process(c._data);else return c._data},view:function(){return this._view},query:function(a){var c=this,d,e=c.options.serverSorting||c.options.serverPaging||c.options.serverFiltering||c.options.serverGrouping||c.options.serverAggregates;a!==b&&(c._pageSize=a.pageSize,c._page=a.page,c._sort=a.sort,c._filter=a.filter,c._group=a.group,c._aggregate=a.aggregate,c._skip=a.skip,c._take=a.take,c._skip===b&&(c._skip=c.skip(),a.skip=c.skip()),c._take===b&&c._pageSize!==b&&(c._take=c._pageSize,a.take=c._take),a.sort&&(c._sort=a.sort=ba(a.sort)),a.filter&&(c._filter=a.filter=bd(a.filter)),a.group&&(c._group=a.group=bf(a.group)),a.aggregate&&(c._aggregate=a.aggregate=be(a.aggregate))),e||c._data===b||c._data.length==0?c.read(a):(c.trigger(B),d=bk(c._data,a),c.options.serverFiltering||(d.total!==b?c._total=d.total:c._total=c._data.length),c._view=d.data,c._aggregateResult=bl(c._data,a),c.trigger(w))},fetch:function(a){var b=this;a&&e(a)&&b.one(w,a),b._query()},_query:function(a){var b=this;b.query(c({},{page:b.page(),pageSize:b.pageSize(),sort:b.sort(),filter:b.filter(),group:b.group(),aggregate:b.aggregate()},a))},page:function(a){var c=this,d;if(a!==b)a=G.max(G.min(G.max(a,1),c.totalPages()),1),c._query({page:a});else{d=c.skip();return d!==b?G.round((d||0)/(c.take()||1))+1:b}},pageSize:function(a){var c=this;if(a!==b)c._query({pageSize:a});else return c.take()},sort:function(a){var c=this;if(a!==b)c._query({sort:a});else return c._sort},filter:function(a){var c=this;if(a===b)return c._filter;c._query({filter:a,page:1})},group:function(a){var c=this;if(a!==b)c._query({group:a});else return c._group},total:function(){return this._total||0},aggregate:function(a){var c=this;if(a!==b)c._query({aggregate:a});else return c._aggregate},aggregates:function(){return this._aggregateResult},totalPages:function(){var a=this,b=a.pageSize()||a.total();return G.ceil((a.total()||0)/b)},inRange:function(a,b){var c=this,d=G.min(a+b,c.total());if(!c.options.serverPaging&&c.data.length>0)return!0;return c._findRange(a,d).length>0},range:function(a,c){a=G.min(a||0,this.total());var d=this,e=G.max(G.floor(a/c),0)*c,f=G.min(e+c,d.total()),g;g=d._findRange(a,G.min(a+c,d.total()));if(g.length){d._skip=a>d.skip()?G.min(f,(d.totalPages()-1)*d.take()):e,d._take=c;var h=d.options.serverPaging,i=d.options.serverSorting;try{d.options.serverPaging=!0,d.options.serverSorting=!0,d._process(g)}finally{d.options.serverPaging=h,d.options.serverSorting=i}}else c!==b&&(d._rangeExists(e,f)?e<a&&d.prefetch(f,c,function(){d.range(a,c)}):d.prefetch(e,c,function(){a>e&&f<d.total()&&!d._rangeExists(f,G.min(f+c,d.total()))?d.prefetch(f,c,function(){d.range(a,c)}):d.range(a,c)}))},_findRange:function(a,c){var d=this,e=d._ranges,f,g=[],h,i,j,k,l,m,n,o=d.options,p=o.serverSorting||o.serverPaging||o.serverFiltering||o.serverGrouping||o.serverAggregates,q;for(h=0,q=e.length;h<q;h++){f=e[h];if(a>=f.start&&a<=f.end){var r=0;for(i=h;i<q;i++){f=e[i];if(f.data.length&&a+r>=f.start){l=f.data,m=f.end,p||(n=bk(f.data,{sort:d.sort(),filter:d.filter()}),l=n.data,n.total!==b&&(m=n.total)),j=0,a+r>f.start&&(j=a+r-f.start),k=l.length,m>c&&(k=k-(m-c)),r+=k-j,g=g.concat(l.slice(j,k));if(c<=f.end&&r==c-a)return g}}break}}return[]},skip:function(){var a=this;if(a._skip===b)return a._page!==b?(a._page-1)*(a.take()||1):b;return a._skip},take:function(){var a=this;return a._take||a._pageSize},prefetch:function(a,b,c){var d=this,e=G.min(a+b,d.total()),f={start:a,end:e,data:[]},g={take:b,skip:a,page:a/b+1,pageSize:b,sort:d._sort,filter:d._filter,group:d._group,aggregate:d._aggregate};d._rangeExists(a,e)?c&&c():(clearTimeout(d._timeout),d._timeout=setTimeout(function(){d._queueRequest(g,function(){d.transport.read({data:g,success:function(b){d._dequeueRequest();var e=!1;for(var g=0,h=d._ranges.length;g<h;g++)if(d._ranges[g].start===a){e=!0,f=d._ranges[g];break}e||d._ranges.push(f),b=d.reader.parse(b),f.data=d._observe(d.reader.data(b)),f.end=f.start+f.data.length,d._ranges.sort(function(a,b){return a.start-b.start}),d._total=d.reader.total(b),c&&c()}})})},100))},_rangeExists:function(a,b){var c=this,d=c._ranges,e,f;for(e=0,f=d.length;e<f;e++)if(d[e].start<=a&&d[e].end>=b)return!0;return!1}});bq.create=function(a){a=a&&a.push?{data:a}:a;var b=a||{},d=b.data,e=b.fields,f=b.table,h=b.select,i,j,k={},l;!d&&e&&!b.transport&&(f?d=bs(f,e):h&&(d=br(h,e)));if(n.data.Model&&e&&(!b.schema||!b.schema.model)){for(i=0,j=e.length;i<j;i++)l=e[i],l.type&&(k[l.field]=l);g(k)||(b.schema=c(!0,b.schema,{model:{fields:k}}))}b.data=d;return b instanceof bq?b:new bq(b)},c(!0,n.data,{readers:{json:bp},Query:_,DataSource:bq,ObservableObject:T,ObservableArray:S,LocalTransport:bm,RemoteTransport:bn,Cache:bo,DataReader:bp,Model:X})}(jQuery),function(a,b){function E(a,b){var c=a.element,d=c[0].kendoBindingTarget;d&&A(c,d.source,b)}function D(b){var c,d;b=a(b);for(c=0,d=b.length;c<d;c++)C(b[c])}function C(a){var b,c,d=a.children;B(a);if(d)for(b=0,c=d.length;b<c;b++)C(d[b])}function B(b){var c=b.kendoBindingTarget;c&&(c.destroy(),a.support.deleteExpando?delete b.kendoBindingTarget:b.removeAttribute?b.removeAttribute("kendoBindingTarget"):b.kendoBindingTarget=null)}function A(b,d,e){var f,g;d=c.observable(d),b=a(b);for(f=0,g=b.length;f<g;f++)z(b[f],d,d,e)}function z(a,b,d,e){var f=a.getAttribute("data-"+c.ns+"role"),g,h,i=a.getAttribute("data-"+c.ns+"bind"),j=a.children,k=!0,l,p={},q;e||(e=c.ui),(f||i)&&B(a),f&&(q=u(f,a,e)),i&&(i=x(i.replace(w,"")),q||(p=c.parseOptions(a,{textField:"",valueField:"",template:"",valueUpdate:"change"}),q=new r(a,p)),q.source=d,l=y(i,b,d,m),p.template&&(l.template=new o(b,d,"",p.template)),l.click&&(i.events=i.events||{},i.events.click=i.click,delete l.click),l.source&&(k=!1),i.attr&&(l.attr=y(i.attr,b,d,m)),i.style&&(l.style=y(i.style,b,d,m)),i.events&&(l.events=y(i.events,b,d,n)),q.bind(l)),q&&(a.kendoBindingTarget=q);if(k&&j)for(g=0;g<j.length;g++)z(j[g],b,d,e)}function y(a,b,c,d){var e,f={};for(e in a)f[e]=new d(b,c,a[e]);return f}function x(a){var b={},c,d,e,f,g,h,i;i=a.match(v);for(c=0,d=i.length;c<d;c++)e=i[c],f=e.indexOf(":"),g=e.substring(0,f),h=e.substring(f+1),h.charAt(0)=="{"&&(h=x(h)),b[g]=h;return b}function u(a,b,d){var e=d.roles[a];if(e)return new s(c.initWidget(b,e.options,d))}function t(a){var b,c,d=[];for(b=0,length=a.length;b<length;b++)a[b].hasSubgroups?d=d.concat(t(a[b].items)):d=d.concat(a[b].items);return d}var c=window.kendo,d=c.Observable,e=c.data.ObservableObject,f=c.data.ObservableArray,g={}.toString,h=c.data,i=c.Class,j="get",k,l="change";(function(){var a=document.createElement("a");a.innerText!==b?k="innerText":a.textContent!==b&&(k="textContent")})();var m=d.extend({init:function(a,b,c){var e=this;d.fn.init.call(e),e.root=a,e.source=b,e.path=c,e.dependencies={},e.dependencies[c]=!0,e.observable=e.source instanceof d,e._access=function(a){e.dependencies[a.field]=!0},e.observable&&(e._change=function(a){e.change(a)},e.source.bind("change",e._change))},change:function(a){var b,c,d,e=this;if(e.path==="this")e.trigger("change",a);else for(b in e.dependencies){c=b.indexOf(a.field);if(c===0){d=b.charAt(a.field.length);if(!d||d==="."||d==="["){e.trigger("change",a);break}}}},start:function(){this.observable&&this.source.bind("get",this._access)},stop:function(){this.observable&&this.source.unbind("get",this._access)},get:function(){var b=this,c=b.source;b.start(),b.observable&&(c=b.source.get(b.path),typeof c=="function"&&(c=a.proxy(c,b.source),c=c())),b.stop();return c},set:function(a){this.source.set(this.path,a)},destroy:function(){this.observable&&this.source.unbind("change",this._change)}}),n=m.extend({get:function(){var c=this.source,d=c.get(this.path);d===b&&(d=this.root.get(this.path),c=this.root);return a.proxy(d,c)}}),o=m.extend({init:function(a,b,c,d){var e=this;m.fn.init.call(e,b,c),e.template=d},render:function(a){var b;this.start(),b=c.render(this.template,a),this.stop();return b}}),p=i.extend({init:function(a,b,c){this.element=a,this.bindings=b,this.options=c},destroy:function(){}}),q={};q.attr=p.extend({refresh:function(a){this.element.setAttribute(a,this.bindings.attr[a].get())}}),q.style=p.extend({refresh:function(a){this.element.style[a]=this.bindings.style[a].get()}}),q.enabled=p.extend({refresh:function(){this.bindings.enabled.get()?this.element.removeAttribute("disabled"):this.element.setAttribute("disabled","disabled")}}),q.disabled=p.extend({refresh:function(){this.bindings.disabled.get()?this.element.setAttribute("disabled","disabled"):this.element.removeAttribute("disabled")}}),q.events=p.extend({init:function(a,b,c){p.fn.init.call(this,a,b,c),this.handlers={}},refresh:function(b){var c=this.bindings.events[b],d=this.handlers[b]=c.get();a(this.element).bind(b,c.source,d)},destroy:function(){var b=a(this.element),c;for(c in this.handlers)b.unbind(c,this.handlers[c])}}),q.text=p.extend({refresh:function(){this.element[k]=this.bindings.text.get()}}),q.visible=p.extend({refresh:function(){this.bindings.visible.get()?this.element.style.display="":this.element.style.display="none"}}),q.invisible=p.extend({refresh:function(){this.bindings.invisible.get()?this.element.style.display="none":this.element.style.display=""}}),q.html=p.extend({refresh:function(){this.element.innerHTML=this.bindings.html.get()}}),q.value=p.extend({init:function(b,c,d){p.fn.init.call(this,b,c,d),this._change=a.proxy(this.change,this),this.eventName=d.valueUpdate||"change",a(this.element).bind(this.eventName,this._change)},change:function(){this.bindings.value.set(this.element.value)},refresh:function(){this.element.value=this.bindings.value.get()},destroy:function(){a(this.element).unbind(this.eventName,this._change)}}),q.source=p.extend({init:function(a,b,c){p.fn.init.call(this,a,b,c);var d=b.source.get()},refresh:function(a){var b=this,c=b.bindings.source.get();c instanceof f?(a=a||{},a.action=="add"?b.add(a.index,a.items):a.action=="remove"?b.remove(a.index,a.items):a.action!="itemchange"&&b.render()):b.render()},container:function(){var a=this.element;a.nodeName.toLowerCase()=="table"&&(a.tBodies[0]||a.appendChild(document.createElement("tbody")),a=a.tBodies[0]);return a},template:function(){var a=this.options,b=a.template,d=this.container().nodeName.toLowerCase();b||(d=="select"?a.valueField||a.textField?b=c.format('<option value="#:{0}#">#:{1}#</option>',a.valueField||a.textField,a.textField||a.valueField):b="<option>#:data#</option>":d=="tbody"?b="<tr><td>#:data#</td></tr>":d=="ul"||d=="ol"?b="<li>#:data#</li>":b="#:data#",b=c.template(b));return b},destroy:function(){var a=this.bindings.source.get();a.unbind("change",this._change)},add:function(b,d){var e=this.container(),f,g,h,i=e.cloneNode(!1),j=e.children[b];a(i).html(c.render(this.template(),d));if(i.children.length)for(f=0,g=d.length;f<g;f++)h=i.children[0],e.insertBefore(h,j||null),this.bindings.template?z(h,this.bindings.source.root,d[f]):z(h,d[f])},remove:function(a,b){var c,d=this.container();for(c=0;c<b.length;c++)d.removeChild(d.children[a])},render:function(){var b=this.bindings.source.get(),d,e,h=this.container(),i=this.template();!(b instanceof f)&&g.call(b)!=="[object Array]"&&(b=new f([b]));if(this.bindings.template){a(h).html(this.bindings.template.render(b));if(h.children.length)for(d=0,e=b.length;d<e;d++)z(h.children[d],this.bindings.source.root,b[d])}else a(h).html(c.render(i,b))}}),q.input={checked:p.extend({init:function(b,c,d){p.fn.init.call(this,b,c,d),this._change=a.proxy(this.change,this),a(this.element).change(this._change)},change:function(){var a=this.element,b=this.value();if(a.type=="radio")this.bindings.checked.set(b);else if(a.type=="checkbox"){var c=this.bindings.checked.get(),d;c instanceof f?b!==!1&&b!==!0&&(d=c.indexOf(b),d>-1?c.splice(d,1):c.push(b)):this.bindings.checked.set(b)}},refresh:function(){var a=this.bindings.checked.get(),b=this.element;b.type=="checkbox"?(a instanceof f&&a.indexOf(this.value(b))>=0&&(a=!0),b.checked=a===!0):b.type=="radio"&&b.value==a&&(b.checked=!0)},value:function(){var a=this.element,b=a.value;a.type=="checkbox"&&(b=="on"||b=="off")&&(b=a.checked);return b},destroy:function(){a(this.element).unbind("change",this._change)}})},q.select={value:p.extend({init:function(b,c,d){p.fn.init.call(this,b,c,d),this._change=a.proxy(this.change,this),a(this.element).change(this._change)},change:function(){var a=[],b=this.element,c,d=this.options.valueField||this.options.textField,g,h,i,j;for(i=0,j=b.options.length;i<j;i++)g=b.options[i],g.selected&&(h=g.attributes.value,h&&h.specified?h=g.value:h=g.text,a.push(h));if(d){c=this.bindings.source.get();for(var k=0;k<a.length;k++)for(i=0,j=c.length;i<j;i++)if(c[i].get(d)==a[k]){a[k]=c[i];break}}var h=this.bindings.value.get();h instanceof f?h.splice.apply(h,[0,h.length].concat(a)):h instanceof e||!d?this.bindings.value.set(a[0]):this.bindings.value.set(a[0].get(d))},refresh:function(){var a,b=this.element,c=b.options,d=this.bindings.value.get(),g=d,h=this.options.valueField||this.options.textField,i;g instanceof f||(g=new f([d]));for(var j=0;j<g.length;j++){d=g[j],h&&d instanceof e&&(d=d.get(h));for(a=0;a<c.length;a++)i=c[a].value,i===""&&d!==""&&(i=c[a].text),i==d&&(c[a].selected=!0)}},destroy:function(){a(this.element).unbind("change",this._change)}})},q.widget={events:p.extend({init:function(a,b,c){p.fn.init.call(this,a.element[0],b,c),this.widget=a,this.handlers={}},refresh:function(a){var b=this.bindings.events[a],c=this.handlers[a]=b.get();this.widget.bind(a,c)},destroy:function(){var a;for(a in this.handlers)this.element.unbind(a,this.handlers[a])}}),checked:p.extend({init:function(b,c,d){p.fn.init.call(this,b.element[0],c,d),this.widget=b,this._change=a.proxy(this.change,this),this.widget.bind("change",this._change)},change:function(){this.bindings.checked.set(this.value())},refresh:function(){this.widget.check(this.bindings.checked.get()===!0)},value:function(){var a=this.element,b=a.value;if(b=="on"||b=="off")b=a.checked;return b},destroy:function(){this.widget.unbind("change",this._change)}}),visible:p.extend({init:function(a,b,c){p.fn.init.call(this,a.element[0],b,c),this.widget=a},refresh:function(){var a=this.bindings.visible.get();this.widget.wrapper[0].style.display=a?"":"none"}}),invisible:p.extend({init:function(a,b,c){p.fn.init.call(this,a.element[0],b,c),this.widget=a},refresh:function(){var a=this.bindings.invisible.get();this.widget.wrapper[0].style.display=a?"none":""}}),enabled:p.extend({init:function(a,b,c){p.fn.init.call(this,a.element[0],b,c),this.widget=a},refresh:function(){this.widget.enable&&this.widget.enable(this.bindings.enabled.get())}}),disabled:p.extend({init:function(a,b,c){p.fn.init.call(this,a.element[0],b,c),this.widget=a},refresh:function(){this.widget.enable&&this.widget.enable(!this.bindings.disabled.get())}}),source:p.extend({init:function(b,c,d){p.fn.init.call(this,b.element[0],c,d),this.widget=b,this._dataBinding=a.proxy(this.dataBinding,this),this._dataBound=a.proxy(this.dataBound,this)},dataBinding:function(){var a,b,c=this.widget,d=c.items();for(a=0,b=d.length;a<b;a++)C(d[a])},dataBound:function(){var a,b,c=this.widget,d=c.items(),e=c.dataSource,f=e.view(),g=e.group()||[];if(d.length){g.length&&(f=t(f));for(a=0,b=f.length;a<b;a++)z(d[a],this.bindings.source.root,f[a])}},refresh:function(a){var b=this,d=b.widget;a=a||{};if(!a.action){b.destroy(),d.bind("dataBinding",b._dataBinding),d.bind("dataBound",b._dataBound);if(d.dataSource instanceof c.data.DataSource){var e=this.bindings.source.get();e instanceof c.data.DataSource?d.setDataSource(e):d.dataSource.data(e)}}},destroy:function(){var a=this.widget;a.unbind("dataBinding",this._dataBinding),a.unbind("dataBound",this._dataBound)}}),value:p.extend({init:function(b,c,d){p.fn.init.call(this,b.element[0],c,d),this.widget=b,this._change=a.proxy(this.change,this),this.widget.bind("change",this._change);var f=this.bindings.value.get();this._valueIsObservableObject=f==null||f instanceof e},change:function(){var a=this.widget.value(),b,d,e=this.options.dataValueField||this.options.dataTextField;if(e){var f,g=this._valueIsObservableObject;this.bindings.source&&(f=this.bindings.source.get());if(a===""&&g)a=null;else{if(!f||f instanceof c.data.DataSource)f=this.widget.dataSource.view();for(b=0,d=f.length;b<d;b++)if(f[b].get(e)==a){g?a=f[b]:a=f[b].get(e);break}}}this.bindings.value.set(a)},refresh:function(){var a=this.options.dataValueField||this.options.dataTextField,b=this.bindings.value.get();a&&b instanceof e&&(b=b.get(a)),this.widget.value(b)},destroy:function(){this.widget.unbind("change",this._change)}})};var r=i.extend({init:function(a,b){this.target=a,this.options=b,this.toDestroy=[]},bind:function(a){var b=this,c=this.target.nodeName.toLowerCase(),d,e=q[c]||{};for(d in a)this.applyBinding(d,a,e)},applyBinding:function(a,b,c){var d=c[a]||q[a],e=this.toDestroy,f=b[a];if(d){d=new d(this.target,b,this.options),e.push(d);if(f instanceof m)f.bind("change",function(a){d.refresh(a)}),d.refresh(),e.push(f);else for(var g in f)(function(a){f[a].bind("change",function(){d.refresh(a)})})(g),d.refresh(g),e.push(f[g])}else if(a!=="template")throw new Error("The "+a+" binding is not supported by the "+this.target.nodeName.toLowerCase()+" element")},destroy:function(){var a,b,c=this.toDestroy;for(a=0,b=c.length;a<b;a++)c[a].destroy()}}),s=r.extend({bind:function(a){var b=this,c,d=!1,e=!1;for(c in a)c=="value"?d=!0:c=="source"?e=!0:this.applyBinding(c,a);e&&this.applyBinding("source",a),d&&this.applyBinding("value",a)},applyBinding:function(a,b){var c=q.widget[a],d=this.toDestroy,e=b[a];if(!c)throw new Error("The "+a+" binding is not supported by the "+this.target.options.name+" widget");c=new c(this.target,b,this.target.options),d.push(c);if(e instanceof m)e.bind("change",function(a){c.refresh(a)}),c.refresh(),d.push(e);else for(var f in e)(function(a){e[a].bind("change",function(){c.refresh(a)})})(f),c.refresh(f),d.push(e[f])}}),v=/\w+:({([^}]*)}|[^,}]+)/g,w=/\s/g;c.unbind=D,c.bind=A,c.data.binders=q,c.data.Binder=p,c.notify=E,c.observable=function(a){a instanceof e||(a=new e(a));return a}}(jQuery),function(a,b){var c=window.kendo,d=c.ui.Widget,e="k-invalid-msg",f="k-invalid",g=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,h=/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,i=":input:not(:button,[type=submit],[type=reset])",j="[type=number],[type=range]",k="blur",l="name",m="form",n="novalidate",o=a.proxy,p=function(a,b){typeof b=="string"&&(b=new RegExp("^(?:"+b+")$"));return b.test(a)},q=function(a,b,c){var d=a.val();if(a.filter(b).length&&d!=="")return p(d,c);return!0},r=function(a,c){if(a.length)return a[0].attributes[c]!==b;return!1},s=/(\[|\]|\$|\.|\:|\+)/g,t=d.extend({init:function(a,b){var e=this;d.fn.init.call(e,a,b),e._errorTemplate=c.template(e.options.errorTemplate),e.element.is(m)&&e.element.attr(n,n),e._errors={},e._attachEvents()},options:{name:"Validator",errorTemplate:'<span class="k-widget k-tooltip k-tooltip-validation"><span class="k-icon k-warning"> </span> ${message}</span>',messages:{required:"{0} is required",pattern:"{0} is not valid",min:"{0} should be greater than or equal to {1}",max:"{0} should be smaller than or equal to {1}",step:"{0} is not valid",email:"{0} is not valid email",url:"{0} is not valid URL",date:"{0} is not valid date"},rules:{required:function(a){var b=a.filter("[type=checkbox]").length&&a.attr("checked")!=="checked",c=a.val();return!r(a,"required")||c!==""&&!!c&&!b},pattern:function(a){if(a.filter("[type=text],[type=email],[type=url],[type=tel],[type=search]").filter("[pattern]").length&&a.val()!=="")return p(a.val(),a.attr("pattern"));return!0},min:function(a){if(a.filter(j+",["+c.attr("type")+"=number]").filter("[min]").length&&a.val()!==""){var b=parseFloat(a.attr("min"))||0,d=parseFloat(a.val());return b<=d}return!0},max:function(a){if(a.filter(j+",["+c.attr("type")+"=number]").filter("[max]").length&&a.val()!==""){var b=parseFloat(a.attr("max"))||0,d=parseFloat(a.val());return b>=d}return!0},step:function(a){if(a.filter(j+",["+c.attr("type")+"=number]").filter("[step]").length&&a.val()!==""){var b=parseFloat(a.attr("min"))||0,d=parseFloat(a.attr("step"))||0,e=parseFloat(a.val());return(e-b)*10%(d*10)/100===0}return!0},email:function(a){return q(a,"[type=email],["+c.attr("type")+"=email]",g)},url:function(a){return q(a,"[type=url],["+c.attr("type")+"=url]",h)},date:function(a){if(a.filter("[type^=date],["+c.attr("type")+"=date]").length&&a.val()!=="")return c.parseDate(a.val(),a.attr(c.attr("format")))!==null;return!0}},validateOnBlur:!0},_submit:function(a){if(!this.validate()){a.stopPropagation(),a.stopImmediatePropagation(),a.preventDefault();return!1}return!0},_attachEvents:function(){var b=this;b.element.is(m)&&b.element.submit(o(b._submit,b)),b.options.validateOnBlur&&(b.element.is(i)?b.element.bind(k,function(){b.validateInput(b.element)}):b.element.delegate(i,k,function(){b.validateInput(a(this))}))},validate:function(){var a=this,b,c,d=!1,e;a._errors={};if(!a.element.is(i)){b=a.element.find(i);for(c=0,e=b.length;c<e;c++)a.validateInput(b.eq(c))||(d=!0);return!d}return a.validateInput(a.element)},validateInput:function(b){b=a(b);var d=this,g=d._errorTemplate,h=d._checkValidity(b),i=h.valid,j="."+e,k=(b.attr(l)||"").replace(s,"\\$1"),m=c.attr("for"),n=d.element.find(j+"["+m+"="+k+"]").add(b.next(j)).hide(),o;if(!i){o=d._extractMessage(b,h.key),d._errors[k]=o;var p=a(g({message:o})).addClass(e).attr(m,k||"");n.replaceWith(p).length||p.insertAfter(b),p.show()}b.toggleClass(f,!i);return i},_extractMessage:function(b,d){var e=this,f=e.options.messages[d],g=b.attr(l);f=a.isFunction(f)?f(b):f;return c.format(b.attr(c.attr(d+"-msg"))||b.attr("validationMessage")||b.attr("title")||f||"",g,b.attr(d))},_checkValidity:function(a){var b=this.options.rules,c;for(c in b)if(!b[c](a))return{valid:!1,key:c};return{valid:!0}},errors:function(){var a=[],b=this._errors,c;for(c in b)a.push(b[c]);return a}});c.ui.plugin(t)}(jQuery),function(a,b){function J(a){a.preventDefault()}function I(a,b){return a.replace(/ /g,b+" ")}function H(a){return e.elementFromPoint(a.x.client,a.y.client)}function G(b,c){try{return a.contains(b,c)||b==c}catch(d){return!1}}var c=window.kendo,d=c.support,e=window.document,f=a(e.documentElement),g=c.Class,h=c.ui.Widget,i=c.Observable,j=a.proxy,k=a.extend,l=c.getOffset,m={},n={},o,p="resize",q="mousedown",r="mousemove",s="mouseup mouseleave",t="keyup",u="dragstart",v="drag",w="dragend",x="dragcancel",y="dragenter",z="dragleave",A="drop",B="start",C="move",D="end",E="cancel",F="tap";d.touch&&(p="orientationchange",q="touchstart",r="touchmove",s="touchend touchcancel");var K=g.extend({init:function(a){this.axis=a},start:function(a,b){var c=this,d=a["page"+c.axis];c.startLocation=c.location=d,c.client=a["client"+c.axis],c.velocity=c.delta=0,c.timeStamp=b},move:function(a,b){var c=this,d=a["page"+c.axis];!d||(c.delta=d-c.location,c.location=d,c.client=a["client"+c.axis],c.initialDelta=d-c.startLocation,c.velocity=c.delta/(b-c.timeStamp),c.timeStamp=b)}}),L=i.extend({init:function(b,e){var g=this,h={},l,m="."+c.guid();e=e||{},l=g.filter=e.filter,g.threshold=e.threshold||0,b=a(b),i.fn.init.call(g),h={},h[I(r,m)]=j(g._move,g),h[I(s,m)]=j(g._end,g),k(g,{x:new K("X"),y:new K("Y"),element:b,surface:e.global?f:b,pressed:!1,eventMap:h,ns:m}),b.on(q,l,j(g._start,g)).on("dragstart",l,J),e.allowSelection||b.on("mousedown selectstart",l,J),d.touch&&g.surface[0].addEventListener("touchend",function(a){g.moved&&a.preventDefault()},!0),g.bind([F,B,C,D,E],e)},capture:function(){L.captured=!0},cancel:function(){this._cancel(),this.trigger(E)},_cancel:function(){this.pressed=!1,this.surface.off(this.ns)},_start:function(b){var c=this,d=c.filter,e=b.originalEvent,f=e&&e.changedTouches,g=f&&f[0];c.pressed||(d?c.target=a(b.target).is(d)?a(b.target):a(b.target).closest(d):c.target=c.element,c.pressed=!0,c.moved=!1,g&&(c.touchID=g.identifier),c._perAxis(B,g||b,b.timeStamp),c.surface.off(c.eventMap).on(c.eventMap),L.captured=!1)},_move:function(a){var b=this,c,d,e;!b.pressed||b._withEvent(a,function(f){b._perAxis(C,f,a.timeStamp);if(!b.moved){c=b.x.initialDelta,d=b.y.initialDelta,e=Math.sqrt(c*c+d*d);if(e<=b.threshold)return;if(!L.captured)b._trigger(B,a),b.moved=!0;else return b._cancel()}b.pressed&&b._trigger(C,a)})},_end:function(a){var b=this;!b.pressed||b._withEvent(a,function(){b._cancel(),b.moved?(b._trigger(D,a),b.moved=!1):b._trigger(F,a)})},_perAxis:function(a,b,c){this.x[a](b,c),this.y[a](b,c)},_trigger:function(a,b){var c={x:this.x,y:this.y,target:this.target,event:b};this.trigger(a,c)&&b.preventDefault()},_withEvent:function(a,b){var c=this,d=a.originalEvent,e=a.which,f=d&&d.changedTouches,g=f&&f.length;if(!f)return b(a);while(g){g--;if(f[g].identifier===c.touchID)return b(f[g])}}}),M=i.extend({init:function(a,b){var c=this;c.capture=!1,a[0].addEventListener(q,j(c._press,c),!0),a.on(s,j(c._release,c)),i.fn.init.call(c),c.bind(["press","release"],b||{})},_press:function(a){var b=this;b.trigger("press"),b.capture&&(a.preventDefault(),a.originalEvent&&a.originalEvent.preventDefault())},_release:function(a){var b=this;b.trigger("release"),b.capture&&(a.preventDefault(),a.originalEvent&&a.originalEvent.preventDefault(),b.cancelCapture())},captureNext:function(){this.capture=!0},cancelCapture:function(){this.capture=!1}}),N=i.extend({init:function(b){var c=this;i.fn.init.call(c),a.extend(c,b),c.max=0,c.horizontal?(c.measure="width",c.scrollSize="scrollWidth",c.axis="x"):(c.measure="height",c.scrollSize="scrollHeight",c.axis="y")},outOfBounds:function(a){return a>this.max||a<this.min},totalSize:function(){return this.element[0][this.scrollSize]},present:function(){return this.max-this.min},update:function(){var a=this;a.size=a.container[a.measure](),a.total=a.element[0][a.scrollSize],a.min=Math.min(a.max,a.size-a.total),a.trigger("change",a)}}),O=g.extend({init:function(b){var c=this,d=b.movable;c.x=new N(k({horizontal:!0},b)),c.y=new N(k({horizontal:!1},b)),a(window).bind(p,j(c.refresh,c))},refresh:function(){this.x.update(),this.y.update()}}),P=i.extend({init:function(a){var b=this;k(b,a),i.fn.init.call(b)},dragMove:function(a){var b=this,c=b.dimension,d=b.axis,e=b.movable,f=e[d]+a;if(!!c.present()){if(f<c.min&&a<0||f>c.max&&a>0)a*=b.resistance;e.translateAxis(d,a),b.trigger("change",b)}}}),Q=g.extend({init:function(a){var b=this,c,d,e;k(b,{elastic:!0},a),e=b.elastic?.5:0,b.x=c=new P({axis:"x",dimension:b.dimensions.x,resistance:e,movable:b.movable}),b.y=d=new P({axis:"y",dimension:b.dimensions.y,resistance:e,movable:b.movable}),b.drag.bind(["move","end"],{move:function(a){if(c.dimension.present()||d.dimension.present())c.dragMove(a.x.delta),d.dragMove(a.y.delta),a.preventDefault()},end:function(a){a.preventDefault()}})}}),R=d.transitions.prefix+"Transform",S=Math.round,T;d.hasHW3D?T=function(a,b){return"translate3d("+S(a)+"px,"+S(b)+"px,0)"}:T=function(a,b){return"translate("+S(a)+"px,"+S(b)+"px)"};var U=i.extend({init:function(b){var c=this;i.fn.init.call(c),c.element=a(b),c.x=0,c.y=0,c._saveCoordinates(T(c.x,c.y))},translateAxis:function(a,b){this[a]+=b,this.refresh()},translate:function(a){this.x+=a.x,this.y+=a.y,this.refresh()},moveAxis:function(a,b){this[a]=b,this.refresh()},moveTo:function(a){k(this,a),this.refresh()},refresh:function(){var a=this,b=T(a.x,a.y);b!=a.coordinates&&(a.element[0].style[R]=b,a._saveCoordinates(b),a.trigger("change"))},_saveCoordinates:function(a){this.coordinates=a}}),V=h.extend({init:function(a,b){var c=this;h.fn.init.call(c,a,b);var d=c.options.group;d in n?n[d].push(c):n[d]=[c]},events:[y,z,A],options:{name:"DropTarget",group:"default"},_trigger:function(a,b){var c=this,d=m[c.options.group];if(d)return c.trigger(a,k({},b.event,{draggable:d}))},_over:function(a){this._trigger(y,a)},_out:function(a){this._trigger(z,a)},_drop:function(a){var b=this,c=m[b.options.group];c&&(c.dropped=!b._trigger(A,a))}}),W=h.extend({init:function(a,b){var d=this;h.fn.init.call(d,a,b),d.drag=new L(d.element,{global:!0,filter:d.options.filter,threshold:d.options.distance,start:j(d._start,d),move:j(d._drag,d),end:j(d._end,d),cancel:j(d._cancel,d)}),d.destroy=j(d._destroy,d),d.captureEscape=function(a){a.keyCode===c.keys.ESC&&(d._trigger(x,{event:a}),d.drag.cancel())}},events:[u,v,w,x],options:{name:"Draggable",distance:5,group:"default",cursorOffset:null,dropped:!1},_start:function(b){var c=this,d=c.options,f=d.hint;c.currentTarget=c.drag.target,c.currentTargetOffset=l(c.currentTarget);if(f){c.hint=a.isFunction(f)?a(f(c.currentTarget)):f;var g=l(c.currentTarget);c.hintOffset=g,c.hint.css({position:"absolute",zIndex:10010,left:g.x,top:g.y}).appendTo(e.body)}m[d.group]=c,c.dropped=!1,c._trigger(u,b)&&(c.drag.cancel(),c.destroy()),a(e).on(t,c.captureEscape)},updateHint:function(a){var b=this,c,d=b.initialOffset,e=b.options.cursorOffset;e?c={left:a.x.location+e.left,top:a.y.location+e.top}:(b.hintOffset.left+=a.x.delta,b.hintOffset.top+=a.y.delta,c=b.hintOffset),b.hint.css(c)},_drag:function(a){var b=this,c=b.options.cursorOffset;a.preventDefault(),b._withDropTarget(a,function(b){if(!b)o&&(o._trigger(z,a),o=null);else{if(o){if(b.element[0]===o.element[0])return;o._trigger(z,a)}b._trigger(y,a),o=b}}),b._trigger(v,a),b.hint&&b.updateHint(a)},_end:function(a){var b=this;b._withDropTarget(a,function(b){b&&(b._drop(a),o=null)}),b._trigger(w,a),b._cancel(a.event)},_cancel:function(a){var b=this;b.hint&&!b.dropped?b.hint.animate(b.currentTargetOffset,"fast",b.destroy):b.destroy()},_trigger:function(a,b){var c=this;return c.trigger(a,k({},b.event,{x:b.x,y:b.y,currentTarget:c.currentTarget}))},_withDropTarget:function(b,c){var d=this,e,f,g=d.options,h=n[g.group];h&&h.length&&(e=H(b),d.hint&&G(d.hint,e)&&(d.hint.hide(),e=H(b),d.hint.show()),a.each(h,function(){var a=this,b=a.element[0];if(G(b,e)){f=a;return!1}}),c(f))},_destroy:function(){var b=this;b.hint&&b.hint.remove(),delete m[b.options.group],b.trigger("destroy"),a(e).off(t,b.captureEscape)}});c.ui.plugin(V),c.ui.plugin(W),c.Drag=L,c.Tap=M,k(c.ui,{Pane:Q,PaneDimensions:O,Movable:U})}(jQuery),function(a,b){function k(b){return a(b).children(".k-grid-toolbar").outerHeight()+3}var c=window.kendo,d=c.ui.Widget,e=a.proxy,f="Drag a column header and drop it here to group by that column",g=c.template('<div class="k-group-indicator" data-#=data.ns#field="${data.field}" data-#=data.ns#title="${data.title || ""}" data-#=data.ns#dir="${data.dir || "asc"}"><a href="\\#" class="k-link"><span class="k-icon k-arrow-${(data.dir || "asc") == "asc" ? "up" : "down"}-small">(sorted ${(data.dir || "asc") == "asc" ? "ascending": "descending"})</span>${data.title ? data.title: data.field}</a><a class="k-button k-button-icon k-button-bare"><span class="k-icon k-group-delete"></span></a></div>',{useWithBlock:!1}),h=function(b){return a('<div class="k-header k-drag-clue" />').css({width:b.width(),paddingLeft:b.css("paddingLeft"),paddingRight:b.css("paddingRight"),height:b.height(),paddingTop:b.css("paddingTop"),paddingBottom:b.css("paddingBottom")}).html(b.attr(c.attr("title"))||b.attr(c.attr("field"))).prepend('<span class="k-icon k-drag-status k-denied" />')},i=a('<div class="k-grouping-dropclue"/>'),j=/(\[|\]|\$|\.|\:|\+)/g,l=d.extend({init:function(b,f){var g=this,j,l=c.guid(),m=e(g._intializePositions,g),n=g._dropCuePositions=[];d.fn.init.call(g,b,f),j=g.groupContainer=a(g.options.groupContainer,g.element).kendoDropTarget({group:l,dragenter:function(a){a.draggable.hint.find(".k-drag-status").removeClass("k-denied").addClass("k-add"),i.css({top:k(g.element),left:0}).appendTo(j)},dragleave:function(a){a.draggable.hint.find(".k-drag-status").removeClass("k-add").addClass("k-denied"),i.remove()}}).kendoDraggable({filter:"div.k-group-indicator",hint:h,group:l,dragend:function(a){g._dragEnd(this,a)},dragcancel:e(g._dragCancel,g),dragstart:function(a){var b=a.currentTarget,c=parseInt(b.css("marginLeft")),d=b.position().left-c;m(),i.css({top:k(g.element),left:d}).appendTo(j),this.hint.find(".k-drag-status").removeClass("k-denied").addClass("k-add")},drag:e(g._drag,g)}).delegate(".k-button","click",function(b){b.preventDefault(),g._removeIndicator(a(this).parent())}).delegate(".k-link","click",function(b){var d=a(this).parent(),e=g.buildIndicator(d.attr(c.attr("field")),d.attr(c.attr("title")),d.attr(c.attr("dir"))=="asc"?"desc":"asc");d.before(e).remove(),g._change(),b.preventDefault()}),g.element.kendoDraggable({filter:g.options.filter,hint:h,group:l,dragend:function(a){g._dragEnd(this,a)},dragcancel:e(g._dragCancel,g),dragstart:function(a){var b,d,e,f=a.currentTarget.attr(c.attr("field"));g.indicator(f)?a.preventDefault():(m(),n.length?(b=n[n.length-1].element,d=parseInt(b.css("marginRight")),e=b.position().left+b.outerWidth()+d):e=0,i.css({top:k(g.element),left:e}).appendTo(j),this.hint.find(".k-drag-status").removeClass("k-denied").addClass("k-add"))},drag:e(g._drag,g)}),g.dataSource=g.options.dataSource,g.dataSource&&(g._refreshHandler=e(g.refresh,g),g.dataSource.bind("change",g._refreshHandler))},refresh:function(){var b=this,d=b.dataSource;b.groupContainer.empty().append(a.map(d.group()||[],function(a){var d=a.field.replace(j,"\\$1"),e=b.element.find(b.options.filter).filter("["+c.attr("field")+"="+d+"]");return b.buildIndicator(a.field,e.attr(c.attr("title")),a.dir)}).join("")),b._invalidateGroupContainer()},destroy:function(){var a=this;a.dataSource&&a._refreshHandler&&a.dataSource.unbind("change",a._refreshHandler)},options:{name:"Groupable",filter:"th"},indicator:function(b){var d=a(".k-group-indicator",this.groupContainer);return a.grep(d,function(d){return a(d).attr(c.attr("field"))===b})[0]},buildIndicator:function(a,b,d){return g({field:a,dir:d,title:b,ns:c.ns})},descriptors:function(){var b=this,d=a(".k-group-indicator",b.groupContainer),e,f,g,h,i,j;e=b.element.find(b.options.filter).map(function(){var b=a(this),d=b.attr(c.attr("aggregates"));member=b.attr(c.attr("field"));if(d&&d!==""){f=d.split(","),d=[];for(h=0,i=f.length;h<i;h++)d.push({field:member,aggregate:f[h]})}return d}).toArray();return a.map(d,function(b){b=a(b),g=b.attr(c.attr("field"));return{field:g,dir:b.attr(c.attr("dir")),aggregates:e||[]}})},_removeIndicator:function(a){var b=this;a.remove(),b._invalidateGroupContainer(),b._change()},_change:function(){var a=this;a.dataSource&&a.dataSource.group(a.descriptors())},_dropCuePosition:function(b){var c=this._dropCuePositions;if(!!i.is(":visible")&&c.length!=0){var d=c[c.length-1],e=d.right,f=parseInt(d.element.css("marginLeft")),g=parseInt(d.element.css("marginRight"));b>=e?b={left:d.element.position().left+d.element.outerWidth()+g,element:d.element,before:!1}:(b=a.grep(c,function(a){return a.left<=b&&b<=a.right})[0],b&&(b={left:b.element.position().left-f,element:b.element,before:!0}));return b}},_drag:function(a){var b=this._dropCuePosition(a.pageX);b&&i.css({left:b.left})},_canDrop:function(a,b,c){var d=a.next();return a[0]!==b[0]&&(!d[0]||b[0]!==d[0]||c>d.position().left)},_dragEnd:function(b,d){var e=this,f=d.currentTarget.attr(c.attr("field")),g=d.currentTarget.attr(c.attr("title")),h=e.indicator(f),j=e._dropCuePositions,k=j[j.length-1],l;b.dropped?k?(l=e._dropCuePosition(i.offset().left+parseInt(k.element.css("marginLeft"))+parseInt(k.element.css("marginRight"))),e._canDrop(a(h),l.element,l.left)&&(l.before?l.element.before(h||e.buildIndicator(f,g)):l.element.after(h||e.buildIndicator(f,g)),e._change())):(e.groupContainer.append(e.buildIndicator(f,g)),e._change()):h&&e._removeIndicator(a(h)),e._dragCancel()},_dragCancel:function(){i.remove(),this._dropCuePositions=[]},_intializePositions:function(){var b=this,c=a(".k-group-indicator",b.groupContainer),d;b._dropCuePositions=a.map(c,function(b){b=a(b),d=b.offset().left;return{left:d,right:d+b.outerWidth(),element:b}})},_invalidateGroupContainer:function(){var a=this.groupContainer;a.is(":empty")&&a.html(f)}});c.ui.plugin(l)}(jQuery),function(a,b){var c=window.kendo,d=c.ui,e=d.Widget,f=a.proxy,g=a.isFunction,h=a.extend,i="horizontal",j="vertical",k="start",l="resize",m="resizeend",n=e.extend({init:function(a,b){var c=this;e.fn.init.call(c,a,b),c.orientation=c.options.orientation.toLowerCase()!=j?i:j,c._positionMouse=c.orientation==i?"pageX":"pageY",c._position=c.orientation==i?"left":"top",c._sizingDom=c.orientation==i?"outerWidth":"outerHeight",new d.Draggable(a,{distance:0,filter:b.handle,drag:f(c._resize,c),dragstart:f(c._start,c),dragend:f(c._stop,c)})},events:[l,m,k],options:{name:"Resizable",orientation:i},_max:function(a){var c=this,d=c.hint?c.hint[c._sizingDom]():0,e=c.options.max;return g(e)?e(a):e!==b?c._initialElementPosition+e-d:e},_min:function(a){var c=this,d=c.options.min;return g(d)?d(a):d!==b?c._initialElementPosition+d:d},_start:function(b){var c=this,d=c.options.hint,e=a(b.currentTarget);c._initialMousePosition=b[c._positionMouse],c._initialElementPosition=e.position()[c._position],d&&(c.hint=g(d)?a(d(e)):d,c.hint.css({position:"absolute"}).css(c._position,c._initialElementPosition).appendTo(c.element)),c.trigger(k,b),c._maxPosition=c._max(b),c._minPosition=c._min(b),a(document.body).css("cursor",e.css("cursor"))},_resize:function(c){var d=this,e=a(c.currentTarget),f=d._maxPosition,g=d._minPosition,i=d._initialElementPosition+(c[d._positionMouse]-d._initialMousePosition),j;j=g!==b?Math.max(g,i):i,d.position=j=f!==b?Math.min(f,j):j,d.hint&&d.hint.toggleClass(d.options.invalidClass||"",j==f||j==g).css(d._position,j),d.trigger(l,h(c,{position:j}))},_stop:function(b){var c=this;c.hint&&c.hint.remove(),c.trigger(m,h(b,{position:c.position})),a(document.body).css("cursor","")}});c.ui.plugin(n)}(jQuery),function(a,b){var c=window.kendo,d=a.proxy,e="dir",f="asc",g="single",h="field",i="desc",j=".k-link",k=c.ui.Widget,l=k.extend({init:function(a,b){var c=this,e;k.fn.init.call(c,a,b),c.dataSource=c.options.dataSource.bind("change",d(c.refresh,c)),e=c.element.find(j),e[0]||(e=c.element.wrapInner('<a class="k-link" href="#"/>').find(j)),c.link=e,c.element.click(d(c._click,c))},options:{name:"Sortable",mode:g,allowUnsort:!0},refresh:function(){var b=this,c=b.dataSource.sort()||[],d,g,j,k,l=b.element,m=l.data(h);l.removeData(e);for(d=0,g=c.length;d<g;d++)j=c[d],m==j.field&&l.data(e,j.dir);k=l.data(e),l.find(".k-arrow-up,.k-arrow-down").remove(),k===f?a('<span class="k-icon k-arrow-up" />').appendTo(b.link):k===i&&a('<span class="k-icon k-arrow-down" />').appendTo(b.link)},_click:function(a){var c=this,d=c.element,j=d.data(h),k=d.data(e),l=c.options,m=c.dataSource.sort()||[],n,o;k===f?k=i:k===i&&l.allowUnsort?k=b:k=f;if(l.mode===g)m=[{field:j,dir:k}];else if(l.mode==="multiple"){for(n=0,o=m.length;n<o;n++)if(m[n].field===j){m.splice(n,1);break}m.push({field:j,dir:k})}a.preventDefault(),c.dataSource.sort(m)}});c.ui.plugin(l)}(jQuery),function(a,b){var c=window.kendo,d=c.keys,e=c.support.touch,f=c.ui.Widget,g=a.proxy,h=e?"touchend":"mouseup",i=e?"touchstart":"mousedown",j=e?"touchmove":"mousemove",k="k-state-selected",l="k-state-selecting",m="k-selectable",n="selectstart",o=a(document),p="change",q="k-state-unselecting",r=f.extend({init:function(b,c){var d=this;f.fn.init.call(d,b,c),d._marquee=a("<div class='k-marquee'></div>"),d._lastActive=null,d._moveDelegate=g(d._move,d),d._upDelegate=g(d._up,d),d.element.addClass(m),d.element.delegate("."+m+" "+d.options.filter,i,g(d._down,d))},events:[p],options:{name:"Selectable",filter:">*",multiple:!1},_collide:function(a,b){var c=a.offset(),d={left:c.left,top:c.top,right:c.left+a.outerWidth(),bottom:c.top+a.outerHeight()};return!(d.left>b.right||d.right<b.left||d.top>b.bottom||d.bottom<b.top)},_position:function(a){var b=this._originalPosition,c=b.x,d=b.y,e=a.pageX,f=a.pageY;if(c>e){var g=e;e=c,c=g}if(d>f){var g=f;f=d,d=g}return{top:d,right:e,left:c,bottom:f}},_down:function(b){var d=this,e,f=b.ctrlKey,g=b.shiftKey,i=!d.options.multiple;d._downTarget=a(b.currentTarget),d._shiftPressed=g;d._downTarget.closest("."+m)[0]===d.element[0]&&(o.unbind(h,d._upDelegate).bind(h,d._upDelegate),d._originalPosition={x:b.pageX,y:b.pageY},!i&&a(b.target).is(":not(:input)")&&(o.unbind(j,d._moveDelegate).bind(j,d._moveDelegate).unbind(n,!1).bind(n,!1),c.support.touch||b.preventDefault()),i||(a("body").append(d._marquee),d._marquee.css({left:b.clientX+1,top:b.clientY+1,width:0,height:0})),e=d._downTarget.hasClass(k),(i||!f&&!g)&&d.element.find(d.options.filter+"."+k).not(d._downTarget).removeClass(k),f&&(d._lastActive=d._downTarget),e&&(f||g)?(d._downTarget.addClass(k),g||d._downTarget.addClass(q)):(!c.support.touch||!i)&&d._downTarget.addClass(l))},_move:function(b){var c=this,d=c._position(b),e=b.ctrlKey,f,g;c._marquee.css({left:d.left,top:d.top,width:d.right-d.left,height:d.bottom-d.top}),c.element.find(c.options.filter).each(function(){f=a(this),g=c._collide(f,d),g?f.hasClass(k)?c._downTarget[0]!==f[0]&&e&&f.removeClass(k).addClass(q):!f.hasClass(l)&&!f.hasClass(q)&&f.addClass(l):f.hasClass(l)?f.removeClass(l):e&&f.hasClass(q)&&f.removeClass(q).addClass(k)})},_up:function(a){var b=this,d=b.options,e=!d.multiple;o.unbind(n,!1).unbind(j,b._moveDelegate).unbind(h,b._upDelegate),e||b._marquee.remove(),c.support.touch&&e&&b._downTarget.addClass(l),!e&&b._shiftPressed===!0?b.selectRange(b._firstSelectee(),b._downTarget):(b.element.find(d.filter+"."+q).removeClass(q).removeClass(k),b.value(b.element.find(d.filter+"."+l))),b._shiftPressed||(b._lastActive=b._downTarget),b._downTarget=null,b._shiftPressed=!1},value:function(a){var b=this,c=g(b._selectElement,b);if(a)a.each(function(){c(this)}),b.trigger(p,{});else return b.element.find(b.options.filter+"."+k)},_firstSelectee:function(){var a=this,b;if(a._lastActive!==null)return a._lastActive;b=a.value();return b.length>0?b[0]:a.element.find(a.options.filter)},_selectElement:function(b){var c=a(b),d=this.trigger("select",{element:b});c.removeClass(l),d||c.addClass(k)},clear:function(){var a=this;a.element.find(a.options.filter+"."+k).removeClass(k)},selectRange:function(b,c){var d=this,e=!1,f=g(d._selectElement,d),h;b=a(b)[0],c=a(c)[0],d.element.find(d.options.filter).each(function(){h=a(this);if(e)f(this),e=this!==c;else if(this===b)e=b!==c,f(this);else if(this===c){var d=b;b=c,c=d,e=!0,f(this)}else h.removeClass(k)}),d.trigger(p,{})}});c.ui.plugin(r)}(jQuery),function(a,b){function g(a,b,d,e){return a({idx:b,text:d,ns:c.ns,numeric:e})}var c=window.kendo,d=c.ui,e=d.Widget,f=a.proxy,h=e.extend({init:function(b,d){var g=this;e.fn.init.call(g,b,d),d=g.options,g.dataSource=d.dataSource,g.linkTemplate=c.template(g.options.linkTemplate),g.selectTemplate=c.template(g.options.selectTemplate),g._refreshHandler=f(g.refresh,g),g.dataSource.bind("change",g._refreshHandler),g.list=a('<ul class="k-pager k-reset k-numeric" />').appendTo(g.element),g._clickHandler=f(g._click,g),g.element.delegate("a","click",g._clickHandler),g.refresh()},destroy:function(){var a=this;a.element.undelegate("a","click",a._clickHandler),a.dataSource.unbind("change",a._refreshHandler)},options:{name:"Pager",selectTemplate:'<li><span class="k-state-active">#=text#</span></li>',linkTemplate:'<li><a href="\\#" class="k-link" data-#=ns#page="#=idx#">#=text#</a></li>',buttonCount:10},refresh:function(){var a=this,b,c,d=1,e="",f,h=a.page(),i=a.totalPages(),j=a.linkTemplate,k=a.options.buttonCount;h>k&&(f=h%k,d=f==0?h-k+1:h-f+1),c=Math.min(d+k-1,i),d>1&&(e+=g(j,d-1,"...",!1));for(b=d;b<=c;b++)e+=g(b==h?a.selectTemplate:j,b,b,!0);c<i&&(e+=g(j,b,"...",!1)),e===""&&(e=a.selectTemplate({text:1})),a.list.empty().append(e)},_click:function(b){var d=a(b.currentTarget).attr(c.attr("page"));b.preventDefault(),this.dataSource.page(d),this.trigger("change",{index:d})},totalPages:function(){return Math.ceil((this.dataSource.total()||0)/this.pageSize())},pageSize:function(){return this.dataSource.pageSize()||this.dataSource.total()},page:function(){return this.dataSource.page()||1}});d.plugin(h)}(jQuery),function(a,b){function K(b,c){return b===c||a.contains(b,c)}var c=window.kendo,d=c.ui,e=d.Widget,f=c.support,g=f.touch,h=c.getOffset,i=a.browser.msie&&a.browser.version<9,j="open",k="close",l="center",m="left",n="right",o="top",p="bottom",q="absolute",r="hidden",s="body",t="location",u="position",v="visible",w="fitted",x="effects",y="k-state-active",z="k-state-border",A=".k-picker-wrap, .k-dropdown-wrap, .k-link",B=g?"touchstart":"mousedown",C=a(document),D=a(window),E=a(document.documentElement),F="resize scroll",G=f.transitions.css,H=G+"transform",I=a.extend,J=["font-family","font-size","font-stretch","font-style","font-weight","line-height"],L=e.extend({init:function(b,d){var f=this;e.fn.init.call(f,b,d),b=f.element,d=f.options,f.collisions=f.options.collision.split(" "),f.collisions.length===1&&f.collisions.push(f.collisions[0]),f.element.hide().addClass("k-popup k-group k-reset").css({position:q}).appendTo(a(d.appendTo)).bind("mouseenter mouseleave",function(a){f._hovered=a.type==="mouseenter"}),f.wrapper=a(),d.animation===!1&&(d.animation={open:{show:!0,effects:{}},close:{hide:!0,effects:{}}}),x in d.animation.close||(d.animation.close=I(!0,{reverse:!0},d.animation.open,d.animation.close)),I(d.animation.open,{complete:function(){f.wrapper.css({overflow:v})}}),I(d.animation.close,{complete:function(){f.wrapper.hide();var e=f.wrapper.data(t),g=a(d.anchor),h,i;e&&f.wrapper.css(e),d.anchor!=s&&(h=g.hasClass(z+"-down")?"down":"up",i=z+"-"+h,g.removeClass(i).children(A).removeClass(y).removeClass(i),b.removeClass(z+"-"+c.directions[h].reverse)),f._closing=!1}}),f._mousedownProxy=function(a){f._mousedown(a)},f._currentWidth=C.width(),f._resizeProxy=function(a){f._resize(a)},d.toggleTarget&&a(d.toggleTarget).bind(d.toggleEvent,a.proxy(f.toggle,f))},events:[j,k],options:{name:"Popup",toggleEvent:"click",origin:p+" "+m,position:o+" "+m,anchor:s,appendTo:s,collision:"flip fit",animation:{open:{effects:"slideIn:down",transition:!0,duration:200,show:!0},close:{duration:100,show:!1,hide:!0}}},open:function(){var b=this,d=b.element,e=b.options,h="down",i,k,l=a(e.anchor),m,n;if(!b.visible()){for(n=0;n<J.length;n++)m=J[n],d.css(m,l.css(m));if(d.data("animating")||b.trigger(j))return;E.unbind(B,b._mousedownProxy).bind(B,b._mousedownProxy),g||D.unbind(F,b._resizeProxy).bind(F,b._resizeProxy),b.wrapper=k=c.wrap(d).css({overflow:r,display:"block",position:q}),f.mobileOS.android&&k.add(l).css(H,"translatez(0)"),k.css(u),e.appendTo==s&&k.css(o,"-10000px"),i=I(!0,{},e.animation.open),i.effects=c.parseEffects(i.effects,b._update()),h=i.effects.slideIn?i.effects.slideIn.direction:h;if(e.anchor!=s){var p=z+"-"+h;d.addClass(z+"-"+c.directions[h].reverse),l.addClass(p).children(A).addClass(y).addClass(p)}d.data(x,i.effects).kendoStop(!0).kendoAnimate(i)}},toggle:function(){var a=this;a[a.visible()?k:j]()},visible:function(){return this.element.is(":"+v)},close:function(){var a=this,b=a.options,d,e;if(a.visible()){if(a._closing||a.trigger(k))return;E.unbind(B,a._mousedownProxy),D.unbind(F,a._resizeProxy),d=I(!0,{},b.animation.close),e=a.element.data(x),a.wrapper=c.wrap(a.element).css({overflow:r}),e&&(d.effects=e),a._closing=!0,a.element.kendoStop(!0).kendoAnimate(d)}},_resize:function(a){var b=this;if(i){var c=C.width();if(c==b._currentWidth)return;b._currentWidth=c}b._hovered||b.close()},_mousedown:function(b){var d=this,e=d.element[0],f=d.options,g=a(f.anchor)[0],h=f.toggleTarget,i=c.eventTarget(b),j=a(i).closest(".k-popup")[0];(!j||j===d.element[0])&&!K(e,i)&&!K(g,i)&&(!h||!K(a(h)[0],i))&&d.close()},_update:function(){return this._position(a(window))},_fit:function(a,b,c){var d=0;a+b>c&&(d=c-(a+b)),a<0&&(d=a);return d},_flip:function(a,b,c,d,e,f,g){var h=0;g=g||b,f!==e&&f!==l&&e!==l&&(a+g>d&&(h+=-(c+b)),a+h<0&&(h+=c+b));return h},_position:function(b){var c=this,d=c.element,e=c.wrapper,g=c.options,i=a(g.anchor),j=g.origin.toLowerCase().split(" "),k=g.position.toLowerCase().split(" "),l=c.collisions,m=f.zoomLevel(),n=10002,o=i.parents().filter(e.siblings());if(o[0]){var p=Number(a(o).css("zIndex"));p&&(n=p+1)}e.css("zIndex",n),g.appendTo===L.fn.options.appendTo?e.css(c._align(j,k)):e.css(c._align(j,k,!0));var q=h(e,u),r=h(e),s=i.offsetParent().parent(".k-animation-container");s.length&&s.data(w)&&(q=h(e,u),r=h(e)),r={top:r.top-(window.pageYOffset||document.documentElement.scrollTop||0),left:r.left-(window.pageXOffset||document.documentElement.scrollLeft||0)},c.wrapper.data(t)||e.data(t,I({},q));var v=I({},r),x=I({},q);l[0]==="fit"&&(x.top+=c._fit(v.top,e.outerHeight(),b.height()/m)),l[1]==="fit"&&(x.left+=c._fit(v.left,e.outerWidth(),b.width()/m)),x.left!=q.left||x.top!=q.top?e.data(w,!0):e.removeData(w);var y=I({},x);l[0]==="flip"&&(x.top+=c._flip(v.top,d.outerHeight(),i.outerHeight(),b.height()/m,j[0],k[0],e.outerHeight())),l[1]==="flip"&&(x.left+=c._flip(v.left,d.outerWidth(),i.outerWidth(),b.width()/m,j[1],k[1],e.outerWidth())),e.css(x);return x.left!=y.left||x.top!=y.top},_align:function(b,c,d){var e=this,f=e.wrapper,g=a(e.options.anchor),i=b[0],j=b[1],k=c[0],q=c[1],r=h(g),s=h(a(e.options.appendTo)),t=d?{top:r.top-s.top,left:r.left-s.left}:r,u=f.outerWidth(),v=f.outerHeight(),w=g.outerWidth(),x=g.outerHeight(),y=t.top,z=t.left,A=Math.round,B=i!==k,C=j!==q;i===o&&d&&B&&(y-=v),i===p&&!d&&(y+=x),i===l&&(y+=A(x/2)),k===o&&d&&B&&(y+=x),k===p&&!d&&(y-=v),k===l&&(y-=A(v/2)),j===m&&d&&C&&(z-=u),j===n&&!d&&(z+=w),j===l&&(z+=A(w/2)),q===m&&d&&C&&(z+=w),q===n&&!d&&(z-=u),q===l&&(z-=A(u/2));return{top:y,left:z}}});d.plugin(L)}(jQuery),function(a,b){function v(b,c){return b===c||a.contains(b,c)}var c=window.kendo,d=c.ui,e=d.Widget,f=c.keys,g=c.support.touch,h="id",i="li",j=g?"touchend":"click",k="change",l="character",m="k-state-focused",n="k-state-hover",o="k-loading",p="open",q="close",r="select",s=a.extend,t=a.proxy,u=a.browser.msie&&parseInt(a.browser.version,10)<9,w=e.extend({init:function(b,d){var f=this,g,k;e.fn.init.call(f,b,d),f._template(),f.ul=a('<ul unselectable="on" class="k-list k-reset"/>').css({overflow:c.support.touch?"":"auto"}).delegate(i,"mouseenter",function(){a(this).addClass(n)}).delegate(i,"mouseleave",function(){a(this).removeClass(n)}).delegate(i,j,t(f._click,f)),f.list=k=a("<div class='k-list-container'/>").append(f.ul).mousedown(function(a){a.preventDefault()}),g=f.element.attr(h),g&&k.attr(h,g+"-list"),a(document.documentElement).bind("mousedown",t(f._mousedown,f))},items:function(){return this.ul[0].children},current:function(a){var c=this;if(a!==b)c._current&&c._current.removeClass(m),a&&(a.addClass(m),c._scroll(a)),c._current=a;else return c._current},dataItem:function(a){var c=this;a===b&&(a=c.selectedIndex);return c.dataSource.view()[a]},_accessors:function(){var a=this,b=a.element,d=a.options,e=c.getter,f=b.attr(c.attr("text-field")),g=b.attr(c.attr("value-field"));f&&(d.dataTextField=f),g&&(d.dataValueField=g),a._text=e(d.dataTextField),a._value=e(d.dataValueField)},_blur:function(){var a=this;a._change(),a.close()},_change:function(){var a=this,c=a.selectedIndex,d=a.value(),e;d!==a._old?e=!0:c!==b&&c!==a._oldIndex&&(e=!0),e&&(a._old=d,a._oldIndex=c,a.trigger(k),a.element.trigger(k))},_click:function(b){b.isDefaultPrevented()||this._accept(a(b.currentTarget))},_enable:function(){var a=this,b=a.options;a.element.prop("disabled")&&(b.enable=!1),a.enable(b.enable)},_focus:function(a){var b=this;b.popup.visible()&&b.trigger(r,{item:a})?b.close():(b._select(a),b._blur())},_height:function(a){if(a){var b=this,c=b.list,d=b.popup.visible(),e=b.options.height;c=c.add(c.parent(".k-animation-container")).show().height(b.ul[0].scrollHeight>e?e:"auto"),d||c.hide()}},_popup:function(){var b=this,e=b.list,f=b.options,g=b.wrapper,h=window.getComputedStyle?window.getComputedStyle(g[0],null):0,i=h?parseFloat(h.width):g.outerWidth(),j;h&&(a.browser.mozilla||a.browser.msie)&&(i+=parseFloat(h.paddingLeft)+parseFloat(h.paddingRight)+parseFloat(h.borderLeftWidth)+parseFloat(h.borderRightWidth)),b.popup=new d.Popup(e,s({},f.popup,{anchor:g,open:function(a){b.trigger(p)&&a.preventDefault()},close:function(a){b.trigger(q)&&a.preventDefault()},animation:f.animation})),j=i-(e.outerWidth()-e.width()),e.css({fontFamily:g.css("font-family"),width:j}),b._touchScroller=c.touchScroller(b.popup.element)},_makeUnselectable:function(a){u&&this.list.find("*").attr("unselectable","on")},_toggleHover:function(b){g||a(b.currentTarget).toggleClass(n,b.type==="mouseenter")},_toggle:function(a){var c=this;a=a!==b?a:!c.popup.visible(),!g&&c._focused[0]!==document.activeElement&&c._focused.focus(),c[a?p:q]()},_scroll:function(a){if(!!a){a[0]&&(a=a[0]);var b=this.ul[0],c=a.offsetTop,d=a.offsetHeight,e=b.scrollTop,f=b.clientHeight,g=c+d;b.scrollTop=e>c?c:g>e+f?g-f:e}},_template:function(){var a=this,b=a.options,d=b.template,e=b.dataSource;a.element.is(r)&&a.element[0].length&&(e||(b.dataTextField=b.dataTextField||"text",b.dataValueField=b.dataValueField||"value")),d?(d=c.template(d),a.template=function(a){return"<li class='k-item'>"+d(a)+"</li>"}):a.template=c.template("<li class='k-item'>${data"+(b.dataTextField?".":"")+b.dataTextField+"}</li>",{useWithBlock:!1})}});s(w,{caret:function(a){var b,c=a.ownerDocument.selection;c?b=Math.abs(c.createRange().moveStart(l,-a.value.length)):b=a.selectionStart;return b},selectText:function(a,b,c){if(a.createTextRange){var d=a.createTextRange();d.collapse(!0),d.moveStart(l,b),d.moveEnd(l,c-b),d.select()}else a.setSelectionRange(b,c)},inArray:function(a,b){var c,d,e=b.children;if(!a||a.parentNode!==b)return-1;for(c=0,d=e.length;c<d;c++)if(a===e[c])return c;return-1}}),c.ui.List=w,d.Select=w.extend({init:function(a,b){w.fn.init.call(this,a,b)},setDataSource:function(a){this.options.dataSource=a,this._dataSource(),this._selectItem()},close:function(){this.popup.close()},_accessor:function(a,c){var d=this.element,e=d.is(r),f,g;d=d[0];if(a===b){e?(g=d.selectedIndex,g>-1&&(f=d.options[g],f&&(a=f.value))):a=d.value;return a}e?d.selectedIndex=c:d.value=a},_hideBusy:function(){var a=this;clearTimeout(a._busy),a._arrow.removeClass(o)},_showBusy:function(){var a=this;a._busy||(a._busy=setTimeout(function(){a._arrow.addClass(o)},100))},_data:function(){return this.dataSource.view()},_dataSource:function(){var b=this,d=b.element,e=b.options,f=e.dataSource||{},g;f=a.isArray(f)?{data:f}:f,d.is(r)&&(g=d[0].selectedIndex,g>-1&&(e.index=g),f.select=d,f.fields=[{field:e.dataTextField},{field:e.dataValueField}]),b.dataSource&&b._refreshHandler?b.dataSource.unbind(k,b._refreshHandler).unbind("requestStart",b._requestStartHandler):(b._refreshHandler=t(b.refresh,b),b._requestStartHandler=t(b._showBusy,b)),b.dataSource=c.data.DataSource.create(f).bind(k,b._refreshHandler).bind("requestStart",b._requestStartHandler)},_index:function(a){var c=this,d,e,f=c._data(),g;for(d=0,e=f.length;d<e;d++){g=c._value(f[d]),g===b&&(g=c._text(f[d]));if(g==a)return d}return-1},_get:function(b){var c=this,d=c._data(),e,f;if(typeof b=="function")for(e=0,f=d.length;e<f;e++)if(b(d[e])){b=e;break}if(typeof b=="number"){if(b<0)return a();b=a(c.ul[0].children[b])}b&&b.nodeType&&(b=a(b));return b},_move:function(a){var b=this,c=a.keyCode,d=b.ul[0],e=b._current,g=c===f.DOWN,h;c===f.UP||g?(a.altKey?b.toggle(g):g?(b._select(e?e[0].nextSibling:d.firstChild),a.preventDefault()):(b._select(e?e[0].previousSibling:d.lastChild),a.preventDefault()),h=!0):c===f.ENTER||c===f.TAB?(b.popup.visible()&&a.preventDefault(),b._accept(e),h=!0):c===f.ESC&&(b.close(),h=!0);return h},_valueOnFetch:function(a){var b=this;if(!b.ul[0].firstChild&&!b._fetch){b.dataSource.one(k,function(){b._fetch=!0,b.value(a)}).fetch();return!0}b._fetch=!1},_options:function(a,c){var d=this,e=d.element,f=e[0].selectedIndex,g=d.value(),h=a.length,i="",j,k,l,m,n=0;c&&(i=c,n=1);for(;n<h;n++)j="<option",k=a[n],l=d._text(k),m=d._value(k),m!==b&&(j+=' value="'+m+'"'),j+=">",l!==b&&(j+=l),j+="</option>",i+=j;e.html(i),e[0].selectedIndex=f},_reset:function(){var a=this,b=a.element;b.closest("form").bind("reset",function(){setTimeout(function(){a.value(b[0].value)})})}})}(jQuery),function(a,b){function Y(a){m&&a.find("*").attr("unselectable","on")}function X(a){var d=L[a.start],e=L[a.depth],f=a.format||c.culture().calendar.patterns.d;isNaN(d)&&(d=0,a.start=r);if(e===b||e>d)a.depth=r;f.slice(0,3)==="{0:"&&(f=f.slice(3,f.length-1)),a.format=f}function W(a){a.preventDefault()}function V(){a(this).removeClass(w)}function U(){a(this).addClass(w)}function T(a,b,c){b=b instanceof K?b.getFullYear():a.getFullYear()+c*b,a.setFullYear(b)}function S(a,b){return a.slice(b).concat(a.slice(0,b))}function R(a,b,c){return+a>=+b&&+a<=+c}function Q(a,b,c){var d=new K;d=new K(d.getFullYear(),d.getMonth(),d.getDate()),a&&(d=new K(a)),b>d?d=new K(b):c<d&&(d=new K(c));return d}function P(a,b,c){var d=a.getFullYear(),e=b.getFullYear(),f=e,g=0;c&&(e=e-e%c,f=e-e%c+c-1),d>f?g=1:d<e&&(g=-1);return g}function O(a){var b=0,c,d=a.view,e=a.min,f=a.max,g=a.start,h=a.setter,i=a.build,j=a.cells||12,m=a.perRow||4,n=a.toDateString,o=a.content||k,p=a.empty||l,q=a.html||'<table class="k-content k-meta-view" cellspacing="0"><tbody><tr>';for(;b<j;b++)b>0&&b%m==0&&(q+="</tr><tr>"),c=i(g,b),q+=R(g,e,f)?o(c):p(c),h(g,1);return q+"</tr></tbody></table>"}var c=window.kendo,d=c.ui,e=d.Widget,f=c.parseDate,g=c.template,h=c.support.touch,i=c.support.transitions,j=i?i.css+"transform-origin":"",k=g('<td#=data.cssClass#><a class="k-link" href="\\#" data-#=data.ns#value="#=data.dateString#">#=data.value#</a></td>',{useWithBlock:!1}),l=g("<td> </td>",{useWithBlock:!1}),m=a.browser.msie&&parseInt(a.browser.version,10)<9,n=h?"touchend":"click",o="min",p="left",q="slide",r="month",s="century",t="change",u="navigate",v="value",w="k-state-hover",x="k-state-disabled",y="k-other-month",z=' class="'+y+'"',A="k-nav-today",B="td:has(.k-link)",C=h?"touchstart":"mouseenter",D=h?"touchend":"mouseleave",E=6e4,F=864e5,G="_prevArrow",H="_nextArrow",I=a.proxy,J=a.extend,K=Date,L={month:0,year:1,decade:2,century:3},M=e.extend({init:function(a,b){var d=this,f;e.fn.init.call(d,a,b),a=d.wrapper=d.element,b=d.options,a.addClass("k-widget k-calendar"),d._templates(),d._header(),d._footer(d.footer),a.delegate(B,C,U).delegate(B,D,V).delegate(B,n,I(d._click,d)),f=b.value,X(b),d._index=L[b.start],d._current=new K(Q(f,b.min,b.max)),d.value(f),c.notify(d)},options:{name:"Calendar",value:null,min:new K(1900,0,1),max:new K(2099,11,31),footer:'#= kendo.toString(data,"D") #',format:"",month:{},start:r,depth:r,animation:{horizontal:{effects:q,duration:500,divisor:2},vertical:{effects:"zoomIn",duration:400}}},events:[t,u],min:function(a){return this._option(o,a)},max:function(a){return this._option("max",a)},navigateToPast:function(){this._navigate(G,-1)},navigateToFuture:function(){this._navigate(H,1)},navigateUp:function(){var a=this,b=a._index;a._title.hasClass(x)||a.navigate(a._current,++b)},navigateDown:function(a){var b=this,c=b._index,d=b.options.depth;if(!!a){if(c===L[d]){+b._value!=+a&&(b.value(a),b.trigger(t));return}b.navigate(a,--c)}},navigate:function(c,d){d=isNaN(d)?L[d]:d;var e=this,f=e.options,g=f.min,h=f.max,i=e._title,j=e._table,k=e._value,l=e._current,m=c&&+c>+l,n=d!==b&&d!==e._index,o,p,q;if(!j||!j.parent().data("animating")){c?e._current=c=new K(Q(c,g,h)):c=l,d===b?d=e._index:e._index=d,e._view=p=N.views[d],q=p.compare,i.toggleClass(x,d===L[s]),e[G].toggleClass(x,q(c,g)<1),e[H].toggleClass(x,q(c,h)>-1);if(!j||e._changeView)i.html(p.title(c)),e._table=o=a(p.content(J({min:g,max:h,date:c},e[p.name]))),Y(o),e._animate({from:j,to:o,vertical:n,future:m}),e.trigger(u);d===L[f.depth]&&k&&e._class("k-state-selected",p.toDateString(k)),e._changeView=!0}},value:function(a){var c=this,d=c._view,e=c.options,g=e.min,h=e.max;if(a===b)return c._value;a=f(a,e.format),a!==null&&(a=new K(a),R(a,g,h)||(a=null)),c._value=a,c._changeView=!a||d&&d.compare(a,c._current)!==0,c.navigate(a)},_animate:function(a){var b=this,c=a.from,d=a.to;c?!c.is(":visible")||b.options.animation===!1?(d.insertAfter(c),c.remove()):b[a.vertical?"_vertical":"_horizontal"](c,d,a.future):d.insertAfter(b.element[0].firstChild)},_horizontal:function(a,b,c){var d=this,e=d.options.animation.horizontal,f=e.effects,g=a.outerWidth();f&&f.indexOf(q)!=-1&&(a.add(b).css({width:g}),a.wrap("<div/>"),a.parent().css({position:"relative",width:g*2,"float":p,left:c?0:-g}),b[c?"insertAfter":"insertBefore"](a),J(e,{effects:q+":"+(c?p:"right"),complete:function(){a.remove(),b.unwrap()}}),a.parent().kendoStop(!0,!0).kendoAnimate(e))},_vertical:function(a,b){var c=this,d=c.options.animation.vertical,e=d.effects,f=a.outerWidth(),g,h;e&&e.indexOf("zoom")!=-1&&(b.css({position:"absolute",top:a.prev().outerHeight(),left:0}).insertBefore(a),j&&(g=c._cellByDate(c._view.toDateString(c._current)),h=g.position(),h=h.left+parseInt(g.width()/2)+"px"+" "+(h.top+parseInt(g.height()/2)+"px"),b.css(j,h)),a.kendoStop(!0,!0).kendoAnimate({effects:"fadeOut",duration:600,complete:function(){a.remove(),b.css({position:"static",top:0,left:0})}}),b.kendoStop(!0,!0).kendoAnimate(d))},_cellByDate:function(b){return this._table.find("td:not(."+y+")").filter(function(){return a(this.firstChild).attr(c.attr(v))===b})},_class:function(b,d){this._table.find("td:not(."+y+")").removeClass(b).filter(function(){return a(this.firstChild).attr(c.attr(v))===d}).addClass(b)},_click:function(b){var d=this,e=d.options,f=d._current,g=a(b.currentTarget.firstChild),h=g.attr(c.attr(v)).split("/");h=new K(h[0],h[1],h[2]),b.preventDefault(),g.parent().hasClass(y)?f=h:d._view.setDate(f,h),d.navigateDown(Q(f,e.min,e.max))},_focus:function(a){var b=this,c=b._view;c.compare(a,b._current)!==0?b.navigate(a):b._current=a,b._class("k-state-focused",c.toDateString(a))},_footer:function(b){var d=this,e=d.element,f=new K,g=e.find(".k-footer"),h;b?(g[0]||(g=a('<div class="k-footer"><a href="#" class="k-link k-nav-today"></a></div>').appendTo(e)),d._today=g.show().find(".k-link").html(b(f)).attr("title",c.toString(f,"D")),d._toggle()):(d._toggle(!1),g.hide())},_header:function(){var a=this,b=a.element,c;b.find(".k-header")[0]||b.html('<div class="k-header"><a href="#" class="k-link k-nav-prev"><span class="k-icon k-arrow-prev"></span></a><a href="#" class="k-link k-nav-fast"></a><a href="#" class="k-link k-nav-next"><span class="k-icon k-arrow-next"></span></a></div>'),c=b.find(".k-link").bind(C,U).bind(D,V).click(!1),a._title=c.eq(1).bind(n,I(a.navigateUp,a)),a[G]=c.eq(0).bind(n,I(a.navigateToPast,a)),a[H]=c.eq(2).bind(n,I(a.navigateToFuture,a))},_navigate:function(a,b){var c=this,d=c._index+1,e=new K(c._current);a=c[a],a.hasClass(x)||(d>3?e.setFullYear(e.getFullYear()+100*b):N.views[d].setDate(e,b),c.navigate(e))},_option:function(a,c){var d=this,e=d.options,g=+d._value,h,i;if(c===b)return e[a];c=f(c,e.format);!c||(e[a]=new K(c),i=d._view.compare(c,d._current),a===o?(h=+c>g,i=i>-1):(h=g>+c,i=i<1),h?d.value(null):i&&d.navigate(),d._toggle())},_toggle:function(a){var c=this,d=c.options,e=c._today;a===b&&(a=R(new K,d.min,d.max)),e&&(e.unbind(n),a?e.addClass(A).removeClass(x).bind(n,I(c._todayClick,c)):e.removeClass(A).addClass(x).bind(n,W))},_todayClick:function(a){var b=this,c=L[b.options.depth],d=new K;a.preventDefault(),b._view.compare(b._current,d)===0&&b._index==c&&(b._changeView=!1),b._value=d,b.navigate(d,c),b.trigger(t)},_templates:function(){var a=this,b=a.options,d=b.footer,e=b.month,f=e.content,h=e.empty;a.month={content:g('<td#=data.cssClass#><a class="k-link" href="\\#" '+c.attr("value")+'="#=data.dateString#" title="#=data.title#">'+(f||"#=data.value#")+"</a></td>",{useWithBlock:!!f}),empty:g("<td>"+(h||" ")+"</td>",{useWithBlock:!!h})},d&&(a.footer=g(d,{useWithBlock:!1}))}});d.plugin(M);var N={firstDayOfMonth:function(a){return new K(a.getFullYear(),a.getMonth(),1)},firstVisibleDay:function(a){var b=c.culture().calendar.firstDay,d=new K(a.getFullYear(),a.getMonth(),0,a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds());while(d.getDay()!=b)N.setTime(d,-1*F);return d},setTime:function(a,b){var c=a.getTimezoneOffset(),d=new K(a.getTime()+b),e=d.getTimezoneOffset()-c;a.setTime(d.getTime()+e*E)},views:[{name:r,title:function(a){return c.culture().calendar.months.names[a.getMonth()]+" "+a.getFullYear()},content:function(a){var b=this,d=0,e=a.min,f=a.max,g=a.date,h=c.culture().calendar,i=h.firstDay,j=h.days,k=S(j.names,i),l=S(j.namesAbbr,i),m=S(j.namesShort,i),n=N.firstVisibleDay(g),o=b.first(g),p=b.last(g),q=b.toDateString,r=new K,s='<table class="k-content" cellspacing="0"><thead><tr>';for(;d<7;d++)s+='<th abbr="'+l[d]+'" scope="col" title="'+k[d]+'">'+m[d]+"</th>";r=+(new K(r.getFullYear(),r.getMonth(),r.getDate()));return O({cells:42,perRow:7,html:s+="</tr></thead><tbody><tr>",start:new K(n.getFullYear(),n.getMonth(),n.getDate()),min:new K(e.getFullYear(),e.getMonth(),e.getDate()),max:new K(f.getFullYear(),f.getMonth(),f.getDate()),content:a.content,empty:a.empty,setter:b.setDate,build:function(a,b){var d=[],e=a.getDay();(a<o||a>p)&&d.push(y),+a===r&&d.push("k-today"),(e===0||e===6)&&d.push("k-weekend");return{date:a,ns:c.ns,title:c.toString(a,"D"),value:a.getDate(),dateString:q(a),cssClass:d[0]?' class="'+d.join(" ")+'"':""}}})},first:function(a){return N.firstDayOfMonth(a)},last:function(a){return new K(a.getFullYear(),a.getMonth()+1,0)},compare:function(a,b){var c,d=a.getMonth(),e=a.getFullYear(),f=b.getMonth(),g=b.getFullYear();e>g?c=1:e<g?c=-1:c=d==f?0:d>f?1:-1;return c},setDate:function(a,b){b instanceof K?a.setFullYear(b.getFullYear(),b.getMonth(),b.getDate()):N.setTime(a,b*F)},toDateString:function(a){return a.getFullYear()+"/"+a.getMonth()+"/"+a.getDate()}},{name:"year",title:function(a){return a.getFullYear()},content:function(a){var b=c.culture().calendar.months.namesAbbr,d=this.toDateString,e=a.min,f=a.max;return O({min:new K(e.getFullYear(),e.getMonth(),1),max:new K(f.getFullYear(),f.getMonth(),1),start:new K(a.date.getFullYear(),0,1),setter:this.setDate,build:function(a){return{value:b[a.getMonth()],ns:c.ns,dateString:d(a),cssClass:""}}})},first:function(a){return new K(a.getFullYear(),0,a.getDate())},last:function(a){return new K(a.getFullYear(),11,a.getDate())},compare:function(a,b){return P(a,b)},setDate:function(a,b){if(b instanceof K)a.setFullYear(b.getFullYear(),b.getMonth(),a.getDate());else{var c=a.getMonth()+b;a.setMonth(c),c>11&&(c-=12),c>0&&a.getMonth()!=c&&a.setDate(0)}},toDateString:function(a){return a.getFullYear()+"/"+a.getMonth()+"/1"}},{name:"decade",title:function(a){var b=a.getFullYear();b=b-b%10;return b+"-"+(b+9)},content:function(a){var b=a.date.getFullYear(),d=this.toDateString;return O({start:new K(b-b%10-1,0,1),min:new K(a.min.getFullYear(),0,1),max:new K(a.max.getFullYear(),0,1),setter:this.setDate,build:function(a,b){return{value:a.getFullYear(),ns:c.ns,dateString:d(a),cssClass:b==0||b==11?z:""}}})},first:function(a){var b=a.getFullYear();return new K(b-b%10,a.getMonth(),a.getDate())},last:function(a){var b=a.getFullYear();return new K(b-b%10+9,a.getMonth(),a.getDate())},compare:function(a,b){return P(a,b,10)},setDate:function(a,b){T(a,b,1)},toDateString:function(a){return a.getFullYear()+"/0/1"}},{name:s,title:function(a){var b=a.getFullYear();b=b-b%100;return b+"-"+(b+99)},content:function(a){var b=a.date.getFullYear(),d=a.min.getFullYear(),e=a.max.getFullYear(),f=this.toDateString;d=d-d%10,e=e-e%10,e-d<10&&(e=d+9);return O({start:new K(b-b%100-10,0,1),min:new K(d,0,1),max:new K(e,0,1),setter:this.setDate,build:function(a,b){var d=a.getFullYear();return{value:d+" - "+(d+9),ns:c.ns,dateString:f(a),cssClass:b==0||b==11?z:""}}})},first:function(a){var b=a.getFullYear();return new K(b-b%100,a.getMonth(),a.getDate())},last:function(a){var b=a.getFullYear();return new K(b-b%100+99,a.getMonth(),a.getDate())},compare:function(a,b){return P(a,b,100)},setDate:function(a,b){T(a,b,10)},toDateString:function(a){var b=a.getFullYear();return b-b%10+"/0/1"}}]};N.makeUnselectable=Y,N.restrictValue=Q,N.isInRange=R,N.validate=X,N.viewsEnum=L,c.calendar=N}(jQuery),function(a,b){var c=window.kendo,d=c.ui,e=c.support.touch,f=d.Widget,g=c.parseDate,h=c.keys,i=c.template,j="<div />",k="<span />",l=e?"touchend":"click",m=l+".datepicker",n="open",o="close",p="change",q="navigate",r="dateView",s="disabled",t="k-state-default",u="k-state-focused",v="k-state-selected",w="k-state-disabled",x="k-state-hover",y="mouseenter mouseleave",z=e?"touchstart":"mousedown",A="min",B="max",C="month",D="first",E=c.calendar,F=E.viewsEnum,G=E.isInRange,H=E.restrictValue,I=a.extend,J=a.proxy,K=Date,L=function(b){var c=this,e=document.body,f=M.sharedCalendar;f||(f=M.sharedCalendar=new d.Calendar(a(j).hide().appendTo(e)),E.makeUnselectable(f.element)),c.calendar=f,c.options=b=b||{},c.popup=new d.Popup(a(j).addClass("k-calendar-container").appendTo(e),I(b.popup,b)),c._templates(),c.value(b.value)};L.prototype={_calendar:function(){var a=this,b=a.popup,c=a.options,d=a.calendar,f=d.element;f.data(r)!==a&&(f.appendTo(b.element).data(r,a).undelegate(m).delegate("td:has(.k-link)",m,J(a._click,a)).unbind(z).bind(z,function(a){a.preventDefault()}).show(),d.unbind(p).bind(p,c),e||d.unbind(q).bind(q,J(a._navigate,a)),d.month=a.month,d.options.depth=c.depth,d._footer(a.footer),d.min(c.min),d.max(c.max),d.navigate(a._value,c.start),a.value(a._value))},open:function(){var a=this;a._calendar(),a.popup.open()},close:function(){this.popup.close()},min:function(a){this._option(A,a)},max:function(a){this._option(B,a)},toggle:function(){var a=this;a[a.popup.visible()?o:n]()},move:function(a){var b=this,c=b.options,d=c.min,e=c.max,f=new K(b._current),g=b.calendar,i=g._index,j=g._view,k=a.keyCode,l,m,n,o;if(k==h.ESC)b.close();else{if(a.altKey){k==h.DOWN?(b.open(),n=!0):k==h.UP&&(b.close(),n=!0);return}if(!b.popup.visible()||g._table.parent().data("animating"))return;if(a.ctrlKey)k==h.RIGHT?(g.navigateToFuture(),n=!0):k==h.LEFT?(g.navigateToPast(),n=!0):k==h.UP?(g.navigateUp(),n=!0):k==h.DOWN&&(b._navigateDown(),n=!0);else{k==h.RIGHT?(m=1,n=!0):k==h.LEFT?(m=-1,n=!0):k==h.UP?(m=i===0?-7:-4,n=!0):k==h.DOWN?(m=i===0?7:4,n=!0):k==h.ENTER?(b._navigateDown(),n=!0):k==h.HOME||k==h.END?(o=k==h.HOME?D:"last",f=j[o](f),n=!0):k==h.PAGEUP?(n=!0,g.navigateToPast()):k==h.PAGEDOWN&&(n=!0,g.navigateToFuture());if(m||o)o||j.setDate(f,m),b._current=f=H(f,c.min,c.max),g._focus(f)}n&&a.preventDefault()}},value:function(a){var b=this,c=b.calendar,d=b.options;b._value=a,b._current=new K(H(a,d.min,d.max)),c.element.data(r)===b&&(c._focus(b._current),c.value(a))},_click:function(a){a.currentTarget.className.indexOf(v)!==-1&&this.close()},_navigate:function(){var a=this,b=a.calendar;a._current=new K(b._current),b._focus(b._current)},_navigateDown:function(){var a=this,b=a.calendar,d=b._current,e=b._table.find("."+u),f=e.children(":"+D).attr(c.attr("value")).split("/");f=new K(f[0],f[1],f[2]);!e[0]||e.hasClass(v)?a.close():(b._view.setDate(d,f),b.navigateDown(d))},_option:function(a,b){var c=this,d=c.options,e=c.calendar;d[a]=b,e.element.data(r)===c&&e[a](b)},_templates:function(){var a=this,b=a.options,d=b.footer,e=b.month||{},f=e.content,g=e.empty;a.month={content:i('<td#=data.cssClass#><a class="k-link" href="\\#" '+c.attr("value")+'="#=data.dateString#" title="#=data.title#">'+(f||"#=data.value#")+"</a></td>",{useWithBlock:!!f}),empty:i("<td>"+(g||" ")+"</td>",{useWithBlock:!!g})},d&&(a.footer=i(d,{useWithBlock:!1}))}},c.DateView=L;var M=f.extend({init:function(a,b){var d=this,e,g;f.fn.init.call(d,a,b),a=d.element,b=d.options,E.validate(b),d._wrapper(),d.dateView=e=new L(I({},b,{anchor:d.wrapper,change:function(){d._change(this.value()),d.close()},close:function(a){d.trigger(o)&&a.preventDefault()},open:function(a){d.trigger(n)&&a.preventDefault()}})),d._icon(),a.addClass("k-input").bind({keydown:J(d._keydown,d),focus:function(a){d._inputWrapper.addClass(u)},blur:J(d._blur,d)}).closest("form").bind("reset",function(){d.value(a[0].defaultValue)}),d.enable(!a.is("[disabled]")),d.value(b.value||d.element.val()),c.notify(d)},events:[n,o,p],options:{name:"DatePicker",value:null,format:"",min:new Date(1900,0,1),max:new Date(2099,11,31),footer:'#= kendo.toString(data,"D") #',start:C,depth:C,animation:{},month:{}},setOptions:function(a){f.fn.setOptions.call(this,a),I(this.dateView.options,a)},enable:function(a){var b=this,c=b._icon.unbind(l+" "+z),d=b._inputWrapper.unbind(y),e=b.element;a===!1?(d.removeClass(t).addClass(w),e.attr(s,s)):(d.addClass(t).removeClass(w).bind(y,b._toggleHover),e.removeAttr(s),c.bind(l,J(b._click,b)).bind(z,function(a){a.preventDefault()}))},open:function(){this.dateView.open()},close:function(){this.dateView.close()},min:function(a){return this._option(A,a)},max:function(a){return this._option(B,a)},value:function(a){var c=this;if(a===b)return c._value;c._old=c._update(a)},_toggleHover:function(b){e||a(b.currentTarget).toggleClass(x,b.type==="mouseenter")},_blur:function(){var a=this;a.close(),a._change(a.element.val()),a._inputWrapper.removeClass(u)},_click:function(){var a=this,b=a.element;!e&&b[0]!==document.activeElement&&b.focus(),a.dateView.toggle()},_change:function(a){var b=this;a=b._update(a),+b._old!=+a&&(b._old=a,b.trigger(p),b.element.trigger(p))},_keydown:function(a){var b=this,c=b.dateView;!c.popup.visible()&&a.keyCode==h.ENTER?b._change(b.element.val()):c.move(a)},_icon:function(){var b=this,c=b.element,d;d=c.next("span.k-select"),d[0]||(d=a('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-icon-calendar">select</span></span>').insertAfter(c)),b._icon=d},_option:function(a,c){var d=this,e=d.options;if(c===b)return e[a];c=g(c,e.format);!c||(e[a]=new K(c),d.dateView[a](c))},_update:function(a){var b=this,d=b.options,e=d.format,f=g(a,e);G(f,d.min,d.max)||(f=null),b._value=f,b.dateView.value(f),b.element.val(f?c.toString(f,e):a);return f},_wrapper:function(){var b=this,c=b.element,d;d=c.parents(".k-datepicker"),d[0]||(d=c.wrap(k).parent().addClass("k-picker-wrap k-state-default"),d=d.wrap(k).parent()),d[0].style.cssText=c[0].style.cssText,c.css({width:"100%",height:c[0].style.height}),b.wrapper=d.addClass("k-widget k-datepicker k-header"),b._inputWrapper=a(d[0].firstChild)}});d.plugin(M)}(jQuery),function(a,b){function x(a){var b=a.value.length;s(a,b,b)}function w(a,b,c,d){var e=b.split(d);e.splice(u(a,b,d),1,c),d&&e[e.length-1]!==""&&e.push("");return e.join(d)}function v(a,b,c){return b.split(c)[u(a,b,c)]}function u(a,b,c){return c?b.substring(0,a).split(c).length-1:0}var c=window.kendo,d=c.support,e=d.placeholder,f=c.ui,g=c.keys,h=c.data.DataSource,i=f.List,j="change",k="k-state-default",l="disabled",m="k-state-focused",n="k-state-selected",o="k-state-disabled",p="k-state-hover",q="mouseenter mouseleave",r=i.caret,s=i.selectText,t=a.proxy,y=i.extend({init:function(b,d){var f=this,g,h;d=a.isArray(d)?{dataSource:d}:d,i.fn.init.call(f,b,d),b=f.element,d=f.options,d.placeholder=d.placeholder||b.attr("placeholder"),e&&b.attr("placeholder",d.placeholder),f._wrapper(),f._accessors(),f._dataSource(),b[0].type="text",g=f.wrapper,b.attr("autocomplete","off").addClass("k-input").bind({keydown:t(f._keydown,f),paste:t(f._search,f),focus:function(){f._prev=f.value(),f._placeholder(!1),g.addClass(m),clearTimeout(f._bluring)},blur:function(){f._change(),f._placeholder(),g.removeClass(m)}}),f._enable(),f._popup(),f._old=f.value(),f._placeholder(),c.notify(f)},options:{name:"AutoComplete",suggest:!1,template:"",dataTextField:"",minLength:1,delay:200,height:200,filter:"startswith",highlightFirst:!1,separator:null,placeholder:"",animation:{}},_dataSource:function(){var a=this;a.dataSource&&a._refreshHandler?a.dataSource.unbind(j,a._refreshHandler):a._refreshHandler=t(a.refresh,a),a.dataSource=h.create(a.options.dataSource).bind(j,a._refreshHandler)},setDataSource:function(a){this.options.dataSource=a,this._dataSource()},events:["open","close",j,"select","dataBinding","dataBound"],setOptions:function(a){i.fn.setOptions.call(this,a),this._template(),this._accessors()},enable:function(a){var b=this,c=b.element,d=b.wrapper;a===!1?(d.removeClass(k).addClass(o).unbind(q),c.attr(l,l)):(d.removeClass(o).addClass(k).bind(q,b._toggleHover),c.removeAttr(l))},close:function(){var a=this;a._current=null,a.popup.close()},refresh:function(){var b=this,d=b.ul[0],e=b.popup,f=b.options,g=f.suggest,h=b.dataSource.view(),i=h.length;b.trigger("dataBinding"),d.innerHTML=c.render(b.template,h),b._height(i),i&&((g||f.highlightFirst)&&b.current(a(d.firstChild)),g&&b.suggest(b._current)),b._open&&(b._open=!1,e[i?"open":"close"]()),b._touchScroller&&b._touchScroller.reset(),b._makeUnselectable(),b.trigger("dataBound")},select:function(a){this._select(a)},search:function(a){var b=this,a=a||b.value(),c=b.options,d=c.separator,e,f,g;b._current=null,clearTimeout(b._typing),d&&(a=v(r(b.element[0]),a,d)),e=a.length,e?e>=b.options.minLength&&(b._open=!0,b.dataSource.filter({field:c.dataTextField,operator:c.filter,value:a})):b.popup.close()},suggest:function(a){var c=this,d=c._last,e=c.value(),f=c.element[0],h=r(f),i=c.options.separator,j=e.split(i),k=u(h,e,i),l=h,m;d==g.BACKSPACE||d==g.DELETE?c._last=b:(a=a||"",typeof a!="string"&&(m=a.index(),m>-1?a=c._text(c.dataSource.view()[m]):a=""),h<=0&&(h=e.toLowerCase().indexOf(a.toLowerCase())+1),m=e.substring(0,h).lastIndexOf(i),m=m>-1?h-(m+i.length):h,e=j[k].substring(0,m),a&&(m=a.toLowerCase().indexOf(e.toLowerCase()),m>-1&&(a=a.substring(m+e.length),l=h+a.length,e+=a),i&&j[j.length-1]!==""&&j.push("")),j[k]=e,c.value(j.join(i||"")),s(f,h,l))},value:function(a){var c=this,d=c.element[0];if(a!==b)d.value=a;else return d.value},_accept:function(a){var b=this;b._focus(a),x(b.element[0])},_keydown:function(b){var c=this,d=c.ul[0],e=b.keyCode,f=c._current,h=c.popup.visible();c._last=e,e===g.DOWN?(h&&c._move(f?f.next():a(d.firstChild)),b.preventDefault()):e===g.UP?(h&&c._move(f?f.prev():a(d.lastChild)),b.preventDefault()):e===g.ENTER||e===g.TAB?(c.popup.visible()&&b.preventDefault(),c._accept(f)):e===g.ESC?c.close():c._search()},_move:function(a){var b=this;a=a[0]?a:null,b.current(a),b.options.suggest&&b.suggest(a)},_placeholder:function(a){if(!e){var c=this,d=c.element,f=c.options.placeholder,g;f&&(g=d.val(),a===b&&(a=!g),a||(g!==f?f=g:f=""),d.toggleClass("k-readonly",a).val(f))}},_search:function(){var a=this;clearTimeout(a._typing),a._typing=setTimeout(function(){a._prev!==a.value()&&(a._prev=a.value(),a.search())},a.options.delay)},_select:function(b){var c=this,d=c.options.separator,e=c.dataSource.view(),f,g;b=a(b),b[0]&&!b.hasClass(n)&&(g=i.inArray(b[0],c.ul[0]),g>-1&&(e=e[g],f=c._text(e),d&&(f=w(r(c.element[0]),c.value(),f,d)),c.value(f),c.current(b.addClass(n))))},_toggleHover:function(b){d.touch||a(b.currentTarget).toggleClass(p,b.type==="mouseenter")},_wrapper:function(){var a=this,b=a.element,c=b[0],d="tabIndex",e;e=b.parent(),e.is("span.k-widget")||(e=b.wrap("<span />").parent()),e[0].style.cssText=c.style.cssText,b.css({width:"100%",height:c.style.height}),a._focused=a.element,a.wrapper=e.addClass("k-widget k-autocomplete k-header").addClass(c.className)}});f.plugin(y)}(jQuery),function(a,b){function u(a,b,c){var d=0,e=b.length-1,f;for(;d<e;++d)f=b[d],f in a||(a[f]={}),a=a[f];a[b[e]]=c}var c=window.kendo,d=c.ui,e=d.Select,f=c.support.mobileOS,g=c.support.touch?"touchend":"click",h="disabled",i="change",j="select",k="k-state-focused",l="k-state-default",m="k-state-disabled",n="k-state-selected",o="k-state-hover",p="mouseenter mouseleave",q=".k-dropdown-wrap",r=/^\s/,s=a.proxy,t=e.extend({init:function(b,d){var f=this,d=a.isArray(d)?{dataSource:d}:d;e.fn.init.call(f,b,d),d=f.options,b=f.element.focus(function(){f.wrapper.focus()}),f._reset(),f._word="",f._wrapper(),f._span(),f._popup(),f._mobile(),f._accessors(),f._dataSource(),f._enable(),f.selectedIndex=-1,d.autoBind?f._selectItem():(b.is(j)&&f.text(b.children(":selected").text()),!f.text().replace(r,"")&&d.optionLabel&&f.text(d.optionLabel)),c.notify(f)},options:{name:"DropDownList",enable:!0,index:0,autoBind:!0,template:"",delay:500,dataTextField:"",dataValueField:"",optionLabel:"",height:200,animation:{}},events:["open","close",i,"select","dataBinding","dataBound"],setOptions:function(a){e.fn.setOptions.call(this,a),this._template(),this._accessors()},setDataSource:function(a){this.options.dataSource=a,this._dataSource(),this._selectItem()},enable:function(a){var b=this,c=b.element,d=b.wrapper.unbind(),e=b._inputWrapper.unbind(p);a===!1?(c.attr(h,h),e.removeClass(l).addClass(m)):(c.removeAttr(h,h),e.addClass(l).removeClass(m).bind(p,b._toggleHover),d.bind({click:function(a){a.preventDefault(),b.toggle()},keydown:s(b._keydown,b),keypress:s(b._keypress,b),focusin:function(){e.addClass(k)},focusout:function(a){b._blur(),e.removeClass(k)}}))},open:function(){var a=this;a.ul[0].firstChild?(a.popup.open(),a._scroll(a._current)):(a._open=!0,a._selectItem())},toggle:function(a){this._toggle(a)},refresh:function(){var a=this,b=a._data(),d=b.length,e=a.options.optionLabel;a.trigger("dataBinding"),a.ul[0].innerHTML=c.render(a.template,b),a._height(d),a.element.is(j)&&(e&&d&&(e='<option value="">'+e+"</option>"),a._options(b,e)),a._open&&a.toggle(d),a._hideBusy(),a._makeUnselectable(),a.trigger("dataBound")},search:function(a){if(a){var c=this;a=a.toLowerCase(),c._select(function(d){var e=c._text(d);if(e!==b)return(e+"").toLowerCase().indexOf(a)===0})}},select:function(a){var c=this;if(a===b)return c.selectedIndex;c._select(a),c._old=c._accessor(),c._oldIndex=c.selectedIndex},text:function(a){var c=this.span;if(a!==b)c.text(a);else return c.text()},value:function(a){var c=this,d=c.element,e;if(a===b)return c._accessor();if(!a||!c._valueOnFetch(a))e=c._index(a),c.select(e>-1?e:0)},_selectItem:function(){var a=this;a.dataSource.one(i,function(){var b=a.value();b?a.value(b):a.select(a.options.index)}).fetch()},_accept:function(a){this._focus(a)},_data:function(){var a=this,b=a.options,d=b.optionLabel,e=b.dataTextField,f=b.dataValueField,g=a.dataSource.view(),h=g.length,i=d,j=0;if(d&&h){e&&(i={},e=e.split("."),f=f.split("."),u(i,f,""),u(i,e,d)),i=new c.data.ObservableArray([i]);for(;j<h;j++)i.push(g[j]);g=i}return g},_keydown:function(a){var b=this,d=a.keyCode,e=c.keys,f=b.ul[0];b._move(a),d===e.HOME?(a.preventDefault(),b._select(f.firstChild)):d===e.END&&(a.preventDefault(),b._select(f.lastChild))},_keypress:function(a){var b=this;setTimeout(function(){b._word+=String.fromCharCode(a.keyCode||a.charCode),b._search()})},_popup:function(){e.fn._popup.call(this),this.popup.one("open",function(){this.wrapper=c.wrap(this.element).addClass("km-popup")})},_search:function(){var a=this;clearTimeout(a._typing),a._typing=setTimeout(function(){a._word=""},a.options.delay),a.search(a._word)},_select:function(a){var c=this,e=c.element[0],f=c._current,g=c._data(),h,i,j;a=c._get(a),a&&a[0]&&!a.hasClass(n)&&(f&&f.removeClass(n),j=d.List.inArray(a[0],c.ul[0]),j>-1&&(g=g[j],i=c._text(g),h=c._value(g),c.selectedIndex=j,c.text(i),c._accessor(h!=b?h:i,j),c.current(a.addClass(n))))},_mobile:function(){var a=this,b=a.popup,c=b.element.parents(".km-root").eq(0);c.length&&f&&(b.options.animation.open.effects=f.android||f.meego?"fadeIn":f.ios?"slideIn:up":b.options.animation.open.effects)},_span:function(){var b=this,c=b.wrapper,d=".k-input",e;e=c.find(d),e[0]||(c.append('<span unselectable="on" class="k-dropdown-wrap k-state-default"><span unselectable="on" class="k-input"> </span><span class="k-select"><span class="k-icon k-arrow-down">select</span></span></span>').append(b.element),e=c.find(d)),b.span=e,b._inputWrapper=a(c[0].firstChild),b._arrow=c.find(".k-icon").mousedown(function(a){a.preventDefault()})},_wrapper:function(){var a=this,b=a.element,c=b[0],d="tabIndex",e;e=b.parent(),e.is("span.k-widget")||(e=b.wrap("<span />").parent()),e.attr(d)||e.attr(d,0),e[0].style.cssText=c.style.cssText,b.hide(),a._focused=a.wrapper=e.attr("unselectable","on").addClass("k-widget k-dropdown k-header").addClass(c.className)}});d.plugin(t)}(jQuery),function(a,b){function z(b,c){!c||b.filters&&(b.filters=a.grep(b.filters,function(a){z(a,c);return a.filters?a.filters.length:a.field!=c}))}var c=window.kendo,d=c.ui,e=d.List,f=d.Select,g=c.support,h=g.placeholder,i=c.keys,j=g.touch?"touchend":"click",k="disabled",l="change",m="k-state-default",n="k-state-disabled",o="k-state-focused",p="mousedown",q="select",r="k-state-selected",s="filter",t="accept",u="k-state-hover",v="mouseenter mouseleave",w=null,x=a.proxy,y=f.extend({init:function(b,d){var e=this,g;d=a.isArray(d)?{dataSource:d}:d,f.fn.init.call(e,b,d),d=e.options,b=e.element.focus(function(){e.input.focus()}),d.placeholder=d.placeholder||b.attr("placeholder"),e._reset(),e._wrapper(),e._input(),e._popup(),e._accessors(),e._dataSource(),e._enable(),g=e._inputWrapper,e.input.bind({keydown:x(e._keydown,e),focus:function(){g.addClass(o),e._placeholder(!1)},blur:function(){g.removeClass(o),clearTimeout(e._typing),e.text(e.text()),e._placeholder(),e._blur()}}),e._oldIndex=e.selectedIndex=-1,e._old=e.value(),d.autoBind?e._selectItem():b.is(q)&&e.input.val(b.children(":selected").text()),e._placeholder(),c.notify(e)},options:{name:"ComboBox",enable:!0,index:-1,autoBind:!0,delay:200,dataTextField:"",dataValueField:"",minLength:0,height:200,highlightFirst:!0,template:"",filter:"none",placeholder:"",suggest:!1,animation:{}},events:["open","close",l,"select","dataBinding","dataBound"],setOptions:function(a){f.fn.setOptions.call(this,a),this._template(),this._accessors()},current:function(a){var c=this,d=c._current;if(a===b)return d;d&&d.removeClass(r),f.fn.current.call(c,a)},enable:function(a){var b=this,c=b.input.add(b.element),d=b._inputWrapper.unbind(v),e=b._arrow.parent().unbind(j+" "+p);a===!1?(d.removeClass(m).addClass(n),c.attr(k,k)):(d.removeClass(n).addClass(m).bind(v,b._toggleHover),c.removeAttr(k),e.bind(j,function(){b.toggle()}).bind(p,function(a){a.preventDefault()}))},open:function(){var a=this,b=a.dataSource.options.serverFiltering;a.popup.visible()||(!a.ul[0].firstChild||a._state===t&&!b?(a._open=!0,a._state="",a._selectItem()):(a.popup.open(),a._scroll(a._current)))},refresh:function(){var b=this,d=b.ul[0],e=b.popup,f=b.options,g=f.suggest,h=f.height,i=b._data(),j=i.length;b.trigger("dataBinding"),d.innerHTML=c.render(b.template,i),b._height(j),b.element.is(q)&&b._options(i),j&&((g||f.highlightFirst)&&b.current(a(d.firstChild)),g&&b.input.val()&&b.suggest(b._current)),b._open&&(b._open=!1,b.toggle(!!j)),b._touchScroller&&b._touchScroller.reset(),b._makeUnselectable(),b._hideBusy(),b.trigger("dataBound")},select:function(a){var c=this;if(a===b)return c.selectedIndex;c._select(a),c._old=c._accessor(),c._oldIndex=c.selectedIndex},search:function(a){a=typeof a=="string"?a:this.text();var b=this,c=a.length,d=b.options,e=d.filter,f=d.dataTextField,g;clearTimeout(b._typing),c>=d.minLength&&(e==="none"?b._filter(a):(b._open=!0,b._state=s,g=b.dataSource.filter()||{},z(g,f),filters=g.filters||[],filters.push({field:f,operator:e,value:a}),b.dataSource.filter(filters)))},suggest:function(a){var c=this,d=c.input[0],f=c.text(),g=e.caret(d),h=c._last,j;if(h==i.BACKSPACE||h==i.DELETE)c._last=b;else{a=a||"",typeof a!="string"&&(j=a.index(),j>-1?a=c._text(c.dataSource.view()[j]):a=""),g<=0&&(g=f.toLowerCase().indexOf(a.toLowerCase())+1),a?(j=a.toLowerCase().indexOf(f.toLowerCase()),j>-1&&(f+=a.substring(j+f.length))):f=f.substring(0,g);if(f.length!==g||!a)f.toLowerCase()===a.toLowerCase()&&(f=a),c.text(f),e.selectText(d,g,f.length)}},text:function(a){var c=this,d=c._text,e=c.input[0],f;if(a===b)return e.value;f=c.dataItem();if(!f||d(f)!==a)c._select(function(b){return d(b)===a}),c.selectedIndex<0&&c._custom(a),e.value=a},toggle:function(a){var b=this;b._toggle(a)},value:function(a){var c=this,d=c.element,e;if(a===b)return c._accessor();if(!a||!c._valueOnFetch(a))e=c._index(a),e>-1?c.select(e):(c.current(w),c._custom(a),c.text(a)),c._old=c._accessor(),c._oldIndex=c.selectedIndex},_accept:function(a){var b=this;a&&b.popup.visible()?(b._state===s&&(b._state=t),b._focus(a)):(b.text(b.text()),b._change())},_custom:function(b){var c=this,d=c.element,e=c._option;d.is(q)?(e||(e=c._option=a("<option/>"),d.append(e)),e.text(b),e[0].selected=!0):d.val(b)},_filter:function(a){a=a.toLowerCase();var c=this,d=c.options,e=c.dataSource,f=function(d){var e=c._text(d);if(e!==b){e=e+"";if(e!==""&&a==="")return!1;return e.toLowerCase().indexOf(a)===0}};c.ul[0].firstChild?(c._highlight(f)!==-1&&(d.suggest&&c._current&&c.suggest(c._current),c.open()),c._hideBusy()):e.one(l,function(){c.search(a)}).fetch()},_highlight:function(c){var d=this,f;if(c==b)return-1;c=d._get(c),f=e.inArray(c[0],d.ul[0]),f==-1&&(d.options.highlightFirst&&!d.text()?c=a(d.ul[0].firstChild):c=w),d.current(c);return f},_input:function(){var b=this,c=b.element[0],d=b.wrapper,e=".k-input",f;f=d.find(e),f[0]||(d.append('<span unselectable="on" class="k-dropdown-wrap k-state-default"><input class="k-input" type="text" autocomplete="off"/><span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-arrow-down">select</span></span></span>').append(b.element),f=d.find(e)),f[0].style.cssText=c.style.cssText,f.addClass(c.className).val(c.value).css({width:"100%",height:c.style.height}).show(),h&&f.attr("placeholder",b.options.placeholder),b._focused=b.input=f,b._arrow=d.find(".k-icon"),b._inputWrapper=a(d[0].firstChild)},_keydown:function(a){var b=this,c=a.keyCode,d=b.input;b._last=c,clearTimeout(b._typing),c==i.TAB?(b.text(d.val()),b._state===s&&b.selectedIndex>-1&&(b._state=t)):b._move(a)||b._search()},_placeholder:function(a){if(!h){var c=this,d=c.input,e=c.options.placeholder,f;e&&(f=c.value(),a===b&&(a=!f),a||(f?e=d.val():e=""),d.toggleClass("k-readonly",a).val(e))}},_search:function(){var a=this;a._typing=setTimeout(function(){var b=a.text();a._prev!==b&&(a._prev=b,a.search(b))},a.options.delay)},_select:function(a){var c=this,d,e,f=c._highlight(a),g=c._data();c.selectedIndex=f,f!==-1&&(c._current.addClass(r),g=g[f],d=c._text(g),e=c._value(g),c._prev=c.input[0].value=d,c._accessor(e!=b?e:d,f),c._placeholder())},_selectItem:function(){var a=this,b=a.dataSource,c=b.filter()||{};z(c,a.options.dataTextField),a.dataSource.one(l,function(){var b=a.value();b?a.value(b):a.select(a.options.index)}).filter(c)},_wrapper:function(){var a=this,b=a.element,c;c=b.parent(),c.is("span.k-widget")||(c=b.hide().wrap("<span />").parent()),c[0].style.cssText=b[0].style.cssText,a.wrapper=c.addClass("k-widget k-combobox k-header").show()}});d.plugin(y)}(jQuery),function(a,b){function X(a,b){var c,d,e;if(typeof a===O)return a===b;if(m(a))for(c=0,d=a.length;c<d;c++){e=a[c];if(typeof e===O&&e===b||e.name===b)return!0}return!1}function U(a){return Array(a+1).join('<td class="k-group-cell"></td>')}var c=window.kendo,d=c.ui,e=c.data.DataSource,f=d.Groupable,g=c.support.tbodyInnerHtml,h=d.Widget,i=c.keys,j=a.isPlainObject,k=a.extend,l=a.map,m=a.isArray,n=a.proxy,o=a.isFunction,p=a.isEmptyObject,q=Math,r="requestStart",s="error",t="tbody>tr:not(.k-grouping-row,.k-detail-row):visible",u=":not(.k-group-cell,.k-hierarchy-cell):visible",v=t+">td"+u,w=v+":first",x="edit",y="save",z="remove",A="detailInit",B="change",C="saveChanges",D="modelChange",E="dataBound",F="detailExpand",G="detailCollapse",H="k-state-focused",I="k-focusable",J="k-state-selected",K="click",L="height",M="tabIndex",N="function",O="string",P="Are you sure you want to delete this record?",Q=/\}/ig,R=/#/ig,S='<a class="k-button k-button-icontext #=className#" #=attr# href="\\#"><span class="#=iconClass# #=imageClass#"></span>#=text#</a>',T=h.extend({init:function(a,b){var c=this;h.fn.init.call(c,a,b),c.dataSource=b.dataSource,c.dataSource.bind(B,n(c.refresh,c)),c.wrap()},options:{name:"VirtualScrollable",itemHeight:a.noop},wrap:function(){var b=this,d=c.support.scrollbar()+1,e=b.element;e.css({width:"auto",paddingRight:d,overflow:"hidden"}),b.content=e.children().first(),b.wrapper=b.content.wrap('<div class="k-virtual-scrollable-wrap"/>').parent().bind("DOMMouseScroll",n(b._wheelScroll,b)).bind("mousewheel",n(b._wheelScroll,b)),c.support.touch&&(b.drag=new c.Drag(b.wrapper,{global:!0,move:function(a){b.verticalScrollbar.scrollTop(b.verticalScrollbar.scrollTop()-a.y.delta),a.preventDefault()}})),b.verticalScrollbar=a('<div class="k-scrollbar k-scrollbar-vertical" />').css({width:d}).appendTo(e).bind("scroll",n(b._scroll,b))},_wheelScroll:function(b){var c=this,d=c.verticalScrollbar.scrollTop(),e=b.originalEvent,f;b.preventDefault(),e.wheelDelta?f=e.wheelDelta:e.detail?f=-e.detail*10:a.browser.opera&&(f=-e.wheelDelta),c.verticalScrollbar.scrollTop(d+ -f)},_scroll:function(a){var b=this,c=a.currentTarget.scrollTop,d=b.dataSource,e=b.itemHeight,f=d.skip()||0,g=b._rangeStart||f,h=b.element.innerHeight(),i=!!(b._scrollbarTop&&b._scrollbarTop>c),j=q.max(q.floor(c/e),0),k=q.max(j+q.floor(h/e),0);b._scrollTop=c-g*e,b._scrollbarTop=c,b._fetch(j,k,i)||(b.wrapper[0].scrollTop=b._scrollTop)},_fetch:function(a,b,c){var d=this,e=d.dataSource,f=d.itemHeight,g=e.take(),h=d._rangeStart||e.skip()||0,i=q.floor(a/g)*g,j=!1,k=.33;a<h?(j=!0,h=q.max(0,b-g),d._scrollTop=(a-h)*f,d._page(h,g)):b>=h+g&&!c?(j=!0,h=a,d._scrollTop=f,d._page(h,g)):d._fetching||(a<i+g-g*k&&a>g&&e.prefetch(i-g,g),b>i+g*k&&e.prefetch(i+g,g));return j},_page:function(a,b){var d=this,e=d.dataSource;clearTimeout(d._timeout),d._fetching=!0,d._rangeStart=a,e.inRange(a,b)?e.range(a,b):(c.ui.progress(d.wrapper.parent(),!0),d._timeout=setTimeout(function(){e.range(a,b)},100))},refresh:function(){var a=this,b="",d=25e4,e=a.dataSource,f=a._rangeStart,g=c.support.scrollbar(),h=a.wrapper[0],i,j,k;c.ui.progress(a.wrapper.parent(),!1),clearTimeout(a._timeout),k=a.itemHeight=a.options.itemHeight()||0;var l=h.scrollWidth>h.offsetWidth?g:0;i=e.total()*k+l;for(j=0;j<q.floor(i/d);j++)b+='<div style="width:1px;height:'+d+'px"></div>';i%d&&(b+='<div style="width:1px;height:'+i%d+'px"></div>'),a.verticalScrollbar.html(b),h.scrollTop=a._scrollTop,a.drag&&a.drag.cancel(),f&&!a._fetching&&(a._rangeStart=e.skip()),a._fetching=!1}}),V={create:{text:"Add new record",imageClass:"k-add",className:"k-grid-add",iconClass:"k-icon"},cancel:{text:"Cancel changes",imageClass:"k-cancel",className:"k-grid-cancel-changes",iconClass:"k-icon"},save:{text:"Save changes",imageClass:"k-update",className:"k-grid-save-changes",iconClass:"k-icon"},destroy:{text:"Delete",imageClass:"k-delete",className:"k-grid-delete",iconClass:"k-icon"},edit:{text:"Edit",imageClass:"k-edit",className:"k-grid-edit",iconClass:"k-icon"},update:{text:"Update",imageClass:"k-update",className:"k-grid-update",iconClass:"k-icon"},canceledit:{text:"Cancel",imageClass:"k-cancel",className:"k-grid-cancel",iconClass:"k-icon"}},W=h.extend({init:function(a,b){var d=this;b=m(b)?{dataSource:b}:b,h.fn.init.call(d,a,b),d._element(),d._columns(d.options.columns),d._dataSource(),d._tbody(),d._pageable(),d._groupable(),d._toolbar(),d._thead(),d._templates(),d._navigatable(),d._selectable(),d._details(),d._editable(),d.options.autoBind&&d.dataSource.fetch(),c.notify(d)},events:[B,"dataBinding",E,F,G,A,x,y,z,C],setDataSource:function(a){var b=this;b.options.dataSource=a,b._dataSource(),b._pageable(),b._groupable(),b._thead(),a.fetch()},options:{name:"Grid",columns:[],toolbar:null,autoBind:!0,scrollable:!0,sortable:!1,selectable:!1,navigatable:!1,pageable:!1,editable:!1,rowTemplate:"",groupable:!1,dataSource:{}},setOptions:function(a){var b=this;h.fn.setOptions.call(this,a),b._templates()},items:function(){return this.tbody.children(":not(.k-grouping-row,.k-detail-row)")},_element:function(){var b=this,c=b.element;c.is("table")||(c=a("<table />").appendTo(b.element)),b.table=c.attr("cellspacing",0),b._wrapper()},cellIndex:function(b){return a(b).parent().find("td:not(.k-group-cell,.k-hierarchy-cell)").index(b)},_modelForContainer:function(a){var b=(a.is("tr")?a:a.closest("tr")).attr(c.attr("uid"));return this.dataSource.getByUid(b)},_editable:function(){var b=this,c,d,e,f=b.options.editable,g=function(){var c=document.activeElement,d=b._editContainer;d&&!a.contains(d[0],c)&&d[0]!==c&&!a(c).closest(".k-animation-container").length&&b.editable.end()&&b.closeCell()};if(f){var h=b._editMode();h==="incell"?f.update!==!1&&(b.wrapper.delegate("tr:not(.k-grouping-row) > td:not(.k-hierarchy-cell,.k-detail-cell,.k-group-cell,.k-edit-cell,:has(a.k-grid-delete))",K,function(c){var d=a(this);d.closest("tbody")[0]===b.tbody[0]&&!a(c.target).is(":input")&&(b.editable?b.editable.end()&&(b.closeCell(),b.editCell(d)):b.editCell(d))}),b.wrapper.bind("focusin",function(a){clearTimeout(b.timer),b.timer=null}),b.wrapper.bind("focusout",function(a){b.timer=setTimeout(g,1)})):f.update!==!1&&b.wrapper.delegate("tbody>tr:not(.k-detail-row,.k-grouping-row):visible a.k-grid-edit",K,function(c){c.preventDefault(),b.editRow(a(this).closest("tr"))}),f.destroy!==!1&&b.wrapper.delegate("tbody>tr:not(.k-detail-row,.k-grouping-row):visible a.k-grid-delete",K,function(c){c.preventDefault(),b.removeRow(a(this).closest("tr"))})}},editCell:function(a){var b=this,c=b.columns[b.cellIndex(a)],d=b._modelForContainer(a);d&&(!d.editable||d.editable(c.field))&&!c.command&&c.field&&(b._attachModelChange(d),b._editContainer=a,b.editable=a.addClass("k-edit-cell").kendoEditable({fields:{field:c.field,format:c.format,editor:c.editor},model:d,change:function(c){b.trigger(y,{values:c.values,container:a,model:d})&&c.preventDefault()}}).data("kendoEditable"),a.parent().addClass("k-grid-edit-row"),b.trigger(x,{container:a,model:d}))},_distroyEditable:function(){var a=this;a.editable&&(a._detachModelChange(),a.editable.distroy(),delete a.editable,a._editMode()==="popup"&&a._editContainer.data("kendoWindow").close(),a._editContainer=null)},_attachModelChange:function(a){var b=this;b._modelChangeHandler=function(a){b._modelChange({field:a.field,model:this})},a.bind("change",b._modelChangeHandler)},_detachModelChange:function(){var a=this,b=a._editContainer,c=a._modelForContainer(b);c&&c.unbind(B,a._modelChangeHandler)},closeCell:function(){var b=this,d=b._editContainer.removeClass("k-edit-cell"),e=d.closest("tr").attr(c.attr("uid")),f=b.columns[b.cellIndex(d)],g=b.dataSource.getByUid(e);d.parent().removeClass("k-grid-edit-row"),b._distroyEditable(),b._displayCell(d,f,g),d.hasClass("k-dirty-cell")&&a('<span class="k-dirty"/>').prependTo(d)},_displayCell:function(a,b,d){var e=this,f={storage:{},count:0},g=k({},c.Template,e.options.templateSettings),h=c.template(e._cellTmpl(b,f),g);f.count>0&&(h=n(h,f.storage)),a.empty().html(h(d))},removeRow:function(b){var c=this,d,e;!c._confirmation()||(b=a(b).hide(),d=c._modelForContainer(b),d&&!c.trigger(z,{row:b,model:d})&&(c.dataSource.remove(d),e=c._editMode(),(e==="inline"||e==="popup")&&c.dataSource.sync()))},_editMode:function(){var a="incell",b=this.options.editable;b!==!0&&(a=b.mode||b);return a},editRow:function(a){var b=this,c=b._modelForContainer(a),d;b.cancelRow(),c&&(b._attachModelChange(c),b._editMode()==="popup"?b._createPopUpEditor(c):b._createInlineEditor(a,c),d=b._editContainer,d.delegate("a.k-grid-cancel",K,function(a){a.preventDefault(),b.cancelRow()}),d.delegate("a.k-grid-update",K,function(a){a.preventDefault(),b.saveRow()}))},_createPopUpEditor:function(b){var d=this,e='<div><div class="k-edit-form-container">',f,g=[],h,i,l,m=d.options.editable,o=j(m)?m.window:{},p=k({},c.Template,d.options.templateSettings);if(m.template)e+=c.template(m.template,p)(b);else for(h=0,i=d.columns.length;h<i;h++){f=d.columns[h];if(!f.command){e+='<div class="k-edit-label"><label for="'+f.field+'">'+(f.title||f.field||"")+"</label></div>";if((!b.editable||b.editable(f.field))&&f.field)g.push({field:f.field,format:f.format,editor:f.editor}),e+="<div "+c.attr("container-for")+'="'+f.field+'" class="k-edit-field"></div>';else{var q={storage:{},count:0};l=c.template(d._cellTmpl(f,q),p),q.count>0&&(l=n(l,q.storage)),e+='<div class="k-edit-field">'+l(b)+"</div>"}}}e+=d._createButton("update")+d._createButton("canceledit"),e+="</div></div>";var r=d._editContainer=a(e).appendTo(d.wrapper).kendoWindow(k({modal:!0,resizable:!1,draggable:!0,title:"Edit",visible:!1},o)),s=r.data("kendoWindow");s.wrapper.delegate(".k-close","click",function(){d.cancelRow()}),d.editable=d._editContainer.kendoEditable({fields:g,model:b,clearContainer:!1}).data("kendoEditable"),s.center().open(),d.trigger(x,{container:r,model:b})},_createInlineEditor:function(b,c){var d=this,e,f,g=[],h,i;b.children(":not(.k-group-cell,.k-hierarchy-cell)").each(function(){f=a(this),e=d.columns[d.cellIndex(f)],!e.command&&e.field&&(!c.editable||c.editable(e.field))?(g.push({field:e.field,format:e.format,editor:e.editor}),f.attr("data-container-for",e.field),f.empty()):e.command&&X(e.command,"edit")&&(f.empty(),a(d._createButton("update")+d._createButton("canceledit")).appendTo(f))}),d._editContainer=b,d.editable=b.addClass("k-grid-edit-row").kendoEditable({fields:g,model:c,clearContainer:!1}).data("kendoEditable"),d.trigger(x,{container:b,model:c})},cancelRow:function(){var a=this,b=a._editContainer,c,d;b&&(d=a._modelForContainer(b),a.dataSource.cancelChanges(d),a._editMode()!=="popup"&&a._displayRow(b),a._distroyEditable())},saveRow:function(){var a=this,b=a._editContainer,c=a._modelForContainer(b),d=a.editable;b&&d&&d.end()&&!a.trigger(y,{container:b,model:c})&&(a._editMode()!=="popup"&&a._displayRow(b),a._distroyEditable(),a.dataSource.sync())},_displayRow:function(b){var c=this,d=c._modelForContainer(b);d&&b.replaceWith(a((b.hasClass("k-alt")?c.altRowTemplate:c.rowTemplate)(d)))},_showMessage:function(a){return confirm(a)},_confirmation:function(){var a=this,c=a.options.editable,d=c===!0||typeof c===O?P:c.confirmation;return d!==!1&&d!=b?a._showMessage(d):!0},cancelChanges:function(){this.dataSource.cancelChanges()},saveChanges:function(){var a=this;(a.editable&&a.editable.end()||!a.editable)&&!a.trigger(C)&&a.dataSource.sync()},addRow:function(){var a=this,b=a.options,d,e=a.dataSource;if(a.editable&&a.editable.end()||!a.editable){d=e.indexOf((e.view()||[])[0]),d<0&&(d=0);var f=e.insert(d,{}),g=f.uid,h=a._editMode(),i=a.table.find("tr["+c.attr("uid")+"="+g+"]"),j=i.children("td:not(.k-group-cell,.k-hierarchy-cell)").first();h!=="inline"&&h!=="popup"||!i.length?j.length&&a.editCell(j):a.editRow(i)}},_toolbar:function(){var b=this,d=b.wrapper,e=b.options.toolbar,f;e&&(e=o(e)?e({}):typeof e===O?e:b._toolbarTmpl(e).replace(R,"\\#"),f=n(c.template(e),b),a('<div class="k-toolbar k-grid-toolbar" />').html(f({})).prependTo(d).delegate(".k-grid-add",K,function(a){a.preventDefault(),b.addRow()}).delegate(".k-grid-cancel-changes",K,function(a){a.preventDefault(),b.cancelChanges()}).delegate(".k-grid-save-changes",K,function(a){a.preventDefault(),b.saveChanges()}))},_toolbarTmpl:function(a){var b=this,c,d,e="",f,g,h,i;if(m(a))for(c=0,d=a.length;c<d;c++)e+=b._createButton(a[c]);return e},_createButton:function(a){var b=this,d=a.template||S,e=typeof a===O?a:a.name,f={className:"",text:e,imageClass:"",attr:"",iconClass:""};j(a)?f=k(!0,f,V[e],a):f=k(!0,f,V[e]);return c.template(d)(f)},_groupable:function(){var b=this,d=b.wrapper,e=b.options.groupable;b.groupable||b.table.delegate(".k-grouping-row .k-collapse, .k-grouping-row .k-expand",K,function(c){var d=a(this),e=d.closest("tr");d.hasClass("k-collapse")?b.collapseGroup(e):b.expandGroup(e),c.preventDefault(),c.stopPropagation()}),e&&(d.has("div.k-grouping-header")[0]||a("<div />").addClass("k-grouping-header").html(" ").prependTo(d),b.groupable&&b.groupable.destroy(),b.groupable=new f(d,{filter:"th:not(.k-group-cell)["+c.attr("field")+"]["+c.attr("groupable")+"!=false]",groupContainer:"div.k-grouping-header",dataSource:b.dataSource}))},_selectable:function(){var a=this,b,d,e=a.options.selectable;e&&(b=typeof e===O&&e.toLowerCase().indexOf("multiple")>-1,d=typeof e===O&&e.toLowerCase().indexOf("cell")>-1,a.selectable=new c.ui.Selectable(a.table,{filter:">"+(d?v:t),multiple:b,change:function(){a.trigger(B)}}),a.options.navigatable&&a.wrapper.keydown(function(c){var e=a.current();c.keyCode===i.SPACEBAR&&c.target==a.wrapper[0]&&!e.hasClass("k-edit-cell")&&(c.preventDefault(),c.stopPropagation(),e=d?e:e.parent(),b?c.ctrlKey?e.hasClass(J)&&(e.removeClass(J),e=null):a.selectable.clear():a.selectable.clear(),a.selectable.value(e))}))},clearSelection:function(){var a=this;a.selectable.clear(),a.trigger(B)},select:function(b){var c=this,d=c.selectable;b=a(b);if(b.length)d.options.multiple||(d.clear(),b=b.first()),d.value(b);else return d.value()},current:function(a){var c=this,d=c._current;a!==b&&a.length&&(!d||d[0]!==a[0])&&(a.addClass(H),d&&d.removeClass(H),c._current=a,c._scrollTo(a.parent()[0]));return c._current},_scrollTo:function(a){if(!!a&&!!this.options.scrollable){var b=a.offsetTop,c=this.content[0],d=a.offsetHeight,e=c.scrollTop,f=c.clientHeight,g=b+d;c.scrollTop=e>b?b:g>e+f?g-f:e}},_navigatable:function(){var b=this,c=b.wrapper,d=b.table.addClass(I),e=n(b.current,b),f="."+I+" "+v,g=a.browser,h=function(d){var f=a(d.currentTarget);f.closest("tbody")[0]===b.tbody[0]&&(e(f),a(d.target).is(":button,a,:input,a>.k-icon,textarea,span.k-icon,.k-input")||setTimeout(function(){c.focus()}),d.stopPropagation())};b.options.navigatable&&(c.bind({focus:function(){var a=b._current;a&&a.is(":visible")?a.addClass(H):e(b.table.find(w))},focusout:function(a){b._current&&b._current.removeClass(H),a.stopPropagation()},keydown:function(f){var h=f.keyCode,j=b.current(),k=f.shiftKey,l=b.dataSource,m=b.options.pageable,n=!a(f.target).is(":button,a,:input,a>.t-icon"),o=b._editMode()=="incell",p,q,r=!1;n&&i.UP===h?(e(j?j.parent().prevAll(t).last().children(":eq("+j.index()+"),:eq(0)").last():d.find(w)),r=!0):n&&i.DOWN===h?(e(j?j.parent().nextAll(t).first().children(":eq("+j.index()+"),:eq(0)").last():d.find(w)),r=!0):n&&i.LEFT===h?(e(j?j.prevAll(u+":first"):d.find(w)),r=!0):n&&i.RIGHT===h?(e(j?j.nextAll(":visible:first"):d.find(w)),r=!0):n&&m&&i.PAGEDOWN==h?(b._current=null,l.page(l.page()+1),r=!0):n&&m&&i.PAGEUP==h?(b._current=null,l.page(l.page()-1),r=!0):b.options.editable&&(j=j?j:d.find(w),i.ENTER==h||i.F12==h?(b._handleEditing(j),r=!0):i.TAB==h&&o?(q=k?j.prevAll(u+":first"):j.nextAll(":visible:first"),q.length||(q=j.parent()[k?"prevAll":"nextAll"]("tr:not(.k-grouping-row,.k-detail-row):visible").children(u+(k?":last":":first"))),q.length&&(b._handleEditing(j,q),r=!0)):i.ESC==h&&b._editContainer&&(b._editContainer.has(j[0])||j[0]===b._editContainer[0])&&(o?b.closeCell():(p=b.items().index(j.parent()),document.activeElement.blur(),b.cancelRow(),p>=0&&b.current(b.items().eq(p).children().filter(u).first())),g.msie&&parseInt(g.version)<9&&document.body.focus(),c.focus(),r=!0)),r&&(f.preventDefault(),f.stopPropagation())}}),c.delegate(f,"mousedown",h))},_handleEditing:function(b,c){var d=this,e=d._editMode(),f=d._editContainer,g,h;e=="incell"?h=b.hasClass("k-edit-cell"):h=b.parent().hasClass("k-grid-edit-row");if(d.editable){a.contains(f[0],document.activeElement)&&document.activeElement.blur();if(d.editable.end())e=="incell"?d.closeCell():(b.parent()[0]===f[0]?g=d.items().index(b.parent()):g=d.items().index(f),d.saveRow(),d.current(d.items().eq(g).children().filter(u).first()),h=!0);else{e=="incell"?d.current(f):d.current(f.children().filter(u).first()),f.find(":input:visible:first").focus();return}}c&&d.current(c),d.wrapper.focus();if(!h&&!c||c)e=="incell"?d.editCell(d.current()):d.editRow(d.current().parent())},_wrapper:function(){var a=this,b=a.table,c=a.options.height,d=a.element;d.is("div")||(d=d.wrap("<div/>").parent()),a.wrapper=d.addClass("k-grid k-widget").attr(M,q.max(b.attr(M)||0,0)),b.removeAttr(M),c&&(a.wrapper.css(L,c),b.css(L,"auto"))},_tbody:function(){var b=this,c=b.table,d;d=c.find(">tbody"),d.length||(d=a("<tbody/>").appendTo(c)),b.tbody=d},_scrollable:function(){var b=this,d,e,f=b.options,g=b.wrapper.innerHeight(),h=f.scrollable,i=c.support.scrollbar();if(h){d=b.wrapper.children().filter(".k-grid-header"),d[0]||(d=a('<div class="k-grid-header" />').insertBefore(b.table)),d.css("padding-right",h.virtual?i+1:i),e=a('<table cellspacing="0" />'),e.append(b.thead),d.empty().append(a('<div class="k-grid-header-wrap" />').append(e)),b.content=b.table.parent(),b.content.is(".k-virtual-scrollable-wrap")&&(b.content=b.content.parent()),b.content.is(".k-grid-content, .k-virtual-scrollable-wrap")||(b.content=b.table.wrap('<div class="k-grid-content" />').parent(),h!==!0&&h.virtual&&new T(b.content,{dataSource:b.dataSource,itemHeight:n(b._averageRowHeight,b)}));var j=d.find(">.k-grid-header-wrap, > .k-footer-template");h.virtual?b.content.find(">.k-virtual-scrollable-wrap").bind("scroll",function(){j.scrollLeft(this.scrollLeft)}):(b.content.bind("scroll",function(){j.scrollLeft(this.scrollLeft)}),c.touchScroller(b.content))}},_setContentHeight:function(){var a=this,b=a.options,d=a.wrapper.innerHeight(),e=a.wrapper.children(".k-grid-header"),f=c.support.scrollbar();b.scrollable&&(d-=e.outerHeight(),a.pager&&(d-=a.pager.element.outerHeight()),b.groupable&&(d-=a.wrapper.children(".k-grouping-header").outerHeight()),b.toolbar&&(d-=a.wrapper.children(".k-grid-toolbar").outerHeight()),d>f*2&&a.content.height(d))},_averageRowHeight:function(){var a=this,b=a._rowHeight;a._rowHeight||(a._rowHeight=b=a.table.outerHeight()/a.table[0].rows.length,a._sum=b,a._measures=1,totalHeight=q.round(a.dataSource.total()*b));var c=a.table.outerHeight()/a.table[0].rows.length;b!==c&&(a._measures++,a._sum+=c,a._rowHeight=a._sum/a._measures);return b},_dataSource:function(){var a=this,c=a.options,d,f=c.dataSource;f=m(f)?{data:f}:f,j(f)&&(k(f,{table:a.table,fields:a.columns}),d=c.pageable,j(d)&&d.pageSize!==b&&(f.pageSize=d.pageSize)),a.dataSource&&a._refreshHandler?a.dataSource.unbind(B,a._refreshHandler).unbind(r,a._requestStartHandler).unbind(s,a._errorHandler):(a._refreshHandler=n(a.refresh,a),a._requestStartHandler=n(a._requestStart,a),a._errorHandler=n(a._error,a)),a.dataSource=e.create(f).bind(B,a._refreshHandler).bind(r,a._requestStartHandler).bind(s,a._errorHandler)},_error:function(){this._progress(!1)},_requestStart:function(){this._progress(!0)},_modelChange:function(b){var d=this,e=b.model,f=d.tbody.find("tr["+c.attr("uid")+"="+e.uid+"]"),g,h,i=f.hasClass("k-alt"),j,k,l;if(f.children(".k-edit-cell").length)f.children(":not(.k-group-cell,.k-hierarchy-cell)").each(function(){g=a(this),h=d.columns[d.cellIndex(g)],h.field===b.field&&(g.hasClass("k-edit-cell")?g.addClass("k-dirty-cell"):(d._displayCell(g,h,e),a('<span class="k-dirty"/>').prependTo(g)))});else if(!f.hasClass("k-grid-edit-row")){j=a((i?d.altRowTemplate:d.rowTemplate)(e)),f.replaceWith(j);for(k=0,l=d.columns.length;k<l;k++)h=d.columns[k],h.field===b.field&&(g=j.children(":not(.k-group-cell,.k-hierarchy-cell)").eq(k),a('<span class="k-dirty"/>').prependTo(g))}},_pageable:function(){var b=this,d,e=b.options.pageable;e&&(d=b.wrapper.children("div.k-grid-pager").empty(),d.length||(d=a('<div class="k-pager-wrap k-grid-pager"/>').appendTo(b.wrapper)),b.pager&&b.pager.destroy(),typeof e=="object"&&e instanceof c.ui.Pager?b.pager=e:b.pager=new c.ui.Pager(d,k({},e,{dataSource:b.dataSource})))},_footer:function(){var b=this,c=b.dataSource.aggregates(),d="",e=b.footerTemplate,f=b.options;if(e){d=a(b._wrapFooter(e(c||{})));if(b.footer){var g=d;b.footer.replaceWith(g),b.footer=g}else f.scrollable?b.footer=f.pageable?d.insertBefore(b.wrapper.children("div.k-grid-pager")):d.appendTo(b.wrapper):b.footer=d.insertBefore(b.tbody)}},_wrapFooter:function(b){var c=this,d="",e=c.columns,f,g,h=c.dataSource.group().length,i;if(c.options.scrollable){d=a('<div class="k-grid-footer"><table cellspacing="0"><tbody>'+b+"</tbody></table></div>"),c._appendCols(d.find("table"));return d}return"<tfoot>"+b+"</tfoot>"},_filterable:function(){var b=this,c=b.columns,d=b.options.filterable;d&&b.thead.find("th:not(.k-hierarchy-cell)").each(function(e){c[e].filterable!==!1&&a(this).kendoFilterMenu(k(!0,{},d,c[e].filterable,{dataSource:b.dataSource}))})},_sortable:function(){var b=this,c=b.columns,d,e=b.options.sortable;e&&b.thead.find("th:not(.k-hierarchy-cell)").each(function(f){d=c[f],d.sortable!==!1&&!d.command&&a(this).kendoSortable(k({},e,{dataSource:b.dataSource}))})},_columns:function(b){var d=this,e=d.table,f,g=e.find("col"),h=d.options.dataSource;b=b.length?b:l(e.find("th"),function(b,d){var b=a(b),e=b.attr(c.attr("sortable")),f=b.attr(c.attr("filterable")),h=b.attr(c.attr("type")),i=b.attr(c.attr("groupable")),j=b.attr(c.attr("field"));j||(j=b.text().replace(/\s|[^A-z0-9]/g,""));return{field:j,type:h,sortable:e!=="false",filterable:f!=="false",groupable:i!=="false",template:b.attr(c.attr("template")),width:g.eq(d).css("width")}}),f=!(d.table.find("tbody tr").length>0&&(!h||!h.transport)),d.columns=l(b,function(a){a=typeof a===O?{field:a}:a;return k({encoded:f},a)})},_tmpl:function(a,b){var d=this,e=k({},c.Template,d.options.templateSettings),f=e.paramName,g,h=d.columns.length,i,j={storage:{},count:0},l,m,o,p=d._hasDetails(),q=[],r=d.dataSource.group().length;if(!a){a="<tr",b&&q.push("k-alt"),p&&q.push("k-master-row"),q.length&&(a+=' class="'+q.join(" ")+'"'),h&&(a+=" "+c.attr("uid")+'="#=uid#"'),a+=">",r>0&&(a+=U(r)),p&&(a+='<td class="k-hierarchy-cell"><a class="k-icon k-plus" href="\\#"></a></td>');for(g=0;g<h;g++)m=d.columns[g],i=m.template,o=typeof i,a+="<td>",a+=d._cellTmpl(m,j),a+="</td>";a+="</tr>"}a=c.template(a,e);if(j.count>0)return n(a,j.storage);return a},_cellTmpl:function(a,b){var d=this,e=k({},c.Template,d.options.templateSettings),f=a.template,g=e.paramName,h="",i,j,l=a.format,n=typeof f;if(a.command){if(m(a.command)){for(i=0,j=a.command.length;i<j;i++)h+=d._createButton(a.command[i]);return h.replace(R,"\\#")}return d._createButton(a.command).replace(R,"\\#")}n===N?(b.storage["tmpl"+b.count]=f,h+="#=this.tmpl"+b.count+"("+g+")#",b.count++):n===O?h+=f:(h+=a.encoded?"${":"#=",l&&(h+='kendo.format("'+l.replace(Q,"\\}")+'",'),e.useWithBlock||(h+=g+"."),h+=a.field,l&&(h+=")"),h+=a.encoded?"}":"#");return h},_templates:function(){var b=this,c=b.options,d=b.dataSource,e=d.group(),f=d.aggregate();b.rowTemplate=b._tmpl(c.rowTemplate),b.altRowTemplate=b._tmpl(c.altRowTemplate||c.rowTemplate,!0),b._hasDetails()&&(b.detailTemplate=b._detailTmpl(c.detailTemplate||""));if(!p(f)||a.grep(b.columns,function(a){return a.footerTemplate}).length)b.footerTemplate=b._footerTmpl(f,"footerTemplate","k-footer-template");e.length&&a.grep(b.columns,function(a){return a.groupFooterTemplate}).length&&(f=a.map(e,function(a){return a.aggregates}),b.groupFooterTemplate=b._footerTmpl(f,"groupFooterTemplate","k-group-footer"))},_footerTmpl:function(a,b,d){var e=this,f=k({},c.Template,e.options.templateSettings),g=f.paramName,h="",i,j,l=e.columns,o,q,r={},s=0,t={},u=e.dataSource,v=u.group().length,w={},x;if(!p(a))if(m(a))for(i=0,j=a.length;i<j;i++)w[a[i].field]=!0;else w[a.field]=!0;h+='<tr class="'+d+'">',v>0&&(h+=U(v)),e._hasDetails()&&(h+='<td class="k-hierarchy-cell"> </td>');for(i=0,j=e.columns.length;i<j;i++)x=l[i],o=x[b],q=typeof o,h+="<td>",o?(q!==N&&(t=w[x.field]?k({},f,{paramName:g+"."+x.field}):{},o=c.template(o,t)),r["tmpl"+s]=o,h+="#=this.tmpl"+s+"("+g+")#",s++):h+=" ",h+="</td>";h+="</tr>",h=c.template(h,f);if(s>0)return n(h,r);return h},_detailTmpl:function(a){var b=this,d="",e=k({},c.Template,b.options.templateSettings),f=e.paramName,g={},h=0,i=b.dataSource.group().length,j=b.columns.length,l=typeof a;d+='<tr class="k-detail-row">',i>0&&(d+=U(i)),d+='<td class="k-hierarchy-cell"></td><td class="k-detail-cell"'+(j?' colspan="'+j+'"':"")+">",l===N?(g["tmpl"+h]=a,d+="#=this.tmpl"+h+"("+f+")#",h++):d+=a,d+="</td></tr>",d=c.template(d,e);if(h>0)return n(d,g);return d},_hasDetails:function(){var a=this;return a.options.detailTemplate!==b||(a._events[A]||[]).length},_details:function(){var b=this;b.table.delegate(".k-hierarchy-cell .k-plus, .k-hierarchy-cell .k-minus",K,function(c){var d=a(this),e=d.hasClass("k-plus"),f=d.closest("tr.k-master-row"),g,h=b.detailTemplate,i,j=b._hasDetails();d.toggleClass("k-plus",!e).toggleClass("k-minus",e),j&&!f.next().hasClass("k-detail-row")&&(i=b.dataItem(f),a(h(i)).insertAfter(f),b.trigger(A,{masterRow:f,detailRow:f.next(),data:i,detailCell:f.next().find(".k-detail-cell")})),g=f.next(),b.trigger(e?F:G,{masterRow:f,detailRow:g}),g.toggle(e),c.preventDefault();return!1})},dataItem:function(b){return this._data[this.tbody.find("> tr:not(.k-grouping-row,.k-detail-row)").index(a(b))]},expandRow:function(b){a(b).find("> td .k-plus, > td .k-expand").click()},collapseRow:function(b){a(b).find("> td .k-minus, > td .k-collapse").click()},_thead:function(){var d=this,e=d.columns,f=d._hasDetails()&&e.length,g,h,i="",j=d.table.find("thead"),k,l;j.length||(j=a("<thead/>").insertBefore(d.tbody)),k=d.table.find("tr").filter(":has(th)"),k.length||(k=j.children().first(),k.length||(k=a("<tr/>")));if(!k.children().length){f&&(i+='<th class="k-hierarchy-cell"> </th>');for(g=0,h=e.length;g<h;g++)l=e[g],l.command?i+="<th>"+(l.title||"")+"</th>":(i+="<th "+c.attr("field")+"='"+l.field+"' ",l.title&&(i+=c.attr("title")+'="'+l.title.replace(/'/g,"'")+'" '),l.groupable!==b&&(i+=c.attr("groupable")+"='"+l.groupable+"' "),l.aggregates&&(i+=c.attr("aggregates")+"='"+l.aggregates+"'"),i+=">"+(l.title||l.field||"")+"</th>");k.html(i)}else f&&k.prepend('<th class="k-hierarchy-cell"> </th>');k.find("th").addClass("k-header"),d.options.scrollable||j.addClass("k-grid-header"),k.appendTo(j),d.thead=j,d._sortable(),d._filterable(),d._scrollable(),d._updateCols(),d._setContentHeight()},_updateCols:function(){var a=this;a._appendCols(a.thead.parent().add(a.table))},_appendCols:function(b){var d=this,e=b.find("colgroup"),f,g=l(d.columns,function(a){f=a.width;if(f&&parseInt(f)!=0)return c.format('<col style="width:{0}"/>',typeof f===O?f:f+"px");return"<col />"}),h=d.dataSource.group().length;d._hasDetails()&&g.splice(0,0,'<col class="k-hierarchy-col" />'),e.length&&e.remove(),e=a("<colgroup/>").append(a(Array(h+1).join('<col class="k-group-col">')+g.join(""))),b.prepend(e)},_autoColumns:function(a){if(a&&a.toJSON){var b=this,c;a=a.toJSON();for(c in a)b.columns.push({field:c});b._thead(),b._templates()}},_rowsHtml:function(a){var b=this,c="",d,e,f=b.rowTemplate,g=b.altRowTemplate;for(d=0,e=a.length;d<e;d++)d%2?c+=g(a[d]):c+=f(a[d]),b._data.push(a[d]);return c},_groupRowHtml:function(b,d,e){var f=this,g="",h,i,j=b.field,l=a.grep(f.columns,function(a){return a.field==j})[0]||{},m=l.format?c.format(l.format,b.value):b.value,n=l.groupHeaderTemplate,o=(l.title||j)+": "+m,p=k({},{field:b.field,value:b.value},b.aggregates[b.field]),q=b.items;n&&(o=typeof n===N?n(p):c.template(n)(p)),g+='<tr class="k-grouping-row">'+U(e)+'<td colspan="'+d+'">'+'<p class="k-reset">'+'<a class="k-icon k-collapse" href="#"></a>'+o+"</p></td></tr>";if(b.hasSubgroups)for(h=0,i=q.length;h<i;h++)g+=f._groupRowHtml(q[h],d-1,e+1);else g+=f._rowsHtml(q);f.groupFooterTemplate&&(g+=f.groupFooterTemplate(b.aggregates));return g},collapseGroup:function(b){b=a(b).find(".k-icon").addClass("k-expand").removeClass("k-collapse").end();var c=b.find(".k-group-cell").length;b.nextUntil(function(){return a(".k-group-cell",this).length<=c}).hide()},expandGroup:function(b){b=a(b).find(".k-icon").addClass("k-collapse").removeClass("k-expand").end();var c=this,d=b.find(".k-group-cell").length;b.nextAll("tr").each(function(){var b=a(this),e=b.find(".k-group-cell").length;if(e<=d)return!1;e==d+1&&(b.show(),b.hasClass("k-grouping-row")&&b.find(".k-icon").hasClass("k-collapse")&&c.expandGroup(b))})},_updateHeader:function(b){var c=this,d=c.thead.find("th.k-group-cell"),e=d.length;b>e?a(Array(b-e+1).join('<th class="k-group-cell k-header"> </th>')).prependTo(c.thead.find("tr")):b<e&&(e=e-b,a(a.grep(d,function(a,b){return e>b})).remove())},_firstDataItem:function(a,b){a&&b&&(a.hasSubgroups?a=this._firstDataItem(a.items[0],b):a=a.items[0]);return a},_progress:function(a){var b=this,d=b.element.is("table")?b.element.parent():b.content&&b.content.length?b.content:b.element;c.ui.progress(d,a)},refresh:function(b){var c=this,d,e,f="",h=c.dataSource.view(),i,j,k,l=c.current(),m=(c.dataSource.group()||[]).length,n=m+c.columns.length;if(!b||b.action!=="itemchange"||!c.editable){c.trigger("dataBinding"),l&&l.hasClass("k-state-focused")&&(k=c.items().index(l.parent())),c._distroyEditable(),c._progress(!1),c._data=[],c.columns.length||(c._autoColumns(c._firstDataItem(h[0],m)),n=m+c.columns.length),c._group=m>0||c._group,c._group&&(c._templates(),c._updateCols(),c._updateHeader(m),c._group=m>0);if(m>0){c.detailTemplate&&n++;for(e=0,d=h.length;e<d;e++)f+=c._groupRowHtml(h[e],n,0)}else f+=c._rowsHtml(h);g?c.tbody[0].innerHTML=f:(j=document.createElement("div"),j.innerHTML="<table><tbody>"+f+"</tbody></table>",i=j.firstChild.firstChild,c.table[0].replaceChild(i,c.tbody[0]),c.tbody=a(i)),c._footer(),k>=0&&c.current(c.items().eq(k).children().filter(u).first()),c.trigger(E)}}});d.plugin(W),d.plugin(T)}(jQuery),function(a,b){var c=window.kendo,d="change",e="dataBound",f="dataBinding",g=c.ui.Widget,h=c.keys,i=">*",d="change",j="requestStart",k="error",l="k-state-focused",m="k-focusable",n="k-state-selected",o="k-edit-item",p="string",q="click",r="edit",s="remove",t=a.proxy,u=c.ui.progress,v=c.data.DataSource,w=g.extend({init:function(b,d){var e=this;d=a.isArray(d)?{data:d}:d,g.fn.init.call(e,b,d),d=e.options,e.wrapper=e.element,e._element(),e._dataSource(),e.template=c.template(d.template||""),e.altTemplate=c.template(d.altTemplate||d.template),e.editTemplate=c.template(d.editTemplate||""),e._navigatable(),e._selectable(),e.options.autoBind&&e.dataSource.fetch(),c.notify(e)},events:[d,f,e,r,s],options:{name:"ListView",autoBind:!0,template:"",altTemplate:"",editTemplate:""},items:function(){return this.element.find(i)},setDataSource:function(a){this.options.dataSource=a,this._dataSource(),a.fetch()},_dataSource:function(){var a=this;a.dataSource&&a._refreshHandler?a.dataSource.unbind(d,a._refreshHandler).unbind(j,a._requestStartHandler).unbind(k,a._errorHandler):(a._refreshHandler=t(a.refresh,a),a._requestStartHandler=t(a._requestStart,a),a._errorHandler=t(a._error,a)),a.dataSource=v.create(a.options.dataSource).bind(d,a._refreshHandler).bind(j,a._requestStartHandler).bind(k,a._errorHandler)},_requestStart:function(){u(this.element,!0)},_error:function(){u(this.element,!1)},_element:function(){this.element.addClass("k-widget k-listview")},refresh:function(a){var b=this,c=b.dataSource.view(),d="",g,h,i=b.template,j=b.altTemplate;if(!a||a.action!=="itemchange"||!b.editable){b.trigger(f),b._destroyEditable();for(g=0,h=c.length;g<h;g++)g%2?d+=j(c[g]):d+=i(c[g]);b.element.html(d),b.trigger(e)}},_selectable:function(){var a=this,b,e,f=a.options.selectable,g=a.options.navigatable;f&&(b=typeof f===p&&f.toLowerCase().indexOf("multiple")>-1,a.selectable=new c.ui.Selectable(a.element,{multiple:b,filter:i,change:function(){a.trigger(d)}}),g&&a.element.keydown(function(c){c.keyCode===h.SPACEBAR&&(e=a.current(),c.preventDefault(),b?c.ctrlKey?e.hasClass(n)&&(e.removeClass(n),e=null):a.selectable.clear():a.selectable.clear(),a.selectable.value(e))}))},current:function(a){var c=this,d=c._current;a!==b&&a.length&&(!d||d[0]!==a[0])&&(a.addClass(l),d&&d.removeClass(l),c._current=a);return c._current},_navigatable:function(){var b=this,c=b.options.navigatable,d=b.element,e=t(b.current,b),f=function(b){e(a(b.currentTarget)),a(b.target).is(":button,a,:input,a>.k-icon,textarea")||d.focus()};c&&(d.attr("tabIndex",Math.max(d.attr("tabIndex")||0,0)),d.bind({focus:function(){var a=b._current;a&&a.is(":visible")?a.addClass(l):e(d.find(i).first())},focusout:function(){b._current&&b._current.removeClass(l)},keydown:function(a){var c=a.keyCode,e=b.current();h.UP===c?b.current(e?e.prev():d.find(i).first()):h.DOWN===c?b.current(e?e.next():d.find(i).first()):h.PAGEUP==c?(b._current=null,b.dataSource.page(b.dataSource.page()-1)):h.PAGEDOWN==c&&(b._current=null,b.dataSource.page(b.dataSource.page()+1))}}),d.addClass(m).delegate("."+m+i,"mousedown",f))},clearSelection:function(){var a=this;a.selectable.clear(),a.trigger(d)},select:function(b){var c=this,d=c.selectable;b=a(b);if(b.length)d.options.multiple||(d.clear(),b=b.first()),d.value(b);else return d.value()},_destroyEditable:function(){var a=this;a.editable&&(a.editable.distroy(),delete a.editable)},_closeEditable:function(b){var c=this,d=c.editable,e,f,g=!0;d&&(b&&(g=d.end()),g&&(e=c.dataSource.view()[d.element.index()],f=a(c.template(e)),c._destroyEditable(),d.element.replaceWith(f)));return g},edit:function(b){var c=this,d=c.dataSource.view()[b.index()],e=a(c.editTemplate(d)).addClass(o);c.cancel(),b.replaceWith(e),c.editable=e.kendoEditable({model:d,clearContainer:!1,errorTemplate:!1}).data("kendoEditable"),c.trigger(r,{model:d,item:e})},save:function(){this._closeEditable(!0)&&this.dataSource.sync()},remove:function(a){var b=this,c=b.dataSource,d=c.view()[a.index()];b.trigger(s,{model:d,item:a})||(a.hide(),c.remove(d),c.sync())},add:function(){var a=this,b=a.dataSource,c=b.indexOf((b.view()||[])[0]);c<0&&(c=0),a.cancel(),b.insert(c,{}),a.edit(a.element.children().first())},cancel:function(){var a=this,b=a.dataSource,c,d=-1;a.editable&&(d=a.editable.element.index()),d!=-1&&(c=b.view()[d],b.cancelChanges(c),a._closeEditable(!1))}});c.ui.plugin(w)}(jQuery),function(a,b){var c=window.kendo,d=c.Class,e=c.ui.Widget,f=a.extend,g=c.deepExtend,h=c.keys,i=d.extend({init:function(a){var b=this;b.options=a},getHtml:function(){var a=this.options;return c.template(a.template)({cssClass:a.cssClass,tooltip:a.title,initialValue:a.initialValue})}}),k={select:function(a){a.trigger("select",{})},editorWrapperTemplate:'<table cellspacing="4" cellpadding="0" class="k-widget k-editor k-header"><tbody><tr><td class="k-editor-toolbar-wrap"><ul class="k-editor-toolbar"></ul></td></tr><tr><td class="k-editable-area"></td></tr></tbody></table>',buttonTemplate:'<li class="k-editor-button"><a href="" class="k-tool-icon #= cssClass #" unselectable="on" title="#= tooltip #">#= tooltip #</a></li>',colorPickerTemplate:'<li class="k-editor-colorpicker"><div class="k-widget k-colorpicker k-header #= cssClass #"><span class="k-tool-icon"><span class="k-selected-color"></span></span><span class="k-icon k-arrow-down"></span></div></li>',comboBoxTemplate:'<li class="k-editor-combobox"><select title="#= tooltip #" class="#= cssClass #"></select></li>',dropDownListTemplate:'<li class="k-editor-selectbox"><select title="#= tooltip #" class="#= cssClass #"></select></li>',focusable:".k-colorpicker,a.k-tool-icon:not(.k-state-disabled),.k-selectbox, .k-combobox .k-input",wrapTextarea:function(b){var c=b.width(),d=b.height(),e=k.editorWrapperTemplate,f=a(e).insertBefore(b).width(c).height(d),g=f.find(".k-editable-area"),h=f.find(".k-editor-toolbar");b.appendTo(g).addClass("k-content k-raw-content").hide();return b.closest(".k-editor")},renderTools:function(b,d){var e={},g,h,i,l=b._nativeTools,m,n,o=a(b.element).closest(".k-editor").find(".k-editor-toolbar");if(d)for(j=0;j<d.length;j++)g=d[j],a.isPlainObject(g)?(n=f({cssClass:"k-custom",type:"button",tooltip:""},g),n.name&&(n.cssClass="k-"+n.name),n.template||n.type=="button"&&(n.template=k.buttonTemplate)):b._tools[g]&&(e[g]=b._tools[g],n=e[g].options),m=n.template,m&&(m.getHtml?m=m.getHtml():(a.isFunction(m)||(m=c.template(m)),m=m(n)),h=a(m).appendTo(o),n.type=="button"&&n.exec&&h.find(".k-tool-icon").click(a.proxy(n.exec,b.element[0])));for(j=0;j<l.length;j++)e[l[j]]=b._tools[l[j]];b.options.tools=e},createContentElement:function(b,c){b.hide();var d=a("<iframe />",{src:'javascript:"<html></html>"',frameBorder:"0"}).css("display","").addClass("k-content").insertBefore(b)[0],e=d.contentWindow||d,f=e.document||d.contentDocument,g=b.val().replace(/(<\/?img[^>]*>)[\r\n\v\f\t ]+/ig,"$1").replace(/[\r\n\v\f\t ]+/ig," ");!g.length&&a.browser.mozilla&&(g='<br _moz_dirty="true" />');var h=b.closest(".k-rtl").length?"direction:rtl;":"";f.designMode="On",f.open(),f.write('<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><style type="text/css">html,body{padding:0;margin:0;font-family:Verdana,Geneva,sans-serif;background:#fff;}html{font-size:100%}body{font-size:.75em;line-height:1.5;padding-top:1px;margin-top:-1px;'+h+"}"+"h1{font-size:2em;margin:.67em 0}h2{font-size:1.5em}h3{font-size:1.16em}h4{font-size:1em}h5{font-size:.83em}h6{font-size:.7em}"+"p{margin:0 0 1em;padding:0 .2em}.k-marker{display:none;}.k-paste-container{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}"+"ul,ol{padding-left:2.5em}"+"a{color:#00a}"+"code{font-size:1.23em}"+"</style>"+a.map(c,function(a){return['<link type="text/css" href="',a,'" rel="stylesheet"/>'].join("")}).join("")+'</head><body spellcheck="false">'+g+"</body></html>"),f.close();return e},initializeContentElement:function(b){var c=!0;b.window=k.createContentElement(a(b.textarea),b.options.stylesheets),b.document=b.window.contentDocument||b.window.document,b.body=b.document.body,a(b.document).bind({keydown:function(a){if(a.keyCode===h.F10)setTimeout(function(){var a="tabIndex",c=b.wrapper,d=c.attr(a);c.attr(a,d||0).focus().find("li:has("+m+")").first().focus(),!d&&d!==0&&c.removeAttr(a)},100),a.preventDefault();else{var d=b.keyboard.toolFromShortcut(b.options.tools,a);if(d){a.preventDefault(),/undo|redo/.test(d)||b.keyboard.endTyping(!0),b.exec(d);return!1}if(b.keyboard.isTypingKey(a)&&b.pendingFormats.hasPending())if(c)c=!1;else{var e=b.getRange();b.pendingFormats.apply(e),b.selectRange(e)}b.keyboard.clearTimeout(),b.keyboard.keydown(a)}},keyup:function(d){var e=[8,9,33,34,35,36,37,38,39,40,40,45,46];a.browser.mozilla&&d.keyCode==h.BACKSPACE&&r(b,d);if(a.inArray(d.keyCode,e)>-1||d.keyCode==65&&d.ctrlKey&&!d.altKey&&!d.shiftKey)b.pendingFormats.clear(),l(b);if(b.keyboard.isTypingKey(d)){if(b.pendingFormats.hasPending()){var f=b.getRange();b.pendingFormats.apply(f),b.selectRange(f)}}else c=!0;b.keyboard.keyup(d)},mousedown:function(c){b.pendingFormats.clear();var d=a(c.target);!a.browser.gecko&&c.which==2&&d.is("a[href]")&&window.open(d.attr("href"),"_new")},mouseup:function(){l(b)}}),a(b.window).bind("blur",function(){var a=b.textarea.value,c=b.encodedValue();b.update(c),c!=a&&b.trigger("change")}),a(b.body).bind("cut paste",function(a){b.clipboard["on"+a.type](a)})},fixBackspace:function(a,b){var d=a.getRange(),e=d.startContainer,f=c.ui.editor.Dom;if(!(e==a.body.firstChild||!f.isBlock(e)||e.childNodes.length>0&&(e.childNodes.length!=1||!f.is(e.firstChild,"br")))){var g=e.previousSibling;while(g&&!f.isBlock(g))g=g.previousSibling;if(!g)return;var h=a.document.createTreeWalker(g,NodeFilter.SHOW_TEXT,null,!1),i;while(i=h.nextNode())g=i;d.setStart(g,f.isDataNode(g)?g.nodeValue.length:0),d.collapse(!0),c.ui.editor.RangeUtils.selectRange(d),f.remove(e),b.preventDefault()}},formatByName:function(b,c){for(var d=0;d<c.length;d++)if(a.inArray(b,c[d].tags)>=0)return c[d]},registerTool:function(a,b){var c=v.fn._tools;c[a]=b,c[a].options&&c[a].options.template&&(c[a].options.template.options.cssClass="k-"+a)},registerFormat:function(a,b){c.ui.Editor.fn.options.formats[a]=b}},l=k.select,m=k.focusable,n=k.wrapTextarea,o=k.renderTools,p=k.createContentElement,q=k.initializeContentElement,r=k.fixBackspace,s={bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",superscript:"Superscript",subscript:"Subscript",justifyCenter:"Center text",justifyLeft:"Align text left",justifyRight:"Align text right",justifyFull:"Justify",insertUnorderedList:"Insert unordered list",insertOrderedList:"Insert ordered list",indent:"Indent",outdent:"Outdent",createLink:"Insert hyperlink",unlink:"Remove hyperlink",insertImage:"Insert image",insertHtml:"Insert HTML",fontName:"Select font family",fontNameInherit:"(inherited font)",fontSize:"Select font size",fontSizeInherit:"(inherited size)",formatBlock:"Format",style:"Styles",emptyFolder:"Empty Folder",uploadFile:"Upload",orderBy:"Arrange by:",orderBySize:"Size",orderByName:"Name",invalidFileType:'The selected file "{0}" is not valid. Supported file types are {1}.',deleteFile:'Are you sure you want to delete "{0}"?',overwriteFile:'A file with name "{0}" already exists in the current directory. Do you want to overwrite it?',directoryNotFound:"A directory with this name was not found."},t=function(){return{isFormatted:function(){return!1}}},u=!c.support.mobileOS||c.support.mobileOS.ios&&c.support.mobileOS.majorVersion>=5,v=e.extend({init:function(b,d){function l(a,b){if(!b.key)return a;var c=a+" (";b.ctrl&&(c+="Ctrl + "),b.shift&&(c+="Shift + "),b.alt&&(c+="Alt + "),c+=b.key+")";return c}function k(b){var c=a.grep(b.className.split(" "),function(a){return!/^k-(widget|tool-icon|state-hover|header|combobox|dropdown|selectbox|colorpicker)$/i.test(a)});return c[0]?c[0].substring(2):"custom"}if(!!u){var f=this,i;e.fn.init.call(f,b,d),f.options=g({},f.options,d),b=a(b),b.closest("form").bind("submit",function(){f.update()});for(var j in f._tools)f._tools[j].name=j.toLowerCase();f.textarea=b.attr("autocomplete","off")[0],i=f.wrapper=n(b),o(f,f.options.tools),q(f),f.keyboard=new c.ui.editor.Keyboard([new c.ui.editor.TypingHandler(f),new c.ui.editor.SystemHandler(f)]),f.clipboard=new c.ui.editor.Clipboard(this),f.pendingFormats=new c.ui.editor.PendingFormats(this),f.undoRedoStack=new c.ui.editor.UndoRedoStack,d&&d.value&&f.value(d.value);var p=".k-editor-toolbar > li > *, .k-editor-toolbar > li select",r=".k-editor-button .k-tool-icon",t=r+":not(.k-state-disabled)",v=r+".k-state-disabled";i.find(".k-combobox .k-input").keydown(function(b){var c=a(this).closest(".k-combobox").data("kendoComboBox"),d=b.keyCode;d==h.RIGHT||d==h.LEFT?c.close():d==h.DOWN&&(c.dropDown.isOpened()||(b.stopImmediatePropagation(),c.open()))}),i.delegate(t,"mouseenter",function(){a(this).addClass("k-state-hover")}).delegate(t,"mouseleave",function(){a(this).removeClass("k-state-hover")}).delegate(r,"mousedown",!1).delegate(m,"keydown",function(b){var c=a(this).closest("li"),d="li:has("+m+")",e,g=b.keyCode;if(g==h.RIGHT)e=c.nextAll(d).first().find(m);else if(g==h.LEFT)e=c.prevAll(d).last().find(m);else if(g==h.ESC)e=f;else if(g==h.TAB&&!b.ctrlKey&&!b.altKey)if(b.shiftKey){e=c.prevAll(d).last().find(m);if(e.length)b.preventDefault();else return}else b.preventDefault(),e=c.nextAll(d).first().find(m),e.length==0&&(e=f);e&&e.focus()}).delegate(t,"click",function(a){a.preventDefault(),a.stopPropagation(),f.exec(k(this))}).delegate(v,"click",function(a){a.preventDefault()}).find(p).each(function(){var b=k(this),c=f.options,d=c.tools[b],e=c.localization[b],g=a(this);if(!!d){if(b=="fontSize"||b=="fontName"){var h=c.localization[b+"Inherit"]||s[b+"Inherit"];c[b][0].Text=h,g.find("input").val(h).end().find("span.k-input").text(h).end()}d.initialize(g,{title:l(e,d),editor:f})}}),f.bind("select",function(){var b=f.getRange(),d=c.ui.editor.RangeUtils.textNodes(b);d.length||(d=[b.startContainer]),i.find(p).each(function(){var b=f.options.tools[k(this)];b&&b.update(a(this),d,f.pendingFormats)})}),a(document).bind("DOMNodeInserted",function(b){if(a.contains(b.target,f.wrapper[0])||f.wrapper[0]==b.target)f.textarea.value=f.value(),f.wrapper.find("iframe").remove(),q(f)}).bind("mousedown",function(a){try{f.keyboard.isTypingInProgress()&&f.keyboard.endTyping(!0),f.selectionRestorePoint||(f.selectionRestorePoint=new c.ui.editor.RestorePoint(f.getRange()))}catch(a){}}),c.notify(f)}},events:["select","change","execute","error","paste"],options:{name:"Editor",localization:s,formats:{},encoded:!0,stylesheets:[],dialogOptions:{modal:!0,resizable:!1,draggable:!0,animation:!1},fontName:[{Text:s.fontNameInherit,Value:"inherit"},{Text:"Arial",Value:"Arial,Helvetica,sans-serif"},{Text:"Courier New",Value:"'Courier New',Courier,monospace"},{Text:"Georgia",Value:"Georgia,serif"},{Text:"Impact",Value:"Impact,Charcoal,sans-serif"},{Text:"Lucida Console",Value:"'Lucida Console',Monaco,monospace"},{Text:"Tahoma",Value:"Tahoma,Geneva,sans-serif"},{Text:"Times New Roman",Value:"'Times New Roman',Times,serif"},{Text:"Trebuchet MS",Value:"'Trebuchet MS',Helvetica,sans-serif"},{Text:"Verdana",Value:"Verdana,Geneva,sans-serif"}],fontSize:[{Text:s.fontSizeInherit,Value:"inherit"},{Text:"1 (8pt)",Value:"xx-small"},{Text:"2 (10pt)",Value:"x-small"},{Text:"3 (12pt)",Value:"small"},{Text:"4 (14pt)",Value:"medium"},{Text:"5 (18pt)",Value:"large"},{Text:"6 (24pt)",Value:"x-large"},{Text:"7 (36pt)",Value:"xx-large"}],formatBlock:[{Text:"Paragraph",Value:"p"},{Text:"Quotation",Value:"blockquote"},{Text:"Heading 1",Value:"h1"},{Text:"Heading 2",Value:"h2"},{Text:"Heading 3",Value:"h3"},{Text:"Heading 4",Value:"h4"},{Text:"Heading 5",Value:"h5"},{Text:"Heading 6",Value:"h6"}],tools:["bold","italic","underline","strikethrough","fontName","fontSize","foreColor","backColor","justifyLeft","justifyCenter","justifyRight","justifyFull","insertUnorderedList","insertOrderedList","indent","outdent","formatBlock","createLink","unlink","insertImage"]},_nativeTools:["insertLineBreak","insertParagraph","redo","undo"],_tools:{undo:{options:{key:"Z",ctrl:!0}},redo:{options:{key:"Y",ctrl:!0}}},value:function(d){var e=this.body,f=c.ui.editor.Dom;if(d===b)return c.ui.editor.Serializer.domToXhtml(e);this.pendingFormats.clear(),d=d||"",d=d.replace(/<!\[CDATA\[(.*)?\]\]>/g,"<!--[CDATA[$1]]-->"),d=d.replace(/<script([^>]*)>(.*)?<\/script>/ig,"<telerik:script $1>$2</telerik:script>"),a.browser.mozilla&&(d=d.replace(/<p([^>]*)>(\s*)?<\/p>/ig,'<p $1><br _moz_dirty="" /></p>'));if(a.browser.msie&&parseInt(a.browser.version)<9){d="<br/>"+d;var g="originalsrc",h="originalhref";d=d.replace(/href\s*=\s*(?:'|")?([^'">\s]*)(?:'|")?/,h+'="$1"'),d=d.replace(/src\s*=\s*(?:'|")?([^'">\s]*)(?:'|")?/,g+'="$1"'),e.innerHTML=d,f.remove(e.firstChild),a(e).find("telerik\\:script,script,link,img,a").each(function(){var a=this;a[h]&&(a.setAttribute("href",a[h]),a.removeAttribute(h)),a[g]&&(a.setAttribute("src",a[g]),a.removeAttribute(g))})}else e.innerHTML=d,a.browser.msie&&f.normalize(e);this.selectionRestorePoint=null,this.update()},focus:function(){this.window.focus()},update:function(a){this.textarea.value=a||this.options.encoded?this.encodedValue():this.value()},encodedValue:function(){return c.ui.editor.Dom.encode(this.value())},createRange:function(a){return c.ui.editor.RangeUtils.createRange(a||this.document)},getSelection:function(){return c.ui.editor.SelectionUtils.selectionFromDocument(this.document)},selectRange:function(a){this.focus();var b=this.getSelection();b.removeAllRanges(),b.addRange(a)},getRange:function(){var a=this.getSelection(),b=a.rangeCount>0?a.getRangeAt(0):this.createRange();b.startContainer==this.document&&b.endContainer==this.document&&b.startOffset==0&&b.endOffset==0&&(b.setStart(this.body,0),b.collapse(!0));return b},selectedHtml:function(){return c.ui.editor.Serializer.domToXhtml(this.getRange().cloneContents())},paste:function(a){this.clipboard.paste(a)},exec:function(b,c){var d=this,e,g,h,i="",j;b=b.toLowerCase(),d.keyboard.isTypingInProgress()||(d.focus(),e=d.getRange(),g=d.document.body);for(h in d.options.tools)if(h.toLowerCase()==b){i=d.options.tools[h];break}if(i){e=d.getRange();if(!/undo|redo/i.test(b)&&i.willDelayExecution(e)){j=a.extend({},i),a.extend(j.options,{params:c}),d.pendingFormats.toggle(j),l(d);return}var k=i.command?i.command(f({range:e},c)):null;d.trigger("execute",{name:b,command:k});if(/undo|redo/i.test(b))d.undoRedoStack[b]();else if(k){k.managesUndoRedo||d.undoRedoStack.push(k),k.editor=d,k.exec();if(k.async){k.change=a.proxy(function(){l(d)},d);return}}l(d)}}});c.ui.plugin(v);var w=d.extend({init:function(a){this.options=a},initialize:function(a,b){a.attr({unselectable:"on",title:b.title})},command:function(a){return new this.options.command(a)},update:function(){},willDelayExecution:function(){return!1}});w.exec=function(a,b,c){a.exec(b,{value:c})};var x=w.extend({init:function(a){w.fn.init.call(this,a)},command:function(a){var b=this;return new c.ui.editor.FormatCommand(f(a,{formatter:b.options.formatter}))},update:function(a,b,c){var d=c.isPending(this.name),e=this.options.finder.isFormatted(b),f=d?!e:e;a.toggleClass("k-state-active",f)}});f(c.ui,{editor:{ToolTemplate:i,EditorUtils:k,Tool:w,FormatTool:x}})}(jQuery),function(a){function l(a){var b={},c,d;for(c=0,d=a.length;c<d;c++)b[a[c]]=!0;return b}var b=window.kendo,c=b.Class,d=a.map,e=a.extend,f="style",g="float",h="cssFloat",i="styleFloat",j="class",k="k-marker",m=l("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed".split(",")),n="div,p,h1,h2,h3,h4,h5,h6,address,applet,blockquote,button,center,dd,dir,dl,dt,fieldset,form,frameset,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,pre,script,table,tbody,td,tfoot,th,thead,tr,ul".split(","),o=l(n),p="span,em,a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,strike,strong,sub,sup,textarea,tt,u,var".split(","),q=l(p),r=l("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected".split(",")),s=function(a){a.nodeType==1&&a.normalize()};a.browser.msie&&parseInt(a.browser.version)>=8&&(s=function(a){if(a.nodeType==1&&a.firstChild){var b=a.firstChild,c=b;while(c=c.nextSibling)c.nodeType==3&&b.nodeType==3&&(c.nodeValue=b.nodeValue+c.nodeValue,B.remove(b)),b=c}});var t=/^\s+$/,u=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,v=/&/g,w=/</g,x=/>/g,y=/\u00a0/g,z=/\ufeff/g,A="color,padding-left,padding-right,padding-top,padding-bottom,\nbackground-color,background-attachment,background-image,background-position,background-repeat,\nborder-top-style,border-top-width,border-top-color,\nborder-bottom-style,border-bottom-width,border-bottom-color,\nborder-left-style,border-left-width,border-left-color,\nborder-right-style,border-right-width,border-right-color,\nfont-family,font-size,font-style,font-variant,font-weight,line-height".split(","),B={findNodeIndex:function(a){var b=0;while(a=a.previousSibling)b++;return b},isDataNode:function(a){return a&&a.nodeValue!==null&&a.data!==null},isAncestorOf:function(b,c){try{return!B.isDataNode(b)&&(a.contains(b,B.isDataNode(c)?c.parentNode:c)||c.parentNode==b)}catch(d){return!1}},isAncestorOrSelf:function(a,b){return B.isAncestorOf(a,b)||a==b},findClosestAncestor:function(a,b){if(B.isAncestorOf(a,b))while(b&&b.parentNode!=a)b=b.parentNode;return b},getNodeLength:function(a){return B.isDataNode(a)?a.length:a.childNodes.length},splitDataNode:function(a,b){var c=a.cloneNode(!1);a.deleteData(b,a.length),c.deleteData(0,b),B.insertAfter(c,a)},attrEquals:function(b,c){for(var d in c){var e=b[d];d==g&&(e=b[a.support.cssFloat?h:i]);if(typeof e=="object"){if(!B.attrEquals(e,c[d]))return!1}else if(e!=c[d])return!1}return!0},blockParentOrBody:function(a){return B.parentOfType(a,n)||a.ownerDocument.body},blockParents:function(b){var c=[],d,e;for(d=0,e=b.length;d<e;d++){var f=B.parentOfType(b[d],B.blockElements);f&&a.inArray(f,c)<0&&c.push(f)}return c},windowFromDocument:function(a){return a.defaultView||a.parentWindow},normalize:s,blockElements:n,inlineElements:p,empty:m,fillAttrs:r,toHex:function(a){var b=u.exec(a);if(!b)return a;return"#"+d(b.slice(1),function(a){return a=parseInt(a).toString(16),a.length>1?a:"0"+a}).join("")},encode:function(a){return a.replace(v,"&").replace(w,"<").replace(x,">").replace(y," ")},name:function(a){return a.nodeName.toLowerCase()},significantChildNodes:function(b){return a.grep(b.childNodes,function(a){return a.nodeType!=3||!B.isWhitespace(a)})},lastTextNode:function(a){if(a.nodeType==3)return a;var b=null;for(var c=a.lastChild;c;c=c.previousSibling)if(b=B.lastTextNode(c))return b;return b},is:function(a,b){return B.name(a)==b},isMarker:function(a){return a.className==k},isWhitespace:function(a){return t.test(a.nodeValue)},isBlock:function(a){return o[B.name(a)]},isEmpty:function(a){return m[B.name(a)]},isInline:function(a){return q[B.name(a)]},scrollTo:function(b){b.ownerDocument.body.scrollTop=a(B.isDataNode(b)?b.parentNode:b).offset().top},insertAt:function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)},insertBefore:function(a,b){return b.parentNode?b.parentNode.insertBefore(a,b):b},insertAfter:function(a,b){return b.parentNode.insertBefore(a,b.nextSibling)},remove:function(a){a.parentNode.removeChild(a)},trim:function(a){for(var b=a.childNodes.length-1;b>=0;b--){var c=a.childNodes[b];B.isDataNode(c)?(c.nodeValue.replace(z,"").length==0&&B.remove(c),B.isWhitespace(c)&&B.insertBefore(c,a)):c.className!=k&&(B.trim(c),c.childNodes.length==0&&!B.isEmpty(c)&&B.remove(c))}return a},parentOfType:function(a,b){do a=a.parentNode;while(a&&!B.ofType(a,b));return a},ofType:function(b,c){return a.inArray(B.name(b),c)>=0},changeTag:function(a,b){var c=B.create(a.ownerDocument,b),d=a.attributes,e,g,h,i,k;for(e=0,g=d.length;e<g;e++)k=d[e],k.specified&&(h=k.nodeName,i=k.nodeValue,h==j?c.className=i:h==f?c.style.cssText=a.style.cssText:c.setAttribute(h,i));while(a.firstChild)c.appendChild(a.firstChild);B.insertBefore(c,a),B.remove(a);return c},wrap:function(a,b){B.insertBefore(b,a),b.appendChild(a);return b},unwrap:function(a){var b=a.parentNode;while(a.firstChild)b.insertBefore(a.firstChild,a);b.removeChild(a)},create:function(a,b,c){return B.attr(a.createElement(b),c)},attr:function(a,b){b=e({},b),b&&f in b&&(B.style(a,b.style),delete b.style);return e(a,b)},style:function(b,c){a(b).css(c||{})},unstyle:function(b,c){for(var d in c)d==g&&(d=a.support.cssFloat?h:i),b.style[d]="";b.style.cssText==""&&b.removeAttribute(f)},inlineStyle:function(b,c,e){var f=a(B.create(b,c,e)),g;b.body.appendChild(f[0]),g=d(A,function(b){return a.browser.msie&&b=="line-height"&&f.css(b)=="1px"?"line-height:1.5":b+":"+f.css(b)}).join(";"),f.remove();return g},removeClass:function(b,c){var d=" "+b.className+" ",e=c.split(" "),f,g;for(f=0,g=e.length;f<g;f++)d=d.replace(" "+e[f]+" "," ");d=a.trim(d),d.length?b.className=d:b.removeAttribute(j)},commonAncestor:function(){var a=arguments.length,b=[],c=Infinity,d=null,e,f,g,h,i;if(!a)return null;if(a==1)return arguments[0];for(e=0;e<a;e++){f=[],g=arguments[e];while(g)f.push(g),g=g.parentNode;b.push(f.reverse()),c=Math.min(c,f.length)}if(a==1)return b[0][0];for(e=0;e<c;e++){h=b[0][e];for(i=1;i<a;i++)if(h!=b[i][e])return d;d=h}return d}};b.ui.editor.Dom=B}(jQuery),function(a,b){var c=document,d=window.kendo,e=d.ui.editor,f=e.Dom,g=a.extend,h="xx-small,x-small,small,medium,large,x-large,xx-large".split(","),i=/"/g,j=/<br[^>]*>/i,k=/<p><\/p>/i,l={domToXhtml:function(c){function m(b,c){var h=b.nodeType,i,j,k,m,n;if(h==1){i=f.name(b);if(i==""||b.attributes._moz_dirty&&f.is(b,"br"))return;j=e[i];if(j){j.start(b),l(b),j.end(b);return}d.push("<"),d.push(i),g(b),f.empty[i]?d.push(" />"):(d.push(">"),l(b,c||f.is(b,"pre")),d.push("</"),d.push(i),d.push(">"))}else if(h==3){m=b.nodeValue;if(!c&&a.support.leadingWhitespace){k=b.parentNode,n=b.previousSibling,n||(n=(f.isInline(k)?k:b).previousSibling);if(!n||n.innerHTML==""||f.isBlock(n))m=m.replace(/^[\r\n\v\f\t ]+/,"");m=m.replace(/ +/," ")}d.push(f.encode(m))}else h==4?(d.push("<![CDATA["),d.push(b.data),d.push("]]>")):h==8&&(b.data.indexOf("[CDATA[")<0?(d.push("<!--"),d.push(b.data),d.push("-->")):(d.push("<!"),d.push(b.data),d.push(">")))}function l(a,b){for(var c=a.firstChild;c;c=c.nextSibling)m(c,b)}function g(c){var e=[],g=c.attributes,h=a.trim;if(f.is(c,"img")){var j=c.style.width,k=c.style.height,l=a(c);j&&(l.attr("width",parseInt(j)),f.unstyle(c,{width:b})),k&&(l.attr("height",parseInt(k)),f.unstyle(c,{height:b}))}for(var m=0,n=g.length;m<n;m++){var o=g[m],p=o.nodeName;(o.specified||p=="value"&&c.value!=""||p=="type"&&o.nodeValue=="text")&&p.indexOf("_moz")<0&&p!="complete"&&e.push(o)}if(!!e.length){e.sort(function(a,b){return a.nodeName>b.nodeName?1:a.nodeName<b.nodeName?-1:0});for(var m=0,n=e.length;m<n;m++){var o=e[m],q=o.nodeName,r=o.nodeValue;d.push(" "),d.push(q),d.push('="');if(q=="style"){var s=h(r||c.style.cssText).split(";");for(var t=0,u=s.length;t<u;t++){var v=s[t];if(v.length){var w=v.split(":"),x=h(w[0].toLowerCase()),y=h(w[1]);if(x=="font-size-adjust"||x=="font-stretch")continue;x.indexOf("color")>=0&&(y=f.toHex(y)),x.indexOf("font")>=0&&(y=y.replace(i,"'")),d.push(x),d.push(":"),d.push(y),d.push(";")}}}else q=="src"||q=="href"?d.push(c.getAttribute(q,2)):d.push(f.fillAttrs[q]?q:r);d.push('"')}}}var d=[],e={"telerik:script":{start:function(a){d.push("<script"),g(a),d.push(">")},end:function(){d.push("</script>")}},b:{start:function(){d.push("<strong>")},end:function(){d.push("</strong>")}},i:{start:function(){d.push("<em>")},end:function(){d.push("</em>")}},u:{start:function(){d.push('<span style="text-decoration:underline;">')},end:function(){d.push("</span>")}},font:{start:function(a){d.push('<span style="');var b=a.getAttribute("color"),c=h[a.getAttribute("size")],e=a.getAttribute("face");b&&(d.push("color:"),d.push(f.toHex(b)),d.push(";")),e&&(d.push("font-face:"),d.push(e),d.push(";")),c&&(d.push("font-size:"),d.push(c),d.push(";")),d.push('">')},end:function(a){d.push("</span>")}}};l(c),d=d.join("");if(d.replace(j,"").replace(k,"")=="")return"";return d}};g(e,{Serializer:l})}(jQuery),function(a){function y(a,b,c){var d=g.create(b.ownerDocument,"a"),e=a.duplicate();e.collapse(c);var f=e.parentElement();do f.insertBefore(d,d.previousSibling),e.moveToElementText(d);while(e.compareEndPoints(c?"StartToStart":"StartToEnd",a)>0&&d.previousSibling);e.setEndPoint(c?"EndToStart":"EndToEnd",a);var h=d.nextSibling;h?(g.remove(d),i(h)?b[c?"setStart":"setEnd"](h,e.text.length):b[c?"setStartBefore":"setEndBefore"](h)):(h=d.previousSibling,h&&i(h)?(b.setEnd(h,h.nodeValue.length),g.remove(d)):(b.selectNodeContents(f),g.remove(d),b.endOffset-=1))}function x(a,b,c){var d=b[c?"startContainer":"endContainer"],e=b[c?"startOffset":"endOffset"],f=0,h=i(d)?d:d.childNodes[e]||null,j=i(d)?d.parentNode:d;if(d.nodeType==3||d.nodeType==4)f=e;var k=j.insertBefore(g.create(b.ownerDocument,"a"),h),l=b.ownerDocument.body.createTextRange();l.moveToElementText(k),g.remove(k),l[c?"moveStart":"moveEnd"]("character",f),l.collapse(!1),a.setEndPoint(c?"StartToStart":"EndToStart",l)}function u(a){a.collapsed=a.startContainer==a.endContainer&&a.startOffset==a.endOffset;var b=a.startContainer;while(b&&b!=a.endContainer&&!g.isAncestorOf(b,a.endContainer))b=b.parentNode;a.commonAncestorContainer=b}function t(a,b){function c(a){try{return s(a.startContainer,a.endContainer,a.startOffset,a.endOffset)<0}catch(b){return!0}}c(a)&&(b?(a.commonAncestorContainer=a.endContainer=a.startContainer,a.endOffset=a.startOffset):(a.commonAncestorContainer=a.startContainer=a.endContainer,a.startOffset=a.endOffset),a.collapsed=!0)}function s(a,b,c,d){if(a==b)return d-c;var e=b;while(e&&e.parentNode!=a)e=e.parentNode;if(e)return h(e)-c;e=a;while(e&&e.parentNode!=b)e=e.parentNode;if(e)return d-h(e)-1;var f=g.commonAncestor(a,b),i=a;while(i&&i.parentNode!=f)i=i.parentNode;i||(i=f);var j=b;while(j&&j.parentNode!=f)j=j.parentNode;j||(j=f);if(i==j)return 0;return h(j)-h(i)}var b=document,c=window.kendo,d=c.Class,e=a.extend,f=c.ui.editor,g=f.Dom,h=g.findNodeIndex,i=g.isDataNode,j=g.findClosestAncestor,k=g.getNodeLength,l=g.normalize,m=0,n=1,o=2,p=3,q={selectionFromWindow:function(b){if(a.browser.msie&&a.browser.version<9)return new w(b.document);return b.getSelection()},selectionFromRange:function(a){var b=D.documentFromRange(a);return q.selectionFromDocument(b)},selectionFromDocument:function(a){return q.selectionFromWindow(g.windowFromDocument(a))}},r=d.extend({init:function(b){a.extend(this,{ownerDocument:b,startContainer:b,endContainer:b,commonAncestorContainer:b,startOffset:0,endOffset:0,collapsed:!0})},setStart:function(a,b){this.startContainer=a,this.startOffset=b,u(this),t(this,!0)},setEnd:function(a,b){this.endContainer=a,this.endOffset=b,u(this),t(this,!1)},setStartBefore:function(a){this.setStart(a.parentNode,h(a))},setStartAfter:function(a){this.setStart(a.parentNode,h(a)+1)},setEndBefore:function(a){this.setEnd(a.parentNode,h(a))},setEndAfter:function(a){this.setEnd(a.parentNode,h(a)+1)},selectNode:function(a){this.setStartBefore(a),this.setEndAfter(a)},selectNodeContents:function(a){this.setStart(a,0),this.setEnd(a,a[a.nodeType===1?"childNodes":"nodeValue"].length)},collapse:function(a){a?this.setEnd(this.startContainer,this.startOffset):this.setStart(this.endContainer,this.endOffset)},deleteContents:function(){var a=this.cloneRange();this.startContainer!=this.commonAncestorContainer&&this.setStartAfter(j(this.commonAncestorContainer,this.startContainer)),this.collapse(!0),function b(a){while(a.next())a.hasPartialSubtree()?b(a.getSubtreeIterator()):a.remove()}(new v(a))},cloneContents:function(){var a=D.documentFromRange(this);return function b(c){for(var d,e=a.createDocumentFragment();d=c.next();)d=d.cloneNode(!c.hasPartialSubtree()),c.hasPartialSubtree()&&d.appendChild(b(c.getSubtreeIterator())),e.appendChild(d);return e}(new v(this))},extractContents:function(){var a=this.cloneRange();this.startContainer!=this.commonAncestorContainer&&this.setStartAfter(j(this.commonAncestorContainer,this.startContainer)),this.collapse(!0);var b=this,c=D.documentFromRange(this);return function d(a){for(var e,f=c.createDocumentFragment();e=a.next();)a.hasPartialSubtree()?e=e.cloneNode(!1):a.remove(b.originalRange),a.hasPartialSubtree()&&e.appendChild(d(a.getSubtreeIterator())),f.appendChild(e);return f}(new v(a))},insertNode:function(a){i(this.startContainer)?(this.startOffset!=this.startContainer.nodeValue.length&&g.splitDataNode(this.startContainer,this.startOffset),g.insertAfter(a,this.startContainer)):g.insertAt(this.startContainer,a,this.startOffset),this.setStart(this.startContainer,this.startOffset)},cloneRange:function(){return a.extend(new r(this.ownerDocument),{startContainer:this.startContainer,endContainer:this.endContainer,commonAncestorContainer:this.commonAncestorContainer,startOffset:this.startOffset,endOffset:this.endOffset,collapsed:this.collapsed,originalRange:this})},toString:function(){var a=this.startContainer.nodeName,b=this.endContainer.nodeName;return[a=="#text"?this.startContainer.nodeValue:a,"(",this.startOffset,") : ",b=="#text"?this.endContainer.nodeValue:b,"(",this.endOffset,")"].join("")}}),v=d.extend({init:function(b){a.extend(this,{range:b,_current:null,_next:null,_end:null});if(!b.collapsed){var c=b.commonAncestorContainer;this._next=b.startContainer==c&&!i(b.startContainer)?b.startContainer.childNodes[b.startOffset]:j(c,b.startContainer),this._end=b.endContainer==c&&!i(b.endContainer)?b.endContainer.childNodes[b.endOffset]:j(c,b.endContainer).nextSibling}},hasNext:function(){return!!this._next},next:function(){var a=this._current=this._next;this._next=this._current&&this._current.nextSibling!=this._end?this._current.nextSibling:null,i(this._current)&&(this.range.endContainer==this._current&&(a=a.cloneNode(!0)).deleteData(this.range.endOffset,a.length-this.range.endOffset),this.range.startContainer==this._current&&(a=a.cloneNode(!0)).deleteData(0,this.range.startOffset));return a},traverse:function(a){function b(){this._current=this._next,this._next=this._current&&this._current.nextSibling!=this._end?this._current.nextSibling:null;return this._current}var c;while(c=b.call(this))this.hasPartialSubtree()?this.getSubtreeIterator().traverse(a):a(c);return c},remove:function(a){var b=this.range.startContainer==this._current,c=this.range.endContainer==this._current;if(i(this._current)&&(b||c)){var d=b?this.range.startOffset:0,e=c?this.range.endOffset:this._current.length,f=e-d;a&&(b||c)&&(this._current==a.startContainer&&d<=a.startOffset&&(a.startOffset-=f),this._current==a.endContainer&&e<=a.endOffset&&(a.endOffset-=f)),this._current.deleteData(d,f)}else{var j=this._current.parentNode;if(a&&(this.range.startContainer==j||this.range.endContainer==j)){var k=h(this._current);j==a.startContainer&&k<=a.startOffset&&(a.startOffset-=1),j==a.endContainer&&k<a.endOffset&&(a.endOffset-=1)}g.remove(this._current)}},hasPartialSubtree:function(){return!i(this._current)&&(g.isAncestorOrSelf(this._current,this.range.startContainer)||g.isAncestorOrSelf(this._current,this.range.endContainer))},getSubtreeIterator:function(){var a=this.range.cloneRange();a.selectNodeContents(this._current),g.isAncestorOrSelf(this._current,this.range.startContainer)&&a.setStart(this.range.startContainer,this.range.startOffset),g.isAncestorOrSelf(this._current,this.range.endContainer)&&a.setEnd(this.range.endContainer,this.range.endOffset);return new v(a)}}),w=d.extend({init:function(a){this.ownerDocument=a,this.rangeCount=1},addRange:function(a){var b=this.ownerDocument.body.createTextRange();x(b,a,!1),x(b,a,!0),b.select()},removeAllRanges:function(){this.ownerDocument.selection.empty()},getRangeAt:function(){var a,b=new r(this.ownerDocument),c=this.ownerDocument.selection,d;try{a=c.createRange(),d=a.item?a.item(0):a.parentElement();if(d.ownerDocument!=this.ownerDocument)return b}catch(e){return b}if(c.type=="Control")b.selectNode(a.item(0));else{y(a,b,!0),y(a,b,!1),b.startContainer.nodeType==9&&b.setStart(b.endContainer,b.startOffset),b.endContainer.nodeType==9&&b.setEnd(b.startContainer,b.endOffset),a.compareEndPoints("StartToEnd",a)==0&&b.collapse(!1);var f=b.startContainer,g=b.endContainer,j=this.ownerDocument.body;if(!b.collapsed&&b.startOffset==0&&b.endOffset==k(b.endContainer)&&(f!=g||!i(f)||f.parentNode!=j)){var l=!1,m=!1;while(h(f)==0&&f==f.parentNode.firstChild&&f!=j)f=f.parentNode,l=!0;while(h(g)==k(g.parentNode)-1&&g==g.parentNode.lastChild&&g!=j)g=g.parentNode,m=!0;f==j&&g==j&&l&&m&&(b.setStart(f,0),b.setEnd(g,k(j)))}}return b}}),z=d.extend({init:function(a){this.enumerate=function(){function c(a){if(g.is(a,"img")||a.nodeType==3&&!g.isWhitespace(a))b.push(a);else{a=a.firstChild;while(a)c(a),a=a.nextSibling}}var b=[];(new v(a)).traverse(c);return b}}}),A=d.extend({init:function(a){var b=this;b.range=a,b.rootNode=D.documentFromRange(a),b.body=b.rootNode.body,b.html=b.body.innerHTML,b.startContainer=b.nodeToPath(a.startContainer),b.endContainer=b.nodeToPath(a.endContainer),b.startOffset=b.offset(a.startContainer,a.startOffset),b.endOffset=b.offset(a.endContainer,a.endOffset)},index:function(a){var b=0,c=a.nodeType;while(a=a.previousSibling){var d=a.nodeType;(d!=3||c!=d)&&b++,c=d}return b},offset:function(a,b){if(a.nodeType==3)while((a=a.previousSibling)&&a.nodeType==3)b+=a.nodeValue.length;return b},nodeToPath:function(a){var b=[];while(a!=this.rootNode)b.push(this.index(a)),a=a.parentNode;return b},toRangePoint:function(a,b,c,d){var e=this.rootNode,f=c.length,g=d;while(f--)e=e.childNodes[c[f]];while(e.nodeType==3&&e.nodeValue.length<g)g-=e.nodeValue.length,e=e.nextSibling;a[b?"setStart":"setEnd"](e,g)},toRange:function(){var a=this,b=a.range.cloneRange();a.toRangePoint(b,!0,a.startContainer,a.startOffset),a.toRangePoint(b,!1,a.endContainer,a.endOffset);return b}}),B=d.extend({init:function(){this.caret=null},addCaret:function(a){var b=this;b.caret=g.create(D.documentFromRange(a),"span",{className:"k-marker"}),a.insertNode(b.caret),a.selectNode(b.caret);return b.caret},removeCaret:function(b){var c=this,d=c.caret.previousSibling;startOffset=0,d&&(startOffset=i(d)?d.nodeValue.length:h(d));var e=c.caret.parentNode,f=d?h(d):0;g.remove(c.caret),l(e);var j=e.childNodes[f];if(i(j))b.setStart(j,startOffset);else if(j){var k=g.lastTextNode(j);k?b.setStart(k,k.nodeValue.length):b[d?"setStartAfter":"setStartBefore"](j)}else!a.browser.msie&&e.innerHTML==""&&(e.innerHTML='<br _moz_dirty="" />'),b.selectNodeContents(e);b.collapse(!0)},add:function(a,b){b&&a.collapsed&&(this.addCaret(a),a=D.expand(a));var c=a.cloneRange();c.collapse(!1),this.end=g.create(D.documentFromRange(a),"span",{className:"k-marker"}),c.insertNode(this.end),c=a.cloneRange(),c.collapse(!0),this.start=this.end.cloneNode(!0),c.insertNode(this.start),a.setStartBefore(this.start),a.setEndAfter(this.end),l(a.commonAncestorContainer);return a},remove:function(a){var b=this.start,c=this.end;l(a.commonAncestorContainer);while(!b.nextSibling&&b.parentNode)b=b.parentNode;while(!c.previousSibling&&c.parentNode)c=c.parentNode;var d=b.previousSibling&&b.previousSibling.nodeType==3&&b.nextSibling&&b.nextSibling.nodeType==3,e=c.previousSibling&&c.previousSibling.nodeType==3&&c.nextSibling&&c.nextSibling.nodeType==3;b=b.nextSibling,c=c.previousSibling;var f=!1,j=!1;b==this.end&&(j=!!this.start.previousSibling,b=c=this.start.previousSibling||this.end.nextSibling,f=!0),g.remove(this.start),g.remove(this.end);if(b==null||c==null)a.selectNodeContents(a.commonAncestorContainer),a.collapse(!0);else{var k=f?i(b)?b.nodeValue.length:b.childNodes.length:0,m=i(c)?c.nodeValue.length:c.childNodes.length;if(b.nodeType==3)while(b.previousSibling&&b.previousSibling.nodeType==3)b=b.previousSibling,k+=b.nodeValue.length;if(c.nodeType==3)while(c.previousSibling&&c.previousSibling.nodeType==3)c=c.previousSibling,m+=c.nodeValue.length;var n=h(b),o=b.parentNode,p=h(c),q=c.parentNode;for(var r=b;r.previousSibling;r=r.previousSibling)r.nodeType==3&&r.previousSibling.nodeType==3&&n--;for(var s=c;s.previousSibling;s=s.previousSibling)s.nodeType==3&&s.previousSibling.nodeType==3&&p--;l(o),b.nodeType==3&&(b=o.childNodes[n]),l(q),c.nodeType==3&&(c=q.childNodes[p]),f?(b.nodeType==3?a.setStart(b,k):a[j?"setStartAfter":"setStartBefore"](b),a.collapse(!0)):(b.nodeType==3?a.setStart(b,k):a.setStartBefore(b),c.nodeType==3?a.setEnd(c,m):a.setEndAfter(c)),this.caret&&this.removeCaret(a)}}}),C=/[\u0009-\u000d]|\u0020|\u00a0|\ufeff|\.|,|;|:|!|\(|\)|\?/,D={nodes:function(a){var b=D.textNodes(a);b.length||(a.selectNodeContents(a.commonAncestorContainer),b=D.textNodes(a),b.length||(b=g.significantChildNodes(a.commonAncestorContainer)));return b},textNodes:function(a){return(new z(a)).enumerate()},documentFromRange:function(a){var b=a.startContainer;return b.nodeType==9?b:b.ownerDocument},createRange:function(b){if(a.browser.msie&&a.browser.version<9)return new r(b);return b.createRange()},selectRange:function(a){var b=D.image(a);b&&(a.setStartAfter(b),a.setEndAfter(b));var c=q.selectionFromRange(a);c.removeAllRanges(),c.addRange(a)},split:function(a,b,c){function d(d){var e=a.cloneRange();e.collapse(d),e[d?"setStartBefore":"setEndAfter"](b);var f=e.extractContents();c&&(f=g.trim(f)),g[d?"insertBefore":"insertAfter"](f,b)}d(!0),d(!1)},getMarkers:function(a){var b=[];(new v(a)).traverse(function(a){a.className=="k-marker"&&b.push(a)});return b},image:function(a){var b=[];(new v(a)).traverse(function(a){g.is(a,"img")&&b.push(a)});if(b.length==1)return b[0]},expand:function(a){var b=a.cloneRange(),c=b.startContainer.childNodes[b.startOffset==0?0:b.startOffset-1],d=b.endContainer.childNodes[b.endOffset];if(!i(c)||!i(d))return b;var e=c.nodeValue,f=d.nodeValue;if(e==""||f=="")return b;var g=e.split("").reverse().join("").search(C),h=f.search(C);if(g==0||h==0)return b;h=h==-1?f.length:h,g=g==-1?0:e.length-g,b.setStart(c,g),b.setEnd(d,h);return b},isExpandable:function(a){var b=a.startContainer,c=D.documentFromRange(a);if(b==c||b==c.body)return!1;var d=a.cloneRange(),e=b.nodeValue;if(!e)return!1;var f=e.substring(0,d.startOffset),g=e.substring(d.startOffset),h=0,i=0;f!=""&&(h=f.split("").reverse().join("").search(C)),g!=""&&(i=g.search(C));return h!=0&&i!=0}};e(f,{SelectionUtils:q,W3CRange:r,RangeIterator:v,W3CSelection:w,RangeEnumerator:z,RestorePoint:A,Marker:B,RangeUtils:D})}(jQuery),function(a){var b=document,c=window.kendo,d=c.Class,e=c.ui.editor,f=e.EditorUtils,g=f.registerTool,h=e.Dom,i=e.RangeUtils,j=i.selectRange,k=e.Tool,l=e.ToolTemplate,m=e.RestorePoint,n=e.Marker,o=a.extend,p=d.extend({init:function(a){var b=this;b.options=a,b.restorePoint=new m(a.range),b.marker=new n,b.formatter=a.formatter},getRange:function(){return this.restorePoint.toRange()},lockRange:function(a){return this.marker.add(this.getRange(),a)},releaseRange:function(a){this.marker.remove(a),j(a)},undo:function(){var a=this.restorePoint;a.body.innerHTML=a.html,j(a.toRange())},redo:function(){this.exec()},exec:function(){var a=this,b=a.lockRange(!0);a.formatter.editor=a.editor,a.formatter.toggle(b),a.releaseRange(b)}}),q=d.extend({init:function(a,b){this.body=a.body,this.startRestorePoint=a,this.endRestorePoint=b},redo:function(){this.body.innerHTML=this.endRestorePoint.html,j(this.endRestorePoint.toRange())},undo:function(){this.body.innerHTML=this.startRestorePoint.html,j(this.startRestorePoint.toRange())}}),r=p.extend({init:function(a){p.fn.init.call(this,a),this.managesUndoRedo=!0},exec:function(){var a=this.editor,b=a.getRange(),c=new m(b);a.clipboard.paste(this.options.value||""),a.undoRedoStack.push(new q(c,new m(a.getRange()))),a.focus()}}),s=k.extend({initialize:function(a,b){var c=b.editor,d=c.options.localization.insertHtml;new e.SelectBox(a,{dataSource:c.options.insertHtml||[],dataTextField:"text",dataValueField:"value",change:function(a){k.exec(c,"insertHtml",this.value())},title:c.options.localization.insertHtml,highlightFirst:!1})},command:function(a){return new r(a)},update:function(a,b){var c=a.data("kendoSelectBox")||a.find("select").data("kendoSelectBox");c.close(),c.value(c.options.title)}}),t=d.extend({init:function(){this.stack=[],this.currentCommandIndex=-1},push:function(a){this.stack=this.stack.slice(0,this.currentCommandIndex+1),this.currentCommandIndex=this.stack.push(a)-1},undo:function(){this.canUndo()&&this.stack[this.currentCommandIndex--].undo()},redo:function(){this.canRedo()&&this.stack[++this.currentCommandIndex].redo()},canUndo:function(){return this.currentCommandIndex>=0},canRedo:function(){return this.currentCommandIndex!=this.stack.length-1}}),u=d.extend({init:function(a){this.editor=a},keydown:function(b){var c=this.editor,d=c.keyboard;isTypingKey=d.isTypingKey(b);if(isTypingKey&&!d.isTypingInProgress()){var e=c.getRange();this.startRestorePoint=new m(e),d.startTyping(a.proxy(function(){c.selectionRestorePoint=this.endRestorePoint=new m(c.getRange()),c.undoRedoStack.push(new q(this.startRestorePoint,this.endRestorePoint))},this));return!0}return!1},keyup:function(a){var b=this.editor.keyboard;if(b.isTypingInProgress()){b.endTyping();return!0}return!1}}),v=d.extend({init:function(a){this.editor=a,this.systemCommandIsInProgress=!1},createUndoCommand:function(){this.endRestorePoint=new m(this.editor.getRange()),this.editor.undoRedoStack.push(new q(this.startRestorePoint,this.endRestorePoint)),this.startRestorePoint=this.endRestorePoint},changed:function(){if(this.startRestorePoint)return this.startRestorePoint.html!=this.editor.body.innerHTML;return!1},keydown:function(a){var b=this.editor,c=b.keyboard;if(c.isModifierKey(a)){c.isTypingInProgress()&&c.endTyping(!0),this.startRestorePoint=new m(b.getRange());return!0}if(c.isSystem(a)){this.systemCommandIsInProgress=!0,this.changed()&&(this.systemCommandIsInProgress=!1,this.createUndoCommand());return!0}return!1},keyup:function(a){if(this.systemCommandIsInProgress&&this.changed()){this.systemCommandIsInProgress=!1,this.createUndoCommand(a);return!0}return!1}}),w=d.extend({init:function(a){this.handlers=a,this.typingInProgress=!1},isCharacter:function(a){return a>=48&&a<=90||a>=96&&a<=111||a>=186&&a<=192||a>=219&&a<=222},toolFromShortcut:function(a,b){var c=String.fromCharCode(b.keyCode);for(var d in a){var e=a[d].options||{};if((e.key==c||e.key==b.keyCode)&&!!e.ctrl==b.ctrlKey&&!!e.alt==b.altKey&&!!e.shift==b.shiftKey)return d}},isTypingKey:function(a){var b=a.keyCode;return this.isCharacter(b)&&!a.ctrlKey&&!a.altKey||b==32||b==13||b==8||b==46&&!a.shiftKey&&!a.ctrlKey&&!a.altKey},isModifierKey:function(a){var b=a.keyCode;return b==17&&!a.shiftKey&&!a.altKey||b==16&&!a.ctrlKey&&!a.altKey||b==18&&!a.ctrlKey&&!a.shiftKey},isSystem:function(a){return a.keyCode==46&&a.ctrlKey&&!a.altKey&&!a.shiftKey},startTyping:function(a){this.onEndTyping=a,this.typingInProgress=!0},stopTyping:function(){this.typingInProgress=!1,this.onEndTyping&&this.onEndTyping()},endTyping:function(b){var c=this;c.clearTimeout(),b?c.stopTyping():c.timeout=window.setTimeout(a.proxy(c.stopTyping,c),1e3)},isTypingInProgress:function(){return this.typingInProgress},clearTimeout:function(){window.clearTimeout(this.timeout)},notify:function(a,b){for(var c=0;c<this.handlers.length;c++)if(this.handlers[c][b](a))break},keydown:function(a){this.notify(a,"keydown")},keyup:function(a){this.notify(a,"keyup")}}),x=d.extend({init:function(a){this.editor=a,this.cleaners=[new y]},htmlToFragment:function(a){var b=this.editor,c=h.create(b.document,"div");c.innerHTML=a;var d=b.document.createDocumentFragment();while(c.firstChild)d.appendChild(c.firstChild);return d},isBlock:function(a){return/<(div|p|ul|ol|table|h[1-6])/i.test(a)},oncut:function(a){var b=this.editor,c=new m(b.getRange());setTimeout(function(){b.undoRedoStack.push(new q(c,new m(b.getRange())))})},onpaste:function(b){var c=this.editor,d=c.getRange(),f=new m(d),g=h.create(c.document,"div",{className:"k-paste-container",innerHTML:""});c.body.appendChild(g);if(c.body.createTextRange){b.preventDefault();var i=c.createRange();i.selectNodeContents(g),c.selectRange(i);var k=c.body.createTextRange();k.moveToElementText(g),a(c.body).unbind("paste"),k.execCommand("Paste"),a(c.body).bind("paste",arguments.callee)}else{var l=c.createRange();l.selectNodeContents(g),j(l)}setTimeout(function(){j(d),h.remove(g),g.lastChild&&h.is(g.lastChild,"br")&&h.remove(g.lastChild);var a={html:g.innerHTML};c.trigger("paste",a),c.clipboard.paste(a.html,!0),c.undoRedoStack.push(new q(f,new m(c.getRange()))),e.EditorUtils.select(c)})},splittableParent:function(a,b){if(a)return h.parentOfType(b,["p","ul","ol"])||b.parentNode;var c=b.parentNode,d=b.ownerDocument.body;if(h.isInline(c))while(c.parentNode!=d&&!h.isBlock(c.parentNode))c=c.parentNode;return c},paste:function(a,b){var c=this.editor,d,e;for(d=0,e=this.cleaners.length;d<e;d++)this.cleaners[d].applicable(a)&&(a=this.cleaners[d].clean(a));b&&(a=a.replace(/(<br>(\s| )*)+(<\/?(div|p|li|col|t))/ig,"$3"),a=a.replace(/<(a|span)[^>]*><\/\1>/ig,"")),a=a.replace(/^<li/i,"<ul><li").replace(/li>$/g,"li></ul>");var f=this.isBlock(a),g=c.getRange();g.deleteContents(),g.startContainer==c.document&&g.selectNodeContents(c.body);var k=new n,l=k.addCaret(g),m=this.splittableParent(f,l),o=!1;!/body|td/.test(h.name(m))&&(f||h.isInline(m))&&(g.selectNode(l),i.split(g,m,!0),o=!0);var p=this.htmlToFragment(a);if(p.firstChild&&p.firstChild.className==="k-paste-container"){var q=[];for(d=0,e=p.childNodes.length;d<e;d++)q.push(p.childNodes[d].innerHTML);p=this.htmlToFragment(q.join("<br />"))}g.insertNode(p),m=this.splittableParent(f,l);if(o){while(l.parentNode!=m)h.unwrap(l.parentNode);h.unwrap(l.parentNode)}h.normalize(g.commonAncestorContainer),l.style.display="inline",h.scrollTo(l),k.removeCaret(g),j(g)}}),y=d.extend({init:function(){this.replacements=[/<\?xml[^>]*>/gi,"",/<!--(.|\n)*?-->/g,"",/"/g,"'",/(?:<br> [\s\r\n]+|<br>)*(<\/?(h[1-6]|hr|p|div|table|tbody|thead|tfoot|th|tr|td|li|ol|ul|caption|address|pre|form|blockquote|dl|dt|dd|dir|fieldset)[^>]*>)(?:<br> [\s\r\n]+|<br>)*/g,"$1",/<br><br>/g,"<BR><BR>",/<br>/g," ",/<table([^>]*)>(\s| )+<t/gi,"<table$1><t",/<tr[^>]*>(\s| )*<\/tr>/gi,"",/<tbody[^>]*>(\s| )*<\/tbody>/gi,"",/<table[^>]*>(\s| )*<\/table>/gi,"",/<BR><BR>/g,"<br>",/^\s*( )+/gi,"",/( |<br[^>]*>)+\s*$/gi,"",/mso-[^;"]*;?/ig,"",/<(\/?)b(\s[^>]*)?>/ig,"<$1strong$2>",/<(\/?)i(\s[^>]*)?>/ig,"<$1em$2>",/<\/?(meta|link|style|o:|v:|x:)[^>]*>((?:.|\n)*?<\/(meta|link|style|o:|v:|x:)[^>]*>)?/ig,"",/style=(["|'])\s*\1/g,""]},applicable:function(a){return/class="?Mso|style="[^"]*mso-/i.test(a)},listType:function(a){if(/^[\u2022\u00b7\u00a7\u00d8o]\u00a0+/.test(a))return"ul";if(/^\s*\w+[\.\)]\u00a0{2,}/.test(a))return"ol"},lists:function(b){var c=h.create(document,"div",{innerHTML:b}),d=a(h.blockElements.join(","),c),e=-1,f,g={ul:{},ol:{}},i=c;for(var j=0;j<d.length;j++){var k=d[j],b=k.innerHTML.replace(/<\/?\w+[^>]*>/g,"").replace(/ /g," "),l=this.listType(b);if(!l||h.name(k)!="p"){k.innerHTML==""?h.remove(k):(g={ul:{},ol:{}},i=c,e=-1);continue}var m=parseFloat(k.style.marginLeft||0),n=g[l][m];if(m>e||!n)n=h.create(document,l),i==c?h.insertBefore(n,k):i.appendChild(n),g[l][m]=n;if(f!=l)for(var o in g)for(var p in g[o])a.contains(n,g[o][p])&&delete g[o][p];h.remove(k.firstChild),i=h.create(document,"li",{innerHTML:k.innerHTML}),n.appendChild(i),h.remove(k),e=m,f=l}return c.innerHTML},stripEmptyAnchors:function(a){return a.replace(/<a([^>]*)>\s*<\/a>/ig,function(a,b){if(!b||b.indexOf("href")<0)return"";return a})},clean:function(a){for(var b=0,c=this.replacements.length;b<c;b+=2)a=a.replace(this.replacements[b],this.replacements[b+1]);a=this.stripEmptyAnchors(a),a=this.lists(a),a=a.replace(/\s+class="?[^"\s>]*"?/ig,"");return a}});o(e,{Command:p,GenericCommand:q,InsertHtmlCommand:r,InsertHtmlTool:s,UndoRedoStack:t,TypingHandler:u,SystemHandler:v,Keyboard:w,Clipboard:x,MSWordFormatCleaner:y}),g("insertHtml",new s({template:new l({template:f.dropDownListTemplate,title:"Insert HTML",initialValue:"Insert HTML"})}))}(jQuery),function(a){function t(a){return a.collapsed&&!k.isExpandable(a)}var b=window.kendo,c=b.Class,d=b.ui.editor,e=b.ui.Editor.fn.options.formats,f=d.EditorUtils,g=d.Tool,h=d.ToolTemplate,i=d.FormatTool,j=d.Dom,k=d.RangeUtils,l=a.extend,m=d.EditorUtils.registerTool,n=d.EditorUtils.registerFormat,o="k-marker",p=c.extend({init:function(a){this.format=a},numberOfSiblings:function(a){var b=0,c=0,d=0,e=a.parentNode,f;for(f=e.firstChild;f;f=f.nextSibling)f!=a&&(f.className==o?d++:f.nodeType==3?b++:c++);return d>1&&e.firstChild.className==o&&e.lastChild.className==o?0:c+b},findSuitable:function(a,b){if(!b&&this.numberOfSiblings(a)>0)return null;return j.parentOfType(a,this.format[0].tags)},findFormat:function(a){var b=this.format,c=j.attrEquals,d,e,f,g,h;for(d=0,e=b.length;d<e;d++){f=a,g=b[d].tags,h=b[d].attr;if(f&&j.ofType(f,g)&&c(f,h))return f;while(f){f=j.parentOfType(f,g);if(f&&c(f,h))return f}}return null},isFormatted:function(a){var b,c;for(b=0,c=a.length;b<c;b++)if(this.findFormat(a[b]))return!0;return!1}}),q=c.extend({init:function(a,b){var c=this;c.finder=new p(a),c.attributes=l({},a[0].attr,b),c.tag=a[0].tags[0]},wrap:function(a){return j.wrap(a,j.create(a.ownerDocument,this.tag,this.attributes))},activate:function(a,b){var c=this;c.finder.isFormatted(b)?(c.split(a),c.remove(b)):c.apply(b)},toggle:function(a){var b=k.textNodes(a);b.length>0&&this.activate(a,b)},apply:function(a){var b=this,c=[],d,e,f,g;for(d=0,e=a.length;d<e;d++)f=a[d],g=b.finder.findSuitable(f),g?j.attr(g,b.attributes):g=b.wrap(f),c.push(g);b.consolidate(c)},remove:function(a){var b=this,c,d,e;for(c=0,d=a.length;c<d;c++)e=b.finder.findFormat(a[c]),e&&(b.attributes&&b.attributes.style?(j.unstyle(e,b.attributes.style),e.style.cssText||j.unwrap(e)):j.unwrap(e))},split:function(a){var b=k.textNodes(a),c=b.length,d,e;if(c>0)for(d=0;d<c;d++)e=this.finder.findFormat(b[d]),e&&k.split(a,e,!0)},consolidate:function(a){var b,c;while(a.length>1){b=a.pop(),c=a[a.length-1],b.previousSibling&&b.previousSibling.className==o&&c.appendChild(b.previousSibling);if(b.tagName==c.tagName&&b.previousSibling==c&&b.style.cssText==c.style.cssText){while(b.firstChild)c.appendChild(b.firstChild);j.remove(b)}}}}),r=p.extend({init:function(a,b){var c=this;c.format=a,c.greedyProperty=b,p.fn.init.call(c,a)},getInlineCssValue:function(b){var c=b.attributes,d=a.trim,e,f,g,h,i,k,l,m,n,o,p,q;if(!!c){for(e=0,f=c.length;e<f;e++){g=c[e],h=g.nodeName,i=g.nodeValue;if(g.specified&&h=="style"){k=d(i||b.style.cssText).split(";");for(m=0,n=k.length;m<n;m++){l=k[m];if(l.length){o=l.split(":"),p=d(o[0].toLowerCase()),q=d(o[1]);if(p!=this.greedyProperty)continue;return p.indexOf("color")>=0?j.toHex(q):q}}}}return}},getFormatInner:function(b){var c=a(j.isDataNode(b)?b.parentNode:b),d=c.parents().andSelf(),e,f,g;for(e=0,f=d.length;e<f;e++){g=this.greedyProperty=="className"?d[e].className:this.getInlineCssValue(d[e]);if(g)return g}return"inherit"},getFormat:function(a){var b=this.getFormatInner(a[0]),c,d;for(c=1,d=a.length;c<d;c++)if(b!=this.getFormatInner(a[c]))return"";return b},isFormatted:function(a){return this.getFormat(a)!==""}}),s=q.extend({init:function(a,b,c){var d=this;q.fn.init.call(d,a,b),d.greedyProperty=c,d.values=b,d.finder=new r(a,c)},activate:function(a,b){var c=this;c.split(a);if(c.greedyProperty){var d=c.greedyProperty.replace(/-([a-z])/,function(a,b){return b.toUpperCase()});c[c.values.style[d]=="inherit"?"remove":"apply"](b)}else c.apply(b)}}),u=i.extend({init:function(a){i.fn.init.call(this,l(a,{finder:new p(a.format),formatter:function(){return new q(a.format)}})),this.willDelayExecution=t}}),v=g.extend({init:function(c){var d=this;g.fn.init.call(d,c),d.options=c,d.type=a.browser.msie||b.support.touch?"kendoDropDownList":"kendoComboBox",d.format=[{tags:["span"]}],d.finder=new r(d.format,c.cssAttr)},command:function(a){var b=this.options;format=this.format,style={};return new d.FormatCommand(l(a,{formatter:function(){style[b.domAttr]=a.value;return new s(format,{style:style},b.cssAttr)}}))},willDelayExecution:t,update:function(a,b,c){var d=this,e=a.data(d.type),f=c.getPending(d.name),g=f&&f.params?f.params.value:d.finder.getFormat(b);e.close(),e.value(g)},initialize:function(a,b){var c=b.editor,d=this.options.name;a[this.type]({dataTextField:"Text",dataValueField:"Value",dataSource:c.options[d],change:function(a){g.exec(c,d,this.value())},highlightFirst:!1}),a.closest(".k-widget").removeClass("k-"+d).find("*").andSelf().attr("unselectable","on"),a.data(this.type).value("inherit")}}),w=g.extend({init:function(a){g.fn.init.call(this,a),this.options=a,this.format=[{tags:j.inlineElements}]},update:function(a){a.data("kendoColorPicker").close()},command:function(a){var b=this.options,c=this.format,e={};return new d.FormatCommand(l(a,{formatter:function(){e[b.domAttr]=a.value;return new s(c,{style:e},b.cssAttr)}}))},willDelayExecution:t,initialize:function(a,b){var c=b.editor,e=this.name;new d.ColorPicker(a,{value:"#000000",change:function(a){g.exec(c,e,a.value)}})}}),x=g.extend({init:function(a){var b=this;g.fn.init.call(b,a),b.format=[{tags:["span"]}],b.finder=new r(b.format,"className")},command:function(a){return new d.FormatCommand(l(a,{formatter:function(){return new s(this.format,{className:a.value})}}))},update:function(a,b){var c=a.data("kendoDropDownList");c.close(),c.value(this.finder.getFormat(b))},initiliaze:function(a,b){var c=b.editor;a.kendoDropDownList({data:c.style,title:c.options.localization.style,itemCreate:function(a){var b=j.inlineStyle(c.document,"span",{className:a.dataItem.Value});a.html='<span unselectable="on" style="display:block;'+b+'">'+a.html+"</span>"},change:function(a){g.exec(c,"style",a.value)}})}});l(d,{InlineFormatFinder:p,InlineFormatter:q,GreedyInlineFormatFinder:r,GreedyInlineFormatter:s,InlineFormatTool:u,FontTool:v,ColorTool:w,StyleTool:x}),m("style",new d.StyleTool({template:new h({template:f.dropDownListTemplate,title:"Indent",initialValue:"Styles"})})),n("bold",[{tags:["strong"]},{tags:["span"],attr:{style:{fontWeight:"bold"}}}]),m("bold",new u({key:"B",ctrl:!0,format:e.bold,template:new h({template:f.buttonTemplate,title:"Bold"})})),n("italic",[{tags:["em"]},{tags:["span"],attr:{style:{fontStyle:"italic"}}}]),m("italic",new u({key:"I",ctrl:!0,format:e.italic,template:new h({template:f.buttonTemplate,title:"Italic"})})),n("underline",[{tags:["span"],attr:{style:{textDecoration:"underline"}}}]),m("underline",new u({key:"U",ctrl:!0,format:e.underline,template:new h({template:f.buttonTemplate,title:"Underline"})})),n("strikethrough",[{tags:["del"]},{tags:["span"],attr:{style:{textDecoration:"line-through"}}}]),m("strikethrough",new u({format:e.strikethrough,template:new h({template:f.buttonTemplate,title:"Strikethrough"})})),n("superscript",[{tags:["sup"]}]),m("superscript",new u({format:e.superscript,template:new h({template:f.buttonTemplate,title:"Superscript"})})),n("subscript",[{tags:["sub"]}]),m("subscript",new u({format:e.subscript,template:new h({template:f.buttonTemplate,title:"Subscript"})})),m("foreColor",new w({cssAttr:"color",domAttr:"color",name:"foreColor",template:new h({template:f.colorPickerTemplate,title:"Color"})})),m("backColor",new w({cssAttr:"background-color",domAttr:"backgroundColor",name:"backColor",template:new h({template:f.colorPickerTemplate,title:"Background Color"})})),m("fontName",new v({cssAttr:"font-family",domAttr:"fontFamily",name:"fontName",template:new h({template:f.comboBoxTemplate,title:"Font Name",initialValue:"(inherited font)"})})),m("fontSize",new v({cssAttr:"font-size",domAttr:"fontSize",name:"fontSize",template:new h({template:f.comboBoxTemplate,title:"Font Size",initialValue:"(inherited size)"})}))}(jQuery),function(a){var b=window.kendo,c=b.Class,d=a.extend,e=b.ui.editor,f=b.ui.Editor.fn.options.formats,g=e.Dom,h=e.Command,i=e.Tool,j=e.ToolTemplate,k=e.FormatTool,l=e.EditorUtils,m=l.registerTool,n=l.registerFormat,o=e.RangeUtils,p=c.extend({init:function(a){this.format=a},contains:function(a,b){var c,d,e;for(c=0,d=b.length;c<d;c++){e=b[c];if(e==null||!g.isAncestorOrSelf(a,e))return!1}return!0},findSuitable:function(b){var c=this.format,d=[],e,f,h;for(e=0,f=b.length;e<f;e++){h=g.ofType(b[e],c[0].tags)?b[e]:g.parentOfType(b[e],c[0].tags);if(!h)return[];a.inArray(h,d)<0&&d.push(h)}for(e=0,f=d.length;e<f;e++)if(this.contains(d[e],d))return[d[e]];return d},findFormat:function(a){var b=this.format,c,d,e,f,h;for(c=0,d=b.length;c<d;c++){e=a,f=b[c].tags,h=b[c].attr;while(e){if(g.ofType(e,f)&&g.attrEquals(e,h))return e;e=e.parentNode}}return null},getFormat:function(b){var c=a.proxy(function(a){return this.findFormat(g.isDataNode(a)?a.parentNode:a)},this),d=c(b[0]),e;if(!d)return"";for(e=1,len=b.length;e<len;e++)if(d!=c(b[e]))return"";return d.nodeName.toLowerCase()},isFormatted:function(a){for(var b=0,c=a.length;b<c;b++)if(!this.findFormat(a[b]))return!1;return!0}}),q=c.extend({init:function(a,b){this.format=a,this.values=b,this.finder=new p(a)},wrap:function(a,b,c){var d=c.length==1?g.blockParentOrBody(c[0]):g.commonAncestor.apply(null,c);g.isInline(d)&&(d=g.blockParentOrBody(d));var e=g.significantChildNodes(d),f=g.findNodeIndex(e[0]),h=g.create(d.ownerDocument,a,b),i,j;for(i=0;i<e.length;i++){j=e[i];if(g.isBlock(j)){g.attr(j,b),h.childNodes.length&&(g.insertBefore(h,j),h=h.cloneNode(!1)),f=g.findNodeIndex(j)+1;continue}h.appendChild(j)}h.firstChild&&g.insertAt(d,h,f)},apply:function(a){var b=this,c=g.is(a[0],"img")?[a[0]]:b.finder.findSuitable(a),e=c.length?l.formatByName(g.name(c[0]),b.format):b.format[0],f=e.tags[0],h=d({},e.attr,b.values),i,j;if(c.length)for(i=0,j=c.length;i<j;i++)g.attr(c[i],h);else b.wrap(f,h,a)},remove:function(a){var b,c,d,e;for(b=0,c=a.length;b<c;b++)d=this.finder.findFormat(a[b]),d&&(g.ofType(d,["p","img","li"])?(e=l.formatByName(g.name(d),this.format),e.attr.style&&g.unstyle(d,e.attr.style),e.attr.className&&g.removeClass(d,e.attr.className)):g.unwrap(d))},toggle:function(a){var b=this,c=o.nodes(a);b.finder.isFormatted(c)?b.remove(c):b.apply(c)}}),r=c.extend({init:function(a,b){var c=this;c.format=a,c.values=b,c.finder=new p(a)},apply:function(a){var b=this.format,c=g.blockParents(a),d=b[0].tags[0],f,h,i,j,k;if(c.length)for(f=0,h=c.length;f<h;f++)g.is(c[f],"li")?(i=c[f].parentNode,j=new e.ListFormatter(i.nodeName.toLowerCase(),d),k=this.editor.createRange(),k.selectNode(c[f]),j.toggle(k)):g.changeTag(c[f],d);else(new q(b,this.values)).apply(a)},toggle:function(a){var b=o.textNodes(a);b.length||(a.selectNodeContents(a.commonAncestorContainer),b=o.textNodes(a),b.length||(b=g.significantChildNodes(a.commonAncestorContainer))),this.apply(b)}}),s=h.extend({init:function(a){a.formatter=a.formatter(),h.fn.init.call(this,a)}}),t=k.extend({init:function(a){k.fn.init.call(this,d(a,{finder:new p(a.format),formatter:function(){return new q(a.format)}}))}}),u=i.extend({init:function(a){i.fn.init.call(this,a),this.finder=new p([{tags:g.blockElements}])},command:function(a){return new s(d(a,{formatter:function(){return new r([{tags:[a.value]}],{})}}))},update:function(a,b){var c;a.is("select")?c=a.data("kendoSelectBox"):c=a.find("select").data("kendoSelectBox"),c.close(),c.value(this.finder.getFormat(b))},initialize:function(a,b){var c=b.editor,d="formatBlock";new e.SelectBox(a,{dataTextField:"Text",dataValueField:"Value",dataSource:c.options.formatBlock,title:c.options.localization.formatBlock,change:function(a){i.exec(c,d,this.value())},highlightFirst:!1}),a.closest(".k-widget").removeClass("k-"+d).find("*").andSelf().attr("unselectable","on")}});d(e,{BlockFormatFinder:p,BlockFormatter:q,GreedyBlockFormatter:r,FormatCommand:s,BlockFormatTool:t,FormatBlockTool:u}),m("formatBlock",new u({template:new j({template:l.dropDownListTemplate,title:"Format Block",initialValue:"Select Block Type"})})),n("justifyLeft",[{tags:g.blockElements,attr:{style:{textAlign:"left"}}},{tags:["img"],attr:{style:{"float":"left"}}}]),m("justifyLeft",new t({format:f.justifyLeft,template:new j({template:l.buttonTemplate,title:"Justify Left"})})),n("justifyCenter",[{tags:g.blockElements,attr:{style:{textAlign:"center"}}},{tags:["img"],attr:{style:{display:"block",marginLeft:"auto",marginRight:"auto"}}}]),m("justifyCenter",new t({format:f.justifyCenter,template:new j({template:l.buttonTemplate,title:"Justify Center"})})),n("justifyRight",[{tags:g.blockElements,attr:{style:{textAlign:"right"}}},{tags:["img"],attr:{style:{"float":"right"}}}]),m("justifyRight",new t({format:f.justifyRight,template:new j({template:l.buttonTemplate,title:"Justify Right"})})),n("justifyFull",[{tags:g.blockElements,attr:{style:{textAlign:"justify"}}}]),m("justifyFull",new t({format:f.justifyFull,template:new j({template:l.buttonTemplate,title:"Justify Full"})}))}(jQuery),function(a){var b=window.kendo,c=b.Class,d=a.extend,e=b.ui.editor,f=e.Dom,g=e.Command,h=e.Tool,i=e.BlockFormatter,j=f.normalize,k=e.RangeUtils,l=e.EditorUtils.registerTool,m=g.extend({init:function(a){this.options=a,g.fn.init.call(this,a)},exec:function(){var b=this.getRange(),c=k.documentFromRange(b),d,e,g,h=a.browser.msie?"":'<br _moz_dirty="" />',l,m,n,o,p,q="p,h1,h2,h3,h4,h5,h6".split(","),r=f.parentOfType(b.startContainer,q),s=f.parentOfType(b.endContainer,q),t=r&&!s||!r&&s;b.deleteContents(),m=f.create(c,"a"),b.insertNode(m),j(m.parentNode),n=f.parentOfType(m,["li"]),o=f.parentOfType(m,"h1,h2,h3,h4,h5,h6".split(",")),n?(p=b.cloneRange(),p.selectNode(n),k.textNodes(p).length==0&&(l=f.create(c,"p"),n.nextSibling&&k.split(p,n.parentNode),f.insertAfter(l,n.parentNode),f.remove(n.parentNode.childNodes.length==1?n.parentNode:n),l.innerHTML=h,g=l)):o&&!m.nextSibling&&(l=f.create(c,"p"),f.insertAfter(l,o),l.innerHTML=h,f.remove(m),g=l);if(!g){!n&&!o&&(new i([{tags:["p"]}])).apply([m]),b.selectNode(m),d=f.parentOfType(m,[n?"li":o?f.name(o):"p"]),k.split(b,d,t),e=d.previousSibling,f.is(e,"li")&&e.firstChild&&!f.is(e.firstChild,"br")&&(e=e.firstChild),g=d.nextSibling,f.is(g,"li")&&g.firstChild&&!f.is(g.firstChild,"br")&&(g=g.firstChild),f.remove(d);function u(a){a.firstChild&&f.is(a.firstChild,"br")&&f.remove(a.firstChild),f.isDataNode(a)&&a.nodeValue==""&&(a=a.parentNode);if(a&&!f.is(a,"img")){while(a.firstChild&&a.firstChild.nodeType==1)a=a.firstChild;a.innerHTML==""&&(a.innerHTML=h)}}u(e),u(g),j(e)}j(g),f.is(g,"img")?b.setStartBefore(g):b.selectNodeContents(g),b.collapse(!0),f.scrollTo(g),k.selectRange(b)}}),n=g.extend({init:function(a){this.options=a,g.fn.init.call(this,a)},exec:function(){var b=this.getRange();b.deleteContents();var c=f.create(k.documentFromRange(b),"br");b.insertNode(c),j(c.parentNode);if(!a.browser.msie&&(!c.nextSibling||f.isWhitespace(c.nextSibling))){var d=c.cloneNode(!0);d.setAttribute("_moz_dirty",""),f.insertAfter(d,c)}b.setStartAfter(c),b.collapse(!0),k.selectRange(b)}});d(e,{ParagraphCommand:m,NewLineCommand:n}),l("insertLineBreak",new h({key:13,shift:!0,command:n})),l("insertParagraph",new h({key:13,command:m}))}(jQuery),function(a){var b=window.kendo,c=b.Class,d=a.extend,e=b.ui.editor,f=e.Dom,g=e.RangeUtils,h=e.EditorUtils,i=e.Command,j=e.ToolTemplate,k=e.FormatTool,l=e.BlockFormatFinder,m=g.textNodes,n=e.EditorUtils.registerTool,o=l.extend({init:function(a){this.tag=a;var b=this.tags=[a=="ul"?"ol":"ul",a];l.fn.init.call(this,[{tags:b}])},isFormatted:function(a){var b=[],c;for(var d=0;d<a.length;d++)(c=this.findFormat(a[d]))&&f.name(c)==this.tag&&b.push(c);if(b.length<1)return!1;if(b.length!=a.length)return!1;for(d=0;d<b.length;d++)if(b[d]!=c)return!1;return!0},findSuitable:function(a){var b=f.parentOfType(a[0],this.tags);if(b&&f.name(b)==this.tag)return b;return null}}),p=c.extend({init:function(a,b){var c=this;c.finder=new o(a),c.tag=a,c.unwrapTag=b},wrap:function(a,b){var c=f.create(a.ownerDocument,"li");for(var d=0;d<b.length;d++){var e=b[d];if(f.is(e,"li")){a.appendChild(e);continue}if(f.is(e,"ul")||f.is(e,"ol")){while(e.firstChild)a.appendChild(e.firstChild);continue}if(f.is(e,"td")){while(e.firstChild)c.appendChild(e.firstChild);a.appendChild(c),e.appendChild(a),a=a.cloneNode(!1),c=c.cloneNode(!1);continue}c.appendChild(e),f.isBlock(e)&&(a.appendChild(c),f.unwrap(e),c=c.cloneNode(!1))}c.firstChild&&a.appendChild(c)},containsAny:function(a,b){for(var c=0;c<b.length;c++)if(f.isAncestorOrSelf(a,b[c]))return!0;return!1},suitable:function(a,b){if(a.className=="k-marker"){var c=a.nextSibling;if(c&&f.isBlock(c))return!1;c=a.previousSibling;if(c&&f.isBlock(c))return!1}return this.containsAny(a,b)||f.isInline(a)||a.nodeType==3},split:function(b){var c=m(b);if(c.length){var d=f.parentOfType(c[0],["li"]),e=f.parentOfType(c[c.length-1],["li"]);b.setStartBefore(d),b.setEndAfter(e);for(var h=0,i=c.length;h<i;h++){var j=this.finder.findFormat(c[h]);if(j){var k=a(j).parents("ul,ol");k[0]?g.split(b,k.last()[0],!0):g.split(b,j,!0)}}}},apply:function(b){var c=this.tag,d=b.length==1?f.parentOfType(b[0],["ul","ol"]):f.commonAncestor.apply(null,b);d||(d=f.parentOfType(b[0],["td"])||b[0].ownerDocument.body),f.isInline(d)&&(d=f.blockParentOrBody(d));var e=[],g=this.finder.findSuitable(b);g||(g=(new o(c=="ul"?"ol":"ul")).findSuitable(b));var h=f.significantChildNodes(d);h.length||(h=b),/table|tbody/.test(f.name(d))&&(h=a.map(b,function(a){return f.parentOfType(a,["td"])}));for(var i=0;i<h.length;i++){var j=h[i],k=f.name(j);this.suitable(j,b)&&(!g||!f.isAncestorOrSelf(g,j))&&(!g||k!="ul"&&k!="ol"?e.push(j):(a.each(j.childNodes,function(){e.push(this)}),f.remove(j)))}e.length==h.length&&d!=b[0].ownerDocument.body&&!/table|tbody|tr|td/.test(f.name(d))&&(e=[d]),g||(g=f.create(d.ownerDocument,c),f.insertBefore(g,e[0])),this.wrap(g,e),f.is(g,c)||f.changeTag(g,c);var l=g.previousSibling;while(l&&(l.className=="k-marker"||l.nodeType==3&&f.isWhitespace(l)))l=l.previousSibling;if(l&&f.name(l)==c){while(g.firstChild)l.appendChild(g.firstChild);f.remove(g),g=l}var m=g.nextSibling;while(m&&(m.className=="k-marker"||m.nodeType==3&&f.isWhitespace(m)))m=m.nextSibling;if(m&&f.name(m)==c){while(g.lastChild)m.insertBefore(g.lastChild,m.firstChild);f.remove(g)}},unwrap:function(b){var c=b.ownerDocument.createDocumentFragment(),d=this.unwrapTag,e,g,h,i;for(g=b.firstChild;g;g=g.nextSibling){h=f.create(b.ownerDocument,d||"p");while(g.firstChild)i=g.firstChild,f.isBlock(i)?(h.firstChild&&(c.appendChild(h),h=f.create(b.ownerDocument,d||"p")),c.appendChild(i)):h.appendChild(i);h.firstChild&&c.appendChild(h)}e=a(b).parents("ul,ol"),e[0]?(f.insertAfter(c,e.last()[0]),e.last().remove()):f.insertAfter(c,b),f.remove(b)},remove:function(a){var b;for(var c=0,d=a.length;c<d;c++)(b=this.finder.findFormat(a[c]))&&this.unwrap(b)},toggle:function(a){var b=this,c=m(a),d=a.commonAncestorContainer;if(!c.length){a.selectNodeContents(d),c=m(a);if(!c.length){var e=d.ownerDocument.createTextNode("");a.startContainer.appendChild(e),c=[e],a.selectNode(e.parentNode)}}b.finder.isFormatted(c)?(b.split(a),b.remove(c)):b.apply(c)}}),q=i.extend({init:function(a){a.formatter=new p(a.tag),i.fn.init.call(this,a)}}),r=k.extend({init:function(a){this.options=a,k.fn.init.call(this,d(a,{finder:new o(a.tag)}))},command:function(a){return new q(d(a,{tag:this.options.tag}))}});d(e,{ListFormatFinder:o,ListFormatter:p,ListCommand:q,ListTool:r}),n("insertUnorderedList",new r({tag:"ul",template:new j({template:h.buttonTemplate,title:"Remove Link"})})),n("insertOrderedList",new r({tag:"ol",template:new j({template:h.buttonTemplate,title:"Remove Link"})}))}(jQuery),function(a,b){var c=window.kendo,d=c.Class,e=a.extend,f=c.ui.editor,g=f.Dom,h=f.RangeUtils,i=f.EditorUtils,j=f.Command,k=f.Tool,l=f.ToolTemplate,m=f.InlineFormatter,n=f.InlineFormatFinder,o=h.textNodes,p=f.EditorUtils.registerTool,q=d.extend({findSuitable:function(a){return g.parentOfType(a,["a"])}}),r=d.extend({init:function(){this.finder=new q},apply:function(a,c){var d=o(a);if(c.innerHTML!=b){var e=h.getMarkers(a),f=h.documentFromRange(a);a.deleteContents();var i=g.create(f,"a",c);a.insertNode(i),e.length>1&&(g.insertAfter(e[e.length-1],i),g.insertAfter(e[1],i),g[d.length>0?"insertBefore":"insertAfter"](e[0],i))}else{var j=new m([{tags:["a"]}],c);j.finder=this.finder,j.apply(d)}}}),s=j.extend({init:function(a){a.formatter={toggle:function(a){(new m([{tags:["a"]}])).remove(o(a))}},this.options=a,j.fn.init.call(this,a)}}),t=j.extend({init:function(a){var b=this;b.options=a,j.fn.init.call(b,a),b.attributes=null,b.async=!0,b.formatter=new r},exec:function(){function j(a){a.preventDefault(),n.destroy(),g.windowFromDocument(h.documentFromRange(b)).focus(),f.releaseRange(b)}function i(c){var d=a("#k-editor-link-url",n.element).val();if(d&&d!="http://"){f.attributes={href:d};var g=a("#k-editor-link-title",n.element).val();g&&(f.attributes.title=g);var h=a("#k-editor-link-text",n.element).val();h!==e&&(f.attributes.innerHTML=h||d);var i=a("#k-editor-link-target",n.element).is(":checked");i&&(f.attributes.target="_blank"),f.formatter.apply(b,f.attributes)}j(c),f.change&&f.change()}var b=this.getRange(),c=b.collapsed;b=this.lockRange(!0);var d=o(b),e=null,f=this,k=d.length?f.formatter.finder.findSuitable(d[0]):null,l=d.length<=1||d.length==2&&c,m='<div class="k-editor-dialog"><ol><li class="k-form-text-row"><label for="k-editor-link-url">Web address</label><input type="text" class="k-input" id="k-editor-link-url"/></li>'+(l?'<li class="k-form-text-row"><label for="k-editor-link-text">Text</label><input type="text" class="k-input" id="k-editor-link-text"/></li>':"")+'<li class="k-form-text-row"><label for="k-editor-link-title">Tooltip</label><input type="text" class="k-input" id="k-editor-link-title"/></li>'+'<li class="k-form-checkbox-row"><input type="checkbox" id="k-editor-link-target"/><label for="k-editor-link-target">Open link in new window</label></li>'+"</ol>"+'<div class="k-button-wrapper">'+'<button class="k-dialog-insert k-button">Insert</button>'+" or "+'<a href="#" class="k-dialog-close k-link">Close</a>'+"</div>"+"</div>",n=a(m).appendTo(document.body).kendoWindow(a.extend({},this.editor.options.dialogOptions,{title:"Insert link",close:j})).hide().find(".k-dialog-insert").click(i).end().find(".k-dialog-close").click(j).end().find(".k-form-text-row input").keydown(function(a){a.keyCode==13?i(a):a.keyCode==27&&j(a)}).end().find("#k-editor-link-url").val(k?k.getAttribute("href",2):"http://").end().find("#k-editor-link-text").val(d.length>0?d.length==1?d[0].nodeValue:d[0].nodeValue+d[1].nodeValue:"").end().find("#k-editor-link-title").val(k?k.title:"").end().find("#k-editor-link-target").attr("checked",k?k.target=="_blank":!1).end().show().data("kendoWindow").center();l&&d.length>0&&(e=a("#k-editor-link-text",n.element).val()),a("#k-editor-link-url",n.element).focus().select()},redo:function(){var a=this,b=a.lockRange(!0);a.formatter.apply(b,a.attributes),a.releaseRange(b)}}),u=k.extend({init:function(b){this.options=b,this.finder=new n([{tags:["a"]}]),k.fn.init.call(this,a.extend(b,{command:s}))},initialize:function(a){a.attr("unselectable","on").addClass("k-state-disabled")},update:function(a,b){a.toggleClass("k-state-disabled",!this.finder.isFormatted(b)).removeClass("k-state-hover")}});e(c.ui.editor,{LinkFormatFinder:q,LinkFormatter:r,UnlinkCommand:s,LinkCommand:t,UnlinkTool:u}),p("createLink",new k({key:"K",ctrl:!0,command:t,template:new l({template:i.buttonTemplate,title:"Create Link"})})),p("unlink",new u({key:"K",ctrl:!0,shift:!0,template:new l({template:i.buttonTemplate,title:"Remove Link"})}))}(jQuery),function(a,b){var c=window.kendo,d=a.extend,e=c.ui.editor,f=e.EditorUtils,g=e.Dom,h=f.registerTool,i=e.ToolTemplate,j=e.RangeUtils,k=e.Command,l=c.keys,m="Insert Image",n="#k-editor-image-url",o="#k-editor-image-title",p=k.extend({init:function(a){var b=this;k.fn.init.call(b,a),b.async=!0,b.attributes={}},insertImage:function(a,b){var c=this.attributes;if(c.src&&c.src!="http://"){if(!a){a=g.create(j.documentFromRange(b),"img",c),a.onload=a.onerror=function(){a.removeAttribute("complete"),a.removeAttribute("width"),a.removeAttribute("height")},b.deleteContents(),b.insertNode(a),b.setStartAfter(a),b.setEndAfter(a),j.selectRange(b);return!0}g.attr(a,c)}return!1},redo:function(){var a=this,b=a.lockRange();a.insertImage(j.image(b),b)||a.releaseRange(b)},exec:function(){function s(){}function r(a){a.keyCode==l.ENTER?p(a):a.keyCode==l.ESC&&q(a)}function q(a){a.preventDefault(),k.destroy(),g.windowFromDocument(j.documentFromRange(e)).focus(),f||b.releaseRange(e)}function p(c){b.attributes={src:a(n,k.element).val(),alt:a(o,k.element).val()},f=b.insertImage(h,e),q(c),b.change&&b.change()}var b=this,c=b.insertImage,e=b.lockRange(),f=!1,h=j.image(e),i,k;i='<div class="k-editor-dialog"><ol><li class="k-form-text-row"><label for="k-editor-image-url">Web address</label><input type="text" class="k-input" id="k-editor-image-url"/></li><li class="k-form-text-row"><label for="k-editor-image-title">Tooltip</label><input type="text" class="k-input" id="k-editor-image-title"/></li></ol><div class="k-button-wrapper"><button class="k-dialog-insert k-button">Insert</button> or <a href="#" class="k-dialog-close k-link">Close</a></div></div>',k=a(i).appendTo(document.body).kendoWindow(d({},b.editor.options.dialogOptions,{title:m,close:q})).hide().find(".k-dialog-insert").click(p).end().find(".k-dialog-close").click(q).end().find(".k-form-text-row input").keydown(r).end().find(n).val(h?h.getAttribute("src",2):"http://").end().find(o).val(h?h.alt:"").end().show().data("kendoWindow").center(),a(n,k.element).focus().select()}});c.ui.editor.ImageCommand=p,h("insertImage",new e.Tool({command:p,template:new i({template:f.buttonTemplate,title:m})}))}(jQuery),function(a,b){var c=window.kendo,d=c.ui.Widget,e=c.ui.DropDownList,f=c.ui.editor,g=f.Dom,h="change",i="k-state-selected",j="."+i,k=".k-selected-color",l="unselectable",m="background-color",n=c.keys,o=c.template('<div class="k-colorpicker-popup"><ul class="k-reset"># for(var i = 0; i < colors.length; i++) { #<li class="k-item #= colors[i] == value ? "k-state-selected" : "" #"><div style="background-color:\\##= colors[i] #"></div></li># } #</ul></div>'),p=d.extend({init:function(b,c){var e=this;d.fn.init.call(e,b,c),b=e.element,c=e.options,e._value=c.value,e.popup=a(o({colors:c.colors,value:c.value.substring(1)})).kendoPopup({anchor:b,toggleTarget:b.find(".k-icon")}).delegate(".k-item","click",function(b){e.select(a(b.currentTarget).find("div").css(m))}).find("*").attr(l,"on").end().data("kendoPopup"),b.attr("tabIndex",0).keydown(function(a){e.keydown(a)}).focus(function(){b.css("outline","1px dotted #000")}).blur(function(){b.css("outline","")}).delegate(".k-tool-icon","click",function(){e.select()}).find("*").attr(l,"on"),e._value&&b.find(k).css(m,e._value)},options:{name:"ColorPicker",colors:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7".split(","),value:null},events:[h],select:function(a){var b=this;a?(a=g.toHex(a),b.trigger(h,{value:a})||(b.value(a),b.close())):b.trigger(h,{value:b._value})},open:function(){this.popup.open()},close:function(){this.popup.close()},toggle:function(){this.popup.toggle()},keydown:function(a){var b=this,c=b.popup.element,d=b.popup.visible(),e,f,g,h=!1,k=a.keyCode;k==n.DOWN?(d?(e=c.find(j),e[0]?f=e.next():f=c.find("li:first"),f[0]&&(e.removeClass(i),f.addClass(i))):b.open(),h=!0):k==n.UP?(d&&(e=c.find(j),g=e.prev(),g[0]&&(e.removeClass(i),g.addClass(i))),h=!0):k==n.TAB||k==n.RIGHT||k==n.LEFT?b.close():k==n.ENTER&&(c.find(j).click(),h=!0),h&&a.preventDefault()},value:function(a){var c=this;if(a===b)return c._value;a=g.toHex(a),c._value=a,c.element.find(k).css(m,a)}}),q=e.extend({init:function(a,b){var c=this;e.fn.init.call(c,a,b),c.value(c.options.title)},options:{name:"SelectBox"},value:function(a){var c=this,d=e.fn.value.call(c,a);if(a===b)return d;a!==e.fn.value.call(c)&&(c.text(c.options.title),c._current.removeClass("k-state-selected"),c.current(null),c._oldIndex=c.selectedIndex=-1)}});c.ui.editor.ColorPicker=p,c.ui.editor.SelectBox=q}(jQuery),function(a,b){function q(a,c){var d=g.name(a)!="td"?"marginLeft":"paddingLeft";if(c===b)return a.style[d]||0;c>0?a.style[d]=c+"px":(a.style[d]="",a.style.cssText==""&&a.removeAttribute("style"))}var c=window.kendo,d=c.Class,e=a.extend,f=c.ui.editor,g=f.Dom,h=f.EditorUtils,i=h.registerTool,j=f.Command,k=f.Tool,l=f.ToolTemplate,m=f.RangeUtils,n=g.blockElements,o=f.BlockFormatFinder,p=f.BlockFormatter,r=d.extend({init:function(){this.finder=new o([{tags:g.blockElements}])},apply:function(b){var c=this.finder.findSuitable(b),d=[],e,f,h,i,j;if(c.length){for(e=0,f=c.length;e<f;e++)g.is(c[e],"li")?a(c[e]).index()==0?d.push(c[e].parentNode):a.inArray(c[e].parentNode,d)<0&&d.push(c[e]):d.push(c[e]);while(d.length){h=d.shift();if(g.is(h,"li")){i=h.parentNode,j=a(h).prev("li");var k=j.find("ul,ol").last(),l=a(h).children("ul,ol")[0];if(l&&j[0])k[0]?(k.append(h),k.append(a(l).children()),g.remove(l)):(j.append(l),l.insertBefore(h,l.firstChild));else{l=j.children("ul,ol")[0],l||(l=g.create(h.ownerDocument,g.name(i)),j.append(l));while(h&&h.parentNode==i)l.appendChild(h),h=d.shift()}}else{var m=parseInt(q(h))+30;q(h,m);for(var o=0;o<d.length;o++)a.contains(h,d[o])&&d.splice(o,1)}}}else{var r=new p([{tags:n}],{style:{marginLeft:30}});r.apply(b)}},remove:function(b){var c=this.finder.findSuitable(b),d,e,f,g,h,i;for(e=0,f=c.length;e<f;e++){var j=a(c[e]);if(j.is("li")){g=j.parent(),h=g.parent();if(h.is("li,ul,ol")&&!q(g[0])){if(d&&a.contains(d,h[0]))continue;i=j.nextAll("li"),i.length&&a(g[0].cloneNode(!1)).appendTo(j).append(i),h.is("li")?j.insertAfter(h):j.appendTo(h),g.children("li").length||g.remove();continue}if(d==g[0])continue;d=g[0]}else d=c[e];var k=parseInt(q(d))-30;q(d,k)}}}),s=j.extend({init:function(a){a.formatter={toggle:function(a){(new r).apply(m.nodes(a))}},j.fn.init.call(this,a)}}),t=j.extend({init:function(a){a.formatter={toggle:function(a){(new r).remove(m.nodes(a))}},j.fn.init.call(this,a)}}),u=k.extend({init:function(a){k.fn.init.call(this,e(a,{command:t})),this.finder=new o([{tags:n}])},initialize:function(a){a.attr("unselectable","on").addClass("k-state-disabled")},update:function(b,c){var d=this.finder.findSuitable(c),e,f,h,i;for(h=0,i=d.length;h<i;h++){e=q(d[h]),e||(f=a(d[h]).parents("ul,ol").length,e=g.is(d[h],"li")&&(f>1||q(d[h].parentNode))||g.ofType(d[h],["ul","ol"])&&f>0);if(e){b.removeClass("k-state-disabled");return}}b.addClass("k-state-disabled").removeClass("k-state-hover")}});e(f,{IndentFormatter:r,IndentCommand:s,OutdentCommand:t,OutdentTool:u}),i("indent",new k({command:s,template:new l({template:h.buttonTemplate,title:"Indent"})})),i("outdent",new u({template:new l({template:h.buttonTemplate,title:"Outdent"})}))}(jQuery),function(a){var b=window.kendo,c=b.Class,d=a.extend,e=b.ui.editor,f=e.Dom,g=e.RangeUtils,h=e.Marker,i=c.extend({init:function(a){this.editor=a,this.formats=[]},apply:function(a){if(!!this.hasPending()){var b=new h;b.addCaret(a);var c=a.startContainer.childNodes[a.startOffset],e=c.previousSibling;e.nodeValue||(e=e.previousSibling),a.setStart(e,e.nodeValue.length-1),b.add(a);if(g.textNodes(a).length==0){b.remove(a),a.collapse(!0),this.editor.selectRange(a);return}var f=b.end.previousSibling.previousSibling,i,j=this.formats;for(var k=0;k<j.length;k++){i=j[k];var l=i.command(d({range:a},i.options.params));l.editor=this.editor,l.exec(),a.selectNode(f)}b.remove(a),f.parentNode&&(a.setStart(f,1),a.collapse(!0)),this.clear(),this.editor.selectRange(a)}},hasPending:function(){return this.formats.length>0},isPending:function(a){return!!this.getPending(a)},getPending:function(a){var b=this.formats;for(var c=0;c<b.length;c++)if(b[c].name==a)return b[c];return},toggle:function(a){var b=this.formats;for(var c=0;c<b.length;c++)if(b[c].name==a.name){b[c].params&&b[c].params.value!=a.params.value?b[c].params.value=a.params.value:b.splice(c,1);return}b.push(a)},clear:function(){this.formats=[]}});d(e,{PendingFormats:i})}(jQuery),function(a,b){function D(a,c){var d,e=c!==b;if(document.selection){a.focus();var d=document.selection.createRange();if(e)d.move("character",c),d.select();else{var f=a.createTextRange(),g=f.duplicate();f.moveToBookmark(d.getBookmark()),g.setEndPoint("EndToStart",f),c=g.text.length}}else a.selectionStart!==b&&(e?(a.focus(),a.setSelectionRange(c,c)):c=a.selectionStart);return c}function C(a,b){return'<span unselectable="on" class="k-link"><span unselectable="on" class="k-icon k-arrow-'+a+'" title="'+b+'">'+b+"</span></span>"}var c=window.kendo,d=c.keys,e=c.ui,f=e.Widget,g=c.parseFloat,h=c.support.touch,i="change",j="disabled",k="k-input",l="spin",m="touchend",n=h?"touchstart":"mousedown",o=h?"touchmove "+m:"mouseup mouseleave",p="k-hide-text",q="k-state-default",r="k-state-focused",s="k-state-hover",t="mouseenter mouseleave",u=".",v="k-state-selected",w="k-state-disabled",x=h?"number":"text",y=null,z=a.proxy,A={190:".",188:","},B=f.extend({init:function(a,d){var e=this,h=d&&d[l]!==b,i,j,l,m,n;f.fn.init.call(e,a,d),d=e.options,a=e.element.addClass(k).bind({keydown:z(e._keydown,e),paste:z(e._paste,e),blur:z(e._focusout,e)}),a.closest("form").bind("reset",function(){setTimeout(function(){e.value(a[0].value)})}),e._wrapper(),e._arrows(),e._input(),e._text.focus(z(e._click,e)),i=g(a.attr("min")),j=g(a.attr("max")),l=g(a.attr("step")),d.min===y&&i!==y&&(d.min=i),d.max===y&&j!==y&&(d.max=j),!h&&l!==y&&(d.step=l),n=d.format,n.slice(0,3)==="{0:"&&(d.format=n.slice(3,n.length-1)),m=d.value,e.value(m!==y?m:a.val()),e.enable(!a.is("[disabled]")),c.notify(e)},options:{name:"NumericTextBox",decimals:y,min:y,max:y,value:y,step:1,format:"n",placeholder:"",upArrowText:"Increase value",downArrowText:"Decrease value"},events:[i,l],enable:function(a){var b=this,c=b._text.add(b.element),d=b._inputWrapper.unbind(t),e=b._upArrow.unbind(n),f=b._downArrow.unbind(n);b._toggleText(!0),a===!1?(d.removeClass(q).addClass(w),c.attr(j,j)):(d.addClass(q).removeClass(w).bind(t,b._toggleHover),c.removeAttr(j),e.bind(n,function(a){a.preventDefault(),b._spin(1),b._upArrow.addClass(v)}),f.bind(n,function(a){a.preventDefault(),b._spin(-1),b._downArrow.addClass(v)}))},value:function(a){var c=this,d;if(a===b)return c._value;a=g(a),d=c._adjust(a);a===d&&(c._update(a),c._old=c._value)},_adjust:function(a){var b=this,c=b.options,d=c.min,e=c.max;d!==y&&a<d?a=d:e!==y&&a>e&&(a=e);return a},_arrows:function(){var b=this,d,e=b.options,f=b.element;d=f.siblings(".k-icon"),d[0]||(d=a(C("up",e.upArrowText)+C("down",e.downArrowText)).insertAfter(f),d.wrapAll('<span class="k-select"/>')),d.bind(o,function(a){(!h||c.eventTarget(a)!=a.currentTarget||a.type===m)&&clearTimeout(b._spinning),d.removeClass(v)}),b._upArrow=d.eq(0),b._downArrow=d.eq(1)},_blur:function(){var a=this;a._toggleText(!0),a._change(a.element.val())},_click:function(a){var b=this;clearTimeout(b._focusing),b._focusing=setTimeout(function(){var c=a.target,d=D(c),e=c.value.substring(0,d),f=b._format(b.options.format),g=f[","],h=new RegExp("\\"+g,"g"),i=new RegExp("([\\d\\"+g+"]+)(\\"+f[u]+")?(\\d+)?"),j=i.exec(e),k=0;j&&(k=j[0].replace(h,"").length,e.indexOf("(")!=-1&&b._value<0&&k++),b._focusin(),D(b.element[0],k)})},_change:function(a){var b=this;b._update(a),a=b._value,b._old!=a&&(b._old=a,b.trigger(i),b.element.trigger(i))},_focusin:function(){var a=this;a._toggleText(!1),a.element.focus(),a._inputWrapper.addClass(r)},_focusout:function(){var a=this;a._inputWrapper.removeClass(r),a._blur()},_format:function(a){var b=this,d=b.options,e=c.culture().numberFormat;a.indexOf("c")>-1?e=e.currency:a.indexOf("p")>-1&&(e=e.percent);return e},_input:function(){var b=this,c="k-formatted-value",d=b.element.show()[0],e=b.wrapper,f;f=e.find(u+c),f[0]||(f=a("<input />").insertBefore(d).addClass(c)),d.type=x,f[0].type=x,f[0].style.cssText=d.style.cssText,b._text=f.attr("readonly",!0).addClass(d.className)},_keydown:function(a){var b=this,c=a.keyCode;c==d.DOWN?b._step(-1):c==d.UP?b._step(1):c==d.ENTER&&b._change(b.element.val()),b._prevent(c)&&!a.ctrlKey&&a.preventDefault()},_paste:function(a){var b=this,c=a.target,d=c.value;setTimeout(function(){g(c.value)===y&&b._update(d)})},_prevent:function(a){var b=this,c=b.element[0],e=c.value,f=b.options,g=f.min,h=b._format(f.format),i=h[u],j=f.decimals,k=D(c),l=!0,m;j===y&&(j=h.decimals),a>16&&a<21||a>32&&a<37||a>47&&a<58||a>95&&a<106||a==45||a==46||a==d.LEFT||a==d.RIGHT||a==d.TAB||a==d.BACKSPACE||a==d.ENTER?l=!1:A[a]===i&&j>0&&e.indexOf(i)==-1?l=!1:!(g===y||g<0)||e.indexOf("-")!=-1||a!=189&&a!=109||k!=0?a==110&&j>0&&e.indexOf(i)==-1&&(m=e.substring(k),c.value=e.substring(0,k)+i+m):l=!1;return l},_spin:function(a,b){var c=this;b=b||500,clearTimeout(c._spinning),c._spinning=setTimeout(function(){c._spin(a,50)},b),c._step(a)},_step:function(a){var b=this,c=b.element,d=g(c.val())||0;document.activeElement!=c[0]&&b._focusin(),d+=b.options.step*g(a),b._update(b._adjust(d)),b.trigger(l)},_toggleHover:function(b){h||a(b.currentTarget).toggleClass(s,b.type==="mouseenter")},_toggleText:function(a){var b=this;a=!!a,b._text.toggle(a),b.element.toggle(!a)},_update:function(a){var b=this,d=b.options,e=d.format,f=d.decimals,h=b._format(e),i;f===y&&(f=h.decimals),a=g(a),i=a!==y,i&&(a=parseFloat(a.toFixed(f))),b._value=a=b._adjust(a),b._text.val(i?c.toString(a,e):d.placeholder),b.element.val(i?a.toString().replace(u,h[u]):"")},_wrapper:function(){var b=this,c=b.element,d;d=c.parents(".k-numerictextbox"),d.is("span.k-numerictextbox")||(d=c.hide().wrap('<span class="k-numeric-wrap k-state-default" />').parent(),d=d.wrap("<span/>").parent()),d[0].style.cssText=c[0].style.cssText,c[0].style.width="",b.wrapper=d.addClass("k-widget k-numerictextbox").show(),b._inputWrapper=a(d[0].firstChild)}});e.plugin(B)}(jQuery),function(a,b){function Q(b){b=a(b),b.filter(".k-first:not(:first-child)").removeClass(t),b.filter(".k-last:not(:last-child)").removeClass(p),b.filter(":first-child").addClass(t),b.filter(":last-child").addClass(p)}function P(b){b=a(b),b.find(".k-icon").remove(),b.filter(":has(.k-group)").children(".k-link:not(:has([class*=k-arrow]))").each(function(){var b=a(this),c=b.parent().parent();b.append("<span class='k-icon "+(c.hasClass(n+"-horizontal")?"k-arrow-down":"k-arrow-next")+"'/>")})}function O(b){b=a(b),b.children(l).addClass(u),b.children("a").addClass(o).children(l).addClass(u),b.filter(":not([disabled])").addClass(C),b.filter(".k-separator:empty").append(" "),b.filter("li[disabled]").addClass(D).removeAttr("disabled"),b.children("a:focus").parent().addClass("k-state-active"),b.children("."+o).length||b.contents().filter(function(){return!this.nodeName.match(k)&&(this.nodeType!=3||!!a.trim(this.nodeValue))}).wrapAll("<span class='"+o+"'/>"),P(b),Q(b)}function N(b,c){try{return a.contains(b,c)}catch(d){return!1}}function M(a,b){a=a.split(" ")[!b+0]||a;var d={origin:["bottom","left"],position:["top","left"]},e=/left|right/.test(a);e?(d.origin=["top",a],d.position[1]=c.directions[a].reverse):(d.origin[0]=a,d.position[0]=c.directions[a].reverse),d.origin=d.origin.join(" "),d.position=d.position.join(" ");return d}function L(a,b){a=a.split(" ")[!b+0]||a;return a.replace("top","up").replace("bottom","down")}var c=window.kendo,d=c.ui,e=c.support.touch,f=a.extend,g=a.proxy,h=a.each,i=c.template,j=d.Widget,k=/^(ul|a|div)$/i,l="img",m="open",n="k-menu",o="k-link",p="k-last",q="close",r=e?"touchend":"click",s="timer",t="k-first",u="k-image",v=":empty",w="select",x="zIndex",y="mouseenter",z="mouseleave",A="kendoPopup",B="slideIn:right",C="k-state-default",D="k-state-disabled",E=".k-group",F=".k-item",G=".k-item.k-state-disabled",H=".k-item:not(.k-state-disabled)",I=".k-item:not(.k-state-disabled) > .k-link",J={group:i("<ul class='#= groupCssClass(group) #'#= groupAttributes(group) #>#= renderItems(data) #</ul>"),itemWrapper:i("<#= tag(item) # class='#= textClass(item) #'#= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) ##= arrow(data) #</#= tag(item) #>"),item:i("<li class='#= wrapperCssClass(group, item) #'>#= itemWrapper(data) ## if (item.items) { ##= subGroup({ items: item.items, menu: menu, group: { expanded: item.expanded } }) ## } #</li>"),image:i("<img class='k-image' alt='' src='#= imageUrl #' />"),arrow:i("<span class='#= arrowClass(item, group) #'></span>"),sprite:i("<span class='k-sprite #= spriteCssClass #'></span>"),empty:i("")},K={wrapperCssClass:function(a,b){var c="k-item",d=b.index;b.enabled===!1?c+=" k-state-disabled":c+=" k-state-default",a.firstLevel&&d==0&&(c+=" k-first"),d==a.length-1&&(c+=" k-last");return c},textClass:function(a){return o},textAttributes:function(a){return a.url?" href='"+a.url+"'":""},arrowClass:function(a,b){var c="k-icon";b.horizontal?c+=" k-arrow-down":c+=" k-arrow-right";return c},text:function(a){return a.encoded===!1?a.text:c.htmlEncode(a.text)},tag:function(a){return a.url?"a":"span"},groupAttributes:function(a){return a.expanded!==!0?" style='display:none'":""},groupCssClass:function(a){return"k-group"}},R=j.extend({init:function(b,d){var f=this;j.fn.init.call(f,b,d),b=f.wrapper=f.element,d=f.options,d.dataSource&&f.element.empty().append(a(R.renderGroup({items:d.dataSource,group:{firstLevel:!0,horizontal:f.element.hasClass(n+"-horizontal"),expanded:!0},menu:{}})).children()),f._updateClasses(),d.animation===!1&&(d.animation={open:{show:!0,effects:{}},close:{hide:!0,effects:{}}}),f.nextItemZIndex=100,b.delegate(G,r,!1).delegate(H,r,g(f._click,f)),e?(d.openOnClick=!0,b.delegate(I,"touchstart touchend",f._toggleHover)):b.delegate(H,y,g(f._mouseenter,f)).delegate(H,z,g(f._mouseleave,f)).delegate(I,y+" "+z,f._toggleHover),a(document).click(g(f._documentClick,f)),f.clicked=!1,c.notify(f)},events:[m,q,w],options:{name:"Menu",animation:{open:{duration:200,show:!0},close:{duration:100}},orientation:"horizontal",direction:"default",openOnClick:!1,closeOnClick:!0,hoverDelay:100},enable:function(a,b){this._toggleDisabled(a,b!==!1);return this},disable:function(a){this._toggleDisabled(a,!1);return this},append:function(a,b){b=this.element.find(b);var c=this._insert(a,b,b.length?b.find("> .k-group, .k-animation-container > .k-group"):null);h(c.items,function(){c.group.append(this),Q(this)}),P(b),Q(c.group.find(".k-first, .k-last"));return this},insertBefore:function(a,b){b=this.element.find(b);var c=this._insert(a,b,b.parent());h(c.items,function(){b.before(this),Q(this)}),Q(b);return this},insertAfter:function(a,b){b=this.element.find(b);var c=this._insert(a,b,b.parent());h(c.items,function(){b.after(this),Q(this)}),Q(b);return this},_insert:function(b,c,d){var e=this;if(!c||!c.length)d=e.element;var g=a.isPlainObject(b),h,i={firstLevel:d.hasClass(n),horizontal:d.hasClass(n+"-horizontal"),expanded:!0,length:d.children().length};c&&!d.length&&(d=a(R.renderGroup({group:i})).appendTo(c)),g||a.isArray(b)?h=a.map(g?[b]:b,function(b,c){return a(R.renderItem({group:i,item:f(b,{index:c})}))}):(h=a(b),O(h));return{items:h,group:d}},remove:function(a){a=this.element.find(a);var b=this,c=a.parentsUntil(b.element,F),d=a.parent("ul");a.remove();if(d&&!d.children(F).length){var e=d.parent(".k-animation-container");e.length?e.remove():d.remove()}c.length&&(c=c.eq(0),P(c),Q(c));return b},open:function(c){var d=this,e=d.options,g=e.orientation=="horizontal",h=e.direction;c=d.element.find(c),/^(top|bottom|default)$/.test(h)&&(h=g?(h+" right").replace("default","bottom"):"right"),c.each(function(){var c=a(this);clearTimeout(c.data(s)),c.data(s,setTimeout(function(){var a=c.find(".k-group:first:hidden"),i;if(a[0]&&d.trigger(m,{item:c[0]})===!1){c.data(x,c.css(x)),c.css(x,d.nextItemZIndex++),i=a.data(A);var j=c.parent().hasClass(n),k=j&&g,l=M(h,j),o=e.animation.open.effects,p=o!==b?o:"slideIn:"+L(h,j);i?(i=a.data(A),i.options.origin=l.origin,i.options.position=l.position,i.options.animation.open.effects=p):i=a.kendoPopup({origin:l.origin,position:l.position,collision:k?"fit":"fit flip",anchor:c,appendTo:c,animation:{open:f(!0,{effects:p},e.animation.open),close:e.animation.close}}).data(A),i.open()}},d.options.hoverDelay))});return d},close:function(b){var c=this;b=c.element.find(b),b.each(function(){var b=a(this);clearTimeout(b.data(s)),b.data(s,setTimeout(function(){var a=b.find(".k-group:first:visible"),d;a[0]&&c.trigger(q,{item:b[0]})===!1&&(b.css(x,b.data(x)),b.removeData(x),d=a.data(A),d.close())},c.options.hoverDelay))});return c},_toggleDisabled:function(b,c){b=this.element.find(b),b.each(function(){a(this).toggleClass(C,c).toggleClass(D,!c)})},_toggleHover:function(b){var d=a(c.eventTarget(b)).closest(F);d.parents("li."+D).length||d.toggleClass("k-state-hover",b.type==y||b.type=="touchstart")},_updateClasses:function(){var a=this;a.element.addClass("k-widget k-reset k-header "+n).addClass(n+"-"+a.options.orientation);var b=a.element.find("li > ul").addClass("k-group").end().find("> li,.k-group > li").addClass("k-item");b.each(function(){O(this)})},_mouseenter:function(b){var c=this,d=a(b.currentTarget),e=d.children(".k-animation-container").length||d.children(E).length;(!c.options.openOnClick||c.clicked)&&!N(b.currentTarget,b.relatedTarget)&&e&&c.open(d),c.options.openOnClick&&c.clicked&&d.siblings().each(g(function(a,b){c.close(b)},c))},_mouseleave:function(b){var c=this,d=a(b.currentTarget),e=d.children(".k-animation-container").length||d.children(E).length;!c.options.openOnClick&&!N(b.currentTarget,b.relatedTarget)&&e&&c.close(d)},_click:function(b){var d=this,f,h=a(c.eventTarget(b)),i=h.closest("."+o),j=i.attr("href"),k=h.closest(F);if(k.hasClass(D))b.preventDefault();else{e&&k.siblings().each(g(function(a,b){d.close(b)},d)),b.handled||d.trigger(w,{item:k[0]}),b.handled=!0,d.options.closeOnClick&&!(j&&j.length>0)&&!k.children(E+",.k-animation-container").length&&d.close(i.parentsUntil(d.element,F));if((!k.parent().hasClass(n)||!d.options.openOnClick)&&!e)return;b.preventDefault(),d.clicked=!0,f=k.children(".k-animation-container, .k-group").is(":visible")?q:m,d[f](k)}},_documentClick:function(a){var b=this;N(b.element[0],a.target)||b.clicked&&(b.clicked=!1,b.close(b.element.find(".k-item>.k-animation-container:visible").parent()))}});f(R,{renderItem:function(a){a=f({menu:{},group:{}},a);var b=J.empty,c=a.item,d=a.menu;return J.item(f(a,{image:c.imageUrl?J.image:b,sprite:c.spriteCssClass?J.sprite:b,itemWrapper:J.itemWrapper,arrow:c.items?J.arrow:b,subGroup:R.renderGroup},K))},renderGroup:function(a){return J.group(f({renderItems:function(a){var b="",c=0,d=a.items,e=d?d.length:0,g=f({length:e},a.group);for(;c<e;c++)b+=R.renderItem(f(a,{group:g,item:f({index:c},d[c])}));return b}},a,K))}}),c.ui.plugin(R)}(jQuery),function(a,b){function p(a){var b=(a.model.fields||a.model)[a.field],d=o(b),e=b.validation,f,j=c.attr("type"),k=c.attr("bind"),l,m={name:a.field};for(f in e)l=e[f],i(f,n)>=0?m[j]=f:g(l)||(m[f]=h(l)?l.value||f:l),m[c.attr(f+"-msg")]=l.message;i(d,n)>=0&&(m[j]=d),m[k]=(d==="boolean"?"checked:":"value:")+a.field;return m}function o(b){return b.type||a.type(b)||"string"}var c=window.kendo,d=c.ui,e=d.Widget,f=a.extend,g=a.isFunction,h=a.isPlainObject,i=a.inArray,j=c.data.ModelViewBinder,k=d.Validator,l='<div class="k-widget k-tooltip k-tooltip-validation" style="margin:0.5em"><span class="k-icon k-warning"> </span>${message}<div class="k-callout k-callout-n"></div></div>',m="change",n=["url","email","number","date","boolean"],q={number:function(b,d){var e=p(d);a('<input type="text"/>').attr(e).appendTo(b).kendoNumericTextBox({format:d.format}),a("<span "+c.attr("for")+'="'+d.field+'" class="k-invalid-msg"/>').hide().appendTo(b)},date:function(b,d){var e=p(d);e[c.attr("format")]=d.format,a('<input type="text"/>').attr(e).appendTo(b).kendoDatePicker({format:d.format}),a("<span "+c.attr("for")+'="'+d.field+'" class="k-invalid-msg"/>').hide().appendTo(b)},string:function(b,c){var d=p(c);a('<input type="text" class="k-input k-textbox"/>').attr(d).appendTo(b)},"boolean":function(b,c){var d=p(c);a('<input type="checkbox" />').attr(d).appendTo(b)}},r=e.extend({init:function(a,b){var c=this;e.fn.init.call(c,a,b),c.refresh()},events:[m],options:{name:"Editable",editors:q,clearContainer:!0,errorTemplate:l},editor:function(b,d){var e=this,g=e.options.editors,i=h(b),j=i?b.field:b,k=e.options.model||{},l=o(d),m=i&&b.editor,n=m?b.editor:g[l],p=e.element.find("[data-container-for="+j+"]");n=n?n:g.string,d&&(p=p.length?p:e.element,n(p,f(!0,{},i?b:{field:j},{model:k})),m&&p.find(":input:not(:button), select").each(function(){var b=c.attr("bind"),d=this.getAttribute(b)||"";d.indexOf("value:")===-1&&(d+=",value:"+j,a(this).attr(b,d))}))},_validate:function(b){var d=this,e=d.options.model,f=typeof b.value=="boolean",g,h={};h[b.field]=b.value,g=a(":input["+c.attr("bind")+'="'+(f?"checked:":"value:")+b.field+'"]',d.element),(!d.validatable.validateInput(g)||d.trigger(m,{values:h}))&&b.preventDefault()},end:function(){return this.validatable.validate()},distroy:function(){c.unbind(this.element),this.element.removeData("kendoValidator").removeData("kendoEditable")},refresh:function(){var d=this,e,f,i=d.options.fields||[],j=d.options.clearContainer?d.element.empty():d.element,k=d.options.model||{},l={};a.isArray(i)||(i=[i]);for(e=0,f=i.length;e<f;e++){var m=i[e],n=h(m),p=n?m.field:m,q=(k.fields||k)[p],r=o(q),s=q?q.validation||{}:{};for(var t in s)g(s[t])&&(l[t]=s[t]);d.editor(m,q)}c.bind(j,d.options.model),d.options.model.bind("set",a.proxy(d._validate,d)),d.validatable=j.kendoValidator({validateOnBlur:!1,errorTemplate:d.options.errorTemplate||b,rules:l}).data("kendoValidator"),j.find(":input:visible:first").focus()}});d.plugin(r)}(jQuery),function(a,b){function q(b){var c={},d,e,f,g,h,i,j,k,l;for(d=0,e=b.length;d<e;d++){g=b[d].name.split(/[\.\[\]]+/),g=a.grep(g,function(a){return a}),i=b[d].value,j=c,l=c;for(h=0;h<g.length-1;h++)f=g[h],isNaN(f)||(k=g[h-1],a.isArray(l[k])||(j=l[k]=[])),l=j,j=j[f]=j[f]||{};j[g[h]]=i}return c}function p(a,b){var c=a.data(e)||a.data(f)||a.data(g);c?c.value(b):a.is(":radio")?a.filter("[value="+b+"]").attr("checked","checked"):a.val(b)}function o(b,c){b.filters&&(b.filters=a.grep(b.filters,function(a){o(a,c);return a.filters?a.filters.length:a.field!=c}))}var c=window.kendo,d=c.ui,e="kendoDropDownList",f="kendoNumericTextBox",g="kendoDatePicker",h=a.proxy,i="kendoPopup",j="Is equal to",k="Is not equal to",l=d.Widget,m='<div><input type="hidden" name="filters[0].field" value="#=field#"/><input type="hidden" name="filters[0].operator" value="eq"/><div class="k-filter-help-text">#=messages.info#</div><label>#=messages.isTrue#<input type="radio" name="filters[0].value" value="true"/></label><label>#=messages.isFalse#<input type="radio" name="filters[0].value" value="false"/></label><button type="submit" class="k-button">#=messages.filter#</button><button type="reset" class="k-button">#=messages.clear#</button></div>',n='<div><input type="hidden" name="filters[0].field" value="#=field#"/>#if(extra){#<input type="hidden" name="filters[1].field" value="#=field#"/>#}#<div class="k-filter-help-text">#=messages.info#</div><select name="filters[0].operator">#for(var op in operators){#<option value="#=op#">#=operators[op]#</option>#}#</select><input name="filters[0].value" class="k-widget k-input k-autocomplete" type="text" data-#=ns#type="#=type#"/>#if(extra){#<select name="logic" class="k-filter-and"><option value="and">And</option><option value="or">Or</option></select><select name="filters[1].operator">#for(var op in operators){#<option value="#=op#">#=operators[op]#</option>#}#</select><input name="filters[1].value" class="k-widget k-input k-autocomplete" type="text" data-#=ns#type="#=type#"/>#}#<button type="submit" class="k-button">#=messages.filter#</button><button type="reset" class="k-button">#=messages.clear#</button></div>',r=l.extend({init:function(b,d){var j=this,k="string",o,p,q,r;l.fn.init.call(j,b,d),r=d.operators||{},b=j.element,d=j.options,o=b.addClass("k-filterable").find("k-grid-filter"),o[0]||(o=b.prepend('<a class="k-grid-filter" href="#"><span class="k-icon k-filter"/></a>').find(".k-grid-filter")),o.click(h(j._click,j)),j.dataSource=d.dataSource.bind("change",h(j.refresh,j)),j.field=b.attr(c.attr("field")),j.model=j.dataSource.reader.model,j._parse=function(a){return a+""},j.model&&j.model.fields&&(p=j.model.fields[j.field],p&&(k=p.type,j._parse=h(p.parse,p))),r=r[k]||d.operators[k],j.form=a('<form class="k-filter-menu k-group"/>'),j.form.html(c.template(k==="boolean"?m:n)({field:j.field,ns:c.ns,messages:d.messages,extra:d.extra,operators:r,type:k})),j.popup=j.form[i]({anchor:o,open:h(j._open,j)}).data(i),j.link=o,j.form.bind({submit:h(j._submit,j),reset:h(j._reset,j)}).find("select")[e]().end().find("["+c.attr("type")+"=number]")[f]().end().find("["+c.attr("type")+"=date]")[g](),j.refresh()},refresh:function(){var a=this,b=a.dataSource.filter()||{filters:[],logic:"and"};a._populateForm(b)?a.link.addClass("k-state-active"):a.link.removeClass("k-state-active")},_populateForm:function(a){var b=this,c=a.filters,d,e,f=b.form,g=!1,h=0,i;for(d=0,e=c.length;d<e;d++)i=c[d],i.field==b.field?(p(f.find("[name='filters["+h+"].value']"),b._parse(i.value)),p(f.find("[name='filters["+h+"].operator']"),i.operator),p(f.find("[name=logic]"),a.logic),h++,g=!0):i.filters&&(g=g||b._populateForm(i));return g},_merge:function(b){var c=this,d=b.logic||"and",e=b.filters,f,g=c.dataSource.filter()||{filters:[],logic:"and"},h,i;o(g,c.field),e=a.grep(e,function(a){return a.value!=""});for(h=0,i=e.length;h<i;h++)f=e[h],f.value=c._parse(f.value);e.length&&(g.filters.length?(b.filters=e,g.logic!=="and"&&(g.filters=[{logic:g.logic,filters:g.filters}],g.logic="and"),e.length>1?g.filters.push(b):g.filters.push(e[0])):(g.filters=e,g.logic=d));return g},filter:function(a){a=this._merge(a),a.filters.length&&this.dataSource.filter(a)},clear:function(){var b=this,c=b.dataSource.filter()||{filters:[]};c.filters=a.grep(c.filters,function(c){if(c.filters){c.filters=a.grep(c.filters,function(a){return a.field!=b.field});return c.filters.length}return c.field!=b.field}),c.filters.length||(c=null),b.dataSource.filter(c)},_submit:function(a){var b=this;a.preventDefault(),b.filter(q(b.form.serializeArray())),b.popup.close()},_reset:function(a){this.clear(),this.popup.close()},_click:function(a){a.preventDefault(),a.stopPropagation(),this.popup.toggle()},_open:function(){a(".k-filter-menu").not(this.form).each(function(){a(this).data(i).close()})},options:{name:"FilterMenu",extra:!0,type:"string",operators:{string:{eq:j,neq:k,startswith:"Starts with",contains:"Contains",endswith:"Ends with"},number:{eq:j,neq:k,gte:"Is greater than or equal to",gt:"Is greater than",lte:"Is less than or equal to",lt:"Is less than"},date:{eq:j,neq:k,gte:"Is after or equal to",gt:"Is after",lte:"Is before or equal to",lt:"Is before"}},messages:{info:"Show rows with value that:",isTrue:"is true",isFalse:"is false",filter:"Filter",clear:"Clear"}}});d.plugin(r)}(jQuery),function(a,b){function R(b){b=a(b),b.filter(".k-first:not(:first-child)").removeClass(r),b.filter(".k-last:not(:last-child)").removeClass(l),b.filter(":first-child").addClass(r),b.filter(":last-child").addClass(l)}function Q(b){b=a(b),b.children(".k-link").children(".k-icon").remove(),b.filter(":has(.k-panel),:has(.k-content)").children(".k-link:not(:has([class*=k-arrow]))").each(function(){var b=a(this),c=b.parent();b.append("<span class='k-icon "+(c.hasClass(A.substr(1))?"k-arrow-up k-panelbar-collapse":"k-arrow-down k-panelbar-expand")+"'/>")})}function P(b,c){b=a(b).addClass("k-item"),b.children(j).addClass(q),b.children("a").addClass(m).children(j).addClass(q),b.filter(":not([disabled]):not([class*=k-state])").addClass("k-state-default"),b.filter("li[disabled]").addClass("k-state-disabled").removeAttr("disabled"),b.filter(":not([class*=k-state])").children("a:focus").parent().addClass(A.substr(1)),b.find(">div").addClass(u).css({display:"none"}),b.each(function(){var b=a(this);b.children("."+m).length||b.contents().filter(function(){return!this.nodeName.match(i)&&(this.nodeType!=3||!!a.trim(this.nodeValue))}).wrapAll("<span class='"+m+"'/>")}),c.find(" > li > ."+m).addClass("k-header")}var c=window.kendo,d=c.ui,e=a.extend,f=a.each,g=c.template,h=d.Widget,i=/^(ul|a|div)$/i,j="img",k="href",l="k-last",m="k-link",n="error",o="click",p=".k-item",q="k-image",r="k-first",s="expand",t="select",u="k-content",v="collapse",w="contentUrl",x="mouseenter",y="mouseleave",z="contentLoad",A=".k-state-active",B="> .k-panel",C="> .k-content",D=".k-state-selected",E=".k-state-disabled",F=".k-state-highlighted",G=p+":not(.k-state-disabled) .k-link",H=p+".k-state-disabled .k-link",I="k-state-default",J=":visible",K=":empty",L="single",M=!1,N={content:g("<div class='k-content'#= contentAttributes(data) #>#= content(item) #</div>"),group:g("<ul class='#= groupCssClass(group) #'#= groupAttributes(group) #>#= renderItems(data) #</ul>"),itemWrapper:g("<#= tag(item) # class='#= textClass(item, group) #'#= contentUrl(item) ##= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) ##= arrow(data) #</#= tag(item) #>"),item:g("<li class='#= wrapperCssClass(group, item) #'>#= itemWrapper(data) ## if (item.items) { ##= subGroup({ items: item.items, panelBar: panelBar, group: { expanded: item.expanded } }) ## } #</li>"),image:g("<img class='k-image' alt='' src='#= imageUrl #' />"),arrow:g("<span class='#= arrowClass(item, group) #'></span>"),sprite:g("<span class='k-sprite #= spriteCssClass #'></span>"),empty:g("")},O={wrapperCssClass:function(a,b){var c="k-item",d=b.index;b.enabled===!1?c+=" k-state-disabled":c+=" k-state-default",d==0&&(c+=" k-first"),d==a.length-1&&(c+=" k-last");return c},textClass:function(a,b){var c=m;b.firstLevel&&(c+=" k-header");return c},textAttributes:function(a){return a.url?" href='"+a.url+"'":""},arrowClass:function(a,b){var c="k-icon";b.horizontal?c+=" k-arrow-down":c+=" k-arrow-right";return c},text:function(a){return a.encoded===!1?a.text:c.htmlEncode(a.text)},tag:function(a){return a.url?"a":"span"},groupAttributes:function(a){return a.expanded!==!0?" style='display:none'":""},groupCssClass:function(a){return"k-group k-panel"},contentAttributes:function(a){return a.active!==!0?" style='display:none'":""},content:function(a){return a.content?a.content:a.contentUrl?"":" "},contentUrl:function(a){return a.contentUrl?c.attr("content-url")+'="'+a.contentUrl+'"':""}},S=h.extend({init:function(b,d){var e=this,f;h.fn.init.call(e,b,d),b=e.wrapper=e.element,d=e.options,d.dataSource&&b.empty().append(a(S.renderGroup({items:d.dataSource,group:{firstLevel:!0,expanded:!0},panelBar:{}})).children()),e._updateClasses(),d.animation===!1&&(d.animation={expand:{show:!0,effects:{}},collapse:{hide:!0,effects:{}}}),b.delegate(G,o,a.proxy(e._click,e)).delegate(G,x+" "+y,e._toggleHover).delegate(H,o,!1),d.contentUrls&&b.find("> .k-item").each(function(b,c){a(c).find("."+m).data(w,d.contentUrls[b])}),f=b.find("li"+A+" > ."+u),f.length>0&&e.expand(f.parent(),!1),c.notify(e)},events:[s,v,t,n,z],options:{name:"PanelBar",animation:{expand:{effects:"expand:vertical",duration:200,show:!0},collapse:{duration:200}},expandMode:"multiple"},expand:function(b,c){var d=this,e={};c=c!==!1,b=this.element.find(b),b.each(function(f,g){g=a(g);var h=g.find(B).add(g.find(C));if(!g.hasClass(E)&&h.length>0){if(d.options.expandMode==L&&d._collapseAllExpanded(g))return d;b.find(F).removeClass(F.substr(1)),g.addClass(F.substr(1)),c||(e=d.options.animation,d.options.animation={expand:{show:!0,effects:{}},collapse:{hide:!0,effects:{}}}),d._triggerEvent(s,g)||d._toggleItem(g,!1,null),c||(d.options.animation=e)}});return d},collapse:function(b,c){var d=this,e={};c=c!==!1,b=d.element.find(b),b.each(function(b,f){f=a(f);var g=f.find(B).add(f.find(C));!f.hasClass(E)&&g.is(J)&&(f.removeClass(F.substr(1)),c||(e=d.options.animation,d.options.animation={expand:{show:!0,effects:{}},collapse:{hide:!0,effects:{}}}),d._triggerEvent(v,f)||d._toggleItem(f,!0,null),c||(d.options.animation=e))});return d},_toggleDisabled:function(a,b){a=this.element.find(a),a.toggleClass(I,b).toggleClass(E.substr(1),!b)},select:function(b){var c=this;b=c.element.find(b);if(arguments.length===0)return c.element.find(".k-item > "+D).parent();b.each(function(b,d){d=a(d);var e=d.children("."+m);if(d.is(E))return c;a(D,c.element).removeClass(D.substr(1)),a(F,c.element).removeClass(F.substr(1)),e.addClass(D.substr(1)),e.parentsUntil(c.element,p).filter(":has(.k-header)").addClass(F.substr(1))});return c},enable:function(a,b){this._toggleDisabled(a,b!==!1);return this},disable:function(a){this._toggleDisabled(a,!1);return this},append:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.length?c.find(B):null);f(d.items,function(b){d.group.append(this);var c=d.contents[b];c&&a(this).append(c),R(this)}),Q(c),R(d.group.find(".k-first, .k-last")),d.group.height("auto");return this},insertBefore:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.parent());f(d.items,function(b){c.before(this);var e=d.contents[b];e&&a(this).append(e),R(this)}),R(c),d.group.height("auto");return this},insertAfter:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.parent());f(d.items,function(b){c.after(this);var e=d.contents[b];e&&a(this).append(e),R(this)}),R(c),d.group.height("auto");return this},remove:function(a){a=this.element.find(a);var b=this,c=a.parentsUntil(b.element,p),d=a.parent("ul");a.remove(),d&&!d.hasClass("k-panelbar")&&!d.children(p).length&&d.remove(),c.length&&(c=c.eq(0),Q(c),R(c));return b},reload:function(b){var c=this;b=c.element.find(b),b.each(function(){var b=a(this);c._ajaxRequest(b,b.children("."+u),!b.is(J))})},_insert:function(b,c,d){var f=this,g=[];if(!c||!c.length)d=f.element;var h=a.isPlainObject(b),i,j={firstLevel:d.hasClass("k-panelbar"),expanded:d.parent().hasClass("k-state-active"),length:d.children().length};c&&!d.length&&(d=a(S.renderGroup({group:j})).appendTo(c)),h||a.isArray(b)?(i=a.map(h?[b]:b,function(b,c){return typeof b=="string"?a(b):a(S.renderItem({group:j,item:e(b,{index:c})}))}),g=a.map(h?[b]:b,function(b,c){return b.content||b.contentUrl?a(S.renderContent({item:e(b,{index:c})})):!1})):(i=a(b),P(i,f.element));return{items:i,group:d,contents:g}},_toggleHover:function(b){var c=a(b.currentTarget);c.parents("li"+E).length||c.toggleClass("k-state-hover",b.type==x)},_updateClasses:function(){var b=this;b.element.addClass("k-widget k-reset k-header k-panelbar");var c=b.element.find("li > ul").not(function(){return a(this).parentsUntil(".k-panelbar","div").length}).addClass("k-group k-panel").add(b.element),d=c.find("> li:not("+A+") > ul").css({display:"none"}).end().find("> li");d.each(function(){P(this,b.element)}),Q(d),R(d)},_click:function(b){var c=this,d=a(b.currentTarget),e=c.element;if(!d.parents("li"+E).length){if(d.closest(".k-widget")[0]!=e[0])return;var f=d.closest("."+m),g=f.closest(p);a(D,e).removeClass(D.substr(1)),a(F,e).removeClass(F.substr(1)),f.addClass(D.substr(1)),f.parentsUntil(c.element,p).filter(":has(.k-header)").addClass(F.substr(1));var h=g.find(B).add(g.find(C)),i=f.attr(k),j=f.data(w)||i&&(i.charAt(i.length-1)=="#"||i.indexOf("#"+c.element[0].id+"-")!=-1);if(h.data("animating"))return;c._triggerEvent(t,g)&&b.preventDefault();if(j||h.length)b.preventDefault();else return;if(c.options.expandMode==L&&c._collapseAllExpanded(g))return;if(h.length){var l=h.is(J);c._triggerEvent(l?v:s,g)||c._toggleItem(g,l,b)}}},_toggleItem:function(a,b,c){var d=this,e=a.find(B);if(e.length)this._toggleGroup(e,b),c&&c.preventDefault();else{var f=a.find("> ."+u);f.length&&(c&&c.preventDefault(),f.is(K)?d._ajaxRequest(a,f,b):d._toggleGroup(f,b))}},_toggleGroup:function(a,b){var c=this,d=c.options.animation,f=d.expand,g=e({},d.collapse),h=g&&"effects"in g;a.is(J)==b&&(b&&a.css("height",a.height()),a.css("height"),a.parent().toggleClass(I,b).toggleClass(A.substr(1),!b).find("> .k-link > .k-icon").toggleClass("k-arrow-up",!b).toggleClass("k-panelbar-collapse",!b).toggleClass("k-arrow-down",b).toggleClass("k-panelbar-expand",b),b&&(f=e(h?g:e({reverse:!0},f),{show:!1,hide:!0})),a.kendoStop(!0,!0).kendoAnimate(f))},_collapseAllExpanded:function(b){var c=this;if(b.find("> ."+m).hasClass("k-header")){var d=b.find(B).add(b.find(C));if(d.is(J)||d.length==0)return!0;var e=a(c.element).children();e.find(B).add(e.find(C)).filter(function(){return a(this).is(J)}).each(function(b,d){c._toggleGroup(a(d),!0)})}},_ajaxRequest:function(b,c,d){var e=this,f=b.find(".k-panelbar-collapse, .k-panelbar-expand"),g=b.find("."+m),h=setTimeout(function(){f.addClass("k-loading")},100),i={};a.ajax({type:"GET",cache:!1,url:g.data(w)||g.attr(k),dataType:"html",data:i,error:function(a,b){e.trigger(n,{xhr:a,status:b})&&this.complete()},complete:function(){clearTimeout(h),f.removeClass("k-loading")},success:function(a,f){c.html(a),e._toggleGroup(c,d),e.trigger(z,{item:b[0],contentElement:c[0]})}})},_triggerEvent:function(a,b){var c=this;return c.trigger(a,{item:b[0]})}});e(S,{renderItem:function(a){a=e({panelBar:{},group:{}},a);var b=N.empty,c=a.item,d=a.panelBar;return N.item(e(a,{image:c.imageUrl?N.image:b,sprite:c.spriteCssClass?N.sprite:b,itemWrapper:N.itemWrapper,arrow:c.items?N.arrow:b,subGroup:S.renderGroup},O))},renderGroup:function(a){return N.group(e({renderItems:function(a){var b="",c=0,d=a.items,f=d?d.length:0,g=e({length:f},a.group);for(;c<f;c++)b+=S.renderItem(e(a,{group:g,item:e({index:c},d[c])}));return b}},a,O))},renderContent:function(a){return N.content(e(a,O))}}),c.ui.plugin(S)}(jQuery),function(a,b){function M(a){var b=a.children(".k-item");b.filter(".k-first:not(:first-child)").removeClass(t),b.filter(".k-last:not(:last-child)").removeClass(o),b.filter(":first-child").addClass(t),b.filter(":last-child").addClass(o)}function L(b){b.children(l).addClass(s),b.children("a").addClass(n).children(l).addClass(s),b.filter(":not([disabled]):not([class*=k-state-disabled])").addClass(F),b.filter("li[disabled]").addClass(E).removeAttr("disabled"),b.filter(":not([class*=k-state])").children("a:focus").parent().addClass(G+" "+I),b.each(function(){var b=a(this);b.children("."+n).length||b.contents().filter(function(){return!this.nodeName.match(k)&&(this.nodeType!=3||!!g(this.nodeValue))}).wrapAll("<a class='"+n+"'/>")})}var c=window.kendo,d=c.ui,e=a.map,f=a.each,g=a.trim,h=a.extend,i=c.template,j=d.Widget,k=/^(a|div)$/i,l="img",m="href",n="k-link",o="k-last",p="click",q="error",r=":empty",s="k-image",t="k-first",u="select",v="activate",w="k-content",x="contentUrl",y="mouseenter",z="mouseleave",A="contentLoad",B=".k-tabstrip-items > .k-item:not(.k-state-disabled)",C=".k-tabstrip-items > .k-item:not(.k-state-disabled):not(.k-state-active)",D=".k-tabstrip-items > .k-state-disabled .k-link",E="k-state-disabled",F="k-state-default",G="k-state-active",H="k-state-hover",I="k-tab-on-top",J={content:i("<div class='k-content'#= contentAttributes(data) #>#= content(item) #</div>"),itemWrapper:i("<#= tag(item) # class='k-link'#= contentUrl(item) ##= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) #</#= tag(item) #>"),item:i("<li class='#= wrapperCssClass(group, item) #'>#= itemWrapper(data) #</li>"),image:i("<img class='k-image' alt='' src='#= imageUrl #' />"),sprite:i("<span class='k-sprite #= spriteCssClass #'></span>"),empty:i("")},K={wrapperCssClass:function(a,b){var c="k-item",d=b.index;b.enabled===!1?c+=" k-state-disabled":c+=" k-state-default",d==0&&(c+=" k-first"),d==a.length-1&&(c+=" k-last");return c},textAttributes:function(a){return a.url?" href='"+a.url+"'":""},text:function(a){return a.encoded===!1?a.text:c.htmlEncode(a.text)},tag:function(a){return a.url?"a":"span"},contentAttributes:function(a){return a.active!==!0?" style='display:none'":""},content:function(a){return a.content?a.content:a.contentUrl?"":" "},contentUrl:function(a){return a.contentUrl?c.attr("content-url")+'="'+a.contentUrl+'"':""}},N=j.extend({init:function(b,d){var e=this;e._animations(d),j.fn.init.call(e,b,d),e.element.is("ul")?e.wrapper=e.element.wrapAll("<div />").parent():e.wrapper=e.element,d=e.options,e.wrapper.delegate(B,p,a.proxy(e._click,e)).delegate(C,y+" "+z,e._toggleHover).delegate(D,p,!1),e._updateClasses(),e._dataSource(),d.dataSource&&e.dataSource.fetch(),e.options.contentUrls&&e.wrapper.find(".k-tabstrip-items > .k-item").each(function(b,c){a(c).find(">."+n).data(x,e.options.contentUrls[b])});var f=e.wrapper.find("li."+G),g=a(e.contentElement(f.parent().children().index(f)));g.length>0&&g[0].childNodes.length==0&&e.activateTab(f.eq(0)),c.notify(e)},_dataSource:function(){var b=this;b.dataSource&&b._refreshHandler?b.dataSource.unbind("change",b._refreshHandler):b._refreshHandler=a.proxy(b.refresh,b),b.dataSource=c.data.DataSource.create(b.options.dataSource).bind("change",b._refreshHandler)},setDataSource:function(a){this.options.dataSource=a,this._dataSource(),a.fetch()},_animations:function(a){a&&"animation"in a&&!a.animation&&(a.animation={open:{effects:{},show:!0},close:{effects:{}}})},refresh:function(a){var b=this,d="",e=b.options,f=c.getter(e.dataTextField),g=c.getter(e.dataContentField),h=c.getter(e.dataContentUrlField),i=c.getter(e.dataImageUrlField),j=c.getter(e.dataUrlField),k=c.getter(e.dataSpriteCssClass),l,m=[],n,o,p=b.dataSource.view(),q;a=a||{},o=a.action,o&&(p=a.items);for(l=0,q=p.length;l<q;l++)n={text:f(p[l])},e.dataContentField&&(n.content=g(p[l])),e.dataContentUrlField&&(n.contentUrl=h(p[l])),e.dataUrlField&&(n.url=j(p[l])),e.dataImageUrlField&&(n.imageUrl=i(p[l])),e.dataSpriteCssClass&&(n.spriteCssClass=k(p[l])),m[l]=n;if(a.action=="add")a.index<b.tabGroup.children().length?b.insertBefore(m,b.tabGroup.children().eq(a.index)):b.append(m);else if(a.action=="remove")for(l=0;l<p.length;l++)b.remove(a.index);else a.action=="itemchange"?(l=b.dataSource.view().indexOf(p[0]),a.field===e.dataTextField&&b.tabGroup.children().eq(l).find(".k-link").text(p[0].get(a.field))):(b.trigger("dataBinding"),b.append(m),b.trigger("dataBound"))},value:function(c){var d=this;if(c!==b)c!=d.value()&&d.tabGroup.children().each(function(){a.trim(a(this).text())==c&&d.select(this)});else return d.select().text()},items:function(){return this.tabGroup[0].children},setOptions:function(a){var b=this.options.animation;this._animations(a),a.animation=h(!0,b,a.animation),j.fn.setOptions.call(this,a)},events:[u,v,q,A,"change","dataBinding","dataBound"],options:{name:"TabStrip",dataTextField:"",dataContentField:"",dataImageUrlField:"",dataUrlField:"",dataSpriteCssClass:"",dataContentUrlField:"",animation:{open:{effects:"expand:vertical fadeIn",duration:200,show:!0},close:{duration:200}},collapsible:!1},select:function(b){var c=this;if(arguments.length==0)return c.wrapper.find("li."+G);isNaN(b)||(b=c.tabGroup.children().get(b)),b=c.element.find(b),a(b).each(function(b,d){d=a(d),!d.hasClass(G)&&!c.trigger(u,{item:d[0],contentElement:c.contentElement(d.index())})&&c.activateTab(d)});return c},enable:function(a,b){this._toggleDisabled(a,b!==!1);return this},disable:function(a){this._toggleDisabled(a,!1);return this},reload:function(b){b=this.tabGroup.find(b);var c=this;b.each(function(){var b=a(this),d=b.find("."+n).data(x);d&&c.ajaxRequest(b,a(c.contentElement(b.index())),null,d)});return c},append:function(a){var b=this,c=b._create(a);f(c.tabs,function(a){b.tabGroup.append(this),b.wrapper.append(c.contents[a])}),M(b.tabGroup),b._updateContentElements();return b},insertBefore:function(b,c){var d=this,e=d._create(b),g=a(d.contentElement(c.index()));f(e.tabs,function(a){c.before(this),g.before(e.contents[a])}),M(d.tabGroup),d._updateContentElements();return d},insertAfter:function(b,c){var d=this,e=d._create(b),g=a(d.contentElement(c.index()));f(e.tabs,function(a){c.after(this),g.after(e.contents[a])}),M(d.tabGroup),d._updateContentElements();return d},remove:function(b){var c=this,d=typeof b,e;d==="string"?b=c.tabGroup.find(b):d==="number"&&(b=c.tabGroup.children().eq(b)),e=a(c.contentElement(b.index())),e.remove(),b.remove(),c._updateContentElements();return c},_create:function(b){var c=a.isPlainObject(b),d=this,f,g;c||a.isArray(b)?(b=a.isArray(b)?b:[b],f=e(b,function(b,c){return a(N.renderItem({group:d.tabGroup,item:h(b,{index:c})}))}),g=e(b,function(b,c){if(b.content||b.contentUrl)return a(N.renderContent({item:h(b,{index:c})}))})):(f=a(b),g=a("<div class='"+w+"'/>"),L(f));return{tabs:f,contents:g}},_toggleDisabled:function(b,c){b=this.tabGroup.find(b),b.each(function(){a(this).toggleClass(F,c).toggleClass(E,!c)})},_updateClasses:function(){var c=this,d,e,f;c.wrapper.addClass("k-widget k-header k-tabstrip"),c.tabGroup=c.wrapper.children("ul").addClass("k-tabstrip-items k-reset"),c.tabGroup[0]||(c.tabGroup=a("<ul class='k-tabstrip-items k-reset'/>").appendTo(c.wrapper)),d=c.tabGroup.find("li").addClass("k-item"),d.length&&(e=d.filter("."+G).index(),f=e>=0?e:b,c.tabGroup.contents().filter(function(){return this.nodeType==3&&!g(this.nodeValue)}).remove()),d.eq(e).addClass(I),c.contentElements=c.wrapper.children("div"),c.contentElements.addClass(w).eq(f).addClass(G).css({display:"block"}),d.length&&(L(d),M(c.tabGroup),c._updateContentElements())},_updateContentElements:function(){var b=this,d=b.options.contentUrls||[],e=b.element.attr("id"),f=b.wrapper.children("div");b.tabGroup.find(".k-item").each(function(c){var g=f.eq(c),h=e+"-"+(c+1),i=a(this).children("."+n).attr(m);!g.length&&d[c]?a("<div id='"+h+"' class='"+w+"'/>").appendTo(b.wrapper):g.attr("id",h)}),b.contentElements=b.contentAnimators=b.wrapper.children("div"),c.support.touch&&(c.touchScroller(b.contentElements),b.contentElements=b.contentElements.children(".km-scroll-container"))},_toggleHover:function(b){a(b.currentTarget).toggleClass(H,b.type==y)},_click:function(b){var c=this,d=a(b.currentTarget),e=d.find("."+n),f=e.attr(m),g=c.options.collapsible,h=a(c.contentElement(d.index()));if(d.closest(".k-widget")[0]==c.wrapper[0]){if(d.is("."+E+(g?"":",."+G))){b.preventDefault();return}if(c.tabGroup.children("[data-animating], [data-in-request]").length)return;if(c.trigger(u,{item:d[0],contentElement:h[0]}))b.preventDefault();else{var i=e.data(x)||f&&(f.charAt(f.length-1)=="#"||f.indexOf("#"+c.element[0].id+"-")!=-1);if(!f||i)b.preventDefault();else return;if(g&&d.is("."+G)){c.deactivateTab(d),b.preventDefault();return}c.activateTab(d)&&b.preventDefault()}}},deactivateTab:function(a){var b=this,d=b.options.animation,e=d.open,f=h({},d.close),g=f&&"effects"in f;a=b.tabGroup.find(a),f=h(g?f:h({reverse:!0},e),{show:!1,hide:!0}),c.size(e.effects)?(a.kendoAddClass(F,{duration:e.duration}),a.kendoRemoveClass(G,{duration:e.duration})):(a.addClass(F),a.removeClass(G)),b.contentAnimators.filter("."+G).kendoStop(!0,!0).kendoAnimate(f).removeClass(G)},activateTab:function(b){b=this.tabGroup.find(b);var d=this,e=d.options.animation,f=e.open,g=h({},e.close),i=g&&"effects"in g,j=b.parent().children(),k=j.filter("."+G),l=j.index(b);g=h(i?g:h({reverse:!0},f),{show:!1,hide:!0}),c.size(f.effects)?(k.kendoRemoveClass(G,{duration:g.duration}),b.kendoRemoveClass(H,{duration:g.duration})):(k.removeClass(G),b.removeClass(H));var m=d.contentAnimators;if(m.length==0){k.removeClass(I),b.addClass(I).css("z-index"),b.addClass(G),d.trigger("change");return!1}var o=m.filter("."+G),p=a(d.contentElement(l));if(p.length==0){o.removeClass(G).kendoStop(!0,!0).kendoAnimate(g);return!1}b.attr("data-animating",!0);var q=(b.children("."+n).data(x)||!1)&&p.is(r),s=function(){k.removeClass(I),b.addClass(I).css("z-index"),c.size(f.effects)?(k.kendoAddClass(F,{duration:f.duration}),b.kendoAddClass(G,{duration:f.duration})):(k.addClass(F),b.addClass(G)),p.closest(".k-content").addClass(G).kendoStop(!0,!0).kendoAnimate(h({init:function(){d.trigger(v,{item:b[0],contentElement:p[0]})}},f,{complete:function(){b.removeAttr("data-animating")}}))},t=function(){q?d.ajaxRequest(b,p,function(){s(),d.trigger("change")}):(s(),d.trigger("change"))};o.removeClass(G),o.length?o.kendoStop(!0,!0).kendoAnimate(h({complete:t},g)):t();return!0},contentElement:function(a){if(!isNaN(a-0)){var b=this.contentElements,c=new RegExp("-"+(a+1)+"$");for(var d=0,e=b.length;d<e;d++)if(c.test(b.closest(".k-content")[d].id))return b[d]}},ajaxRequest:function(b,c,d,e){b=this.tabGroup.find(b);if(!b.find(".k-loading").length){var f=this,g=b.find("."+n),h={},i=null,j=setTimeout(function(){i=a("<span class='k-icon k-loading'/>").prependTo(g)},100);b.attr("data-in-request",!0),a.ajax({type:"GET",cache:!1,url:e||g.data(x)||g.attr(m),dataType:"html",data:h,error:function(a,c){b.removeAttr("data-animating"),f.trigger("error",{xhr:a,status:c})&&this.complete()},complete:function(){b.removeAttr("data-in-request"),clearTimeout(j),i!==null&&i.remove()},success:function(a,e){c.html(a),d&&d.call(f,c),f.trigger(A,{item:b[0],contentElement:c[0]})}})}}});h(N,{renderItem:function(a){a=h({tabStrip:{},group:{}},a);var b=J.empty,c=a.item,d=a.tabStrip;return J.item(h(a,{image:c.imageUrl?J.image:b,sprite:c.spriteCssClass?J.sprite:b,itemWrapper:J.itemWrapper},K))},renderContent:function(a){return J.content(h(a,K))}}),c.ui.plugin(N)}(jQuery),function(a,b){function G(a,b,c){var d=F(b),e=F(c),f;if(!a||d==e)return!0;f=F(a),d>f&&(f+=v),e<d&&(e+=v);return f>=d&&f<=e}function F(a){return a.getHours()*60*u+a.getMinutes()*u+a.getSeconds()*1e3+a.getMilliseconds()}function E(){var a=new A,b=new A(a.getFullYear(),a.getMonth(),a.getDate(),0,0,0),c=new A(a.getFullYear(),a.getMonth(),a.getDate(),12,0,0);return-1*(b.getTimezoneOffset()-c.getTimezoneOffset())}function D(a,b,c){var d=a.getTimezoneOffset(),e;a.setTime(a.getTime()+b),c||(e=a.getTimezoneOffset()-d,a.setTime(a.getTime()+e*u))}var c=window.kendo,d=c.support.touch,e=c.keys,f=c.ui,g=f.Widget,e=c.keys,h="open",i="close",j="change",k=d?"touchend":"click",l="k-state-default",m="disabled",n="li",o="<div/>",p="<span/>",q="k-state-focused",r="k-state-hover",s="mouseenter mouseleave",t="mousedown",u=6e4,v=864e5,w="k-state-selected",x="k-state-disabled",y=a.extend,z=a.proxy,A=Date,B=new A;B=new A(B.getFullYear(),B.getMonth(),B.getDate(),0,0,0);var C=function(b){var d=this,e;d.options=b,d.ul=a('<ul unselectable="on" class="k-list k-reset"/>').css({overflow:c.support.touch?"":"auto"}).delegate(n,k,z(d._click,d)).delegate(n,"mouseenter",function(){a(this).addClass(r)}).delegate(n,"mouseleave",function(){a(this).removeClass(r)}),d.list=a("<div class='k-list-container'/>").append(d.ul).mousedown(function(a){a.preventDefault()}),d._popup(),d.template=c.template('<li class="k-item" unselectable="on">#=data#</li>',{useWithBlock:!1})};C.prototype={current:function(c){var d=this;if(c!==b)d._current&&d._current.removeClass(w),c&&(c=a(c),c.addClass(w),d.scroll(c[0])),d._current=c;else return d._current},close:function(){this.popup.close()},open:function(){var a=this;a.ul[0].firstChild||a.refresh(),a.popup.open(),a._current&&a.scroll(a._current[0])},refresh:function(){var a=this,b=a.options,d=b.format,e=E(),f=e<0,g=b.min,h=b.max,i=F(g),j=F(h),k=b.interval*u,l=c.toString,m=a.template,n=new A(g),o=0,p,q="";f?p=(v+e*u)/k:p=v/k,i!=j&&(i>j&&(j+=v),p=(j-i)/k+1);for(;o<p;o++)o&&D(n,k,f),j&&F(n)>j&&(n=new A(h)),q+=m(l(n,d));a.ul[0].innerHTML=q,a._height(p),a.select(a._value)},scroll:function(a){if(!!a){var b=this.ul[0],c=a.offsetTop,d=a.offsetHeight,e=b.scrollTop,f=b.clientHeight,g=c+d;b.scrollTop=e>c?c:g>e+f?g-f:e}},select:function(b){var c=this,d=c._current;typeof b=="string"&&(!d||d.text()!==b?(b=a.grep(c.ul[0].childNodes,function(a){return(a.textContent||a.innerText)==b}),b=b[0]?b:null):b=d),c.current(b)},toggle:function(){var a=this;a.popup.visible()?a.close():a.open()},value:function(a){var b=this;b._value=a,b.ul[0].firstChild&&b.select(a)},_click:function(b){var c=this,d=a(b.currentTarget);b.isDefaultPrevented()||(c.select(d),c.options.change(d.text(),!0),c.close())},_height:function(a){if(a){var b=this,c=b.list,d=c.parent(".k-animation-container"),e=b.options.height;c.add(d).show().height(b.ul[0].scrollHeight>e?e:"auto").hide()}},_popup:function(){var a=this,b=a.list,d=a.options,e=d.anchor,g;a.popup=new f.Popup(b,y(d.popup,{anchor:e,open:d.open,close:d.close,animation:d.animation})),g=e.outerWidth()-(b.outerWidth()-b.width()),b.css({fontFamily:e.css("font-family"),width:g}),c.touchScroller(a.popup.element)},move:function(a){var b=this,c=a.keyCode,d=b.ul[0],f=b._current,g=c===e.DOWN;if(c===e.UP||g){if(a.altKey){b.toggle(g);return}g?f=f?f[0].nextSibling:d.firstChild:f=f?f[0].previousSibling:d.lastChild,f&&b.select(f),b.options.change(b._current.text()),a.preventDefault()}else if(c===e.ENTER||c===e.TAB||c===e.ESC)a.preventDefault(),b.close()}},c.TimeView=C;var H=g.extend({init:function(a,b){var d=this;g.fn.init.call(d,a,b),a=d.element,b=d.options,b.format=b.format||c.culture().calendar.patterns.t,d._wrapper(),d.timeView=new C(y({},b,{anchor:d.wrapper,format:b.format,change:function(b,c){c?d._change(b):a.val(b)},open:function(a){d.trigger(h)&&a.preventDefault()},close:function(a){d.trigger(i)&&a.preventDefault()}})),d._icon(),a.addClass("k-input").bind({keydown:z(d._keydown,d),focus:function(a){d._inputWrapper.addClass(q)},blur:z(d._blur,d)}).closest("form").bind("reset",function(){d.value(a[0].defaultValue)}),d.enable(!a.is("[disabled]")),d.value(b.value||a.val()),c.notify(d)},options:{name:"TimePicker",min:B,max:B,format:"",value:null,interval:30,height:200,animation:{}},events:[h,i,j],setOptions:function(a){g.fn.setOptions.call(this,a),y(this.timeView.options,a),this.timeView.refresh()},enable:function(a){var b=this,c=b.element,d=b._arrow.unbind(k+" "+t),e=b._inputWrapper.unbind(s);a===!1?(e.removeClass(l).addClass(x),c.attr(m,m)):(e.removeClass(x).addClass(l).bind(s,b._toggleHover),c.removeAttr(m),d.bind(k,z(b._click,b)).bind(t,function(a){a.preventDefault()}))},close:function(){this.timeView.close()},open:function(){this.timeView.open()},min:function(a){return this._option("min",a)},max:function(a){return this._option("max",a)},value:function(a){var c=this;if(a===b)return c._value;c._old=c._update(a)},_blur:function(){var a=this;a.close(),a._change(a.element.val()),a._inputWrapper.removeClass(q)},_click:function(){var a=this,b=a.element;!d&&b[0]!==document.activeElement&&b.focus(),a.timeView.toggle()},_change:function(a){var b=this;a=b._update(a),+b._old!=+a&&(b._old=a,b.trigger(j),b.element.trigger(j))},_icon:function(){var b=this,c=b.element,d;d=c.next("span.k-select"),d[0]||(d=a('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-icon-clock">select</span></span>').insertAfter(c)),b._arrow=d},_keydown:function(a){var b=this,c=a.keyCode,d=c==e.ENTER,f=b.timeView;(f.popup.visible()||a.altKey||d)&&f.move(a),d&&b._change(b.element.val())},_option:function(a,c){var d=this,e=d.options;if(c===b)return e[a];c=d._parse(c);!c||(c=new A(c),e[a]=c,d.timeView.options[a]=c,d.timeView.refresh())},_parse:function(a){var b=this,d=b._value||B;if(a instanceof A)return a;a=c.parseDate(a,b.options.format),a&&(a=new A(d.getFullYear(),d.getMonth(),d.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return a},_toggleHover:function(b){d||a(b.currentTarget).toggleClass(r,b.type==="mouseenter")},_update:function(a){var b=this,d=b._value,e=b.options,f=b._parse(a),g=c.toString(f,e.format);G(f,e.min,e.max)||(f=null),b._value=f,b.element.val(f?g:a),b.timeView.value(g);return f},_wrapper:function(){var b=this,c=b.element,d;d=c.parents(".k-timepicker"),d[0]||(d=c.wrap(p).parent().addClass("k-picker-wrap k-state-default"),d=d.wrap(p).parent()),d[0].style.cssText=c[0].style.cssText,c.css({width:"100%",height:c[0].style.height}),b.wrapper=d.addClass("k-widget k-timepicker k-header"),b._inputWrapper=a(d[0].firstChild)}});f.plugin(H)}(jQuery),function(a,b){function E(a){var b=this;b.treeview=a,b._draggable=new d.Draggable(a.element,{filter:"div:not(.k-state-disabled) .k-in",hint:function(a){return z.dragClue({text:a.text()})},cursorOffset:{left:10,top:c.support.touch?-40/c.support.zoomLevel():10},dragstart:h(b.dragstart,b),dragcancel:h(b.dragcancel,b),drag:h(b.drag,b),dragend:h(b.dragend,b)})}function D(a,b,c){var d=a.find(">div"),e=a.find(">ul");a.hasClass("k-treeview")||(c||(c={expanded:e.css("display")!="none",index:a.index(),enabled:!d.find(">.k-in").hasClass("k-state-disabled")}),b||(b={firstLevel:a.parent().parent().hasClass(t),length:a.parent().children().length}),a.removeClass("k-first k-last").addClass(A.wrapperCssClass(b,c)),d.removeClass("k-top k-mid k-bot").addClass(A.cssClass(b,c)),e.length&&(d.find(">.k-icon").removeClass("k-plus k-minus k-plus-disabled k-minus-disabled").addClass(A.toggleButtonClass(c)),e.addClass("k-group")))}function C(b){var c=b.find(">div"),d=b.find(">ul"),e=c.find(">.k-icon"),f=c.find(">.k-in");if(!b.hasClass("k-treeview")){c.length||(c=a("<div />").prependTo(b));if(!e.length&&d.length)e=a("<span class='k-icon' />").prependTo(c);else if(!d.length||!d.children().length)e.remove(),d.remove();if(!f.length){f=a("<span class='k-in' />").appendTo(c)[0],currentNode=c[0].nextSibling,f=c.find(".k-in")[0];while(currentNode&¤tNode.nodeName.toLowerCase()!="ul")tmp=currentNode,currentNode=currentNode.nextSibling,tmp.nodeType==3&&(tmp.nodeValue=a.trim(tmp.nodeValue)),f.appendChild(tmp)}}}var c=window.kendo,d=c.ui,e=a.extend,f=c.template,g=d.Widget,h=a.proxy,i="select",j="expand",k="collapse",l="dragstart",m="drag",n="nodeDragCancelled",o="drop",p="dragend",q="click",r="visibility",s="k-state-hover",t="k-treeview",u="k-item",v=":visible",w=".k-item",x=">.k-group,>.k-animation-container>.k-group",y=x+",>.k-content,>.k-animation-container>.k-content",z,A,B;z={dragClue:f("<div class='k-header k-drag-clue'><span class='k-icon k-drag-status'></span>#= text #</div>"),group:f("<ul class='#= groupCssClass(group) #'#= groupAttributes(group) #>#= renderItems(data) #</ul>"),itemWrapper:f("<div class='#= cssClass(group, item) #'>#= toggleButton(data) ##= checkbox(data) #<#= tag(item) # class='#= textClass(item) #'#= textAttributes(item) #>#= image(item) ##= sprite(item) ##= treeview.template ? template(treeview, item) : text(item) #</#= tag(item) #></div>"),item:f("<li class='#= wrapperCssClass(group, item) #'>#= itemWrapper(data) ## if (item.items) { ##= subGroup(treeview, group, item) ## } #</li>"),checkbox:f("# if (treeview.checkboxTemplate) { #<span class='k-checkbox'>#= checkboxTemplate(treeview, group, item) #</span># } #"),image:f("<img class='k-image' alt='' src='#= imageUrl #' />"),toggleButton:f("<span class='#= toggleButtonClass(item) #'></span>"),sprite:f("<span class='k-sprite #= spriteCssClass #'></span>"),empty:f("")},B=g.extend({init:function(b,c){var d=this,e=".k-in:not(.k-state-selected,.k-state-disabled)",i="mouseenter",j;c=a.isArray(c)?(j=!0,{dataSource:c}):c,g.prototype.init.call(d,b,c),b=d.element,c=d.options,d._animation(),c.template&&typeof c.template=="string"&&(c.template=f(c.template)),b.hasClass(t)?(d.wrapper=b,d.root=b.children("ul").eq(0)):(d._wrapper(),d.root.length?d._group(d.wrapper):d.root=d.wrapper.html(B.renderGroup({items:c.dataSource,group:{firstLevel:!0,expanded:!0},treeview:c})).children("ul")),d.wrapper.on(i,".k-in.k-state-selected",function(a){a.preventDefault()}).on(i,e,function(){a(this).addClass(s)}).on("mouseleave",e,function(){a(this).removeClass(s)}).on(q,e,h(d._nodeClick,d)).on("dblclick","div:not(.k-state-disabled) .k-in",h(d._toggleButtonClick,d)).on(q,".k-plus,.k-minus",h(d._toggleButtonClick,d)),c.dragAndDrop&&(d.dragging=new E(d))},_animation:function(){var a=this.options;a.animation===!1&&(a.animation={expand:{show:!0,effects:{}},collapse:{hide:!0,effects:{}}})},events:[l,m,o,p,j,k,i],options:{name:"TreeView",dataSource:{},animation:{expand:{effects:"expand:vertical",duration:200,show:!0},collapse:{duration:100}},dragAndDrop:!1},setOptions:function(a){var b=this;"dragAndDrop"in a&&a.dragAndDrop&&!b.options.dragAndDrop&&(b.dragging=new E(b)),g.fn.setOptions.call(b,a),b._animation()},_trigger:function(a,b){return this.trigger(a,{node:b.closest(w)[0]})},_toggleButtonClick:function(b){this.toggle(a(b.target).closest(w))},_nodeClick:function(b){var c=this,d=a(b.target),e=d.closest(w).find(y),f=d.attr("href"),g;f?g=f=="#"||f.indexOf("#"+this.element.id+"-")>=0:g=e.length&&!e.children().length,g&&b.preventDefault(),!d.hasClass(".k-state-selected")&&!c._trigger("select",d)&&c.select(d)},_wrapper:function(){var a=this,b=a.element,c,d,e="k-widget k-treeview k-reset";b.is("div")?(c=b,d=c.children("ul").eq(0)):(c=b.wrap("<div />").parent(),d=b),a.wrapper=c.addClass(e),a.root=d},_group:function(a){var b=this,d=a.hasClass(t),e={firstLevel:d,expanded:d||a.attr(c.attr("expanded"))==="true"},f=a.find("> ul");f.addClass(A.groupCssClass(e)).css("display",e.expanded?"":"none"),b._nodes(f,e)},_nodes:function(b,d){var f=this,g=b.find("> li"),h;d=e({length:g.length},d),g.each(function(b,e){e=a(e),h={index:b,expanded:e.attr(c.attr("expanded"))==="true"},C(e),D(e,d,h),f._group(e)})},_processNodes:function(b,c){var d=this;d.element.find(b).each(function(b,e){c.call(d,b,a(e).closest(w))})},expand:function(a){this._processNodes(a,function(a,b){var c=b.find(y);c.length>0&&!c.is(v)&&this.toggle(b)})},collapse:function(a){this._processNodes(a,function(a,b){var c=b.find(y);c.length>0&&c.is(v)&&this.toggle(b)})},enable:function(a,b){b=arguments.length==2?!!b:!0,this._processNodes(a,function(a,c){var d=!c.find(y).is(v);b||(this.collapse(c),d=!0),c.find(">div").find(">.k-in").toggleClass("k-state-default",b).toggleClass("k-state-disabled",!b).end().find(">.k-icon").toggleClass("k-plus",d&&b).toggleClass("k-plus-disabled",d&&!b).toggleClass("k-minus",!d&&b).toggleClass("k-minus-disabled",!d&&!b)})},select:function(b){var c=this.element;if(arguments.length==0)return c.find(".k-state-selected").closest(w);b=a(b,c).closest(w),b.length&&(c.find(".k-in").removeClass("k-state-hover k-state-selected"),b.find(".k-in:first").addClass("k-state-selected"))},toggle:function(b){b=a(b);if(b.find(".k-minus,.k-plus").length!=0){if(b.find("> div > .k-state-disabled").length)return;var c=this,d=b.find(y),f=!d.is(v),g=c.options.animation||{},h=g.expand,i=e({},g.collapse),j=i&&"effects"in i;if(d.data("animating"))return;f||(h=e(j?i:e({reverse:!0},h),{show:!1,hide:!0})),d.children().length>0&&(c._trigger(f?"expand":"collapse",b)||(b.find("> div > .k-icon").toggleClass("k-minus",f).toggleClass("k-plus",!f),f||d.css("height",d.height()).css("height"),d.kendoStop(!0,!0).kendoAnimate(e(h,{complete:function(){f&&d.css("height","")}}))))}},text:function(b){return a(b).closest(w).find(">div>.k-in").text()},_insertNode:function(b,c,d,f,g){var h=this,i=f.children().length+1,j=a.isArray(b),k=j||a.isPlainObject(b),l={firstLevel:d.hasClass(t),expanded:!0,length:i},m,n,o="";if(k){if(j)for(n=0;n<b.length;n++)o+=B.renderItem({group:l,item:e(b[n],{index:c+n})});else o=B.renderItem({group:l,item:e(b,{index:c})});m=a(o)}else{m=a(b);if(f.children()[c-1]==m[0])return m;m.closest(".k-treeview")[0]==h.wrapper[0]&&h.detach(m)}f.length||(f=a(B.renderGroup({group:l})).appendTo(d)),g(m,f),d.hasClass("k-item")&&(C(d),D(d)),k||D(m),D(m.prev()),D(m.next());return m},insertAfter:function(a,b){var c=b.parent();return this._insertNode(a,b.index()+1,c.parent(),c,function(a,c){a.insertAfter(b)})},insertBefore:function(a,b){var c=b.parent();return this._insertNode(a,b.index(),c.parent(),c,function(a,c){a.insertBefore(b)})},append:function(a,b){b=b||this.element;var c=b.find(x);return this._insertNode(a,c.children().length,b,c,function(a,b){a.appendTo(b)})},_remove:function(b,c){var d,e,f;b=a(b,this.element),d=b.parent().parent(),e=b.prev(),f=b.next(),b[c?"detach":"remove"](),d.hasClass("k-item")&&(C(d),D(d)),D(e),D(f);return b},remove:function(a){return this._remove(a,!1)},detach:function(a){return this._remove(a,!0)},findByText:function(b){return a(this.element).find(".k-in").filter(function(c,d){return a(d).text()==b}).closest(w)}}),E.prototype={_hintStatus:function(b){var c=this._draggable.hint.find(".k-drag-status")[0];if(b)c.className="k-icon k-drag-status "+b;else return a.trim(c.className.replace(/k-(icon|drag-status)/g,""))},dragstart:function(b){var c=this,d=c.treeview,e=c.sourceNode=b.currentTarget.closest(w);d.trigger(l,{sourceNode:e[0]})&&b.preventDefault(),c.dropHint=a("<div class='k-drop-hint' />").css(r,"hidden").appendTo(d.element)},drag:function(b){var d=this,e=d.treeview,f=d.sourceNode,g=d.dropTarget=a(c.eventTarget(b)),h,i,j,k,l,n,o,p,q,t;g.closest(".k-treeview").length?a.contains(f[0],g[0])?h="k-denied":(h="k-insert-middle",d.dropHint.css(r,"visible"),i=g.closest(".k-top,.k-mid,.k-bot"),i.length>0?(k=i.outerHeight(),l=i.offset().top,n=g.closest(".k-in"),o=k/(n.length>0?4:2),p=b.pageY<l+o,q=l+k-o<b.pageY,t=n.length>0&&!p&&!q,n.toggleClass(s,t),d.dropHint.css(r,t?"hidden":"visible"),t?h="k-add":(j=i.position(),j.top+=p?0:k,d.dropHint.css(j)[p?"prependTo":"appendTo"](g.closest(w).find("> div:first")),p&&i.hasClass("k-top")&&(h="k-insert-top"),q&&i.hasClass("k-bot")&&(h="k-insert-bottom"))):g[0]!=d.dropHint[0]&&(h="k-denied")):h="k-denied",e.trigger(m,{sourceNode:f[0],dropTarget:g[0],pageY:b.pageY,pageX:b.pageX,statusClass:h.substring(2),setStatusClass:function(a){h=a}}),h.indexOf("k-insert")!=0&&d.dropHint.css(r,"hidden"),d._hintStatus(h)},dragcancel:function(a){this.dropHint.remove()},dragend:function(a){var b=this,c=b.treeview,d="over",e=b.sourceNode,f,g=b.dropHint,h,i;g.css(r)=="visible"?(d=g.prevAll(".k-in").length>0?"after":"before",f=g.closest(w)):b.dropTarget&&(f=b.dropTarget.closest(w)),h=b._hintStatus()!="k-denied",i=c.trigger(o,{sourceNode:e[0],destinationNode:f[0],valid:h,setValid:function(a){h=a},dropTarget:a.target,dropPosition:d}),g.remove();!h||i?b._draggable.dropped=h:(b._draggable.dropped=!0,d=="over"?(c.append(e,f),c.expand(f)):d=="before"?c.insertBefore(e,f):d=="after"&&c.insertAfter(e,f),c.trigger(p,{sourceNode:e[0],destinationNode:f[0],dropPosition:d}))}},e(B,{renderItem:function(a){a=e({treeview:{},group:{}},a);var b=z.empty,c=a.item,d=a.treeview;return z.item(e(a,{image:c.imageUrl?z.image:b,sprite:c.spriteCssClass?z.sprite:b,itemWrapper:z.itemWrapper,toggleButton:c.items?z.toggleButton:b,checkbox:d.checkboxTemplate?z.checkbox:b,subGroup:function(a,b,c){return B.renderGroup({items:c.items,treeview:a,group:{expanded:c.expanded}})}},A))},renderGroup:function(a){return z.group(e({renderItems:function(a){var b="",c=0,d=a.items,f=d?d.length:0,g=e({length:f},a.group);for(;c<f;c++)b+=B.renderItem(e(a,{group:g,item:e({index:c},d[c])}));return b}},a,A))}}),A={wrapperCssClass:function(a,b){var c="k-item",d=b.index;a.firstLevel&&d==0&&(c+=" k-first"),d==a.length-1&&(c+=" k-last");return c},cssClass:function(a,b){var c="",d=b.index,e=a.length-1;a.firstLevel&&d==0&&(c+="k-top "),d==0&&d!=e?c+="k-top":d==e?c+="k-bot":c+="k-mid";return c},textClass:function(a){var b="k-in";a.enabled===!1&&(b+=" k-state-disabled"),a.selected===!0&&(b+=" k-state-selected");return b},textAttributes:function(a){return a.url?" href='"+a.url+"'":""},toggleButtonClass:function(a){var b="k-icon";a.expanded!==!0?b+=" k-plus":b+=" k-minus",a.enabled===!1&&(b+="-disabled");return b},text:function(a){return a.encoded===!1?a.text:c.htmlEncode(a.text)},template:function(a,b){return a.template(e({item:b},A))},checkboxTemplate:function(a,b,c){return a.checkboxTemplate(e({treeview:a,group:b,item:c},A))},tag:function(a){return a.url?"a":"span"},groupAttributes:function(a){return a.expanded!==!0?" style='display:none'":""},groupCssClass:function(a){var b="k-group";a.firstLevel&&(b+=" k-treeview-lines");return b}},d.plugin(B)}(jQuery),function(a,b){function L(a,c){return j(a.getAttribute(c))||b}function K(a){a=parseFloat(a,10);var b=l.pow(10,A||0);return l.round(a*b)/b}function J(a){return(a+"").replace(".",c.cultures.current.numberFormat["."])}function I(a){return function(){return a}}function H(a){return function(b){return b+a}}function G(a){var b=a.is("input")?1:2;return"<div class='k-slider-track'><div class='k-slider-selection'><!-- --></div><a href='javascript:void(0)' class='k-draghandle' title='Drag'>Drag</a>"+(b>1?"<a href='javascript:void(0)' class='k-draghandle' title='Drag'>Drag</a>":"")+"</div>"}function F(a,b){var c="<ul class='k-reset k-slider-items'>",d=l.floor(K(b/a.smallStep))+1;for(i=0;i<d;i++)c+="<li class='k-tick'> </li>";c+="</ul>";return c}function E(a,b,c){var d="";b=="increase"?d=c?"k-arrow-next":"k-arrow-up":d=c?"k-arrow-prev":"k-arrow-down";return"<a class='k-button k-button-"+b+"'><span class='k-icon "+d+"' title='"+a[b+"ButtonTitle"]+"'>"+a[b+"ButtonTitle"]+"</span></a>"}function D(a,b,c){var d=c?" k-slider-horizontal":" k-slider-vertical",e=a.style?a.style:b.attr("style"),f=b.attr("class")?" "+b.attr("class"):"",g="";a.tickPlacement=="bottomRight"?g=" k-slider-bottomright":a.tickPlacement=="topLeft"&&(g=" k-slider-topleft"),e=e?" style='"+e+"'":"";return"<div class='k-widget k-slider"+d+f+"'"+e+">"+"<div class='k-slider-wrap"+(a.showButtons?" k-slider-buttons":"")+g+"'></div></div>"}var c=window.kendo,d=c.ui.Widget,e=c.ui.Draggable,f=c.keys,g=a.extend,h=c.format,j=c.parseFloat,k=a.proxy,l=Math,m=c.support.touch,n="change",o="slide",p=m?"touchstart":"mousedown",q=m?"touchend":"mouseup",r="moveSelection",s="keydown",t="mouseover",u=".k-draghandle",v=".k-slider-track",w=".k-tick",x="k-state-selected",y="k-state-default",z="k-state-disabled",A=3,B="disabled",C=d.extend({init:function(a,b){var e=this;d.fn.init.call(e,a,b),b=e.options,e._distance=b.max-b.min,e._isHorizontal=b.orientation=="horizontal",e._position=e._isHorizontal?"left":"bottom",e._size=e._isHorizontal?"width":"height",e._outerSize=e._isHorizontal?"outerWidth":"outerHeight",b.tooltip.format=b.tooltip.enabled?b.tooltip.format||"{0}":"{0}",e._createHtml(),e.wrapper=e.element.closest(".k-slider"),e._trackDiv=e.wrapper.find(v),e._setTrackDivWidth(),e._maxSelection=e._trackDiv[e._size]();var f=e._maxSelection/((b.max-b.min)/b.smallStep),g=e._calculateItemsWidth(l.floor(e._distance/b.smallStep));b.tickPlacement!="none"&&f>=2&&(e._trackDiv.before(F(b,e._distance)),e._setItemsWidth(g),e._setItemsTitle(),e._setItemsLargeTick()),e._calculateSteps(g),e[b.enabled?"enable":"disable"](),e._keyMap={37:H(-b.smallStep),40:H(-b.smallStep),39:H(+b.smallStep),38:H(+b.smallStep),35:I(b.max),36:I(b.min),33:H(+b.largeStep),34:H(-b.largeStep)},c.notify(e)},events:[n,o],options:{enabled:!0,min:0,max:10,smallStep:1,largeStep:5,orientation:"horizontal",tickPlacement:"both",tooltip:{enabled:!0,format:"{0}"}},_setTrackDivWidth:function(){var a=this,b=parseFloat(a._trackDiv.css(a._position),10)*2;a._trackDiv[a._size](a.wrapper[a._size]()-2-b)},_setItemsWidth:function(b){var c=this,d=c.options,e=0,f=b.length-1,g=c.wrapper.find(w),h,i=0,j=2,k=g.length,l=0;for(h=0;h<k-2;h++)a(g[h+1])[c._size](b[h]);c._isHorizontal?(a(g[e]).addClass("k-first")[c._size](b[f-1]),a(g[f]).addClass("k-last")[c._size](b[f])):(a(g[f]).addClass("k-first")[c._size](b[f]),a(g[e]).addClass("k-last")[c._size](b[f-1]));if(c._distance%d.smallStep!=0&&!c._isHorizontal){for(h=0;h<b.length;h++)l+=b[h];i=c._maxSelection-l,i+=parseFloat(c._trackDiv.css(c._position),10)+j,c.wrapper.find(".k-slider-items").css("padding-top",i)}},_setItemsTitle:function(){var b=this,c=b.options,d=b.wrapper.find(w),e=c.min,f=b._isHorizontal?0:d.length-1,g=b._isHorizontal?d.length:-1,i=b._isHorizontal?1:-1;for(;f-g!=0;f+=i)a(d[f]).attr("title",h(c.tooltip.format,K(e))),e+=c.smallStep},_setItemsLargeTick:function(){var b=this,c=b.options,d,e=b.wrapper.find(w),f={},g=K(c.largeStep/c.smallStep);if(1e3*c.largeStep%(1e3*c.smallStep)==0)if(b._isHorizontal)for(d=0;d<e.length;d=K(d+g))f=a(e[d]),f.addClass("k-tick-large").html("<span class='k-label'>"+f.attr("title")+"</span>");else for(d=e.length-1;d>=0;d=K(d-g))f=a(e[d]),f.addClass("k-tick-large").html("<span class='k-label'>"+f.attr("title")+"</span>"),d!=0&&d!=e.length-1&&f.css("line-height",f[b._size]()+"px")},_calculateItemsWidth:function(a){var b=this,c=b.options,d=parseFloat(b._trackDiv.css(b._size))+1,e=d/b._distance,f,g,h;b._distance/c.smallStep-l.floor(b._distance/c.smallStep)>0&&(d-=b._distance%c.smallStep*e),f=d/a,g=[];for(h=0;h<a-1;h++)g[h]=f;g[a-1]=g[a]=f/2;return b._roundWidths(g)},_roundWidths:function(a){var b=0;for(i=0;i<a.length;i++)b+=a[i]-l.floor(a[i]),a[i]=l.floor(a[i]);b=l.round(b);return this._addAdditionalSize(b,a)},_addAdditionalSize:function(a,b){if(a==0)return b;var c=parseFloat(b.length-1)/parseFloat(a==1?a:a-1),d;for(d=0;d<a;d++)b[parseInt(l.round(c*d))]+=1;return b},_calculateSteps:function(a){var b=this,c=b.options,d=c.min,e=0,f=l.ceil(b._distance/c.smallStep),g=1,h;f+=b._distance/c.smallStep%1==0?1:0,a.splice(0,0,a[f-2]*2),a.splice(f-1,1,a.pop()*2),b._pixelSteps=[e],b._values=[d];if(f!=0){while(g<f)e+=(a[g-1]+a[g])/2,b._pixelSteps[g]=e,b._values[g]=d+=c.smallStep,g++;h=b._distance%c.smallStep==0?f-1:f,b._pixelSteps[h]=b._maxSelection,b._values[h]=c.max}},_getValueFromPosition:function(a,b){var c=this,d=c.options,e=l.max(d.smallStep*(c._maxSelection/c._distance),0),f=0,g=e/2,h=0,i;c._isHorizontal?f=a-b.startPoint:f=b.startPoint-a;if(c._maxSelection-(parseInt(c._maxSelection%e)-3)/2<f)return d.max;for(i=0;i<c._pixelSteps.length;i++)if(l.abs(c._pixelSteps[i]-f)-1<=g)return K(c._values[i])},_getDragableArea:function(){var a=this,b=a._trackDiv.offset().left,c=a._trackDiv.offset().top;return{startPoint:a._isHorizontal?b:c+a._maxSelection,endPoint:a._isHorizontal?b+a._maxSelection:c}},_createHtml:function(){var a=this,b=a.element,c=a.options,d=b.find("input");d.length==2?(d.eq(0).val(c.selectionStart),d.eq(1).val(c.selectionEnd)):b.val(c.value),b.wrap(D(c,b,a._isHorizontal)).hide(),c.showButtons&&b.before(E(c,"increase",a._isHorizontal)).before(E(c,"decrease",a._isHorizontal)),b.before(G(b))}}),M=C.extend({init:function(b,c){var d=this,e;b.type="text",b=a(b),c=g({},{value:L(b[0],"value"),min:L(b[0],"min"),max:L(b[0],"max"),smallStep:L(b[0],"step")},c),C.fn.init.call(d,b,c),c=d.options,d._setValueInRange(c.value),e=d.wrapper.find(u),new M.Selection(e,d,c),d._drag=new M.Drag(e,"",d,c)},options:{name:"Slider",value:0,showButtons:!0,increaseButtonTitle:"Increase",decreaseButtonTitle:"Decrease",tooltip:{template:"#= value #"}},enable:function(b){var d=this,e=d.options,f,g;if(b===!1)d.disable();else{d.wrapper.removeClass(z).addClass(y),d.wrapper.find("input").removeAttr(B),f=function(b){if(a(b.target).hasClass("k-draghandle"))a(b.target).addClass(x);else{var e=c.touchLocation(b),f=d._isHorizontal?e.x:e.y,g=d._getDragableArea();d._update(d._getValueFromPosition(f,g)),d._drag.dragstart(b)}},d.wrapper.find(w).bind(p,f).end().find(v).bind(p,f),d.wrapper.find(u).bind(q,function(b){a(b.target).removeClass(x)}),g=k(function(a){d._setValueInRange(d._nextValueByIndex(d._valueIndex+a*1))},d);if(e.showButtons){var h=k(function(a,b){if(a.which==1||m&&a.which==0)g(b),this.timeout=setTimeout(k(function(){this.timer=setInterval(function(){g(b)},60)},this),200)},d);d.wrapper.find(".k-button").bind(q,k(function(a){this._clearTimer()},d)).bind(t,function(b){a(b.currentTarget).addClass("k-state-hover")}).bind("mouseout",k(function(b){a(b.currentTarget).removeClass("k-state-hover"),this._clearTimer()},d)).eq(0).bind(p,k(function(a){h(a,1)},d)).click(!1).end().eq(1).bind(p,k(function(a){h(a,-1)},d)).click(!1)}d.wrapper.find(u).bind(s,k(this._keydown,d)),e.enabled=!0}},disable:function(){var b=this;b.wrapper.removeClass(y).addClass(z),a(b.element).attr(B,B),b.wrapper.find(".k-button").unbind(p).bind(p,!1).unbind(q).bind(q,!1).unbind("mouseleave").bind("mouseleave",!1).unbind(t).bind(t,!1),b.wrapper.find(w).unbind(p).end().find(v).unbind(p),b.wrapper.find(u).unbind(q).unbind(s).bind(s,!1),b.options.enabled=!1},_update:function(a){var b=this,c=b.value()!=a;b.value(a),c&&b.trigger(n,{value:b.options.value})},value:function(a){var b=this,c=b.options;a=K(a);if(isNaN(a))return c.value;a>=c.min&&a<=c.max&&c.value!=a&&(b.element.attr("value",J(a)),c.value=a,b.refresh())},refresh:function(){this.trigger(r,{value:this.options.value})},_clearTimer:function(a){clearTimeout(this.timeout),clearInterval(this.timer)},_keydown:function(a){var b=this;a.keyCode in b._keyMap&&(b._setValueInRange(b._keyMap[a.keyCode](b.options.value)),a.preventDefault())},_setValueInRange:function(a){var b=this,c=b.options;a=K(a);isNaN(a)?b._update(c.min):(a=l.max(l.min(a,c.max),c.min),b._update(a))},_nextValueByIndex:function(a){var b=this._values.length;return this._values[l.max(0,l.min(a,b-1))]}});M.Selection=function(a,b,c){function d(d){var e=d-c.min,f=b._valueIndex=l.ceil(K(e/c.smallStep)),g=parseInt(b._pixelSteps[f]),h=b._trackDiv.find(".k-slider-selection"),i=parseInt(a[b._outerSize]()/2,10);h[b._size](g),a.css(b._position,g-i)}d(c.value),b.bind([n,o,r],function(a){d(parseFloat(a.value,10))})},M.Drag=function(a,b,c,d){var f=this;f.owner=c,f.options=d,f.dragHandle=a,f.dragHandleSize=a[c._outerSize](),f.type=b,f.draggable=new e(a,{threshold:0,dragstart:k(f._dragstart,f),drag:k(f.drag,f),dragend:k(f.dragend,f),dragcancel:k(f.dragcancel,f)}),a.click(!1)},M.Drag.prototype={dragstart:function(a){this.draggable.drag._start(a)},_dragstart:function(b){var d=this,e=d.owner,f=d.options,g=f.tooltip,i="",j,k,m;if(!f.enabled)return!1;e.element.unbind(t),d.dragHandle.addClass(x),d.dragableArea=e._getDragableArea(),d.step=l.max(f.smallStep*(e._maxSelection/e._distance),0),d.type?(d.selectionStart=f.selectionStart,d.selectionEnd=f.selectionEnd,e._setZIndex(d.type)):d.oldVal=d.val=f.value,g.enabled&&(g.template&&(j=d.tooltipTemplate=c.template(g.template)),d.tooltipDiv=a("<div class='k-widget k-tooltip'><!-- --></div>").appendTo(document.body),d.type?d.tooltipTemplate?i=j({selectionStart:d.selectionStart,selectionEnd:d.selectionEnd}):(k=h(g.format,d.selectionStart),m=h(g.format,d.selectionEnd),i=k+" - "+m):(d.tooltipInnerDiv="<div class='k-callout k-callout-"+(e._isHorizontal?"s":"e")+"'><!-- --></div>",d.tooltipTemplate?i=j({value:d.val}):i=h(g.format,d.val),i+=d.tooltipInnerDiv),d.tooltipDiv.html(i),d.moveTooltip())},drag:function(a){var b=this,c=b.owner,d=b.options,e=a.x.location,f=a.y.location,g=b.dragableArea.startPoint,i=b.dragableArea.endPoint,j=d.tooltip,k="",l=b.tooltipTemplate,m,n,p;a.preventDefault(),c._isHorizontal?b.val=b.constrainValue(e,g,i,e>=i):b.val=b.constrainValue(f,i,g,f<=i),b.oldVal!=b.val&&(b.oldVal=b.val,b.type?(b.type=="firstHandle"?b.val<b.selectionEnd?b.selectionStart=b.val:b.selectionStart=b.selectionEnd=b.val:b.val>b.selectionStart?b.selectionEnd=b.val:b.selectionStart=b.selectionEnd=b.val,m={values:[b.selectionStart,b.selectionEnd]}):m={value:b.val},c.trigger(o,m),j.enabled&&(b.type?b.tooltipTemplate?k=l({selectionStart:b.selectionStart,selectionEnd:b.selectionEnd}):(n=h(j.format,b.selectionStart),p=h(j.format,b.selectionEnd),k=n+" - "+p):(b.tooltipTemplate?k=l({value:b.val}):k=h(j.format,b.val),k+=b.tooltipInnerDiv),b.tooltipDiv.html(k),b.moveTooltip()))},dragcancel:function(a){this.owner.refresh();return this._end()},dragend:function(a){var b=this,c=b.owner;b.type?c._update(b.selectionStart,b.selectionEnd):c._update(b.val);return b._end()},_end:function(){var a=this,b=a.owner;b.options.tooltip.enabled&&a.tooltipDiv.remove(),a.dragHandle.removeClass(x),b.element.bind(t);return!1},moveTooltip:function(){var a=this,b=a.owner,c=0,d=0,e=a.dragHandle.offset(),f=4,g=a.tooltipDiv.find(".k-callout"),h;if(a.type){var i=b.wrapper.find(u),j=i.eq(0).offset(),k=i.eq(1).offset();b._isHorizontal?(c=k.top,d=j.left+(k.left-j.left)/2):(c=j.top+(k.top-j.top)/2,d=k.left)}else c=e.top,d=e.left;b._isHorizontal?(d-=parseInt((a.tooltipDiv.outerWidth()-a.dragHandle[b._outerSize]())/2),c-=a.tooltipDiv.outerHeight()+g.height()+f):(c-=parseInt((a.tooltipDiv.outerHeight()-a.dragHandle[b._outerSize]())/2),d-=a.tooltipDiv.outerWidth()+g.width()+f),a.tooltipDiv.css({top:c,left:d})},constrainValue:function(a,b,c,d){var e=this,f=0;b<a&&a<c?f=e.owner._getValueFromPosition(a,e.dragableArea):d?f=e.options.max:f=e.options.min;return f}},c.ui.plugin(M);var N=C.extend({init:function(b,c){var d=this,e=a(b).find("input"),f=e.eq(0)[0],h=e.eq(1)[0];f.type="text",h.type="text",c=g({},{selectionStart:L(f,"value"),min:L(f,"min"),max:L(f,"max"),smallStep:L(f,"step")},{selectionEnd:L(h,"value"),min:L(h,"min"),max:L(h,"max"),smallStep:L(h,"step")},c),C.fn.init.call(d,b,c),c=d.options,d._setValueInRange(c.selectionStart,c.selectionEnd);var i=d.wrapper.find(u);new N.Selection(i,d,c),d._firstHandleDrag=new M.Drag(i.eq(0),"firstHandle",d,c),d._lastHandleDrag=new M.Drag(i.eq(1),"lastHandle",d,c)},options:{name:"RangeSlider",selectionStart:0,selectionEnd:10,tooltip:{template:"#= selectionStart # - #= selectionEnd #"}},enable:function(b){var d=this,e=d.options,f;b===!1?d.disable():(d.wrapper.removeClass(z).addClass(y),d.wrapper.find("input").removeAttr(B),f=function(b){if(a(b.target).hasClass("k-draghandle"))a(b.target).addClass(x);else{var f=c.touchLocation(b),g=d._isHorizontal?f.x:f.y,h=d._getDragableArea(),i=d._getValueFromPosition(g,h);i<e.selectionStart?(d._setValueInRange(i,e.selectionEnd),d._firstHandleDrag.dragstart(b)):i>d.selectionEnd?(d._setValueInRange(e.selectionStart,i),d._lastHandleDrag.dragstart(b)):i-e.selectionStart<=e.selectionEnd-i?(d._setValueInRange(i,e.selectionEnd),d._firstHandleDrag.dragstart(b)):(d._setValueInRange(e.selectionStart,i),d._lastHandleDrag.dragstart(b))}},d.wrapper.find(w).bind(p,f).end().find(v).bind(p,f),d.wrapper.find(u).bind(q,function(b){a(b.target).removeClass(x)}),d.wrapper.find(u).eq(0).bind(s,k(function(a){this._keydown(a,"firstHandle")},d)).end().eq(1).bind(s,k(function(a){this._keydown(a,"lastHandle")},d)),d.options.enabled=!0)},disable:function(){var a=this,b=a.options;a.wrapper.removeClass(y).addClass(z),a.wrapper.find("input").attr(B,B),a.wrapper.find(w).unbind(p).end().find(v).unbind(p),a.wrapper.find(u).unbind(q).unbind(s).bind(s,!1),a.options.enabled=!1},_keydown:function(a,b){var c=this,d=c.options.selectionStart,e=c.options.selectionEnd;a.keyCode in c._keyMap&&(b=="firstHandle"?(d=c._keyMap[a.keyCode](d),d>e&&(e=d)):(e=c._keyMap[a.keyCode](e),d>e&&(d=e)),c._setValueInRange(d,e),a.preventDefault())},_update:function(a,b){var c=this,d=c.values(),e=d[0]!=a||d[1]!=b;c.values(a,b),e&&c.trigger(n,{values:[a,b]})},values:function(){var b=this,c=b.options,d=0,e=0;if(arguments.length==0)return[c.selectionStart,c.selectionEnd];arguments.length==1&&a.isArray(arguments[0])?(d=arguments[0][0],e=arguments[0][1]):(d=K(arguments[0]),e=K(arguments[1])),d>=c.min&&d<=c.max&&e>=c.min&&e<=c.max&&d<=e&&(c.selectionStart!=d||c.selectionEnd!=e)&&(b.element.find("input").eq(0).attr("value",J(d)).end().eq(1).attr("value",J(e)),c.selectionStart=d,c.selectionEnd=e,b.refresh())},refresh:function(){var a=this,b=a.options;a.trigger(r,{values:[b.selectionStart,b.selectionEnd]}),b.selectionStart==b.max&&b.selectionEnd==b.max&&a._setZIndex("firstHandle")},_setValueInRange:function(a,b){var c=this.options;a=l.max(l.min(a,c.max),c.min),b=l.max(l.min(b,c.max),c.min),a==c.max&&b==c.max&&this._setZIndex("firstHandle"),this._update(l.min(a,b),l.max(a,b))},_setZIndex:function(b){this.wrapper.find(u).each(function(c){a(this).css("z-index",b=="firstHandle"?1-c:c)})}});N.Selection=function(a,b,c){function e(a,c){var d=0,e=0,f=b._trackDiv.find(".k-slider-selection");d=l.abs(a-c),e=a<c?a:c,f[b._size](d),f.css(b._position,e-1)}function d(d){var f=d[0]-c.min,g=d[1]-c.min,h=l.ceil(K(f/c.smallStep)),i=l.ceil(K(g/c.smallStep)),j=b._pixelSteps[h],k=b._pixelSteps[i],m=parseInt(a.eq(0)[b._outerSize]()/2,10);a.eq(0).css(b._position,j-m).end().eq(1).css(b._position,k-m),e(j,k)}d(b.values()),b.bind([n,o,r],function(a){d(a.values)})},c.ui.plugin(N)}(jQuery),function(a,b){function D(a){var b=this,d=a.orientation;b.owner=a,b._element=a.element,b.orientation=d,e(b,d===o?C:B),b._resizable=new c.ui.Resizable(a.element,{orientation:d,handle:".k-splitbar-draggable-"+d,hint:f(b._createHint,b),start:f(b._start,b),max:f(b._max,b),min:f(b._min,b),invalidClass:"k-restricted-size-"+d,resizeend:f(b._stop,b)})}function z(b,c){return function(d,e){var f=a(d).data(s);if(arguments.length==1)return f[b];f[b]=e;if(c){var g=this.element.data("kendoSplitter");g.trigger(m)}}}function y(a){return!w(a)&&!x(a)}function x(a){return h.test(a)}function w(a){return i.test(a)}var c=window.kendo,d=c.ui,e=a.extend,f=a.proxy,g=d.Widget,h=/^\d+(\.\d+)?px$/i,i=/^\d+(\.\d+)?%$/i,j="expand",k="collapse",l="contentLoad",m="resize",n="layoutChange",o="horizontal",p="vertical",q="mouseenter",r="click",s="pane",t="mouseleave",u="k-"+s,v="."+u,A=g.extend({init:function(b,c){var d=this,e,h=function(){d.trigger(m)};g.fn.init.call(d,b,c),d.wrapper=d.element,d.orientation=d.options.orientation.toLowerCase()!=p?o:p,splitbarSelector=".k-splitbar-draggable-"+d.orientation,d.bind(m,f(d._resize,d)),d._initPanes(),d._attachEvents(),a(window).resize(h),d.resizing=new D(d)},events:[j,k,l,m,n],_attachEvents:function(){var b=this,c=b.options.orientation,d=".k-splitbar-draggable-"+c,e=".k-splitbar .k-icon:not(.k-resize-handle)",g=function(){b.trigger(m)};b.element.delegate(d,q,function(){a(this).addClass("k-splitbar-"+b.orientation+"-hover")}).delegate(d,t,function(){a(this).removeClass("k-splitbar-"+b.orientation+"-hover")}).delegate(d,"mousedown",function(){b._contentFrames(this).after("<div class='k-overlay' />")}).delegate(d,"mouseup",function(){b._contentFrames(this).next(".k-overlay").remove()}).delegate(e,q,function(){a(this).addClass("k-state-hover")}).delegate(e,t,function(){a(this).removeClass("k-state-hover")}).delegate(".k-splitbar .k-collapse-next, .k-splitbar .k-collapse-prev",r,b._arrowClick(k)).delegate(".k-splitbar .k-expand-next, .k-splitbar .k-expand-prev",r,b._arrowClick(j)).delegate(".k-splitbar","dblclick",f(b._dbclick,b)).parent().closest(".k-splitter").each(function(){a(this).data("kendoSplitter").bind(m,g)})},options:{name:"Splitter",orientation:o},_initPanes:function(){var b=this,c=b.options.panes||[];b.element.addClass("k-widget").addClass("k-splitter").children().addClass(u).each(function(d,e){var f=c&&c[d];e=a(e),e.data(s,f?f:{}).toggleClass("k-scrollable",f?f.scrollable!==!1:!0),b.ajaxRequest(e)}).end(),b.trigger(m)},ajaxRequest:function(b,d,e){b=a(b);var f=this,g=b.data(s);d=d||g.contentUrl,d&&(b.append("<span class='k-icon k-loading k-pane-loading' />"),c.isLocalUrl(d)?a.ajax({url:d,data:e||{},type:"GET",dataType:"html",success:function(a){b.html(a),f.trigger(l,{pane:b[0]})}}):b.removeClass("k-scrollable").html("<iframe src='"+d+"' frameborder='0' class='k-content-frame'>"+"This page requires frames in order to show content"+NaN))},_triggerAction:function(a,b){this.trigger(a,{pane:b[0]})||this[a](b[0])},_dbclick:function(b){var c=this,d=a(b.target),e;if(d.closest(".k-splitter")[0]==c.element[0]){e=d.children(".k-icon:not(.k-resize-handle)");if(e.length!==1)return;e.is(".k-collapse-prev")?c._triggerAction(k,d.prev()):e.is(".k-collapse-next")?c._triggerAction(k,d.next()):e.is(".k-expand-prev")?c._triggerAction(j,d.prev()):e.is(".k-expand-next")&&c._triggerAction(j,d.next())}},_arrowClick:function(b){var c=this;return function(d){var e=a(d.target),f;e.closest(".k-splitter")[0]==c.element[0]&&(e.is(".k-"+b+"-prev")?f=e.parent().prev():f=e.parent().next(),c._triggerAction(b,f))}},_updateSplitBar:function(a,b,c){var d=function(a,b){return b?"<div class='k-icon "+a+"' />":""},e=this.orientation,f=b.resizable!==!1&&c.resizable!==!1,g=b.collapsible,h=b.collapsed,i=c.collapsible,j=c.collapsed;a.addClass("k-splitbar k-state-default k-splitbar-"+e).removeClass("k-splitbar-"+e+"-hover").toggleClass("k-splitbar-draggable-"+e,f&&!h&&!j).toggleClass("k-splitbar-static-"+e,!f&&!g&&!i).html(d("k-collapse-prev",g&&!h&&!j)+d("k-expand-prev",g&&h&&!j)+d("k-resize-handle",f)+d("k-collapse-next",i&&!j&&!h)+d("k-expand-next",i&&j&&!h))},_updateSplitBars:function(){var b=this;this.element.children(".k-splitbar").each(function(){var c=a(this),d=c.prev(v).data(s),e=c.next(v).data(s);!e||b._updateSplitBar(c,d,e)})},_contentFrames:function(b){return a(b).siblings(v).find("> .k-content-frame")},_resize:function(){var b=this,c=b.element,d=c.children(":not(.k-splitbar)"),e=b.orientation==o,f=c.children(".k-splitbar"),g=f.length,h=e?"width":"height",i=c[h]();g===0?(g=d.length-1,d.slice(0,g).after("<div class='k-splitbar' />"),b._updateSplitBars(),f=c.children(".k-splitbar")):b._updateSplitBars(),f.each(function(){i-=this[e?"offsetWidth":"offsetHeight"]});var j=0,k=0,l=a();d.css({position:"absolute",top:0})[h](function(){var b=a(this).data(s)||{},c;if(b.collapsed)c=0;else{if(y(b.size)){l=l.add(this);return}c=parseInt(b.size,10),w(b.size)&&(c=Math.floor(c*i/100))}k++,j+=c;return c}),i-=j;var m=l.length,p=Math.floor(i/m);l.slice(0,m-1).css(h,p).end().eq(m-1).css(h,i-(m-1)*p);var q=0,r=e?"height":"width",t=e?"left":"top",u=e?"offsetWidth":"offsetHeight";if(m==0){var v=d.filter(function(){return!(a(this).data(s)||{}).collapsed}).last();v[h](i+v[0][u])}c.children().css(r,c[r]()).each(function(a,b){b.style[t]=Math.floor(q)+"px",q+=b[u]}),b.trigger(n)},toggle:function(c,d){var c=a(c),e=c.data(s);arguments.length==1&&(d=e.collapsed===b?!1:e.collapsed),e.collapsed=!d,this.trigger(m)},collapse:function(a){this.toggle(a,!1)},expand:function(a){this.toggle(a,!0)},size:z("size",!0),min:z("min"),max:z("max")});d.plugin(A);var B={sizingProperty:"height",sizingDomProperty:"offsetHeight",alternateSizingProperty:"width",positioningProperty:"top",mousePositioningProperty:"pageY"},C={sizingProperty:"width",sizingDomProperty:"offsetWidth",alternateSizingProperty:"height",positioningProperty:"left",mousePositioningProperty:"pageX"};D.prototype={_createHint:function(b){var c=this;return a("<div class='k-ghost-splitbar k-ghost-splitbar-"+c.orientation+" k-state-default' />").css(c.alternateSizingProperty,b[c.alternateSizingProperty]())},_start:function(b){var c=this,d=a(b.currentTarget),e=d.prev(),f=d.next(),g=e.data(s),h=f.data(s),i=parseInt(e[0].style[c.positioningProperty]),j=parseInt(f[0].style[c.positioningProperty])+f[0][c.sizingDomProperty]-d[0][c.sizingDomProperty],k=c._element.css(c.sizingProperty),l=function(a){var b=parseInt(a,10);return(x(a)?b:k*b/100)||0},m=l(g.min),n=l(g.max)||j-i,o=l(h.min),p=l(h.max)||j-i;c.previousPane=e,c.nextPane=f,c._maxPosition=Math.min(j-o,i+n),c._minPosition=Math.max(i+m,j-p)},_max:function(a){return this._maxPosition},_min:function(a){return this._minPosition},_stop:function(b){var d=this,e=a(b.currentTarget),f=d.owner;f._contentFrames(e).next(".k-overlay").remove();if(b.keyCode!==c.keys.ESC){var g=b.position,h=e.prev(),i=e.next(),j=h.data(s),k=i.data(s),l=g-parseInt(h[0].style[d.positioningProperty]),n=parseInt(i[0].style[d.positioningProperty])+i[0][d.sizingDomProperty]-g-e[0][d.sizingDomProperty],o=d._element.children(v).filter(function(){return y(a(this).data(s).size)}).length;if(!y(j.size)||o>1)y(j.size)&&o--,j.size=l+"px";if(!y(k.size)||o>1)k.size=n+"px";f.trigger(m)}return!1}}}(jQuery),function(a,b){function E(){var c={},d=a("meta[name=csrf-token]").attr("content"),e=a("meta[name=csrf-param]").attr("content");a("input[name^='__RequestVerificationToken']").each(function(){c[this.name]=this.value}),e!==b&&d!==b&&(c[e]=d);return c}function D(b){return a(b.target).closest(".k-file")}function C(a){return a.children(".k-icon").is(".k-loading, .k-success, .k-fail")}function B(a,b,c){var d,e;a.bind("dragenter",function(a){b(),e=new Date,d||(d=setInterval(function(){var a=new Date-e;a>100&&(c(),clearInterval(d),d=null)},100))}).bind("dragover",function(a){e=new Date})}function A(a){a.stopPropagation(),a.preventDefault()}function z(b,c,d){try{var e=a.parseJSON(b);c(e)}catch(f){d()}}function y(b,c,d){if(!!c._supportsRemove()){var f=b.data("fileNames"),g=a.map(f,function(a){return a.name});c._submitRemove(g,d,function(a,d,e){c._removeFileEntry(b),c.trigger(i,{operation:"remove",files:f,response:a,XMLHttpRequest:e})},function(a,b,b){var d=c.trigger(j,{operation:"remove",files:f,XMLHttpRequest:a});e("Server response: "+a.responseText),d||c._alert("Error! Remove operation failed. Unexpected response - see console.")})}}function x(a){var b=a.lastIndexOf("\\");return b!=-1?a.substr(b+1):a}function w(a){var b=a.match(f);return b?b[0]:""}function v(a){var b=a.name||a.fileName;return{name:b,extension:w(b),size:a.size||a.fileSize,rawFile:a}}function u(b){return a.map(b,function(a){return v(a)})}function t(a){var b=a[0];return b.files?u(b.files):[{name:x(b.value),extension:w(b.value),size:null}]}function s(b){return a.map(t(b),function(a){return a.name}).join(", ")}var c=window.kendo,d=c.ui.Widget,e=c.logToConsole,f=/\.([^\.]+)$/,g="select",h="upload",i="success",j="error",k="complete",l="cancel",m="load",n="remove",o=d.extend({init:function(c,e){var f=this;d.fn.init.call(f,c,e),f.name=c.name,f.multiple=f.options.multiple,f.localization=f.options.localization;var g=f.element;f.wrapper=g.closest(".k-upload"),f.wrapper.length==0&&(f.wrapper=f._wrapInput(g)),f._activeInput(g),f.toggle(f.options.enabled),g.closest("form").bind({submit:a.proxy(f._onParentFormSubmit,f),reset:a.proxy(f._onParentFormReset,f)}),f.options.async.saveUrl!=b?f._module=f._supportsFormData()?new r(f):new q(f):f._module=new p(f),f._supportsDrop()&&f._setupDropZone(),f.wrapper.delegate(".k-upload-action","click",a.proxy(f._onFileAction,f)).delegate(".k-upload-selected","click",a.proxy(f._onUploadSelected,f)).delegate(".k-file","t:progress",a.proxy(f._onFileProgress,f)).delegate(".k-file","t:upload-success",a.proxy(f._onUploadSuccess,f)).delegate(".k-file","t:upload-error",a.proxy(f._onUploadError,f))},events:[g,h,i,j,k,l,n],options:{name:"Upload",enabled:!0,multiple:!0,showFileList:!0,async:{removeVerb:"POST",autoUpload:!0},localization:{select:"Select...",cancel:"Cancel",retry:"Retry",remove:"Remove",uploadSelectedFiles:"Upload files",dropFilesHere:"drop files here to upload",statusUploading:"uploading",statusUploaded:"uploaded",statusFailed:"failed"}},setOptions:function(a){var b=this,c=b.element;d.fn.setOptions.call(b,a),b.multiple=b.options.multiple,c.attr("multiple",b._supportsMultiple()?b.multiple:!1),b.toggle(b.options.enabled)},enable:function(a){a=typeof a=="undefined"?!0:a,this.toggle(a)},disable:function(){this.toggle(!1)},toggle:function(a){a=typeof a=="undefined"?a:!a,this.wrapper.toggleClass("k-state-disabled",a)},_addInput:function(b){var c=this;b.insertAfter(c.element).data("kendoUpload",c),a(c.element).hide().removeAttr("id"),c._activeInput(b)},_activeInput:function(b){var c=this,d=c.wrapper;c.element=b,b.attr("multiple",c._supportsMultiple()?c.multiple:!1).attr("autocomplete","off").click(function(a){d.hasClass("k-state-disabled")&&a.preventDefault()}).change(a.proxy(c._onInputChange,c))},_onInputChange:function(b){var c=this,d=a(b.target),e=c.trigger(g,{files:t(d)});e?(c._addInput(d.clone().val("")),d.remove()):d.trigger("t:select")},_onDrop:function(b){var c=b.originalEvent.dataTransfer,d=this,e=c.files;A(b);if(e.length>0){var f=d.trigger(g,{files:u(e)});f||a(".k-dropzone",d.wrapper).trigger("t:select",[e])}},_enqueueFile:function(b,c){var d=this,e,f,g=a(".k-upload-files",d.wrapper);g.length==0&&(g=a("<ul class='k-upload-files k-reset'></ul>").appendTo(d.wrapper),d.options.showFileList||g.hide()),e=a(".k-file",g),f=a("<li class='k-file'><span class='k-icon'></span><span class='k-filename' title='"+b+"'>"+b+"</span></li>").appendTo(g).data(c),d.multiple||e.trigger("t:remove");return f},_removeFileEntry:function(b){var c=b.closest(".k-upload-files"),d;b.remove(),d=a(".k-file",c),d.find("> .k-fail").length===d.length&&this._hideUploadButton(),d.length==0&&c.remove()},_fileAction:function(a,b){var c={remove:"k-delete",cancel:"k-cancel",retry:"k-retry"};!c.hasOwnProperty(b)||(this._clearFileAction(a),a.append(this._renderAction(c[b],this.localization[b]).addClass("k-upload-action")))},_fileState:function(a,b){var c=this.localization,d={uploading:{cssClass:"k-loading",text:c.statusUploading},uploaded:{cssClass:"k-success",text:c.statusUploaded},failed:{cssClass:"k-fail",text:c.statusFailed}},e=d[b];if(e){var f=a.children(".k-icon").text(e.text);f[0].className="k-icon "+e.cssClass}},_renderAction:function(b,c){return b!=""?a("<button type='button' class='k-button k-button-icontext'><span class='k-icon "+b+"'></span>"+c+"</button>"):a("<button type='button' class='k-button'>"+c+"</button>")},_clearFileAction:function(a){a.find(".k-upload-action").remove()},_onFileAction:function(b){var c=this;if(!c.wrapper.hasClass("k-state-disabled")){var d=a(b.target).closest(".k-upload-action"),e=d.find(".k-icon"),f=d.closest(".k-file"),g={files:f.data("fileNames")};e.hasClass("k-delete")?c.trigger(n,g)||f.trigger("t:remove",g.data):e.hasClass("k-cancel")?(c.trigger(l,g),f.trigger("t:cancel"),this._checkAllComplete()):e.hasClass("k-retry")&&f.trigger("t:retry")}return!1},_onUploadSelected:function(){this.wrapper.trigger("t:saveSelected");return!1},_onFileProgress:function(b,c){var d=a(".k-progress-status",b.target);d.length==0&&(d=a("<span class='k-progress'><span class='k-progress-status' style='width: 0;'></span></span>").appendTo(a(".k-filename",b.target)).find(".k-progress-status")),d.width(c+"%")},_onUploadSuccess:function(a,b,c){var d=D(a);this._fileState(d,"uploaded"),this.trigger(i,{files:d.data("fileNames"),response:b,operation:"upload",XMLHttpRequest:c}),this._supportsRemove()?this._fileAction(d,n):this._clearFileAction(d),this._checkAllComplete()},_onUploadError:function(a,b){var c=D(a);this._fileState(c,"failed"),this._fileAction(c,"retry");var d=this.trigger(j,{operation:"upload",files:c.data("fileNames"),XMLHttpRequest:b});e("Server response: "+b.responseText),d||this._alert("Error! Upload failed. Unexpected server response - see console."),this._checkAllComplete()},_showUploadButton:function(){var b=a(".k-upload-selected",this.wrapper);b.length==0&&(b=this._renderAction("",this.localization.uploadSelectedFiles).addClass("k-upload-selected")),this.wrapper.append(b)},_hideUploadButton:function(){a(".k-upload-selected",this.wrapper).remove()},_onParentFormSubmit:function(){var b=this,c=b.element;c.trigger("t:abort");if(!c.value){var d=a(c);d.attr("disabled","disabled"),window.setTimeout(function(){d.removeAttr("disabled")},0)}},_onParentFormReset:function(){a(".k-upload-files",this.wrapper).remove()},_supportsFormData:function(){return typeof FormData!="undefined"},_supportsMultiple:function(){return!a.browser.opera},_supportsDrop:function(){var a=this._userAgent().toLowerCase(),c=/chrome/.test(a),d=!c&&/safari/.test(a),e=d&&/windows/.test(a);return!e&&this._supportsFormData()&&this.options.async.saveUrl!=b},_userAgent:function(){return navigator.userAgent},_setupDropZone:function(){a(".k-upload-button",this.wrapper).wrap("<div class='k-dropzone'></div>");var b=a(".k-dropzone",this.wrapper).append(a("<em>"+this.localization.dropFilesHere+"</em>")).bind({dragenter:A,dragover:function(a){a.preventDefault()},drop:a.proxy(this._onDrop,this)});B(b,function(){b.addClass("k-dropzone-hovered")},function(){b.removeClass("k-dropzone-hovered")}),B(a(document),function(){b.addClass("k-dropzone-active")},function(){b.removeClass("k-dropzone-active")})},_supportsRemove:function(){return this.options.async.removeUrl!=b},_submitRemove:function(b,c,d,e){var f=this,g=f.options.async.removeField||"fileNames",h=a.extend(c,E());h[g]=b,a.ajax({type:this.options.async.removeVerb,dataType:"json",url:this.options.async.removeUrl,traditional:!0,data:h,success:d,error:e})},_alert:function(a){alert(a)},_wrapInput:function(a){a.wrap("<div class='k-widget k-upload'><div class='k-button k-upload-button'></div></div>"),a.closest(".k-button").append("<span>"+this.localization.select+"</span>");return a.closest(".k-upload")},_checkAllComplete:function(){a(".k-file .k-icon.k-loading",this.wrapper).length==0&&this.trigger(k)}}),p=function(b){this.name="syncUploadModule",this.element=b.wrapper,this.upload=b,this.element.bind("t:select",a.proxy(this.onSelect,this)).bind("t:remove",a.proxy(this.onRemove,this)).closest("form").attr("enctype","multipart/form-data").attr("encoding","multipart/form-data")};p.prototype={onSelect:function(b){var c=this.upload,d=a(b.target);c._addInput(d.clone().val(""));var e=c._enqueueFile(s(d),{relatedInput:d,fileNames:t(d)});c._fileAction(e,n)},onRemove:function(a){var b=D(a);b.data("relatedInput").remove(),this.upload._removeFileEntry(b)}};var q=function(b){this.name="iframeUploadModule",this.element=b.wrapper,this.upload=b,this.iframes=[],this.element.bind("t:select",a.proxy(this.onSelect,this)).bind("t:cancel",a.proxy(this.onCancel,this)).bind("t:retry",a.proxy(this.onRetry,this)).bind("t:remove",a.proxy(this.onRemove,this)).bind("t:saveSelected",a.proxy(this.onSaveSelected,this)).bind("t:abort",a.proxy(this.onAbort,this))};o._frameId=0,q.prototype={onSelect:function(b){var c=this.upload,d=a(b.target),e=this.prepareUpload(d);c.options.async.autoUpload?this.performUpload(e):(c._supportsRemove()&&this.upload._fileAction(e,n),c._showUploadButton())},prepareUpload:function(b){var c=this.upload,d=a(c.element),e=c.options.async.saveField||b.attr("name");c._addInput(b.clone().val("")),b.attr("name",e);var f=this.createFrame(c.name+"_"+o._frameId++);this.registerFrame(f);var g=this.createForm(c.options.async.saveUrl,f.attr("name")).append(d),h=c._enqueueFile(s(b),{frame:f,relatedInput:d,fileNames:t(b)});f.data({form:g,file:h});return h},performUpload:function(b){var c={files:b.data("fileNames")},d=b.data("frame"),e=this.upload;if(!e.trigger(h,c)){e._hideUploadButton(),d.appendTo(document.body);var f=d.data("form").appendTo(document.body);c.data=a.extend({},c.data,E());for(var g in c.data){var i=f.find("input[name='"+g+"']");i.length==0&&(i=a("<input>",{type:"hidden",name:g}).appendTo(f)),i.val(c.data[g])}e._fileAction(b,l),e._fileState(b,"uploading"),d.one("load",a.proxy(this.onIframeLoad,this)),f[0].submit()}else e._removeFileEntry(d.data("file")),this.cleanupFrame(d),this.unregisterFrame(d)},onSaveSelected:function(b){var c=this;a(".k-file",this.element).each(function(){var b=a(this),d=C(b);d||c.performUpload(b)})},onIframeLoad:function(b){var c=a(b.target);try{var d=c.contents().text()}catch(b){d="Error trying to get server response: "+b}this.processResponse(c,d)},processResponse:function(b,c){var d=b.data("file"),e=this,f={responseText:c};z(c,function(c){a.extend(f,{statusText:"OK",status:"200"}),d.trigger("t:upload-success",[c,f]),e.cleanupFrame(b),e.unregisterFrame(b)},function(){a.extend(f,{statusText:"error",status:"500"}),d.trigger("t:upload-error",[f])})},onCancel:function(b){var c=a(b.target).data("frame");this.stopFrameSubmit(c),this.cleanupFrame(c),this.unregisterFrame(c),this.upload._removeFileEntry(c.data("file"))},onRetry:function(a){var b=D(a);this.performUpload(b)},onRemove:function(a,b){var c=D(a),d=c.data("frame");d?(this.unregisterFrame(d),this.upload._removeFileEntry(c),this.cleanupFrame(d)):y(c,this.upload,b)},onAbort:function(){var b=this.element,c=this;a.each(this.iframes,function(){a("input",this.data("form")).appendTo(b),c.stopFrameSubmit(this[0]),this.data("form").remove(),this.remove()}),this.iframes=[]},createFrame:function(b){return a("<iframe name='"+b+"'"+" id='"+b+"'"+" style='display:none;' />")},createForm:function(b,c){return a("<form enctype='multipart/form-data' method='POST' action='"+b+"'"+" target='"+c+"'"+"/>")},stopFrameSubmit:function(a){typeof a.stop!="undefined"?a.stop():a.document&&(a.document.execCommand("Stop"),a.contentWindow.location.href=a.contentWindow.location.href)},registerFrame:function(a){this.iframes.push(a)},unregisterFrame:function(b){this.iframes=a.grep(this.iframes,function(a){return a.attr("name")!=b.attr("name")})},cleanupFrame:function(a){var b=a.data("form");a.data("file").data("frame",null),setTimeout(function(){b.remove(),a.remove()},1)}};var r=function(b){this.name="formDataUploadModule",this.element=b.wrapper,this.upload=b,this.element.bind("t:select",a.proxy(this.onSelect,this)).bind("t:cancel",a.proxy(this.onCancel,this)).bind("t:remove",a.proxy(this.onRemove,this)).bind("t:retry",a.proxy(this.onRetry,this)).bind("t:saveSelected",a.proxy(this.onSaveSelected,this)).bind("t:abort",a.proxy(this.onAbort,this))};r.prototype={onSelect:function(b,c){var d=this.upload,e=this,f=a(b.target),g=c?u(c):this.inputFiles(f),h=this.prepareUpload(f,g);a.each(h,function(){d.options.async.autoUpload?e.performUpload(this):(d._supportsRemove()&&d._fileAction(this,n),d._showUploadButton())})},prepareUpload:function(b,c){var d=this.enqueueFiles(c);b.is("input")&&(a.each(d,function(){a(this).data("relatedInput",b)}),b.data("relatedFileEntries",d),this.upload._addInput(b.clone().val("")));return d},enqueueFiles:function(a){var b=this.upload;fileEntries=[];for(var c=0;c<a.length;c++){var d=a[c],e=d.name,f=b._enqueueFile(e,{fileNames:[d]});f.data("formData",this.createFormData(a[c])),fileEntries.push(f)}return fileEntries},inputFiles:function(a){return t(a)},performUpload:function(b){var c=this.upload,d=b.data("formData"),e={files:b.data("fileNames")};if(!c.trigger(h,e)){c._fileAction(b,l),c._hideUploadButton(),e.data=a.extend({},e.data,E());for(var f in e.data)d.append(f,e.data[f]);c._fileState(b,"uploading"),this.postFormData(this.upload.options.async.saveUrl,d,b)}else this.removeFileEntry(b)},onSaveSelected:function(b){var c=this;a(".k-file",this.element).each(function(){var b=a(this),d=C(b);d||c.performUpload(b)})},onCancel:function(a){var b=D(a);this.stopUploadRequest(b),this.removeFileEntry(b)},onRetry:function(a){var b=D(a);this.performUpload(b)},onRemove:function(a,b){var c=D(a);c.children(".k-icon").is(".k-success")?y(c,this.upload,b):this.removeFileEntry(c)},postFormData:function(a,b,c){var d=new XMLHttpRequest,e=this;c.data("request",d),d.addEventListener("load",function(a){e.onRequestSuccess.call(e,a,c)},!1),d.addEventListener(j,function(a){e.onRequestError.call(e,a,c)},!1),d.upload.addEventListener("progress",function(a){e.onRequestProgress.call(e,a,c)},!1),d.open("POST",a),d.send(b)},createFormData:function(a){var b=new FormData,c=this.upload;b.append(c.options.async.saveField||c.name,a.rawFile);return b},onRequestSuccess:function(a,b){var c=a.target,d=this;z(c.responseText,function(a){b.trigger("t:upload-success",[a,c]),b.trigger("t:progress",[100]),d.cleanupFileEntry(b)},function(){b.trigger("t:upload-error",[c])})},onRequestError:function(a,b){var c=a.target;b.trigger("t:upload-error",[c])},cleanupFileEntry:function(b){var c=b.data("relatedInput"),d=!0;c&&(a.each(c.data("relatedFileEntries"),function(){this.parent().length>0&&this[0]!=b[0]&&(d=d&&this.children(".k-icon").is(".k-success"))}),d&&c.remove()),b.data("formData",null)},removeFileEntry:function(a){this.cleanupFileEntry(a),this.upload._removeFileEntry(a)},onRequestProgress:function(a,b){var c=Math.round(a.loaded*100/a.total);b.trigger("t:progress",[c])},stopUploadRequest:function(a){a.data("request").abort()}},c.ui.plugin(o)}(jQuery),function(a,b){function Q(a){var b=this;b.owner=a,b._draggable=new e(a.wrapper,{filter:o,group:a.wrapper.id+"-moving",dragstart:h(b.dragstart,b),drag:h(b.drag,b),dragend:h(b.dragend,b),dragcancel:h(b.dragcancel,b)})}function P(a){var b=this;b.owner=a,b._draggable=new e(a.wrapper,{filter:q,group:a.wrapper.id+"-resizing",dragstart:h(b.dragstart,b),drag:h(b.drag,b),dragend:h(b.dragend,b)})}function O(b,c){var d=b,e,f;c.scrollable===!1&&d.attr("style","overflow:hidden;"),c.iframe&&d.html(m.contentFrame(c)),f=a(m.wrapper(c)),c.title!==!1&&f.append(m.titlebar(i(m,c))),f.toggleClass("k-rtl",!!b.closest(".k-rtl").length),e=d.find("iframe").map(function(a){var b=this.getAttribute("src");this.src="";return b}),f.appendTo(l).append(d).find("iframe").each(function(a){this.src=e[a]})}function M(a,b){return function(){var a=this,c=a.wrapper,d=c[0].style,e=a.options;if(!e.isMaximized&&!e.isMinimized){a.restoreOptions={width:d.width,height:d.height},c.find(q).hide().end().find(I).parent().hide().eq(0).before(m.action({name:"Restore"})),b.call(a);return a}}}function L(){return a(n).filter(function(){var b=a(this);return b.is(v)&&K(b).options.modal})}function K(a){return a.children(p).data("kendoWindow")}var c=window.kendo,d=c.ui.Widget,e=c.ui.Draggable,f=c.fx,g=a.isPlainObject,h=a.proxy,i=a.extend,j=a.each,k=c.template,l,m,n=".k-window",o=".k-window-titlebar",p=".k-window-content",q=".k-resize-handle",r=".k-overlay",s="k-content-frame",t="k-loading",u="k-state-hover",v=":visible",w="cursor",x="open",y="activate",z="deactivate",A="close",B="refresh",C="resize",D="dragstart",E="dragend",F="error",G="overflow",H="zIndex",I=".k-window-actions .k-minimize,.k-window-actions .k-maximize",J=c.isLocalUrl,N=d.extend({init:function(b,e){var f=this,i,k,p,q,r,s=!1,t;l=document.body,d.fn.init.call(f,b,e),e=f.options,b=f.element,t=e.content,f._animations(),g(t)||(t=e.content={url:t}),b.parent().is("body")||(b.is(v)?(p=b.offset(),s=!0):(q=b.css("visibility"),r=b.css("display"),b.css({visibility:"hidden",display:""}),p=b.offset(),b.css({visibility:q,display:r}))),i=f.wrapper=b.closest(n);if(!b.is(".k-content")||!i[0])b.addClass("k-window-content k-content"),O(b,e),i=f.wrapper=b.closest(n),f._dimensions();p&&(s?i.css({top:p.top,left:p.left}):i.css({top:p.top,left:p.left,visibility:"visible",display:"none"})),t&&f.refresh(t),f.toFront(),e.modal&&f._overlay(i.is(v)).css({opacity:.5}),i.on({mouseenter:function(){a(this).addClass(u)},mouseleave:function(){a(this).removeClass(u)},click:h(f._windowActionHandler,f)},".k-window-titlebar .k-window-action"),e.resizable&&(i.on("dblclick",o,h(f.toggleMaximization,f)),j("n e s w se sw ne nw".split(" "),function(a,b){i.append(m.resizeHandle(b))}),f.resizing=new P(f)),e.draggable&&(f.dragging=new Q(f)),i.add(i.find(".k-resize-handle,.k-window-titlebar")).on("mousedown",h(f.toFront,f)),f.touchScroller=c.touchScroller(b),a(window).resize(h(f._onDocumentResize,f)),i.is(v)&&(f.trigger(x),f.trigger(y)),c.notify(f)},_dimensions:function(){var a=this,b=a.wrapper,c=a.element,d=a.options;a.title(d.title),d.width&&b.width(d.width),d.height&&b.height(d.height),j(["minWidth","minHeight","maxWidth","maxHeight"],function(a,b){var e=d[b];e&&e!=Infinity&&c.css(b,e)}),d.visible||b.hide()},_animations:function(){var a=this.options;a.animation===!1&&(a.animation={open:{show:!0,effects:{}},close:{hide:!0,effects:{}}})},setOptions:function(a){d.fn.setOptions.call(this,a),this._animations(),this._dimensions()},events:[x,y,z,A,B,C,D,E,F],options:{name:"Window",animation:{open:{effects:{zoom:{direction:"in"},fade:{direction:"in"}},duration:350,show:!0},close:{effects:{zoom:{direction:"out",properties:{scale:.7}},fade:{direction:"out"}},duration:350,hide:!0}},title:"",actions:["Close"],modal:!1,resizable:!0,draggable:!0,minWidth:90,minHeight:50,maxWidth:Infinity,maxHeight:Infinity,visible:!0},_overlay:function(b){var c=a("body > .k-overlay"),d=a(document),e=this.wrapper;c.length==0&&(c=a("<div class='k-overlay' />")),c.insertBefore(e[0]).toggle(b).css(H,parseInt(e.css(H))-1);return c},_windowActionHandler:function(b){var c=a(b.target).closest(".k-window-action").find(".k-icon"),d=this;j({"k-close":d.close,"k-maximize":d.maximize,"k-minimize":d.minimize,"k-restore":d.restore,"k-refresh":d.refresh},function(a,e){if(c.hasClass(a)){b.preventDefault(),e.call(d);return!1}})},center:function(){var b=this.wrapper,c=a(window);b.css({left:c.scrollLeft()+Math.max(0,(c.width()-b.width())/2),top:c.scrollTop()+Math.max(0,(c.height()-b.height())/2)});return this},title:function(a){var b=this,c=b.wrapper,d=b.options,e=c.find(o),f=e.children(".k-window-title"),g=e.outerHeight();if(arguments.length==0)return f.text();a===!1?(c.addClass("k-window-titleless"),e.remove()):(e.length==0&&c.prepend(m.titlebar(i(m,d))),c.css("padding-top",g),e.css("margin-top",-g)),f.text(a);return b},content:function(a){var b=this.wrapper.children(p);if(!a)return b.html();b.html(a);return this},open:function(){var b=this,c=b.wrapper,d=b.options.animation.open,e=c.children(p),f=e.css(G);if(!b.trigger(x)){b.toFront();if(b.options.modal){var g=b._overlay(!1);d.duration?g.kendoStop().kendoAnimate({effects:{fade:{direction:"out",properties:{opacity:.5}}},duration:d.duration,show:!0}):g.css("opacity",.5).show()}c.is(v)||(e.css(G,"hidden"),c.show().kendoStop().kendoAnimate({effects:d.effects,duration:d.duration,complete:function(){b.trigger(y),e.css(G,f)}}))}b.options.isMaximized&&a("html, body").css(G,"hidden");return b},close:function(){var c=this,d=c.wrapper,e=c.options,f=e.animation.open,g=e.animation.close,h,i,j;d.is(v)&&!c.trigger(A)&&(h=L(),i=e.modal&&h.length==1,j=e.modal?c._overlay(!0):a(b),i?g.duration?j.kendoStop().kendoAnimate({effects:{fadeOut:{properties:{opacity:0}}},duration:g.duration,hide:!0}):j.hide():h.length&&K(h.eq(h.length-2))._overlay(!0),d.kendoStop().kendoAnimate({effects:g.effects||f.effects,reverse:g.reverse===!0,duration:g.duration,complete:function(){d.hide(),c.trigger(z)}})),c.options.isMaximized&&a("html, body").css(G,"");return c},toFront:function(){var b=this,c=b.wrapper,d=c[0],e=+c.css(H);a(n).each(function(b,c){var f=a(c),g=f.css(H),h=f.find(p);isNaN(g)||(e=Math.max(+g,e)),c!=d&&h.find("> ."+s).length>0&&h.append(m.overlay)}),c.css(H,e+2),b.element.find("> .k-overlay").remove();return b},toggleMaximization:function(){return this[this.options.isMaximized?"restore":"maximize"]()},restore:function(){var b=this,c=b.options,d=b.restoreOptions;if(!!c.isMaximized||!!c.isMinimized){b.wrapper.css({position:"absolute",left:d.left,top:d.top,width:d.width,height:d.height}).find(".k-window-content,.k-resize-handle").show().end().find(".k-window-titlebar .k-restore").parent().remove().end().end().find(I).parent().show(),a("html, body").css(G,""),c.isMaximized=c.isMinimized=!1,b.trigger(C);return b}},maximize:M("maximize",function(){var b=this,c=b.wrapper,d=c.position();i(b.restoreOptions,{left:d.left,top:d.top}),c.css({left:0,top:0,position:"fixed"}),a("html, body").css(G,"hidden"),b.options.isMaximized=!0,b._onDocumentResize()}),minimize:M("minimize",function(){var a=this;a.wrapper.css("height",""),a.element.hide(),a.options.isMinimized=!0}),_onDocumentResize:function(){var b=this,c=b.wrapper,d=a(window);!b.options.isMaximized||(c.css({width:d.width(),height:d.height()}),b.trigger(C))},refresh:function(b){var c=this,d=c.options,e=a(c.element),f,h;g(b)||(b={url:b}),b=i({},d.content,b),h=b.url,h?c.options.iframe===!1||J(h)?c._ajaxRequest(b):(f=e.find("."+s)[0],f?f.src=h||f.src:e.html(m.contentFrame(i({},d,{content:b})))):b.template&&c.content(k(b.template)({}));return c},_ajaxRequest:function(b){var c=this,d=b.template,e=c.wrapper.find(".k-window-titlebar .k-refresh"),f=setTimeout(function(){e.addClass(t)},100);a.ajax(i({type:"GET",dataType:"html",cache:!1,error:h(function(a,b){c.trigger(F)},c),complete:function(){clearTimeout(f),e.removeClass(t)},success:h(function(a,b){d&&(a=k(d)(a||{})),c.element.html(a),c.trigger(B)},c)},b))},destroy:function(){var a=this,b,c;a.wrapper.remove(),b=L(),c=a.options.modal&&!b.length,c?a._overlay(!1).remove():b.length>0&&K(b.eq(b.length-2))._overlay(!0)}});m={wrapper:k("<div class='k-widget k-window' />"),action:k("<a href='\\#' class='k-window-action k-link'><span class='k-icon k-#= name.toLowerCase() #'>#= name #</span></a>"),titlebar:k("<div class='k-window-titlebar k-header'> <span class='k-window-title'>#= title #</span><div class='k-window-actions k-header'># for (var i = 0; i < actions.length; i++) { ##= action({ name: actions[i] }) ## } #</div></div>"),overlay:"<div class='k-overlay' />",contentFrame:k("<iframe src='#= content.url #' title='#= title #' frameborder='0' class='"+s+"'>"+"This page requires frames in order to show content"+"</iframe>"),resizeHandle:k("<div class='k-resize-handle k-resize-#= data #'></div>")},P.prototype={dragstart:function(b){var c=this.owner,d=c.wrapper;c.elementPadding=parseInt(c.wrapper.css("padding-top")),c.initialCursorPosition=d.offset(),c.resizeDirection=b.currentTarget.prop("className").replace("k-resize-handle k-resize-","").split(""),c.initialSize={width:c.wrapper.width(),height:c.wrapper.height()},d.append(m.overlay).find(q).not(b.currentTarget).hide(),a(l).css(w,b.currentTarget.css(w))},drag:function(a){var b=this.owner,c=b.wrapper,d=b.options,e=function(a,b,c){return Math.max(Math.min(a,c),b)},f={e:function(){var f=a.x.location-b.initialCursorPosition.left;c.width(e(f,d.minWidth,d.maxWidth))},s:function(){var f=a.y.location-b.initialCursorPosition.top-b.elementPadding;c.height(e(f,d.minHeight,d.maxHeight))},w:function(){var f=b.initialCursorPosition.left+b.initialSize.width,g=e(f-a.x.location,d.minWidth,d.maxWidth);c.css({left:f-g,width:g})},n:function(){var f=b.initialCursorPosition.top+b.initialSize.height,g=e(f-a.y.location,d.minHeight,d.maxHeight);c.css({top:f-g,height:g})}};j(b.resizeDirection,function(){f[this]()}),b.trigger(C)},dragend:function(b){var c=this.owner,d=c.wrapper;d.find(r).remove().end().find(q).not(b.currentTarget).show(),a(l).css(w,""),c.touchScroller&&c.touchScroller.reset(),b.keyCode==27&&d.css(c.initialCursorPosition).css(c.initialSize);return!1}},Q.prototype={dragstart:function(b){var c=this.owner,d=c.element,e=d.find(".k-window-actions");c.trigger(D),c.initialWindowPosition=c.wrapper.position(),c.startPosition={left:b.x.client-c.initialWindowPosition.left,top:b.y.client-c.initialWindowPosition.top},e.length>0?c.minLeftPosition=e.outerWidth()+parseInt(e.css("right"),10)-d.outerWidth():c.minLeftPosition=20-d.outerWidth(),c.wrapper.append(m.overlay).find(q).hide(),a(l).css(w,b.currentTarget.css(w))},drag:function(b){var c=this.owner,d={left:Math.max(b.x.client-c.startPosition.left,c.minLeftPosition),top:Math.max(b.y.client-c.startPosition.top,0)};a(c.wrapper).css(d)},dragcancel:function(b){var c=this.owner;c.wrapper.find(q).show().end().find(r).remove(),a(l).css(w,""),b.currentTarget.closest(n).css(c.initialWindowPosition)},dragend:function(b){var c=this.owner;c.wrapper.find(q).show().end().find(r).remove(),a(l).css(w,""),c.trigger(E);return!1}},c.ui.plugin(N)}(jQuery)
|
10
|
+
;(function(a,b){function bk(d,e){var f={},g,h;for(g in e)h=bj(d,g),h!==b&&(bf.test(g)&&(h=c.template(a("#"+h).html())),f[g]=h);return f}function bj(d,e){var f;e.indexOf("data")===0&&(e=e.substring(4),e=e.charAt(0).toLowerCase()+e.substring(1)),e=e.replace(bi,"-$1"),f=d.getAttribute("data-"+c.ns+e),f===null?f=b:f==="null"?f=null:f==="true"?f=!0:f==="false"?f=!1:isNaN(parseFloat(f))?bg.test(f)&&!bh.test(f)&&(f=a.parseJSON(f)):f=parseFloat(f);return f}function _(a){return(""+a).replace(Y,"&").replace(Z,"<").replace($,">")}function X(a,b,c,d){b&&(b=b.split(" "),e(b,function(b,c){a.toggleClass(c,d)}));return a}function W(a,b,c,d,e,f){return T.transitionPromise(a,b,U(c,d,e,f))}function V(b,c,d,e,f){b.each(function(b,g){g=a(g),g.queue(function(){T.promise(g,U(c,d,e,f))})});return b}function U(a,b,c,e){typeof a===r&&(i(b)&&(e=b,b=400,c=!1),i(c)&&(e=c,c=!1),typeof b===v&&(c=b,b=400),a={effects:a,duration:b,reverse:c,complete:e});return d({effects:{},duration:400,reverse:!1,init:h,teardown:h,hide:!1,show:!1},a,{completeCallback:a.complete,complete:h})}function S(a){var b={};e(typeof a=="string"?a.split(" "):a,function(a){b[a]=this});return b}function Q(a,b){b||(b="offset");var c=a[b](),d=m.mobileOS;if(m.touch&&d.ios&&d.flatVersion<410){var e=b=="offset"?c:a.offset(),f=c.left==e.left&&c.top==e.top;if(f)return{top:c.top-window.scrollY,left:c.left-window.scrollX}}return c}function P(b){return a.trim(a(b).contents().filter(function(){return this.nodeType!=8}).html())===""}function O(a){var b=0,c;for(c in a)a.hasOwnProperty(c)&&c!="toJSON"&&b++;return b}function N(a,b){var c,d,e,f;for(c in b)d=b[c],e=typeof d,e===t&&d!==null&&d.constructor!==Array?d instanceof Date?a[c]=new Date(d.getTime()):(f=a[c],typeof f===t?a[c]=f||{}:a[c]={},N(a[c],d)):e!==w&&(a[c]=d);return a}function M(a){var b=1,c=arguments.length;for(b=1;b<c;b++)N(a,arguments[b]);return a}function L(b){var d=a.browser,e;if(!b.parent().hasClass("k-animation-container")){var f=b.css(c.support.transitions.css+"box-shadow")||b.css("box-shadow"),g=f?f.match(p)||[0,0,0,0,0]:[0,0,0,0,0],h=j.max(+g[3],+(g[4]||0)),i=-g[1]+h,k=+g[1]+h,l=+g[2]+h,m=b[0].style.width,o=b[0].style.height,q=n.test(m),r=n.test(o);d.opera&&(i=k=l=5),e=q||r,q||(m=b.outerWidth()),r||(o=b.outerHeight()),b.wrap(a("<div/>").addClass("k-animation-container").css({width:m,height:o,marginLeft:-i,paddingLeft:i,paddingRight:k,paddingBottom:l})),e&&b.css({width:"100%",height:"100%",boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"})}else{var s=b.parent(".k-animation-container"),t=s[0].style;s.is(":hidden")&&s.show(),e=n.test(t.width)||n.test(t.height),e||s.css({width:b.outerWidth(),height:b.outerHeight()})}d.msie&&j.floor(d.version)<=7&&b.css({zoom:1});return b.parent()}function K(a){return a<10?"0"+a:a}function D(a,b){if(b)return"'"+a.split("'").join("\\'").split('\\"').join('\\\\\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")+"'";var c=a.charAt(0),d=a.substring(1);return c==="="?"+("+d+")+":c===":"?"+e("+d+")+":";"+a+";o+="}function B(){}var c=window.kendo=window.kendo||{},d=a.extend,e=a.each,f=a.proxy,g=a.isArray,h=a.noop,i=a.isFunction,j=Math,k,l=window.JSON||{},m={},n=/%/,o=/\{(\d+)(:[^\}]+)?\}/g,p=/(\d+?)px\s*(\d+?)px\s*(\d+?)px\s*(\d+?)?/i,q="function",r="string",s="number",t="object",u="null",v="boolean",w="undefined",x={},y={},z=[].slice,A=window.Globalize;B.extend=function(a){var b=function(){},c,e=this,f=a&&a.init?a.init:function(){e.apply(this,arguments)},g;b.prototype=e.prototype,g=f.fn=f.prototype=new b;for(c in a)typeof a[c]!==t||a[c]instanceof Array||a[c]===null?g[c]=a[c]:g[c]=d(!0,{},b.prototype[c],a[c]);g.constructor=f,f.extend=e.extend;return f};var C=B.extend({init:function(){this._events={}},bind:function(a,b,c){var d=this,e,f=typeof a===r?[a]:a,g,h,i,j=typeof b===q,k;for(e=0,g=f.length;e<g;e++)a=f[e],i=j?b:b[a],i&&(c&&(h=i,i=function(){d.unbind(a,i),h.apply(d,arguments)}),k=d._events[a]=d._events[a]||[],k.push(i));return d},one:function(a,b){return this.bind(a,b,!0)},first:function(a,b){var c=this,d,e=typeof a===r?[a]:a,f,g,h=typeof b===q,i;for(d=0,f=e.length;d<f;d++)a=e[d],g=h?b:b[a],g&&(i=c._events[a]=c._events[a]||[],i.unshift(g));return c},trigger:function(a,b){var c=this,d=c._events[a],e,f,g=!1;if(d){b=b||{},b.sender=c,b.preventDefault=function(){g=!0},b.isDefaultPrevented=function(){return g},d=d.slice();for(e=0,f=d.length;e<f;e++)d[e].call(c,b)}return g},unbind:function(a,b){var c=this,d=c._events[a],e,f;if(d)if(b)for(e=0,f=d.length;e<f;e++)d[e]===b&&d.splice(e,1);else c._events[a]=[];return c}}),E=/^\w+/,F=/\$\{([^}]*)\}/g,G=/\\\}/g,H=/__CURLY__/g,I=/\\#/g,J=/__SHARP__/g;k={paramName:"data",useWithBlock:!0,render:function(a,b){var c,d,e="";for(c=0,d=b.length;c<d;c++)e+=a(b[c]);return e},compile:function(b,e){var f=d({},this,e),g=f.paramName,h=g.match(E)[0],j=f.useWithBlock,k="var o,e=kendo.htmlEncode;",l,m;if(i(b)){if(b.length===2)return function(c){return b(a,{data:c}).join("")};return b}k+=j?"with("+g+"){":"",k+="o=",l=b.replace(G,"__CURLY__").replace(F,"#=e($1)#").replace(H,"}").replace(I,"__SHARP__").split("#");for(m=0;m<l.length;m++)k+=D(l[m],m%2===0);k+=j?";}":";",k+="return o;",k=k.replace(J,"#");try{return new Function(h,k)}catch(n){throw new Error(c.format("Invalid template:'{0}' Generated code:'{1}'",b,k))}}},function(){function h(a,d){var i,j,k,l,m=b,n,o=d[a],p;o&&typeof o===t&&typeof o.toJSON===q&&(o=o.toJSON(a)),typeof e===q&&(o=e.call(d,a,o)),p=typeof o;if(p===r)return g(o);if(p===s)return isFinite(o)?String(o):u;if(p===v||p===u)return String(o);if(p===t){if(!o)return u;b+=c,n=[];if(f.apply(o)==="[object Array]"){l=o.length;for(i=0;i<l;i++)n[i]=h(i,o)||u;k=n.length===0?"[]":b?"[\n"+b+n.join(",\n"+b)+"\n"+m+"]":"["+n.join(",")+"]",b=m;return k}if(e&&typeof e===t){l=e.length;for(i=0;i<l;i++)typeof e[i]===r&&(j=e[i],k=h(j,o),k&&n.push(g(j)+(b?": ":":")+k))}else for(j in o)Object.hasOwnProperty.call(o,j)&&(k=h(j,o),k&&n.push(g(j)+(b?": ":":")+k));k=n.length===0?"{}":b?"{\n"+b+n.join(",\n"+b)+"\n"+m+"}":"{"+n.join(",")+"}",b=m;return k}}function g(b){a.lastIndex=0;return a.test(b)?'"'+b.replace(a,function(a){var b=d[a];return typeof b===r?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+b+'"'}var a=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,b,c,d={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},e,f={}.toString;typeof Date.prototype.toJSON!==q&&(Date.prototype.toJSON=function(a){var b=this;return isFinite(b.valueOf())?b.getUTCFullYear()+"-"+K(b.getUTCMonth()+1)+"-"+K(b.getUTCDate())+"T"+K(b.getUTCHours())+":"+K(b.getUTCMinutes())+":"+K(b.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(a){return this.valueOf()}),typeof l.stringify!==q&&(l.stringify=function(a,d,f){var g;b="",c="";if(typeof f===s)for(g=0;g<f;g+=1)c+=" ";else typeof f===r&&(c=f);e=d;if(d&&typeof d!==q&&(typeof d!==t||typeof d.length!==s))throw new Error("JSON.stringify");return h("",{"":a})})}(),function(){function v(a,c,f){f=t(f);var j=f.numberFormat,o=j.groupSize[0],p=j[k],q=j[i],r=j.decimals,s=j.pattern[0],u=[],v,w,x,y,z,A=a<0,B,C,D,E,F=h,G=h,H,I,J,K,L,M,N,O,P,Q=-1,R;if(a===b)return h;if(!isFinite(a))return a;if(!c)return f.name.length?a.toLocaleString():a.toString();z=d.exec(c);if(z){c=z[1].toLowerCase(),w=c==="c",x=c==="p";if(w||x)j=w?j.currency:j.percent,o=j.groupSize[0],p=j[k],q=j[i],r=j.decimals,v=j.symbol,s=j.pattern[A?0:1];y=z[2],y&&(r=+y);if(c==="e")return y?a.toExponential(r):a.toExponential();x&&(a*=100),a=a.toFixed(r),a=a.split(i),B=a[0],C=a[1],A&&(B=B.substring(1)),G=B,D=B.length;if(D>=o){G=h;for(H=0;H<D;H++)H>0&&(D-H)%o===0&&(G+=p),G+=B.charAt(H)}C&&(G+=q+C);if(c==="n"&&!A)return G;a=h;for(H=0,I=s.length;H<I;H++)J=s.charAt(H),J==="n"?a+=G:J==="$"||J==="%"?a+=v:a+=J;return a}A&&(a=-a),c=c.split(";");if(A&&c[1])c=c[1],L=!0;else if(a===0){c=c[2]||c[0];if(c.indexOf(l)==-1&&c.indexOf(m)==-1)return c}else c=c[0];if(c.indexOf("'")>-1||c.indexOf('"')>-1)c=c.replace(e,function(a){u.push(a);return n});w=c.indexOf("$")!=-1,x=c.indexOf("%")!=-1,x&&(a*=100);if(w||x)j=w?j.currency:j.percent,o=j.groupSize[0],p=j[k],q=j[i],r=j.decimals,v=j.symbol;K=c.indexOf(k)>-1,K&&(c=c.replace(g,h)),M=c.indexOf(i),I=c.length,M!=-1?(O=c.lastIndexOf(m),N=c.lastIndexOf(l),C=a.toString().split(i)[1]||h,N>O&&C.length>N-O?H=N:O!=-1&&O>=M&&(H=O),H&&(a=a.toFixed(H-M))):a=a.toFixed(0),N=c.indexOf(l),P=O=c.indexOf(m),N==-1&&O!=-1?Q=O:N!=-1&&O==-1?Q=N:Q=N>O?O:N,N=c.lastIndexOf(l),O=c.lastIndexOf(m),N==-1&&O!=-1?R=O:N!=-1&&O==-1?R=N:R=N>O?N:O,Q==I&&(R=Q);if(Q!=-1){G=a.toString().split(i),B=G[0],C=G[1]||h,D=B.length,E=C.length;if(K)if(D===o&&D<M-P)B=p+B;else if(D>o){G=h;for(H=0;H<D;H++)H>0&&(D-H)%o===0&&(G+=p),G+=B.charAt(H);B=G}a=c.substring(0,Q),A&&!L&&(a+="-");for(H=Q;H<I;H++){J=c.charAt(H);if(M==-1){if(R-H<D){a+=B;break}}else{O!=-1&&O<H&&(F=h),M-H<=D&&M-H>-1&&(a+=B,H=M);if(M===H){a+=(C?q:h)+C,H+=R-M+1;continue}}J===m?(a+=J,F=J):J===l&&(a+=F)}R>=Q&&(a+=c.substring(R+1));if(w||x){G=h;for(H=0,I=a.length;H<I;H++)J=a.charAt(H),G+=J==="$"||J==="%"?v:J;a=G}if(u[0]){I=u.length;for(H=0;H<I;H++)a=a.replace(n,u[H])}}return a}function u(c,d,e){e=t(e);var f=e.calendars.standard,g=f.days,h=f.months;d=f.patterns[d]||d;return d.replace(a,function(a){var d;a==="d"?d=c.getDate():a==="dd"?d=K(c.getDate()):a==="ddd"?d=g.namesAbbr[c.getDay()]:a==="dddd"?d=g.names[c.getDay()]:a==="M"?d=c.getMonth()+1:a==="MM"?d=K(c.getMonth()+1):a==="MMM"?d=h.namesAbbr[c.getMonth()]:a==="MMMM"?d=h.names[c.getMonth()]:a==="yy"?d=K(c.getFullYear()%100):a==="yyyy"?d=c.getFullYear():a==="h"?d=c.getHours()%12||12:a==="hh"?d=K(c.getHours()%12||12):a==="H"?d=c.getHours():a==="HH"?d=K(c.getHours()):a==="m"?d=c.getMinutes():a==="mm"?d=K(c.getMinutes()):a==="s"?d=c.getSeconds():a==="ss"?d=K(c.getSeconds()):a==="f"?d=j.floor(c.getMilliseconds()/100):a==="ff"?d=j.floor(c.getMilliseconds()/10):a==="fff"?d=c.getMilliseconds():a==="tt"&&(d=c.getHours()<12?f.AM[0]:f.PM[0]);return d!==b?d:a.slice(1,a.length-1)})}function t(a){a&&(a=q(a));return a||c.cultures.current}function q(a){if(a){if(a.numberFormat)return a;if(typeof a===r){var b=c.cultures;return b[a]||b[a.split("-")[0]]||null}return null}return null}var a=/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|HH|H|hh|h|mm|m|fff|ff|f|tt|ss|s|"[^"]*"|'[^']*'/g,d=/^(n|c|p|e)(\d*)$/i,e=/["'].*?["']/g,g=/\,/g,h="",i=".",k=",",l="#",m="0",n="??",p="en-US";c.cultures={"en-US":{name:p,numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSize:[3],percent:{pattern:["-n %","n %"],decimals:2,",":",",".":".",groupSize:[3],symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,",":",",".":".",groupSize:[3],symbol:"$"}},calendars:{standard:{days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December"],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},AM:["AM","am","AM"],PM:["PM","pm","PM"],patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",F:"dddd, MMMM dd, yyyy h:mm:ss tt",g:"M/d/yyyy h:mm tt",G:"M/d/yyyy h:mm:ss tt",m:"MMMM dd",M:"MMMM dd",s:"yyyy'-'MM'-'ddTHH':'mm':'ss",t:"h:mm tt",T:"h:mm:ss tt",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",y:"MMMM, yyyy",Y:"MMMM, yyyy"},"/":"/",":":":",firstDay:0}}}},c.culture=function(a){var d=c.cultures,e;if(a!==b)e=q(a)||d[p],e.calendar=e.calendars.standard,d.current=e;else return d.current},c.findCulture=q,c.getCulture=t,c.culture(p);var w=function(a,c,d){if(c){if(a instanceof Date)return u(a,c,d);if(typeof a===s)return v(a,c,d)}return a!==b?a:""};A&&(w=f(A.format,A)),c.format=function(a){var b=arguments;return a.replace(o,function(a,c,d){var e=b[parseInt(c,10)+1];return w(e,d?d.substring(1):"")})},c._extractFormat=function(a){a.slice(0,3)==="{0:"&&(a=a.slice(3,a.length-1));return a},c.toString=w}(),function(){function m(a,b,c){if(!a)return null;var d=function(a){var c=0;while(b[t]===a)c++,t++;c>0&&(t-=1);return c},f=function(b){var c=new RegExp("^\\d{1,"+b+"}"),d=a.substr(u,b).match(c);if(d){d=d[0],u+=d.length;return parseInt(d,10)}return null},g=function(b){var c=0,d=b.length,e,f;for(;c<d;c++){e=b[c],f=e.length;if(a.substr(u,f)==e){u+=f;return c+1}}return null},i=function(){var c=!1;a.charAt(u)===b[t]&&(u++,c=!0);return c},k=c.calendars.standard,m=null,n=null,o=null,p=null,q=null,r=null,s=null,t=0,u=0,v=!1,w=new Date,x=30,y=w.getFullYear(),z,A,B,C,D,E,F,G,H,I,J,K;b||(b="d"),C=k.patterns[b],C&&(b=C),b=b.split(""),B=b.length;for(;t<B;t++){z=b[t];if(v)z==="'"?v=!1:i();else if(z==="d"){A=d("d"),o=A<3?f(2):g(k.days[A==3?"namesAbbr":"names"]);if(o===null||j(o,1,31))return null}else if(z==="M"){A=d("M"),n=A<3?f(2):g(k.months[A==3?"namesAbbr":"names"]);if(n===null||j(n,1,12))return null;n-=1}else if(z==="y")A=d("y"),m=f(A<3?2:4),m===null&&(m=y),m<x&&(m=y-y%100+m);else if(z==="h"){d("h"),p=f(2),p==12&&(p=0);if(p===null||j(p,0,11))return null}else if(z==="H"){d("H"),p=f(2);if(p===null||j(p,0,23))return null}else if(z==="m"){d("m"),q=f(2);if(q===null||j(q,0,59))return null}else if(z==="s"){d("s"),r=f(2);if(r===null||j(r,0,59))return null}else if(z==="f"){A=d("f"),s=f(A);if(s===null||j(s,0,999))return null}else if(z==="t"){A=d("t"),H=k.AM,I=k.PM,A===1&&(H=l(H),I=l(I)),D=g(I);if(!D&&!g(H))return null}else if(z==="z"){E=!0,A=d("z");if(a.substr(u,1)==="Z"){if(!F)return null;i();continue}G=a.substr(u,6).match(A>2?h:e);if(!G)return null;G=G[0],u=G.length,G=G.split(":"),J=parseInt(G[0],10);if(j(J,-12,13))return null;if(A>2){K=parseInt(G[1],10);if(isNaN(K)||j(K,0,59))return null}}else z==="T"?F=i():z==="'"?(v=!0,i()):i()}D&&p<12&&(p+=12),o===null&&(o=1);if(E){J&&(p+=-J),K&&(q+=-K);return new Date(Date.UTC(m,n,o,p,q,r,s))}return new Date(m,n,o,p,q,r,s)}function l(b){return a.map(b,k)}function k(a){return a.charAt(0)}function j(a,b,c){return!(a>=b&&a<=c)}var b=/\u00A0/g,d=/[eE][\-+]?[0-9]+/,e=/[+|\-]\d{1,2}/,h=/[+|\-]\d{1,2}:\d{2}/,i=["G","g","d","F","D","y","m","T","t"];c.parseDate=function(a,b,d){if(a instanceof Date)return a;var e=0,f=null,h,j;d=c.getCulture(d);if(!b){b=[],j=d.calendar.patterns,h=i.length;for(;e<h;e++)b[e]=j[i[e]];b[e]="ddd MMM dd yyyy HH:mm:ss",b[++e]="yyyy-MM-ddTHH:mm:ss.fffzzz",b[++e]="yyyy-MM-ddTHH:mm:sszzz",b[++e]="yyyy-MM-ddTHH:mmzzz",b[++e]="yyyy-MM-ddTHH:mmzz",b[++e]="yyyy-MM-dd",e=0}b=g(b)?b:[b],h=b.length;for(;e<h;e++){f=m(a,b[e],d);if(f)return f}return f},c.parseInt=function(a,b){var d=c.parseFloat(a,b);d&&(d=d|0);return d},c.parseFloat=function(a,e,f){if(!a&&a!==0)return null;if(typeof a===s)return a;a=a.toString(),e=c.getCulture(e);var g=e.numberFormat,h=g.percent,i=g.currency,j=i.symbol,k=h.symbol,l=a.indexOf("-")>-1,m,n;if(d.test(a)){a=parseFloat(a),isNaN(a)&&(a=null);return a}a.indexOf(j)>-1||f&&f.toLowerCase().indexOf("c")>-1?(g=i,m=g.pattern[0].replace("$",j).split("n"),a.indexOf(m[0])>-1&&a.indexOf(m[1])>-1&&(a=a.replace(m[0],"").replace(m[1],""),l=!0)):a.indexOf(k)>-1&&(n=!0,g=h,j=k),a=a.replace("-","").replace(j,"").replace(b," ").split(g[","].replace(b," ")).join("").replace(g["."],"."),a=parseFloat(a),isNaN(a)?a=null:l&&(a*=-1),a&&n&&(a/=100);return a},A&&(c.parseDate=f(A.parseDate,A),c.parseFloat=f(A.parseFloat,A))}(),function(){m.scrollbar=function(){var a=document.createElement("div"),b;a.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both",a.innerHTML=" ",document.body.appendChild(a),b=a.offsetWidth-a.scrollWidth,document.body.removeChild(a);return b};var a=document.createElement("table");try{a.innerHTML="<tr><td></td></tr>",m.tbodyInnerHtml=!0}catch(c){m.tbodyInnerHtml=!1}m.touch="ontouchstart"in window,m.pointers=navigator.msPointerEnabled;var d=m.transitions=!1,f=m.transforms=!1;m.hasHW3D="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix||"MozPerspective"in document.documentElement.style||"msPerspective"in document.documentElement.style,m.hasNativeScrolling=typeof document.documentElement.style.webkitOverflowScrolling=="string",e(["Moz","webkit","O","ms"],function(){var b=this.toString(),c=typeof a.style[b+"Transition"]===r;if(c||typeof a.style[b+"Transform"]===r){var e=b.toLowerCase();f={css:"-"+e+"-",prefix:b,event:e==="o"||e==="webkit"?e:""},c&&(d=f,d.event=d.event?d.event+"TransitionEnd":"transitionend");return!1}}),m.transforms=f,m.transitions=d,m.devicePixelRatio=window.devicePixelRatio===b?1:window.devicePixelRatio,m.detectOS=function(a){var c=!1,d,e=[],f={fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.(\d+(\.\d+)?)/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,winphone:/(IEMobile)\/(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/},g={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows|winphone/},h={tablet:/playbook|ipad|fire/i},i={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,webkit:/webkit/i,ie:/MSIE|Windows\sPhone/i},j=function(a,c,d){for(var e in c)if(c.hasOwnProperty(e)&&c[e].test(a))return e;return d!==b?d:a};for(var k in f)if(f.hasOwnProperty(k)){e=a.match(f[k]);if(e){if(k=="windows"&&"plugins"in navigator)return!1;c={},c.device=k,c.tablet=j(k,h,!1),c.browser=j(a,i,"default"),c.name=j(k,g),c[c.name]=!0,c.majorVersion=e[2],c.minorVersion=e[3].replace("_","."),d=c.minorVersion.replace(".","").substr(0,2),c.flatVersion=c.majorVersion+d+Array(3-(d.length<3?d.length:2)).join("0"),c.appMode=window.navigator.standalone||/file|local/.test(window.location.protocol)||typeof window.PhoneGap!==w||typeof window.cordova!==w,c.android&&m.devicePixelRatio<1.5&&(window.outerWidth>800||window.outerHeight>800)&&(c.tablet=k);break}}return c},m.mobileOS=m.detectOS(navigator.userAgent),m.zoomLevel=function(){return m.touch?document.documentElement.clientWidth/window.innerWidth:1},m.eventCapture=document.documentElement.addEventListener,m.placeholder="placeholder"in document.createElement("input"),m.stableSort=function(){var a=[0,1,2,3,4,5,6,7,8,9,10,11,12].sort(function(){return 0});return a[0]===0&&a[1]===1&&a[2]===2&&a[3]===3&&a[4]===4&&a[5]===5&&a[6]===6&&a[7]===7&&a[8]===8&&a[9]===9&&a[10]===10&&a[11]===11&&a[12]===12}()}();var R={left:{reverse:"right"},right:{reverse:"left"},down:{reverse:"up"},up:{reverse:"down"},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out"},out:{reverse:"in"}},T={promise:function(a,b){b.show&&a.css({display:a.data("olddisplay")||"block"}).css("display"),b.hide&&a.data("olddisplay",a.css("display")).hide(),b.init&&b.init(),b.completeCallback&&b.completeCallback(a),a.dequeue()},transitionPromise:function(a,b,d){var e=c.wrap(a);e.append(b),a.hide(),b.show(),d.completeCallback&&d.completeCallback(a);return a}};d(a.fn,{kendoStop:function(a,b){return this.stop(a,b)},kendoAnimate:function(a,b,c,d){return V(this,a,b,c,d)},kendoAnimateTo:function(a,b,c,d,e){return W(this,a,b,c,d,e)}}),d(a.fn,{kendoAddClass:function(a,b){return X(this,a,b,!0)},kendoRemoveClass:function(a,b){return X(this,a,b,!1)},kendoToggleClass:function(a,b,c){return X(this,a,b,c)}});var Y=/&/g,Z=/</g,$=/>/g,ba=function(a){var b=typeof a.pageX==w?a.originalEvent:a;return{idx:m.pointers?b.pointerId:0,x:b.pageX,y:b.pageY}},bb=function(a){return a.target};m.touch&&(ba=function(a,b){var c=a.changedTouches||a.originalEvent.changedTouches;if(b){var d=null;e(c,function(a,c){b==c.identifier&&(d={idx:c.identifier,x:c.pageX,y:c.pageY})});return d}return{idx:c[0].identifier,x:c[0].pageX,y:c[0].pageY}},bb=function(a){var b="originalEvent"in a?a.originalEvent.changedTouches:"changedTouches"in a?a.changedTouches:null;return b?document.elementFromPoint(b[0].clientX,b[0].clientY):null},e(["swipe","swipeLeft","swipeRight","swipeUp","swipeDown","doubleTap","tap"],function(b,c){a.fn[c]=function(a){return this.bind(c,a)}})),m.touch?(m.mousedown="touchstart",m.mouseup="touchend",m.mousemove="touchmove",m.mousecancel="touchcancel",m.resize="orientationchange"):m.pointers?(m.mousemove="MSPointerMove",m.mousedown="MSPointerDown",m.mouseup="MSPointerUp",m.mousecancel="MSPointerCancel",m.resize="orientationchange resize"):(m.mousemove="mousemove",m.mousedown="mousedown",m.mouseup="mouseup",m.mousecancel="mouseleave",m.resize="resize");var bc=function(a){var b="d",c,d,e,f,g=1;for(d=0,e=a.length;d<e;d++)f=a[d],f!==""&&(c=f.indexOf("["),c!==0&&(c==-1?f="."+f:(g++,f="."+f.substring(0,c)+" || {})"+f.substring(c))),g++,b+=f+(d<e-1?" || {})":")"));return Array(g).join("(")+b},bd=/^([a-z]+:)?\/\//i;d(c,{ui:c.ui||{},fx:c.fx||T,data:c.data||{},mobile:c.mobile||{},dataviz:c.dataviz||{ui:{}},keys:{INSERT:45,DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F2:113,F10:121,F12:123},support:m,animate:V,ns:"",attr:function(a){return"data-"+c.ns+a},wrap:L,deepExtend:M,size:O,isNodeEmpty:P,getOffset:Q,parseEffects:S,toggleClass:X,directions:R,Observable:C,Class:B,Template:k,template:f(k.compile,k),render:f(k.render,k),stringify:f(l.stringify,l),touchLocation:ba,eventTarget:bb,htmlEncode:_,isLocalUrl:function(a){return a&&!bd.test(a)},expr:function(a,b){a=a||"",a&&a.charAt(0)!=="["&&(a="."+a),b?a=bc(a.split(".")):a="d"+a;return a},getter:function(a,b){return x[a]=x[a]||new Function("d","return "+c.expr(a,b))},setter:function(a){return y[a]=y[a]||new Function("d,value","d."+a+"=value")},accessor:function(a){return{get:c.getter(a),set:c.setter(a)}},guid:function(){var a="",b,c;for(b=0;b<32;b++){c=j.random()*16|0;if(b==8||b==12||b==16||b==20)a+="-";a+=(b==12?4:b==16?c&3|8:c).toString(16)}return a},roleSelector:function(a){return a.replace(/(\S+)/g,"["+c.attr("role")+"=$1],").slice(0,-1)},logToConsole:function(a){var b=window.console;typeof b!="undefined"&&b.log&&b.log(a)}});var be=C.extend({init:function(b,e){var f=this;f.element=a(b),C.fn.init.call(f),f.options=d(!0,{},f.options,e),f.element.attr(c.attr("role"))||f.element.attr(c.attr("role"),(f.options.name||"").toLowerCase()),f.element.data("kendo"+f.options.prefix+f.options.name,f),f.bind(f.events,f.options)},events:[],options:{prefix:""},setOptions:function(b){a.extend(this.options,b),this.bind(this.events,b)}});c.notify=h;var bf=/template$/i,bg=/^\s*(?:\{(?:.|\n)*\}|\[(?:.|\n)*\])\s*$/,bh=/^\{(\d+)(:[^\}]+)?\}/,bi=/([A-Z])/g;c.initWidget=function(d,e,f){var g,h,i,j,k,l,m,n;f?f.roles&&(f=f.roles):f=c.ui.roles,d=d.nodeType?d:d[0],l=d.getAttribute("data-"+c.ns+"role");if(!!l){i=f[l];if(!i)return;n=bj(d,"dataSource"),e=a.extend({},bk(d,i.fn.options),e),n&&(typeof n===r?e.dataSource=c.getter(n)(window):e.dataSource=n);for(j=0,k=i.fn.events.length;j<k;j++)h=i.fn.events[j],m=bj(d,h),m!==b&&(e[h]=c.getter(m)(window));g=a(d).data("kendo"+i.fn.options.name),g?g.setOptions(e):g=new i(d,e);return g}},c.init=function(b){var e=z.call(arguments,1),f;e[0]||(e=[c.ui,c.dataviz.ui]),f=a.map(e,function(a){return a.roles}).reverse(),f=d.apply(null,[{}].concat(f)),a(b).find("[data-"+c.ns+"role]").andSelf().each(function(){c.initWidget(this,{},f)})},c.parseOptions=bk,d(c.ui,{Widget:be,roles:{},progress:function(b,c){var d=b.find(".k-loading-mask");c?d.length||(d=a("<div class='k-loading-mask'><span class='k-loading-text'>Loading...</span><div class='k-loading-image'/><div class='k-loading-color'/></div>").width("100%").height("100%").prependTo(b).css({top:b.scrollTop(),left:b.scrollLeft()})):d&&d.remove()},plugin:function(d,e,f){var g=d.fn.options.name,h;e=e||c.ui,f=f||"",e[g]=d,e.roles[g.toLowerCase()]=d,h="getKendo"+f+g,g="kendo"+f+g,a.fn[g]=function(e){var f=this,h;typeof e===r?(h=z.call(arguments,1),this.each(function(){var d=a.data(this,g),i,j;if(!d)throw new Error(c.format("Cannot call method '{0}' of {1} before it is initialized",e,g));i=d[e];if(typeof i!==q)throw new Error(c.format("Cannot find method '{0}' of {1}",e,g));j=i.apply(d,h);if(j!==b){f=j;return!1}})):this.each(function(){new d(this,e)});return f},a.fn[h]=function(){return this.data(g)}}});var bl=be.extend({init:function(a,b){be.fn.init.call(this,a,b),this.wrapper=this.element},options:{prefix:"Mobile"},events:[],viewShow:a.noop,view:function(){var a=this.element.closest(c.roleSelector("view")+","+c.roleSelector("splitview"));return a.data("kendoMobileView")||a.data("kendoMobileSplitView")}});d(c.mobile,{init:function(a){c.init(a,c.mobile.ui,c.ui,c.dataviz.ui)},ui:{Widget:bl,roles:{},plugin:function(a){c.ui.plugin(a,c.mobile.ui,"Mobile")}}}),c.touchScroller=function(a,b){if(m.touch&&c.mobile.ui.Scroller&&!a.data("kendoMobileScroller")){a.kendoMobileScroller(b);return a.data("kendoMobileScroller")}return!1},c.preventDefault=function(a){a.preventDefault()},c.widgetInstance=function(a,b){var d=b.roles[a.data(c.ns+"role")];if(d)return a.data("kendo"+d.fn.options.prefix+d.fn.options.name)},c.onResize=function(b){var c=b;m.mobileOS.android&&(c=function(){setTimeout(b,200)}),a(window).on(m.resize,c)},c.data=function(a,b){return a.data(c.ns+b)}})(jQuery),function(a,b){function ba(a,b,d){var e=c.directions[b],f=d?c.directions[e.reverse]:e;return{direction:f,offset:-f.modifier*(f.vertical?a.outerHeight():a.outerWidth())}}function _(a,b){if(k){var c=a.css(M);if(c==C)return b=="scale"?1:0;var d=c.match(new RegExp(b+"\\s*\\(([\\d\\w\\.]+)")),e=0;d?e=Q(d[1]):(d=c.match(p)||[0,0,0,0,0],b=b.toLowerCase(),r.test(b)?e=parseFloat(d[3]/d[2]):b=="translatey"?e=parseFloat(d[4]/d[2]):b=="scale"?e=parseFloat(d[2]):b=="rotate"&&(e=parseFloat(Math.atan2(d[2],d[1]))));return e}return parseFloat(a.css(b))}function $(c,d,e){var f=[],g={},h,i,l,m,n;for(i in d)h=i.toLowerCase(),n=k&&v.indexOf(h)!=-1,!j.hasHW3D&&n&&w.indexOf(h)==-1?delete d[i]:(m=!1,a.isFunction(d[i])?(l=d[i](c,e),l!==b&&(m=l)):m=d[i],m!==!1&&(n?f.push(i+"("+m+")"):g[i]=m));f.length&&(g[M]=f.join(" "));return g}function Z(c,d,e){var f,g;for(f in d)a.isFunction(d[f])&&(g=d[f](c,e),g!==b?d[f]=g:delete d[f]);return d}function Y(a){for(var b in a)v.indexOf(b)!=-1&&w.indexOf(b)==-1&&delete a[b];return a}function X(a){var b=a.object,c=0;!a||(b.css(a.setup).css(L),b.css(a.CSS).css(M),i.mozilla&&(b.one(l.event,function(){W(b,a)}),c=50),b.data(I,setTimeout(W,a.duration+c,b,a)))}function W(a,b){a.data(I)&&(clearTimeout(a.data(I)),a.removeData(I)),a.css(L,"").css(L),a.dequeue(),b.complete.call(a)}function V(a){var b=[];for(var c in a)b.push(c);return b}function U(b){var d=b.effects,e;d==="zoom"&&(d="zoomIn fadeIn"),d==="slide"&&(d="slide:left"),d==="fade"&&(d="fadeIn"),d==="overlay"&&(d="slideIn:left"),/^overlay:(.+)$/.test(d)&&(d="slideIn:"+RegExp.$1),e=b.reverse&&/^(slide:)/.test(d),e&&delete b.reverse,b.effects=a.extend(c.parseEffects(d,e),{show:!0});return b}function T(a){a.effects.slideIn=a.effects.slide,delete a.effects.slide,delete a.complete;return a}function S(a,b){var c={};if(b){if(document.defaultView&&document.defaultView.getComputedStyle){var d=document.defaultView.getComputedStyle(a,"");e(b,function(a,b){c[b]=d.getPropertyValue(b)})}else if(a.currentStyle){var f=a.currentStyle;e(b,function(a,b){c[b]=f[b.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()})]})}}else c=document.defaultView.getComputedStyle(a,"");return c}function R(a,b){return Q(a.css(b))}function Q(a){return parseInt(a,10)}var c=window.kendo,d=c.fx,e=a.each,f=a.extend,g=a.proxy,h=c.size,i=a.browser,j=c.support,k=j.transforms,l=j.transitions,m={scale:0,scalex:0,scaley:0,scale3d:0},n={translate:0,translatex:0,translatey:0,translate3d:0},o=typeof document.documentElement.style.zoom!="undefined"&&!k,p=/matrix3?d?\s*\(.*,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?,\s*([\d\.\-]+)\w*?/i,q=/^(-?[\d\.\-]+)?[\w\s]*,?\s*(-?[\d\.\-]+)?[\w\s]*/i,r=/translatex?$/i,s=/(zoom|fade|expand)(\w+)/,t=/(zoom|fade|expand)/,u=/[xy]$/i,v=["perspective","rotate","rotatex","rotatey","rotatez","rotate3d","scale","scalex","scaley","scalez","scale3d","skew","skewx","skewy","translate","translatex","translatey","translatez","translate3d","matrix","matrix3d"],w=["rotate","scale","scalex","scaley","skew","skewx","skewy","translate","translatex","translatey","matrix"],x={rotate:"deg",scale:"",skew:"px",translate:"px"},y=k.css,z=Math.round,A="",B="px",C="none",D="auto",E="width",F="height",G="hidden",H="origin",I="abortId",J="overflow",K="translate",L=y+"transition",M=y+"transform",N=y+"perspective",O=y+"backface-visibility";c.directions={left:{reverse:"right",property:"left",transition:"translatex",vertical:!1,modifier:-1},right:{reverse:"left",property:"left",transition:"translatex",vertical:!1,modifier:1},down:{reverse:"up",property:"top",transition:"translatey",vertical:!0,modifier:1},up:{reverse:"down",property:"top",transition:"translatey",vertical:!0,modifier:-1},top:{reverse:"bottom"},bottom:{reverse:"top"},"in":{reverse:"out",modifier:-1},out:{reverse:"in",modifier:1}},f(a.fn,{kendoStop:function(a,b){return l?c.fx.stopQueue(this,a||!1,b||!1):this.stop(a,b)}});if(k&&!l){e(w,function(b,c){a.fn[c]=function(b){if(typeof b=="undefined")return _(this,c);var d=a(this)[0],e=c+"("+b+x[c.replace(u,"")]+")";d.style.cssText.indexOf(M)==-1?a(this).css(M,e):d.style.cssText=d.style.cssText.replace(new RegExp(c+"\\(.*?\\)","i"),e);return this},a.fx.step[c]=function(b){a(b.elem)[c](b.now)}});var P=a.fx.prototype.cur;a.fx.prototype.cur=function(){if(w.indexOf(this.prop)!=-1)return parseFloat(a(this.elem)[this.prop]());return P.apply(this,arguments)}}c.toggleClass=function(a,b,c,d){b&&(b=b.split(" "),l&&(c=f({exclusive:"all",duration:400,ease:"ease-out"},c),a.css(L,c.exclusive+" "+c.duration+"ms "+c.ease),setTimeout(function(){a.css(L,"").css(F)},c.duration)),e(b,function(b,c){a.toggleClass(c,d)}));return a},c.parseEffects=function(a,b){var d={};typeof a=="string"?e(a.split(" "),function(a,e){var f=!t.test(e),g=e.replace(s,function(a,b,c){return b+":"+c.toLowerCase()}),h=g.split(":"),i=h[1],j={};h.length>1&&(j.direction=b&&f?c.directions[i].reverse:i),d[h[0]]=j}):e(a,function(a){var e=this.direction;e&&b&&!t.test(a)&&(this.direction=c.directions[e].reverse),d[a]=this});return d},l&&f(c.fx,{transition:function(b,c,d){d=f({duration:200,ease:"ease-out",complete:null,exclusive:"all"},d),d.duration=a.fx?a.fx.speeds[d.duration]||d.duration:d.duration;var e=$(b,c,d),g={keys:V(e),CSS:e,object:b,setup:{},duration:d.duration,complete:d.complete};g.setup[L]=d.exclusive+" "+d.duration+"ms "+d.ease;var h=b.data("keys")||[];a.merge(h,g.keys),b.data("keys",a.unique(h)),X(g)},stopQueue:function(a,b,c){a.data(I)&&(clearTimeout(a.data(I)),a.removeData(I));var d=this,e,f=a.data("keys"),g=c===!1&&f;g&&(e=S(a[0],f)),a.css(L,"").css(L),g&&a.css(e),a.removeData("keys"),d.complete&&d.complete.call(a),a.stop(b);return a}}),c.fx.promise=function(b,d){var g=[],i;i=c.parseEffects(d.effects),d.effects=i,b.data("animating",!0);var j={keep:[],restore:[]},m={},n,p={setup:[],teardown:[]},q={},r=a.Deferred(function(g){if(h(i)){var o=f({},d,{complete:g.resolve});e(i,function(b,g){var h=c.fx[b];if(h){var i=c.directions[g.direction];g.direction&&i&&(g.direction=d.reverse?i.reverse:g.direction),o=f(!0,o,g),e(p,function(a){h[a]&&p[a].push(h[a])}),e(j,function(b){h[b]&&a.merge(j[b],h[b])}),h.css&&(m=f(m,h.css))}});if(p.setup.length){e(a.unique(j.keep),function(a,c){b.data(c)||b.data(c,b.css(c))}),d.show&&(m=f(m,{display:b.data("olddisplay")||"block"})),k&&!d.reset&&(m=Z(b,m,o),n=b.data("targetTransform"),n&&(m=f(n,m))),m=$(b,m,o),k&&!l&&(m=Y(m)),b.css(m).css(M),e(p.setup,function(){q=f(q,this(b,o))}),c.fx.animate&&(d.init(),b.data("targetTransform",q),c.fx.animate(b,q,o));return}}else d.show&&(b.css({display:b.data("olddisplay")||"block"}).css("display"),d.init());g.resolve()}).promise();g.push(r),a.when.apply(null,g).then(function(){b.removeData("animating").dequeue(),d.hide&&b.data("olddisplay",b.css("display")).hide();if(h(i)){var c=function(){e(a.unique(j.restore),function(a,c){b.css(c,b.data(c))})};c(),o&&!k&&setTimeout(c,0),e(p.teardown,function(){this(b,d)})}d.completeCallback&&d.completeCallback(b)})},c.fx.transitionPromise=function(a,b,d){c.fx.animateTo(a,b,d);return a},f(c.fx,{animate:function(c,g,h){var j=h.transition!==!1;delete h.transition,l&&"transition"in d&&j?d.transition(c,g,h):k?c.animate(Y(g),{queue:!1,show:!1,hide:!1,duration:h.duration,complete:h.complete}):c.each(function(){var c=a(this),d={};e(v,function(a,e){var h,i=g?g[e]+" ":null;if(i){var j=g;if(e in m&&g[e]!==b){h=i.match(q);if(o){var l=(1-h[1])/2;f(j,{zoom:+h[1],marginLeft:c.width()*l,marginTop:c.height()*l})}else k&&f(j,{scale:+h[0]})}else if(e in n&&g[e]!==b){var p=c.css("position"),r=p=="absolute"||p=="fixed";c.data(K)||(r?c.data(K,{top:R(c,"top")||0,left:R(c,"left")||0,bottom:R(c,"bottom"),right:R(c,"right")}):c.data(K,{top:R(c,"marginTop")||0,left:R(c,"marginLeft")||0}));var s=c.data(K);h=i.match(q);if(h){var t=e==K+"y"?+null:+h[1],u=e==K+"y"?+h[1]:+h[2];r?(isNaN(s.right)?isNaN(t)||f(j,{left:s.left+t}):isNaN(t)||f(j,{right:s.right-t}),isNaN(s.bottom)?isNaN(u)||f(j,{top:s.top+u}):isNaN(u)||f(j,{bottom:s.bottom-u})):(isNaN(t)||f(j,{marginLeft:s.left+t}),isNaN(u)||f(j,{marginTop:s.top+u}))}}!k&&e!="scale"&&e in j&&delete j[e],j&&f(d,j)}}),i.msie&&delete d.scale,c.animate(d,{queue:!1,show:!1,hide:!1,duration:h.duration,complete:h.complete})})},animateTo:function(b,c,d){function h(a){c[0].style.cssText="",b[0].style.cssText="",j.mobileOS.android||f.css(J,g),d.completeCallback&&d.completeCallback.call(b,a)}var e,f=b.parents().filter(c.parents()).first(),g;d=U(d),j.mobileOS.android||(g=f.css(J),f.css(J,"hidden")),a.each(d.effects,function(a,b){e=e||b.direction}),d.complete=i.msie?function(){setTimeout(h,0)}:h,d.reset=!0,"slide"in d.effects?(b.kendoAnimate(d),c.kendoAnimate(T(d))):(d.reverse?b:c).kendoAnimate(d)},fade:{keep:["opacity"],css:{opacity:function(a,b){var c=a[0].style.opacity;return b.effects.fade.direction=="in"&&(!c||c==1)?0:1}},restore:["opacity"],setup:function(a,b){return f({opacity:b.effects.fade.direction=="out"?0:1},b.properties)}},zoom:{css:{scale:function(a,b){var c=_(a,"scale");return b.effects.zoom.direction=="in"?c!=1?c:"0.01":1},zoom:function(a,c){var d=a[0].style.zoom;return c.effects.zoom.direction=="in"&&o?d?d:"0.01":b}},setup:function(a,b){var c=b.effects.zoom.direction=="out";if(o){var d=i.version,e=a[0].currentStyle,g=e.width.indexOf("%")!=-1?a.parent().width():a.width(),h=e.height.indexOf("%")!=-1?a.parent().height():Q(e.height),j=d<9&&b.effects.fade?0:(1-Q(a.css("zoom"))/100)/2;a.css({marginLeft:g*(d<8?0:j),marginTop:h*j})}return f({scale:c?.01:1},b.properties)}},slide:{setup:function(a,b){var c=b.reverse,d={},e=ba(a,b.effects.slide.direction,c),g=k&&b.transition!==!1?e.direction.transition:e.direction.property;e.offset/=-(b.divisor||1);if(!c){var h=a.data(H);!h&&h!==0&&a.data(H,_(a,g))}d[g]=c?a.data(H)||0:(a.data(H)||0)+e.offset+B;return f(d,b.properties)}},slideMargin:{setup:function(a,b){var c=a.data(H),d=b.offset,e,g={},h=b.reverse;!h&&!c&&c!==0&&a.data(H,parseFloat(a.css("margin-"+b.axis))),e=a.data(H)||0,g["margin-"+b.axis]=h?e:e+d;return f(g,b.properties)}},slideTo:{setup:function(a,b){var c=(b.offset+"").split(","),d={},e=b.reverse;k&&b.transition!==!1?(d.translatex=e?0:c[0],d.translatey=e?0:c[1]):(d.left=e?0:c[0],d.top=e?0:c[1]),a.css("left");return f(d,b.properties)}},slideIn:{css:{translatex:function(a,c){var d=ba(a,c.effects.slideIn.direction,c.reverse);return d.direction.transition=="translatex"?(c.reverse?0:d.offset)+B:b},translatey:function(a,c){var d=ba(a,c.effects.slideIn.direction,c.reverse);return d.direction.transition=="translatey"?(c.reverse?0:d.offset)+B:b}},setup:function(a,b){var c=b.reverse,d=ba(a,b.effects.slideIn.direction,c),e={};k&&b.transition!==!1?e[d.direction.transition]=(c?d.offset:0)+B:(c||a.css(d.direction.property,d.offset+B),e[d.direction.property]=(c?d.offset:0)+B,a.css(d.direction.property));return f(e,b.properties)}},expand:{keep:[J],css:{overflow:G},restore:[J],setup:function(a,c){var d=c.reverse,e=c.effects.expand.direction,g=(e?e=="vertical":!0)?F:E,h=a[0].style[g],i=a.data(g),j=parseFloat(i||h)||z(a.css(g,D)[g]()),k={};k[g]=(d?0:j)+B,a.css(g,d?j:0).css(g),i===b&&a.data(g,h);return f(k,c.properties)},teardown:function(a,b){var c=b.effects.expand.direction,d=(c?c=="vertical":!0)?F:E,e=a.data(d);(e==D||e===A)&&setTimeout(function(){a.css(d,D).css(d)},0)}},flip:{css:{rotatex:function(a,c){return c.effects.flip.direction=="vertical"?c.reverse?"180deg":"0deg":b},rotatey:function(a,c){return c.effects.flip.direction=="horizontal"?c.reverse?"180deg":"0deg":b}},setup:function(a,b){var d=b.effects.flip.direction=="horizontal"?"rotatey":"rotatex",e=b.reverse,g=a.parent(),h=b.degree,i=b.face,k=b.back,l=d+(e?"(180deg)":"(0deg)"),m=d+(e?"(0deg)":"(180deg)"),n={};j.hasHW3D?(g.css(N)==C&&g.css(N,500),a.css(y+"transform-style","preserve-3d"),i.css(O,G).css(M,l).css("z-index",e?0:-1),k.css(O,G).css(M,m).css("z-index",e?-1:0),n[d]=(e?"-":"")+(h?h:180)+"deg"):c.size(b.effects)==1&&(b.duration=0),i.show(),k.show();return f(n,b.properties)},teardown:function(b,c){c[c.reverse?"back":"face"].hide(),j.hasHW3D&&a().add(c.face).add(c.back).add(b).css(O,"")}},simple:{setup:function(a,b){return b.properties}}}),c.fx.expandVertical=c.fx.expand;var bb=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){setTimeout(a,1e3/60)},bc=c.Class.extend({init:function(){var a=this;a._tickProxy=g(a._tick,a),a._started=!1},tick:a.noop,done:a.noop,onEnd:a.noop,onCancel:a.noop,start:function(){this._started=!0,bb(this._tickProxy)},cancel:function(){this._started=!1,this.onCancel()},_tick:function(){var a=this;!a._started||(a.tick(),a.done()?(a._started=!1,a.onEnd()):bb(a._tickProxy))}}),bd=bc.extend({init:function(a){var b=this;f(b,a),bc.fn.init.call(b)},done:function(){return this.timePassed()>=this.duration},timePassed:function(){return Math.min(this.duration,+(new Date)-this.startDate)},moveTo:function(a){var b=this,c=b.movable;b.initial=c[b.axis],b.delta=a.location-b.initial,b.duration=a.duration||300,b.tick=b._easeProxy(a.ease),b.startDate=+(new Date),b.start()},_easeProxy:function(a){var b=this;return function(){b.movable.moveAxis(b.axis,a(b.timePassed(),b.initial,b.delta,b.duration))}}});f(bd,{easeOutExpo:function(a,b,c,d){return a==d?b+c:c*(-Math.pow(2,-10*a/d)+1)+b},easeOutBack:function(a,b,c,d,e){e=1.70158;return c*((a=a/d-1)*a*((e+1)*a+e)+1)+b}}),d.Animation=bc,d.Transition=bd}(jQuery),function(a,b){function h(d){var f=[],g=d.logic||"and",i,j,k,l,m,n,o,p,q=d.filters;for(i=0,j=q.length;i<j;i++)d=q[i],k=d.field,o=d.value,n=d.operator,d.filters?d=h(d):(p=d.ignoreCase,k=k.replace(/\./g,"/"),d=e[n],d&&o!==b&&(l=a.type(o),l==="string"?(m="'{1}'",o=o.replace(/'/g,"''"),p===!0&&(k="tolower("+k+")")):l==="date"?m="datetime'{1:yyyy-MM-ddTHH:mm:ss}'":m="{1}",d.length>3?d!=="substringof"?m="{0}({2},"+m+")":m="{0}("+m+",{2})":m="{2} {0} "+m,d=c.format(m,d,o,k))),f.push(d);d=f.join(" "+g+" "),f.length>1&&(d="("+d+")");return d}var c=window.kendo,d=a.extend,e={eq:"eq",neq:"ne",gt:"gt",gte:"ge",lt:"lt",lte:"le",contains:"substringof",endswith:"endswith",startswith:"startswith"},f={pageSize:a.noop,page:a.noop,filter:function(a,b){b&&(a.$filter=h(b))},sort:function(b,c){var d=a.map(c,function(a){var b=a.field.replace(/\./g,"/");a.dir==="desc"&&(b+=" desc");return b}).join(",");d&&(b.$orderby=d)},skip:function(a,b){b&&(a.$skip=b)},take:function(a,b){b&&(a.$top=b)}},g={read:{dataType:"jsonp"}};d(!0,c.data,{schemas:{odata:{type:"json",data:function(a){return a.d.results||[a.d]},total:"d.__count"}},transports:{odata:{read:{cache:!0,dataType:"jsonp",jsonp:"$callback"},update:{cache:!0,dataType:"json",contentType:"application/json",type:"PUT"},create:{cache:!0,dataType:"json",contentType:"application/json",type:"POST"},destroy:{cache:!0,dataType:"json",type:"DELETE"},parameterMap:function(a,b){var d,e,h,i;a=a||{},b=b||"read",i=(this.options||g)[b],i=i?i.dataType:"json";if(b==="read"){d={$inlinecount:"allpages"},i!="json"&&(d.$format="json");for(h in a)f[h]?f[h](d,a[h]):d[h]=a[h]}else{if(i!=="json")throw new Error("Only json dataType can be used for "+b+" operation.");if(b!=="destroy"){for(h in a)e=a[h],typeof e=="number"&&(a[h]=e+"");d=c.stringify(a)}}return d}}}})}(jQuery),function(a,b){var c=window.kendo,d=a.isArray,e=a.isPlainObject,f=a.map,g=a.each,h=a.extend,i=c.getter,j=c.Class,k=j.extend({init:function(a){var b=this,i=a.total,j=a.model,k=a.data;if(j){if(e(j)){j.fields&&g(j.fields,function(a,c){e(c)&&c.field?c=h(c,{field:b.getter(c.field)}):c={field:b.getter(c)},j.fields[a]=c});var l=j.id;if(l){var m={};m[b.xpathToMember(l,!0)]={field:b.getter(l)},j.fields=h(m,j.fields),j.id=b.xpathToMember(l)}j=c.data.Model.define(j)}b.model=j}i&&(i=b.getter(i),b.total=function(a){return parseInt(i(a),10)}),k&&(k=b.xpathToMember(k),b.data=function(a){var c=b.evaluate(a,k),e;c=d(c)?c:[c];if(b.model&&j.fields){e=new b.model;return f(c,function(a){if(a){var b={},c;for(c in j.fields)b[c]=e._parse(c,j.fields[c].field(a));return b}})}return c})},total:function(a){return this.data(a).length},errors:function(a){return a?a.errors:null},parseDOM:function(a){var c={},e,f,g,h,i,j,k=a.attributes,l=k.length,m;for(m=0;m<l;m++)j=k[m],c["@"+j.nodeName]=j.nodeValue;for(f=a.firstChild;f;f=f.nextSibling)g=f.nodeType,g===3||g===4?c["#text"]=f.nodeValue:g===1&&(e=this.parseDOM(f),h=f.nodeName,i=c[h],d(i)?i.push(e):i!==b?i=[i,e]:i=e,c[h]=i);return c},evaluate:function(a,b){var c=b.split("."),e,f,g,h,i;while(e=c.shift()){a=a[e];if(d(a)){f=[],b=c.join(".");for(i=0,g=a.length;i<g;i++)h=this.evaluate(a[i],b),h=d(h)?h:[h],f.push.apply(f,h);return f}}return a},parse:function(b){var c,d,e={};c=b.documentElement||a.parseXML(b).documentElement,d=this.parseDOM(c),e[c.nodeName]=d;return e},xpathToMember:function(a,b){if(!a)return"";a=a.replace(/^\//,"").replace(/\//g,".");if(a.indexOf("@")>=0)return a.replace(/\.?(@.*)/,b?"$1":'["$1"]');if(a.indexOf("text()")>=0)return a.replace(/(\.?text\(\))/,b?"#text":'["#text"]');return a},getter:function(a){return i(this.xpathToMember(a),!0)}});a.extend(!0,c.data,{XmlDataReader:k,readers:{xml:k}})}(jQuery),function(a,b){function bE(b,c){var d=a(b).children(),e,f,g=[],h,i=c[0].field,j=c[1]&&c[1].field,k=c[2]&&c[2].field,l=c[3]&&c[3].field,m,n,o,p,q;for(e=0,f=d.length;e<f;e++)h={},m=d.eq(e),o=m[0].firstChild,q=m.children(),b=q.filter("ul"),q=q.filter(":not(ul)"),n=m.attr("data-id"),n&&(h.id=n),o&&(h[i]=o.nodeType==3?o.nodeValue:q.text()),j&&(h[j]=q.find("a").attr("href")),l&&(h[l]=q.find("img").attr("src")),k&&(p=q.find(".k-sprite").prop("className"),h[k]=p&&a.trim(p.replace("k-sprite",""))),b.length&&(h.items=bE(b.eq(0),c)),m.attr("data-hasChildren")=="true"&&(h.hasChildren=!0),g.push(h);return g}function bB(b,c){var d=a(b)[0].tBodies[0],e=d?d.rows:[],f,g,h,i=c.length,j=[],k,l,m,n;for(f=0,g=e.length;f<g;f++){l={},n=!0,k=e[f].cells;for(h=0;h<i;h++)m=k[h],m.nodeName.toLowerCase()!=="th"&&(n=!1,l[c[h].field]=m.innerHTML);n||j.push(l)}return j}function bA(b,c){var d=a(b)[0].children,e,f,g=[],h,i=c[0],j=c[1],k,l;for(e=0,f=d.length;e<f;e++)h={},l=d[e],h[i.field]=l.text,k=l.attributes.value,k&&k.specified?k=l.value:k=l.text,h[j.field]=k,g.push(h);return g}function by(a,b){var c,d;for(c=0,d=a.length;c<d;c++)if(b(a[c]))return c;return-1}function bx(a,b){if(b)return by(a,function(a){return a.uid==b.uid});return-1}function bw(a,b){if(b)return by(a,function(a){return a[b.idField]===b.id});return-1}function bv(a,b){var c,d,e,f;for(e=a.length-1,f=0;e>=f;e--)d=a[e],c={value:b.get(d.field),field:d.field,items:c?[c]:[b],hasSubgroups:!!c,aggregates:{}};return c}function bu(a,b){var c,d;for(c=0,d=a.length;c<d;c++)if(a[c].uid==b.uid){b=a[c],a.splice(c,1);return b}}function bt(a,b){var c,d;for(c=0,d=a.length;c<d;c++)if(a[c].hasSubgroups){if(bt(a[c].items,b))return!0}else if(b(a[c].items,a[c]))return!0}function bs(a,b){var c,d,e,f;if(b)for(c=0,d=a.length;c<d;c++)e=a[c],f=e.items,e.hasSubgroups?bs(f,b):f.length&&!(f[0]instanceof b)&&(f.type=b,f.wrapAll(f,f))}function br(a){var b,c,d=[];for(b=0,c=a.length;b<c;b++)a[b].hasSubgroups?d=d.concat(br(a[b].items)):d=d.concat(a[b].items.slice());return d}function bp(a,b,c,d){return function(e){e=a(e),e&&!g(d)&&(M.call(e)!=="[object Array]"&&!(e instanceof Q)&&(e=[e]),c(e,d,new b));return e||[]}}function bo(a,b,c){var d,e,f;for(e=0,f=a.length;e<f;e++)d=a[e],d.value=c._parse(d.field,d.value),d.hasSubgroups?bo(d.items,b,c):bn(d.items,b,c)}function bn(a,b,c){var d,e,f,g;for(f=0,g=a.length;f<g;f++){d=a[f];for(e in b)d[e]=c._parse(e,b[e](d))}}function bj(a,b){b=b||{};var c=new Z(a),d=b.aggregate,e=b.filter;e&&(c=c.filter(e));return c.aggregate(d)}function bi(a,c){c=c||{};var d=new Z(a),e=c.group,f=bd(e||[]).concat($(c.sort||[])),g,h=c.filter,i=c.skip,j=c.take;h&&(d=d.filter(h),g=d.toArray().length),f&&(d=d.sort(f),e&&(a=d.toArray())),i!==b&&j!==b&&(d=d.range(i,j)),e&&(d=d.group(e,a));return{total:g,data:d.toArray()}}function bh(a){var b,c=a.length,d=Array(c);for(b=0;b<c;b++)d[b]=a[b].toJSON();return d}function bf(a,b,c,d,e){b=b||[];var f,g,h,i=b.length;for(f=0;f<i;f++){g=b[f],h=g.aggregate;var j=g.field;a[j]=a[j]||{},a[j][h]=bg[h.toLowerCase()](a[j][h],c,n.accessor(j),d,e)}}function be(a,b){if(a&&a.getTime&&b&&b.getTime)return a.getTime()===b.getTime();return a===b}function bd(a,c){var d=typeof a===q?{field:a,dir:c}:a,e=h(d)?d:d!==b?[d]:[];return k(e,function(a){return{field:a.field,dir:a.dir||"asc",aggregates:a.aggregates}})}function bc(a){return h(a)?a:[a]}function bb(a){if(a&&!g(a)){if(h(a)||!a.filters)a={logic:"and",filters:h(a)?a:[a]};ba(a);return a}}function ba(a){var b,c,d,e,f=a.filters;if(f)for(b=0,c=f.length;b<c;b++)d=f[b],e=d.operator,e&&typeof e===q&&(d.operator=_[e.toLowerCase()]||e),ba(d)}function $(a,c){if(a){var d=typeof a===q?{field:a,dir:c}:a,e=h(d)?d:d!==b?[d]:[];return i(e,function(a){return!!a.dir})}}function Z(a){this.data=a||[]}function S(b,c){if(b===c)return!0;var d=a.type(b),e=a.type(c),f;if(d!==e)return!1;if(d==="date")return b.getTime()===c.getTime();if(d!=="object"&&d!=="array")return!1;for(f in b)if(!S(b[f],c[f]))return!1;return!0}var c=a.extend,d=a.proxy,e=a.isFunction,f=a.isPlainObject,g=a.isEmptyObject,h=a.isArray,i=a.grep,j=a.ajax,k,l=a.each,m=a.noop,n=window.kendo,o=n.Observable,p=n.Class,q="string",r="function",s="create",t="read",u="update",v="destroy",w="change",x="get",y="error",z="requestStart",A=[s,t,u,v],B=function(a){return a},C=n.getter,D=n.stringify,E=Math,F=[].push,G=[].join,H=[].pop,I=[].splice,J=[].shift,K=[].slice,L=[].unshift,M={}.toString,N=n.support.stableSort,O=/^\/Date\((.*?)\)\/$/,P=/(?=['\\])/g,Q=o.extend({init:function(a,b){var c=this;c.type=b||R,o.fn.init.call(c),c.length=a.length,c.wrapAll(a,c)},toJSON:function(){var a,b=this.length,c,d=Array(b);for(a=0;a<b;a++)c=this[a],c instanceof R&&(c=c.toJSON()),d[a]=c;return d},parent:m,wrapAll:function(a,b){var c=this,d,e,f=function(){return c};b=b||[];for(d=0,e=a.length;d<e;d++)b[d]=c.wrap(a[d],f);return b},wrap:function(a,b){var c=this,d;a!==null&&M.call(a)==="[object Object]"&&(d=a instanceof c.type||a instanceof V,d||(a=a instanceof R?a.toJSON():a,a=new c.type(a)),a.parent=b,a.bind(w,function(a){c.trigger(w,{field:a.field,node:a.node,index:a.index,items:a.items||[this],action:a.action||"itemchange"})}));return a},push:function(){var a=this.length,b=this.wrapAll(arguments),c;c=F.apply(this,b),this.trigger(w,{action:"add",index:a,items:b});return c},slice:K,join:G,pop:function(){var a=this.length,b=H.apply(this);a&&this.trigger(w,{action:"remove",index:a-1,items:[b]});return b},splice:function(a,b,c){var d=this.wrapAll(K.call(arguments,2)),e,f,g;e=I.apply(this,[a,b].concat(d));if(e.length){this.trigger(w,{action:"remove",index:a,items:e});for(f=0,g=e.length;f<g;f++)e[f].children&&e[f].unbind(w)}c&&this.trigger(w,{action:"add",index:a,items:d});return e},shift:function(){var a=this.length,b=J.apply(this);a&&this.trigger(w,{action:"remove",index:0,items:[b]});return b},unshift:function(){var a=this.wrapAll(arguments),b;b=L.apply(this,a),this.trigger(w,{action:"add",index:0,items:a});return b},indexOf:function(a){var b=this,c,d;for(c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1}}),R=o.extend({init:function(a){var b=this,c,d,e=function(){return b},f;o.fn.init.call(this);for(d in a)c=a[d],d.charAt(0)!="_"&&(f=M.call(c),c=b.wrap(c,d,e)),b[d]=c;b.uid=n.guid()},shouldSerialize:function(a){return this.hasOwnProperty(a)&&a!=="_events"&&typeof this[a]!==r&&a!=="uid"},toJSON:function(){var a={},b,c;for(c in this)if(this.shouldSerialize(c)){b=this[c];if(b instanceof R||b instanceof Q)b=b.toJSON();a[c]=b}return a},get:function(a){var b=this,c;b.trigger(x,{field:a}),a==="this"?c=b:c=n.getter(a,!0)(b);return c},_set:function(a,b){var c=this;if(a.indexOf(".")){var d=a.split("."),e="";while(d.length>1){e+=d.shift();var f=n.getter(e,!0)(c);if(f instanceof R){f.set(d.join("."),b);return}e+="."}}n.setter(a)(c,b)},set:function(a,b){var c=this,d=c[a],e=function(){return c};d!==b&&(c.trigger("set",{field:a,value:b})||(c._set(a,c.wrap(b,a,e)),c.trigger(w,{field:a})))},parent:m,wrap:function(a,b,c){var d=this,e=M.call(a),f=a instanceof Q;a===null||e!=="[object Object]"||a instanceof bz||!!f?a===null||e!=="[object Array]"&&!f?a!==null&&a instanceof bz&&(a._parent=c):(f||(a=new Q(a)),a.parent=c,function(b){a.bind(w,function(a){d.trigger(w,{field:b,index:a.index,items:a.items,action:a.action})})}(b)):(a instanceof R||(a=new R(a)),a.parent=c,function(b){a.bind(x,function(a){a.field=b+"."+a.field,d.trigger(x,a)}),a.bind(w,function(a){a.field=b+"."+a.field,d.trigger(w,a)})}(b));return a}}),T={number:function(a){return n.parseFloat(a)},date:function(a){if(typeof a===q){var b=O.exec(a);if(b)return new Date(parseInt(b[1],10))}return n.parseDate(a)},"boolean":function(a){if(typeof a===q)return a.toLowerCase()==="true";return!!a},string:function(a){return a+""},"default":function(a){return a}},U={string:"",number:0,date:new Date,"boolean":!1,"default":""},V=R.extend({init:function(c){var d=this;if(!c||a.isEmptyObject(c))c=a.extend({},d.defaults,c);R.fn.init.call(d,c),d.dirty=!1,d.idField&&(d.id=d.get(d.idField),d.id===b&&(d.id=d._defaultId))},shouldSerialize:function(a){return R.fn.shouldSerialize.call(this,a)&&a!=="uid"&&(this.idField==="id"||a!=="id")&&a!=="dirty"&&a!=="_accessors"},_parse:function(a,b){var c=this,d;a=(c.fields||{})[a],a&&(d=a.parse,!d&&a.type&&(d=T[a.type.toLowerCase()]));return d?d(b):b},editable:function(a){a=(this.fields||{})[a];return a?a.editable!==!1:!0},set:function(a,b,c){var d=this;d.editable(a)&&(b=d._parse(a,b),S(b,d.get(a))||(d.dirty=!0,R.fn.set.call(d,a,b,c)))},accept:function(a){var b=this;c(b,a),b.idField&&(b.id=b.get(b.idField)),b.dirty=!1},isNew:function(){return this.id===this._defaultId}});V.define=function(a,d){d===b&&(d=a,a=V);var e,f=c({},{defaults:{}},d),g,h,i,j,k=f.id;k&&(f.idField=k),f.id&&delete f.id,k&&(f.defaults[k]=f._defaultId="");for(g in f.fields)h=f.fields[g],i=h.type||"default",j=null,g=typeof h.field===q?h.field:g,h.nullable||(j=f.defaults[g]=h.defaultValue!==b?h.defaultValue:U[i.toLowerCase()]),d.id===g&&(f._defaultId=j),f.defaults[g]=j,h.parse=h.parse||T[i];e=a.extend(f),e.define=function(a){return V.define(e,a)},f.fields&&(e.fields=f.fields,e.idField=f.idField);return e};var W={selector:function(a){return e(a)?a:C(a)},asc:function(a){var b=this.selector(a);return function(a,c){a=b(a),c=b(c);return a>c?1:a<c?-1:0}},desc:function(a){var b=this.selector(a);return function(a,c){a=b(a),c=b(c);return a<c?1:a>c?-1:0}},create:function(a){return this[a.dir.toLowerCase()](a.field)},combine:function(a){return function(b,c){var d=a[0](b,c),e,f;for(e=1,f=a.length;e<f;e++)d=d||a[e](b,c);return d}}},X=c({},W,{asc:function(a){var b=this.selector(a);return function(a,c){var d=b(a),e=b(c);if(d===e)return a.__position-c.__position;return d>e?1:d<e?-1:0}},desc:function(a){var b=this.selector(a);return function(a,c){var d=b(a),e=b(c);if(d===e)return a.__position-c.__position;return d<e?1:d>e?-1:0}}});k=function(a,b){var c,d=a.length,e=Array(d);for(c=0;c<d;c++)e[c]=b(a[c],c,a);return e};var Y=function(){function b(b,c,d,e){var f;d!=null&&(typeof d===q&&(d=a(d),f=O.exec(d),f?d=new Date(+f[1]):e?(d="'"+d.toLowerCase()+"'",c="("+c+" || '').toLowerCase()"):d="'"+d+"'"),d.getTime&&(c="("+c+"?"+c+".getTime():"+c+")",d=d.getTime()));return c+" "+b+" "+d}function a(a){return a.replace(P,"\\")}return{eq:function(a,c,d){return b("==",a,c,d)},neq:function(a,c,d){return b("!=",a,c,d)},gt:function(a,c,d){return b(">",a,c,d)},gte:function(a,c,d){return b(">=",a,c,d)},lt:function(a,c,d){return b("<",a,c,d)},lte:function(a,c,d){return b("<=",a,c,d)},startswith:function(b,c,d){d&&(b=b+".toLowerCase()",c&&(c=c.toLowerCase())),c&&(c=a(c));return b+".lastIndexOf('"+c+"', 0) == 0"},endswith:function(b,c,d){d&&(b=b+".toLowerCase()",c&&(c=c.toLowerCase())),c&&(c=a(c));return b+".lastIndexOf('"+c+"') == "+b+".length - "+(c||"").length},contains:function(b,c,d){d&&(b="("+b+" || '').toLowerCase()",c&&(c=c.toLowerCase())),c&&(c=a(c));return b+".indexOf('"+c+"') >= 0"},doesnotcontain:function(b,c,d){d&&(b="("+b+" || '').toLowerCase()",c&&(c=c.toLowerCase())),c&&(c=a(c));return b+".indexOf('"+c+"') == -1"}}}();Z.filterExpr=function(a){var c=[],d={and:" && ",or:" || "},e,f,g,h,i=[],j=[],k,l,m=a.filters;for(e=0,f=m.length;e<f;e++)g=m[e],k=g.field,l=g.operator,g.filters?(h=Z.filterExpr(g),g=h.expression.replace(/__o\[(\d+)\]/g,function(a,b){b=+b;return"__o["+(j.length+b)+"]"}).replace(/__f\[(\d+)\]/g,function(a,b){b=+b;return"__f["+(i.length+b)+"]"}),j.push.apply(j,h.operators),i.push.apply(i,h.fields)):(typeof k===r?(h="__f["+i.length+"](d)",i.push(k)):h=n.expr(k),typeof l===r?(g="__o["+j.length+"]("+h+", "+g.value+")",j.push(l)):g=Y[(l||"eq").toLowerCase()](h,g.value,g.ignoreCase!==b?g.ignoreCase:!0)),c.push(g);return{expression:"("+c.join(d[a.logic])+")",fields:i,operators:j}};var _={"==":"eq",equals:"eq",isequalto:"eq",equalto:"eq",equal:"eq","!=":"neq",ne:"neq",notequals:"neq",isnotequalto:"neq",notequalto:"neq",notequal:"neq","<":"lt",islessthan:"lt",lessthan:"lt",less:"lt","<=":"lte",le:"lte",islessthanorequalto:"lte",lessthanequal:"lte",">":"gt",isgreaterthan:"gt",greaterthan:"gt",greater:"gt",">=":"gte",isgreaterthanorequalto:"gte",greaterthanequal:"gte",ge:"gte",notsubstringof:"doesnotcontain"};Z.normalizeFilter=bb,Z.prototype={toArray:function(){return this.data},range:function(a,b){return new Z(this.data.slice(a,a+b))},skip:function(a){return new Z(this.data.slice(a))},take:function(a){return new Z(this.data.slice(0,a))},select:function(a){return new Z(k(this.data,a))},orderBy:function(a){var b=this.data.slice(0),c=e(a)||!a?W.asc(a):a.compare;return new Z(b.sort(c))},orderByDescending:function(a){return new Z(this.data.slice(0).sort(W.desc(a)))},sort:function(a,b,c){var d,e,f=$(a,b),g=[];c=c||W;if(f.length){for(d=0,e=f.length;d<e;d++)g.push(c.create(f[d]));return this.orderBy({compare:c.combine(g)})}return this},filter:function(a){var b,c,d,e,f,g=this.data,h,i,j=[],k;a=bb(a);if(!a||a.filters.length===0)return this;e=Z.filterExpr(a),h=e.fields,i=e.operators,f=k=new Function("d, __f, __o","return "+e.expression);if(h.length||i.length)k=function(a){return f(a,h,i)};for(b=0,d=g.length;b<d;b++)c=g[b],k(c)&&j.push(c);return new Z(j)},group:function(a,b){a=bd(a||[]),b=b||this.data;var c=this,d=new Z(c.data),e;a.length>0&&(e=a[0],d=d.groupBy(e).select(function(c){var d=(new Z(b)).filter([{field:c.field,operator:"eq",value:c.value}]);return{field:c.field,value:c.value,items:a.length>1?(new Z(c.items)).group(a.slice(1),d.toArray()).toArray():c.items,hasSubgroups:a.length>1,aggregates:d.aggregate(e.aggregates)}}));return d},groupBy:function(a){if(g(a)||!this.data.length)return new Z([]);var b=a.field,c=this._sortForGrouping(b,a.dir||"asc"),d=n.accessor(b),e,f=d.get(c[0],b),h={field:b,value:f,items:[]},i,j,k,l=[h];for(j=0,k=c.length;j<k;j++)e=c[j],i=d.get(e,b),be(f,i)||(f=i,h={field:b,value:f,items:[]},l.push(h)),h.items.push(e);return new Z(l)},_sortForGrouping:function(a,b){var c,d,e=this.data;if(!N){for(c=0,d=e.length;c<d;c++)e[c].__position=c;e=(new Z(e)).sort(a,b,X).toArray();for(c=0,d=e.length;c<d;c++)delete e[c].__position;return e}return this.sort(a,b).toArray()},aggregate:function(a){var b,c,d={};if(a&&a.length)for(b=0,c=this.data.length;b<c;b++)bf(d,a,this.data[b],b,c);return d}};var bg={sum:function(a,b,c){return(a||0)+c.get(b)},count:function(a,b,c){return(a||0)+1},average:function(a,b,c,d,e){a=(a||0)+c.get(b),d==e-1&&(a=a/e);return a},max:function(a,b,c){var d=c.get(b);a=a||0,a<d&&(a=d);return a},min:function(a,b,c){var d=c.get(b);a=a||d,a>d&&(a=d);return a}},bk=p.extend({init:function(a){this.data=a.data},read:function(a){a.success(this.data)},update:function(a){a.success(a.data)},create:function(a){a.success(a.data)},destroy:m}),bl=p.extend({init:function(a){var b=this,d;a=b.options=c({},b.options,a),l(A,function(b,c){typeof a[c]===q&&(a[c]={url:a[c]})}),b.cache=a.cache?bm.create(a.cache):{find:m,add:m},d=a.parameterMap,b.parameterMap=e(d)?d:function(a){var b={};l(a,function(a,c){a in d&&(a=d[a],f(a)&&(c=a.value(c),a=a.key)),b[a]=c});return b}},options:{parameterMap:B},create:function(a){return j(this.setup(a,s))},read:function(c){var d=this,e,f,g,h=d.cache;c=d.setup(c,t),e=c.success||m,f=c.error||m,g=h.find(c.data),g!==b?e(g):(c.success=function(a){h.add(c.data,a),e(a)},a.ajax(c))},update:function(a){return j(this.setup(a,u))},destroy:function(a){return j(this.setup(a,v))},setup:function(a,b){a=a||{};var d=this,f,g=d.options[b],h=e(g.data)?g.data(a.data):g.data;a=c(!0,{},g,a),f=c(!0,{},h,a.data),a.data=d.parameterMap(f,b),e(a.url)&&(a.url=a.url(f));return a}}),bm=p.extend({init:function(){this._store={}},add:function(a,c){a!==b&&(this._store[D(a)]=c)},find:function(a){return this._store[D(a)]},clear:function(){this._store={}},remove:function(a){delete this._store[D(a)]}});bm.create=function(a){var b={inmemory:function(){return new bm}};if(f(a)&&e(a.find))return a;if(a===!0)return new bm;return b[a]()};var bq=p.extend({init:function(a){var b=this,c,e,g,h;a=a||{};for(c in a)e=a[c],b[c]=typeof e===q?C(e):e;h=a.modelBase||V;if(f(b.model)){b.model=g=h.define(b.model);var i=d(b.data,b),j=d(b.groups,b),k={};g.fields&&l(g.fields,function(a,b){f(b)&&b.field?k[b.field]=C(b.field):k[a]=C(a)}),b.data=bp(i,g,bn,k),b.groups=bp(j,g,bo,k)}},errors:function(a){return a?a.errors:null},parse:B,data:B,total:function(a){return a.length},groups:B,status:function(a){return a.status},aggregates:function(){return{}}}),bz=o.extend({init:function(a){var d=this,g,h,i;a&&(i=a.data),a=d.options=c({},d.options,a),c(d,{_map:{},_prefetch:{},_data:[],_ranges:[],_view:[],_pristine:[],_destroyed:[],_pageSize:a.pageSize,_page:a.page||(a.pageSize?1:b),_sort:$(a.sort),_filter:bb(a.filter),_group:bd(a.group),_aggregate:a.aggregate,_total:a.total}),o.fn.init.call(d),h=a.transport,h?(h.read=typeof h.read===q?{url:h.read}:h.read,a.type&&(n.data.transports[a.type]&&!f(n.data.transports[a.type])?d.transport=new n.data.transports[a.type](c(h,{data:i})):h=c(!0,{},n.data.transports[a.type],h),a.schema=c(!0,{},n.data.schemas[a.type],a.schema)),d.transport||(d.transport=e(h.read)?h:new bl(h))):d.transport=new bk({data:a.data}),d.reader=new n.data.readers[a.schema.type||"json"](a.schema),g=d.reader.model||{},d._data=d._observe(d._data),d.bind([y,w,z],a)},options:{data:[],schema:{modelBase:V},serverSorting:!1,serverPaging:!1,serverFiltering:!1,serverGrouping:!1,serverAggregates:!1,sendAllFields:!0,batch:!1},_flatData:function(a){if(this.options.serverGrouping&&this.group().length)return br(a);return a},get:function(a){var b,c,d=this._flatData(this._data);for(b=0,c=d.length;b<c;b++)if(d[b].id==a)return d[b]},getByUid:function(a){var b,c,d=this._flatData(this._data);for(b=0,c=d.length;b<c;b++)if(d[b].uid==a)return d[b]},sync:function(){var b=this,c,d,e=[],f=[],g=b._destroyed,h=b._flatData(b._data);if(!!b.reader.model){for(c=0,d=h.length;c<d;c++)h[c].isNew()?e.push(h[c]):h[c].dirty&&f.push(h[c]);var i=b._send("create",e);i.push.apply(i,b._send("update",f)),i.push.apply(i,b._send("destroy",g)),a.when.apply(null,i).then(function(){var a,c;for(a=0,c=arguments.length;a<c;a++)b._accept(arguments[a]);b._change()})}},_accept:function(b){var d=this,e=b.models,f=b.response,g=0,h=d.options.serverGrouping&&d.group()&&d.group().length,i=d.reader.data(d._pristine),j=b.type,k;if(f){f=d.reader.parse(f);if(d._handleCustomErrors(f))return;f=d.reader.data(f),a.isArray(f)||(f=[f])}else f=a.map(e,function(a){return a.toJSON()});j==="destroy"&&(d._destroyed=[]);for(g=0,k=e.length;g<k;g++)j!=="destroy"?(e[g].accept(f[g]),j==="create"?i.push(h?bv(d.group(),e[g]):e[g]):j==="update"&&(h?d._updatePristineGroupModel(e[g],f[g]):c(i[d._pristineIndex(e[g])],f[g]))):h?d._removePristineGroupModel(e[g]):i.splice(d._pristineIndex(e[g]),1)},_pristineIndex:function(a){var b=this,c,d,e=b.reader.data(b._pristine);for(c=0,d=e.length;c<d;c++)if(e[c][a.idField]===a.id)return c;return-1},_updatePristineGroupModel:function(a,b){var d=this.reader.groups(this._pristine),e;bt(d,function(d,f){e=bw(d,a);if(e>-1){c(!0,d[e],b);return!0}})},_removePristineGroupModel:function(a){var b=this.reader.groups(this._pristine),c;bt(b,function(b,d){c=bw(b,a);if(c>-1){b.splice(c,1);return!0}})},_promise:function(b,d,e){var f=this,g=f.transport;return a.Deferred(function(a){g[e].call(g,c({success:function(b){a.resolve({response:b,models:d,type:e})},error:function(b){a.reject(b),f.trigger(y,b)}},b))}).promise()},_send:function(a,b){var c=this,d,e,f=[];if(c.options.batch)b.length&&f.push(c._promise({data:{models:bh(b)}},b,a));else for(d=0,e=b.length;d<e;d++)f.push(c._promise({data:b[d].toJSON()},[b[d]],a));return f},add:function(a){return this.insert(this._data.length,a)},insert:function(a,b){b||(b=a,a=0),b instanceof V||(this.reader.model?b=new this.reader.model(b):b=new R(b)),this.options.serverGrouping&&this.group()&&this.group().length?this._data.splice(a,0,bv(this.group(),b)):this._data.splice(a,0,b);return b},cancelChanges:function(a){var b=this,d,e=b.options.serverGrouping&&b.group()&&b.group().length,f=e?b.reader.groups:b.reader.data,g=f(b._pristine),h;a instanceof n.data.Model?e?b._cancelGroupModel(a):(h=b.indexOf(a),d=b._pristineIndex(a),h!=-1&&(d!=-1&&!a.isNew()?c(!0,b._data[h],g[d]):b._data.splice(h,1))):(b._destroyed=[],b._data=b._observe(g),b._change())},read:function(a){var b=this,c=b._params(a);b._queueRequest(c,function(){b.trigger(z),b._ranges=[],b.transport.read({data:c,success:d(b.success,b),error:d(b.error,b)})})},_cancelGroupModel:function(a){var b=this.reader.groups(this._pristine),d,e;bt(b,function(b,c){e=bw(b,a);if(e>-1){d=b[e];return!0}}),e>-1&&bt(this._data,function(b,f){e=bx(b,a),e>-1&&(a.isNew()?b.splice(e,1):c(!0,b[e],d))})},indexOf:function(a){return bx(this._data,a)},_params:function(a){var b=this,d=c({take:b.take(),skip:b.skip(),page:b.page(),pageSize:b.pageSize(),sort:b._sort,filter:b._filter,group:b._group,aggregate:b._aggregate},a);b.options.serverPaging||(delete d.take,delete d.skip,delete d.page,delete d.pageSize);return d},_queueRequest:function(a,c){var e=this;e._requestInProgress?e._pending={callback:d(c,e),options:a}:(e._requestInProgress=!0,e._pending=b,c())},_dequeueRequest:function(){var a=this;a._requestInProgress=!1,a._pending&&a._queueRequest(a._pending.options,a._pending.callback)},remove:function(a){var b=this._data;if(this.options.serverGrouping&&this.group()&&this.group().length)return this._removeGroupItem(b,a);return bu(b,a)},_removeGroupItem:function(a,b){var c;bt(a,function(a,d){c=bu(a,b);if(c)return!0});return b},error:function(a,b,c){this._dequeueRequest(),this.trigger(y,{xhr:a,status:b,errorThrown:c})},_handleCustomErrors:function(a){if(this.reader.errors){var b=this.reader.errors(a);if(b){this.trigger(y,{xhr:null,status:"customerror",errorThrown:"custom error",errors:b});return!0}}return!1},_parent:m,success:function(b){var c=this,d=c.options,e=d.serverGrouping===!0&&c._group&&c._group.length>0;b=c.reader.parse(b);if(!c._handleCustomErrors(b)){c._pristine=f(b)?a.extend(!0,{},b):b.slice(0),c._total=c.reader.total(b),c._aggregate&&d.serverAggregates&&(c._aggregateResult=c.reader.aggregates(b)),e?b=c.reader.groups(b):b=c.reader.data(b),c._data=c._observe(b);var g=c._skip||0,h=g+c._data.length;c._ranges.push({start:g,end:h,data:c._data}),c._ranges.sort(function(a,b){return a.start-b.start}),c._dequeueRequest(),c._process(c._data)}},_observe:function(a){var b=this,c=b.reader.model,e=!1;c&&a.length&&(e=!(a[0]instanceof c)),a instanceof Q?e&&(a.type=b.reader.model,a.wrapAll(a,a)):(a=new Q(a,b.reader.model),a.parent=function(){return b._parent()}),b.group()&&b.group().length&&b.options.serverGrouping&&bs(a,c);return a.bind(w,d(b._change,b))},_change:function(a){var b=this,c,d,e=a?a.action:"";if(e==="remove")for(c=0,d=a.items.length;c<d;c++)(!a.items[c].isNew||!a.items[c].isNew())&&b._destroyed.push(a.items[c]);if(!b.options.autoSync||e!=="add"&&e!=="remove"&&e!=="itemchange"){var f=b._total||b.reader.total(b._pristine);e==="add"?f++:e==="remove"?f--:e!=="itemchange"&&!b.options.serverPaging&&(f=b.reader.total(b._pristine)),b._total=f,b._process(b._data,a)}else b.sync()},_process:function(a,c){var d=this,e={},f;d.options.serverPaging!==!0&&(e.skip=d._skip,e.take=d._take||d._pageSize,e.skip===b&&d._page!==b&&d._pageSize!==b&&(e.skip=(d._page-1)*d._pageSize)),d.options.serverSorting!==!0&&(e.sort=d._sort),d.options.serverFiltering!==!0&&(e.filter=d._filter),d.options.serverGrouping!==!0&&(e.group=d._group),d.options.serverAggregates!==!0&&(e.aggregate=d._aggregate,d._aggregateResult=bj(a,e)),f=bi(a,e),d._view=f.data,f.total!==b&&!d.options.serverFiltering&&(d._total=f.total),c=c||{},c.items=c.items||d._view,d.trigger(w,c)},at:function(a){return this._data[a]},data:function(a){var c=this;if(a!==b)c._data=this._observe(a),c._total=c._data.length,c._process(c._data);else return c._data},view:function(){return this._view},query:function(a){var c=this,d,e=c.options.serverSorting||c.options.serverPaging||c.options.serverFiltering||c.options.serverGrouping||c.options.serverAggregates;a!==b&&(c._pageSize=a.pageSize,c._page=a.page,c._sort=a.sort,c._filter=a.filter,c._group=a.group,c._aggregate=a.aggregate,c._skip=a.skip,c._take=a.take,c._skip===b&&(c._skip=c.skip(),a.skip=c.skip()),c._take===b&&c._pageSize!==b&&(c._take=c._pageSize,a.take=c._take),a.sort&&(c._sort=a.sort=$(a.sort)),a.filter&&(c._filter=a.filter=bb(a.filter)),a.group&&(c._group=a.group=bd(a.group)),a.aggregate&&(c._aggregate=a.aggregate=bc(a.aggregate))),e||c._data===b||c._data.length===0?c.read(a):(c.trigger(z),d=bi(c._data,a),c.options.serverFiltering||(d.total!==b?c._total=d.total:c._total=c._data.length),c._view=d.data,c._aggregateResult=bj(c._data,a),c.trigger(w,{items:d.data}))},fetch:function(a){var b=this;a&&e(a)&&b.one(w,a),b._query()},_query:function(a){var b=this;b.query(c({},{page:b.page(),pageSize:b.pageSize(),sort:b.sort(),filter:b.filter(),group:b.group(),aggregate:b.aggregate()},a))},next:function(){var a=this,b=a.page(),c=a.total();!b||(c?a.page(b+1):(a._skip=b*a.take(),a._query({page:b+1})))},prev:function(){var a=this,b=a.page(),c=a.total();!!b&&b!==1&&(c?a.page(b-1):(a._skip=a._skip-a.take(),a._query({page:b-1})))},page:function(a){var c=this,d;if(a!==b)a=E.max(E.min(E.max(a,1),c.totalPages()),1),c._query({page:a});else{d=c.skip();return d!==b?E.round((d||0)/(c.take()||1))+1:b}},pageSize:function(a){var c=this;if(a!==b)c._query({pageSize:a,page:1});else return c.take()},sort:function(a){var c=this;if(a!==b)c._query({sort:a});else return c._sort},filter:function(a){var c=this;if(a===b)return c._filter;c._query({filter:a,page:1})},group:function(a){var c=this;if(a!==b)c._query({group:a});else return c._group},total:function(){return this._total||0},aggregate:function(a){var c=this;if(a!==b)c._query({aggregate:a});else return c._aggregate},aggregates:function(){return this._aggregateResult},totalPages:function(){var a=this,b=a.pageSize()||a.total();return E.ceil((a.total()||0)/b)},inRange:function(a,b){var c=this,d=E.min(a+b,c.total());if(!c.options.serverPaging&&c.data.length>0)return!0;return c._findRange(a,d).length>0},range:function(a,c){a=E.min(a||0,this.total());var d=this,e=E.max(E.floor(a/c),0)*c,f=E.min(e+c,d.total()),g;g=d._findRange(a,E.min(a+c,d.total()));if(g.length){d._skip=a>d.skip()?E.min(f,(d.totalPages()-1)*d.take()):e,d._take=c;var h=d.options.serverPaging,i=d.options.serverSorting;try{d.options.serverPaging=!0,d.options.serverSorting=!0,h&&(d._data=g=d._observe(g)),d._process(g)}finally{d.options.serverPaging=h,d.options.serverSorting=i}}else c!==b&&(d._rangeExists(e,f)?e<a&&d.prefetch(f,c,function(){d.range(a,c)}):d.prefetch(e,c,function(){a>e&&f<d.total()&&!d._rangeExists(f,E.min(f+c,d.total()))?d.prefetch(f,c,function(){d.range(a,c)}):d.range(a,c)}))},_findRange:function(a,c){var d=this,e=d._ranges,f,g=[],h,i,j,k,l,m,n,o=d.options,p=o.serverSorting||o.serverPaging||o.serverFiltering||o.serverGrouping||o.serverAggregates,q;for(h=0,q=e.length;h<q;h++){f=e[h];if(a>=f.start&&a<=f.end){var r=0;for(i=h;i<q;i++){f=e[i];if(f.data.length&&a+r>=f.start){l=f.data,m=f.end,p||(n=bi(f.data,{sort:d.sort(),filter:d.filter()}),l=n.data,n.total!==b&&(m=n.total)),j=0,a+r>f.start&&(j=a+r-f.start),k=l.length,m>c&&(k=k-(m-c)),r+=k-j,g=g.concat(l.slice(j,k));if(c<=f.end&&r==c-a)return g}}break}}return[]},skip:function(){var a=this;if(a._skip===b)return a._page!==b?(a._page-1)*(a.take()||1):b;return a._skip},take:function(){var a=this;return a._take||a._pageSize},prefetch:function(a,b,c){var d=this,e=E.min(a+b,d.total()),f={start:a,end:e,data:[]},g={take:b,skip:a,page:a/b+1,pageSize:b,sort:d._sort,filter:d._filter,group:d._group,aggregate:d._aggregate};d._rangeExists(a,e)?c&&c():(clearTimeout(d._timeout),d._timeout=setTimeout(function(){d._queueRequest(g,function(){d.transport.read({data:g,success:function(b){d._dequeueRequest();var e=!1;for(var g=0,h=d._ranges.length;g<h;g++)if(d._ranges[g].start===a){e=!0,f=d._ranges[g];break}e||d._ranges.push(f),b=d.reader.parse(b),f.data=d._observe(d.reader.data(b)),f.end=f.start+f.data.length,d._ranges.sort(function(a,b){return a.start-b.start}),d._total=d.reader.total(b),c&&c()}})})},100))},_rangeExists:function(a,b){var c=this,d=c._ranges,e,f;for(e=0,f=d.length;e<f;e++)if(d[e].start<=a&&d[e].end>=b)return!0;return!1}});bz.create=function(a){a=a&&a.push?{data:a}:a;var b=a||{},d=b.data,e=b.fields,f=b.table,h=b.select,i,j,k={},l;!d&&e&&!b.transport&&(f?d=bB(f,e):h&&(d=bA(h,e)));if(n.data.Model&&e&&(!b.schema||!b.schema.model)){for(i=0,j=e.length;i<j;i++)l=e[i],l.type&&(k[l.field]=l);g(k)||(b.schema=c(!0,b.schema,{model:{fields:k}}))}b.data=d;return b instanceof bz?b:new bz(b)};var bC=V.define({init:function(a){var b=this,d=b.hasChildren||a.hasChildren,f="items",g={};n.data.Model.fn.init.call(b,a),typeof b.children===q&&(f=b.children),g=c({schema:{data:f,model:{hasChildren:d}}},b.children,{data:a}),d||(d=g.schema.data),typeof d===q&&(d=n.getter(d)),e(d)&&(b.hasChildren=!!d.call(b,b)),b.children=new bD(g),b.children._parent=function(){return b},b.children.bind(w,function(a){a.node=a.node||b,b.trigger(w,a)}),b._loaded=!!a&&!!a[f]},hasChildren:!1,level:function(){var a=this.parentNode(),b=0;while(a)b++,a=a.parentNode();return b},load:function(){var a=this,c={};c[a.idField||"id"]=a.id,a._loaded||(a.children._data=b),a.children.one(w,function(){a._loaded=!0}).query(c)},parentNode:function(){var a=this.parent();return a.parent()},loaded:function(a){if(a!==b)this._loaded=a;else return this._loaded},shouldSerialize:function(a){return V.fn.shouldSerialize.call(this,a)&&a!=="children"&&a!=="_loaded"&&a!=="hasChildren"}}),bD=bz.extend({init:function(a){var b=bC.define({children:a});bz.fn.init.call(this,c(!0,{},{schema:{modelBase:b,model:b}},a))},remove:function(a){var b=a.parentNode(),c=this,d;b&&(c=b.children),d=bz.fn.remove.call(c,a),b&&!c.data().length&&(b.hasChildren=!1);return d},insert:function(a,b){var c=this._parent();c&&(c.hasChildren=!0);return bz.fn.insert.call(this,a,b)},getByUid:function(a){var b,c,d,e;d=bz.fn.getByUid.call(this,a);if(d)return d;e=this._flatData(this.data());for(b=0,c=e.length;b<c;b++){d=e[b].children.getByUid(a);if(d)return d}}});bD.create=function(a){a=a&&a.push?{data:a}:a;var b=a||{},c=b.data,d=b.fields,e=b.list;!c&&d&&!b.transport&&e&&(c=bE(e,d)),b.data=c;return b instanceof bD?b:new bD(b)},c(!0,n.data,{readers:{json:bq},Query:Z,DataSource:bz,HierarchicalDataSource:bD,Node:bC,ObservableObject:R,ObservableArray:Q,LocalTransport:bk,RemoteTransport:bl,Cache:bm,DataReader:bq,Model:V})}(jQuery),function(a,b){function F(a,b){var c=a.element,d=c[0].kendoBindingTarget;d&&B(c,d.source,b)}function E(b){var c,d;b=a(b);for(c=0,d=b.length;c<d;c++)D(b[c])}function D(a){var b,c,d=a.children;C(a);if(d)for(b=0,c=d.length;b<c;b++)D(d[b])}function C(b){var c=b.kendoBindingTarget;c&&(c.destroy(),a.support.deleteExpando?delete b.kendoBindingTarget:b.removeAttribute?b.removeAttribute("kendoBindingTarget"):b.kendoBindingTarget=null)}function B(b,d,e){var f,g;d=c.observable(d),b=a(b);for(f=0,g=b.length;f<g;f++)A(b[f],d,e)}function A(a,b,d){var e=a.getAttribute("data-"+c.ns+"role"),f,g=a.getAttribute("data-"+c.ns+"bind"),h=a.children,i=!0,j,k={},l;d||(d=c.ui),(e||g)&&C(a),e&&(l=v(e,a,d)),g&&(g=y(g.replace(x,"")),l||(k=c.parseOptions(a,{textField:"",valueField:"",template:"",valueUpdate:n}),l=new s(a,k)),l.source=b,j=z(g,b,o),k.template&&(j.template=new q(b,"",k.template)),j.click&&(g.events=g.events||{},g.events.click=g.click,delete j.click),j.source&&(i=!1),g.attr&&(j.attr=z(g.attr,b,o)),g.style&&(j.style=z(g.style,b,o)),g.events&&(j.events=z(g.events,b,p)),l.bind(j)),l&&(a.kendoBindingTarget=l);if(i&&h)for(f=0;f<h.length;f++)A(h[f],b,d)}function z(a,b,c){var d,e={};for(d in a)e[d]=new c(b,a[d]);return e}function y(a){var b={},c,d,e,f,g,h,i;i=a.match(w);for(c=0,d=i.length;c<d;c++)e=i[c],f=e.indexOf(":"),g=e.substring(0,f),h=e.substring(f+1),h.charAt(0)=="{"&&(h=y(h)),b[g]=h;return b}function v(a,b,d){var e=d.roles,f=e[a];if(f)return new t(c.initWidget(b,f.options,e))}function u(a){var b,c,d=[];for(b=0,c=a.length;b<c;b++)a[b].hasSubgroups?d=d.concat(u(a[b].items)):d=d.concat(a[b].items);return d}var c=window.kendo,d=c.Observable,e=c.data.ObservableObject,f=c.data.ObservableArray,g={}.toString,h={},i=c.Class,j,k=a.proxy,l="value",m="checked",n="change";(function(){var a=document.createElement("a");a.innerText!==undefined?j="innerText":a.textContent!==undefined&&(j="textContent")})();var o=d.extend({init:function(a,b){var c=this;d.fn.init.call(c),c.source=a,c.path=b,c.dependencies={},c.dependencies[b]=!0,c.observable=c.source instanceof d,c._access=function(a){c.dependencies[a.field]=!0},c.observable&&(c._change=function(a){c.change(a)},c.source.bind(n,c._change))},change:function(a){var b,c,d,e=this;if(e.path==="this")e.trigger(n,a);else for(b in e.dependencies){c=b.indexOf(a.field);if(c===0){d=b.charAt(a.field.length);if(!d||d==="."||d==="["){e.trigger(n,a);break}}}},start:function(){this.observable&&this.source.bind("get",this._access)},stop:function(){this.observable&&this.source.unbind("get",this._access)},get:function(){var a=this,b=a.source,c,d=a.path,f=b;a.start();if(a.observable){f=b.get(d);while(f===undefined&&b)b=b.parent(),b instanceof e&&(f=b.get(d));typeof f=="function"&&(c=d.lastIndexOf("."),c>0&&(b=b.get(d.substring(0,c))),f=k(f,b),f=f(a.source)),b&&b!==a.source&&b.unbind(n,a._change).bind(n,a._change)}a.stop();return f},set:function(a){this.source.set(this.path,a)},destroy:function(){this.observable&&this.source.unbind(n,this._change)}}),p=o.extend({get:function(){var a=this.source,b=this.path,c;c=a.get(b);while(!c&&a)a=a.parent(),a instanceof e&&(c=a.get(b));return k(c,a)}}),q=o.extend({init:function(a,b,c){var d=this;o.fn.init.call(d,a,b),d.template=c},render:function(a){var b;this.start(),b=c.render(this.template,a),this.stop();return b}}),r=i.extend({init:function(a,b,c){this.element=a,this.bindings=b,this.options=c},bind:function(a,b){var c=this;a=b?a[b]:a,a.bind(n,function(a){c.refresh(b||a)}),c.refresh(b)},destroy:function(){}});h.attr=r.extend({refresh:function(a){this.element.setAttribute(a,this.bindings.attr[a].get())}}),h.style=r.extend({refresh:function(a){this.element.style[a]=this.bindings.style[a].get()}}),h.enabled=r.extend({refresh:function(){this.bindings.enabled.get()?this.element.removeAttribute("disabled"):this.element.setAttribute("disabled","disabled")}}),h.disabled=r.extend({refresh:function(){this.bindings.disabled.get()?this.element.setAttribute("disabled","disabled"):this.element.removeAttribute("disabled")}}),h.events=r.extend({init:function(a,b,c){r.fn.init.call(this,a,b,c),this.handlers={}},refresh:function(b){var c=this.bindings.events[b],d=this.handlers[b]=c.get();a(this.element).bind(b,c.source,d)},destroy:function(){var b=a(this.element),c;for(c in this.handlers)b.unbind(c,this.handlers[c])}}),h.text=r.extend({refresh:function(){var a=this.bindings.text.get();a==null&&(a=""),this.element[j]=a}}),h.visible=r.extend({refresh:function(){this.bindings.visible.get()?this.element.style.display="":this.element.style.display="none"}}),h.invisible=r.extend({refresh:function(){this.bindings.invisible.get()?this.element.style.display="none":this.element.style.display=""}}),h.html=r.extend({refresh:function(){this.element.innerHTML=this.bindings.html.get()}}),h.value=r.extend({init:function(b,c,d){r.fn.init.call(this,b,c,d),this._change=k(this.change,this),this.eventName=d.valueUpdate||n,a(this.element).bind(this.eventName,this._change),this._initChange=!1},change:function(){this._initChange=this.eventName!=n,this.bindings[l].set(this.element.value),this._initChange=!1},refresh:function(){if(!this._initChange){var a=this.bindings[l].get();a==null&&(a=""),this.element.value=a}this._initChange=!1},destroy:function(){a(this.element).unbind(this.eventName,this._change)}}),h.source=r.extend({init:function(a,b,c){r.fn.init.call(this,a,b,c)},refresh:function(a){var b=this,c=b.bindings.source.get();c instanceof f?(a=a||{},a.action=="add"?b.add(a.index,a.items):a.action=="remove"?b.remove(a.index,a.items):a.action!="itemchange"&&b.render()):b.render()},container:function(){var a=this.element;a.nodeName.toLowerCase()=="table"&&(a.tBodies[0]||a.appendChild(document.createElement("tbody")),a=a.tBodies[0]);return a},template:function(){var a=this.options,b=a.template,d=this.container().nodeName.toLowerCase();b||(d=="select"?a.valueField||a.textField?b=c.format('<option value="#:{0}#">#:{1}#</option>',a.valueField||a.textField,a.textField||a.valueField):b="<option>#:data#</option>":d=="tbody"?b="<tr><td>#:data#</td></tr>":d=="ul"||d=="ol"?b="<li>#:data#</li>":b="#:data#",b=c.template(b));return b},destroy:function(){var a=this.bindings.source.get();a.unbind(n,this._change)},add:function(b,d){var e=this.container(),f,g,h,i=e.cloneNode(!1),j=e.children[b];a(i).html(c.render(this.template(),d));if(i.children.length)for(f=0,g=d.length;f<g;f++)h=i.children[0],e.insertBefore(h,j||null),A(h,d[f])},remove:function(a,b){var c,d=this.container();for(c=0;c<b.length;c++)d.removeChild(d.children[a])},render:function(){var b=this.bindings.source.get(),d,e,h=this.container(),i=this.template(),j;!(b instanceof f)&&g.call(b)!=="[object Array]"&&(b.parent&&(j=b.parent),b=new f([b]),b.parent&&(b.parent=j));if(this.bindings.template){a(h).html(this.bindings.template.render(b));if(h.children.length)for(d=0,e=b.length;d<e;d++)A(h.children[d],b[d])}else a(h).html(c.render(i,b))}}),h.input={checked:r.extend({init:function(b,c,d){r.fn.init.call(this,b,c,d),this._change=k(this.change,this),a(this.element).change(this._change)},change:function(){var a=this.element,b=this.value();if(a.type=="radio")this.bindings[m].set(b);else if(a.type=="checkbox"){var c=this.bindings[m].get(),d;c instanceof f?b!==!1&&b!==!0&&(d=c.indexOf(b),d>-1?c.splice(d,1):c.push(b)):this.bindings[m].set(b)}},refresh:function(){var a=this.bindings[m].get(),b=this.element;b.type=="checkbox"?(a instanceof f&&a.indexOf(this.value(b))>=0&&(a=!0),b.checked=a===!0):b.type=="radio"&&a!=null&&b.value===a.toString()&&(b.checked=!0)},value:function(){var a=this.element,b=a.value;a.type=="checkbox"&&(b=="on"||b=="off"||b==="true")&&(b=a.checked);return b},destroy:function(){a(this.element).unbind(n,this._change)}})},h.select={value:r.extend({init:function(b,c,d){r.fn.init.call(this,b,c,d),this._change=k(this.change,this),a(this.element).change(this._change)},change:function(){var a=[],b=this.element,c,d=this.options.valueField||this.options.textField,g,h,i,j,k;for(j=0,k=b.options.length;j<k;j++)g=b.options[j],g.selected&&(i=g.attributes.value,i&&i.specified?i=g.value:i=g.text,a.push(i));if(d){c=this.bindings.source.get();for(h=0;h<a.length;h++)for(j=0,k=c.length;j<k;j++)if(c[j].get(d)==a[h]){a[h]=c[j];break}}i=this.bindings[l].get(),i instanceof f?i.splice.apply(i,[0,i.length].concat(a)):i instanceof e||!d?this.bindings[l].set(a[0]):this.bindings[l].set(a[0].get(d))},refresh:function(){var a,b=this.element,c=b.options,d=this.bindings[l].get(),g=d,h=this.options.valueField||this.options.textField,i;g instanceof f||(g=new f([d]));for(var j=0;j<g.length;j++){d=g[j],h&&d instanceof e&&(d=d.get(h));for(a=0;a<c.length;a++)i=c[a].value,i===""&&d!==""&&(i=c[a].text),i==d&&(c[a].selected=!0)}},destroy:function(){a(this.element).unbind(n,this._change)}})},h.widget={events:r.extend({init:function(a,b,c){r.fn.init.call(this,a.element[0],b,c),this.widget=a,this.handlers={}},refresh:function(a){var b=this.bindings.events[a],c=b.get();this.handlers[a]=function(a){a.data=b.source,c(a)},this.widget.bind(a,this.handlers[a])},destroy:function(){var a;for(a in this.handlers)this.widget.unbind(a,this.handlers[a])}}),checked:r.extend({init:function(a,b,c){r.fn.init.call(this,a.element[0],b,c),this.widget=a,this._change=k(this.change,this),this.widget.bind(n,this._change)},change:function(){this.bindings[m].set(this.value())},refresh:function(){this.widget.check(this.bindings[m].get()===!0)},value:function(){var a=this.element,b=a.value;if(b=="on"||b=="off")b=a.checked;return b},destroy:function(){this.widget.unbind(n,this._change)}}),visible:r.extend({init:function(a,b,c){r.fn.init.call(this,a.element[0],b,c),this.widget=a},refresh:function(){var a=this.bindings.visible.get();this.widget.wrapper[0].style.display=a?"":"none"}}),invisible:r.extend({init:function(a,b,c){r.fn.init.call(this,a.element[0],b,c),this.widget=a},refresh:function(){var a=this.bindings.invisible.get();this.widget.wrapper[0].style.display=a?"none":""}}),enabled:r.extend({init:function(a,b,c){r.fn.init.call(this,a.element[0],b,c),this.widget=a},refresh:function(){this.widget.enable&&this.widget.enable(this.bindings.enabled.get())}}),disabled:r.extend({init:function(a,b,c){r.fn.init.call(this,a.element[0],b,c),this.widget=a},refresh:function(){this.widget.enable&&this.widget.enable(!this.bindings.disabled.get())}}),source:r.extend({init:function(a,b,c){var d=this;r.fn.init.call(d,a.element[0],b,c),d.widget=a,d._dataBinding=k(d.dataBinding,d),d._dataBound=k(d.dataBound,d),d._itemChange=k(d.itemChange,d)},itemChange:function(a){A(a.item[0],a.data,a.ns||c.ui)},dataBinding:function(){var a,b,c=this.widget,d=c.items();for(a=0,b=d.length;a<b;a++)D(d[a])},dataBound:function(a){var b,d,e=this.widget,f=e.items(),g=e.dataSource,h=g.view(),i=a.ns||c.ui,j=g.group()||[];if(f.length){j.length&&(h=u(h));for(b=0,d=h.length;b<d;b++)A(f[b],h[b],i)}},refresh:function(a){var b=this,d,e=b.widget;a=a||{},a.action||(b.destroy(),e.bind("dataBinding",b._dataBinding),e.bind("dataBound",b._dataBound),e.bind("itemChange",b._itemChange),e.dataSource instanceof c.data.DataSource&&(d=b.bindings.source.get(),d instanceof c.data.DataSource?e.setDataSource(d):e.dataSource.data(d)))},destroy:function(){var a=this.widget;a.unbind("dataBinding",this._dataBinding),a.unbind("dataBound",this._dataBound),a.unbind("itemChange",this._itemChange)}}),value:r.extend({init:function(b,c,d){r.fn.init.call(this,b.element[0],c,d),this.widget=b,this._change=a.proxy(this.change,this),this.widget.first(n,this._change);var f=this.bindings.value.get();this._valueIsObservableObject=f==null||f instanceof e},change:function(){var a=this.widget.value(),b,d,e=this.options.dataValueField||this.options.dataTextField;if(e){var f,g=this._valueIsObservableObject;this.bindings.source&&(f=this.bindings.source.get());if(a===""&&g)a=null;else{if(!f||f instanceof c.data.DataSource)f=this.widget.dataSource.view();for(b=0,d=f.length;b<d;b++)if(f[b].get(e)==a){g?a=f[b]:a=f[b].get(e);break}}}this.bindings.value.set(a)},refresh:function(){var a=this.options.dataValueField||this.options.dataTextField,b=this.bindings.value.get();a&&b instanceof e&&(b=b.get(a)),this.widget.value(b)},destroy:function(){this.widget.unbind(n,this._change)}})};var s=i.extend({init:function(a,b){this.target=a,this.options=b,this.toDestroy=[]},bind:function(a){var b=this.target.nodeName.toLowerCase(),c,d=h[b]||{};for(c in a)this.applyBinding(c,a,d)},applyBinding:function(a,b,c){var d=c[a]||h[a],e=this.toDestroy,f,g=b[a];if(d){d=new d(this.target,b,this.options),e.push(d);if(g instanceof o)d.bind(g),e.push(g);else for(f in g)d.bind(g,f),e.push(g[f])}else if(a!=="template")throw new Error("The "+a+" binding is not supported by the "+this.target.nodeName.toLowerCase()+" element")},destroy:function(){var a,b,c=this.toDestroy;for(a=0,b=c.length;a<b;a++)c[a].destroy()}}),t=s.extend({bind:function(a){var b=this,c,d=!1,e=!1;for(c in a)c==l?d=!0:c=="source"?e=!0:b.applyBinding(c,a);e&&b.applyBinding("source",a),d&&b.applyBinding(l,a)},applyBinding:function(a,b){var c=h.widget[a],d=this.toDestroy,e,f=b[a];if(!c)throw new Error("The "+a+" binding is not supported by the "+this.target.options.name+" widget");c=new c(this.target,b,this.target.options),d.push(c);if(f instanceof o)c.bind(f),d.push(f);else for(e in f)c.bind(f,e),d.push(f[e])}}),w=/[A-Za-z0-9_\-]+:(\{([^}]*)\}|[^,}]+)/g,x=/\s/g;c.unbind=E,c.bind=B,c.data.binders=h,c.data.Binder=r,c.notify=F,c.observable=function(a){a instanceof e||(a=new e(a));return a}}(jQuery),function(a,b){function u(a){return a.replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function t(b){var d=c.ui.validator.ruleResolvers||{},e={},f;for(f in d)a.extend(!0,e,d[f].resolve(b));return e}var c=window.kendo,d=c.ui.Widget,e="k-invalid-msg",f="k-invalid",g=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,h=/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,i=":input:not(:button,[type=submit],[type=reset])",j="[type=number],[type=range]",k="blur",l="name",m="form",n="novalidate",o=a.proxy,p=function(a,b){typeof b=="string"&&(b=new RegExp("^(?:"+b+")$"));return b.test(a)},q=function(a,b,c){var d=a.val();if(a.filter(b).length&&d!=="")return p(d,c);return!0},r=function(a,c){if(a.length)return a[0].attributes[c]!==b;return!1},s=/(\[|\]|\$|\.|\:|\+)/g;c.ui.validator||(c.ui.validator={rules:{},messages:{}});var v=d.extend({init:function(b,e){var f=this,g=t(b);e=e||{},e.rules=a.extend({},c.ui.validator.rules,g.rules,e.rules),e.messages=a.extend({},c.ui.validator.messages,g.messages,e.messages),d.fn.init.call(f,b,e),f._errorTemplate=c.template(f.options.errorTemplate),f.element.is(m)&&f.element.attr(n,n),f._errors={},f._attachEvents()},options:{name:"Validator",errorTemplate:'<span class="k-widget k-tooltip k-tooltip-validation"><span class="k-icon k-warning"> </span> ${message}</span>',messages:{required:"{0} is required",pattern:"{0} is not valid",min:"{0} should be greater than or equal to {1}",max:"{0} should be smaller than or equal to {1}",step:"{0} is not valid",email:"{0} is not valid email",url:"{0} is not valid URL",date:"{0} is not valid date"},rules:{required:function(a){var b=a.filter("[type=checkbox]").length&&a.attr("checked")!=="checked",c=a.val();return!r(a,"required")||c!==""&&!!c&&!b},pattern:function(a){if(a.filter("[type=text],[type=email],[type=url],[type=tel],[type=search],[type=password]").filter("[pattern]").length&&a.val()!=="")return p(a.val(),a.attr("pattern"));return!0},min:function(a){if(a.filter(j+",["+c.attr("type")+"=number]").filter("[min]").length&&a.val()!==""){var b=parseFloat(a.attr("min"))||0,d=parseFloat(a.val());return b<=d}return!0},max:function(a){if(a.filter(j+",["+c.attr("type")+"=number]").filter("[max]").length&&a.val()!==""){var b=parseFloat(a.attr("max"))||0,d=parseFloat(a.val());return b>=d}return!0},step:function(a){if(a.filter(j+",["+c.attr("type")+"=number]").filter("[step]").length&&a.val()!==""){var b=parseFloat(a.attr("min"))||0,d=parseFloat(a.attr("step"))||0,e=parseFloat(a.val());return(e-b)*10%(d*10)/100===0}return!0},email:function(a){return q(a,"[type=email],["+c.attr("type")+"=email]",g)},url:function(a){return q(a,"[type=url],["+c.attr("type")+"=url]",h)},date:function(a){if(a.filter("[type^=date],["+c.attr("type")+"=date]").length&&a.val()!=="")return c.parseDate(a.val(),a.attr(c.attr("format")))!==null;return!0}},validateOnBlur:!0},_submit:function(a){if(!this.validate()){a.stopPropagation(),a.stopImmediatePropagation(),a.preventDefault();return!1}return!0},_attachEvents:function(){var b=this;b.element.is(m)&&b.element.submit(o(b._submit,b)),b.options.validateOnBlur&&(b.element.is(i)?b.element.bind(k,function(){b.validateInput(b.element)}):b.element.delegate(i,k,function(){b.validateInput(a(this))}))},validate:function(){var a=this,b,c,d=!1,e;a._errors={};if(!a.element.is(i)){b=a.element.find(i);for(c=0,e=b.length;c<e;c++)a.validateInput(b.eq(c))||(d=!0);return!d}return a.validateInput(a.element)},validateInput:function(b){b=a(b);var c=this,d=c._errorTemplate,g=c._checkValidity(b),h=g.valid,i="."+e,j=b.attr(l)||"",k=c._findMessageContainer(j).add(b.next(i)).hide(),m;if(!h){m=c._extractMessage(b,g.key),c._errors[j]=m;var n=a(d({message:u(m)}));c._decorateMessageContainer(n,j),k.replaceWith(n).length||n.insertAfter(b),n.show()}b.toggleClass(f,!h);return h},_findMessageContainer:function(a){var b=c.ui.validator.messageLocators,d,f=this.element.find("."+e+"["+c.attr("for")+"="+a.replace(s,"\\$1")+"]");for(d in b)f=f.add(b[d].locate(this.element,a));return f},_decorateMessageContainer:function(a,b){var d=c.ui.validator.messageLocators,f;a.addClass(e).attr(c.attr("for"),b||"");for(f in d)d[f].decorate(a,b)},_extractMessage:function(b,d){var e=this,f=e.options.messages[d],g=b.attr(l);f=a.isFunction(f)?f(b):f;return c.format(b.attr(c.attr(d+"-msg"))||b.attr("validationMessage")||b.attr("title")||f||"",g,b.attr(d))},_checkValidity:function(a){var b=this.options.rules,c;for(c in b)if(!b[c](a))return{valid:!1,key:c};return{valid:!0}},errors:function(){var a=[],b=this._errors,c;for(c in b)a.push(b[c]);return a}});c.ui.plugin(v)}(jQuery),function(a,b){function P(b){b.preventDefault();var c=a(b.target),d=c.closest(".k-widget").parent();d[0]||(d=c.parent()),d.trigger(b.type)}function O(a,b){return a.replace(/ /g,b+" ")}function N(a,b){var c=a.offset(),d=c.left+L(a,"borderLeftWidth")+L(a,"paddingLeft"),e=c.top+L(a,"borderTopWidth")+L(a,"paddingTop"),f=d+a.width()-b.outerWidth(!0),g=e+a.height()-b.outerHeight(!0);return{x:{min:d,max:f},y:{min:e,max:g}}}function M(a,b){return Math.min(Math.max(a,b.min),b.max)}function L(a,b){return parseInt(a.css(b),10)||0}function K(a){return f.elementFromPoint(a.x.client,a.y.client)}function J(b,c){try{return a.contains(b,c)||b==c}catch(d){return!1}}var c=window.kendo,d=c.support,e=d.pointers,f=window.document,g=a(f.documentElement),h=c.Class,i=c.ui.Widget,j=c.Observable,k=a.proxy,l=a.now,m=a.extend,n=c.getOffset,o={},p={},q,r=d.mobileOS&&d.mobileOS.android,s="mousedown",t="mousemove",u="mouseup mouseleave",v="keyup",w="change",x="dragstart",y="drag",z="dragend",A="dragcancel",B="dragenter",C="dragleave",D="drop",E="start",F="move",G="end",H="cancel",I="tap";d.touch&&(s="touchstart",t="touchmove",u="touchend touchcancel"),e&&(s="MSPointerDown",t="MSPointerMove",u="MSPointerUp MSPointerCancel");var Q=h.extend({init:function(a){this.axis=a},start:function(a,b){var c=this,d=a["page"+c.axis];c.startLocation=c.location=d,c.client=a["client"+c.axis],c.velocity=c.delta=0,c.timeStamp=b},move:function(a,b){var c=this,d=a["page"+c.axis];if(!!d||!r)c.delta=d-c.location,c.location=d,c.client=a["client"+c.axis],c.initialDelta=d-c.startLocation,c.velocity=c.delta/(b-c.timeStamp),c.timeStamp=b}}),R=j.extend({init:function(b,f){var h=this,i={},l,n,o="."+c.guid();f=f||{},l=h.filter=f.filter,h.threshold=f.threshold||0,b=a(b),j.fn.init.call(h),i[O(t,o)]=k(h._move,h),i[O(u,o)]=k(h._end,h),m(h,{x:new Q("X"),y:new Q("Y"),element:b,surface:f.global?g:f.surface||b,stopPropagation:f.stopPropagation,pressed:!1,eventMap:i,ns:o}),b.on(s,l,k(h._start,h)).on("dragstart",l,c.preventDefault),e&&b.css("-ms-touch-action","pinch-zoom double-tap-zoom");if(!f.allowSelection){var p=["mousedown selectstart",l,P];l instanceof a&&p.splice(2,0,null),b.on.apply(b,p)}d.eventCapture&&(n=function(a){h.moved&&a.preventDefault()},h.surface[0].addEventListener(d.mouseup,n,!0)),h.bind([I,E,F,G,H],f)},capture:function(){R.captured=!0},cancel:function(){this._cancel(),this.trigger(H)},skip:function(){this._cancel()},_cancel:function(){var a=this;a.moved=a.pressed=!1,a.surface.off(a.ns)},_start:function(b){var c=this,f=c.filter,g=b.originalEvent,h,i=b;if(!c.pressed){f?c.target=a(b.target).is(f)?a(b.target):a(b.target).closest(f):c.target=c.element;if(!c.target.length)return;c.currentTarget=b.currentTarget,c.stopPropagation&&b.stopPropagation(),c.pressed=!0,c.moved=!1,c.startTime=null,d.touch&&(h=g.changedTouches[0],c.touchID=h.identifier,i=h),e&&(c.touchID=g.pointerId,i=g),c._perAxis(E,i,l()),c.surface.off(c.eventMap).on(c.eventMap),R.captured=!1}},_move:function(a){var b=this,c,d,e;!b.pressed||b._withEvent(a,function(f){b._perAxis(F,f,l());if(!b.moved){c=b.x.initialDelta,d=b.y.initialDelta,e=Math.sqrt(c*c+d*d);if(e<=b.threshold)return;if(!R.captured)b.startTime=l(),b._trigger(E,a),b.moved=!0;else return b._cancel()}b.pressed&&b._trigger(F,a)})},_end:function(a){var b=this;!b.pressed||b._withEvent(a,function(){b.moved?(b.endTime=l(),b._trigger(G,a),b.moved=!1):b._trigger(I,a),b._cancel()})},_perAxis:function(a,b,c){this.x[a](b,c),this.y[a](b,c)},_trigger:function(a,b){var c={x:this.x,y:this.y,target:this.target,event:b};this.trigger(a,c)&&b.preventDefault()},_withEvent:function(a,b){var c=this,f=c.touchID,g=a.originalEvent,h,i;if(d.touch){h=g.changedTouches,i=h.length;while(i){i--;if(h[i].identifier===f)return b(h[i])}}else{if(!e)return b(a);if(f===g.pointerId)return b(g)}}}),S=j.extend({init:function(b,c){var d=this,e=b[0];d.capture=!1,e.addEventListener(s,k(d._press,d),!0),a.each(u.split(" "),function(){e.addEventListener(this,k(d._release,d),!0)}),j.fn.init.call(d),d.bind(["press","release"],c||{})},_press:function(a){var b=this;b.trigger("press"),b.capture&&a.preventDefault()},_release:function(a){var b=this;b.trigger("release"),b.capture&&(a.preventDefault(),b.cancelCapture())},captureNext:function(){this.capture=!0},cancelCapture:function(){this.capture=!1}}),T=j.extend({init:function(b){var c=this;j.fn.init.call(c),a.extend(c,b),c.max=0,c.horizontal?(c.measure="width",c.scrollSize="scrollWidth",c.axis="x"):(c.measure="height",c.scrollSize="scrollHeight",c.axis="y")},outOfBounds:function(a){return a>this.max||a<this.min},present:function(){return this.max-this.min},getSize:function(){return this.container[this.measure]()},getTotal:function(){return this.element[0][this.scrollSize]},update:function(a){var b=this;b.size=b.getSize(),b.total=b.getTotal(),b.min=Math.min(b.max,b.size-b.total),a||b.trigger(w,b)}}),U=j.extend({init:function(a){var b=this,d=k(b.refresh,b);j.fn.init.call(b),b.x=new T(m({horizontal:!0},a)),b.y=new T(m({horizontal:!1},a)),b.bind(w,a),c.onResize(d)},present:function(){return this.x.present()||this.y.present()},refresh:function(){this.x.update(),this.y.update(),this.trigger(w)}}),V=j.extend({init:function(a){var b=this;m(b,a),j.fn.init.call(b)},dragMove:function(a){var b=this,c=b.dimension,d=b.axis,e=b.movable,f=e[d]+a;if(!!c.present()){if(f<c.min&&a<0||f>c.max&&a>0)a*=b.resistance;e.translateAxis(d,a),b.trigger(w,b)}}}),W=h.extend({init:function(a){var b=this,c,d,e;m(b,{elastic:!0},a),e=b.elastic?.5:0,b.x=c=new V({axis:"x",dimension:b.dimensions.x,resistance:e,movable:b.movable}),b.y=d=new V({axis:"y",dimension:b.dimensions.y,resistance:e,movable:b.movable}),b.drag.bind(["move","end"],{move:function(a){c.dimension.present()||d.dimension.present()?(c.dragMove(a.x.delta),d.dragMove(a.y.delta),a.preventDefault()):b.drag.skip()},end:function(a){a.preventDefault()}})}}),X=d.transitions.prefix+"Transform",Y=Math.round,Z;d.hasHW3D?Z=function(a,b){return"translate3d("+Y(a)+"px,"+Y(b)+"px,0)"}:Z=function(a,b){return"translate("+Y(a)+"px,"+Y(b)+"px)"};var $=j.extend({init:function(b){var c=this;j.fn.init.call(c),c.element=a(b),c.x=0,c.y=0,c._saveCoordinates(Z(c.x,c.y))},translateAxis:function(a,b){this[a]+=b,this.refresh()},translate:function(a){this.x+=a.x,this.y+=a.y,this.refresh()},moveAxis:function(a,b){this[a]=b,this.refresh()},moveTo:function(a){m(this,a),this.refresh()},refresh:function(){var a=this,b=Z(a.x,a.y);b!=a.coordinates&&(a.element[0].style[X]=b,a._saveCoordinates(b),a.trigger(w))},_saveCoordinates:function(a){this.coordinates=a}}),_=i.extend({init:function(a,b){var c=this;i.fn.init.call(c,a,b);var d=c.options.group;d in p?p[d].push(c):p[d]=[c]},events:[B,C,D],options:{name:"DropTarget",group:"default"},_trigger:function(a,b){var c=this,d=o[c.options.group];if(d)return c.trigger(a,m({},b.event,{draggable:d}))},_over:function(a){this._trigger(B,a)},_out:function(a){this._trigger(C,a)},_drop:function(a){var b=this,c=o[b.options.group];c&&(c.dropped=!b._trigger(D,a))}}),ba=i.extend({init:function(a,b){var d=this;i.fn.init.call(d,a,b),d.drag=new R(d.element,{global:!0,stopPropagation:!0,filter:d.options.filter,threshold:d.options.distance,start:k(d._start,d),move:k(d._drag,d),end:k(d._end,d),cancel:k(d._cancel,d)}),d.destroy=k(d._destroy,d),d.captureEscape=function(a){a.keyCode===c.keys.ESC&&(d._trigger(A,{event:a}),d.drag.cancel())}},events:[x,y,z,A],options:{name:"Draggable",distance:5,group:"default",cursorOffset:null,axis:null,container:null,dropped:!1},_start:function(b){var c=this,d=c.options,e=d.container,g=d.hint;c.currentTarget=c.drag.target,c.currentTargetOffset=n(c.currentTarget);if(g){c.hint=a.isFunction(g)?a(g(c.currentTarget)):g;var h=n(c.currentTarget);c.hintOffset=h,c.hint.css({position:"absolute",zIndex:2e4,left:h.left,top:h.top}).appendTo(f.body)}o[d.group]=c,c.dropped=!1,e&&(c.boundaries=N(e,c.hint)),c._trigger(x,b)&&(c.drag.cancel(),c.destroy()),a(f).on(v,c.captureEscape)},updateHint:function(b){var c=this,d,e=c.options,f=c.boundaries,g=e.axis,h=c.options.cursorOffset;h?d={left:b.x.location+h.left,top:b.y.location+h.top}:(c.hintOffset.left+=b.x.delta,c.hintOffset.top+=b.y.delta,d=a.extend({},c.hintOffset)),f&&(d.top=M(d.top,f.y),d.left=M(d.left,f.x)),g==="x"?delete d.top:g==="y"&&delete d.left,c.hint.css(d)},_drag:function(a){var b=this;a.preventDefault(),b._withDropTarget(a,function(b){if(!b)q&&(q._trigger(C,a),q=null);else{if(q){if(b.element[0]===q.element[0])return;q._trigger(C,a)}b._trigger(B,a),q=b}}),b._trigger(y,a),b.hint&&b.updateHint(a)},_end:function(a){var b=this;b._withDropTarget(a,function(b){b&&(b._drop(a),q=null)}),b._trigger(z,a),b._cancel(a.event)},_cancel:function(a){var b=this;b.hint&&!b.dropped?b.hint.animate(b.currentTargetOffset,"fast",b.destroy):b.destroy()},_trigger:function(a,b){var c=this;return c.trigger(a,m({},b.event,{x:b.x,y:b.y,currentTarget:c.currentTarget}))},_withDropTarget:function(a,b){var c=this,d,e,f,g=c.options,h=p[g.group],i=0,j=h&&h.length;if(j){d=K(a),c.hint&&J(c.hint,d)&&(c.hint.hide(),d=K(a),c.hint.show());outer:while(d){for(i=0;i<j;i++){e=h[i];if(e.element[0]===d){f=e;break outer}}d=d.parentNode}b(f)}},_destroy:function(){var b=this;b.hint&&b.hint.remove(),delete o[b.options.group],b.trigger("destroy"),a(f).off(v,b.captureEscape)}});c.ui.plugin(_),c.ui.plugin(ba),c.Drag=R,c.Tap=S,c.containerBoundaries=N,m(c.ui,{Pane:W,PaneDimensions:U,Movable:$})}(jQuery),function(a,b){var c=window.kendo,d=c.mobile,e=c.fx,f=d.ui,g=a.proxy,h=a.extend,i=f.Widget,j=c.Class,k=c.ui.Movable,l=c.ui.Pane,m=c.ui.PaneDimensions,n=e.Transition,o=e.Animation,p=500,q=.7,r=.93,s=.5,t="km-scroller-release",u="km-scroller-refresh",v="pull",w="change",x="resize",y="scroll",z=o.extend({init:function(a){var b=this;o.fn.init.call(b),h(b,a,{transition:new n({axis:a.axis,movable:a.movable,onEnd:function(){b._end()}})}),b.tap.bind("press",function(){b.cancel()}),b.drag.bind("end",g(b.start,b)),b.drag.bind("tap",g(b.onEnd,b))},onCancel:function(){this.transition.cancel()},freeze:function(a){var b=this;b.cancel(),b._moveTo(a)},onEnd:function(){var a=this;a._outOfBounds()?a._snapBack():a._end()},done:function(){return Math.abs(this.velocity)<1},start:function(){var a=this;!a.dimension.present()||(a._outOfBounds()?a._snapBack():(a.velocity=a.drag[a.axis].velocity*16,a.velocity&&(a.tap.captureNext(),o.fn.start.call(a))))},tick:function(){var a=this,b=a.dimension,c=a._outOfBounds()?s:r,d=a.velocity*=c,e=a.movable[a.axis]+d;!a.elastic&&b.outOfBounds(e)&&(e=Math.max(Math.min(e,b.max),b.min),a.velocity=0),a.movable.moveAxis(a.axis,e)},_end:function(){this.tap.cancelCapture(),this.end()},_outOfBounds:function(){return this.dimension.outOfBounds(this.movable[this.axis])},_snapBack:function(){var a=this,b=a.dimension,c=a.movable[a.axis]>b.max?b.max:b.min;a._moveTo(c)},_moveTo:function(a){this.transition.moveTo({location:a,duration:p,ease:n.easeOutExpo})}}),A=j.extend({init:function(b){var c=this,d=b.axis==="x",e=a('<div class="km-touch-scrollbar km-'+(d?"horizontal":"vertical")+'-scrollbar" />');h(c,b,{element:e,elementSize:0,movable:new k(e),scrollMovable:b.movable,size:d?"width":"height"}),c.scrollMovable.bind(w,g(c._move,c)),c.container.append(e)},_move:function(){var a=this,b=a.axis,c=a.dimension,d=c.size,e=a.scrollMovable,f=d/c.total,g=Math.round(-e[b]*f),h=Math.round(d*f);g+h>d?h=d-g:g<0&&(h+=g,g=0),a.elementSize!=h&&(a.element.css(a.size,h+"px"),a.elementSize=h),a.movable.moveAxis(b,g)},show:function(){this.element.css({opacity:q,visibility:"visible"})},hide:function(){this.element.css({opacity:0})}}),B=i.extend({init:function(b,d){var e=this;i.fn.init.call(e,b,d),b=e.element,b.css("overflow","hidden").addClass("km-scroll-wrapper").wrapInner('<div class="km-scroll-container"/>').prepend('<div class="km-scroll-header"/>');var f=b.children().eq(1),g=new c.Tap(b),j=new k(f),n=new m({element:f,container:b,change:function(){e.trigger(x)}}),o=new c.Drag(b,{allowSelection:!0,start:function(a){n.refresh(),n.present()?o.capture():o.cancel()}}),p=new l({movable:j,dimensions:n,drag:o,elastic:e.options.elastic});j.bind(w,function(){e.scrollTop=-j.y,e.scrollLeft=-j.x,e.trigger(y,{scrollTop:e.scrollTop,scrollLeft:e.scrollLeft})}),h(e,{movable:j,dimensions:n,drag:o,pane:p,tap:g,pulled:!1,scrollElement:f,fixedContainer:b.children().first()}),e._initAxis("x"),e._initAxis("y"),n.refresh(),e.options.pullToRefresh&&e._initPullToRefresh(),c.onResize(a.proxy(e.reset,e))},scrollHeight:function(){return this.scrollElement[0].scrollHeight},scrollWidth:function(){return this.scrollElement[0].scrollWidth},options:{name:"Scroller",pullOffset:140,elastic:!0,pullTemplate:"Pull to refresh",releaseTemplate:"Release to refresh",refreshTemplate:"Refreshing"},events:[v,y,x],setOptions:function(a){var b=this;i.fn.setOptions.call(b,a),a.pullToRefresh&&b._initPullToRefresh()},reset:function(){this.movable.moveTo({x:0,y:0})},scrollTo:function(a,b){this.movable.moveTo({x:a,y:b})},pullHandled:function(){var a=this;a.refreshHint.removeClass(u),a.hintContainer.html(a.pullTemplate({})),a.yinertia.onEnd(),a.xinertia.onEnd()},_initPullToRefresh:function(){var a=this;a.pullTemplate=c.template(a.options.pullTemplate),a.releaseTemplate=c.template(a.options.releaseTemplate),a.refreshTemplate=c.template(a.options.refreshTemplate),a.scrollElement.prepend('<span class="km-scroller-pull"><span class="km-icon"></span><span class="km-template">'+a.pullTemplate({})+"</span></span>"),a.refreshHint=a.scrollElement.children().first(),a.hintContainer=a.refreshHint.children(".km-template"),a.pane.y.bind("change",g(a._paneChange,a)),a.drag.bind("end",g(a._dragEnd,a))},_dragEnd:function(){var a=this;!a.pulled||(a.pulled=!1,a.refreshHint.removeClass(t).addClass(u),a.hintContainer.html(a.refreshTemplate({})),a.trigger("pull"),a.yinertia.freeze(a.options.pullOffset/2))},_paneChange:function(){var a=this;a.movable.y/s>a.options.pullOffset?a.pulled||(a.pulled=!0,a.refreshHint.removeClass(u).addClass(t),a.hintContainer.html(a.releaseTemplate({}))):a.pulled&&(a.pulled=!1,a.refreshHint.removeClass(t),a.hintContainer.html(a.pullTemplate({})))},_initAxis:function(a){var b=this,c=b.movable,d=b.dimensions[a],e=b.tap,f=new A({axis:a,movable:c,dimension:d,container:b.element}),g=new z({axis:a,movable:c,tap:e,drag:b.drag,dimension:d,elastic:b.options.elastic,end:function(){f.hide()}});b[a+"inertia"]=g,b.pane[a].bind(w,function(){f.show()})}});f.plugin(B)}(jQuery),function(a,b){function j(a){return a.position().top+3}var c=window.kendo,d=c.ui.Widget,e=a.proxy,f=c.template('<div class="k-group-indicator" data-#=data.ns#field="${data.field}" data-#=data.ns#title="${data.title || ""}" data-#=data.ns#dir="${data.dir || "asc"}"><a href="\\#" class="k-link"><span class="k-icon k-si-arrow-${(data.dir || "asc") == "asc" ? "n" : "s"}">(sorted ${(data.dir || "asc") == "asc" ? "ascending": "descending"})</span>${data.title ? data.title: data.field}</a><a class="k-button k-button-icon k-button-bare"><span class="k-icon k-group-delete"></span></a></div>',{useWithBlock:!1}),g=function(b){return a('<div class="k-header k-drag-clue" />').css({width:b.width(),paddingLeft:b.css("paddingLeft"),paddingRight:b.css("paddingRight"),lineHeight:b.height()+"px",paddingTop:b.css("paddingTop"),paddingBottom:b.css("paddingBottom")}).html(b.attr(c.attr("title"))||b.attr(c.attr("field"))).prepend('<span class="k-icon k-drag-status k-denied" />')},h=a('<div class="k-grouping-dropclue"/>'),i=/(\[|\]|\$|\.|\:|\+)/g,k=d.extend({init:function(b,f){var i=this,k,l=c.guid(),m=e(i._intializePositions,i),n,o=i._dropCuePositions=[];d.fn.init.call(i,b,f),n=i.options.draggable||new c.ui.Draggable(i.element,{filter:i.options.filter,hint:g,group:l}),k=i.groupContainer=a(i.options.groupContainer,i.element).kendoDropTarget({group:n.options.group,dragenter:function(a){i._canDrag(a.draggable.currentTarget)&&(a.draggable.hint.find(".k-drag-status").removeClass("k-denied").addClass("k-add"),h.css({top:j(k),left:0}).appendTo(k))},dragleave:function(a){a.draggable.hint.find(".k-drag-status").removeClass("k-add").addClass("k-denied"),h.remove()},drop:function(b){var d=b.draggable.currentTarget,e=d.attr(c.attr("field")),f=d.attr(c.attr("title")),g=i.indicator(e),j=i._dropCuePositions,k=j[j.length-1],l;if(!!d.hasClass("k-group-indicator")||!!i._canDrag(d))k?(l=i._dropCuePosition(h.offset().left+parseInt(k.element.css("marginLeft"),10)+parseInt(k.element.css("marginRight"),10)),l&&i._canDrop(a(g),l.element,l.left)&&(l.before?l.element.before(g||i.buildIndicator(e,f)):l.element.after(g||i.buildIndicator(e,f)),i._change())):(i.groupContainer.append(i.buildIndicator(e,f)),i._change())}}).kendoDraggable({filter:"div.k-group-indicator",hint:g,group:n.options.group,dragcancel:e(i._dragCancel,i),dragstart:function(a){var b=a.currentTarget,c=parseInt(b.css("marginLeft"),10),d=b.position().left-c;m(),h.css({top:j(k),left:d}).appendTo(k),this.hint.find(".k-drag-status").removeClass("k-denied").addClass("k-add")},dragend:function(){i._dragEnd(this)},drag:e(i._drag,i)}).delegate(".k-button","click",function(b){b.preventDefault(),i._removeIndicator(a(this).parent())}).delegate(".k-link","click",function(b){var d=a(this).parent(),e=i.buildIndicator(d.attr(c.attr("field")),d.attr(c.attr("title")),d.attr(c.attr("dir"))=="asc"?"desc":"asc");d.before(e).remove(),i._change(),b.preventDefault()}),n.bind(["dragend","dragcancel","dragstart","drag"],{dragend:function(){i._dragEnd(this)},dragcancel:e(i._dragCancel,i),dragstart:function(a){var b,c,d;!i.options.allowDrag&&!i._canDrag(a.currentTarget)?a.preventDefault():(m(),o.length?(b=o[o.length-1].element,c=parseInt(b.css("marginRight"),10),d=b.position().left+b.outerWidth()+c):d=0)},drag:e(i._drag,i)}),i.dataSource=i.options.dataSource,i.dataSource&&(i._refreshHandler=e(i.refresh,i),i.dataSource.bind("change",i._refreshHandler))},refresh:function(){var b=this,d=b.dataSource;b.groupContainer.empty().append(a.map(d.group()||[],function(a){var d=a.field.replace(i,"\\$1"),e=b.element.find(b.options.filter).filter("["+c.attr("field")+"="+d+"]");return b.buildIndicator(a.field,e.attr(c.attr("title")),a.dir)}).join("")),b._invalidateGroupContainer()},destroy:function(){var a=this;a.dataSource&&a._refreshHandler&&a.dataSource.unbind("change",a._refreshHandler)},options:{name:"Groupable",filter:"th",messages:{empty:"Drag a column header and drop it here to group by that column"}},indicator:function(b){var d=a(".k-group-indicator",this.groupContainer);return a.grep(d,function(d){return a(d).attr(c.attr("field"))===b})[0]},buildIndicator:function(a,b,d){return f({field:a,dir:d,title:b,ns:c.ns})},descriptors:function(){var b=this,d=a(".k-group-indicator",b.groupContainer),e,f,g,h,i;e=b.element.find(b.options.filter).map(function(){var b=a(this),d=b.attr(c.attr("aggregates")),e=b.attr(c.attr("field"));if(d&&d!==""){f=d.split(","),d=[];for(h=0,i=f.length;h<i;h++)d.push({field:e,aggregate:f[h]})}return d}).toArray();return a.map(d,function(b){b=a(b),g=b.attr(c.attr("field"));return{field:g,dir:b.attr(c.attr("dir")),aggregates:e||[]}})},_removeIndicator:function(a){var b=this;a.remove(),b._invalidateGroupContainer(),b._change()},_change:function(){var a=this;a.dataSource&&a.dataSource.group(a.descriptors())},_dropCuePosition:function(b){var c=this._dropCuePositions;if(!!h.is(":visible")&&c.length!==0){b=Math.ceil(b);var d=c[c.length-1],e=d.right,f=parseInt(d.element.css("marginLeft"),10),g=parseInt(d.element.css("marginRight"),10);b>=e?b={left:d.element.position().left+d.element.outerWidth()+g,element:d.element,before:!1}:(b=a.grep(c,function(a){return a.left<=b&&b<=a.right})[0],b&&(b={left:b.element.position().left-f,element:b.element,before:!0}));return b}},_drag:function(a){var b=c.touchLocation(a),d=this._dropCuePosition(b.x);d&&h.css({left:d.left})},_canDrag:function(a){return a.attr(c.attr("groupable"))!="false"&&(a.hasClass("k-group-indicator")||!this.indicator(a.attr(c.attr("field"))))},_canDrop:function(a,b,c){var d=a.next();return a[0]!==b[0]&&(!d[0]||b[0]!==d[0]||c>d.position().left)},_dragEnd:function(b){var d=this,e=b.currentTarget.attr(c.attr("field")),f=d.indicator(e);b!==d.options.draggable&&!b.dropped&&f&&d._removeIndicator(a(f)),d._dragCancel()},_dragCancel:function(){h.remove(),this._dropCuePositions=[]},_intializePositions:function(){var b=this,c=a(".k-group-indicator",b.groupContainer),d;b._dropCuePositions=a.map(c,function(b){b=a(b),d=b.offset().left;return{left:parseInt(d,10),right:parseInt(d+b.outerWidth(),10),element:b}})},_invalidateGroupContainer:function(){var a=this.groupContainer;a.is(":empty")&&a.html(this.options.messages.empty)}});c.ui.plugin(k)}(jQuery),function(a,b){function g(b,c){b=a(b),c?b.find(".k-drag-status").removeClass("k-add").addClass("k-denied"):b.find(".k-drag-status").removeClass("k-denied").addClass("k-add")}var c=window.kendo,d=c.ui.Widget,e="change",f="k-reorderable",h=d.extend({init:function(b,h){var i=this,j,k=c.guid()+"-reorderable";d.fn.init.call(i,b,h),b=i.element.addClass(f),h=i.options,j=h.draggable||new c.ui.Draggable(b,{group:k,filter:h.filter,hint:h.hint}),i.reorderDropCue=a('<div class="k-reorder-cue"><div class="k-icon k-i-arrow-s"></div><div class="k-icon k-i-arrow-n"></div></div>'),b.find(j.options.filter).kendoDropTarget({group:j.options.group,dragenter:function(a){if(!!i._draggable){var c=this.element,d=c[0]===i._draggable[0];g(a.draggable.hint,d),d||i.reorderDropCue.css({height:c.outerHeight(),top:b.offset().top,left:c.offset().left+(c.index()>i._draggable.index()?c.outerWidth():0)}).appendTo(document.body)}},dragleave:function(a){g(a.draggable.hint,!0),i.reorderDropCue.remove()},drop:function(){if(!!i._draggable){var a=i._draggable[0],c=this.element[0],d;a!==c&&(d=b.find(j.options.filter),i.trigger(e,{element:i._draggable,oldIndex:d.index(a),newIndex:d.index(c)}))}}}),j.bind(["dragcancel","dragend","dragstart"],{dragcancel:function(){i.reorderDropCue.remove(),i._draggable=null},dragend:function(){i.reorderDropCue.remove(),i._draggable=null},dragstart:function(a){i._draggable=a.currentTarget}})},options:{name:"Reorderable",filter:"*"},events:[e]});c.ui.plugin(h)}(jQuery),function(a,b){var c=window.kendo,d=c.ui,e=d.Widget,f=a.proxy,g=a.isFunction,h=a.extend,i="horizontal",j="vertical",k="start",l="resize",m="resizeend",n=e.extend({init:function(a,b){var c=this;e.fn.init.call(c,a,b),c.orientation=c.options.orientation.toLowerCase()!=j?i:j,c._positionMouse=c.orientation==i?"x":"y",c._position=c.orientation==i?"left":"top",c._sizingDom=c.orientation==i?"outerWidth":"outerHeight",new d.Draggable(a,{distance:0,filter:b.handle,drag:f(c._resize,c),dragstart:f(c._start,c),dragend:f(c._stop,c)})},events:[l,m,k],options:{name:"Resizable",orientation:i},_max:function(a){var c=this,d=c.hint?c.hint[c._sizingDom]():0,e=c.options.max;return g(e)?e(a):e!==b?c._initialElementPosition+e-d:e},_min:function(a){var c=this,d=c.options.min;return g(d)?d(a):d!==b?c._initialElementPosition+d:d},_start:function(b){var c=this,d=c.options.hint,e=a(b.currentTarget);c._initialMousePosition=b[c._positionMouse].location,c._initialElementPosition=e.position()[c._position],d&&(c.hint=g(d)?a(d(e)):d,c.hint.css({position:"absolute"}).css(c._position,c._initialElementPosition).appendTo(c.element)),c.trigger(k,b),c._maxPosition=c._max(b),c._minPosition=c._min(b),a(document.body).css("cursor",e.css("cursor"))},_resize:function(c){var d=this,e=a(c.currentTarget),f=d._maxPosition,g=d._minPosition,i=d._initialElementPosition+(c[d._positionMouse].location-d._initialMousePosition),j;j=g!==b?Math.max(g,i):i,d.position=j=f!==b?Math.min(f,j):j,d.hint&&d.hint.toggleClass(d.options.invalidClass||"",j==f||j==g).css(d._position,j),d.trigger(l,h(c,{position:j}))},_stop:function(b){var c=this;c.hint&&c.hint.remove(),c.trigger(m,h(b,{position:c.position})),a(document.body).css("cursor","")}});c.ui.plugin(n)}(jQuery),function(a,b){var c=window.kendo,d=a.proxy,e="data-dir",f="asc",g="single",h="data-field",i="desc",j=".k-link",k=c.ui.Widget,l=k.extend({init:function(a,b){var c=this,e;k.fn.init.call(c,a,b),c.dataSource=c.options.dataSource.bind("change",d(c.refresh,c)),e=c.element.find(j),e[0]||(e=c.element.wrapInner('<a class="k-link" href="#"/>').find(j)),c.link=e,c.element.click(d(c._click,c))},options:{name:"Sortable",mode:g,allowUnsort:!0},refresh:function(){var b=this,c=b.dataSource.sort()||[],d,g,j,k,l=b.element,m=l.attr(h);l.removeAttr(e);for(d=0,g=c.length;d<g;d++)j=c[d],m==j.field&&l.attr(e,j.dir);k=l.attr(e),l.find(".k-i-arrow-n,.k-i-arrow-s").remove(),k===f?a('<span class="k-icon k-i-arrow-n" />').appendTo(b.link):k===i&&a('<span class="k-icon k-i-arrow-s" />').appendTo(b.link)},_click:function(a){var c=this,d=c.element,j=d.attr(h),k=d.attr(e),l=c.options,m=c.dataSource.sort()||[],n,o;k===f?k=i:k===i&&l.allowUnsort?k=b:k=f;if(l.mode===g)m=[{field:j,dir:k}];else if(l.mode==="multiple"){for(n=0,o=m.length;n<o;n++)if(m[n].field===j){m.splice(n,1);break}m.push({field:j,dir:k})}a.preventDefault(),c.dataSource.sort(m)}});c.ui.plugin(l)}(jQuery),function(a,b){var c=window.kendo,d=c.support.touch,e=c.ui.Widget,f=a.proxy,g=d?"touchend":"mouseup",h=d?"touchstart":"mousedown",i=d?"touchmove":"mousemove",j="k-state-selected",k="k-state-selecting",l="k-selectable",m="selectstart",n=a(document),o="change",p="k-state-unselecting",q=e.extend({init:function(b,c){var d=this;e.fn.init.call(d,b,c),d._marquee=a("<div class='k-marquee'></div>"),d._lastActive=null,d._moveDelegate=f(d._move,d),d._upDelegate=f(d._up,d),d.element.addClass(l),d.element.delegate("."+l+" "+d.options.filter,h,f(d._down,d))},events:[o],options:{name:"Selectable",filter:">*",multiple:!1},_collide:function(a,b){var c=a.offset(),d={left:c.left,top:c.top,right:c.left+a.outerWidth(),bottom:c.top+a.outerHeight()};return!(d.left>b.right||d.right<b.left||d.top>b.bottom||d.bottom<b.top)},_position:function(a){var b=this._originalPosition,c=b.x,d=b.y,e=a.pageX,f=a.pageY,g;c>e&&(g=e,e=c,c=g),d>f&&(g=f,f=d,d=g);return{top:d,right:e,left:c,bottom:f}},_down:function(b){var d=this,e,f=b.ctrlKey,h=b.shiftKey,o=!d.options.multiple;d._downTarget=a(b.currentTarget),d._shiftPressed=h;if(d._downTarget.closest("."+l)[0]===d.element[0]){n.unbind(g,d._upDelegate).bind(g,d._upDelegate),d._originalPosition={x:b.pageX,y:b.pageY},!o&&a(b.target).is(":not(:input, a)")&&(n.unbind(i,d._moveDelegate).bind(i,d._moveDelegate).unbind(m,!1).bind(m,!1),c.support.touch||b.preventDefault()),o||(a("body").append(d._marquee),d._marquee.css({left:b.clientX+1,top:b.clientY+1,width:0,height:0})),e=d._downTarget.hasClass(j),(o||!f&&!h)&&d.element.find(d.options.filter+"."+j).not(d._downTarget).removeClass(j),f&&(d._lastActive=d._downTarget);if(e&&(f||h))d._downTarget.addClass(j),h||d._downTarget.addClass(p);else if(!c.support.touch||!o)d._downTarget.addClass(k),o&&d._downTarget.hasClass(j)&&d._downTarget.removeClass(k)}},_move:function(b){var c=this,d=c._position(b),e=b.ctrlKey,f,g;c._marquee.css({left:d.left,top:d.top,width:d.right-d.left,height:d.bottom-d.top}),c.element.find(c.options.filter).each(function(){f=a(this),g=c._collide(f,d),g?f.hasClass(j)?c._downTarget[0]!==f[0]&&e&&f.removeClass(j).addClass(p):!f.hasClass(k)&&!f.hasClass(p)&&f.addClass(k):f.hasClass(k)?f.removeClass(k):e&&f.hasClass(p)&&f.removeClass(p).addClass(j)})},_up:function(a){var b=this,d=b.options,e=!d.multiple;n.unbind(m,!1).unbind(i,b._moveDelegate).unbind(g,b._upDelegate),e||b._marquee.remove(),c.support.touch&&e&&b._downTarget.addClass(k),!e&&b._shiftPressed===!0?b.selectRange(b._firstSelectee(),b._downTarget):(b.element.find(d.filter+"."+p).removeClass(p).removeClass(j),b.value(b.element.find(d.filter+"."+k))),b._shiftPressed||(b._lastActive=b._downTarget),b._downTarget=null,b._shiftPressed=!1},value:function(a){var b=this,c=f(b._selectElement,b);if(a)a.each(function(){c(this)}),b.trigger(o,{});else return b.element.find(b.options.filter+"."+j)},_firstSelectee:function(){var a=this,b;if(a._lastActive!==null)return a._lastActive;b=a.value();return b.length>0?b[0]:a.element.find(a.options.filter)},_selectElement:function(b){var c=a(b),d=this.trigger("select",{element:b});c.removeClass(k),d||c.addClass(j)},clear:function(){var a=this;a.element.find(a.options.filter+"."+j).removeClass(j)},selectRange:function(b,c){var d=this,e=!1,g=f(d._selectElement,d),h;b=a(b)[0],c=a(c)[0],d.element.find(d.options.filter).each(function(){h=a(this);if(e)g(this),e=this!==c;else if(this===b)e=b!==c,g(this);else if(this===c){var d=b;b=c,c=d,e=!0,g(this)}else h.removeClass(j)}),d.trigger(o,{})}});c.ui.plugin(q)}(jQuery),function(a,b){function v(a,b,c){r(a,h,c,b>=c)}function u(a,b,c){r(a,j,Math.min(c,b+1),b>=c)}function t(a,b,c){r(a,i,Math.max(1,b-1),b<=1)}function s(a,b,c){r(a,g,1,b<=1)}function r(a,b,d,e){a.find(b).parent().attr(c.attr("page"),d).toggleClass("k-state-disabled",e)}function q(a,b){return o({className:a.substring(1),text:b})}function p(a,b,d,e){return a({idx:b,text:d,ns:c.ns,numeric:e})}var c=window.kendo,d=c.ui,e=d.Widget,f=a.proxy,g=".k-i-seek-w",h=".k-i-seek-e",i=".k-i-arrow-w",j=".k-i-arrow-e",k="change",l="click",m="keydown",n="disabled",o=c.template('<a href="\\#" title="#=text#" class="k-link"><span class="k-icon #= className #">#=text#</span></a>'),w=e.extend({init:function(b,d){var n=this,o,p;e.fn.init.call(n,b,d),d=n.options,n.dataSource=d.dataSource,n.linkTemplate=c.template(n.options.linkTemplate),n.selectTemplate=c.template(n.options.selectTemplate),o=n.page(),p=n.totalPages(),n._refreshHandler=f(n.refresh,n),n.dataSource.bind(k,n._refreshHandler),d.previousNext&&(n.element.find(g).length||(n.element.append(q(g,d.messages.first)),s(n.element,o,p)),n.element.find(i).length||(n.element.append(q(i,d.messages.previous)),t(n.element,o,p))),d.numeric&&(n.list=n.element.find(".k-pager-numbers"),n.list.length||(n.list=a('<ul class="k-pager-numbers k-reset" />').appendTo(n.element))),d.input&&(n.element.find(".k-pager-input").length||n.element.append('<span class="k-pager-input k-label">'+d.messages.page+'<input class="k-textbox">'+c.format(d.messages.of,p)+"</span>"),n._keydownHandler=f(n._keydown,n),n.element.on(m,".k-pager-input input",n._keydownHandler)),d.previousNext&&(n.element.find(j).length||(n.element.append(q(j,d.messages.next)),u(n.element,o,p)),n.element.find(h).length||(n.element.append(q(h,d.messages.last)),v(n.element,o,p))),d.pageSizes&&(n.element.find(".k-pager-sizes").length||a('<span class="k-pager-sizes k-label"><select/>'+d.messages.itemsPerPage+"</span>").appendTo(n.element).find("select").html(a.map(a.isArray(d.pageSizes)?d.pageSizes:[5,10,20],function(a){return"<option>"+a+"</option>"}).join("")).end().appendTo(n.element),n.element.find(".k-pager-sizes select").val(n.pageSize()),c.ui.DropDownList&&n.element.find(".k-pager-sizes select").kendoDropDownList(),n._changeHandler=f(n._change,n),n.element.on(k,".k-pager-sizes select",n._changeHandler)),d.refresh&&(n.element.find(".k-pager-refresh").length||n.element.append('<a href="#" class="k-pager-refresh k-link" title="'+d.messages.refresh+'"><span class="k-icon k-i-refresh">'+d.messages.refresh+"</span></a>"),n._reloadHandler=f(n._refreshClick,n),n.element.on(l,".k-pager-refresh",n._reloadHandler)),d.info&&(n.element.find(".k-pager-info").length||n.element.append('<span class="k-pager-info k-label" />')),n._clickHandler=f(n._click,n),n.element.on(l,"a",n._clickHandler),d.autoBind&&n.refresh()},destroy:function(){var a=this;a.element.off(l,"a",a._clickHandler),a.element.off(m,".k-pager-input input",a._keydownHandler),a.element.off(k,".k-pager-sizes select",a._changeHandler),a.element.off(l,".k-pager-refresh",a._reloadHandler),a.dataSource.unbind(k,a._refreshHandler)},events:[k],options:{name:"Pager",selectTemplate:'<li><span class="k-state-selected">#=text#</span></li>',linkTemplate:'<li><a href="\\#" class="k-link" data-#=ns#page="#=idx#">#=text#</a></li>',buttonCount:10,autoBind:!0,numeric:!0,info:!0,input:!1,previousNext:!0,pageSizes:!1,refresh:!1,messages:{display:"{0} - {1} of {2} items",empty:"No items to display",page:"Page",of:"of {0}",itemsPerPage:"items per page",first:"Go to the first page",previous:"Go to the previous page",next:"Go to the next page",last:"Go to the last page",refresh:"Refresh"}},refresh:function(){var a=this,b,d,e=1,f="",g,h=a.page(),i=a.options,j=a.pageSize(),k=a.dataSource.total(),l=a.totalPages(),m=a.linkTemplate,o=i.buttonCount;if(i.numeric){h>o&&(g=h%o,e=g===0?h-o+1:h-g+1),d=Math.min(e+o-1,l),e>1&&(f+=p(m,e-1,"...",!1));for(b=e;b<=d;b++)f+=p(b==h?a.selectTemplate:m,b,b,!0);d<l&&(f+=p(m,b,"...",!1)),f===""&&(f=a.selectTemplate({text:0})),a.list.html(f)}i.info&&(k>0?f=c.format(i.messages.display,(h-1)*j+1,Math.min(h*j,k),k):f=i.messages.empty,a.element.find(".k-pager-info").html(f)),i.input&&a.element.find(".k-pager-input").html(a.options.messages.page+'<input class="k-textbox">'+c.format(i.messages.of,l)).find("input").val(h).attr(n,k<1).toggleClass("k-state-disabled",k<1),i.previousNext&&(s(a.element,h,l),t(a.element,h,l),u(a.element,h,l),v(a.element,h,l)),i.pageSizes&&a.element.find(".k-pager-sizes select").val(j)},_keydown:function(a){if(a.keyCode===c.keys.ENTER){var b=this.element.find(".k-pager-input").find("input"),d=parseInt(b.val(),10);if(isNaN(d)||d<1||d>this.totalPages())d=this.page();b.val(d),this.page(d)}},_refreshClick:function(a){a.preventDefault(),this.dataSource.read()},_change:function(a){var b=parseInt(a.currentTarget.value,10);isNaN(b)||this.dataSource.pageSize(b)},_click:function(b){var d=a(b.currentTarget);b.preventDefault(),d.is(".k-state-disabled")||this.page(d.attr(c.attr("page")))},totalPages:function(){return Math.ceil((this.dataSource.total()||0)/this.pageSize())},pageSize:function(){return this.dataSource.pageSize()||this.dataSource.total()},page:function(a){if(a!==b)this.dataSource.page(a),this.trigger(k,{index:a});else return this.dataSource.total()>0?this.dataSource.page():0}});d.plugin(w)}(jQuery),function(a,b){function M(b,c){return b===c||a.contains(b,c)}var c=window.kendo,d=c.ui,e=d.Widget,f=c.support,g=f.touch,h=c.getOffset,i=a.browser.msie&&a.browser.version<9,j="open",k="close",l="deactivate",m="activate",n="center",o="left",p="right",q="top",r="bottom",s="absolute",t="hidden",u="body",v="location",w="position",x="visible",y="fitted",z="effects",A="k-state-active",B="k-state-border",C=".k-picker-wrap, .k-dropdown-wrap, .k-link",D=g?"touchstart":"mousedown",E=a(document),F=a(window),G=a(document.documentElement),H="resize scroll",I=f.transitions.css,J=I+"transform",K=a.extend,L=["font-family","font-size","font-stretch","font-style","font-weight","line-height"],N=e.extend({init:function(b,d){var f=this,g;e.fn.init.call(f,b,d),b=f.element,d=f.options,f.collisions=d.collision?d.collision.split(" "):[],f.collisions.length===1&&f.collisions.push(f.collisions[0]),g=a(f.options.anchor).closest(".k-popup,.k-group"),d.appendTo=a(a(d.appendTo)[0]||g[0]||u),f.element.hide().addClass("k-popup k-group k-reset").css({position:s}).appendTo(d.appendTo).bind("mouseenter mouseleave",function(a){f._hovered=a.type==="mouseenter"}),f.wrapper=a(),d.animation===!1&&(d.animation={open:{show:!0,effects:{}},close:{hide:!0,effects:{}}}),K(d.animation.open,{complete:function(){f.wrapper.css({overflow:x}),f.trigger(m)}}),K(d.animation.close,{complete:function(){f.wrapper.hide();var e=f.wrapper.data(v),g=a(d.anchor),h,i;e&&f.wrapper.css(e),d.anchor!=u&&(h=g.hasClass(B+"-down")?"down":"up",i=B+"-"+h,g.removeClass(i).children(C).removeClass(A).removeClass(i),b.removeClass(B+"-"+c.directions[h].reverse)),f._closing=!1,f.trigger(l)}}),f._mousedownProxy=function(a){f._mousedown(a)},f._currentWidth=E.width(),f._resizeProxy=function(a){f._resize(a)},d.toggleTarget&&a(d.toggleTarget).bind(d.toggleEvent,a.proxy(f.toggle,f))},events:[j,m,k,l],options:{name:"Popup",toggleEvent:"click",origin:r+" "+o,position:q+" "+o,anchor:u,collision:"flip fit",viewport:window,animation:{open:{effects:"slideIn:down",transition:!0,duration:200,show:!0},close:{duration:100,show:!1,hide:!0}}},open:function(b,d){var e=this,h={isFixed:!isNaN(parseInt(d,10)),x:b,y:d},i=e.element,k=e.options,l="down",m,n,o=a(k.anchor),p,r;if(!e.visible()){for(r=0;r<L.length;r++)p=L[r],i.css(p,o.css(p));if(i.data("animating")||e.trigger(j))return;G.unbind(D,e._mousedownProxy).bind(D,e._mousedownProxy),g||F.unbind(H,e._resizeProxy).bind(H,e._resizeProxy),e.wrapper=n=c.wrap(i).css({overflow:t,display:"block",position:s}),f.mobileOS.android&&n.add(o).css(J,"translatez(0)"),n.css(w),k.appendTo==u&&n.css(q,"-10000px"),m=K(!0,{},k.animation.open),e.flipped=e._position(h),m.effects=c.parseEffects(m.effects,e.flipped),l=m.effects.slideIn?m.effects.slideIn.direction:l;if(k.anchor!=u){var v=B+"-"+l;i.addClass(B+"-"+c.directions[l].reverse),o.addClass(v).children(C).addClass(A).addClass(v)}i.data(z,m.effects).kendoStop(!0).kendoAnimate(m)}},toggle:function(){var a=this;a[a.visible()?k:j]()},visible:function(){return this.element.is(":"+x)},close:function(){var b=this,d=b.options,e,f,g;if(b.visible()){if(b._closing||b.trigger(k))return;b.element.find(".k-popup").each(function(){var b=a(this),c=b.data("kendoPopup");c&&c.close()}),G.unbind(D,b._mousedownProxy),F.unbind(H,b._resizeProxy),e=K(!0,{},d.animation.close),f=b.element.data(z),g=e.effects,b.wrapper=c.wrap(b.element).css({overflow:t}),!g&&!c.size(g)&&f&&c.size(f)&&(e.effects=f,e.reverse=!0),b._closing=!0,b.element.kendoStop(!0).kendoAnimate(e)}},_resize:function(a){var b=this;if(i){var c=E.width();if(c==b._currentWidth)return;b._currentWidth=c}b._hovered||b.close()},_mousedown:function(b){var d=this,e=d.element[0],f=d.options,g=a(f.anchor)[0],h=f.toggleTarget,i=c.eventTarget(b),j=a(i).closest(".k-popup")[0];(!j||j===d.element[0])&&!M(e,i)&&!M(g,i)&&(!h||!M(a(h)[0],i))&&d.close()},_fit:function(a,b,c){var d=0;a+b>c&&(d=c-(a+b)),a<0&&(d=-a);return d},_flip:function(a,b,c,d,e,f,g){var h=0;g=g||b,f!==e&&f!==n&&e!==n&&(a+g>d&&(h+=-(c+b)),a+h<0&&(h+=c+b));return h},_position:function(b){var c=this,d=c.element,e=c.wrapper,g=c.options,i=a(g.viewport),j=a(i).offset(),k=a(g.anchor),l=g.origin.toLowerCase().split(" "),m=g.position.toLowerCase().split(" "),n=c.collisions,o=f.zoomLevel(),p=10002,q=k.parents().filter(e.siblings());if(q[0]){var r=Number(a(q).css("zIndex"));r&&(p=r+1)}e.css("zIndex",p),b&&b.isFixed?e.css({left:b.x,top:b.y}):e.css(c._align(l,m));var s=h(e,w),t=h(e),u=k.offsetParent().parent(".k-animation-container");u.length&&u.data(y)&&(s=h(e,w),t=h(e)),i[0]===window?(t.top-=window.pageYOffset||document.documentElement.scrollTop||0,t.left-=window.pageXOffset||document.documentElement.scrollLeft||0):(t.top-=j.top,t.left-=j.left),c.wrapper.data(v)||e.data(v,K({},s));var x=K({},t),z=K({},s);n[0]==="fit"&&(z.top+=c._fit(x.top,e.outerHeight(),i.height()/o)),n[1]==="fit"&&(z.left+=c._fit(x.left,e.outerWidth(),i.width()/o)),z.left!=s.left||z.top!=s.top?e.data(y,!0):e.removeData(y);var A=K({},z);n[0]==="flip"&&(z.top+=c._flip(x.top,d.outerHeight(),k.outerHeight(),i.height()/o,l[0],m[0],e.outerHeight())),n[1]==="flip"&&(z.left+=c._flip(x.left,d.outerWidth(),k.outerWidth(),i.width()/o,l[1],m[1],e.outerWidth())),e.css(z);return z.left!=A.left||z.top!=A.top},_align:function(b,c){var d=this,e=d.wrapper,f=a(d.options.anchor),g=b[0],i=b[1],j=c[0],k=c[1],l=h(f),m=a(d.options.appendTo),o,q=e.outerWidth(),s=e.outerHeight(),t=f.outerWidth(),u=f.outerHeight(),v=l.top,w=l.left,x=Math.round;m[0]!=document.body&&(o=h(m),v-=o.top,w-=o.left),g===r&&(v+=u),g===n&&(v+=x(u/2)),j===r&&(v-=s),j===n&&(v-=x(s/2)),i===p&&(w+=t),i===n&&(w+=x(t/2)),k===p&&(w-=q),k===n&&(w-=x(q/2));return{top:v,left:w}}});d.plugin(N)}(jQuery),function(a,b){function y(b,c){b.filters&&(b.filters=a.grep(b.filters,function(a){y(a,c);return a.filters?a.filters.length:a.field!=c}))}var c=window.kendo,d=c.ui,e=d.Widget,f=c.keys,g=c.support.touch,h="id",i="li",j=g?"touchend":"click",k="change",l="character",m="k-state-focused",n="k-state-hover",o="k-loading",p="open",q="close",r="select",s="selected",t=a.extend,u=a.proxy,v=a.browser.msie&&parseInt(a.browser.version,10)<9,w=/"/g,x=e.extend({init:function(b,d){var f=this,g,k;e.fn.init.call(f,b,d),f._template(),f.ul=a('<ul unselectable="on" class="k-list k-reset"/>').css({overflow:c.support.touch?"":"auto"}).delegate(i,"mouseenter",function(){a(this).addClass(n)}).delegate(i,"mouseleave",function(){a(this).removeClass(n)}).delegate(i,j,u(f._click,f)),f.list=k=a("<div class='k-list-container'/>").append(f.ul).mousedown(function(a){a.preventDefault()}),g=f.element.attr(h),g&&k.attr(h,g+"-list"),a(document.documentElement).bind("mousedown",u(f._mousedown,f))},items:function(){return this.ul[0].children},current:function(a){var c=this;if(a!==b)c._current&&c._current.removeClass(m),a&&(a.addClass(m),c._scroll(a)),c._current=a;else return c._current},dataItem:function(a){var c=this;a===b&&(a=c.selectedIndex);return c._data()[a]},_accessors:function(){var a=this,b=a.element,d=a.options,e=c.getter,f=b.attr(c.attr("text-field")),g=b.attr(c.attr("value-field"));f&&(d.dataTextField=f),g&&(d.dataValueField=g),a._text=e(d.dataTextField),a._value=e(d.dataValueField)},_blur:function(){var a=this;a._change(),a.close()},_change:function(){var a=this,c=a.selectedIndex,d=a.value(),e;d!==a._old?e=!0:c!==b&&c!==a._oldIndex&&(e=!0),e&&(a._old=d,a._oldIndex=c,a.trigger(k),a.element.trigger(k))},_click:function(b){b.isDefaultPrevented()||(this._accept(a(b.currentTarget)),b.type==="touchend"&&b.preventDefault())},_data:function(){return this.dataSource.view()},_enable:function(){var a=this,b=a.options;a.element.prop("disabled")&&(b.enable=!1),a.enable(b.enable)},_focus:function(a){var b=this;b.popup.visible()&&a&&b.trigger(r,{item:a})?b.close():(b._select(a),b._blur())},_height:function(a){if(a){var b=this,c=b.list,d=b.popup.visible(),e=b.options.height;c=c.add(c.parent(".k-animation-container")).show().height(b.ul[0].scrollHeight>e?e:"auto"),d||c.hide()}},_adjustListWidth:function(){var b=this.list,c=b[0].style.width,d=this.wrapper,e,f;c||(e=window.getComputedStyle?window.getComputedStyle(d[0],null):0,f=e?parseFloat(e.width):d.outerWidth(),e&&(a.browser.mozilla||a.browser.msie)&&(f+=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderLeftWidth)+parseFloat(e.borderRightWidth)),c=f-(b.outerWidth()-b.width())),b.css({fontFamily:d.css("font-family"),width:c});return!0},_popup:function(){var a=this,b=a.list,e=a.options,f=a.wrapper,g=!1;a.popup=new d.Popup(b,t({},e.popup,{anchor:f,open:function(b){g||(g=a._adjustListWidth()),a.trigger(p)&&b.preventDefault()},close:function(b){a.trigger(q)&&b.preventDefault()},animation:e.animation})),a._touchScroller=c.touchScroller(a.popup.element)},_makeUnselectable:function(a){v&&this.list.find("*").attr("unselectable","on")},_toggleHover:function(b){g||a(b.currentTarget).toggleClass(n,b.type==="mouseenter")},_toggle:function(a){var c=this;a=a!==b?a:!c.popup.visible(),!g&&c._focused[0]!==document.activeElement&&c._focused.focus(),c[a?p:q]()},_scroll:function(a){if(!!a){a[0]&&(a=a[0]);var b=this.ul[0],c=a.offsetTop,d=a.offsetHeight,e=b.scrollTop,f=b.clientHeight,g=c+d;b.scrollTop=e>c?c:g>e+f?g-f:e}},_template:function(){var a=this,b=a.options,d=b.template,e=b.dataSource;a.element.is(r)&&a.element[0].length&&(e||(b.dataTextField=b.dataTextField||"text",b.dataValueField=b.dataValueField||"value")),d?(d=c.template(d),a.template=function(a){return'<li unselectable="on" class="k-item">'+d(a)+"</li>"}):a.template=c.template('<li unselectable="on" class="k-item">${data'+(b.dataTextField?".":"")+b.dataTextField+"}</li>",{useWithBlock:!1})}});t(x,{caret:function(a){var b,c=a.ownerDocument.selection;c?b=Math.abs(c.createRange().moveStart(l,-a.value.length)):b=a.selectionStart;return b},selectText:function(a,b,c){try{if(a.createTextRange){a.focus();var d=a.createTextRange();d.collapse(!0),d.moveStart(l,b),d.moveEnd(l,c-b),d.select()}else a.setSelectionRange(b,c)}catch(e){}},inArray:function(a,b){var c,d,e=b.children;if(!a||a.parentNode!==b)return-1;for(c=0,d=e.length;c<d;c++)if(a===e[c])return c;return-1}}),c.ui.List=x,d.Select=x.extend({init:function(a,b){x.fn.init.call(this,a,b)},setDataSource:function(a){this.options.dataSource=a,this._dataSource(),this.options.autoBind&&this._selectItem()},close:function(){this.popup.close()},_accessor:function(a,c){var d=this.element,e=d.is(r),f,g;d=d[0];if(a===b){e?(g=d.selectedIndex,g>-1&&(f=d.options[g],f&&(a=f.value))):a=d.value;return a}e?d.selectedIndex=c:d.value=a},_hideBusy:function(){var a=this;clearTimeout(a._busy),a._arrow.removeClass(o),a._busy=null},_showBusy:function(){var a=this;a._busy||(a._busy=setTimeout(function(){a._arrow.addClass(o)},100))},_dataSource:function(){var b=this,d=b.element,e=b.options,f=e.dataSource||{},g;f=a.isArray(f)?{data:f}:f,d.is(r)&&(g=d[0].selectedIndex,g>-1&&(e.index=g),f.select=d,f.fields=[{field:e.dataTextField},{field:e.dataValueField}]),b.dataSource&&b._refreshHandler?b.dataSource.unbind(k,b._refreshHandler).unbind("requestStart",b._requestStartHandler):(b._refreshHandler=u(b.refresh,b),b._requestStartHandler=u(b._showBusy,b)),b.dataSource=c.data.DataSource.create(f).bind(k,b._refreshHandler).bind("requestStart",b._requestStartHandler)},_index:function(a){var c=this,d,e,f=c._data(),g;for(d=0,e=f.length;d<e;d++){g=c._value(f[d]),g===b&&(g=c._text(f[d]));if(g==a)return d}return-1},_get:function(b){var c=this,d=c._data(),e,f;if(typeof b=="function")for(e=0,f=d.length;e<f;e++)if(b(d[e])){b=e;break}if(typeof b=="number"){if(b<0)return a();b=a(c.ul[0].children[b])}b&&b.nodeType&&(b=a(b));return b},_move:function(a){var b=this,c=a.keyCode,d=b.ul[0],e=b._current,g=c===f.DOWN,h;c===f.UP||g?(a.altKey?b.toggle(g):g?(b._select(e?e[0].nextSibling:d.firstChild),a.preventDefault()):(b._select(e?e[0].previousSibling:d.lastChild),a.preventDefault()),h=!0):c===f.ENTER||c===f.TAB?(b.popup.visible()&&a.preventDefault(),b._accept(e),h=!0):c===f.ESC&&(b.close(),h=!0);return h},_valueOnFetch:function(a){var b=this;if(!b.ul[0].firstChild&&!b._fetch){b.dataSource.one(k,function(){b._fetch=!0,b.value(a)}).fetch();return!0}b._fetch=!1},_options:function(a,c){var d=this,e=d.element,f=e[0].selectedIndex,g=a.length,h="",i,j,k,l,m=0;c&&(h=c,m=1);for(;m<g;m++)i="<option",j=a[m],k=d._text(j),l=d._value(j),l!==b&&(l+="",l.indexOf('"')!==-1&&(l=l.replace(w,""")),i+=' value="'+l+'"'),i+=">",k!==b&&(i+=k),i+="</option>",h+=i;e.html(h),e[0].selectedIndex=f},_reset:function(){var a=this,b=a.element;b.closest("form").bind("reset",function(){setTimeout(function(){a.value(b[0].value)})})},_cascade:function(){var b=this,c=b.options,d=c.cascadeFrom,e,f,g,h,i,j;if(d){e=a("#"+d).data("kendo"+c.name);if(!e)return;j=b.dataSource,g=e.options.dataValueField,h=function(){b.value(""),b.enable(!1)},i=function(){var a=b.value();a?(b.value(a),b.selectedIndex==-1&&b.value("")):b.select(c.index),b.trigger(s),b.enable()},f=function(){var a=e.dataItem(),b=a?e._value(a):null,c,d;b?(c=j.filter()||{},y(c,g),d=c.filters||[],d.push({field:g,operator:"eq",value:b}),j.one(k,i).filter(d)):h()},e.bind("cascade",h).bind(k,function(){f(),b.trigger("cascade")}).one(s,function(){f()}),f()}}}),d.Select.removeFiltersForField=y}(jQuery),function(a,b){function ba(a,b){if(a)return a.getFullYear()===b.getFullYear()&&a.getMonth()===b.getMonth()&&a.getDate()===b.getDate();return!1}function _(a,b){for(var c=0,d=b.length;c<d;c++)if(a===+b[c])return!0;return!1}function $(a){o&&a.find("*").attr("unselectable","on")}function Z(a){var c=N[a.start],d=N[a.depth],e=i(a.culture);a.format=g(a.format||e.calendars.standard.patterns.d),isNaN(c)&&(c=0,a.start=t);if(d===b||d>c)a.depth=t}function Y(a){return i(a).calendars.standard}function X(a){a.preventDefault()}function W(b){b.stopImmediatePropagation(),a(this).toggleClass(y,b.type=="mouseenter")}function V(a,b,c){b=b instanceof M?b.getFullYear():a.getFullYear()+c*b,a.setFullYear(b)}function U(a,b){return a.slice(b).concat(a.slice(0,b))}function T(a,b,c){return+a>=+b&&+a<=+c}function S(a,b,c){var d=new M;d=new M(d.getFullYear(),d.getMonth(),d.getDate()),a&&(d=new M(a)),b>d?d=new M(b):c<d&&(d=new M(c));return d}function R(a,b,c){var d=a.getFullYear(),e=b.getFullYear(),f=e,g=0;c&&(e=e-e%c,f=e-e%c+c-1),d>f?g=1:d<e&&(g=-1);return g}function Q(a){var b=0,c,d=a.min,e=a.max,f=a.start,g=a.setter,h=a.build,i=a.cells||12,j=a.perRow||4,k=a.content||m,l=a.empty||n,o=a.html||'<table class="k-content k-meta-view" cellspacing="0"><tbody><tr>';for(;b<i;b++)b>0&&b%j===0&&(o+="</tr><tr>"),c=h(f,b),o+=T(f,d,e)?k(c):l(c),g(f,1);return o+"</tr></tbody></table>"}var c=window.kendo,d=c.ui,e=d.Widget,f=c.parseDate,g=c._extractFormat,h=c.template,i=c.getCulture,j=c.support.touch,k=c.support.transitions,l=k?k.css+"transform-origin":"",m=h('<td#=data.cssClass#><a class="k-link" href="\\#" data-#=data.ns#value="#=data.dateString#">#=data.value#</a></td>',{useWithBlock:!1}),n=h("<td> </td>",{useWithBlock:!1}),o=a.browser.msie&&parseInt(a.browser.version,10)<9,p=j?"touchend":"click",q="min",r="left",s="slide",t="month",u="century",v="change",w="navigate",x="value",y="k-state-hover",z="k-state-disabled",A="k-other-month",B=' class="'+A+'"',C="k-nav-today",D="td:has(.k-link)",E=j?"touchstart":"mouseenter",F=j?"touchend":"mouseleave",G=6e4,H=864e5,I="_prevArrow",J="_nextArrow",K=a.proxy,L=a.extend,M=Date,N={month:0,year:1,decade:2,century:3},O=e.extend({init:function(a,b){var d=this,f;e.fn.init.call(d,a,b),a=d.wrapper=d.element,b=d.options,b.url=window.unescape(b.url),a.addClass("k-widget k-calendar"),d._templates(),d._header(),d._footer(d.footer),a.delegate(D,E+" "+F,W).delegate(D,p,K(d._click,d)),f=b.value,Z(b),d._index=N[b.start],d._current=new M(S(f,b.min,b.max)),d.value(f),c.notify(d)},options:{name:"Calendar",value:null,min:new M(1900,0,1),max:new M(2099,11,31),dates:[],url:"",culture:"",footer:"",format:"",month:{},start:t,depth:t,animation:{horizontal:{effects:s,duration:500,divisor:2},vertical:{effects:"zoomIn",duration:400}}},events:[v,w],setOptions:function(a){Z(a),e.fn.setOptions.call(this,a)},min:function(a){return this._option(q,a)},max:function(a){return this._option("max",a)},navigateToPast:function(){this._navigate(I,-1)},navigateToFuture:function(){this._navigate(J,1)},navigateUp:function(){var a=this,b=a._index;a._title.hasClass(z)||a.navigate(a._current,++b)},navigateDown:function(a){var b=this,c=b._index,d=b.options.depth;if(!!a){if(c===N[d]){+b._value!=+a&&(b.value(a),b.trigger(v));return}b.navigate(a,--c)}},navigate:function(c,d){d=isNaN(d)?N[d]:d;var e=this,f=e.options,g=f.culture,h=f.min,i=f.max,j=e._title,k=e._table,l=e._value,m=e._current,n=c&&+c>+m,o=d!==b&&d!==e._index,p,q,r;c?e._current=c=new M(S(c,h,i)):c=m,d===b?d=e._index:e._index=d,e._view=q=P.views[d],r=q.compare,j.toggleClass(z,d===N[u]),e[I].toggleClass(z,r(c,h)<1),e[J].toggleClass(z,r(c,i)>-1);if(!k||e._changeView)j.html(q.title(c,g)),e._table=p=a(q.content(L({min:h,max:i,date:c,url:f.url,dates:f.dates,format:f.format,culture:g},e[q.name]))),$(p),e._animate({from:k,to:p,vertical:o,future:n}),e.trigger(w);d===N[f.depth]&&l&&e._class("k-state-selected",q.toDateString(l)),e._changeView=!0},value:function(a){var c=this,d=c._view,e=c.options,g=e.min,h=e.max;if(a===b)return c._value;a=f(a,e.format,e.culture),a!==null&&(a=new M(a),T(a,g,h)||(a=null)),c._value=a,c._changeView=!a||d&&d.compare(a,c._current)!==0,c.navigate(a)},_animate:function(a){var b=this,c=a.from,d=a.to;c?c.parent().data("animating")?(c.parent().kendoStop(!0,!0).remove(),c.remove(),d.insertAfter(b.element[0].firstChild)):!c.is(":visible")||b.options.animation===!1?(d.insertAfter(c),c.remove()):b[a.vertical?"_vertical":"_horizontal"](c,d,a.future):d.insertAfter(b.element[0].firstChild)},_horizontal:function(a,b,c){var d=this,e=d.options.animation.horizontal,f=e.effects,g=a.outerWidth();f&&f.indexOf(s)!=-1&&(a.add(b).css({width:g}),a.wrap("<div/>"),a.parent().css({position:"relative",width:g*2,"float":r,left:c?0:-g}),b[c?"insertAfter":"insertBefore"](a),L(e,{effects:s+":"+(c?r:"right"),complete:function(){a.remove(),b.unwrap()}}),a.parent().kendoStop(!0,!0).kendoAnimate(e))},_vertical:function(a,b){var c=this,d=c.options.animation.vertical,e=d.effects,f,g;e&&e.indexOf("zoom")!=-1&&(b.css({position:"absolute",top:a.prev().outerHeight(),left:0}).insertBefore(a),l&&(f=c._cellByDate(c._view.toDateString(c._current)),g=f.position(),g=g.left+parseInt(f.width()/2,10)+"px"+" "+(g.top+parseInt(f.height()/2,10)+"px"),b.css(l,g)),a.kendoStop(!0,!0).kendoAnimate({effects:"fadeOut",duration:600,complete:function(){a.remove(),b.css({position:"static",top:0,left:0})}}),b.kendoStop(!0,!0).kendoAnimate(d))},_cellByDate:function(b){return this._table.find("td:not(."+A+")").filter(function(){return a(this.firstChild).attr(c.attr(x))===b})},_class:function(b,d){this._table.find("td:not(."+A+")").removeClass(b).filter(function(){return a(this.firstChild).attr(c.attr(x))===d}).addClass(b)},_click:function(b){var d=this,e=d.options,f=d._current,g=a(b.currentTarget.firstChild),h=g.attr(c.attr(x)).split("/");h=new M(h[0],h[1],h[2]),g[0].href.indexOf("#")!=-1&&b.preventDefault(),g.parent().hasClass(A)?f=h:d._view.setDate(f,h),d.navigateDown(S(f,e.min,e.max))},_focus:function(a){var b=this,c=b._view;c.compare(a,b._current)!==0?b.navigate(a):b._current=a,b._class("k-state-focused",c.toDateString(a))},_footer:function(b){var d=this,e=d.element,f=new M,g=e.find(".k-footer");b?(g[0]||(g=a('<div class="k-footer"><a href="#" class="k-link k-nav-today"></a></div>').appendTo(e)),d._today=g.show().find(".k-link").html(b(f)).attr("title",c.toString(f,"D",d.options.culture)),d._toggle()):(d._toggle(!1),g.hide())},_header:function(){var a=this,b=a.element,c;b.find(".k-header")[0]||b.html('<div class="k-header"><a href="#" class="k-link k-nav-prev"><span class="k-icon k-i-arrow-w"></span></a><a href="#" class="k-link k-nav-fast"></a><a href="#" class="k-link k-nav-next"><span class="k-icon k-i-arrow-e"></span></a></div>'),c=b.find(".k-link").bind(E+" "+F,W).click(!1),a._title=c.eq(1).bind(p,K(a.navigateUp,a)),a[I]=c.eq(0).bind(p,K(a.navigateToPast,a)),a[J]=c.eq(2).bind(p,K(a.navigateToFuture,a))},_navigate:function(a,b){var c=this,d=c._index+1,e=new M(c._current);a=c[a],a.hasClass(z)||(d>3?e.setFullYear(e.getFullYear()+100*b):P.views[d].setDate(e,b),c.navigate(e))},_option:function(a,c){var d=this,e=d.options,g=+d._value,h,i;if(c===b)return e[a];c=f(c,e.format,e.culture);!c||(e[a]=new M(c),i=d._view.compare(c,d._current),a===q?(h=+c>g,i=i>-1):(h=g>+c,i=i<1),h?d.value(null):i&&d.navigate(),d._toggle())},_toggle:function(a){var c=this,d=c.options,e=c._today;a===b&&(a=T(new M,d.min,d.max)),e&&(e.unbind(p),a?e.addClass(C).removeClass(z).bind(p,K(c._todayClick,c)):e.removeClass(C).addClass(z).bind(p,X))},_todayClick:function(a){var b=this,c=N[b.options.depth],d=new M;a.preventDefault(),b._view.compare(b._current,d)===0&&b._index==c&&(b._changeView=!1),b._value=d,b.navigate(d,c),b.trigger(v)},_templates:function(){var a=this,b=a.options,d=b.footer,e=b.month,f=e.content,g=e.empty;a.month={content:h('<td#=data.cssClass#><a class="k-link#=data.linkClass#" href="#=data.url#" '+c.attr("value")+'="#=data.dateString#" title="#=data.title#">'+(f||"#=data.value#")+"</a></td>",{useWithBlock:!!f}),empty:h("<td>"+(g||" ")+"</td>",{useWithBlock:!!g})},d!==!1&&(a.footer=h(d||'#= kendo.toString(data,"D","'+b.culture+'") #',{useWithBlock:!1}))}});d.plugin(O);var P={firstDayOfMonth:function(a){return new M(a.getFullYear(),a.getMonth(),1)},firstVisibleDay:function(a,b){b=b||c.culture().calendar;var d=b.firstDay,e=new M(a.getFullYear(),a.getMonth(),0,a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds());while(e.getDay()!=d)P.setTime(e,-1*H);return e},setTime:function(a,b){var c=a.getTimezoneOffset(),d=new M(a.getTime()+b),e=d.getTimezoneOffset()-c;a.setTime(d.getTime()+e*G)},views:[{name:t,title:function(a,b){return Y(b).months.names[a.getMonth()]+" "+a.getFullYear()},content:function(a){var b=this,d=0,e=a.min,f=a.max,g=a.date,h=a.dates,i=a.format,j=a.culture,k=a.url,l=k&&h[0],m=Y(j),n=m.firstDay,o=m.days,p=U(o.names,n),q=U(o.namesShort,n),r=P.firstVisibleDay(g,m),s=b.first(g),t=b.last(g),u=b.toDateString,v=new M,w='<table class="k-content" cellspacing="0"><thead><tr>';for(;d<7;d++)w+='<th scope="col" title="'+p[d]+'">'+q[d]+"</th>";v=+(new M(v.getFullYear(),v.getMonth(),v.getDate()));return Q({cells:42,perRow:7,html:w+="</tr></thead><tbody><tr>",start:new M(r.getFullYear(),r.getMonth(),r.getDate()),min:new M(e.getFullYear(),e.getMonth(),e.getDate()),max:new M(f.getFullYear(),f.getMonth(),f.getDate()),content:a.content,empty:a.empty,setter:b.setDate,build:function(a,b){var d=[],e=a.getDay(),f="",g="#";(a<s||a>t)&&d.push(A),+a===v&&d.push("k-today"),(e===0||e===6)&&d.push("k-weekend"),l&&_(+a,h)&&(g=k.replace("{0}",c.toString(a,i,j)),f=" k-action-link");return{date:a,dates:h,ns:c.ns,title:c.toString(a,"D",j),value:a.getDate(),dateString:u(a),cssClass:d[0]?' class="'+d.join(" ")+'"':"",linkClass:f,url:g}}})},first:function(a){return P.firstDayOfMonth(a)},last:function(a){return new M(a.getFullYear(),a.getMonth()+1,0)},compare:function(a,b){var c,d=a.getMonth(),e=a.getFullYear(),f=b.getMonth(),g=b.getFullYear();e>g?c=1:e<g?c=-1:c=d==f?0:d>f?1:-1;return c},setDate:function(a,b){b instanceof M?a.setFullYear(b.getFullYear(),b.getMonth(),b.getDate()):P.setTime(a,b*H)},toDateString:function(a){return a.getFullYear()+"/"+a.getMonth()+"/"+a.getDate()}},{name:"year",title:function(a){return a.getFullYear()},content:function(a){var b=Y(a.culture).months.namesAbbr,d=this.toDateString,e=a.min,f=a.max;return Q({min:new M(e.getFullYear(),e.getMonth(),1),max:new M(f.getFullYear(),f.getMonth(),1),start:new M(a.date.getFullYear(),0,1),setter:this.setDate,build:function(a){return{value:b[a.getMonth()],ns:c.ns,dateString:d(a),cssClass:""}}})},first:function(a){return new M(a.getFullYear(),0,a.getDate())},last:function(a){return new M(a.getFullYear(),11,a.getDate())},compare:function(a,b){return R(a,b)},setDate:function(a,b){if(b instanceof M)a.setFullYear(b.getFullYear(),b.getMonth(),a.getDate());else{var c=a.getMonth()+b;a.setMonth(c),c>11&&(c-=12),c>0&&a.getMonth()!=c&&a.setDate(0)}},toDateString:function(a){return a.getFullYear()+"/"+a.getMonth()+"/1"}},{name:"decade",title:function(a){var b=a.getFullYear();b=b-b%10;return b+"-"+(b+9)},content:function(a){var b=a.date.getFullYear(),d=this.toDateString;return Q({start:new M(b-b%10-1,0,1),min:new M(a.min.getFullYear(),0,1),max:new M(a.max.getFullYear(),0,1),setter:this.setDate,build:function(a,b){return{value:a.getFullYear(),ns:c.ns,dateString:d(a),cssClass:b===0||b==11?B:""}}})},first:function(a){var b=a.getFullYear();return new M(b-b%10,a.getMonth(),a.getDate())},last:function(a){var b=a.getFullYear();return new M(b-b%10+9,a.getMonth(),a.getDate())},compare:function(a,b){return R(a,b,10)},setDate:function(a,b){V(a,b,1)},toDateString:function(a){return a.getFullYear()+"/0/1"}},{name:u,title:function(a){var b=a.getFullYear();b=b-b%100;return b+"-"+(b+99)},content:function(a){var b=a.date.getFullYear(),d=a.min.getFullYear(),e=a.max.getFullYear(),f=this.toDateString;d=d-d%10,e=e-e%10,e-d<10&&(e=d+9);return Q({start:new M(b-b%100-10,0,1),min:new M(d,0,1),max:new M(e,0,1),setter:this.setDate,build:function(a,b){var d=a.getFullYear();return{value:d+" - "+(d+9),ns:c.ns,dateString:f(a),cssClass:b===0||b==11?B:""}}})},first:function(a){var b=a.getFullYear();return new M(b-b%100,a.getMonth(),a.getDate())},last:function(a){var b=a.getFullYear();return new M(b-b%100+99,a.getMonth(),a.getDate())},compare:function(a,b){return R(a,b,100)},setDate:function(a,b){V(a,b,10)},toDateString:function(a){var b=a.getFullYear();return b-b%10+"/0/1"}}]};P.isEqualDatePart=ba,P.makeUnselectable=$,P.restrictValue=S,P.isInRange=T,P.normalize=Z,P.viewsEnum=N,c.calendar=P}(jQuery),function(a,b){function M(a){a.preventDefault()}function L(b){var c=b.parseFormats;E.normalize(b),c=a.isArray(c)?c:[c],c.splice(0,0,b.format),b.parseFormats=c}var c=window.kendo,d=c.ui,e=c.support.touch,f=d.Widget,g=c.parseDate,h=c.keys,i=c.template,j="<div />",k="<span />",l=e?"touchend":"click",m=l+".datepicker",n="open",o="close",p="change",q="navigate",r="dateView",s="disabled",t="k-state-default",u="k-state-focused",v="k-state-selected",w="k-state-disabled",x="k-state-hover",y="mouseenter mouseleave",z=e?"touchstart":"mousedown",A="min",B="max",C="month",D="first",E=c.calendar,F=E.isInRange,G=E.restrictValue,H=E.isEqualDatePart,I=a.extend,J=a.proxy,K=Date,N=function(b){var c=this,e=document.body,f=O.sharedCalendar;f||(f=O.sharedCalendar=new d.Calendar(a(j).hide().appendTo(e)),E.makeUnselectable(f.element)),c.calendar=f,c.options=b=b||{},c.popup=new d.Popup(a(j).addClass("k-calendar-container").appendTo(e),I(b.popup,b,{name:"Popup"})),c._templates(),c.value(b.value)};N.prototype={_calendar:function(){var a=this,b=a.popup,c=a.options,d=a.calendar,f=d.element;f.data(r)!==a&&(f.appendTo(b.element).data(r,a).undelegate(m).delegate("td:has(.k-link)",m,J(a._click,a)).unbind(z).bind(z,M).show(),d.unbind(p).bind(p,c),e||d.unbind(q).bind(q,J(a._navigate,a)),d.month=a.month,d.options.depth=c.depth,d.options.culture=c.culture,d._footer(a.footer),d.min(c.min),d.max(c.max),d.navigate(a._value,c.start),a.value(a._value))},open:function(){var a=this;a._calendar(),a.popup.open()},close:function(){this.popup.close()},min:function(a){this._option(A,a)},max:function(a){this._option(B,a)},toggle:function(){var a=this;a[a.popup.visible()?o:n]()},move:function(a){var b=this,c=b.options,d=new K(b._current),e=b.calendar,f=e._index,g=e._view,i=a.keyCode,j,k,l;if(i==h.ESC)b.close();else{if(a.altKey){i==h.DOWN?(b.open(),k=!0):i==h.UP&&(b.close(),k=!0);return}if(!b.popup.visible()||e._table.parent().data("animating"))return;if(a.ctrlKey)i==h.RIGHT?(e.navigateToFuture(),k=!0):i==h.LEFT?(e.navigateToPast(),k=!0):i==h.UP?(e.navigateUp(),k=!0):i==h.DOWN&&(b._navigateDown(),k=!0);else{i==h.RIGHT?(j=1,k=!0):i==h.LEFT?(j=-1,k=!0):i==h.UP?(j=f===0?-7:-4,k=!0):i==h.DOWN?(j=f===0?7:4,k=!0):i==h.ENTER?(b._navigateDown(),k=!0):i==h.HOME||i==h.END?(l=i==h.HOME?D:"last",d=g[l](d),k=!0):i==h.PAGEUP?(k=!0,e.navigateToPast()):i==h.PAGEDOWN&&(k=!0,e.navigateToFuture());if(j||l)l||g.setDate(d,j),b._current=d=G(d,c.min,c.max),e._focus(d)}k&&a.preventDefault()}},value:function(a){var b=this,c=b.calendar,d=b.options;b._value=a,b._current=new K(G(a,d.min,d.max)),c.element.data(r)===b&&(c._focus(b._current),c.value(a))},_click:function(a){a.currentTarget.className.indexOf(v)!==-1&&this.close()},_navigate:function(){var a=this,b=a.calendar;a._current=new K(b._current),b._focus(b._current)},_navigateDown:function(){var a=this,b=a.calendar,d=b._current,e=b._table.find("."+u),f=e.children(":"+D).attr(c.attr("value")).split("/");f=new K(f[0],f[1],f[2]);!e[0]||e.hasClass(v)?a.close():(b._view.setDate(d,f),b.navigateDown(d))},_option:function(a,b){var c=this,d=c.options,e=c.calendar;d[a]=b,e.element.data(r)===c&&e[a](b)},_templates:function(){var a=this,b=a.options,d=b.footer,e=b.month||{},f=e.content,g=e.empty;a.month={content:i('<td#=data.cssClass#><a class="k-link" href="\\#" '+c.attr("value")+'="#=data.dateString#" title="#=data.title#">'+(f||"#=data.value#")+"</a></td>",{useWithBlock:!!f}),empty:i("<td>"+(g||" ")+"</td>",{useWithBlock:!!g})},d!==!1&&(a.footer=i(d||'#= kendo.toString(data,"D","'+b.culture+'") #',{useWithBlock:!1}))}},N.normalize=L,c.DateView=N;var O=f.extend({init:function(a,b){var d=this;f.fn.init.call(d,a,b),a=d.element,b=d.options,L(b),d._wrapper(),d.dateView=new N(I({},b,{anchor:d.wrapper,change:function(){d._change(this.value()),d.close()},close:function(a){d.trigger(o)&&a.preventDefault()},open:function(a){d.trigger(n)&&a.preventDefault()}})),d._icon(),e||(a[0].type="text"),a.addClass("k-input").bind({keydown:J(d._keydown,d),focus:function(a){d._inputWrapper.addClass(u)},blur:J(d._blur,d)}).closest("form").bind("reset",function(){d.value(a[0].defaultValue)}),d.enable(!a.is("[disabled]")),d.value(b.value||d.element.val()),c.notify(d)},events:[n,o,p],options:{name:"DatePicker",value:null,footer:"",format:"",culture:"",parseFormats:[],min:new Date(1900,0,1),max:new Date(2099,11,31),start:C,depth:C,animation:{},month:{}},setOptions:function(a){var b=this;f.fn.setOptions.call(b,a),L(b.options),I(b.dateView.options,b.options)},enable:function(a){var b=this,c=b._dateIcon.unbind(l+" "+z),d=b._inputWrapper.unbind(y),e=b.element;a===!1?(d.removeClass(t).addClass(w),e.attr(s,s)):(d.addClass(t).removeClass(w).bind(y,b._toggleHover),e.removeAttr(s),c.bind(l,J(b._click,b)).bind(z,M))},open:function(){this.dateView.open()},close:function(){this.dateView.close()},min:function(a){return this._option(A,a)},max:function(a){return this._option(B,a)},value:function(a){var c=this;if(a===b)return c._value;c._old=c._update(a)},_toggleHover:function(b){e||a(b.currentTarget).toggleClass(x,b.type==="mouseenter")},_blur:function(){var a=this;a.close(),a._change(a.element.val()),a._inputWrapper.removeClass(u)},_click:function(){var a=this,b=a.element;a.dateView.toggle(),!e&&b[0]!==document.activeElement&&b.focus()},_change:function(a){var b=this;a=b._update(a),+b._old!=+a&&(b._old=a,b.trigger(p),b.element.trigger(p))},_keydown:function(a){var b=this,c=b.dateView;!c.popup.visible()&&a.keyCode==h.ENTER?b._change(b.element.val()):c.move(a)},_icon:function(){var b=this,c=b.element,d;d=c.next("span.k-select"),d[0]||(d=a('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-calendar">select</span></span>').insertAfter(c)),b._dateIcon=d},_option:function(a,c){var d=this,e=d.options;if(c===b)return e[a];c=g(c,e.parseFormats,e.culture);!c||(e[a]=new K(c),d.dateView[a](c))},_update:function(a){var b=this,d=b.options,e=d.min,f=d.max,h=g(a,d.parseFormats,d.culture);if(+h===+b._value)return h;h!==null&&H(h,e)?h=G(h,e,f):F(h,e,f)||(h=null),b._value=h,b.dateView.value(h),b.element.val(h?c.toString(h,d.format,d.culture):a);return h},_wrapper:function(){var b=this,c=b.element,d;d=c.parents(".k-datepicker"),d[0]||(d=c.wrap(k).parent().addClass("k-picker-wrap k-state-default"),d=d.wrap(k).parent()),d[0].style.cssText=c[0].style.cssText,c.css({width:"100%",height:c[0].style.height}),b.wrapper=d.addClass("k-widget k-datepicker k-header"),b._inputWrapper=a(d[0].firstChild)}});d.plugin(O)}(jQuery),function(a,b){function x(a){var b=a.value.length;s(a,b,b)}function w(a,b,c,d){var e=b.split(d);e.splice(u(a,b,d),1,c),d&&e[e.length-1]!==""&&e.push("");return e.join(d)}function v(a,b,c){return b.split(c)[u(a,b,c)]}function u(a,b,c){return c?b.substring(0,a).split(c).length-1:0}var c=window.kendo,d=c.support,e=d.placeholder,f=c.ui,g=c.keys,h=c.data.DataSource,i=f.List,j="change",k="k-state-default",l="disabled",m="k-state-focused",n="k-state-selected",o="k-state-disabled",p="k-state-hover",q="mouseenter mouseleave",r=i.caret,s=i.selectText,t=a.proxy,y=i.extend({init:function(b,d){var f=this,g;d=a.isArray(d)?{dataSource:d}:d,i.fn.init.call(f,b,d),b=f.element,d=f.options,d.placeholder=d.placeholder||b.attr("placeholder"),e&&b.attr("placeholder",d.placeholder),f._wrapper(),f._accessors(),f._dataSource(),b[0].type="text",g=f.wrapper,b.attr("autocomplete","off").addClass("k-input").bind({keydown:t(f._keydown,f),paste:t(f._search,f),focus:function(){f._prev=f.value(),f._placeholder(!1),g.addClass(m),clearTimeout(f._bluring)},blur:function(){f._change(),f._placeholder(),g.removeClass(m)}}),f._enable(),f._popup(),f._old=f.value(),f._placeholder(),c.notify(f)},options:{name:"AutoComplete",suggest:!1,template:"",dataTextField:"",minLength:1,delay:200,height:200,filter:"startswith",ignoreCase:!0,highlightFirst:!1,separator:null,placeholder:"",animation:{}},_dataSource:function(){var a=this;a.dataSource&&a._refreshHandler?a.dataSource.unbind(j,a._refreshHandler):a._refreshHandler=t(a.refresh,a),a.dataSource=h.create(a.options.dataSource).bind(j,a._refreshHandler)},setDataSource:function(a){this.options.dataSource=a,this._dataSource()},events:["open","close",j,"select","dataBinding","dataBound"],setOptions:function(a){i.fn.setOptions.call(this,a),this._template(),this._accessors()},enable:function(a){var b=this,c=b.element,d=b.wrapper;a===!1?(d.removeClass(k).addClass(o).unbind(q),c.attr(l,l)):(d.removeClass(o).addClass(k).bind(q,b._toggleHover),c.removeAttr(l))},close:function(){var a=this;a._current=null,a.popup.close()},refresh:function(){var b=this,d=b.ul[0],e=b.popup,f=b.options,g=b._data(),h=g.length;b.trigger("dataBinding"),d.innerHTML=c.render(b.template,g),b._height(h),h&&(f.highlightFirst&&b.current(a(d.firstChild)),f.suggest&&b.suggest(a(d.firstChild))),b._open&&(b._open=!1,e[h?"open":"close"]()),b._touchScroller&&b._touchScroller.reset(),b._makeUnselectable(),b.trigger("dataBound")},select:function(a){this._select(a)},search:function(a){var b=this,c=b.options,d=c.ignoreCase,e=c.separator,f;a=a||b.value(),b._current=null,clearTimeout(b._typing),e&&(a=v(r(b.element[0]),a,e)),f=a.length,f?f>=b.options.minLength&&(b._open=!0,b.dataSource.filter({value:d?a.toLowerCase():a,operator:c.filter,field:c.dataTextField,ignoreCase:d})):b.popup.close()},suggest:function(a){var c=this,d=c._last,e=c.value(),f=c.element[0],h=r(f),j=c.options.separator,k=e.split(j),l=u(h,e,j),m=h,n;d==g.BACKSPACE||d==g.DELETE?c._last=b:(a=a||"",typeof a!="string"&&(n=i.inArray(a[0],c.ul[0]),n>-1?a=c._text(c._data()[n]):a=""),h<=0&&(h=e.toLowerCase().indexOf(a.toLowerCase())+1),n=e.substring(0,h).lastIndexOf(j),n=n>-1?h-(n+j.length):h,e=k[l].substring(0,n),a&&(n=a.toLowerCase().indexOf(e.toLowerCase()),n>-1&&(a=a.substring(n+e.length),m=h+a.length,e+=a),j&&k[k.length-1]!==""&&k.push("")),k[l]=e,c.value(k.join(j||"")),s(f,h,m))},value:function(a){var c=this,d=c.element[0];if(a!==b)d.value=a,c._placeholder();else{a=d.value;if(d.className.indexOf("k-readonly")>-1)return a===c.options.placeholder?"":a;return a}},_accept:function(a){var b=this;b._focus(a),x(b.element[0])},_keydown:function(b){var c=this,d=c.ul[0],e=b.keyCode,f=c._current,h=c.popup.visible();c._last=e,e===g.DOWN?(h&&c._move(f?f.next():a(d.firstChild)),b.preventDefault()):e===g.UP?(h&&c._move(f?f.prev():a(d.lastChild)),b.preventDefault()):e===g.ENTER||e===g.TAB?(c.popup.visible()&&b.preventDefault(),c._accept(f)):e===g.ESC?c.close():c._search()},_move:function(a){var b=this;a=a[0]?a:null,b.current(a),b.options.suggest&&b.suggest(a)},_placeholder:function(a){if(!e){var c=this,d=c.element,f=c.options.placeholder,g;if(f){g=d.val(),a===b&&(a=!g),a||(g!==f?f=g:f="");if(g===c._old&&!a)return;d.toggleClass("k-readonly",a).val(f)}}},_search:function(){var a=this;clearTimeout(a._typing),a._typing=setTimeout(function(){a._prev!==a.value()&&(a._prev=a.value(),a.search())},a.options.delay)},_select:function(b){var c=this,d=c.options.separator,e=c._data(),f,g;b=a(b),b[0]&&!b.hasClass(n)&&(g=i.inArray(b[0],c.ul[0]),g>-1&&(e=e[g],f=c._text(e),d&&(f=w(r(c.element[0]),c.value(),f,d)),c.value(f),c.current(b.addClass(n))))},_toggleHover:function(b){d.touch||a(b.currentTarget).toggleClass(p,b.type==="mouseenter")},_wrapper:function(){var a=this,b=a.element,c=b[0],d;d=b.parent(),d.is("span.k-widget")||(d=b.wrap("<span />").parent()),d[0].style.cssText=c.style.cssText,b.css({width:"100%",height:c.style.height}),a._focused=a.element,a.wrapper=d.addClass("k-widget k-autocomplete k-header").addClass(c.className)}});f.plugin(y)}(jQuery),function(a,b){function r(a,b,c){var d=0,e=b.length-1,f;for(;d<e;++d)f=b[d],f in a||(a[f]={}),a=a[f];a[b[e]]=c}var c=window.kendo,d=c.ui,e=d.Select,f=c.support.mobileOS,g="disabled",h="change",i="select",j="k-state-focused",k="k-state-default",l="k-state-disabled",m="k-state-selected",n="tabIndex",o="mouseenter mouseleave",p=a.proxy,q=e.extend({init:function(d,f){var g=this,h=f&&f.index,j,k,l;f=a.isArray(f)?{dataSource:f}:f,e.fn.init.call(g,d,f),f=g.options,d=g.element.focus(function(){g.wrapper.focus()}),g._reset(),g._word="",g._wrapper(),g._span(),g._popup(),g._mobile(),g._accessors(),g._dataSource(),g._enable(),g._cascade(),g.selectedIndex=-1,h!==b&&(f.index=h),f.autoBind?g._selectItem():(l=f.text,l||(j=g._optionLabelText(f.optionLabel),k=j&&f.index===0,d.is(i)?k?l=j:l=d.children(":selected").text():!d[0].value&&k&&(l=j)),g.text(l)),c.notify(g)},options:{name:"DropDownList",enable:!0,index:0,autoBind:!0,text:"",template:"",delay:500,height:200,dataTextField:"",dataValueField:"",optionLabel:"",cascadeFrom:"",ignoreCase:!0,animation:{}},events:["open","close",h,"select","dataBinding","dataBound"],setOptions:function(a){e.fn.setOptions.call(this,a),this._template(),this._accessors()},enable:function(a){var b=this,c=b.element,d=b.wrapper.unbind(".dropdownlist"),e=b._inputWrapper.unbind(o);a===!1?(c.attr(g,g),e.removeClass(k).addClass(l)):(c.removeAttr(g,g),e.addClass(k).removeClass(l).bind(o,b._toggleHover),d.bind({"click.dropdownlist":function(a){a.preventDefault(),b.toggle()},"keydown.dropdownlist":p(b._keydown,b),"keypress.dropdownlist":p(b._keypress,b),"focusin.dropdownlist":function(){e.addClass(j)},"focusout.dropdownlist":function(a){b._blur(),e.removeClass(j)}}))},open:function(){var a=this;a.ul[0].firstChild?(a.popup.open(),a._scroll(a._current)):(a._open=!0,a._selectItem())},toggle:function(a){this._toggle(a)},refresh:function(){var a=this,b=a._data(),d=b.length,e=a.options.optionLabel;a.trigger("dataBinding"),a._current&&a.current(null),a.ul[0].innerHTML=c.render(a.template,b),a._height(d),a.element.is(i)&&(e&&d&&(e=a._optionLabelText(e),e='<option value="">'+e+"</option>"),a._options(b,e)),a._open&&(a._open=!1,a.toggle(!!d)),a._hideBusy(),a._makeUnselectable(),a.trigger("dataBound")},search:function(a){if(a){var c=this,d=c.options.ignoreCase;d&&(a=a.toLowerCase()),c._select(function(e){var f=c._text(e);if(f!==b){f=f+"",d&&(f=f.toLowerCase());return f.indexOf(a)===0}})}},select:function(a){var c=this;if(a===b)return c.selectedIndex;c._select(a),c._old=c._accessor(),c._oldIndex=c.selectedIndex},text:function(a){var c=this.span;if(a!==b)c.text(a);else return c.text()},value:function(a){var c=this,d;if(a===b)return c._accessor();a!==null&&(a=a.toString());if(!a||!c._valueOnFetch(a))d=c._index(a),c.select(d>-1?d:0)},_selectItem:function(){var a=this;a.dataSource.one(h,function(){var b=a.options.value||a.value();b?a.value(b):a.select(a.options.index),a.trigger("selected")}).fetch()},_accept:function(a){this._focus(a)},_optionLabelText:function(){var a=this.options,b=a.dataTextField,c=a.optionLabel;if(c&&b&&typeof c=="object")return this._text(c);return c},_data:function(){var a=this,b=a.options,d=b.optionLabel,e=b.dataTextField,f=b.dataValueField,g=a.dataSource.view(),h=g.length,i=d,j=0;if(d&&h){typeof d=="object"?i=d:e&&(i={},e=e.split("."),f=f.split("."),r(i,f,""),r(i,e,d)),i=new c.data.ObservableArray([i]);for(;j<h;j++)i.push(g[j]);g=i}return g},_keydown:function(a){var b=this,d=a.keyCode,e=c.keys,f=b.ul[0];b._move(a),d===e.HOME?(a.preventDefault(),b._select(f.firstChild)):d===e.END&&(a.preventDefault(),b._select(f.lastChild))},_keypress:function(a){var b=this;setTimeout(function(){b._word+=String.fromCharCode(a.keyCode||a.charCode),b._search()})},_popup:function(){e.fn._popup.call(this),this.popup.one("open",function(){this.wrapper=c.wrap(this.element).addClass("km-popup")})},_search:function(){var a=this;clearTimeout(a._typing),a._typing=setTimeout(function(){a._word=""},a.options.delay),a.search(a._word)},_select:function(a){var c=this,e=c._current,f=c._data(),g,h,i;a=c._get(a),a&&a[0]&&!a.hasClass(m)&&(e&&e.removeClass(m),i=d.List.inArray(a[0],c.ul[0]),i>-1&&(f=f[i],h=c._text(f),g=c._value(f),c.selectedIndex=i,c.text(h),c._accessor(g!==b?g:h,i),c.current(a.addClass(m))))},_mobile:function(){var a=this,b=a.popup,c=b.element.parents(".km-root").eq(0);c.length&&f&&(b.options.animation.open.effects=f.android||f.meego?"fadeIn":f.ios?"slideIn:up":b.options.animation.open.effects)},_span:function(){var b=this,c=b.wrapper,d=".k-input",e;e=c.find(d),e[0]||(c.append('<span unselectable="on" class="k-dropdown-wrap k-state-default"><span unselectable="on" class="k-input"> </span><span class="k-select"><span class="k-icon k-i-arrow-s">select</span></span></span>').append(b.element),e=c.find(d)),b.span=e,b._inputWrapper=a(c[0].firstChild),b._arrow=c.find(".k-icon").mousedown(function(a){a.preventDefault()})},_wrapper:function(){var a=this,b=a.element,c=b[0],d=b.attr(n),e;e=b.parent(),e.is("span.k-widget")||(e=b.wrap("<span />").parent()),e.attr(n,d||0),e[0].style.cssText=c.style.cssText,b.hide(),a._focused=a.wrapper=e.attr("unselectable","on").addClass("k-widget k-dropdown k-header").addClass(c.className)}});d.plugin(q)}(jQuery),function(a,b){var c=window.kendo,d=c.ui,e=d.List,f=d.Select,g=c.support,h=g.placeholder,i=f.removeFiltersForField,j=c.keys,k=g.touch?"touchend":"click",l="disabled",m="change",n="k-state-default",o="k-state-disabled",p="k-state-focused",q="mousedown",r="select",s="k-state-selected",t="filter",u="accept",v="rebind",w="mouseenter mouseleave",x=null,y=a.proxy,z=f.extend({init:function(b,d){var e=this,g,h;d=a.isArray(d)?{dataSource:d}:d,f.fn.init.call(e,b,d),d=e.options,b=e.element.focus(function(){e.input.focus()}),d.placeholder=d.placeholder||b.attr("placeholder"),e._reset(),e._wrapper(),e._input(),e._popup(),e._accessors(),e._dataSource(),e._enable(),e._cascade(),g=e._inputWrapper,e.input.bind({keydown:y(e._keydown,e),focus:function(){g.addClass(p),e._placeholder(!1)},blur:function(){g.removeClass(p),clearTimeout(e._typing),e.text(e.text()),e._placeholder(),e._blur()}}),e._oldIndex=e.selectedIndex=-1,e._old=e.value(),d.autoBind?e._selectItem():(h=d.text,!h&&b.is(r)&&(h=b.children(":selected").text()),h&&e.input.val(h)),h||e._placeholder(),c.notify(e)},options:{name:"ComboBox",enable:!0,index:-1,autoBind:!0,delay:200,dataTextField:"",dataValueField:"",minLength:0,height:200,highlightFirst:!0,template:"",filter:"none",placeholder:"",suggest:!1,ignoreCase:!0,animation:{}},events:["open","close",m,"select","dataBinding","dataBound"],setOptions:function(a){f.fn.setOptions.call(this,a),this._template(),this._accessors()},current:function(a){var c=this,d=c._current;if(a===b)return d;d&&d.removeClass(s),f.fn.current.call(c,a)},enable:function(a){var b=this,c=b.input.add(b.element),d=b._inputWrapper.unbind(w),e=b._arrow.parent().unbind(k+" "+q);a===!1?(d.removeClass(n).addClass(o),c.attr(l,l)):(d.removeClass(o).addClass(n).bind(w,b._toggleHover),c.removeAttr(l),e.bind(k,function(){b.toggle()}).bind(q,function(a){a.preventDefault()}))},open:function(){var a=this,b=a.dataSource.options.serverFiltering;a.popup.visible()||(!a.ul[0].firstChild||a._state===u&&!b?(a._open=!0,a._state=v,a._selectItem()):(a.popup.open(),a._scroll(a._current)))},refresh:function(){var b=this,d=b.ul[0],e=b.options,f=b.value(),g=b._data(),h=g.length;b.trigger("dataBinding"),d.innerHTML=c.render(b.template,g),b._height(h),b.element.is(r)&&(b._options(g),f&&b._state===v&&(b._state="",b.value(f))),h&&(e.highlightFirst&&b.current(a(d.firstChild)),e.suggest&&b.input.val()&&b.suggest(a(d.firstChild))),b._open&&(b._open=!1,b.toggle(!!h)),b._touchScroller&&b._touchScroller.reset(),b._makeUnselectable(),b._hideBusy(),b.trigger("dataBound")},select:function(a){var c=this;if(a===b)return c.selectedIndex;c._select(a),c._old=c._accessor(),c._oldIndex=c.selectedIndex},search:function(a){a=typeof a=="string"?a:this.text();var b=this,c=a.length,d=b.options,e=d.ignoreCase,f=d.filter,g=d.dataTextField,h,j;clearTimeout(b._typing),c>=d.minLength&&(f==="none"?b._filter(a):(b._open=!0,b._state=t,j=b.dataSource.filter()||{},i(j,g),h=j.filters||[],h.push({value:e?a.toLowerCase():a,field:g,operator:f,ignoreCase:e}),b.dataSource.filter(h)))},suggest:function(a){var c=this,d=c.input[0],f=c.text(),g=e.caret(d),h=c._last,i;if(h==j.BACKSPACE||h==j.DELETE)c._last=b;else{a=a||"",typeof a!="string"&&(i=e.inArray(a[0],c.ul[0]),i>-1?a=c._text(c.dataSource.view()[i]):a=""),g<=0&&(g=f.toLowerCase().indexOf(a.toLowerCase())+1),a?(i=a.toLowerCase().indexOf(f.toLowerCase()),i>-1&&(f+=a.substring(i+f.length))):f=f.substring(0,g);if(f.length!==g||!a)d.value=f,e.selectText(d,g,f.length)}},text:function(a){a=a===null?"":a;var c=this,d=c._text,e=c.input[0],f=c.options.ignoreCase,g=a,h;if(a===b)return e.value;h=c.dataItem();if(!h||d(h)!==a)f&&(g=g.toLowerCase()),c._select(function(a){a=d(a),f&&(a=(a+"").toLowerCase());return a===g}),c.selectedIndex<0&&(c._custom(a),e.value=a)},toggle:function(a){var b=this;b._toggle(a)},value:function(a){var c=this,d;if(a===b)return c._accessor();a!==null&&(a=a.toString());if(!a||!c._valueOnFetch(a))d=c._index(a),d>-1?c.select(d):(c.current(x),c._custom(a),c.text(a),c._placeholder()),c._old=c._accessor(),c._oldIndex=c.selectedIndex},_accept:function(a){var b=this;a&&b.popup.visible()?(b._state===t&&(b._state=u),b._focus(a)):(b.text(b.text()),b._change())},_custom:function(b){var c=this,d=c.element,e=c._option;d.is(r)?(e||(e=c._option=a("<option/>"),d.append(e)),e.text(b),e[0].selected=!0):d.val(b)},_filter:function(a){var c=this,d=c.options,e=c.dataSource,f=d.ignoreCase,g=function(d){var e=c._text(d);if(e!==b){e=e+"";if(e!==""&&a==="")return!1;f&&(e=e.toLowerCase());return e.indexOf(a)===0}};f&&(a=a.toLowerCase());c.ul[0].firstChild?(c._highlight(g)!==-1&&(d.suggest&&c._current&&c.suggest(c._current),c.open()),c._hideBusy()):e.one(m,function(){e.data()[0]&&c.search(a)}).fetch()},_highlight:function(c){var d=this,f;if(c===b||c===null)return-1;c=d._get(c),f=e.inArray(c[0],d.ul[0]),f==-1&&(d.options.highlightFirst&&!d.text()?c=a(d.ul[0].firstChild):c=x),d.current(c);return f},_input:function(){var b=this,c=b.element[0],d=c.tabIndex,e=b.wrapper,f=".k-input",g,i,j=c.name||"";j&&(j='name="'+j+'_input" '),g=e.find(f),g[0]||(e.append('<span unselectable="on" class="k-dropdown-wrap k-state-default"><input '+j+'class="k-input" type="text" autocomplete="off"/><span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-arrow-s">select</span></span></span>').append(b.element),g=e.find(f)),i=g[0],i.tabIndex=d,i.style.cssText=c.style.cssText,c.maxLength>-1&&(i.maxLength=c.maxLength),g.addClass(c.className).val(c.value).css({width:"100%",height:c.style.height}).show(),h&&g.attr("placeholder",b.options.placeholder),b._focused=b.input=g,b._arrow=e.find(".k-icon"),b._inputWrapper=a(e[0].firstChild)},_keydown:function(a){var b=this,c=a.keyCode,d=b.input;b._last=c,clearTimeout(b._typing),c==j.TAB?(b.text(d.val()),b._state===t&&b.selectedIndex>-1&&(b._state=u)):b._move(a)||b._search()},_placeholder:function(a){if(!h){var c=this,d=c.input,e=c.options.placeholder,f;if(e){f=c.value(),a===b&&(a=!f),d.toggleClass("k-readonly",a);if(!a)if(!f)e="";else return;d.val(e)}}},_search:function(){var a=this;a._typing=setTimeout(function(){var b=a.text();a._prev!==b&&(a._prev=b,a.search(b))},a.options.delay)},_select:function(a){var c=this,d,e,f=c._highlight(a),g=c._data();c.selectedIndex=f,f!==-1&&(c._current.addClass(s),g=g[f],d=c._text(g),e=c._value(g),c._prev=c.input[0].value=d,c._accessor(e!==b?e:d,f),c._placeholder())},_selectItem:function(){var a=this,b=a.options,c=a.dataSource,d=c.filter()||{};i(d,a.options.dataTextField),a.dataSource.one(m,function(){var c=b.value||a.value();c?a.value(c):a.select(b.index),a.trigger("selected")}).filter(d)},_wrapper:function(){var a=this,b=a.element,c;c=b.parent(),c.is("span.k-widget")||(c=b.hide().wrap("<span />").parent()),c[0].style.cssText=b[0].style.cssText,a.wrapper=c.addClass("k-widget k-combobox k-header").addClass(b[0].className).show()}});d.plugin(z)}(jQuery),function(a,b){function s(a){String.prototype.trim?a=a.trim():a=a.replace(/^\s\s*/,"").replace(/\s\s*$/,"");return a.replace(/ /gi,"")}var c=window.kendo,d=c.ui,e=a.proxy,f=a.extend,g=a.grep,h=a.map,i=a.inArray,j="k-state-selected",k="asc",l="desc",m="click",n="change",o="kendoPopup",p="kendoFilterMenu",q="kendoMenu",r=d.Widget,t=r.extend({init:function(b,d){var f=this,g;r.fn.init.call(f,b,d),b=f.element,d=f.options,f.owner=d.owner,f.field=b.attr(c.attr("field")),g=b.find(".k-header-column-menu"),g[0]||(g=b.prepend('<a class="k-header-column-menu" href="#"><span class="k-icon k-i-arrowhead-s"/></a>').find(".k-header-column-menu")),f._clickHandler=e(f._click,f),g.click(f._clickHandler),f.link=g,f.wrapper=a('<div class="k-column-menu"/>'),f.wrapper.html(c.template(u)({ns:c.ns,messages:d.messages,sortable:d.sortable,filterable:d.filterable,columns:f._ownerColumns(),showColumns:d.columns})),f.popup=f.wrapper[o]({anchor:g,open:e(f._open,f)}).data(o),f._menu(),f._sort(),f._columns(),f._filter()},options:{name:"ColumnMenu",messages:{sortAscending:"Sort Ascending",sortDescending:"Sort Descending",filter:"Filter",columns:"Columns"},columns:!0,sortable:!0,filterable:!0},destroy:function(){var a=this;a.filterMenu&&(a.filterMenu.destroy(),a.filterMenu=null),a.wrapper.children().removeData(q),a.wrapper.removeData(o).remove(),a.link.unbind(m,a._clickHandler),a.element.removeData("kendoColumnMenu"),a.columns=null},close:function(){this.menu.close(),this.popup.close()},_click:function(a){a.preventDefault(),a.stopPropagation(),this.popup.toggle()},_open:function(){a(".k-column-menu").not(this.wrapper).each(function(){a(this).data(o).close()})},_ownerColumns:function(){var a=this.owner.columns,b=g(a,function(a){var b=!0,c=s(a.title||"");if(a.menu===!1||!a.field&&!c.length)b=!1;return b});return h(b,function(b){return{field:b.field,title:b.title||b.field,hidden:b.hidden,index:i(b,a)}})},_menu:function(){this.menu=this.wrapper.children()[q]({orientation:"vertical",closeOnClick:!1}).data(q)},_sort:function(){var b=this;b.options.sortable&&(b.refresh(),b.options.dataSource.bind(n,e(b.refresh,b)),b.menu.element.delegate(".k-sort-asc, .k-sort-desc",m,function(){var c=a(this),d=c.hasClass("k-sort-asc")?k:l;c.parent().find(".k-sort-"+(d==k?l:k)).removeClass(j),b._sortDataSource(c,d),b.close()}))},_sortDataSource:function(a,c){var d=this,e=d.options.sortable,f=d.options.dataSource,g,h,i=f.sort()||[];a.hasClass(j)&&e&&e.allowUnsort!==!1?(a.removeClass(j),c=b):a.addClass(j);if(e===!0||e.mode==="single")i=[{field:d.field,dir:c}];else{for(g=0,h=i.length;g<h;g++)if(i[g].field===d.field){i.splice(g,1);break}i.push({field:d.field,dir:c})}f.sort(i)},_columns:function(){var b=this;b.options.columns&&(b._updateColumnsMenu(),b.owner.bind(["columnHide","columnShow"],function(){b._updateColumnsMenu()}),b.wrapper.delegate("[type=checkbox]",n,function(d){var e=a(this),f=parseInt(e.attr(c.attr("index")),10);e.is(":checked")?b.owner.showColumn(f):b.owner.hideColumn(f)}))},_updateColumnsMenu:function(){var a=this._ownerColumns(),b=h(a,function(a){return"["+c.attr("index")+"="+a.index+"]"}).join(","),d=g(a,function(a){return!a.hidden}),e=h(d,function(a){return"["+c.attr("index")+"="+a.index+"]"}).join(",");this.wrapper.find(b).attr("checked",!1),this.wrapper.find(e).attr("checked",!0).attr("disabled",d.length==1)},_filter:function(){var a=this,b=a.options;b.filterable!==!1&&(a.filterMenu=a.wrapper.find(".k-filterable")[p](f(!0,{},{appendToElement:!0,dataSource:b.dataSource,values:b.values,field:a.field},b.filterable)).data(p))},refresh:function(){var a=this,b=a.options.dataSource.sort()||[],c,d=a.field,e,f;a.wrapper.find(".k-sort-asc, .k-sort-desc").removeClass(j);for(e=0,f=b.length;e<f;e++)c=b[e],d==c.field&&a.wrapper.find(".k-sort-"+c.dir).addClass(j)}}),u='<ul>#if(sortable){#<li class="k-item k-sort-asc"><span class="k-link"><span class="k-sprite k-i-sort-asc"></span>${messages.sortAscending}</span></li><li class="k-item k-sort-desc"><span class="k-link"><span class="k-sprite k-i-sort-desc"></span>${messages.sortDescending}</span></li>#if(showColumns || filterable){#<li class="k-separator"></li>#}##}##if(showColumns){#<li class="k-item k-columns-item"><span class="k-link"><span class="k-sprite k-i-columns"></span>${messages.columns}</span><ul>#for (var col in columns) {#<li><label><input type="checkbox" data-#=ns#field="#=columns[col].field#" data-#=ns#index="#=columns[col].index#"/>#=columns[col].title#</label></li>#}#</ul></li>#if(filterable){#<li class="k-separator"></li>#}##}##if(filterable){#<li class="k-item k-filter-item"><span class="k-link"><span class="k-sprite k-filter"></span>${messages.filter}</span><ul><li><div class="k-filterable"></div></li></ul></li>#}#</ul>';d.plugin(t)}(jQuery),function(a,b){function bm(a,b){var c,d,e;if(typeof a===U&&a===b)return a;if(j(a)&&a.name===b)return a;if(n(a))for(c=0,d=a.length;c<d;c++){e=a[c];if(typeof e===U&&e===b||e.name===b)return e}return null}function bk(b,d,e,f){var g=b.find(">colgroup"),h,i=l(d,function(a){h=a.width;if(h&&parseInt(h,10)!==0)return c.format('<col style="width:{0}"/>',typeof h===U?h:h+"px");return"<col />"});(e||g.find(".k-hierarchy-col").length)&&i.splice(0,0,'<col class="k-hierarchy-col" />'),g.length&&g.remove(),g=a("<colgroup/>").append(a(Array(f+1).join('<col class="k-group-col">')+i.join(""))),b.prepend(g)}function bj(a){a=a||{};var b=a.style;b&&(a.style=b.replace(/((.*)?)(display\s*:\s*none)\s*;?/i,"$1"));return a}function bi(a){a=a||{};var b=a.style;b?(b=b.replace(/((.*)?display)(.*)?:([^;]*)/i,"$1:none"),b===a.style&&(b=b.replace(/(.*)?/i,"display:none;$1"))):b="display:none";return k({},a,{style:b})}function bh(a){return m(a,function(a){return!a.hidden})}function bg(a,b,c){var d,e,f,g;c=n(c)?c:[c];for(d=0,e=c.length;d<e;d++)f=c[d],j(f)&&f.click&&(g=f.name||f.text,b.on(Q,"a.k-grid-"+g,{commandName:g},p(f.click,a)))}function bf(a,b,c){var d=a.eq(b),e=a.eq(c);d[b>c?"insertBefore":"insertAfter"](e)}function be(a){var b,c,d={},e={};if(!r(a)){n(a)||(a=[a]);for(b=0,c=a.length;b<c;b++)d[a[b].aggregate]=0,e[a[b].field]=d}return e}function bd(b,c){a("th, th .k-grid-filter, th .k-link",b).add(document.body).css("cursor",c)}function bc(b){var c=0;a("> .k-grouping-header, > .k-grid-toolbar",b).each(function(){c+=this.offsetHeight});return c}function ba(a){var b,c=" ";if(a){if(typeof a===U)return a;for(b in a)c+=b+'="'+a[b]+'"'}return c}function _(a){return Array(a+1).join('<td class="k-group-cell"> </td>')}var c=window.kendo,d=c.ui,e=c.data.DataSource,f=d.Groupable,g=c.support.tbodyInnerHtml,h=d.Widget,i=c.keys,j=a.isPlainObject,k=a.extend,l=a.map,m=a.grep,n=a.isArray,o=a.inArray,p=a.proxy,q=a.isFunction,r=a.isEmptyObject,s=Math,t="requestStart",u="error",v="tbody>tr:not(.k-grouping-row,.k-detail-row,.k-group-footer):visible",w=":not(.k-group-cell,.k-hierarchy-cell):visible",x="tbody>tr:not(.k-grouping-row,.k-detail-row,.k-group-footer) > td:not(.k-group-cell,.k-hierarchy-cell)",y=v+">td"+w,z=y+":first",A="edit",B="save",C="remove",D="detailInit",E="change",F="columnHide",G="columnShow",H="saveChanges",I="dataBound",J="detailExpand",K="detailCollapse",L="k-state-focused",M="k-focusable",N="k-state-selected",O="columnResize",P="columnReorder",Q="click",R="height",S="tabIndex",T="function",U="string",V="Are you sure you want to delete this record?",W=/(\}|\#)/ig,X=3,Y=/#/ig,Z='<a class="k-button k-button-icontext #=className#" #=attr# href="\\#"><span class="#=iconClass# #=imageClass#"></span>#=text#</a>',$=h.extend({init:function(a,b){var c=this;h.fn.init.call(c,a,b),c._refreshHandler=p(c.refresh,c),c.setDataSource(b.dataSource),c.wrap()},setDataSource:function(a){var b=this;b.dataSource&&b.dataSource.unbind(E,b._refreshHandler),b.dataSource=a,b.dataSource.bind(E,b._refreshHandler)},options:{name:"VirtualScrollable",itemHeight:a.noop},wrap:function(){var b=this,d=c.support.scrollbar()+1,e=b.element;e.css({width:"auto",paddingRight:d,overflow:"hidden"}),b.content=e.children().first(),b.wrapper=b.content.wrap('<div class="k-virtual-scrollable-wrap"/>').parent().bind("DOMMouseScroll",p(b._wheelScroll,b)).bind("mousewheel",p(b._wheelScroll,b)),c.support.touch&&(b.drag=new c.Drag(b.wrapper,{global:!0,move:function(a){b.verticalScrollbar.scrollTop(b.verticalScrollbar.scrollTop()-a.y.delta),a.preventDefault()}})),b.verticalScrollbar=a('<div class="k-scrollbar k-scrollbar-vertical" />').css({width:d}).appendTo(e).bind("scroll",p(b._scroll,b))},_wheelScroll:function(b){var c=this,d=c.verticalScrollbar.scrollTop(),e=b.originalEvent,f;b.preventDefault(),e.wheelDelta?f=e.wheelDelta:e.detail?f=-e.detail*10:a.browser.opera&&(f=-e.wheelDelta),c.verticalScrollbar.scrollTop(d+ -f)},_scroll:function(a){var b=this,c=a.currentTarget.scrollTop,d=b.dataSource,e=b.itemHeight,f=d.skip()||0,g=b._rangeStart||f,h=b.element.innerHeight(),i=!!(b._scrollbarTop&&b._scrollbarTop>c),j=s.max(s.floor(c/e),0),k=s.max(j+s.floor(h/e),0);b._scrollTop=c-g*e,b._scrollbarTop=c,b._fetch(j,k,i)||(b.wrapper[0].scrollTop=b._scrollTop)},_fetch:function(a,b,c){var d=this,e=d.dataSource,f=d.itemHeight,g=e.take(),h=d._rangeStart||e.skip()||0,i=s.floor(a/g)*g,j=!1,k=.33;a<h?(j=!0,h=s.max(0,b-g),d._scrollTop=(a-h)*f,d._page(h,g)):b>=h+g&&!c?(j=!0,h=a,d._scrollTop=f,d._page(h,g)):d._fetching||(a<i+g-g*k&&a>g&&e.prefetch(i-g,g),b>i+g*k&&e.prefetch(i+g,g));return j},_page:function(a,b){var d=this,e=d.dataSource;clearTimeout(d._timeout),d._fetching=!0,d._rangeStart=a,e.inRange(a,b)?e.range(a,b):(c.ui.progress(d.wrapper.parent(),!0),d._timeout=setTimeout(function(){e.range(a,b)},100))},refresh:function(){var a=this,b="",d=25e4,e=a.dataSource,f=a._rangeStart,g=c.support.scrollbar(),h=a.wrapper[0],i,j,k;c.ui.progress(a.wrapper.parent(),!1),clearTimeout(a._timeout),k=a.itemHeight=a.options.itemHeight()||0;var l=h.scrollWidth>h.offsetWidth?g:0;i=e.total()*k+l;for(j=0;j<s.floor(i/d);j++)b+='<div style="width:1px;height:'+d+'px"></div>';i%d&&(b+='<div style="width:1px;height:'+i%d+'px"></div>'),a.verticalScrollbar.html(b),h.scrollTop=a._scrollTop,a.drag&&a.drag.cancel(),f&&!a._fetching&&(a._rangeStart=e.skip()),a._fetching=!1}}),bb={create:{text:"Add new record",imageClass:"k-add",className:"k-grid-add",iconClass:"k-icon"},cancel:{text:"Cancel changes",imageClass:"k-cancel",className:"k-grid-cancel-changes",iconClass:"k-icon"},save:{text:"Save changes",imageClass:"k-update",className:"k-grid-save-changes",iconClass:"k-icon"},destroy:{text:"Delete",imageClass:"k-delete",className:"k-grid-delete",iconClass:"k-icon"},edit:{text:"Edit",imageClass:"k-edit",className:"k-grid-edit",iconClass:"k-icon"},update:{text:"Update",imageClass:"k-update",className:"k-grid-update",iconClass:"k-icon"},canceledit:{text:"Cancel",imageClass:"k-cancel",className:"k-grid-cancel",iconClass:"k-icon"}},bl=h.extend({init:function(a,b){var d=this;b=n(b)?{dataSource:b}:b,h.fn.init.call(d,a,b),d._element(),d._columns(d.options.columns),d._dataSource(),d._tbody(),d._pageable(),d._thead(),d._groupable(),d._toolbar(),d._setContentHeight(),d._templates(),d._navigatable(),d._selectable(),d._details(),d._editable(),d._attachCustomCommandsEvent(),d.options.autoBind&&d.dataSource.fetch(),c.notify(d)},events:[E,"dataBinding",I,J,K,D,A,B,C,H,O,P,G,F],setDataSource:function(a){var b=this;b.options.dataSource=a,b._dataSource(),b._pageable(),b.options.groupable&&b._groupable(),b._thead(),b.virtualScrollable&&b.virtualScrollable.setDataSource(b.options.dataSource),b.options.autoBind&&a.fetch()},options:{name:"Grid",columns:[],toolbar:null,autoBind:!0,filterable:!1,scrollable:!0,sortable:!1,selectable:!1,navigatable:!1,pageable:!1,editable:!1,groupable:!1,rowTemplate:"",altRowTemplate:"",dataSource:{},height:null,resizable:!1,reorderable:!1,columnMenu:!1},setOptions:function(a){var b=this;h.fn.setOptions.call(this,a),b._templates()},items:function(){return this.tbody.children(":not(.k-grouping-row,.k-detail-row,.k-group-footer)")},_attachCustomCommandsEvent:function(){var a=this,b=a.columns||[],c,d,e;for(d=0,e=b.length;d<e;d++)c=b[d].command,c&&bg(a,a.wrapper,c)},_element:function(){var b=this,c=b.element;c.is("table")||(b.options.scrollable?c=b.element.find("> .k-grid-content > table"):c=b.element.children("table"),c.length||(c=a("<table />").appendTo(b.element))),b.table=c.attr("cellspacing",0),b._wrapper()},_positionColumnResizeHandle:function(b){var c=this,d=c.options.scrollable,e=c.resizeHandle,f;c.thead.on("mousemove","th:not(.k-group-cell,.k-hierarchy-cell)",function(g){var h=a(this),i=h.offset().left+this.offsetWidth;g.clientX>i-X&&g.clientX<i+X?(bd(c.wrapper,h.css("cursor")),e||(e=c.resizeHandle=a('<div class="k-resize-handle"/>'),b.append(e)),f=this.offsetWidth,h.prevAll().each(function(){f+=this.offsetWidth}),e.css({top:d?0:bc(c.wrapper),left:f-X,height:h.outerHeight(),width:X*3}).data("th",h).show()):(bd(c.wrapper,""),e&&e.hide())})},_resizable:function(){var b=this,c=b.options,d,e,f,g,h;c.resizable&&(d=c.scrollable?b.wrapper.find(".k-grid-header-wrap"):b.wrapper,b._positionColumnResizeHandle(d),d.kendoResizable({handle:".k-resize-handle",hint:function(c){return a('<div class="k-grid-resize-indicator" />').css({height:c.data("th").outerHeight()+b.tbody.attr("clientHeight")})},start:function(d){var i=a(d.currentTarget).data("th"),j=a.inArray(i[0],i.parent().children(":visible")),k=b.tbody.parent(),l=b.footer||a();bd(b.wrapper,i.css("cursor")),c.scrollable?h=b.thead.parent().find("col:eq("+j+")").add(k.children("colgroup").find("col:eq("+j+")")).add(l.find("colgroup").find("col:eq("+j+")")):h=k.children("colgroup").find("col:eq("+j+")"),e=d.x.location,f=i.outerWidth(),g=b.tbody.outerWidth()},resize:function(d){var i=f+d.x.location-e,j=b.footer||a();i>10&&(h.css("width",i),c.scrollable&&(b._footerWidth=g+d.x.location-e,b.tbody.parent().add(b.thead.parent()).add(j.find("table")).css("width",b._footerWidth)))},resizeend:function(c){var d=a(c.currentTarget).data("th"),e=d.outerWidth(),g;bd(b.wrapper,""),f!=e&&(g=b.columns[d.parent().find("th:not(.k-group-cell,.k-hierarchy-cell)").index(d)],g.width=e,b.trigger(O,{column:g,oldWidth:f,newWidth:e})),b.resizeHandle.hide()}}))},_draggable:function(){var b=this;b.options.reorderable&&(b._draggableInstance=b.thead.kendoDraggable({group:c.guid(),filter:".k-header:not(.k-group-cell,.k-hierarchy-cell):visible["+c.attr("field")+"]",hint:function(b){return a('<div class="k-header k-drag-clue" />').css({width:b.width(),paddingLeft:b.css("paddingLeft"),paddingRight:b.css("paddingRight"),lineHeight:b.height()+"px",paddingTop:b.css("paddingTop"),paddingBottom:b.css("paddingBottom")}).html(b.attr(c.attr("title"))||b.attr(c.attr("field"))).prepend('<span class="k-icon k-drag-status k-denied" />')}}).data("kendoDraggable"))},_reorderable:function(){var a=this;a.options.reorderable&&a.thead.kendoReorderable({draggable:a._draggableInstance,change:function(b){var c=bh(a.columns)[b.oldIndex];a.trigger(P,{newIndex:b.newIndex,oldIndex:b.oldIndex,column:c}),a.reorderColumn(b.newIndex,c)}})},reorderColumn:function(b,c){var d=this,e=a.inArray(c,d.columns),f=a.inArray(c,bh(d.columns)),g,h,i,j=d.footer||d.wrapper.find(".k-grid-footer");if(e!==b){d.columns.splice(e,1),d.columns.splice(b,0,c),d._templates(),bf(d.thead.prev().find("col:not(.k-group-col,.k-hierarchy-col)"),f,b),d.options.scrollable&&bf(d.tbody.prev().find("col:not(.k-group-col,.k-hierarchy-col)"),f,b),bf(d.thead.find(".k-header:not(.k-group-cell,.k-hierarchy-cell)"),e,b),j&&j.length&&(bf(j.find(".k-grid-footer-wrap>table>colgroup>col:not(.k-group-col,.k-hierarchy-col)"),f,b),bf(j.find(".k-footer-template>td:not(.k-group-cell,.k-hierarchy-cell)"),e,b)),g=d.tbody.children(":not(.k-grouping-row,.k-detail-row)");for(h=0,i=g.length;h<i;h+=1)bf(g.eq(h).find(">td:not(.k-group-cell,.k-hierarchy-cell)"),e,b)}},cellIndex:function(b){return a(b).parent().find("td:not(.k-group-cell,.k-hierarchy-cell)").index(b)},_modelForContainer:function(b){b=a(b),!b.is("tr")&&this._editMode()!=="popup"&&(b=b.closest("tr"));var d=b.attr(c.attr("uid"));return this.dataSource.getByUid(d)},_editable:function(){var b=this,c=b.options.editable,d=function(){var c=document.activeElement,d=b._editContainer;d&&!a.contains(d[0],c)&&d[0]!==c&&!a(c).closest(".k-animation-container").length&&b.editable.end()&&b.closeCell()};if(c){var e=b._editMode();e==="incell"?c.update!==!1&&(b.wrapper.delegate("tr:not(.k-grouping-row) > td:not(.k-hierarchy-cell,.k-detail-cell,.k-group-cell,.k-edit-cell,:has(a.k-grid-delete))",Q,function(c){var d=a(this);d.closest("tbody")[0]===b.tbody[0]&&!a(c.target).is(":input")&&(b.editable?b.editable.end()&&(b.closeCell(),b.editCell(d)):b.editCell(d))}),b.wrapper.bind("focusin",function(a){clearTimeout(b.timer),b.timer=null}),b.wrapper.bind("focusout",function(a){b.timer=setTimeout(d,1)})):c.update!==!1&&b.wrapper.delegate("tbody>tr:not(.k-detail-row,.k-grouping-row):visible a.k-grid-edit",Q,function(c){c.preventDefault(),b.editRow(a(this).closest("tr"))}),c.destroy!==!1&&b.wrapper.delegate("tbody>tr:not(.k-detail-row,.k-grouping-row):visible a.k-grid-delete",Q,function(c){c.preventDefault(),b.removeRow(a(this).closest("tr"))})}},editCell:function(a){var b=this,c=b.columns[b.cellIndex(a)],d=b._modelForContainer(a);d&&(!d.editable||d.editable(c.field))&&!c.command&&c.field&&(b._attachModelChange(d),b._editContainer=a,b.editable=a.addClass("k-edit-cell").kendoEditable({fields:{field:c.field,format:c.format,editor:c.editor,values:c.values},model:d,change:function(c){b.trigger(B,{values:c.values,container:a,model:d})&&c.preventDefault()}}).data("kendoEditable"),a.parent().addClass("k-grid-edit-row"),b.trigger(A,{container:a,model:d}))},_destroyEditable:function(){var a=this;a.editable&&(a._detachModelChange(),a.editable.destroy(),delete a.editable,a._editMode()==="popup"&&a._editContainer.data("kendoWindow").close(),a._editContainer=null)},_attachModelChange:function(a){var b=this;b._modelChangeHandler=function(a){b._modelChange({field:a.field,model:this})},a.bind("change",b._modelChangeHandler)},_detachModelChange:function(){var a=this,b=a._editContainer,c=a._modelForContainer(b);c&&c.unbind(E,a._modelChangeHandler)},closeCell:function(){var b=this,d=b._editContainer.removeClass("k-edit-cell"),e=d.closest("tr").attr(c.attr("uid")),f=b.columns[b.cellIndex(d)],g=b.dataSource.getByUid(e);d.parent().removeClass("k-grid-edit-row"),b._destroyEditable(),b._displayCell(d,f,g),d.hasClass("k-dirty-cell")&&a('<span class="k-dirty"/>').prependTo(d)},_displayCell:function(a,b,d){var e=this,f={storage:{},count:0},g=k({},c.Template,e.options.templateSettings),h=c.template(e._cellTmpl(b,f),g);f.count>0&&(h=p(h,f.storage)),a.empty().html(h(d))},removeRow:function(b){var c=this,d,e;!c._confirmation()||(b=a(b).hide(),d=c._modelForContainer(b),d&&!c.trigger(C,{row:b,model:d})&&(c.dataSource.remove(d),e=c._editMode(),(e==="inline"||e==="popup")&&c.dataSource.sync()))},_editMode:function(){var a="incell",b=this.options.editable;b!==!0&&(typeof b=="string"?a=b:a=b.mode||a);return a},editRow:function(b){var c=this,d=c._modelForContainer(b),e=c._editMode(),f;c.cancelRow(),d&&(c._attachModelChange(d),e==="popup"?c._createPopupEditor(d):e==="inline"?c._createInlineEditor(b,d):e==="incell"&&a(b).children(w).each(function(){var b=a(this),e=c.columns[b.index()];d=c._modelForContainer(b);if(d&&(!d.editable||d.editable(e.field))&&e.field){c.editCell(b);return!1}}),f=c._editContainer,f.delegate("a.k-grid-cancel",Q,function(a){a.preventDefault(),c.cancelRow()}),f.delegate("a.k-grid-update",Q,function(a){a.preventDefault(),c.saveRow()}))},_createPopupEditor:function(b){var d=this,e="<div "+c.attr("uid")+'="'+b.uid+'"><div class="k-edit-form-container">',f,g,h=[],i,l,m,n,o,q,r=d.options.editable,s=j(r)?r.window:{},t=k({},c.Template,d.options.templateSettings);if(r.template){e+=c.template(window.unescape(r.template),t)(b);for(i=0,l=d.columns.length;i<l;i++)f=d.columns[i],f.command&&(g=bm(f.command,"edit"))}else for(i=0,l=d.columns.length;i<l;i++){f=d.columns[i];if(!f.command){e+='<div class="k-edit-label"><label for="'+f.field+'">'+(f.title||f.field||"")+"</label></div>";if((!b.editable||b.editable(f.field))&&f.field)h.push({field:f.field,format:f.format,editor:f.editor,values:f.values}),e+="<div "+c.attr("container-for")+'="'+f.field+'" class="k-edit-field"></div>';else{var u={storage:{},count:0};m=c.template(d._cellTmpl(f,u),t),u.count>0&&(m=p(m,u.storage)),e+='<div class="k-edit-field">'+m(b)+"</div>"}}else f.command&&(g=bm(f.command,"edit"))}g&&j(g)&&(g.text&&j(g.text)&&(n=g.text.update,o=g.text.cancel),g.attr&&(q=g.attr)),e+=d._createButton({name:"update",text:n,attr:q})+d._createButton({name:"canceledit",text:o,attr:q}),e+="</div></div>";var v=d._editContainer=a(e).appendTo(d.wrapper).eq(0).kendoWindow(k({modal:!0,resizable:!1,draggable:!0,title:"Edit",visible:!1},s)),w=v.data("kendoWindow");w.wrapper.delegate(".k-i-close","click",function(){d.cancelRow()}),d.editable=d._editContainer.kendoEditable({fields:h,model:b,clearContainer:!1}).data("kendoEditable"),w.center().open(),d.trigger(A,{container:v,model:b})},_createInlineEditor:function(b,c){var d=this,e,f,g,h=[];b.children(":not(.k-group-cell,.k-hierarchy-cell)").each(function(){f=a(this),e=d.columns[d.cellIndex(f)];if(!e.command&&e.field&&(!c.editable||c.editable(e.field)))h.push({field:e.field,format:e.format,editor:e.editor,values:e.values}),f.attr("data-container-for",e.field),f.empty();else if(e.command){g=bm(e.command,"edit");if(g){f.empty();var b,i,k;j(g)&&(g.text&&j(g.text)&&(b=g.text.update,i=g.text.cancel),g.attr&&(k=g.attr)),a(d._createButton({name:"update",text:b,attr:k})+d._createButton({name:"canceledit",text:i,attr:k})).appendTo(f)}}}),d._editContainer=b,d.editable=b.addClass("k-grid-edit-row").kendoEditable({fields:h,model:c,clearContainer:!1}).data("kendoEditable"),d.trigger(A,{container:b,model:c})},cancelRow:function(){var a=this,b=a._editContainer,d;b&&(d=a._modelForContainer(b),a.dataSource.cancelChanges(d),a._editMode()!=="popup"?a._displayRow(b):a._displayRow(a.items().filter("["+c.attr("uid")+"="+d.uid+"]")),a._destroyEditable())},saveRow:function(){var a=this,b=a._editContainer,c=a._modelForContainer(b),d=a.editable;b&&d&&d.end()&&!a.trigger(B,{container:b,model:c})&&(a._editMode()!=="popup"&&a._displayRow(b),a._destroyEditable(),a.dataSource.sync())},_displayRow:function(b){var c=this,d=c._modelForContainer(b);d&&b.replaceWith(a((b.hasClass("k-alt")?c.altRowTemplate:c.rowTemplate)(d)))},_showMessage:function(a){return window.confirm(a)},_confirmation:function(){var a=this,b=a.options.editable,c=b===!0||typeof b===U?V:b.confirmation;return c!==!1&&c!=null?a._showMessage(c):!0},cancelChanges:function(){this.dataSource.cancelChanges()},saveChanges:function(){var a=this;(a.editable&&a.editable.end()||!a.editable)&&!a.trigger(H)&&a.dataSource.sync()},addRow:function(){var a=this,b,d=a.dataSource,e=a._editMode(),f=a.options.editable.createAt||"",g=d.pageSize(),h=d.view()||[];if(a.editable&&a.editable.end()||!a.editable){e!="incell"&&a.cancelRow(),b=d.indexOf(h[0]),f.toLowerCase()=="bottom"&&(b+=h.length,g&&!d.options.serverPaging&&g<=h.length&&(b-=1)),b<0&&(b=0);var i=d.insert(b,{}),j=i.uid,k=a.table.find("tr["+c.attr("uid")+"="+j+"]"),l=k.children("td:not(.k-group-cell,.k-hierarchy-cell)").first();e!=="inline"&&e!=="popup"||!k.length?l.length&&a.editCell(l):a.editRow(k)}},_toolbar:function(){var b=this,d=b.wrapper,e=b.options.toolbar,f=b.options.editable,g,h;e&&(g=b.wrapper.find(".k-grid-toolbar"),g.length||(e=q(e)?e({}):typeof e===U?e:b._toolbarTmpl(e).replace(Y,"\\#"),h=p(c.template(e),b),g=a('<div class="k-toolbar k-grid-toolbar" />').html(h({})).prependTo(d)),f&&f.create!==!1&&g.delegate(".k-grid-add",Q,function(a){a.preventDefault(),b.addRow()}).delegate(".k-grid-cancel-changes",Q,function(a){a.preventDefault(),b.cancelChanges()}).delegate(".k-grid-save-changes",Q,function(a){a.preventDefault(),b.saveChanges()}))},_toolbarTmpl:function(a){var b=this,c,d,e="";if(n(a))for(c=0,d=a.length;c<d;c++)e+=b._createButton(a[c]);return e},_createButton:function(a){var b=a.template||Z,d=typeof a===U?a:a.name||a.text,e={className:"k-grid-"+d,text:d,imageClass:"",attr:"",iconClass:""};if(!d&&(!j(a)||!a.template))throw new Error("Custom commands should have name specified");j(a)?(a.className&&(a.className+=" "+e.className),d==="edit"&&j(a.text)&&(a=k(!0,{},a),a.text=a.text.edit),a.attr&&j(a.attr)&&(a.attr=ba(a.attr)),e=k(!0,e,bb[d],a)):e=k(!0,e,bb[d]);return c.template(b)(e)},_groupable:function(){var b=this,d=b.wrapper,e=b.options.groupable;b.groupable||b.table.delegate(".k-grouping-row .k-i-collapse, .k-grouping-row .k-i-expand",Q,function(c){var d=a(this),e=d.closest("tr");d.hasClass("k-i-collapse")?b.collapseGroup(e):b.expandGroup(e),c.preventDefault(),c.stopPropagation()}),e&&(d.has("div.k-grouping-header")[0]||a("<div />").addClass("k-grouping-header").html(" ").prependTo(d),b.groupable&&b.groupable.destroy(),b.groupable=new f(d,k({},e,{draggable:b._draggableInstance,groupContainer:">div.k-grouping-header",dataSource:b.dataSource,filter:".k-header:not(.k-group-cell,.k-hierarchy-cell):visible["+c.attr("field")+"]",allowDrag:b.options.reorderable})))},_selectable:function(){var a=this,b,d,e=a.options.selectable;e&&(b=typeof e===U&&e.toLowerCase().indexOf("multiple")>-1,d=typeof e===U&&e.toLowerCase().indexOf("cell")>-1,a.selectable=new c.ui.Selectable(a.table,{filter:">"+(d?x:"tbody>tr:not(.k-grouping-row,.k-detail-row,.k-group-footer)"),multiple:b,change:function(){a.trigger(E)}}),a.options.navigatable&&a.wrapper.keydown(function(c){var e=a.current();c.keyCode===i.SPACEBAR&&c.target==a.wrapper[0]&&!e.hasClass("k-edit-cell")&&(c.preventDefault(),c.stopPropagation(),e=d?e:e.parent(),b?c.ctrlKey?e.hasClass(N)&&(e.removeClass(N),e=null):a.selectable.clear():a.selectable.clear(),a.selectable.value(e))}))},clearSelection:function(){var a=this;a.selectable.clear(),a.trigger(E)},select:function(b){var c=this,d=c.selectable;b=a(b);if(b.length)d.options.multiple||(d.clear(),b=b.first()),d.value(b);else return d.value()},current:function(a){var c=this,d=c.options.scrollable,e=c._current;a!==b&&a.length&&(!e||e[0]!==a[0])&&(a.addClass(L),e&&e.removeClass(L),c._current=a,a.length&&d&&(c._scrollTo(a.parent()[0],c.content[0]),d.virtual?c._scrollTo(a[0],c.content.find(">.k-virtual-scrollable-wrap")[0]):c._scrollTo(a[0],c.content[0])));return c._current},_scrollTo:function(a,b){var c=a.tagName.toLowerCase()==="td",d=a[c?"offsetLeft":"offsetTop"],e=a[c?"offsetWidth":"offsetHeight"],f=b[c?"scrollLeft":"scrollTop"],g=b[c?"clientWidth":"clientHeight"],h=d+e;b[c?"scrollLeft":"scrollTop"]=f>d?d:h>f+g?h-g:f},_navigatable:function(){var b=this,c=b.wrapper,d=b.table.addClass(M),e=p(b.current,b),f="."+M+" "+y,g=a.browser,h=function(d){var f=a(d.currentTarget);f.closest("tbody")[0]===b.tbody[0]&&(e(f),a(d.target).is(":button,a,:input,a>.k-icon,textarea,span.k-icon,.k-input")||setTimeout(function(){c.focus()}),d.stopPropagation())};b.options.navigatable&&(c.bind({focus:function(){var a=b._current;a&&a.is(":visible")?a.addClass(L):e(b.table.find(z))},focusout:function(a){b._current&&b._current.removeClass(L),a.stopPropagation()},keydown:function(f){var h=f.keyCode,j=b.current(),k=f.shiftKey,l=b.dataSource,m=b.options.pageable,n=!a(f.target).is(":button,a,:input,a>.t-icon"),o=b._editMode()=="incell",p,q,r=!1;n&&i.UP===h?(e(j?j.parent().prevAll(v).last().children(":eq("+j.index()+"),:eq(0)").last():d.find(z)),r=!0):n&&i.DOWN===h?(e(j?j.parent().nextAll(v).first().children(":eq("+j.index()+"),:eq(0)").last():d.find(z)),r=!0):n&&i.LEFT===h?(e(j?j.prevAll(w+":first"):d.find(z)),r=!0):n&&i.RIGHT===h?(e(j?j.nextAll(":visible:first"):d.find(z)),r=!0):n&&m&&i.PAGEDOWN==h?(b._current=null,l.page(l.page()+1),r=!0):n&&m&&i.PAGEUP==h?(b._current=null,l.page(l.page()-1),r=!0):b.options.editable&&(j=j?j:d.find(z),i.ENTER==h||i.F2==h?(b._handleEditing(j),r=!0):i.TAB==h&&o?(q=k?j.prevAll(w+":first"):j.nextAll(":visible:first"),q.length||(q=j.parent()[k?"prevAll":"nextAll"]("tr:not(.k-grouping-row,.k-detail-row):visible").children(w+(k?":last":":first"))),q.length&&(b._handleEditing(j,q),r=!0)):i.ESC==h&&b._editContainer&&(b._editContainer.has(j[0])||j[0]===b._editContainer[0])&&(o?b.closeCell():(p=b.items().index(j.parent()),document.activeElement.blur(),b.cancelRow(),p>=0&&b.current(b.items().eq(p).children().filter(w).first())),g.msie&&parseInt(g.version,10)<9&&document.body.focus(),c.focus(),r=!0)),r&&(f.preventDefault(),f.stopPropagation())}}),c.delegate(f,"mousedown",h))},_handleEditing:function(b,c){var d=this,e=d._editMode(),f=d._editContainer,g,h;e=="incell"?h=b.hasClass("k-edit-cell"):h=b.parent().hasClass("k-grid-edit-row");if(d.editable){a.contains(f[0],document.activeElement)&&a(document.activeElement).blur();if(d.editable.end())e=="incell"?d.closeCell():(b.parent()[0]===f[0]?g=d.items().index(b.parent()):g=d.items().index(f),d.saveRow(),d.current(d.items().eq(g).children().filter(w).first()),h=!0);else{e=="incell"?d.current(f):d.current(f.children().filter(w).first()),f.find(":input:visible:first").focus();return}}c&&d.current(c),d.wrapper.focus();if(!h&&!c||c)e=="incell"?d.editCell(d.current()):d.editRow(d.current().parent())},_wrapper:function(){var a=this,b=a.table,c=a.options.height,d=a.element;d.is("div")||(d=d.wrap("<div/>").parent()),a.wrapper=d.addClass("k-grid k-widget").attr(S,s.max(b.attr(S)||0,0)),b.removeAttr(S),c&&(a.wrapper.css(R,c),b.css(R,"auto"))},_tbody:function(){var b=this,c=b.table,d;d=c.find(">tbody"),d.length||(d=a("<tbody/>").appendTo(c)),b.tbody=d},_scrollable:function(){var b=this,d,e,f=b.options,g=f.scrollable,h=c.support.scrollbar();if(g){d=b.wrapper.children(".k-grid-header"),d[0]||(d=a('<div class="k-grid-header" />').insertBefore(b.table)),d.css("padding-right",g.virtual?h+1:h),e=a('<table cellspacing="0" />'),e.append(b.thead),d.empty().append(a('<div class="k-grid-header-wrap" />').append(e)),b.content=b.table.parent(),b.content.is(".k-virtual-scrollable-wrap")&&(b.content=b.content.parent()),b.content.is(".k-grid-content, .k-virtual-scrollable-wrap")||(b.content=b.table.wrap('<div class="k-grid-content" />').parent()),g!==!0&&g.virtual&&!b.virtualScrollable&&(b.virtualScrollable=new $(b.content,{dataSource:b.dataSource,itemHeight:p(b._averageRowHeight,b)})),b.scrollables=d.children(".k-grid-header-wrap");if(g.virtual)b.content.find(">.k-virtual-scrollable-wrap").bind("scroll",function(){b.scrollables.scrollLeft(this.scrollLeft)});else{b.content.bind("scroll",function(){b.scrollables.scrollLeft(this.scrollLeft)});var i=c.touchScroller(b.content);i&&i.movable&&i.movable.bind("change",function(a){b.scrollables.scrollLeft(-a.sender.x)})}}},_setContentHeight:function(){var a=this,b=a.options,d=a.wrapper.innerHeight(),e=a.wrapper.children(".k-grid-header"),f=c.support.scrollbar();if(b.scrollable){d-=e.outerHeight(),a.pager&&(d-=a.pager.element.outerHeight()),b.groupable&&(d-=a.wrapper.children(".k-grouping-header").outerHeight()),b.toolbar&&(d-=a.wrapper.children(".k-grid-toolbar").outerHeight()),a.footerTemplate&&(d-=a.wrapper.children(".k-grid-footer").outerHeight());var g=function(a){var b,c;if(a[0].style.height)return!0;b=a.height(),a.height("auto"),c=a.height();if(b!=c){a.height("");return!0}a.height("");return!1};g(a.wrapper)&&(d>f*2?a.content.height(d):a.content.height(f*2+1))}},_averageRowHeight:function(){var a=this,b=a._rowHeight;a._rowHeight||(a._rowHeight=b=a.table.outerHeight()/a.table[0].rows.length,a._sum=b,a._measures=1);var c=a.table.outerHeight()/a.table[0].rows.length;b!==c&&(a._measures++,a._sum+=c,a._rowHeight=a._sum/a._measures);return b},_dataSource:function(){var a=this,c=a.options,d,f=c.dataSource;f=n(f)?{data:f}:f,j(f)&&(k(f,{table:a.table,fields:a.columns}),d=c.pageable,j(d)&&d.pageSize!==b&&(f.pageSize=d.pageSize)),a.dataSource&&a._refreshHandler?a.dataSource.unbind(E,a._refreshHandler).unbind(t,a._requestStartHandler).unbind(u,a._errorHandler):(a._refreshHandler=p(a.refresh,a),a._requestStartHandler=p(a._requestStart,a),a._errorHandler=p(a._error,a)),a.dataSource=e.create(f).bind(E,a._refreshHandler).bind(t,a._requestStartHandler).bind(u,a._errorHandler)},_error:function(){this._progress(!1)},_requestStart:function(){this._progress(!0)},_modelChange:function(b){var e=this,f=b.model,g=e.tbody.find("tr["+c.attr("uid")+"="+f.uid+"]"),h,i,j=g.hasClass("k-alt"),k,l,m;if(g.children(".k-edit-cell").length&&!e.options.rowTemplate)g.children(":not(.k-group-cell,.k-hierarchy-cell)").each(function(){h=a(this),i=e.columns[e.cellIndex(h)],i.field===b.field&&(h.hasClass("k-edit-cell")?h.addClass("k-dirty-cell"):(e._displayCell(h,i,f),a('<span class="k-dirty"/>').prependTo(h)))});else if(!g.hasClass("k-grid-edit-row")){k=a((j?e.altRowTemplate:e.rowTemplate)(f)),g.replaceWith(k);for(l=0,m=e.columns.length;l<m;l++)i=e.columns[l],i.field===b.field&&(h=k.children(":not(.k-group-cell,.k-hierarchy-cell)").eq(l),a('<span class="k-dirty"/>').prependTo(h));e.trigger("itemChange",{item:k,data:f,ns:d})}},_pageable:function(){var b=this,d,e=b.options.pageable;e&&(d=b.wrapper.children("div.k-grid-pager"),d.length||(d=a('<div class="k-pager-wrap k-grid-pager"/>').appendTo(b.wrapper)),b.pager&&b.pager.destroy(),typeof e=="object"&&e instanceof c.ui.Pager?b.pager=e:b.pager=new c.ui.Pager(d,k({},e,{dataSource:b.dataSource})))},_footer:function(){var b=this,c=b.dataSource.aggregates(),d="",e=b.footerTemplate,f=b.options,g;if(e){c=r(c)?be(b.dataSource.aggregate()):c,d=a(b._wrapFooter(e(c))),g=b.footer||b.wrapper.find(".k-grid-footer");if(g.length){var h=d;g.replaceWith(h),b.footer=h}else f.scrollable?b.footer=f.pageable?d.insertBefore(b.wrapper.children("div.k-grid-pager")):d.appendTo(b.wrapper):b.footer=d.insertBefore(b.tbody);if(f.scrollable){var i=!1;b.scrollables.each(function(){a(this).hasClass("k-grid-footer-wrap")&&(i=!0)}),i||(b.scrollables=b.scrollables.add(b.footer.children(".k-grid-footer-wrap")))}f.resizable&&b._footerWidth&&b.footer.find("table").css("width",b._footerWidth)}},_wrapFooter:function(b){var c=this,d="";if(c.options.scrollable){d=a('<div class="k-grid-footer"><div class="k-grid-footer-wrap"><table cellspacing="0"><tbody>'+b+"</tbody></table></div></div>"),c._appendCols(d.find("table"));return d}return'<tfoot class="k-grid-footer">'+b+"</tfoot>"},_columnMenu:function(){var b=this,d,e=b.columns,f,g=b.options,h=g.columnMenu,i,j,l,m;h&&(typeof h=="boolean"&&(h={}),b.thead.find("th:not(.k-hierarchy-cell,.k-group-cell)").each(function(n){f=e[n],m=a(this),!f.command&&(f.field||m.attr("data-"+c.ns+"field"))&&(d=m.data("kendoColumnMenu"),d&&d.destroy(),j=f.sortable!==!1&&h.sortable!==!1?g.sortable:!1,l=g.filterable&&f.filterable!==!1&&h.filterable!==!1?k({},f.filterable,g.filterable):!1,i={dataSource:b.dataSource,values:f.values,columns:h.columns,sortable:j,filterable:l,messages:h.messages,owner:b},m.kendoColumnMenu(i))}))},_filterable:function(){var b=this,d=b.columns,e,f,g=b.options.filterable;g&&!b.options.columnMenu&&b.thead.find("th:not(.k-hierarchy-cell,.k-group-cell)").each(function(h){e=a(this),d[h].filterable!==!1&&!d[h].command&&(d[h].field||e.attr("data-"+c.ns+"field"))&&(f=e.data("kendoFilterMenu"),f&&f.destroy(),e.kendoFilterMenu(k(!0,{},g,d[h].filterable,{dataSource:b.dataSource,values:d[h].values})))})},_sortable:function(){var b=this,d=b.columns,e,f=b.options.sortable;f&&b.thead.find("th:not(.k-hierarchy-cell,.k-group-cell)").each(function(g){e=d[g],e.sortable!==!1&&!e.command&&e.field&&a(this).attr("data-"+c.ns+"field",e.field).kendoSortable(k({},f,{dataSource:b.dataSource}))})},_columns:function(b){var d=this,e=d.table,f,g=e.find("col"),h=d.options.dataSource;b=b.length?b:l(e.find("th"),function(b,d){b=a(b);var e=b.attr(c.attr("sortable")),f=b.attr(c.attr("filterable")),h=b.attr(c.attr("type")),i=b.attr(c.attr("groupable")),j=b.attr(c.attr("field")),k=b.attr(c.attr("menu"));j||(j=b.text().replace(/\s|[^A-z0-9]/g,""));return{field:j,type:h,sortable:e!=="false",filterable:f!=="false",groupable:i!=="false",menu:k,template:b.attr(c.attr("template")),width:g.eq(d).css("width")}}),f=!(d.table.find("tbody tr").length>0&&(!h||!h.transport)),d.columns=l(b,function(a){a=typeof a===U?{field:a}:a,a.hidden&&(a.attributes=bi(a.attributes),a.footerAttributes=bi(a.footerAttributes),a.headerAttributes=bi(a.headerAttributes));return k({encoded:f},a)})},_tmpl:function(a,b){var d=this,e=k({},c.Template,d.options.templateSettings),f,g=d.columns.length,h,i={storage:{},count:0},j,l,m=d._hasDetails(),n=[],o=d.dataSource.group().length;if(!a){a="<tr",b&&n.push("k-alt"),m&&n.push("k-master-row"),n.length&&(a+=' class="'+n.join(" ")+'"'),g&&(a+=" "+c.attr("uid")+'="#=uid#"'),a+=">",o>0&&(a+=_(o)),m&&(a+='<td class="k-hierarchy-cell"><a class="k-icon k-plus" href="\\#"></a></td>');for(f=0;f<g;f++)j=d.columns[f],h=j.template,l=typeof h,a+="<td"+ba(j.attributes)+">",a+=d._cellTmpl(j,i),a+="</td>";a+="</tr>"}a=c.template(a,e);if(i.count>0)return p(a,i.storage);return a},_headerCellText:function(a){var b=this,d=k({},c.Template,b.options.templateSettings),e=a.headerTemplate,f=typeof e,g=a.title||a.field||"";f===T?g=c.template(e,d)({}):f===U&&(g=e);return g},_cellTmpl:function(a,b){var d=this,e=k({},c.Template,d.options.templateSettings),f=a.template,g=e.paramName,h="",i,l,m=a.format,o=typeof f,p=a.values;if(a.command){if(n(a.command)){for(i=0,l=a.command.length;i<l;i++)h+=d._createButton(a.command[i]);return h.replace(Y,"\\#")}return d._createButton(a.command).replace(Y,"\\#")}o===T?(b.storage["tmpl"+b.count]=f,h+="#=this.tmpl"+b.count+"("+g+")#",b.count++):o===U?h+=f:p&&p.length&&j(p[0])&&"value"in p[0]?(h+="#var v ="+c.stringify(p)+"#",h+="#for (var idx=0,length=v.length;idx<length;idx++) {#",h+="#if (v[idx].value == ",e.useWithBlock||(h+=g+"."),h+=a.field,h+=") { #",h+="${v[idx].text}",h+="#break;#",h+="#}#",h+="#}#"):(h+=a.encoded?"${":"#=",m&&(h+='kendo.format("'+m.replace(W,"\\$1")+'",'),e.useWithBlock||(h+=g+"."),h+=a.field,m&&(h+=")"),h+=a.encoded?"}":"#");return h},_templates:function(){var b=this,c=b.options,d=b.dataSource,e=d.group(),f=d.aggregate();b.rowTemplate=b._tmpl(c.rowTemplate),b.altRowTemplate=b._tmpl(c.altRowTemplate||c.rowTemplate,!0),b._hasDetails()&&(b.detailTemplate=b._detailTmpl(c.detailTemplate||""));if(!r(f)||m(b.columns,function(a){return a.footerTemplate}).length)b.footerTemplate=b._footerTmpl(f,"footerTemplate","k-footer-template");e.length&&m(b.columns,function(a){return a.groupFooterTemplate}).length&&(f=a.map(e,function(a){return a.aggregates}),b.groupFooterTemplate=b._footerTmpl(f,"groupFooterTemplate","k-group-footer"))},_footerTmpl:function(a,b,d){var e=this,f=k({},c.Template,e.options.templateSettings),g=f.paramName,h="",i,j,l=e.columns,m,n,o={},q=0,r={},s=e.dataSource,t=s.group().length,u=be(a),v;h+='<tr class="'+d+'">',t>0&&(h+=_(t)),e._hasDetails()&&(h+='<td class="k-hierarchy-cell"> </td>');for(i=0,j=e.columns.length;i<j;i++)v=l[i],m=v[b],n=typeof m,h+="<td"+ba(v.footerAttributes)+">",m?(n!==T&&(r=u[v.field]?k({},f,{paramName:g+"."+v.field}):{},m=c.template(m,r)),o["tmpl"+q]=m,h+="#=this.tmpl"+q+"("+g+")#",q++):h+=" ",h+="</td>";h+="</tr>",h=c.template(h,f);if(q>0)return p(h,o);return h},_detailTmpl:function(a){var b=this,d="",e=k({},c.Template,b.options.templateSettings),f=e.paramName,g={},h=0,i=b.dataSource.group().length,j=bh(b.columns).length,l=typeof a;d+='<tr class="k-detail-row">',i>0&&(d+=_(i)),d+='<td class="k-hierarchy-cell"></td><td class="k-detail-cell"'+(j?' colspan="'+j+'"':"")+">",l===T?(g["tmpl"+h]=a,d+="#=this.tmpl"+h+"("+f+")#",h++):d+=a,d+="</td></tr>",d=c.template(d,e);if(h>0)return p(d,g);return d},_hasDetails:function(){var a=this;return a.options.detailTemplate!==b||(a._events[D]||[]).length},_details:function(){var b=this;b.table.delegate(".k-hierarchy-cell .k-plus, .k-hierarchy-cell .k-minus",Q,function(c){var d=a(this),e=d.hasClass("k-plus"),f=d.closest("tr.k-master-row"),g,h=b.detailTemplate,i,j=b._hasDetails();d.toggleClass("k-plus",!e).toggleClass("k-minus",e),j&&!f.next().hasClass("k-detail-row")&&(i=b.dataItem(f),a(h(i)).addClass(f.hasClass("k-alt")?"k-alt":"").insertAfter(f),b.trigger(D,{masterRow:f,detailRow:f.next(),data:i,detailCell:f.next().find(".k-detail-cell")})),g=f.next(),b.trigger(e?J:K,{masterRow:f,detailRow:g}),g.toggle(e),c.preventDefault();return!1})},dataItem:function(b){return this._data[this.tbody.find("> tr:not(.k-grouping-row,.k-detail-row,.k-group-footer)").index(a(b))]},expandRow:function(b){a(b).find("> td .k-plus, > td .k-i-expand").click()},collapseRow:function(b){a(b).find("> td .k-minus, > td .k-i-collapse").click()},_thead:function(){var d=this,e=d.columns,f=d._hasDetails()&&e.length,g,h,i="",j=d.table.find(">thead"),k,l,m;j.length||(j=a("<thead/>").insertBefore(d.tbody)),k=d.element.find("tr:has(th):first"),k.length||(k=j.children().first(),k.length||(k=a("<tr/>")));if(!k.children().length){f&&(i+='<th class="k-hierarchy-cell"> </th>');for(g=0,h=e.length;g<h;g++)m=e[g],l=d._headerCellText(m),m.command?i+="<th"+ba(m.headerAttributes)+">"+l+"</th>":(i+="<th "+c.attr("field")+"='"+(m.field||"")+"' ",m.title&&(i+=c.attr("title")+'="'+m.title.replace(/'/g,"'")+'" '),m.groupable!==b&&(i+=c.attr("groupable")+"='"+m.groupable+"' "),m.aggregates&&(i+=c.attr("aggregates")+"='"+m.aggregates+"'"),i+=ba(m.headerAttributes),i+=">"+l+"</th>");k.html(i)}else f&&!k.find(".k-hierarchy-cell")[0]&&k.prepend('<th class="k-hierarchy-cell"> </th>');k.find("th").addClass("k-header"),d.options.scrollable||j.addClass("k-grid-header"),k.appendTo(j),d.thead=j,d._sortable(),d._filterable(),d._scrollable(),d._updateCols(),d._resizable(),d._draggable(),d._reorderable(),d._columnMenu()},_updateCols:function(){var a=this;a._appendCols(a.thead.parent().add(a.table))},_appendCols:function(a){var b=this;bk(a,bh(b.columns),b._hasDetails(),b.dataSource.group().length)},_autoColumns:function(a){if(a&&a.toJSON){var b=this,c;a=a.toJSON();for(c in a)b.columns.push({field:c});b._thead(),b._templates()}},_rowsHtml:function(a){var b=this,c="",d,e,f=b.rowTemplate,g=b.altRowTemplate;for(d=0,e=a.length;d<e;d++)d%2?c+=g(a[d]):c+=f(a[d]),b._data.push(a[d]);return c},_groupRowHtml:function(a,b,d){var e=this,f="",g,h,i=a.field,j=m(e.columns,function(a){return a.field==i})[0]||{},l=j.format?c.format(j.format,a.value):a.value,n=j.groupHeaderTemplate,o=(j.title||i)+": "+l,p=k({},{field:a.field,value:a.value},a.aggregates[a.field]),q=a.items;n&&(o=typeof n===T?n(p):c.template(n)(p)),f+='<tr class="k-grouping-row">'+_(d)+'<td colspan="'+b+'">'+'<p class="k-reset">'+'<a class="k-icon k-i-collapse" href="#"></a>'+o+"</p></td></tr>";if(a.hasSubgroups)for(g=0,h=q.length;g<h;g++)f+=e._groupRowHtml(q[g],b-1,d+1);else f+=e._rowsHtml(q);e.groupFooterTemplate&&(f+=e.groupFooterTemplate(a.aggregates));return f},collapseGroup:function(b){b=a(b).find(".k-icon").addClass("k-i-expand").removeClass("k-i-collapse").end();var c=b.find(".k-group-cell").length,d=1,e,f;b.nextAll("tr").each(function(){f=a(this),e=f.find(".k-group-cell").length,f.hasClass("k-grouping-row")?d++:f.hasClass("k-group-footer")&&d--;if(e<=c||f.hasClass("k-group-footer")&&d<0)return!1;f.hide()})},expandGroup:function(b){b=a(b).find(".k-icon").addClass("k-i-collapse").removeClass("k-i-expand").end();var c=this,d=b.find(".k-group-cell").length,e,f,g=1;b.nextAll("tr").each(function(){e=a(this),f=e.find(".k-group-cell").length;if(f<=d)return!1;f==d+1&&!e.hasClass("k-detail-row")&&(e.show(),e.hasClass("k-grouping-row")&&e.find(".k-icon").hasClass("k-i-collapse")&&c.expandGroup(e),e.hasClass("k-master-row")&&e.find(".k-icon").hasClass("k-minus")&&e.next().show()),e.hasClass("k-grouping-row")&&g++,e.hasClass("k-group-footer")&&(g==1?e.show():g--)})},_updateHeader:function(b){var c=this,d=c.thead.find("th.k-group-cell"),e=d.length;b>e?a(Array(b-e+1).join('<th class="k-group-cell k-header"> </th>')).prependTo(c.thead.find("tr")):b<e&&(e=e-b,a(m(d,function(a,b){return e>b})).remove())},_firstDataItem:function(a,b){a&&b&&(a.hasSubgroups?a=this._firstDataItem(a.items[0],b):a=a.items[0]);return a},hideColumn:function(b){var c=this,d,e,f,g,h,i,j=0,k,l=c.footer||c.wrapper.find(".k-grid-footer"),n=c.columns,p;typeof b=="number"?b=n[b]:b=m(n,function(a){return a.field===b})[0];if(!!b&&!b.hidden){p=o(b,bh(n)),b.hidden=!0,b.attributes=bi(b.attributes),b.footerAttributes=bi(b.footerAttributes),b.headerAttributes=bi(b.headerAttributes),c._templates(),c._updateCols(),c.thead.find(">tr>th:not(.k-hierarchy-cell,.k-group-cell):visible").eq(p).hide(),l&&(c._appendCols(l.find("table:first")),l.find(".k-footer-template>td:not(.k-hierarchy-cell,.k-group-cell):visible").eq(p).hide()),d=c.tbody.children();for(g=0,k=d.length;g<k;g+=1)e=d.eq(g),e.is(".k-grouping-row,.k-detail-row")?(f=e.children(":not(.k-group-cell):first,.k-detail-cell").last(),f.attr("colspan",parseInt(f.attr("colspan"),10)-1)):(e.hasClass("k-grid-edit-row")&&(f=e.children(".k-edit-container")[0])&&(f=a(f),f.attr("colspan",parseInt(f.attr("colspan"),10)-1),f.find("col").eq(p).remove(),e=f.find("tr:first")),e.children(":not(.k-group-cell,.k-hierarchy-cell):visible").eq(p).hide());h=c.thead.prev().find("col");for(g=0,k=h.length;g<k;g+=1){i=h[g].style.width;if(i&&i.indexOf("%")==-1)j+=parseInt(i,10);else{j=0;break}}j&&a(">.k-grid-header table:first,>.k-grid-footer table:first",c.wrapper).add(c.table).width(j),c.trigger(F,{column:b})}},showColumn:function(b){var c=this,d,e,f,g,h,i,j,k,l,n=c.columns,p=c.footer||c.wrapper.find(".k-grid-footer"),q;typeof b=="number"?b=n[b]:b=m(n,function(a){return a.field===b})[0];if(!!b&&!!b.hidden){q=o(b,n),b.hidden=!1,b.attributes=bj(b.attributes),b.footerAttributes=bj(b.footerAttributes),b.headerAttributes=bj(b.headerAttributes),c._templates(),c._updateCols(),c.thead.find(">tr>th:not(.k-hierarchy-cell,.k-group-cell)").eq(q).show(),p&&(c._appendCols(p.find("table:first")),p.find(".k-footer-template>td:not(.k-hierarchy-cell,.k-group-cell)").eq(q).show()),d=c.tbody.children();for(e=0,f=d.length;e<f;e+=1)g=d.eq(e),g.is(".k-grouping-row,.k-detail-row")?(h=g.children(":not(.k-group-cell):first,.k-detail-cell").last(),h.attr("colspan",parseInt(h.attr("colspan"),10)+1)):(g.hasClass("k-grid-edit-row")&&(h=g.children(".k-edit-container")[0])&&(h=a(h),h.attr("colspan",parseInt(h.attr("colspan"),10)+1),bk(h.find(">form>table"),bh(n),!1,0),g=h.find("tr:first")),g.children(":not(.k-group-cell,.k-hierarchy-cell)").eq(q).show());i=a(">.k-grid-header table:first,>.k-grid-footer table:first",c.wrapper).add(c.table);if(!b.width)i.width("");else{j=0,l=c.thead.prev().find("col");for(e=0,f=l.length;e<f;e+=1){k=l[e].style.width;if(k.indexOf("%")>-1){j=0;break}j+=parseInt(k,10)}j&&i.width(j)}c.trigger(G,{column:b})}},_progress:function(a){var b=this,d=b.element.is("table")?b.element.parent():b.content&&b.content.length?b.content:b.element;c.ui.progress(d,a)},refresh:function(b){var c=this,d,e,f="",h=c.dataSource.view(),i,j,k,l=c.current(),m=(c.dataSource.group()||[]).length,n=m+bh(c.columns).length;if(!b||b.action!=="itemchange"||!c.editable){c.trigger("dataBinding"),l&&l.hasClass("k-state-focused")&&(k=c.items().index(l.parent())),c._destroyEditable(),c._progress(!1),c._data=[],c.columns.length||(c._autoColumns(c._firstDataItem(h[0],m)),n=m+c.columns.length),c._group=m>0||c._group,c._group&&(c._templates(),c._updateCols(),c._updateHeader(m),c._group=m>0);if(m>0){c.detailTemplate&&n++;for(e=0,d=h.length;e<d;e++)f+=c._groupRowHtml(h[e],n,0)}else f+=c._rowsHtml(h);g?c.tbody[0].innerHTML=f:(j=document.createElement("div"),j.innerHTML="<table><tbody>"+f+"</tbody></table>",i=j.firstChild.firstChild,c.table[0].replaceChild(i,c.tbody[0]),c.tbody=a(i)),c._footer(),c._setContentHeight(),k>=0&&c.current(c.items().eq(k).children().filter(w).first()),c.trigger(I)}}});d.plugin(bl),d.plugin($)}(jQuery),function(a,b){var c=window.kendo,d="change",e="dataBound",f="dataBinding",g=c.ui.Widget,h=c.keys,i=">*",j="requestStart",k="error",l="k-state-focused",m="k-focusable",n="k-state-selected",o="k-edit-item",p="string",q="edit",r="remove",s="save",t="click",u=a.proxy,v=c.ui.progress,w=c.data.DataSource,x=g.extend({init:function(b,d){var e=this;d=a.isArray(d)?{dataSource:d}:d,g.fn.init.call(e,b,d),d=e.options,e.wrapper=e.element,e._element(),e._dataSource(),e.template=c.template(d.template||""),e.altTemplate=c.template(d.altTemplate||d.template),e.editTemplate=c.template(d.editTemplate||""),e._navigatable(),e._selectable(),e._pageable(),e._crudHandlers(),e.options.autoBind&&e.dataSource.fetch(),c.notify(e)},events:[d,f,e,q,r,s],options:{name:"ListView",autoBind:!0,selectable:!1,navigatable:!1,template:"",altTemplate:"",editTemplate:""},items:function(){return this.element.find(i)},setDataSource:function(a){this.options.dataSource=a,this._dataSource(),this.options.autoBind&&a.fetch()},_dataSource:function(){var a=this;a.dataSource&&a._refreshHandler?a.dataSource.unbind(d,a._refreshHandler).unbind(j,a._requestStartHandler).unbind(k,a._errorHandler):(a._refreshHandler=u(a.refresh,a),a._requestStartHandler=u(a._requestStart,a),a._errorHandler=u(a._error,a)),a.dataSource=w.create(a.options.dataSource).bind(d,a._refreshHandler).bind(j,a._requestStartHandler).bind(k,a._errorHandler)},_requestStart:function(){v(this.element,!0)},_error:function(){v(this.element,!1)},_element:function(){this.element.addClass("k-widget k-listview")},refresh:function(b){var d=this,g=d.dataSource.view(),h,i,j,k="",l,m,n=d.template,o=d.altTemplate;if(b&&b.action==="itemchange")d.editable||(h=b.items[0],l=g.indexOf(h),l>=0&&(j=a(n(h)),d.items().eq(l).replaceWith(j),d.trigger("itemChange",{item:j,data:h})));else{d.trigger(f),d._destroyEditable();for(l=0,m=g.length;l<m;l++)l%2?k+=o(g[l]):k+=n(g[l]);d.element.html(k),i=d.items();for(l=0,m=g.length;l<m;l++)i.eq(l).attr(c.attr("uid"),g[l].uid);d.trigger(e)}},_pageable:function(){var b=this,c=b.options.pageable,d,e;a.isPlainObject(c)&&(e=c.pagerId,d=a.extend({},c,{dataSource:b.dataSource,pagerId:null}),a("#"+e).kendoPager(d))},_selectable:function(){var a=this,b,e,f=a.options.selectable,g=a.options.navigatable;f&&(b=typeof f===p&&f.toLowerCase().indexOf("multiple")>-1,a.selectable=new c.ui.Selectable(a.element,{multiple:b,filter:i,change:function(){a.trigger(d)}}),g&&a.element.keydown(function(c){c.keyCode===h.SPACEBAR&&(e=a.current(),c.preventDefault(),b?c.ctrlKey?e.hasClass(n)&&(e.removeClass(n),e=null):a.selectable.clear():a.selectable.clear(),a.selectable.value(e))}))},current:function(a){var c=this,d=c._current;a!==b&&a.length&&(!d||d[0]!==a[0])&&(a.addClass(l),d&&d.removeClass(l),c._current=a);return c._current},_navigatable:function(){var b=this,c=b.options.navigatable,d=b.element,e=u(b.current,b),f=function(b){e(a(b.currentTarget)),a(b.target).is(":button,a,:input,a>.k-icon,textarea")||d.focus()};c&&(d.attr("tabIndex",Math.max(d.attr("tabIndex")||0,0)),d.bind({focus:function(){var a=b._current;a&&a.is(":visible")?a.addClass(l):e(d.find(i).first())},focusout:function(){b._current&&b._current.removeClass(l)},keydown:function(a){var c=a.keyCode,e=b.current();h.UP===c?b.current(e?e.prev():d.find(i).first()):h.DOWN===c?b.current(e?e.next():d.find(i).first()):h.PAGEUP==c?(b._current=null,b.dataSource.page(b.dataSource.page()-1)):h.PAGEDOWN==c&&(b._current=null,b.dataSource.page(b.dataSource.page()+1))}}),d.addClass(m).delegate("."+m+i,"mousedown",f))},clearSelection:function(){var a=this;a.selectable.clear(),a.trigger(d)},select:function(b){var c=this,d=c.selectable;b=a(b);if(b.length)d.options.multiple||(d.clear(),b=b.first()),d.value(b);else return d.value()},_destroyEditable:function(){var a=this;a.editable&&(a.editable.destroy(),delete a.editable)},_modelFromElement:function(a){var b=a.attr(c.attr("uid"));return this.dataSource.getByUid(b)},_closeEditable:function(b){var d=this,e=d.editable,f,g,h=!0;e&&(b&&(h=e.end()),h&&(f=d._modelFromElement(e.element),g=a(d.template(f)).attr(c.attr("uid"),f.uid),d._destroyEditable(),e.element.replaceWith(g)));return h},edit:function(b){var d=this,e=d._modelFromElement(b),f=a(d.editTemplate(e)).addClass(o);d.cancel(),f.attr(c.attr("uid"),e.uid),b.replaceWith(f),d.editable=f.kendoEditable({model:e,clearContainer:!1,errorTemplate:!1}).data("kendoEditable"),d.trigger(q,{model:e,item:f})},save:function(){var a=this,b=a.editable.element,c=a._modelFromElement(b);!a.trigger(s,{model:c,item:b})&&a._closeEditable(!0)&&a.dataSource.sync()},remove:function(a){var b=this,c=b.dataSource,d=b._modelFromElement(a);b.trigger(r,{model:d,item:a})||(a.hide(),c.remove(d),c.sync())},add:function(){var a=this,b=a.dataSource,c=b.indexOf((b.view()||[])[0]);c<0&&(c=0),a.cancel(),b.insert(c,{}),a.edit(a.element.children().first())},cancel:function(){var a=this,b=a.dataSource;a.editable&&(b.cancelChanges(a._modelFromElement(a.editable.element)),a._closeEditable(!1))},_crudHandlers:function(){var b=this;b.element.on(t,".k-edit-button",function(d){var e=a(this).closest("["+c.attr("uid")+"]");b.edit(e),d.preventDefault()}),b.element.on(t,".k-delete-button",function(d){var e=a(this).closest("["+c.attr("uid")+"]");b.remove(e),d.preventDefault()}),b.element.on(t,".k-update-button",function(a){b.save(),a.preventDefault()}),b.element.on(t,".k-cancel-button",function(a){b.cancel(),a.preventDefault()})}});c.ui.plugin(x)}(jQuery),function(a,b){var c=window.kendo,d=c.Class,e=c.ui.Widget,f=c.support.mobileOS,g=a.extend,h=c.deepExtend,i=c.keys,j=d.extend({init:function(a){var b=this;b.options=a},getHtml:function(){var a=this.options;return c.template(a.template)({cssClass:a.cssClass,tooltip:a.title,initialValue:a.initialValue})}}),k={select:function(a){a.trigger("select",{})},editorWrapperTemplate:'<table cellspacing="4" cellpadding="0" class="k-widget k-editor k-header"><tbody><tr><td class="k-editor-toolbar-wrap"><ul class="k-editor-toolbar"></ul></td></tr><tr><td class="k-editable-area"></td></tr></tbody></table>',buttonTemplate:'<li class="k-editor-button"><a href="" class="k-tool-icon #= cssClass #" unselectable="on" title="#= tooltip #">#= tooltip #</a></li>',colorPickerTemplate:'<li class="k-editor-colorpicker"><div class="k-widget k-colorpicker k-header #= cssClass #"><span class="k-tool-icon"><span class="k-selected-color"></span></span><span class="k-icon k-i-arrow-s"></span></div></li>',comboBoxTemplate:'<li class="k-editor-combobox"><select title="#= tooltip #" class="#= cssClass #"></select></li>',dropDownListTemplate:'<li class="k-editor-selectbox"><select title="#= tooltip #" class="#= cssClass #"></select></li>',focusable:".k-colorpicker,a.k-tool-icon:not(.k-state-disabled),.k-selectbox, .k-combobox .k-input",wrapTextarea:function(b){var c=b.width(),d=b.height(),e=k.editorWrapperTemplate,f=a(e).insertBefore(b).width(c).height(d),g=f.find(".k-editable-area");b.appendTo(g).addClass("k-content k-raw-content").hide();return b.closest(".k-editor")},renderTools:function(b,d){var e={},f,h,i,j=b._nativeTools,l,m,n=a(b.element).closest(".k-editor").find(".k-editor-toolbar");if(d)for(i=0;i<d.length;i++){f=d[i],a.isPlainObject(f)?f.name&&b.tools[f.name]?(a.extend(b.tools[f.name].options,f),e[f.name]=b.tools[f.name],m=e[f.name].options):(m=g({cssClass:"k-i-custom",type:"button",tooltip:""},f),m.name&&(m.cssClass="k-"+(m.name=="custom"?"i-custom":m.name)),m.template||m.type=="button"&&(m.template=k.buttonTemplate)):b.tools[f]&&(e[f]=b.tools[f],m=e[f].options);if(!m)continue;l=m.template,l&&(l.getHtml?l=l.getHtml():(a.isFunction(l)||(l=c.template(l)),l=l(m)),l.indexOf("<li")!==0&&(l="<li class='k-editor-template'>"+l+"</li>"),h=a(l).appendTo(n),m.type=="button"&&m.exec&&h.find(".k-tool-icon").click(a.proxy(m.exec,b.element[0])))}for(i=0;i<j.length;i++)e[j[i]]||(e[j[i]]=b.tools[j[i]]);b.options.tools=e},decorateStyleToolItems:function(b){var d=b.data.closest(".k-editor").find(".k-style").data("kendoSelectBox");if(!!d){var e=d.dataSource.view();d.list.find(".k-item").each(function(d,f){var g=a(f),h=g.text(),i=c.ui.editor.Dom.inlineStyle(b.data.data("kendoEditor").document,"span",{className:e[d].value});g.html('<span unselectable="on" style="display:block;'+i+'">'+h+"</span>")})}},createContentElement:function(b,c){var d,e,f,g=b.closest(".k-rtl").length?"direction:rtl;":"";b.hide(),d=a("<iframe />",{src:'javascript:"<html></html>"',frameBorder:"0"}).css("display","").addClass("k-content").insertBefore(b)[0],e=d.contentWindow||d,c.length>0&&a(d).one("load",b,k.decorateStyleToolItems),f=e.document||d.contentDocument,f.designMode="On",f.open(),f.write("<!DOCTYPE html><html><head><meta charset='utf-8' /><style>html,body{padding:0;margin:0;font-family:Verdana,Geneva,sans-serif;background:#fff;}html{font-size:100%}body{font-size:.75em;line-height:1.5;padding-top:1px;margin-top:-1px;word-wrap: break-word;-webkit-nbsp-mode: space;-webkit-line-break: after-white-space;"+g+"}"+"h1{font-size:2em;margin:.67em 0}h2{font-size:1.5em}h3{font-size:1.16em}h4{font-size:1em}h5{font-size:.83em}h6{font-size:.7em}"+"p{margin:0 0 1em;padding:0 .2em}.k-marker{display:none;}.k-paste-container{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}"+"ul,ol{padding-left:2.5em}"+"a{color:#00a}"+"code{font-size:1.23em}"+"</style>"+a.map(c,function(a){return"<link rel='stylesheet' href='"+a+"'>"}).join("")+"</head><body></body></html>"),f.close();return e},initializeContentElement:function(b){var c=!0;b.window=k.createContentElement(a(b.textarea),b.options.stylesheets),b.document=b.window.contentDocument||b.window.document,b.body=b.document.body,a(b.document).bind({keydown:function(a){if(a.keyCode===i.F10)setTimeout(function(){var a="tabIndex",c=b.wrapper,d=c.attr(a);c.attr(a,d||0).focus().find("li:has("+m+")").first().focus(),!d&&d!==0&&c.removeAttr(a)},100),a.preventDefault();else{var d=b.keyboard.toolFromShortcut(b.options.tools,a);if(d){a.preventDefault(),/undo|redo/.test(d)||b.keyboard.endTyping(!0),b.exec(d);return!1}if(b.keyboard.isTypingKey(a)&&b.pendingFormats.hasPending())if(c)c=!1;else{var e=b.getRange();b.pendingFormats.apply(e),b.selectRange(e)}b.keyboard.clearTimeout(),b.keyboard.keydown(a)}},keyup:function(d){var e=[8,9,33,34,35,36,37,38,39,40,40,45,46];if(a.inArray(d.keyCode,e)>-1||d.keyCode==65&&d.ctrlKey&&!d.altKey&&!d.shiftKey)b.pendingFormats.clear(),l(b);if(b.keyboard.isTypingKey(d)){if(b.pendingFormats.hasPending()){var f=b.getRange();b.pendingFormats.apply(f),b.selectRange(f)}}else c=!0;b.keyboard.keyup(d)},mousedown:function(c){b.pendingFormats.clear();var d=a(c.target);!a.browser.gecko&&c.which==2&&d.is("a[href]")&&window.open(d.attr("href"),"_new")},mouseup:function(){l(b)}}),a(b.window).bind("blur",function(){var a=b.textarea.value,c=b.encodedValue();b.update(),c!=a&&b.trigger("change")}),a(b.body).bind("cut paste",function(a){b.clipboard["on"+a.type](a)})},formatByName:function(b,c){for(var d=0;d<c.length;d++)if(a.inArray(b,c[d].tags)>=0)return c[d]},registerTool:function(a,b){var c=s.fn._tools;c[a]=b,c[a].options&&c[a].options.template&&(c[a].options.template.options.cssClass="k-"+a)},registerFormat:function(a,b){c.ui.Editor.fn.options.formats[a]=b}},l=k.select,m=k.focusable,n=k.wrapTextarea,o=k.renderTools,p=k.initializeContentElement,q={bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",superscript:"Superscript",subscript:"Subscript",justifyCenter:"Center text",justifyLeft:"Align text left",justifyRight:"Align text right",justifyFull:"Justify",insertUnorderedList:"Insert unordered list",insertOrderedList:"Insert ordered list",indent:"Indent",outdent:"Outdent",createLink:"Insert hyperlink",unlink:"Remove hyperlink",insertImage:"Insert image",insertHtml:"Insert HTML",fontName:"Select font family",fontNameInherit:"(inherited font)",fontSize:"Select font size",fontSizeInherit:"(inherited size)",formatBlock:"Format",style:"Styles",emptyFolder:"Empty Folder",uploadFile:"Upload",orderBy:"Arrange by:",orderBySize:"Size",orderByName:"Name",invalidFileType:'The selected file "{0}" is not valid. Supported file types are {1}.',deleteFile:'Are you sure you want to delete "{0}"?',overwriteFile:'A file with name "{0}" already exists in the current directory. Do you want to overwrite it?',directoryNotFound:"A directory with this name was not found."},r=!f||f.ios&&f.flatVersion>=500||!f.ios&&typeof document.documentElement.contentEditable!="undefined",s=e.extend({init:function(b,d){function t(a,b){if(!b.key)return a;var c=a+" (";b.ctrl&&(c+="Ctrl + "),b.shift&&(c+="Shift + "),b.alt&&(c+="Alt + "),c+=b.key+")";return c}function s(b){var c=a.grep(b.className.split(" "),function(a){return!/^k-(widget|tool-icon|state-hover|header|combobox|dropdown|selectbox|colorpicker)$/i.test(a)});return c[0]?c[0].substring(c[0].lastIndexOf("-")+1):"custom"}if(!!r){var f=this,g,j,k=c.ui.editor;e.fn.init.call(f,b,d),f.tools=h({},c.ui.Editor.fn._tools),f.options=h({},f.options,d),b=a(b),b.closest("form").bind("submit",function(){f.update()});for(var l in f.tools)f.tools[l].name=l.toLowerCase();f.textarea=b.attr("autocomplete","off")[0],g=f.wrapper=n(b),o(f,f.options.tools),p(f),f.keyboard=new k.Keyboard([new k.TypingHandler(f),new k.SystemHandler(f)]),f.clipboard=new k.Clipboard(this),f.pendingFormats=new k.PendingFormats(this),f.undoRedoStack=new k.UndoRedoStack,d&&d.value?j=d.value:j=b.val().replace(/[\r\n\v\f\t ]+/ig," "),f.value(j);var u=".k-editor-toolbar > li > *, .k-editor-toolbar > li select",v=".k-editor-button .k-tool-icon",w=v+":not(.k-state-disabled)",x=v+".k-state-disabled";g.find(".k-combobox .k-input").keydown(function(b){var c=a(this).closest(".k-combobox").data("kendoComboBox"),d=b.keyCode;d==i.RIGHT||d==i.LEFT?c.close():d==i.DOWN&&(c.dropDown.isOpened()||(b.stopImmediatePropagation(),c.open()))}),g.delegate(w,"mouseenter",function(){a(this).addClass("k-state-hover")}).delegate(w,"mouseleave",function(){a(this).removeClass("k-state-hover")}).delegate(v,"mousedown",!1).delegate(m,"keydown",function(b){var c=a(this).closest("li"),d="li:has("+m+")",e,g=b.keyCode;if(g==i.RIGHT)e=c.nextAll(d).first().find(m);else if(g==i.LEFT)e=c.prevAll(d).last().find(m);else if(g==i.ESC)e=f;else if(g==i.TAB&&!b.ctrlKey&&!b.altKey)if(b.shiftKey){e=c.prevAll(d).last().find(m);if(e.length)b.preventDefault();else return}else b.preventDefault(),e=c.nextAll(d).first().find(m),e.length||(e=f);e&&e.focus()}).delegate(w,"click",function(a){a.preventDefault(),a.stopPropagation(),f.exec(s(this))}).delegate(x,"click",function(a){a.preventDefault()}).find(u).each(function(){var b=s(this),c=f.options,d=c.tools[b],e=c.messages[b],g=a(this);if(!!d){if(b=="fontSize"||b=="fontName"){var h=c.messages[b+"Inherit"]||q[b+"Inherit"];g.find("input").val(h).end().find("span.k-input").text(h).end()}d.initialize(g,{title:t(e,d),editor:f})}}),f.bind("select",function(){var b=f.getRange(),c=k.RangeUtils.textNodes(b);c.length||(c=[b.startContainer]),g.find(u).each(function(){var b=f.options.tools[s(this)];b&&b.update(a(this),c,f.pendingFormats)})}),a(document).bind("DOMNodeInserted",function(b){var c=f.wrapper;if(a.contains(b.target,c[0])||c[0]==b.target)f.textarea.value=f.value(),c.find("iframe").remove(),p(f)}).bind("mousedown",function(a){try{f.keyboard.isTypingInProgress()&&f.keyboard.endTyping(!0),f.selectionRestorePoint||(f.selectionRestorePoint=new k.RestorePoint(f.getRange()))}catch(a){}}),c.notify(f)}},events:["select","change","execute","error","paste"],options:{name:"Editor",messages:q,formats:{},encoded:!0,stylesheets:[],dialogOptions:{modal:!0,resizable:!1,draggable:!0,animation:!1},fontName:[{text:"Arial",value:"Arial,Helvetica,sans-serif"},{text:"Courier New",value:"'Courier New',Courier,monospace"},{text:"Georgia",value:"Georgia,serif"},{text:"Impact",value:"Impact,Charcoal,sans-serif"},{text:"Lucida Console",value:"'Lucida Console',Monaco,monospace"},{text:"Tahoma",value:"Tahoma,Geneva,sans-serif"},{text:"Times New Roman",value:"'Times New Roman',Times,serif"},{text:"Trebuchet MS",value:"'Trebuchet MS',Helvetica,sans-serif"},{text:"Verdana",value:"Verdana,Geneva,sans-serif"}],fontSize:[{text:"1 (8pt)",value:"xx-small"},{text:"2 (10pt)",value:"x-small"},{text:"3 (12pt)",value:"small"},{text:"4 (14pt)",value:"medium"},{text:"5 (18pt)",value:"large"},{text:"6 (24pt)",value:"x-large"},{text:"7 (36pt)",value:"xx-large"}],formatBlock:[{text:"Paragraph",value:"p"},{text:"Quotation",value:"blockquote"},{text:"Heading 1",value:"h1"},{text:"Heading 2",value:"h2"},{text:"Heading 3",value:"h3"},{text:"Heading 4",value:"h4"},{text:"Heading 5",value:"h5"},{text:"Heading 6",value:"h6"}],tools:["bold","italic","underline","strikethrough","fontName","fontSize","foreColor","backColor","justifyLeft","justifyCenter","justifyRight","justifyFull","insertUnorderedList","insertOrderedList","indent","outdent","formatBlock","createLink","unlink","insertImage"]},_nativeTools:["insertLineBreak","insertParagraph","redo","undo","insertHtml"],_tools:{undo:{options:{key:"Z",ctrl:!0}},redo:{options:{key:"Y",ctrl:!0}}},tools:{},value:function(d){var e=this.body,f=c.ui.editor.Dom;if(d===b)return c.ui.editor.Serializer.domToXhtml(e);this.pendingFormats.clear(),d=(d||"").replace(/<!\[CDATA\[(.*)?\]\]>/g,"<!--[CDATA[$1]]-->").replace(/<script([^>]*)>(.*)?<\/script>/ig,"<telerik:script $1>$2</telerik:script>").replace(/(<\/?img[^>]*>)[\r\n\v\f\t ]+/ig,"$1"),a.browser.msie||(d=d.replace(/<p([^>]*)>(\s*)?<\/p>/ig,'<p $1><br _moz_dirty="" /></p>'));if(a.browser.msie&&parseInt(a.browser.version,10)<9){d="<br/>"+d;var g="originalsrc",h="originalhref";d=d.replace(/href\s*=\s*(?:'|")?([^'">\s]*)(?:'|")?/,h+'="$1"'),d=d.replace(/src\s*=\s*(?:'|")?([^'">\s]*)(?:'|")?/,g+'="$1"'),e.innerHTML=d,f.remove(e.firstChild),a(e).find("telerik\\:script,script,link,img,a").each(function(){var a=this;a[h]&&(a.setAttribute("href",a[h]),a.removeAttribute(h)),a[g]&&(a.setAttribute("src",a[g]),a.removeAttribute(g))})}else e.innerHTML=d,a.browser.msie&&f.normalize(e);this.selectionRestorePoint=null,this.update()},focus:function(){this.window.focus()},update:function(a){this.textarea.value=a||this.options.encoded?this.encodedValue():this.value()},encodedValue:function(){return c.ui.editor.Dom.encode(this.value())},createRange:function(a){return c.ui.editor.RangeUtils.createRange(a||this.document)},getSelection:function(){return c.ui.editor.SelectionUtils.selectionFromDocument(this.document)},selectRange:function(a){this.focus();var b=this.getSelection();b.removeAllRanges(),b.addRange(a)},getRange:function(){var a=this.getSelection(),b=a.rangeCount>0?a.getRangeAt(0):this.createRange(),c=this.document;b.startContainer==c&&b.endContainer==c&&!b.startOffset&&!b.endOffset&&(b.setStart(this.body,0),b.collapse(!0));return b},selectedHtml:function(){return c.ui.editor.Serializer.domToXhtml(this.getRange().cloneContents())},paste:function(a){this.clipboard.paste(a)},exec:function(b,c){var d=this,e,f,h,i="",j;b=b.toLowerCase(),d.keyboard.isTypingInProgress()||(d.focus(),e=d.getRange(),f=d.document.body);for(h in d.options.tools)if(h.toLowerCase()==b){i=d.options.tools[h];break}if(i){e=d.getRange();if(!/undo|redo/i.test(b)&&i.willDelayExecution(e)){j=a.extend({},i),a.extend(j.options,{params:c}),d.pendingFormats.toggle(j),l(d);return}var k=i.command?i.command(g({range:e},c)):null;d.trigger("execute",{name:b,command:k});if(/undo|redo/i.test(b))d.undoRedoStack[b]();else if(k){k.managesUndoRedo||d.undoRedoStack.push(k),k.editor=d,k.exec();if(k.async){k.change=a.proxy(function(){l(d)},d);return}}l(d)}}});c.ui.plugin(s);var t=d.extend({init:function(a){this.options=a},initialize:function(a,b){a.attr({unselectable:"on",title:b.title})},command:function(a){return new this.options.command(a)},update:function(){},willDelayExecution:function(){return!1}});t.exec=function(a,b,c){a.exec(b,{value:c})};var u=t.extend({init:function(a){t.fn.init.call(this,a)},command:function(a){var b=this;return new c.ui.editor.FormatCommand(g(a,{formatter:b.options.formatter}))},update:function(a,b,c){var d=c.isPending(this.name),e=this.options.finder.isFormatted(b),f=d?!e:e;a.toggleClass("k-state-active",f)}});g(c.ui,{editor:{ToolTemplate:j,EditorUtils:k,Tool:t,FormatTool:u}})}(jQuery),function(a){function k(a){var b={},c,d;for(c=0,d=a.length;c<d;c++)b[a[c]]=!0;return b}var b=window.kendo,c=a.map,d=a.extend,e="style",f="float",g="cssFloat",h="styleFloat",i="class",j="k-marker",l=k("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed".split(",")),m="div,p,h1,h2,h3,h4,h5,h6,address,applet,blockquote,button,center,dd,dir,dl,dt,fieldset,form,frameset,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,pre,script,table,tbody,td,tfoot,th,thead,tr,ul".split(","),n=k(m),o="span,em,a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,strike,strong,sub,sup,textarea,tt,u,var".split(","),p=k(o),q=k("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected".split(",")),r=function(a){a.nodeType==1&&a.normalize()};a.browser.msie&&parseInt(a.browser.version,10)>=8&&(r=function(a){if(a.nodeType==1&&a.firstChild){var b=a.firstChild,c=b;for(;;){c=c.nextSibling;if(!c)break;c.nodeType==3&&b.nodeType==3&&(c.nodeValue=b.nodeValue+c.nodeValue,A.remove(b)),b=c}}});var s=/^\s+$/,t=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,u=/&/g,v=/</g,w=/>/g,x=/\u00a0/g,y=/\ufeff/g,z="color,padding-left,padding-right,padding-top,padding-bottom,background-color,background-attachment,background-image,background-position,background-repeat,border-top-style,border-top-width,border-top-color,border-bottom-style,border-bottom-width,border-bottom-color,border-left-style,border-left-width,border-left-color,border-right-style,border-right-width,border-right-color,font-family,font-size,font-style,font-variant,font-weight,line-height".split(","),A={findNodeIndex:function(a){var b=0;for(;;){a=a.previousSibling;if(!a)break;b++}return b},isDataNode:function(a){return a&&a.nodeValue!==null&&a.data!==null},isAncestorOf:function(b,c){try{return!A.isDataNode(b)&&(a.contains(b,A.isDataNode(c)?c.parentNode:c)||c.parentNode==b)}catch(d){return!1}},isAncestorOrSelf:function(a,b){return A.isAncestorOf(a,b)||a==b},findClosestAncestor:function(a,b){if(A.isAncestorOf(a,b))while(b&&b.parentNode!=a)b=b.parentNode;return b},getNodeLength:function(a){return A.isDataNode(a)?a.length:a.childNodes.length},splitDataNode:function(a,b){var c=a.cloneNode(!1);a.deleteData(b,a.length),c.deleteData(0,b),A.insertAfter(c,a)},attrEquals:function(b,c){for(var d in c){var e=b[d];d==f&&(e=b[a.support.cssFloat?g:h]);if(typeof e=="object"){if(!A.attrEquals(e,c[d]))return!1}else if(e!=c[d])return!1}return!0},blockParentOrBody:function(a){return A.parentOfType(a,m)||a.ownerDocument.body},blockParents:function(b){var c=[],d,e;for(d=0,e=b.length;d<e;d++){var f=A.parentOfType(b[d],A.blockElements);f&&a.inArray(f,c)<0&&c.push(f)}return c},windowFromDocument:function(a){return a.defaultView||a.parentWindow},normalize:r,blockElements:m,inlineElements:o,empty:l,fillAttrs:q,toHex:function(a){var b=t.exec(a);if(!b)return a;return"#"+c(b.slice(1),function(a){a=parseInt(a,10).toString(16);return a.length>1?a:"0"+a}).join("")},encode:function(a){return a.replace(u,"&").replace(v,"<").replace(w,">").replace(x," ")},name:function(a){return a.nodeName.toLowerCase()},significantChildNodes:function(b){return a.grep(b.childNodes,function(a){return a.nodeType!=3||!A.isWhitespace(a)})},lastTextNode:function(a){var b=null;if(a.nodeType==3)return a;for(var c=a.lastChild;c;c=c.previousSibling){b=A.lastTextNode(c);if(b)return b}return b},is:function(a,b){return A.name(a)==b},isMarker:function(a){return a.className==j},isWhitespace:function(a){return s.test(a.nodeValue)},isBlock:function(a){return n[A.name(a)]},isEmpty:function(a){return l[A.name(a)]},isInline:function(a){return p[A.name(a)]},scrollTo:function(b){b.ownerDocument.body.scrollTop=a(A.isDataNode(b)?b.parentNode:b).offset().top},insertAt:function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)},insertBefore:function(a,b){return b.parentNode?b.parentNode.insertBefore(a,b):b},insertAfter:function(a,b){return b.parentNode.insertBefore(a,b.nextSibling)},remove:function(a){a.parentNode.removeChild(a)},trim:function(a){for(var b=a.childNodes.length-1;b>=0;b--){var c=a.childNodes[b];A.isDataNode(c)?(c.nodeValue.replace(y,"").length||A.remove(c),A.isWhitespace(c)&&A.insertBefore(c,a)):c.className!=j&&(A.trim(c),!c.childNodes.length&&!A.isEmpty(c)&&A.remove(c))}return a},parentOfType:function(a,b){do a=a.parentNode;while(a&&!A.ofType(a,b));return a},ofType:function(b,c){return a.inArray(A.name(b),c)>=0},changeTag:function(a,b){var c=A.create(a.ownerDocument,b),d=a.attributes,f,g,h,j,k;for(f=0,g=d.length;f<g;f++)k=d[f],k.specified&&(h=k.nodeName,j=k.nodeValue,h==i?c.className=j:h==e?c.style.cssText=a.style.cssText:c.setAttribute(h,j));while(a.firstChild)c.appendChild(a.firstChild);A.insertBefore(c,a),A.remove(a);return c},wrap:function(a,b){A.insertBefore(b,a),b.appendChild(a);return b},unwrap:function(a){var b=a.parentNode;while(a.firstChild)b.insertBefore(a.firstChild,a);b.removeChild(a)},create:function(a,b,c){return A.attr(a.createElement(b),c)},attr:function(a,b){b=d({},b),b&&e in b&&(A.style(a,b.style),delete b.style);return d(a,b)},style:function(b,c){a(b).css(c||{})},unstyle:function(b,c){for(var d in c)d==f&&(d=a.support.cssFloat?g:h),b.style[d]="";b.style.cssText===""&&b.removeAttribute(e)},inlineStyle:function(b,d,e){var f=a(A.create(b,d,e)),g;b.body.appendChild(f[0]),g=c(z,function(b){return a.browser.msie&&b=="line-height"&&f.css(b)=="1px"?"line-height:1.5":b+":"+f.css(b)}).join(";"),f.remove();return g},removeClass:function(b,c){var d=" "+b.className+" ",e=c.split(" "),f,g;for(f=0,g=e.length;f<g;f++)d=d.replace(" "+e[f]+" "," ");d=a.trim(d),d.length?b.className=d:b.removeAttribute(i)},commonAncestor:function(){var a=arguments.length,b=[],c=Infinity,d=null,e,f,g,h,i;if(!a)return null;if(a==1)return arguments[0];for(e=0;e<a;e++){f=[],g=arguments[e];while(g)f.push(g),g=g.parentNode;b.push(f.reverse()),c=Math.min(c,f.length)}if(a==1)return b[0][0];for(e=0;e<c;e++){h=b[0][e];for(i=1;i<a;i++)if(h!=b[i][e])return d;d=h}return d}};b.ui.editor.Dom=A}(jQuery),function(a,b){var c=window.kendo,d=c.ui.editor,e=d.Dom,f=a.extend,g="xx-small,x-small,small,medium,large,x-large,xx-large".split(","),h=/"/g,i=/<br[^>]*>/i,j=/<p><\/p>/i,k={domToXhtml:function(c){function m(b,c){var g=b.nodeType,h,i,j,m,n;if(g==1){h=e.name(b);if(!h||b.attributes._moz_dirty&&e.is(b,"br"))return;i=f[h];if(i){i.start(b),l(b),i.end(b);return}d.push("<"),d.push(h),k(b),e.empty[h]?d.push(" />"):(d.push(">"),l(b,c||e.is(b,"pre")),d.push("</"),d.push(h),d.push(">"))}else if(g==3){m=b.nodeValue;if(!c&&a.support.leadingWhitespace){j=b.parentNode,n=b.previousSibling,n||(n=(e.isInline(j)?j:b).previousSibling);if(!n||n.innerHTML===""||e.isBlock(n))m=m.replace(/^[\r\n\v\f\t ]+/,"");m=m.replace(/ +/," ")}d.push(e.encode(m))}else g==4?(d.push("<![CDATA["),d.push(b.data),d.push("]]>")):g==8&&(b.data.indexOf("[CDATA[")<0?(d.push("<!--"),d.push(b.data),d.push("-->")):(d.push("<!"),d.push(b.data),d.push(">")))}function l(a,b){for(var c=a.firstChild;c;c=c.nextSibling)m(c,b)}function k(c){var f=[],g=c.attributes,i,j,k,l=a.trim;if(e.is(c,"img")){var m=c.style.width,n=c.style.height,o=a(c);m&&(o.attr("width",parseInt(m,10)),e.unstyle(c,{width:b})),n&&(o.attr("height",parseInt(n,10)),e.unstyle(c,{height:b}))}for(j=0,k=g.length;j<k;j++){i=g[j];var p=i.nodeName;(i.specified||p=="value"&&!c.value||p=="type"&&i.nodeValue=="text")&&p.indexOf("_moz")<0&&p!="complete"&&p!="altHtml"&&f.push(i)}if(!!f.length){f.sort(function(a,b){return a.nodeName>b.nodeName?1:a.nodeName<b.nodeName?-1:0});for(j=0,k=f.length;j<k;j++){i=f[j];var q=i.nodeName,r=i.nodeValue;d.push(" "),d.push(q),d.push('="');if(q=="style"){var s=l(r||c.style.cssText).split(";");for(var t=0,u=s.length;t<u;t++){var v=s[t];if(v.length){var w=v.split(":"),x=l(w[0].toLowerCase()),y=l(w[1]);if(x=="font-size-adjust"||x=="font-stretch")continue;x.indexOf("color")>=0&&(y=e.toHex(y)),x.indexOf("font")>=0&&(y=y.replace(h,"'")),d.push(x),d.push(":"),d.push(y),d.push(";")}}}else q=="src"||q=="href"?d.push(c.getAttribute(q,2)):d.push(e.fillAttrs[q]?q:r);d.push('"')}}}var d=[],f={"telerik:script":{start:function(a){d.push("<script"),k(a),d.push(">")},end:function(){d.push("</script>")}},b:{start:function(){d.push("<strong>")},end:function(){d.push("</strong>")}},i:{start:function(){d.push("<em>")},end:function(){d.push("</em>")}},u:{start:function(){d.push('<span style="text-decoration:underline;">')},end:function(){d.push("</span>")}},iframe:{start:function(a){d.push("<iframe"),k(a),d.push(">")},end:function(){d.push("</iframe>")}},font:{start:function(a){d.push('<span style="');var b=a.getAttribute("color"),c=g[a.getAttribute("size")],f=a.getAttribute("face");b&&(d.push("color:"),d.push(e.toHex(b)),d.push(";")),f&&(d.push("font-face:"),d.push(f),d.push(";")),c&&(d.push("font-size:"),d.push(c),d.push(";")),d.push('">')},end:function(a){d.push("</span>")}}};l(c),d=d.join("");if(d.replace(i,"").replace(j,"")==="")return"";return d}};f(d,{Serializer:k})}(jQuery),function(a){function t(a,b,c){var d=f.create(b.ownerDocument,"a"),e=a.duplicate();e.collapse(c);var g=e.parentElement();do g.insertBefore(d,d.previousSibling),e.moveToElementText(d);while(e.compareEndPoints(c?"StartToStart":"StartToEnd",a)>0&&d.previousSibling);e.setEndPoint(c?"EndToStart":"EndToEnd",a);var i=d.nextSibling;i?(f.remove(d),h(i)?b[c?"setStart":"setEnd"](i,e.text.length):b[c?"setStartBefore":"setEndBefore"](i)):(i=d.previousSibling,i&&h(i)?(b.setEnd(i,i.nodeValue.length),f.remove(d)):(b.selectNodeContents(g),f.remove(d),b.endOffset-=1))}function s(a,b,c){var d=b[c?"startContainer":"endContainer"],e=b[c?"startOffset":"endOffset"],g=0,i=h(d)?d:d.childNodes[e]||null,j=h(d)?d.parentNode:d;if(d.nodeType==3||d.nodeType==4)g=e;var k=j.insertBefore(f.create(b.ownerDocument,"a"),i),l=b.ownerDocument.body.createTextRange();l.moveToElementText(k),f.remove(k),l[c?"moveStart":"moveEnd"]("character",g),l.collapse(!1),a.setEndPoint(c?"StartToStart":"EndToStart",l)}function p(a){a.collapsed=a.startContainer==a.endContainer&&a.startOffset==a.endOffset;var b=a.startContainer;while(b&&b!=a.endContainer&&!f.isAncestorOf(b,a.endContainer))b=b.parentNode;a.commonAncestorContainer=b}function o(a,b){function c(a){try{return n(a.startContainer,a.endContainer,a.startOffset,a.endOffset)<0}catch(b){return!0}}c(a)&&(b?(a.commonAncestorContainer=a.endContainer=a.startContainer,a.endOffset=a.startOffset):(a.commonAncestorContainer=a.startContainer=a.endContainer,a.startOffset=a.endOffset),a.collapsed=!0)}function n(a,b,c,d){if(a==b)return d-c;var e=b;while(e&&e.parentNode!=a)e=e.parentNode;if(e)return g(e)-c;e=a;while(e&&e.parentNode!=b)e=e.parentNode;if(e)return d-g(e)-1;var h=f.commonAncestor(a,b),i=a;while(i&&i.parentNode!=h)i=i.parentNode;i||(i=h);var j=b;while(j&&j.parentNode!=h)j=j.parentNode;j||(j=h);if(i==j)return 0;return g(j)-g(i)}var b=window.kendo,c=b.Class,d=a.extend,e=b.ui.editor,f=e.Dom,g=f.findNodeIndex,h=f.isDataNode,i=f.findClosestAncestor,j=f.getNodeLength,k=f.normalize,l={selectionFromWindow:function(b){if(a.browser.msie&&a.browser.version<9)return new r(b.document);return b.getSelection()},selectionFromRange:function(a){var b=y.documentFromRange(a);return l.selectionFromDocument(b)},selectionFromDocument:function(a){return l.selectionFromWindow(f.windowFromDocument(a))}},m=c.extend({init:function(b){a.extend(this,{ownerDocument:b,startContainer:b,endContainer:b,commonAncestorContainer:b,startOffset:0,endOffset:0,collapsed:!0})},setStart:function(a,b){this.startContainer=a,this.startOffset=b,p(this),o(this,!0)},setEnd:function(a,b){this.endContainer=a,this.endOffset=b,p(this),o(this,!1)},setStartBefore:function(a){this.setStart(a.parentNode,g(a))},setStartAfter:function(a){this.setStart(a.parentNode,g(a)+1)},setEndBefore:function(a){this.setEnd(a.parentNode,g(a))},setEndAfter:function(a){this.setEnd(a.parentNode,g(a)+1)},selectNode:function(a){this.setStartBefore(a),this.setEndAfter(a)},selectNodeContents:function(a){this.setStart(a,0),this.setEnd(a,a[a.nodeType===1?"childNodes":"nodeValue"].length)},collapse:function(a){var b=this;a?b.setEnd(b.startContainer,b.startOffset):b.setStart(b.endContainer,b.endOffset)},deleteContents:function(){var a=this,b=a.cloneRange();a.startContainer!=a.commonAncestorContainer&&a.setStartAfter(i(a.commonAncestorContainer,a.startContainer)),a.collapse(!0),function c(a){while(a.next())a.hasPartialSubtree()?c(a.getSubtreeIterator()):a.remove()}(new q(b))},cloneContents:function(){var a=y.documentFromRange(this);return function b(c){var d,e=a.createDocumentFragment();while(d=c.next())d=d.cloneNode(!c.hasPartialSubtree()),c.hasPartialSubtree()&&d.appendChild(b(c.getSubtreeIterator())),e.appendChild(d);return e}(new q(this))},extractContents:function(){var a=this,b=a.cloneRange();a.startContainer!=a.commonAncestorContainer&&a.setStartAfter(i(a.commonAncestorContainer,a.startContainer)),a.collapse(!0);var c=y.documentFromRange(a);return function d(b){var e,f=c.createDocumentFragment();while(e=b.next())b.hasPartialSubtree()?(e=e.cloneNode(!1),e.appendChild(d(b.getSubtreeIterator()))):b.remove(a.originalRange),f.appendChild(e);return f}(new q(b))},insertNode:function(a){var b=this;h(b.startContainer)?(b.startOffset!=b.startContainer.nodeValue.length&&f.splitDataNode(b.startContainer,b.startOffset),f.insertAfter(a,b.startContainer)):f.insertAt(b.startContainer,a,b.startOffset),b.setStart(b.startContainer,b.startOffset)},cloneRange:function(){return a.extend(new m(this.ownerDocument),{startContainer:this.startContainer,endContainer:this.endContainer,commonAncestorContainer:this.commonAncestorContainer,startOffset:this.startOffset,endOffset:this.endOffset,collapsed:this.collapsed,originalRange:this})},toString:function(){var a=this.startContainer.nodeName,b=this.endContainer.nodeName;return[a=="#text"?this.startContainer.nodeValue:a,"(",this.startOffset,") : ",b=="#text"?this.endContainer.nodeValue:b,"(",this.endOffset,")"].join("")}}),q=c.extend({init:function(b){a.extend(this,{range:b,_current:null,_next:null,_end:null});if(!b.collapsed){var c=b.commonAncestorContainer;this._next=b.startContainer==c&&!h(b.startContainer)?b.startContainer.childNodes[b.startOffset]:i(c,b.startContainer),this._end=b.endContainer==c&&!h(b.endContainer)?b.endContainer.childNodes[b.endOffset]:i(c,b.endContainer).nextSibling}},hasNext:function(){return!!this._next},next:function(){var a=this,b=a._current=a._next;a._next=a._current&&a._current.nextSibling!=a._end?a._current.nextSibling:null,h(a._current)&&(a.range.endContainer==a._current&&(b=b.cloneNode(!0),b.deleteData(a.range.endOffset,b.length-a.range.endOffset)),a.range.startContainer==a._current&&(b=b.cloneNode(!0),b.deleteData(0,a.range.startOffset)));return b},traverse:function(a){function d(){b._current=b._next,b._next=b._current&&b._current.nextSibling!=b._end?b._current.nextSibling:null;return b._current}var b=this,c;while(c=d())b.hasPartialSubtree()?b.getSubtreeIterator().traverse(a):a(c);return c},remove:function(a){var b=this,c=b.range.startContainer==b._current,d=b.range.endContainer==b._current,e,i,j;if(h(b._current)&&(c||d))e=c?b.range.startOffset:0,i=d?b.range.endOffset:b._current.length,j=i-e,a&&(c||d)&&(b._current==a.startContainer&&e<=a.startOffset&&(a.startOffset-=j),b._current==a.endContainer&&i<=a.endOffset&&(a.endOffset-=j)),b._current.deleteData(e,j);else{var k=b._current.parentNode;if(a&&(b.range.startContainer==k||b.range.endContainer==k)){var l=g(b._current);k==a.startContainer&&l<=a.startOffset&&(a.startOffset-=1),k==a.endContainer&&l<a.endOffset&&(a.endOffset-=1)}f.remove(b._current)}},hasPartialSubtree:function(){return!h(this._current)&&(f.isAncestorOrSelf(this._current,this.range.startContainer)||f.isAncestorOrSelf(this._current,this.range.endContainer))},getSubtreeIterator:function(){var a=this,b=a.range.cloneRange();b.selectNodeContents(a._current),f.isAncestorOrSelf(a._current,a.range.startContainer)&&b.setStart(a.range.startContainer,a.range.startOffset),f.isAncestorOrSelf(a._current,a.range.endContainer)&&b.setEnd(a.range.endContainer,a.range.endOffset);return new q(b)}}),r=c.extend({init:function(a){this.ownerDocument=a,this.rangeCount=1},addRange:function(a){var b=this.ownerDocument.body.createTextRange();s(b,a,!1),s(b,a,!0),b.select()},removeAllRanges:function(){this.ownerDocument.selection.empty()},getRangeAt:function(){var a,b=new m(this.ownerDocument),c=this.ownerDocument.selection,d;try{a=c.createRange(),d=a.item?a.item(0):a.parentElement();if(d.ownerDocument!=this.ownerDocument)return b}catch(e){return b}if(c.type=="Control")b.selectNode(a.item(0));else{t(a,b,!0),t(a,b,!1),b.startContainer.nodeType==9&&b.setStart(b.endContainer,b.startOffset),b.endContainer.nodeType==9&&b.setEnd(b.startContainer,b.endOffset),a.compareEndPoints("StartToEnd",a)===0&&b.collapse(!1);var f=b.startContainer,i=b.endContainer,k=this.ownerDocument.body;if(!b.collapsed&&b.startOffset===0&&b.endOffset==j(b.endContainer)&&(f!=i||!h(f)||f.parentNode!=k)){var l=!1,n=!1;while(g(f)===0&&f==f.parentNode.firstChild&&f!=k)f=f.parentNode,l=!0;while(g(i)==j(i.parentNode)-1&&i==i.parentNode.lastChild&&i!=k)i=i.parentNode,n=!0;f==k&&i==k&&l&&n&&(b.setStart(f,0),b.setEnd(i,j(k)))}}return b}}),u=c.extend({init:function(a){this.enumerate=function(){function c(a){if(f.is(a,"img")||a.nodeType==3&&!f.isWhitespace(a))b.push(a);else{a=a.firstChild;while(a)c(a),a=a.nextSibling}}var b=[];(new q(a)).traverse(c);return b}}}),v=c.extend({init:function(a){var b=this;b.range=a,b.rootNode=y.documentFromRange(a),b.body=b.rootNode.body,b.html=b.body.innerHTML,b.startContainer=b.nodeToPath(a.startContainer),b.endContainer=b.nodeToPath(a.endContainer),b.startOffset=b.offset(a.startContainer,a.startOffset),b.endOffset=b.offset(a.endContainer,a.endOffset)},index:function(a){var b=0,c=a.nodeType;while(a=a.previousSibling){var d=a.nodeType;(d!=3||c!=d)&&b++,c=d}return b},offset:function(a,b){if(a.nodeType==3)while((a=a.previousSibling)&&a.nodeType==3)b+=a.nodeValue.length;return b},nodeToPath:function(a){var b=[];while(a!=this.rootNode)b.push(this.index(a)),a=a.parentNode;return b},toRangePoint:function(a,b,c,d){var e=this.rootNode,f=c.length,g=d;while(f--)e=e.childNodes[c[f]];while(e.nodeType==3&&e.nodeValue.length<g)g-=e.nodeValue.length,e=e.nextSibling;a[b?"setStart":"setEnd"](e,g)},toRange:function(){var a=this,b=a.range.cloneRange();a.toRangePoint(b,!0,a.startContainer,a.startOffset),a.toRangePoint(b,!1,a.endContainer,a.endOffset);return b}}),w=c.extend({init:function(){this.caret=null},addCaret:function(a){var b=this;b.caret=f.create(y.documentFromRange(a),"span",{className:"k-marker"}),a.insertNode(b.caret),a.selectNode(b.caret);return b.caret},removeCaret:function(b){var c=this,d=c.caret.previousSibling,e=0;d&&(e=h(d)?d.nodeValue.length:g(d));var i=c.caret.parentNode,j=d?g(d):0;f.remove(c.caret),k(i);var l=i.childNodes[j];if(h(l))b.setStart(l,e);else if(l){var m=f.lastTextNode(l);m?b.setStart(m,m.nodeValue.length):b[d?"setStartAfter":"setStartBefore"](l)}else!a.browser.msie&&!i.innerHTML&&(i.innerHTML='<br _moz_dirty="" />'),b.selectNodeContents(i);b.collapse(!0)},add:function(a,b){var c=this;b&&a.collapsed&&(c.addCaret(a),a=y.expand(a));var d=a.cloneRange();d.collapse(!1),c.end=f.create(y.documentFromRange(a),"span",{className:"k-marker"}),d.insertNode(c.end),d=a.cloneRange(),d.collapse(!0),c.start=c.end.cloneNode(!0),d.insertNode(c.start),a.setStartBefore(c.start),a.setEndAfter(c.end),k(a.commonAncestorContainer);return a},remove:function(a){var b=this,c=b.start,d=b.end,e,i,j;k(a.commonAncestorContainer);while(!c.nextSibling&&c.parentNode)c=c.parentNode;while(!d.previousSibling&&d.parentNode)d=d.parentNode;e=c.previousSibling&&c.previousSibling.nodeType==3&&c.nextSibling&&c.nextSibling.nodeType==3,i=d.previousSibling&&d.previousSibling.nodeType==3&&d.nextSibling&&d.nextSibling.nodeType==3,j=e&&i,c=c.nextSibling,d=d.previousSibling;var l=!1,m=!1;c==b.end&&(m=!!b.start.previousSibling,c=d=b.start.previousSibling||b.end.nextSibling,l=!0),f.remove(b.start),f.remove(b.end);if(!c||!d)a.selectNodeContents(a.commonAncestorContainer),a.collapse(!0);else{var n=l?h(c)?c.nodeValue.length:c.childNodes.length:0,o=h(d)?d.nodeValue.length:d.childNodes.length;if(c.nodeType==3)while(c.previousSibling&&c.previousSibling.nodeType==3)c=c.previousSibling,n+=c.nodeValue.length;if(d.nodeType==3)while(d.previousSibling&&d.previousSibling.nodeType==3)d=d.previousSibling,o+=d.nodeValue.length;var p=g(c),q=c.parentNode,r=g(d),s=d.parentNode;for(var t=c;t.previousSibling;t=t.previousSibling)t.nodeType==3&&t.previousSibling.nodeType==3&&p--;for(var u=d;u.previousSibling;u=u.previousSibling)u.nodeType==3&&u.previousSibling.nodeType==3&&r--;k(q),c.nodeType==3&&(c=q.childNodes[p]),k(s),d.nodeType==3&&(d=s.childNodes[r]),l?(c.nodeType==3?a.setStart(c,n):a[m?"setStartAfter":"setStartBefore"](c),a.collapse(!0)):(c.nodeType==3?a.setStart(c,n):a.setStartBefore(c),d.nodeType==3?a.setEnd(d,o):a.setEndAfter(d)),b.caret&&b.removeCaret(a)}}}),x=/[\u0009-\u000d]|\u0020|\u00a0|\ufeff|\.|,|;|:|!|\(|\)|\?/,y={nodes:function(a){var b=y.textNodes(a);b.length||(a.selectNodeContents(a.commonAncestorContainer),b=y.textNodes(a),b.length||(b=f.significantChildNodes(a.commonAncestorContainer)));return b},textNodes:function(a){return(new u(a)).enumerate()},documentFromRange:function(a){var b=a.startContainer;return b.nodeType==9?b:b.ownerDocument},createRange:function(b){if(a.browser.msie&&a.browser.version<9)return new m(b);return b.createRange()},selectRange:function(a){var b=y.image(a);b&&(a.setStartAfter(b),a.setEndAfter(b));var c=l.selectionFromRange(a);c.removeAllRanges(),c.addRange(a)},split:function(a,b,c){function d(d){var e=a.cloneRange();e.collapse(d),e[d?"setStartBefore":"setEndAfter"](b);var g=e.extractContents();c&&(g=f.trim(g)),f[d?"insertBefore":"insertAfter"](g,b)}d(!0),d(!1)},getMarkers:function(a){var b=[];(new q(a)).traverse(function(a){a.className=="k-marker"&&b.push(a)});return b},image:function(a){var b=[];(new q(a)).traverse(function(a){f.is(a,"img")&&b.push(a)});if(b.length==1)return b[0]},expand:function(a){var b=a.cloneRange(),c=b.startContainer.childNodes[b.startOffset===0?0:b.startOffset-1],d=b.endContainer.childNodes[b.endOffset];if(!h(c)||!h(d))return b;var e=c.nodeValue,f=d.nodeValue;if(!e||!f)return b;var g=e.split("").reverse().join("").search(x),i=f.search(x);if(!g||!i)return b;i=i==-1?f.length:i,g=g==-1?0:e.length-g,b.setStart(c,g),b.setEnd(d,i);return b},isExpandable:function(a){var b=a.startContainer,c=y.documentFromRange(a);if(b==c||b==c.body)return!1;var d=a.cloneRange(),e=b.nodeValue;if(!e)return!1;var f=e.substring(0,d.startOffset),g=e.substring(d.startOffset),h=0,i=0;f&&(h=f.split("").reverse().join("").search(x)),g&&(i=g.search(x));return h&&i}};d(e,{SelectionUtils:l,W3CRange:m,RangeIterator:q,W3CSelection:r,RangeEnumerator:u,RestorePoint:v,Marker:w,RangeUtils:y})}(jQuery),function(a){var b=window.kendo,c=b.Class,d=b.ui.editor,e=d.EditorUtils,f=e.registerTool,g=d.Dom,h=d.RangeUtils,i=h.selectRange,j=d.Tool,k=d.ToolTemplate,l=d.RestorePoint,m=d.Marker,n=a.extend,o=c.extend({init:function(a){var b=this;b.options=a,b.restorePoint=new l(a.range),b.marker=new m,b.formatter=a.formatter},getRange:function(){return this.restorePoint.toRange()},lockRange:function(a){return this.marker.add(this.getRange(),a)},releaseRange:function(a){this.marker.remove(a),i(a)},undo:function(){var a=this.restorePoint;a.body.innerHTML=a.html,i(a.toRange())},redo:function(){this.exec()},exec:function(){var a=this,b=a.lockRange(!0);a.formatter.editor=a.editor,a.formatter.toggle(b),a.releaseRange(b)}}),p=c.extend({init:function(a,b){this.body=a.body,this.startRestorePoint=a,this.endRestorePoint=b},redo:function(){this.body.innerHTML=this.endRestorePoint.html,i(this.endRestorePoint.toRange())},undo:function(){this.body.innerHTML=this.startRestorePoint.html,i(this.startRestorePoint.toRange())}}),q=o.extend({init:function(a){o.fn.init.call(this,a),this.managesUndoRedo=!0},exec:function(){var a=this.editor,b=a.getRange(),c=new l(b);a.clipboard.paste(this.options.value||""),a.undoRedoStack.push(new p(c,new l(a.getRange()))),a.focus()}}),r=j.extend({initialize:function(a,b){var c=b.editor;new d.SelectBox(a,{dataSource:c.options.insertHtml||[],dataTextField:"text",dataValueField:"value",change:function(a){j.exec(c,"insertHtml",this.value())},title:c.options.messages.insertHtml,highlightFirst:!1})},command:function(a){return new q(a)},update:function(a,b){var c=a.data("kendoSelectBox")||a.find("select").data("kendoSelectBox");c.close(),c.value(c.options.title)}}),s=c.extend({init:function(){this.stack=[],this.currentCommandIndex=-1},push:function(a){var b=this;b.stack=b.stack.slice(0,b.currentCommandIndex+1),b.currentCommandIndex=b.stack.push(a)-1},undo:function(){this.canUndo()&&this.stack[this.currentCommandIndex--].undo()},redo:function(){this.canRedo()&&this.stack[++this.currentCommandIndex].redo()},canUndo:function(){return this.currentCommandIndex>=0},canRedo:function(){return this.currentCommandIndex!=this.stack.length-1}}),t=c.extend({init:function(a){this.editor=a},keydown:function(a){var b=this,c=b.editor,d=c.keyboard,e=d.isTypingKey(a);if(e&&!d.isTypingInProgress()){var f=c.getRange();b.startRestorePoint=new l(f),d.startTyping(function(){c.selectionRestorePoint=b.endRestorePoint=new l(c.getRange()),c.undoRedoStack.push(new p(b.startRestorePoint,b.endRestorePoint))});return!0}return!1},keyup:function(a){var b=this.editor.keyboard;if(b.isTypingInProgress()){b.endTyping();return!0}return!1}}),u=c.extend({init:function(a){this.editor=a,this.systemCommandIsInProgress=!1},createUndoCommand:function(){var a=this;a.endRestorePoint=new l(a.editor.getRange()),a.editor.undoRedoStack.push(new p(a.startRestorePoint,a.endRestorePoint)),a.startRestorePoint=a.endRestorePoint},changed:function(){if(this.startRestorePoint)return this.startRestorePoint.html!=this.editor.body.innerHTML;return!1},keydown:function(a){var b=this,c=b.editor,d=c.keyboard;if(d.isModifierKey(a)){d.isTypingInProgress()&&d.endTyping(!0),b.startRestorePoint=new l(c.getRange());return!0}if(d.isSystem(a)){b.systemCommandIsInProgress=!0,b.changed()&&(b.systemCommandIsInProgress=!1,b.createUndoCommand());return!0}return!1},keyup:function(a){var b=this;if(b.systemCommandIsInProgress&&b.changed()){b.systemCommandIsInProgress=!1,b.createUndoCommand(a);return!0}return!1}}),v=c.extend({init:function(a){this.handlers=a,this.typingInProgress=!1},isCharacter:function(a){return a>=48&&a<=90||a>=96&&a<=111||a>=186&&a<=192||a>=219&&a<=222},toolFromShortcut:function(b,c){var d=String.fromCharCode(c.keyCode),e,f;for(e in b){f=a.extend({ctrl:!1,alt:!1,shift:!1},b[e].options);if((f.key==d||f.key==c.keyCode)&&f.ctrl==c.ctrlKey&&f.alt==c.altKey&&f.shift==c.shiftKey)return e}},isTypingKey:function(a){var b=a.keyCode;return this.isCharacter(b)&&!a.ctrlKey&&!a.altKey||b==32||b==13||b==8||b==46&&!a.shiftKey&&!a.ctrlKey&&!a.altKey},isModifierKey:function(a){var b=a.keyCode;return b==17&&!a.shiftKey&&!a.altKey||b==16&&!a.ctrlKey&&!a.altKey||b==18&&!a.ctrlKey&&!a.shiftKey},isSystem:function(a){return a.keyCode==46&&a.ctrlKey&&!a.altKey&&!a.shiftKey},startTyping:function(a){this.onEndTyping=a,this.typingInProgress=!0},stopTyping:function(){this.typingInProgress=!1,this.onEndTyping&&this.onEndTyping()},endTyping:function(b){var c=this;c.clearTimeout(),b?c.stopTyping():c.timeout=window.setTimeout(a.proxy(c.stopTyping,c),1e3)},isTypingInProgress:function(){return this.typingInProgress},clearTimeout:function(){window.clearTimeout(this.timeout)},notify:function(a,b){var c,d=this.handlers;for(c=0;c<d.length;c++)if(d[c][b](a))break},keydown:function(a){this.notify(a,"keydown")},keyup:function(a){this.notify(a,"keyup")}}),w=c.extend({init:function(a){this.editor=a,this.cleaners=[new x]},htmlToFragment:function(a){var b=this.editor,c=b.document,d=g.create(c,"div"),e=c.createDocumentFragment();d.innerHTML=a;while(d.firstChild)e.appendChild(d.firstChild);return e},isBlock:function(a){return/<(div|p|ul|ol|table|h[1-6])/i.test(a)},oncut:function(a){var b=this.editor,c=new l(b.getRange());setTimeout(function(){b.undoRedoStack.push(new p(c,new l(b.getRange())))})},onpaste:function(b){var c=this.editor,e=c.getRange(),f="",h=new l(e),j=g.create(c.document,"div",{className:"k-paste-container",innerHTML:f});c.body.appendChild(j);if(c.body.createTextRange){b.preventDefault();var k=c.createRange();k.selectNodeContents(j),c.selectRange(k);var m=c.body.createTextRange();m.moveToElementText(j),a(c.body).unbind("paste"),m.execCommand("Paste"),a(c.body).bind("paste",a.proxy(arguments.callee,this))}else{var n=c.createRange();n.selectNodeContents(j),i(n)}setTimeout(function(){var a,b={html:""};i(e),g.remove(j),j.lastChild&&g.is(j.lastChild,"br")&&g.remove(j.lastChild),a=j.innerHTML,a!=f&&(b.html=a),c.trigger("paste",b),c.clipboard.paste(b.html,!0),c.undoRedoStack.push(new p(h,new l(c.getRange()))),d.EditorUtils.select(c)})},splittableParent:function(a,b){var c,d;if(a)return g.parentOfType(b,["p","ul","ol"])||b.parentNode;c=b.parentNode,d=b.ownerDocument.body;if(g.isInline(c))while(c.parentNode!=d&&!g.isBlock(c.parentNode))c=c.parentNode;return c},paste:function(a,b){var c=this.editor,d,e;for(d=0,e=this.cleaners.length;d<e;d++)this.cleaners[d].applicable(a)&&(a=this.cleaners[d].clean(a));b&&(a=a.replace(/(<br>(\s| )*)+(<\/?(div|p|li|col|t))/ig,"$3"),a=a.replace(/<(a|span)[^>]*><\/\1>/ig,"")),a=a.replace(/^<li/i,"<ul><li").replace(/li>$/g,"li></ul>");var f=this.isBlock(a),j=c.getRange();j.deleteContents(),j.startContainer==c.document&&j.selectNodeContents(c.body);var k=new m,l=k.addCaret(j),n=this.splittableParent(f,l),o=!1;!/body|td/.test(g.name(n))&&(f||g.isInline(n))&&(j.selectNode(l),h.split(j,n,!0),o=!0);var p=this.htmlToFragment(a);if(p.firstChild&&p.firstChild.className==="k-paste-container"){var q=[];for(d=0,e=p.childNodes.length;d<e;d++)q.push(p.childNodes[d].innerHTML);p=this.htmlToFragment(q.join("<br />"))}j.insertNode(p),n=this.splittableParent(f,l);if(o){while(l.parentNode!=n)g.unwrap(l.parentNode);g.unwrap(l.parentNode)}g.normalize(j.commonAncestorContainer),l.style.display="inline",g.scrollTo(l),k.removeCaret(j),i(j)}}),x=c.extend({init:function(){this.replacements=[/<\?xml[^>]*>/gi,"",/<!--(.|\n)*?-->/g,"",/"/g,"'",/(?:<br> [\s\r\n]+|<br>)*(<\/?(h[1-6]|hr|p|div|table|tbody|thead|tfoot|th|tr|td|li|ol|ul|caption|address|pre|form|blockquote|dl|dt|dd|dir|fieldset)[^>]*>)(?:<br> [\s\r\n]+|<br>)*/g,"$1",/<br><br>/g,"<BR><BR>",/<br>/g," ",/<table([^>]*)>(\s| )+<t/gi,"<table$1><t",/<tr[^>]*>(\s| )*<\/tr>/gi,"",/<tbody[^>]*>(\s| )*<\/tbody>/gi,"",/<table[^>]*>(\s| )*<\/table>/gi,"",/<BR><BR>/g,"<br>",/^\s*( )+/gi,"",/( |<br[^>]*>)+\s*$/gi,"",/mso-[^;"]*;?/ig,"",/<(\/?)b(\s[^>]*)?>/ig,"<$1strong$2>",/<(\/?)i(\s[^>]*)?>/ig,"<$1em$2>",/<\/?(meta|link|style|o:|v:|x:)[^>]*>((?:.|\n)*?<\/(meta|link|style|o:|v:|x:)[^>]*>)?/ig,"",/style=(["|'])\s*\1/g,""]},applicable:function(a){return/class="?Mso|style="[^"]*mso-/i.test(a)},listType:function(a){if(/^[\u2022\u00b7\u00a7\u00d8o]\u00a0+/.test(a))return"ul";if(/^\s*\w+[\.\)]\u00a0{2,}/.test(a))return"ol"},lists:function(b){var c=g.create(document,"div",{innerHTML:b}),d=a(g.blockElements.join(","),c),e=-1,f,h={ul:{},ol:{}},i=c;for(var j=0;j<d.length;j++){var k=d[j];b=k.innerHTML.replace(/<\/?\w+[^>]*>/g,"").replace(/ /g," ");var l=this.listType(b);if(!l||g.name(k)!="p"){k.innerHTML?(h={ul:{},ol:{}},i=c,e=-1):g.remove(k);continue}var m=parseFloat(k.style.marginLeft||0),n=h[l][m];if(m>e||!n)n=g.create(document,l),i==c?g.insertBefore(n,k):i.appendChild(n),h[l][m]=n;if(f!=l)for(var o in h)for(var p in h[o])a.contains(n,h[o][p])&&delete h[o][p];g.remove(k.firstChild),i=g.create(document,"li",{innerHTML:k.innerHTML}),n.appendChild(i),g.remove(k),e=m,f=l}return c.innerHTML},stripEmptyAnchors:function(a){return a.replace(/<a([^>]*)>\s*<\/a>/ig,function(a,b){if(!b||b.indexOf("href")<0)return"";return a})},clean:function(a){var b=this,c=b.replacements,d,e;for(d=0,e=c.length;d<e;d+=2)a=a.replace(c[d],c[d+1]);a=b.stripEmptyAnchors(a),a=b.lists(a),a=a.replace(/\s+class="?[^"\s>]*"?/ig,"");return a}});n(d,{Command:o,GenericCommand:p,InsertHtmlCommand:q,InsertHtmlTool:r,UndoRedoStack:s,TypingHandler:t,SystemHandler:u,Keyboard:v,Clipboard:w,MSWordFormatCleaner:x}),f("insertHtml",new r({template:new k({template:e.dropDownListTemplate,title:"Insert HTML",initialValue:"Insert HTML"})}))}(jQuery),function(a){function t(a){return a.collapsed&&!k.isExpandable(a)}var b=window.kendo,c=b.Class,d=b.ui.editor,e=b.ui.Editor.fn.options.formats,f=d.EditorUtils,g=d.Tool,h=d.ToolTemplate,i=d.FormatTool,j=d.Dom,k=d.RangeUtils,l=a.extend,m=d.EditorUtils.registerTool,n=d.EditorUtils.registerFormat,o="k-marker",p=c.extend({init:function(a){this.format=a},numberOfSiblings:function(a){var b=0,c=0,d=0,e=a.parentNode,f;for(f=e.firstChild;f;f=f.nextSibling)f!=a&&(f.className==o?d++:f.nodeType==3?b++:c++);return d>1&&e.firstChild.className==o&&e.lastChild.className==o?0:c+b},findSuitable:function(a,b){if(!b&&this.numberOfSiblings(a)>0)return null;return j.parentOfType(a,this.format[0].tags)},findFormat:function(a){var b=this.format,c=j.attrEquals,d,e,f,g,h;for(d=0,e=b.length;d<e;d++){f=a,g=b[d].tags,h=b[d].attr;if(f&&j.ofType(f,g)&&c(f,h))return f;while(f){f=j.parentOfType(f,g);if(f&&c(f,h))return f}}return null},isFormatted:function(a){var b,c;for(b=0,c=a.length;b<c;b++)if(this.findFormat(a[b]))return!0;return!1}}),q=c.extend({init:function(a,b){var c=this;c.finder=new p(a),c.attributes=l({},a[0].attr,b),c.tag=a[0].tags[0]},wrap:function(a){return j.wrap(a,j.create(a.ownerDocument,this.tag,this.attributes))},activate:function(a,b){var c=this;c.finder.isFormatted(b)?(c.split(a),c.remove(b)):c.apply(b)},toggle:function(a){var b=k.textNodes(a);b.length>0&&this.activate(a,b)},apply:function(a){var b=this,c=[],d,e,f,g;for(d=0,e=a.length;d<e;d++)f=a[d],g=b.finder.findSuitable(f),g?j.attr(g,b.attributes):g=b.wrap(f),c.push(g);b.consolidate(c)},remove:function(a){var b=this,c,d,e;for(c=0,d=a.length;c<d;c++)e=b.finder.findFormat(a[c]),e&&(b.attributes&&b.attributes.style?(j.unstyle(e,b.attributes.style),e.style.cssText||j.unwrap(e)):j.unwrap(e))},split:function(a){var b=k.textNodes(a),c=b.length,d,e;if(c>0)for(d=0;d<c;d++)e=this.finder.findFormat(b[d]),e&&k.split(a,e,!0)},consolidate:function(a){var b,c;while(a.length>1){b=a.pop(),c=a[a.length-1],b.previousSibling&&b.previousSibling.className==o&&c.appendChild(b.previousSibling);if(b.tagName==c.tagName&&b.previousSibling==c&&b.style.cssText==c.style.cssText){while(b.firstChild)c.appendChild(b.firstChild);j.remove(b)}}}}),r=p.extend({init:function(a,b){var c=this;c.format=a,c.greedyProperty=b,p.fn.init.call(c,a)},getInlineCssValue:function(b){var c=b.attributes,d=a.trim,e,f,g,h,i,k,l,m,n,o,p,q;if(!!c){for(e=0,f=c.length;e<f;e++){g=c[e],h=g.nodeName,i=g.nodeValue;if(g.specified&&h=="style"){k=d(i||b.style.cssText).split(";");for(m=0,n=k.length;m<n;m++){l=k[m];if(l.length){o=l.split(":"),p=d(o[0].toLowerCase()),q=d(o[1]);if(p!=this.greedyProperty)continue;return p.indexOf("color")>=0?j.toHex(q):q}}}}return}},getFormatInner:function(b){var c=a(j.isDataNode(b)?b.parentNode:b),d=c.parents().andSelf(),e,f,g;for(e=0,f=d.length;e<f;e++){g=this.greedyProperty=="className"?d[e].className:this.getInlineCssValue(d[e]);if(g)return g}return"inherit"},getFormat:function(a){var b=this.getFormatInner(a[0]),c,d;for(c=1,d=a.length;c<d;c++)if(b!=this.getFormatInner(a[c]))return"";return b},isFormatted:function(a){return this.getFormat(a)!==""}}),s=q.extend({init:function(a,b,c){var d=this;q.fn.init.call(d,a,b),d.greedyProperty=c,d.values=b,d.finder=new r(a,c)},activate:function(a,b){var c=this,d,e=c.greedyProperty,f="apply";c.split(a),e&&(d=e.replace(/-([a-z])/,function(a,b){return b.toUpperCase()}),c.values.style[d]=="inherit"&&(f="remove")),c[f](b)}}),u=i.extend({init:function(a){i.fn.init.call(this,l(a,{finder:new p(a.format),formatter:function(){return new q(a.format)}})),this.willDelayExecution=t}}),v=g.extend({init:function(c){var d=this;g.fn.init.call(d,c),d.type=a.browser.msie||b.support.touch?"kendoDropDownList":"kendoComboBox",d.format=[{tags:["span"]}],d.finder=new r(d.format,c.cssAttr)},command:function(a){var b=this.options,c=this.format,e={};return new d.FormatCommand(l(a,{formatter:function(){e[b.domAttr]=a.value;return new s(c,{style:e},b.cssAttr)}}))},willDelayExecution:t,update:function(a,b,c){var d=this,e=a.data(d.type),f=c.getPending(d.name),g=f&&f.params?f.params.value:d.finder.getFormat(b);e.close(),e.value(g)},initialize:function(a,b){var c=b.editor,d=this.options,e=d.name,f,h=[];d.defaultValue&&(h=[{text:c.options.messages[d.defaultValue[0].text],value:d.defaultValue[0].value}]),f=h.concat(d.items?d.items:c.options[e]),a[this.type]({dataTextField:"text",dataValueField:"value",dataSource:f,change:function(a){g.exec(c,e,this.value())},highlightFirst:!1}),a.closest(".k-widget").removeClass("k-"+e).find("*").andSelf().attr("unselectable","on"),a.data(this.type).value("inherit")}}),w=g.extend({init:function(a){g.fn.init.call(this,a),this.options=a,this.format=[{tags:["span"]}]},update:function(a){a.data("kendoColorPicker").close()},command:function(a){var b=this.options,c=this.format,e={};return new d.FormatCommand(l(a,{formatter:function(){e[b.domAttr]=a.value;return new s(c,{style:e},b.cssAttr)}}))},willDelayExecution:t,initialize:function(a,b){var c=b.editor,e=this.name;new d.ColorPicker(a,{value:"#000000",change:function(a){g.exec(c,e,a.value)}})}}),x=g.extend({init:function(a){var b=this;g.fn.init.call(b,a),b.format=[{tags:["span"]}],b.finder=new r(b.format,"className")},command:function(a){var b=this.format;return new d.FormatCommand(l(a,{formatter:function(){return new s(b,{className:a.value})}}))},update:function(a,b){var c=a.data("kendoSelectBox");c.close(),c.value(this.finder.getFormat(b))},initialize:function(a,b){var c=b.editor;new d.SelectBox(a,{dataTextField:"text",dataValueField:"value",dataSource:c.options.style,title:c.options.messages.style,change:function(a){g.exec(c,"style",this.value())},highlightFirst:!1}),a.closest(".k-widget").removeClass("k-"+this.name).find("*").andSelf().attr("unselectable","on")}});l(d,{InlineFormatFinder:p,InlineFormatter:q,GreedyInlineFormatFinder:r,GreedyInlineFormatter:s,InlineFormatTool:u,FontTool:v,ColorTool:w,StyleTool:x}),m("style",new d.StyleTool({template:new h({template:f.dropDownListTemplate,title:"Styles"})})),n("bold",[{tags:["strong"]},{tags:["span"],attr:{style:{fontWeight:"bold"}}}]),m("bold",new u({key:"B",ctrl:!0,format:e.bold,template:new h({template:f.buttonTemplate,title:"Bold"})})),n("italic",[{tags:["em"]},{tags:["span"],attr:{style:{fontStyle:"italic"}}}]),m("italic",new u({key:"I",ctrl:!0,format:e.italic,template:new h({template:f.buttonTemplate,title:"Italic"})})),n("underline",[{tags:["span"],attr:{style:{textDecoration:"underline"}}}]),m("underline",new u({key:"U",ctrl:!0,format:e.underline,template:new h({template:f.buttonTemplate,title:"Underline"})})),n("strikethrough",[{tags:["del"]},{tags:["span"],attr:{style:{textDecoration:"line-through"}}}]),m("strikethrough",new u({format:e.strikethrough,template:new h({template:f.buttonTemplate,title:"Strikethrough"})})),n("superscript",[{tags:["sup"]}]),m("superscript",new u({format:e.superscript,template:new h({template:f.buttonTemplate,title:"Superscript"})})),n("subscript",[{tags:["sub"]}]),m("subscript",new u({format:e.subscript,template:new h({template:f.buttonTemplate,title:"Subscript"})})),m("foreColor",new w({cssAttr:"color",domAttr:"color",name:"foreColor",template:new h({template:f.colorPickerTemplate,title:"Color"})})),m("backColor",new w({cssAttr:"background-color",domAttr:"backgroundColor",name:"backColor",template:new h({template:f.colorPickerTemplate,title:"Background Color"})})),m("fontName",new v({cssAttr:"font-family",domAttr:"fontFamily",name:"fontName",defaultValue:[{text:"fontNameInherit",value:"inherit"}],template:new h({template:f.comboBoxTemplate,title:"Font Name"})})),m("fontSize",new v({cssAttr:"font-size",domAttr:"fontSize",name:"fontSize",defaultValue:[{text:"fontSizeInherit",value:"inherit"}],template:new h({template:f.comboBoxTemplate,title:"Font Size"})}))}(jQuery),function(a){var b=window.kendo,c=b.Class,d=a.extend,e=b.ui.editor,f=b.ui.Editor.fn.options.formats,g=e.Dom,h=e.Command,i=e.Tool,j=e.ToolTemplate,k=e.FormatTool,l=e.EditorUtils,m=l.registerTool,n=l.registerFormat,o=e.RangeUtils,p=c.extend({init:function(a){this.format=a},contains:function(a,b){var c,d,e;for(c=0,d=b.length;c<d;c++){e=b[c];if(!e||!g.isAncestorOrSelf(a,e))return!1}return!0},findSuitable:function(b){var c=this.format,d=[],e,f,h;for(e=0,f=b.length;e<f;e++){h=g.ofType(b[e],c[0].tags)?b[e]:g.parentOfType(b[e],c[0].tags);if(!h)return[];a.inArray(h,d)<0&&d.push(h)}for(e=0,f=d.length;e<f;e++)if(this.contains(d[e],d))return[d[e]];return d},findFormat:function(a){var b=this.format,c,d,e,f,h;for(c=0,d=b.length;c<d;c++){e=a,f=b[c].tags,h=b[c].attr;while(e){if(g.ofType(e,f)&&g.attrEquals(e,h))return e;e=e.parentNode}}return null},getFormat:function(a){var b=this,c=function(a){return b.findFormat(g.isDataNode(a)?a.parentNode:a)},d=c(a[0]),e,f;if(!d)return"";for(e=1,f=a.length;e<f;e++)if(d!=c(a[e]))return"";return d.nodeName.toLowerCase()},isFormatted:function(a){for(var b=0,c=a.length;b<c;b++)if(!this.findFormat(a[b]))return!1;return!0}}),q=c.extend({init:function(a,b){this.format=a,this.values=b,this.finder=new p(a)},wrap:function(a,b,c){var d=c.length==1?g.blockParentOrBody(c[0]):g.commonAncestor.apply(null,c);g.isInline(d)&&(d=g.blockParentOrBody(d));var e=g.significantChildNodes(d),f=g.findNodeIndex(e[0]),h=g.create(d.ownerDocument,a,b),i,j;for(i=0;i<e.length;i++){j=e[i];if(g.isBlock(j)){g.attr(j,b),h.childNodes.length&&(g.insertBefore(h,j),h=h.cloneNode(!1)),f=g.findNodeIndex(j)+1;continue}h.appendChild(j)}h.firstChild&&g.insertAt(d,h,f)},apply:function(a){var b=this,c=g.is(a[0],"img")?[a[0]]:b.finder.findSuitable(a),e=c.length?l.formatByName(g.name(c[0]),b.format):b.format[0],f=e.tags[0],h=d({},e.attr,b.values),i,j;if(c.length)for(i=0,j=c.length;i<j;i++)g.attr(c[i],h);else b.wrap(f,h,a)},remove:function(a){var b,c,d,e;for(b=0,c=a.length;b<c;b++)d=this.finder.findFormat(a[b]),d&&(g.ofType(d,["p","img","li"])?(e=l.formatByName(g.name(d),this.format),e.attr.style&&g.unstyle(d,e.attr.style),e.attr.className&&g.removeClass(d,e.attr.className)):g.unwrap(d))},toggle:function(a){var b=this,c=o.nodes(a);b.finder.isFormatted(c)?b.remove(c):b.apply(c)}}),r=c.extend({init:function(a,b){var c=this;c.format=a,c.values=b,c.finder=new p(a)},apply:function(a){var b=this.format,c=g.blockParents(a),d=b[0].tags[0],f,h,i,j,k;if(c.length)for(f=0,h=c.length;f<h;f++)g.is(c[f],"li")?(i=c[f].parentNode,j=new e.ListFormatter(i.nodeName.toLowerCase(),d),k=this.editor.createRange(),k.selectNode(c[f]),j.toggle(k)):g.changeTag(c[f],d);else(new q(b,this.values)).apply(a)},toggle:function(a){var b=o.textNodes(a);b.length||(a.selectNodeContents(a.commonAncestorContainer),b=o.textNodes(a),b.length||(b=g.significantChildNodes(a.commonAncestorContainer))),this.apply(b)}}),s=h.extend({init:function(a){a.formatter=a.formatter(),h.fn.init.call(this,a)}}),t=k.extend({init:function(a){k.fn.init.call(this,d(a,{finder:new p(a.format),formatter:function(){return new q(a.format)}}))}}),u=i.extend({init:function(a){i.fn.init.call(this,a),this.finder=new p([{tags:g.blockElements}])},command:function(a){return new s(d(a,{formatter:function(){return new r([{tags:[a.value]}],{})}}))},update:function(a,b){var c;a.is("select")?c=a.data("kendoSelectBox"):c=a.find("select").data("kendoSelectBox"),c.close(),c.value(this.finder.getFormat(b))},initialize:function(a,b){var c=b.editor,d="formatBlock";new e.SelectBox(a,{dataTextField:"text",dataValueField:"value",dataSource:this.options.items?this.options.items:c.options.formatBlock,title:c.options.messages.formatBlock,change:function(a){i.exec(c,d,this.value())},highlightFirst:!1}),a.closest(".k-widget").removeClass("k-"+d).find("*").andSelf().attr("unselectable","on")}});d(e,{BlockFormatFinder:p,BlockFormatter:q,GreedyBlockFormatter:r,FormatCommand:s,BlockFormatTool:t,FormatBlockTool:u}),m("formatBlock",new u({template:new j({template:l.dropDownListTemplate})})),n("justifyLeft",[{tags:g.blockElements,attr:{style:{textAlign:"left"}}},{tags:["img"],attr:{style:{"float":"left"}}}]),m("justifyLeft",new t({format:f.justifyLeft,template:new j({template:l.buttonTemplate,title:"Justify Left"})})),n("justifyCenter",[{tags:g.blockElements,attr:{style:{textAlign:"center"}}},{tags:["img"],attr:{style:{display:"block",marginLeft:"auto",marginRight:"auto"}}}]),m("justifyCenter",new t({format:f.justifyCenter,template:new j({template:l.buttonTemplate,title:"Justify Center"})})),n("justifyRight",[{tags:g.blockElements,attr:{style:{textAlign:"right"}}},{tags:["img"],attr:{style:{"float":"right"}}}]),m("justifyRight",new t({format:f.justifyRight,template:new j({template:l.buttonTemplate,title:"Justify Right"})})),n("justifyFull",[{tags:g.blockElements,attr:{style:{textAlign:"justify"}}}]),m("justifyFull",new t({format:f.justifyFull,template:new j({template:l.buttonTemplate,title:"Justify Full"})}))}(jQuery),function(a){var b=window.kendo,c=a.extend,d=b.ui.editor,e=d.Dom,f=d.Command,g=d.Tool,h=d.BlockFormatter,i=e.normalize,j=d.RangeUtils,k=d.EditorUtils.registerTool,l=f.extend({init:function(a){this.options=a,f.fn.init.call(this,a)},exec:function(){function v(a){a.firstChild&&e.is(a.firstChild,"br")&&e.remove(a.firstChild),e.isDataNode(a)&&!a.nodeValue&&(a=a.parentNode);if(a&&!e.is(a,"img")){while(a.firstChild&&a.firstChild.nodeType==1)a=a.firstChild;a.innerHTML||(a.innerHTML=l)}}var b=this.getRange(),c=j.documentFromRange(b),d,f,g,k,l=a.browser.msie?"":'<br _moz_dirty="" />',m,n,o,p,q,r="p,h1,h2,h3,h4,h5,h6".split(","),s=e.parentOfType(b.startContainer,r),t=e.parentOfType(b.endContainer,r),u=s&&!t||!s&&t;b.deleteContents(),n=e.create(c,"a"),b.insertNode(n),n.parentNode||(k=b.commonAncestorContainer,k.innerHTML="",k.appendChild(n)),i(n.parentNode),o=e.parentOfType(n,["li"]),p=e.parentOfType(n,"h1,h2,h3,h4,h5,h6".split(",")),o?(q=b.cloneRange(),q.selectNode(o),j.textNodes(q).length||(m=e.create(c,"p"),o.nextSibling&&j.split(q,o.parentNode),e.insertAfter(m,o.parentNode),e.remove(o.parentNode.childNodes.length==1?o.parentNode:o),m.innerHTML=l,g=m)):p&&!n.nextSibling&&(m=e.create(c,"p"),e.insertAfter(m,p),m.innerHTML=l,e.remove(n),g=m),g||(!o&&!p&&(new h([{tags:["p"]}])).apply([n]),b.selectNode(n),d=e.parentOfType(n,[o?"li":p?e.name(p):"p"]),j.split(b,d,u),f=d.previousSibling,e.is(f,"li")&&f.firstChild&&!e.is(f.firstChild,"br")&&(f=f.firstChild),g=d.nextSibling,e.is(g,"li")&&g.firstChild&&!e.is(g.firstChild,"br")&&(g=g.firstChild),e.remove(d),v(f),v(g),i(f)),i(g);if(e.is(g,"img"))b.setStartBefore(g);else{b.selectNodeContents(g);var w=j.textNodes(b)[0];w&&b.selectNodeContents(w)}b.collapse(!0),e.scrollTo(g),j.selectRange(b)}}),m=f.extend({init:function(a){this.options=a,f.fn.init.call(this,a)},exec:function(){var b=this.getRange();b.deleteContents();var c=e.create(j.documentFromRange(b),"br");b.insertNode(c),i(c.parentNode);if(!a.browser.msie&&(!c.nextSibling||e.isWhitespace(c.nextSibling))){var d=c.cloneNode(!0);d.setAttribute("_moz_dirty",""),e.insertAfter(d,c)}b.setStartAfter(c),b.collapse(!0),j.selectRange(b)}});c(d,{ParagraphCommand:l,NewLineCommand:m}),k("insertLineBreak",new g({key:13,shift:!0,command:m})),k("insertParagraph",new g({key:13,command:l}))}(jQuery),function(a){var b=window.kendo,c=b.Class,d=a.extend,e=b.ui.editor,f=e.Dom,g=e.RangeUtils,h=e.EditorUtils,i=e.Command,j=e.ToolTemplate,k=e.FormatTool,l=e.BlockFormatFinder,m=g.textNodes,n=e.EditorUtils.registerTool,o=l.extend({init:function(a){this.tag=a;var b=this.tags=[a=="ul"?"ol":"ul",a];l.fn.init.call(this,[{tags:b}])},isFormatted:function(a){var b=[],c;for(var d=0;d<a.length;d++)(c=this.findFormat(a[d]))&&f.name(c)==this.tag&&b.push(c);if(b.length<1)return!1;if(b.length!=a.length)return!1;for(d=0;d<b.length;d++){if(b[d].parentNode!=c.parentNode)break;if(b[d]!=c)return!1}return!0},findSuitable:function(a){var b=f.parentOfType(a[0],this.tags);if(b&&f.name(b)==this.tag)return b;return null}}),p=c.extend({init:function(a,b){var c=this;c.finder=new o(a),c.tag=a,c.unwrapTag=b},wrap:function(a,b){var c=f.create(a.ownerDocument,"li"),d,e;for(d=0;d<b.length;d++){e=b[d];if(f.is(e,"li")){a.appendChild(e);continue}if(f.is(e,"ul")||f.is(e,"ol")){while(e.firstChild)a.appendChild(e.firstChild);continue}if(f.is(e,"td")){while(e.firstChild)c.appendChild(e.firstChild);a.appendChild(c),e.appendChild(a),a=a.cloneNode(!1),c=c.cloneNode(!1);continue}c.appendChild(e),f.isBlock(e)&&(a.appendChild(c),f.unwrap(e),c=c.cloneNode(!1))}c.firstChild&&a.appendChild(c)},containsAny:function(a,b){for(var c=0;c<b.length;c++)if(f.isAncestorOrSelf(a,b[c]))return!0;return!1},suitable:function(a,b){if(a.className=="k-marker"){var c=a.nextSibling;if(c&&f.isBlock(c))return!1;c=a.previousSibling;if(c&&f.isBlock(c))return!1}return this.containsAny(a,b)||f.isInline(a)||a.nodeType==3},split:function(b){var c=m(b),d,e;if(c.length){d=f.parentOfType(c[0],["li"]),e=f.parentOfType(c[c.length-1],["li"]),b.setStartBefore(d),b.setEndAfter(e);for(var h=0,i=c.length;h<i;h++){var j=this.finder.findFormat(c[h]);if(j){var k=a(j).parents("ul,ol");k[0]?g.split(b,k.last()[0],!0):g.split(b,j,!0)}}}},merge:function(a,b){var c=b.previousSibling,d;while(c&&(c.className=="k-marker"||c.nodeType==3&&f.isWhitespace(c)))c=c.previousSibling;if(c&&f.name(c)==a){while(b.firstChild)c.appendChild(b.firstChild);f.remove(b),b=c}d=b.nextSibling;while(d&&(d.className=="k-marker"||d.nodeType==3&&f.isWhitespace(d)))d=d.nextSibling;if(d&&f.name(d)==a){while(b.lastChild)d.insertBefore(b.lastChild,d.firstChild);f.remove(b)}},applyOnSection:function(b,c){function j(){g.push(this)}var d=this.tag,e;c.length==1?e=f.parentOfType(c[0],["ul","ol"]):e=f.commonAncestor.apply(null,c),e||(e=f.parentOfType(c[0],["td"])||c[0].ownerDocument.body),f.isInline(e)&&(e=f.blockParentOrBody(e));var g=[],h=this.finder.findSuitable(c);h||(h=(new o(d=="ul"?"ol":"ul")).findSuitable(c));var i=f.significantChildNodes(e);i.length||(i=c),/table|tbody/.test(f.name(e))&&(i=a.map(c,function(a){return f.parentOfType(a,["td"])}));for(var k=0;k<i.length;k++){var l=i[k],m=f.name(l);this.suitable(l,c)&&(!h||!f.isAncestorOrSelf(h,l))&&(!h||m!="ul"&&m!="ol"?g.push(l):(a.each(l.childNodes,j),f.remove(l)))}g.length==i.length&&e!=c[0].ownerDocument.body&&!/table|tbody|tr|td/.test(f.name(e))&&(g=[e]),h||(h=f.create(e.ownerDocument,d),f.insertBefore(h,g[0])),this.wrap(h,g),f.is(h,d)||f.changeTag(h,d),this.merge(d,h)},apply:function(a){var b=0,c=[],d,e,g;do g=f.parentOfType(a[b],["td","body"]),!d||g!=d?(d&&c.push({section:d,nodes:e}),e=[a[b]],d=g):e.push(a[b]),b++;while(b<a.length);c.push({section:d,nodes:e});for(b=0;b<c.length;b++)this.applyOnSection(c[b].section,c[b].nodes)},unwrap:function(b){var c=b.ownerDocument.createDocumentFragment(),d=this.unwrapTag,e,g,h,i;for(g=b.firstChild;g;g=g.nextSibling){h=f.create(b.ownerDocument,d||"p");while(g.firstChild)i=g.firstChild,f.isBlock(i)?(h.firstChild&&(c.appendChild(h),h=f.create(b.ownerDocument,d||"p")),c.appendChild(i)):h.appendChild(i);h.firstChild&&c.appendChild(h)}e=a(b).parents("ul,ol"),e[0]?(f.insertAfter(c,e.last()[0]),e.last().remove()):f.insertAfter(c,b),f.remove(b)},remove:function(a){var b;for(var c=0,d=a.length;c<d;c++)b=this.finder.findFormat(a[c]),b&&this.unwrap(b)},toggle:function(a){var b=this,c=m(a),d=a.commonAncestorContainer;if(!c.length){a.selectNodeContents(d),c=m(a);if(!c.length){var e=d.ownerDocument.createTextNode("");a.startContainer.appendChild(e),c=[e],a.selectNode(e.parentNode)}}b.finder.isFormatted(c)?(b.split(a),b.remove(c)):b.apply(c)}}),q=i.extend({init:function(a){a.formatter=new p(a.tag),i.fn.init.call(this,a)}}),r=k.extend({init:function(a){this.options=a,k.fn.init.call(this,d(a,{finder:new o(a.tag)}))},command:function(a){return new q(d(a,{tag:this.options.tag}))}});d(e,{ListFormatFinder:o,ListFormatter:p,ListCommand:q,ListTool:r}),n("insertUnorderedList",new r({tag:"ul",template:new j({template:h.buttonTemplate,title:"Remove Link"})})),n("insertOrderedList",new r({tag:"ol",template:new j({template:h.buttonTemplate,title:"Remove Link"})}))}(jQuery),function(a,b){var c=window.kendo,d=c.Class,e=a.extend,f=c.ui.editor,g=f.Dom,h=f.RangeUtils,i=f.EditorUtils,j=f.Command,k=f.Tool,l=f.ToolTemplate,m=f.InlineFormatter,n=f.InlineFormatFinder,o=h.textNodes,p=f.EditorUtils.registerTool,q=d.extend({findSuitable:function(a){return g.parentOfType(a,["a"])}}),r=d.extend({init:function(){this.finder=new q},apply:function(a,b){var c=o(a);if(b.innerHTML){var d=h.getMarkers(a),e=h.documentFromRange(a);a.deleteContents();var f=g.create(e,"a",b);a.insertNode(f),d.length>1&&(g.insertAfter(d[d.length-1],f),g.insertAfter(d[1],f),g[c.length>0?"insertBefore":"insertAfter"](d[0],f))}else{var i=new m([{tags:["a"]}],b);i.finder=this.finder,i.apply(c)}}}),s=j.extend({init:function(a){a.formatter={toggle:function(a){(new m([{tags:["a"]}])).remove(o(a))}},this.options=a,j.fn.init.call(this,a)}}),t=j.extend({init:function(a){var b=this;b.options=a,j.fn.init.call(b,a),b.attributes=null,b.async=!0,b.formatter=new r},exec:function(){function j(a){a.preventDefault(),n.destroy(),g.windowFromDocument(h.documentFromRange(b)).focus(),f.releaseRange(b)}function i(c){var d=a("#k-editor-link-url",n.element).val();if(d&&d!="http://"){f.attributes={href:d};var g=a("#k-editor-link-title",n.element).val();g&&(f.attributes.title=g);var h=a("#k-editor-link-text",n.element).val();h!==e&&(f.attributes.innerHTML=h||d);var i=a("#k-editor-link-target",n.element).is(":checked");i&&(f.attributes.target="_blank"),f.formatter.apply(b,f.attributes)}j(c),f.change&&f.change()}var b=this.getRange(),c=b.collapsed;b=this.lockRange(!0);var d=o(b),e=null,f=this,k=d.length?f.formatter.finder.findSuitable(d[0]):null,l=d.length<=1||d.length==2&&c,m='<div class="k-editor-dialog"><ol><li class="k-form-text-row"><label for="k-editor-link-url">Web address</label><input type="text" class="k-input" id="k-editor-link-url"/></li>'+(l?'<li class="k-form-text-row"><label for="k-editor-link-text">Text</label><input type="text" class="k-input" id="k-editor-link-text"/></li>':"")+'<li class="k-form-text-row"><label for="k-editor-link-title">Tooltip</label><input type="text" class="k-input" id="k-editor-link-title"/></li>'+'<li class="k-form-checkbox-row"><input type="checkbox" id="k-editor-link-target"/><label for="k-editor-link-target">Open link in new window</label></li>'+"</ol>"+'<div class="k-button-wrapper">'+'<button class="k-dialog-insert k-button">Insert</button>'+" or "+'<a href="#" class="k-dialog-close k-link">Close</a>'+"</div>"+"</div>",n=a(m).appendTo(document.body).kendoWindow(a.extend({},this.editor.options.dialogOptions,{title:"Insert link",close:j})).hide().find(".k-dialog-insert").click(i).end().find(".k-dialog-close").click(j).end().find(".k-form-text-row input").keydown(function(a){a.keyCode==13?i(a):a.keyCode==27&&j(a)}).end().find("#k-editor-link-url").val(k?k.getAttribute("href",2):"http://").end().find("#k-editor-link-text").val(d.length>0?d.length==1?d[0].nodeValue:d[0].nodeValue+d[1].nodeValue:"").end().find("#k-editor-link-title").val(k?k.title:"").end().find("#k-editor-link-target").attr("checked",k?k.target=="_blank":!1).end().show().data("kendoWindow").center();l&&d.length>0&&(e=a("#k-editor-link-text",n.element).val()),a("#k-editor-link-url",n.element).focus().select()},redo:function(){var a=this,b=a.lockRange(!0);a.formatter.apply(b,a.attributes),a.releaseRange(b)}}),u=k.extend({init:function(b){this.options=b,this.finder=new n([{tags:["a"]}]),k.fn.init.call(this,a.extend(b,{command:s}))},initialize:function(a){a.attr("unselectable","on").addClass("k-state-disabled")},update:function(a,b){a.toggleClass("k-state-disabled",!this.finder.isFormatted(b)).removeClass("k-state-hover")}});e(c.ui.editor,{LinkFormatFinder:q,LinkFormatter:r,UnlinkCommand:s,LinkCommand:t,UnlinkTool:u}),p("createLink",new k({key:"K",ctrl:!0,command:t,template:new l({template:i.buttonTemplate,title:"Create Link"})})),p("unlink",new u({key:"K",ctrl:!0,shift:!0,template:new l({template:i.buttonTemplate,title:"Remove Link"})}))}(jQuery),function(a,b){var c=window.kendo,d=a.extend,e=c.ui.editor,f=e.EditorUtils,g=e.Dom,h=f.registerTool,i=e.ToolTemplate,j=e.RangeUtils,k=e.Command,l=c.keys,m="Insert Image",n="#k-editor-image-url",o="#k-editor-image-title",p=k.extend({init:function(a){var b=this;k.fn.init.call(b,a),b.async=!0,b.attributes={}},insertImage:function(a,b){var c=this.attributes;if(c.src&&c.src!="http://"){if(!a){a=g.create(j.documentFromRange(b),"img",c),a.onload=a.onerror=function(){a.removeAttribute("complete"),a.removeAttribute("width"),a.removeAttribute("height")},b.deleteContents(),b.insertNode(a),b.setStartAfter(a),b.setEndAfter(a),j.selectRange(b);return!0}g.attr(a,c)}return!1},redo:function(){var a=this,b=a.lockRange();a.insertImage(j.image(b),b)||a.releaseRange(b)},exec:function(){function q(a){a.keyCode==l.ENTER?k(a):a.keyCode==l.ESC&&p(a)}function p(a){a.preventDefault(),i.destroy(),g.windowFromDocument(j.documentFromRange(c)).focus(),e||b.releaseRange(c)}function k(d){b.attributes={src:a(n,i.element).val(),alt:a(o,i.element).val()},e=b.insertImage(f,c),p(d),b.change&&b.change()}var b=this,c=b.lockRange(),e=!1,f=j.image(c),h,i;h='<div class="k-editor-dialog"><ol><li class="k-form-text-row"><label for="k-editor-image-url">Web address</label><input type="text" class="k-input" id="k-editor-image-url"/></li><li class="k-form-text-row"><label for="k-editor-image-title">Tooltip</label><input type="text" class="k-input" id="k-editor-image-title"/></li></ol><div class="k-button-wrapper"><button class="k-dialog-insert k-button">Insert</button> or <a href="#" class="k-dialog-close k-link">Close</a></div></div>',i=a(h).appendTo(document.body).kendoWindow(d({},b.editor.options.dialogOptions,{title:m,close:p,activate:function(){}})).hide().find(".k-dialog-insert").click(k).end().find(".k-dialog-close").click(p).end().find(".k-form-text-row input").keydown(q).end().find(n).val(f?f.getAttribute("src",2):"http://").end().find(o).val(f?f.alt:"").end().show().data("kendoWindow").center(),a(n,i.element).focus().select()}});c.ui.editor.ImageCommand=p,h("insertImage",new e.Tool({command:p,template:new i({template:f.buttonTemplate,title:m})}))}(jQuery),function(a,b){var c=window.kendo,d=c.ui.Widget,e=c.ui.DropDownList,f=c.ui.editor,g=f.Dom,h="change",i="k-state-selected",j="."+i,k=".k-selected-color",l="unselectable",m="background-color",n=c.keys,o=c.template('<div class="k-colorpicker-popup"><ul class="k-reset"># for(var i = 0; i < colors.length; i++) { #<li class="k-item #= colors[i] == value ? "k-state-selected" : "" #"><div style="background-color:\\##= colors[i] #"></div></li># } #</ul></div>'),p=d.extend({init:function(b,c){var e=this;d.fn.init.call(e,b,c),b=e.element,c=e.options,e._value=c.value,e.popup=a(o({colors:c.colors,value:c.value.substring(1)})).kendoPopup({anchor:b,toggleTarget:b.find(".k-icon")}).delegate(".k-item","click",function(b){e.select(a(b.currentTarget).find("div").css(m))}).find("*").attr(l,"on").end().data("kendoPopup"),b.attr("tabIndex",0).keydown(function(a){e.keydown(a)}).focus(function(){b.css("outline","1px dotted #000")}).blur(function(){b.css("outline","")}).delegate(".k-tool-icon","click",function(){e.select()}).find("*").attr(l,"on"),e._value&&b.find(k).css(m,e._value)},options:{name:"ColorPicker",colors:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7".split(","),value:null},events:[h],select:function(a){var b=this;a?(a=g.toHex(a),b.trigger(h,{value:a})||(b.value(a),b.close())):b.trigger(h,{value:b._value})},open:function(){this.popup.open()},close:function(){this.popup.close()},toggle:function(){this.popup.toggle()},keydown:function(a){var b=this,c=b.popup.element,d=b.popup.visible(),e,f,g,h=!1,k=a.keyCode;k==n.DOWN?(d?(e=c.find(j),e[0]?f=e.next():f=c.find("li:first"),f[0]&&(e.removeClass(i),f.addClass(i))):b.open(),h=!0):k==n.UP?(d&&(e=c.find(j),g=e.prev(),g[0]&&(e.removeClass(i),g.addClass(i))),h=!0):k==n.TAB||k==n.RIGHT||k==n.LEFT?b.close():k==n.ENTER&&(c.find(j).click(),h=!0),h&&a.preventDefault()},value:function(a){var c=this;if(a===b)return c._value;a=g.toHex(a),c._value=a,c.element.find(k).css(m,a)}}),q=e.extend({init:function(a,b){var c=this;e.fn.init.call(c,a,b),c.value(c.options.title)},options:{name:"SelectBox"},value:function(a){var c=this,d=e.fn.value.call(c,a);if(a===b)return d;a!==e.fn.value.call(c)&&(c.text(c.options.title),c._current.removeClass("k-state-selected"),c.current(null),c._oldIndex=c.selectedIndex=-1)}});c.ui.editor.ColorPicker=p,c.ui.editor.SelectBox=q}(jQuery),function(a,b){function q(a,c){var d=g.name(a)!="td"?"marginLeft":"paddingLeft";if(c===b)return a.style[d]||0;c>0?a.style[d]=c+"px":(a.style[d]="",a.style.cssText||a.removeAttribute("style"))}var c=window.kendo,d=c.Class,e=a.extend,f=c.ui.editor,g=f.Dom,h=f.EditorUtils,i=h.registerTool,j=f.Command,k=f.Tool,l=f.ToolTemplate,m=f.RangeUtils,n=g.blockElements,o=f.BlockFormatFinder,p=f.BlockFormatter,r=d.extend({init:function(){this.finder=new o([{tags:g.blockElements}])},apply:function(b){var c=this.finder.findSuitable(b),d=[],e,f,h,i,j;if(c.length){for(e=0,f=c.length;e<f;e++)g.is(c[e],"li")?a(c[e]).index()?a.inArray(c[e].parentNode,d)<0&&d.push(c[e]):d.push(c[e].parentNode):d.push(c[e]);while(d.length){h=d.shift();if(g.is(h,"li")){i=h.parentNode,j=a(h).prev("li");var k=j.find("ul,ol").last(),l=a(h).children("ul,ol")[0];if(l&&j[0])k[0]?(k.append(h),k.append(a(l).children()),g.remove(l)):(j.append(l),l.insertBefore(h,l.firstChild));else{l=j.children("ul,ol")[0],l||(l=g.create(h.ownerDocument,g.name(i)),j.append(l));while(h&&h.parentNode==i)l.appendChild(h),h=d.shift()}}else{var m=parseInt(q(h),10)+30;q(h,m);for(var n=0;n<d.length;n++)a.contains(h,d[n])&&d.splice(n,1)}}}else{var o=new p([{tags:"p"}],{style:{marginLeft:30}});o.apply(b)}},remove:function(b){var c=this.finder.findSuitable(b),d,e,f,g,h,i,j,k;for(e=0,f=c.length;e<f;e++){j=a(c[e]);if(j.is("li")){g=j.parent(),h=g.parent();if(h.is("li,ul,ol")&&!q(g[0])){if(d&&a.contains(d,h[0]))continue;i=j.nextAll("li"),i.length&&a(g[0].cloneNode(!1)).appendTo(j).append(i),h.is("li")?j.insertAfter(h):j.appendTo(h),g.children("li").length||g.remove();continue}if(d==g[0])continue;d=g[0]}else d=c[e];k=parseInt(q(d),10)-30,q(d,k)}}}),s=j.extend({init:function(a){a.formatter={toggle:function(a){(new r).apply(m.nodes(a))}},j.fn.init.call(this,a)}}),t=j.extend({init:function(a){a.formatter={toggle:function(a){(new r).remove(m.nodes(a))}},j.fn.init.call(this,a)}}),u=k.extend({init:function(a){k.fn.init.call(this,e(a,{command:t})),this.finder=new o([{tags:n}])},initialize:function(a){a.attr("unselectable","on").addClass("k-state-disabled")},update:function(b,c){var d=this.finder.findSuitable(c),e,f,h,i;for(h=0,i=d.length;h<i;h++){e=q(d[h]),e||(f=a(d[h]).parents("ul,ol").length,e=g.is(d[h],"li")&&(f>1||q(d[h].parentNode))||g.ofType(d[h],["ul","ol"])&&f>0);if(e){b.removeClass("k-state-disabled");return}}b.addClass("k-state-disabled").removeClass("k-state-hover")}});e(f,{IndentFormatter:r,IndentCommand:s,OutdentCommand:t,OutdentTool:u}),i("indent",new k({command:s,template:new l({template:h.buttonTemplate,title:"Indent"})})),i("outdent",new u({template:new l({template:h.buttonTemplate,title:"Outdent"})}))}(jQuery),function(a,b){var c=window.kendo,d=a.extend,e=c.ui.editor,f=e.Dom,g=e.RangeUtils,h=e.EditorUtils,i=e.Command,j=e.Tool,k=e.ToolTemplate,l=i.extend({init:function(a){var b=this;b.options=a,i.fn.init.call(b,a),b.attributes=null,b.async=!0},exec:function(){function m(a){a.preventDefault(),h.data("kendoWindow").destroy(),f.windowFromDocument(g.documentFromRange(e)).focus()}function k(a){c.value(h.find(j).val()),m(a),b.change&&b.change()}var b=this,c=b.editor,e=c.getRange(),h=a(l.template).appendTo(document.body),i=l.indent(c.value()),j=".k-editor-textarea";h.kendoWindow(d({},c.options.dialogOptions,{title:"View HTML",close:m})).hide().find(j).val(i).end().find(".k-dialog-update").click(k).end().find(".k-dialog-close").click(m).end().show().data("kendoWindow").center(),h.find(j).focus()}});d(l,{template:"<div class='k-editor-dialog'><textarea class='k-editor-textarea k-input'></textarea><div class='k-button-wrapper'><button class='k-dialog-update k-button'>Update</button> or <a href='#' class='k-dialog-close k-link'>Close</a></div></div>",indent:function(a){return a.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/ig,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/ig,"<$1$2>\n<li").replace(/<br \/>/ig,"<br />\n").replace(/\n$/,"")}}),c.ui.editor.ViewHtmlCommand=l,e.EditorUtils.registerTool("viewHtml",new j({command:l,template:new k({template:h.buttonTemplate,title:"View HTML"})}))}(jQuery),function(a){var b=window.kendo,c=b.Class,d=a.extend,e=b.ui.editor,f=e.RangeUtils,g=e.Marker,h=c.extend({init:function(a){this.editor=a,this.formats=[]},apply:function(a){if(!!this.hasPending()){var b=new g;b.addCaret(a);var c=a.startContainer.childNodes[a.startOffset],e=c.previousSibling;e.nodeValue||(e=e.previousSibling),a.setStart(e,e.nodeValue.length-1),b.add(a);if(!f.textNodes(a).length){b.remove(a),a.collapse(!0),this.editor.selectRange(a);return}var h=b.end.previousSibling.previousSibling,i,j=this.formats;for(var k=0;k<j.length;k++){i=j[k];var l=i.command(d({range:a},i.options.params));l.editor=this.editor,l.exec(),a.selectNode(h)}b.remove(a),h.parentNode&&(a.setStart(h,1),a.collapse(!0)),this.clear(),this.editor.selectRange(a)}},hasPending:function(){return this.formats.length>0},isPending:function(a){return!!this.getPending(a)},getPending:function(a){var b=this.formats;for(var c=0;c<b.length;c++)if(b[c].name==a)return b[c];return},toggle:function(a){var b=this.formats;for(var c=0;c<b.length;c++)if(b[c].name==a.name){b[c].params&&b[c].params.value!=a.params.value?b[c].params.value=a.params.value:b.splice(c,1);return}b.push(a)},clear:function(){this.formats=[]}});d(e,{PendingFormats:h})}(jQuery),function(a,b){function E(c,d){var e,f=d!==b;if(document.selection){a(c).is(":visible")&&c.focus(),e=document.selection.createRange();if(f)e.move("character",d),e.select();else{var g=c.createTextRange(),h=g.duplicate();g.moveToBookmark(e.getBookmark()),h.setEndPoint("EndToStart",g),d=h.text.length}}else c.selectionStart!==b&&(f?(c.focus(),c.setSelectionRange(d,d)):d=c.selectionStart);return d}function D(a,b){return'<span unselectable="on" class="k-link"><span unselectable="on" class="k-icon k-i-arrow-'+a+'" title="'+b+'">'+b+"</span></span>"}var c=window.kendo,d=c.keys,e=c.ui,f=e.Widget,g=c.parseFloat,h=c.support.placeholder,i=c.support.touch,j=c.getCulture,k="change",l="disabled",m="k-input",n="spin",o="touchend",p=i?"touchstart":"mousedown",q=i?"touchmove "+o:"mouseup mouseleave",r="k-state-default",s="k-state-focused",t="k-state-hover",u="mouseenter mouseleave",v=".",w="k-state-selected",x="k-state-disabled",y=i?"number":"text",z=null,A=a.proxy,B={190:".",188:","},C=f.extend({init:function(a,d){var e=this,g=d&&d.step!==b,h,i,j,k,l;f.fn.init.call(e,a,d),d=e.options,a=e.element.addClass(m).bind({keydown:A(e._keydown,e),paste:A(e._paste,e),blur:A(e._focusout,e)}),a.closest("form").bind("reset",function(){setTimeout(function(){e.value(a[0].value)})}),d.placeholder=d.placeholder||a.attr("placeholder"),e._wrapper(),e._arrows(),e._input(),e._text.focus(A(e._click,e)),h=e.min(a.attr("min")),i=e.max(a.attr("max")),j=e._parse(a.attr("step")),d.min===z&&h!==z&&(d.min=h),d.max===z&&i!==z&&(d.max=i),!g&&j!==z&&(d.step=j),l=d.format,l.slice(0,3)==="{0:"&&(d.format=l.slice(3,l.length-1)),k=d.value,e.value(k!==z?k:a.val()),e.enable(!a.is("[disabled]")),c.notify(e)},options:{name:"NumericTextBox",decimals:z,min:z,max:z,value:z,step:1,culture:"",format:"n",spinners:!0,placeholder:"",upArrowText:"Increase value",downArrowText:"Decrease value"},events:[k,n],enable:function(a){var b=this,c=b._text.add(b.element),d=b._inputWrapper.unbind(u),e=b._upArrow.unbind(p),f=b._downArrow.unbind(p);b._toggleText(!0),a===!1?(d.removeClass(r).addClass(x),c.attr(l,l)):(d.addClass(r).removeClass(x).bind(u,b._toggleHover),c.removeAttr(l),e.bind(p,function(a){a.preventDefault(),b._spin(1),b._upArrow.addClass(w)}),f.bind(p,function(a){a.preventDefault(),b._spin(-1),b._downArrow.addClass(w)}))},min:function(a){return this._option("min",a)},max:function(a){return this._option("max",a)},step:function(a){return this._option("step",a)},value:function(a){var c=this,d;if(a===b)return c._value;a=c._parse(a),d=c._adjust(a);a===d&&(c._update(a),c._old=c._value)},_adjust:function(a){var b=this,c=b.options,d=c.min,e=c.max;if(a===z)return a;d!==z&&a<d?a=d:e!==z&&a>e&&(a=e);return a},_arrows:function(){var b=this,d,e=b.options,f=e.spinners,g=b.element;d=g.siblings(".k-icon"),d[0]||(d=a(D("n",e.upArrowText)+D("s",e.downArrowText)).insertAfter(g),d.wrapAll('<span class="k-select"/>')),d.bind(q,function(a){(!i||c.eventTarget(a)!=a.currentTarget||a.type===o)&&clearTimeout(b._spinning),d.removeClass(w)}),f||(d.toggle(f),b._inputWrapper.addClass("k-expand-padding")),b._upArrow=d.eq(0),b._downArrow=d.eq(1)},_blur:function(){var a=this;a._toggleText(!0),a._change(a.element.val())},_click:function(a){var b=this;clearTimeout(b._focusing),b._focusing=setTimeout(function(){var c=a.target,d=E(c),e=c.value.substring(0,d),f=b._format(b.options.format),g=f[","],h=new RegExp("\\"+g,"g"),i=new RegExp("([\\d\\"+g+"]+)(\\"+f[v]+")?(\\d+)?"),j=i.exec(e),k=0;j&&(k=j[0].replace(h,"").length,e.indexOf("(")!=-1&&b._value<0&&k++),b._focusin(),E(b.element[0],k)})},_change:function(a){var b=this;b._update(a),a=b._value,b._old!=a&&(b._old=a,b.trigger(k),b.element.trigger(k))},_culture:function(a){return a||j(this.options.culture)},_focusin:function(){var a=this;a._toggleText(!1),a.element.focus(),a._inputWrapper.addClass(s)},_focusout:function(){var a=this;clearTimeout(a._focusing),a._inputWrapper.removeClass(s),a._blur()},_format:function(a,b){var c=this._culture(b).numberFormat;a=a.toLowerCase(),a.indexOf("c")>-1?c=c.currency:a.indexOf("p")>-1&&(c=c.percent);return c},_input:function(){var b=this,c="k-formatted-value",d=b.element.show()[0],e=b.wrapper,f;f=e.find(v+c),f[0]||(f=a("<input />").insertBefore(d).addClass(c)),d.type=y,f[0].type="text",f[0].style.cssText=d.style.cssText,f.attr("placeholder",b.options.placeholder),b._text=f.attr("readonly",!0).addClass(d.className)},_keydown:function(a){var b=this,c=a.keyCode;c==d.DOWN?b._step(-1):c==d.UP?b._step(1):c==d.ENTER&&b._change(b.element.val()),b._prevent(c)&&!a.ctrlKey&&a.preventDefault()},_paste:function(a){var b=this,c=a.target,d=c.value;setTimeout(function(){b._parse(c.value)===z&&b._update(d)})},_prevent:function(a){var b=this,c=b.element[0],e=c.value,f=b.options,g=f.min,h=b._format(f.format),i=h[v],j=f.decimals,k=E(c),l=!0,m;j===z&&(j=h.decimals),a>16&&a<21||a>32&&a<37||a>47&&a<58||a>95&&a<106||a==d.INSERT||a==d.DELETE||a==d.LEFT||a==d.RIGHT||a==d.TAB||a==d.BACKSPACE||a==d.ENTER?l=!1:B[a]===i&&j>0&&e.indexOf(i)==-1?l=!1:!(g===z||g<0)||e.indexOf("-")!=-1||a!=189&&a!=109||k!==0?a==110&&j>0&&e.indexOf(i)==-1&&(m=e.substring(k),c.value=e.substring(0,k)+i+m):l=!1;return l},_option:function(a,c){var d=this,e=d.options;if(c===b)return e[a];c=d._parse(c);if(!!c||a!=="step")e[a]=d._parse(c)},_spin:function(a,b){var c=this;b=b||500,clearTimeout(c._spinning),c._spinning=setTimeout(function(){c._spin(a,50)},b),c._step(a)},_step:function(a){var b=this,c=b.element,d=b._parse(c.val())||0;document.activeElement!=c[0]&&b._focusin(),d+=b.options.step*a,b._update(b._adjust(d)),b.trigger(n)},_toggleHover:function(b){i||a(b.currentTarget).toggleClass(t,b.type==="mouseenter")},_toggleText:function(a){var b=this;a=!!a,b._text.toggle(a),b.element.toggle(!a)},_parse:function(a,b){return g(a,this._culture(b),this.options.format)},_update:function(a){var b=this,d=b.options,e=d.format,f=d.decimals,g=b._culture(),h=b._format(e,g),i;f===z&&(f=h.decimals),a=b._parse(a,g),i=a!==z,i&&(a=parseFloat(a.toFixed(f))),b._value=a=b._adjust(a),b._placeholder(c.toString(a,e,g)),b.element.val(i?a.toString().replace(v,h[v]):"")},_placeholder:function(a){this._text.val(a),!h&&!a&&this._text.val(this.options.placeholder)},_wrapper:function(){var b=this,c=b.element,d;d=c.parents(".k-numerictextbox"),d.is("span.k-numerictextbox")||(d=c.hide().wrap('<span class="k-numeric-wrap k-state-default" />').parent(),d=d.wrap("<span/>").parent()),d[0].style.cssText=c[0].style.cssText,c[0].style.width="",b.wrapper=d.addClass("k-widget k-numerictextbox").show(),b._inputWrapper=a(d[0].firstChild)}});e.plugin(C)}(jQuery),function(a,b){function P(b){b=a(b),b.filter(".k-first:not(:first-child)").removeClass(t),b.filter(".k-last:not(:last-child)").removeClass(p),b.filter(":first-child").addClass(t),b.filter(":last-child").addClass(p)}function O(b){b=a(b),b.find(".k-icon").remove(),b.filter(":has(.k-group)").children(".k-link:not(:has([class*=k-i-arrow]))").each(function(){var b=a(this),c=b.parent().parent();b.append("<span class='k-icon "+(c.hasClass(n+"-horizontal")?"k-i-arrow-s":"k-i-arrow-e")+"'/>")})}function N(b){b=a(b),b.addClass("k-item").children(l).addClass(u),b.children("a").addClass(o).children(l).addClass(u),b.filter(":not([disabled])").addClass(A),b.filter(".k-separator:empty").append(" "),b.filter("li[disabled]").addClass(B).removeAttr("disabled"),b.children("a").filter(":focus").parent().addClass("k-state-active"),b.children("."+o).length||b.contents().filter(function(){return!this.nodeName.match(k)&&(this.nodeType!=3||!!a.trim(this.nodeValue))}).wrapAll("<span class='"+o+"'/>"),O(b),P(b)}function M(b,c){try{return a.contains(b,c)}catch(d){return!1}}function L(a,b){a=a.split(" ")[!b+0]||a;var d={origin:["bottom","left"],position:["top","left"]},e=/left|right/.test(a);e?(d.origin=["top",a],d.position[1]=c.directions[a].reverse):(d.origin[0]=a,d.position[0]=c.directions[a].reverse),d.origin=d.origin.join(" "),d.position=d.position.join(" ");return d}function K(a,b){a=a.split(" ")[!b+0]||a;return a.replace("top","up").replace("bottom","down")}var c=window.kendo,d=c.ui,e=c.support.touch,f=a.extend,g=a.proxy,h=a.each,i=c.template,j=d.Widget,k=/^(ul|a|div)$/i,l="img",m="open",n="k-menu",o="k-link",p="k-last",q="close",r=e?"touchend":"click",s="timer",t="k-first",u="k-image",v="select",w="zIndex",x="mouseenter",y="mouseleave",z="kendoPopup",A="k-state-default",B="k-state-disabled",C=".k-group",D=":not(.k-list) > .k-item",E=".k-item.k-state-disabled",F=".k-item:not(.k-state-disabled)",G=".k-item:not(.k-state-disabled) > .k-link",H="div:not(.k-animation-container,.k-list-container)",I={content:i("<div class='k-content k-group'>#= content(item) #</div>"),group:i("<ul class='#= groupCssClass(group) #'#= groupAttributes(group) #>#= renderItems(data) #</ul>"),itemWrapper:i("<#= tag(item) # class='#= textClass(item) #'#= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) ##= arrow(data) #</#= tag(item) #>"),item:i("<li class='#= wrapperCssClass(group, item) #'>#= itemWrapper(data) ## if (item.items) { ##= subGroup({ items: item.items, menu: menu, group: { expanded: item.expanded } }) ## } #</li>"),image:i("<img class='k-image' alt='' src='#= imageUrl #' />"),arrow:i("<span class='#= arrowClass(item, group) #'></span>"),sprite:i("<span class='k-sprite #= spriteCssClass #'></span>"),empty:i("")},J={wrapperCssClass:function(a,b){var c="k-item",d=b.index;b.enabled===!1?c+=" k-state-disabled":c+=" k-state-default",a.firstLevel&&d===0&&(c+=" k-first"),d==a.length-1&&(c+=" k-last");return c},textClass:function(a){return o},textAttributes:function(a){return a.url?" href='"+a.url+"'":""},arrowClass:function(a,b){var c="k-icon";b.horizontal?c+=" k-i-arrow-s":c+=" k-i-arrow-e";return c},text:function(a){return a.encoded===!1?a.text:c.htmlEncode(a.text)},tag:function(a){return a.url?"a":"span"},groupAttributes:function(a){return a.expanded!==!0?" style='display:none'":""},groupCssClass:function(a){return"k-group"},content:function(a){return a.content?a.content:" "}},Q=j.extend({init:function(b,d){var f=this;j.fn.init.call(f,b,d),b=f.wrapper=f.element,d=f.options,d.dataSource&&(f.element.empty(),f.append(d.dataSource,b)),f._updateClasses(),d.animation===!1&&(d.animation={open:{show:!0,effects:{}},close:{hide:!0,effects:{}}}),f.nextItemZIndex=100,b.delegate(E,r,!1).delegate(F,r,g(f._click,f)),e?(d.openOnClick=!0,b.delegate(G,"touchstart touchend",f._toggleHover)):b.delegate(F,x,g(f._mouseenter,f)).delegate(F,y,g(f._mouseleave,f)).delegate(G,x+" "+y,f._toggleHover),d.openOnClick&&(f.clicked=!1,a(document).click(g(f._documentClick,f))),c.notify(f)},events:[m,q,v],options:{name:"Menu",animation:{open:{duration:200,show:!0},close:{duration:100}},orientation:"horizontal",direction:"default",openOnClick:!1,closeOnClick:!0,hoverDelay:100},enable:function(a,b){this._toggleDisabled(a,b!==!1);return this},disable:function(a){this._toggleDisabled(a,!1);return this},append:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.length?c.find("> .k-group, .k-animation-container > .k-group"):null);h(d.items,function(b){d.group.append(this);var c=d.contents[b];c&&a(this).append(c),O(this)}),O(c),P(d.group.find(".k-first, .k-last").add(d.items));return this},insertBefore:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.parent());h(d.items,function(b){c.before(this);var e=d.contents[b];e&&a(this).append(e),O(this),P(this)}),P(c);return this},insertAfter:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.parent());h(d.items,function(b){c.after(this);var e=d.contents[b];e&&a(this).append(e),O(this),P(this)}),P(c);return this},_insert:function(b,c,d){var e=this,g,h,i=[];if(!c||!c.length)d=e.element;var j=a.isPlainObject(b),k={firstLevel:d.hasClass(n),horizontal:d.hasClass(n+"-horizontal"),expanded:!0,length:d.children().length};c&&!d.length&&(d=a(Q.renderGroup({group:k})).appendTo(c)),j||a.isArray(b)?(g=a.map(j?[b]:b,function(b,c){return typeof b=="string"?a(b):a(Q.renderItem({group:k,item:f(b,{index:c})}))}),i=a.map(j?[b]:b,function(b,c){return b.content||b.contentUrl?a(Q.renderContent({item:f(b,{index:c})})):!1})):(g=a(b),h=g.find("> ul").addClass("k-group"),g=g.filter("li"),g.add(h.find("> li")).each(function(){N(this)}));return{items:g,group:d,contents:i}},remove:function(a){a=this.element.find(a);var b=this,c=a.parentsUntil(b.element,D),d=a.parent("ul");a.remove();if(d&&!d.children(D).length){var e=d.parent(".k-animation-container");e.length?e.remove():d.remove()}c.length&&(c=c.eq(0),O(c),P(c));return b},open:function(c){var d=this,e=d.options,g=e.orientation=="horizontal",h=e.direction;c=d.element.find(c),/^(top|bottom|default)$/.test(h)&&(h=g?(h+" right").replace("default","bottom"):"right"),c.siblings().find(">.k-popup:visible,>.k-animation-container>.k-popup:visible").each(function(){var b=a(this).data("kendoPopup");b&&b.close()}),c.each(function(){var c=a(this);clearTimeout(c.data(s)),c.data(s,setTimeout(function(){var a=c.find(".k-group:first:hidden"),i;if(a[0]&&d.trigger(m,{item:c[0]})===!1){c.data(w,c.css(w)),c.css(w,d.nextItemZIndex++),i=a.data(z);var j=c.parent().hasClass(n),k=j&&g,l=L(h,j),o=e.animation.open.effects,p=o!==b?o:"slideIn:"+K(h,j);i?(i=a.data(z),i.options.origin=l.origin,i.options.position=l.position,i.options.animation.open.effects=p):i=a.kendoPopup({origin:l.origin,position:l.position,collision:e.popupCollision!==b?e.popupCollision:k?"fit":"fit flip",anchor:c,appendTo:c,animation:{open:f(!0,{effects:p},e.animation.open),close:e.animation.close},close:function(a){var b=a.sender.wrapper.parent();d.trigger(q,{item:b[0]})===!1?(b.css(w,b.data(w)),b.removeData(w)):a.preventDefault()}}).data(z),i.open()}},d.options.hoverDelay))});return d},close:function(b){var c=this;b=c.element.find(b),b[0]||(b=c.element.find(">.k-item")),b.each(function(){var b=a(this);clearTimeout(b.data(s)),b.data(s,setTimeout(function(){var a=b.find(".k-group:first:visible"),c;a[0]&&(c=a.data(z),c.close())},c.options.hoverDelay))});return c},_toggleDisabled:function(b,c){b=this.element.find(b),b.each(function(){a(this).toggleClass(A,c).toggleClass(B,!c)})},_toggleHover:function(b){var d=a(c.eventTarget(b)).closest(D);d.parents("li."+B).length||d.toggleClass("k-state-hover",b.type==x||b.type=="touchstart")},_updateClasses:function(){var a=this;a.element.addClass("k-widget k-reset k-header "+n).addClass(n+"-"+a.options.orientation);var b=a.element.find("li > ul").addClass("k-group").end().find("> li,.k-group > li");b.each(function(){N(this)})},_mouseenter:function(b){var c=this,d=a(b.currentTarget),e=d.children(".k-animation-container").length||d.children(C).length;b.delegateTarget==d.parents(".k-menu")[0]&&((!c.options.openOnClick||c.clicked)&&!M(b.currentTarget,b.relatedTarget)&&e&&c.open(d),c.options.openOnClick&&c.clicked&&d.siblings().each(g(function(a,b){c.close(b)},c)))},_mouseleave:function(b){var c=this,d=a(b.currentTarget),e=d.children(".k-animation-container").length||d.children(C).length;d.parentsUntil(".k-animation-container",".k-list-container,.k-calendar-container")[0]?b.stopImmediatePropagation():!c.options.openOnClick&&!M(b.currentTarget,b.relatedTarget)&&e&&c.close(d)},_click:function(b){var d=this,f,h=a(c.eventTarget(b)),i=h.closest("."+o),j=i.attr("href"),k=h.closest(D),l=!!j&&j.charAt(j.length-1)!="#";if(!k.children(H)[0]){if(k.hasClass(B)){b.preventDefault();return}e&&k.siblings().each(g(function(a,b){d.close(b)},d)),!b.handled&&d.trigger(v,{item:k[0]})&&b.preventDefault(),b.handled=!0,d.options.closeOnClick&&!(j&&j.length>0)&&!k.children(C+",.k-animation-container").length&&d.close(i.parentsUntil(d.element,D));if((!k.parent().hasClass(n)||!d.options.openOnClick)&&!e)return;l||b.preventDefault(),d.clicked=!0,f=k.children(".k-animation-container, .k-group").is(":visible")?q:m,d[f](k)}},_documentClick:function(a){var b=this;M(b.element[0],a.target)||(b.clicked=!1)}});f(Q,{renderItem:function(a){a=f({menu:{},group:{}},a);var b=I.empty,c=a.item;return I.item(f(a,{image:c.imageUrl?I.image:b,sprite:c.spriteCssClass?I.sprite:b,itemWrapper:I.itemWrapper,arrow:c.items||c.content?I.arrow:b,subGroup:Q.renderGroup},J))},renderGroup:function(a){return I.group(f({renderItems:function(a){var b="",c=0,d=a.items,e=d?d.length:0,g=f({length:e},a.group);for(;c<e;c++)b+=Q.renderItem(f(a,{group:g,item:f({index:c},d[c])}));return b}},a,J))},renderContent:function(a){return I.content(f(a,J))}}),c.ui.plugin(Q)}(jQuery),function(a,b){function p(a){var b,c,d,e,f,g;if(a&&a.length){g=[];for(b=0,c=a.length;b<c;b++)d=a[b],f=d.text||d.value||d,e=d.value==null?d.text||d:d.value,g[b]={text:f,value:e}}return g}function o(a){var b=(a.model.fields||a.model)[a.field],d=m(b),e=b?b.validation:{},f,j=c.attr("type"),k=c.attr("bind"),n,o={name:a.field};for(f in e)n=e[f],i(f,l)>=0?o[j]=f:g(n)||(o[f]=h(n)?n.value||f:n),o[c.attr(f+"-msg")]=n.message;i(d,l)>=0&&(o[j]=d),o[k]=(d==="boolean"?"checked:":"value:")+a.field;return o}function n(b){b.find(":input:not(:button, ["+c.attr("role")+"=upload], ["+c.attr("skip")+"]), select").each(function(){var b=c.attr("bind"),d=this.getAttribute(b)||"",e=this.type==="checkbox"?"checked:":"value:",f=this.name;d.indexOf(e)===-1&&f&&(d+=(d.length?",":"")+e+f,a(this).attr(b,d))})}function m(b){b=b!=null?b:"";return b.type||a.type(b)||"string"}var c=window.kendo,d=c.ui,e=d.Widget,f=a.extend,g=a.isFunction,h=a.isPlainObject,i=a.inArray,j='<div class="k-widget k-tooltip k-tooltip-validation" style="margin:0.5em"><span class="k-icon k-warning"> </span>${message}<div class="k-callout k-callout-n"></div></div>',k="change",l=["url","email","number","date","boolean"],q={number:function(b,d){var e=o(d);a('<input type="text"/>').attr(e).appendTo(b).kendoNumericTextBox({format:d.format}),a("<span "+c.attr("for")+'="'+d.field+'" class="k-invalid-msg"/>').hide().appendTo(b)},date:function(b,d){var e=o(d);e[c.attr("format")]=d.format,a('<input type="text"/>').attr(e).appendTo(b).kendoDatePicker({format:d.format}),a("<span "+c.attr("for")+'="'+d.field+'" class="k-invalid-msg"/>').hide().appendTo(b)},string:function(b,c){var d=o(c);a('<input type="text" class="k-input k-textbox"/>').attr(d).appendTo(b)},"boolean":function(b,c){var d=o(c);a('<input type="checkbox" />').attr(d).appendTo(b)},values:function(b,d){var e=o(d);a("<select "+c.attr("text-field")+'="text"'+c.attr("value-field")+'="value"'+c.attr("source")+"='"+c.stringify(p(d.values))+"'"+c.attr("role")+'="dropdownlist"/>').attr(e).appendTo(b),a("<span "+c.attr("for")+'="'+d.field+'" class="k-invalid-msg"/>').hide().appendTo(b)}},r=e.extend({init:function(b,c){var d=this;e.fn.init.call(d,b,c),d._validateProxy=a.proxy(d._validate,d),d.refresh()},events:[k],options:{name:"Editable",editors:q,clearContainer:!0,errorTemplate:j},editor:function(a,b){var c=this,d=c.options.editors,e=h(a),g=e?a.field:a,i=c.options.model||{},j=e&&a.values,k=j?"values":m(b),l=e&&a.editor,n=l?a.editor:d[k],o=c.element.find("[data-container-for="+g+"]");n=n?n:d.string,l&&typeof a.editor=="string"&&(n=function(b){b.append(a.editor)}),o=o.length?o:c.element,n(o,f(!0,{},e?a:{field:g},{model:i}))},_validate:function(b){var d=this,e=typeof b.value=="boolean",f,g=d._validationEventInProgress,h={};h[b.field]=b.value,f=a(":input["+c.attr("bind")+'="'+(e?"checked:":"value:")+b.field+'"]',d.element);try{d._validationEventInProgress=!0,(!d.validatable.validateInput(f)||!g&&d.trigger(k,{values:h}))&&b.preventDefault()}finally{d._validationEventInProgress=!1}},end:function(){return this.validatable.validate()},destroy:function(){this.options.model.unbind("set",this._validateProxy),c.unbind(this.element),this.element.removeData("kendoValidator").removeData("kendoEditable")},refresh:function(){var d=this,e,f,i=d.options.fields||[],j=d.options.clearContainer?d.element.empty():d.element,k=d.options.model||{},l={};a.isArray(i)||(i=[i]);for(e=0,f=i.length;e<f;e++){var m=i[e],o=h(m),p=o?m.field:m,q=(k.fields||k)[p],r=q?q.validation||{}:{};for(var s in r)g(r[s])&&(l[s]=r[s]);d.editor(m,q)}n(j),c.bind(j,d.options.model),d.options.model.bind("set",d._validateProxy),d.validatable=j.kendoValidator({validateOnBlur:!1,errorTemplate:d.options.errorTemplate||b,rules:l}).data("kendoValidator"),j.find(":input:visible:first").focus()}});d.plugin(r)}(jQuery),function(a,b){function o(a){var b,c,d,e,f,g;if(a&&a.length){g=[];for(b=0,c=a.length;b<c;b++)d=a[b],f=d.text||d.value||d,e=d.value==null?d.text||d:d.value,g[b]={text:f,value:e}}return g}function n(b,c){b.filters&&(b.filters=a.grep(b.filters,function(a){n(a,c);return a.filters?a.filters.length:a.field!=c}))}var c=window.kendo,d=c.ui,e="kendoNumericTextBox",f="kendoDatePicker",g=a.proxy,h="kendoPopup",i="Is equal to",j="Is not equal to",k=d.Widget,l='<div><div class="k-filter-help-text">#=messages.info#</div><label><input type="radio" data-#=ns#bind="checked: filters[0].value" value="true" name="filters[0].value"/>#=messages.isTrue#</label><label><input type="radio" data-#=ns#bind="checked: filters[0].value" value="false" name="filters[0].value"/>#=messages.isFalse#</label><button type="submit" class="k-button">#=messages.filter#</button><button type="reset" class="k-button">#=messages.clear#</button></div>',m='<div><div class="k-filter-help-text">#=messages.info#</div><select data-#=ns#bind="value: filters[0].operator" data-#=ns#role="dropdownlist">#for(var op in operators){#<option value="#=op#">#=operators[op]#</option>#}#</select>#if(values){#<select data-#=ns#bind="value:filters[0].value" data-#=ns#text-field="text" data-#=ns#value-field="value" data-#=ns#source=\'#=kendo.stringify(values)#\' data-#=ns#role="dropdownlist" data-#=ns#option-label="#=messages.selectValue#"></select>#}else{#<input data-#=ns#bind="value:filters[0].value" class="k-textbox" type="text" data-#=ns#type="#=type#"/>#}##if(extra){#<select class="k-filter-and" data-#=ns#bind="value: logic" data-#=ns#role="dropdownlist"><option value="and">#=messages.and#</option><option value="or">#=messages.or#</option></select><select data-#=ns#bind="value: filters[1].operator" data-#=ns#role="dropdownlist">#for(var op in operators){#<option value="#=op#">#=operators[op]#</option>#}#</select>#if(values){#<select data-#=ns#bind="value:filters[1].value" data-#=ns#text-field="text" data-#=ns#value-field="value" data-#=ns#source=\'#=kendo.stringify(values)#\' data-#=ns#role="dropdownlist" data-#=ns#option-label="#=messages.selectValue#"></select>#}else{#<input data-#=ns#bind="value: filters[1].value" class="k-textbox" type="text" data-#=ns#type="#=type#"/>#}##}#<button type="submit" class="k-button">#=messages.filter#</button><button type="reset" class="k-button">#=messages.clear#</button></div>',p=k.extend({init:function(b,d){var i=this,j="string",n,p,q;k.fn.init.call(i,b,d),q=d.operators||{},b=i.element,d=i.options,d.appendToElement?i.link=a():(n=b.addClass("k-filterable").find(".k-grid-filter"),n[0]||(n=b.prepend('<a class="k-grid-filter" href="#"><span class="k-icon k-filter"/></a>').find(".k-grid-filter")),i._clickHandler=g(i._click,i),n.click(i._clickHandler)),i.dataSource=d.dataSource.bind("change",g(i.refresh,i)),i.field=d.field||b.attr(c.attr("field")),i.model=i.dataSource.reader.model,i._parse=function(a){return a+""},i.model&&i.model.fields&&(p=i.model.fields[i.field],p&&(j=p.type||"string",i._parse=g(p.parse,p))),d.values&&(j="enums"),q=q[j]||d.operators[j],i.form=a('<form class="k-filter-menu"/>'),i.form.html(c.template(j==="boolean"?l:m)({field:i.field,ns:c.ns,messages:d.messages,extra:d.extra,operators:q,type:j,values:o(d.values)})),d.appendToElement?(b.append(i.form),i.popup=i.element.closest(".k-popup").data(h)):(i.popup=i.form[h]({anchor:n,open:g(i._open,i)}).data(h),i.link=n),i.form.bind({submit:g(i._submit,i),reset:g(i._reset,i)}).find("["+c.attr("type")+"=number]").removeClass("k-textbox")[e]().end().find("["+c.attr("type")+"=date]").removeClass("k-textbox")[f](),i.refresh()},refresh:function(){var a=this,b=a.dataSource.filter()||{filters:[],logic:"and"};a.filterModel=c.observable({logic:"and",filters:[{field:a.field,operator:"eq",value:""},{field:a.field,operator:"eq",value:""}]}),c.bind(a.form,a.filterModel),a._bind(b)?a.link.addClass("k-state-active"):a.link.removeClass("k-state-active")},destroy:function(){c.unbind(this.form),this.form.remove(),this.form.removeData(h),this.link.unbind("click",this._clickHandler),this.element.removeData("kendoFilterMenu")},_bind:function(a){var b=this,c=a.filters,d,e,f=!1,g=0,h=b.filterModel,i,j;for(d=0,e=c.length;d<e;d++)j=c[d],j.field==b.field?(h.set("logic",a.logic),i=h.filters[g],i.set("value",b._parse(j.value)),i.set("operator",j.operator),g++,f=!0):j.filters&&(f=f||b._bind(j));return f},_merge:function(b){var c=this,d=b.logic||"and",e=b.filters,f,g=c.dataSource.filter()||{filters:[],logic:"and"},h,i;n(g,c.field),e=a.grep(e,function(a){return a.value!==""});for(h=0,i=e.length;h<i;h++)f=e[h],f.value=c._parse(f.value);e.length&&(g.filters.length?(b.filters=e,g.logic!=="and"&&(g.filters=[{logic:g.logic,filters:g.filters}],g.logic="and"),e.length>1?g.filters.push(b):g.filters.push(e[0])):(g.filters=e,g.logic=d));return g},filter:function(a){a=this._merge(a),a.filters.length&&this.dataSource.filter(a)},clear:function(){var b=this,c=b.dataSource.filter()||{filters:[]};c.filters=a.grep(c.filters,function(c){if(c.filters){c.filters=a.grep(c.filters,function(a){return a.field!=b.field});return c.filters.length}return c.field!=b.field}),c.filters.length||(c=null),b.dataSource.filter(c)},_submit:function(a){var b=this;a.preventDefault(),b.filter(b.filterModel.toJSON()),b.popup.close()},_reset:function(a){this.clear(),this.popup.close()},_click:function(a){a.preventDefault(),a.stopPropagation(),this.popup.toggle()},_open:function(){var b;a(".k-filter-menu").not(this.form).each(function(){b=a(this).data(h),b&&b.close()})},options:{name:"FilterMenu",extra:!0,appendToElement:!1,type:"string",operators:{string:{eq:i,neq:j,startswith:"Starts with",contains:"Contains",doesnotcontain:"Does not contain",endswith:"Ends with"},number:{eq:i,neq:j,gte:"Is greater than or equal to",gt:"Is greater than",lte:"Is less than or equal to",lt:"Is less than"},date:{eq:i,neq:j,gte:"Is after or equal to",gt:"Is after",lte:"Is before or equal to",lt:"Is before"},enums:{eq:i,neq:j}},messages:{info:"Show items with value that:",isTrue:"is true",isFalse:"is false",filter:"Filter",clear:"Clear",and:"And",or:"Or",selectValue:"-Select value-"}}});d.plugin(p)}(jQuery),function(a,b){function U(a,b){a.find(J).removeClass(E.substr(1)),a.find(K).removeClass(G.substr(1)),b.addClass(E.substr(1)),b.parentsUntil(a,p).filter(":has(.k-header)").addClass(G.substr(1))}function T(b){b=a(b),b.filter(".k-first:not(:first-child)").removeClass(r),b.filter(".k-last:not(:last-child)").removeClass(l),b.filter(":first-child").addClass(r),b.filter(":last-child").addClass(l)}function S(b){b=a(b),b.children(".k-link").children(".k-icon").remove(),b.filter(":has(.k-panel),:has(.k-content)").children(".k-link:not(:has([class*=k-i-arrow]))").each(function(){var b=a(this),c=b.parent();b.append("<span class='k-icon "+(c.hasClass(B.substr(1))?"k-i-arrow-n k-panelbar-collapse":"k-i-arrow-s k-panelbar-expand")+"'/>")})}function R(b,c){b=a(b).addClass("k-item"),b.children(j).addClass(q),b.children("a").addClass(m).children(j).addClass(q),b.filter(":not([disabled]):not([class*=k-state])").addClass("k-state-default"),b.filter("li[disabled]").addClass("k-state-disabled").removeAttr("disabled"),b.filter(":not([class*=k-state])").children("a").filter(":focus").parent().addClass(B.substr(1)),b.find(">div").addClass(u).css({display:"none"}),b.each(function(){var b=a(this);b.children("."+m).length||b.contents().filter(function(){return!this.nodeName.match(i)&&(this.nodeType!=3||!!a.trim(this.nodeValue))}).wrapAll("<span class='"+m+"'/>")}),c.find(" > li > ."+m).addClass("k-header")}var c=window.kendo,d=c.ui,e=a.extend,f=a.each,g=c.template,h=d.Widget,i=/^(ul|a|div)$/i,j="img",k="href",l="k-last",m="k-link",n="error",o="click",p=".k-item",q="k-image",r="k-first",s="expand",t="select",u="k-content",v="activate",w="collapse",x="contentUrl",y="mouseenter",z="mouseleave",A="contentLoad",B=".k-state-active",C="> .k-panel",D="> .k-content",E=".k-state-selected",F=".k-state-disabled",G=".k-state-highlighted",H=p+":not(.k-state-disabled) .k-link",I=p+".k-state-disabled .k-link",J="> li > .k-state-selected, .k-panel > li > .k-state-selected",K="> .k-state-highlighted, .k-panel > .k-state-highlighted",L="k-state-default",M=":visible",N=":empty",O="single",P={content:g("<div class='k-content'#= contentAttributes(data) #>#= content(item) #</div>"),group:g("<ul class='#= groupCssClass(group) #'#= groupAttributes(group) #>#= renderItems(data) #</ul>"),itemWrapper:g("<#= tag(item) # class='#= textClass(item, group) #'#= contentUrl(item) ##= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) ##= arrow(data) #</#= tag(item) #>"),item:g("<li class='#= wrapperCssClass(group, item) #'>#= itemWrapper(data) ## if (item.items) { ##= subGroup({ items: item.items, panelBar: panelBar, group: { expanded: item.expanded } }) ## } #</li>"),image:g("<img class='k-image' alt='' src='#= imageUrl #' />"),arrow:g("<span class='#= arrowClass(item) #'></span>"),sprite:g("<span class='k-sprite #= spriteCssClass #'></span>"),empty:g("")},Q={wrapperCssClass:function(a,b){var c="k-item",d=b.index;b.enabled===!1?c+=" k-state-disabled":b.expanded===!0?c+=" k-state-active":c+=" k-state-default",d===0&&(c+=" k-first"),d==a.length-1&&(c+=" k-last");return c},textClass:function(a,b){var c=m;b.firstLevel&&(c+=" k-header");return c},textAttributes:function(a){return a.url?" href='"+a.url+"'":""},arrowClass:function(a){var b="k-icon";b+=a.expanded?" k-i-arrow-n k-panelbar-collapse":" k-i-arrow-s k-panelbar-expand";return b},text:function(a){return a.encoded===!1?a.text:c.htmlEncode(a.text)},tag:function(a){return a.url?"a":"span"},groupAttributes:function(a){return a.expanded!==!0?" style='display:none'":""},groupCssClass:function(a){return"k-group k-panel"},contentAttributes:function(a){return a.item.expanded!==!0?" style='display:none'":""},content:function(a){return a.content?a.content:a.contentUrl?"":" "},contentUrl:function(a){return a.contentUrl?c.attr("content-url")+'="'+a.contentUrl+'"':""}},V=h.extend({init:function(b,d){var e=this,f;h.fn.init.call(e,b,d),b=e.wrapper=e.element,d=e.options,d.dataSource&&(e.element.empty(),e.append(d.dataSource,b)),e._updateClasses(),d.animation===!1&&(d.animation={expand:{show:!0,effects:{}},collapse:{hide:!0,effects:{}}}),b.delegate(H,o,a.proxy(e._click,e)).delegate(H,y+" "+z,e._toggleHover).delegate(I,o,!1),d.contentUrls&&b.find("> .k-item").each(function(b,c){a(c).find("."+m).data(x,d.contentUrls[b])}),f=b.find("li"+B+" > ."+u),f.length>0&&e.expand(f.parent(),!1),c.notify(e)},events:[s,w,t,v,n,A],options:{name:"PanelBar",animation:{expand:{effects:"expand:vertical",duration:200,show:!0},collapse:{duration:200}},expandMode:"multiple"},expand:function(b,c){var d=this,e={};c=c!==!1,b=this.element.find(b),b.each(function(f,g){g=a(g);var h=g.find(C).add(g.find(D));if(!g.hasClass(F)&&h.length>0){if(d.options.expandMode==O&&d._collapseAllExpanded(g))return d;b.find(G).removeClass(G.substr(1)),g.addClass(G.substr(1)),c||(e=d.options.animation,d.options.animation={expand:{show:!0,effects:{}},collapse:{hide:!0,effects:{}}}),d._triggerEvent(s,g)||d._toggleItem(g,!1,null),c||(d.options.animation=e)}});return d},collapse:function(b,c){var d=this,e={};c=c!==!1,b=d.element.find(b),b.each(function(b,f){f=a(f);var g=f.find(C).add(f.find(D));!f.hasClass(F)&&g.is(M)&&(f.removeClass(G.substr(1)),c||(e=d.options.animation,d.options.animation={expand:{show:!0,effects:{}},collapse:{hide:!0,effects:{}}}),d._triggerEvent(w,f)||d._toggleItem(f,!0,null),c||(d.options.animation=e))});return d},_toggleDisabled:function(a,b){a=this.element.find(a),a.toggleClass(L,b).toggleClass(F.substr(1),!b)},select:function(b){var c=this;b=c.element.find(b);if(arguments.length===0)return c.element.find(J).parent();b.each(function(b,d){d=a(d);var e=d.children("."+m);if(d.is(F))return c;U(c.element,e)});return c},enable:function(a,b){this._toggleDisabled(a,b!==!1);return this},disable:function(a){this._toggleDisabled(a,!1);return this},append:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.length?c.find(C):null);f(d.items,function(b){d.group.append(this);var c=d.contents[b];c&&a(this).append(c),T(this)}),S(c),T(d.group.find(".k-first, .k-last")),d.group.height("auto");return this},insertBefore:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.parent());f(d.items,function(b){c.before(this);var e=d.contents[b];e&&a(this).append(e),T(this)}),T(c),d.group.height("auto");return this},insertAfter:function(b,c){c=this.element.find(c);var d=this._insert(b,c,c.parent());f(d.items,function(b){c.after(this);var e=d.contents[b];e&&a(this).append(e),T(this)}),T(c),d.group.height("auto");return this},remove:function(a){a=this.element.find(a);var b=this,c=a.parentsUntil(b.element,p),d=a.parent("ul");a.remove(),d&&!d.hasClass("k-panelbar")&&!d.children(p).length&&d.remove(),c.length&&(c=c.eq(0),S(c),T(c));return b},reload:function(b){var c=this;b=c.element.find(b),b.each(function(){var b=a(this);c._ajaxRequest(b,b.children("."+u),!b.is(M))})},_insert:function(b,c,d){var f=this,g,h=[];if(!c||!c.length)d=f.element;var i=a.isPlainObject(b),j={firstLevel:d.hasClass("k-panelbar"),expanded:d.parent().hasClass("k-state-active"),length:d.children().length};c&&!d.length&&(d=a(V.renderGroup({group:j})).appendTo(c)),i||a.isArray(b)?(g=a.map(i?[b]:b,function(b,c){return typeof b=="string"?a(b):a(V.renderItem({group:j,item:e(b,{index:c})}))}),h=a.map(i?[b]:b,function(b,c){return b.content||b.contentUrl?a(V.renderContent({item:e(b,{index:c})})):!1})):(g=a(b),R(g,f.element));return{items:g,group:d,contents:h}},_toggleHover:function(b){var c=a(b.currentTarget);c.parents("li"+F).length||c.toggleClass("k-state-hover",b.type==y)},_updateClasses:function(){var b=this;b.element.addClass("k-widget k-reset k-header k-panelbar");var c=b.element.find("li > ul").not(function(){return a(this).parentsUntil(".k-panelbar","div").length}).addClass("k-group k-panel").add(b.element),d=c.find("> li:not("+B+") > ul").css({display:"none"}).end().find("> li");d.each(function(){R(this,b.element)}),S(d),T(d)},_click:function(b){var c=this,d=a(b.currentTarget),e=c.element;if(!d.parents("li"+F).length){if(d.closest(".k-widget")[0]!=e[0])return;var f=d.closest("."+m),g=f.closest(p);U(e,f);var h=g.find(C).add(g.find(D)),i=f.attr(k),j=f.data(x)||i&&(i.charAt(i.length-1)=="#"||i.indexOf("#"+c.element[0].id+"-")!=-1);if(h.data("animating"))return;c._triggerEvent(t,g)&&b.preventDefault();if(j||h.length)b.preventDefault();else return;if(c.options.expandMode==O&&c._collapseAllExpanded(g))return;if(h.length){var l=h.is(M);c._triggerEvent(l?w:s,g)||c._toggleItem(g,l,b)}}},_toggleItem:function(a,b,c){var d=this,e=a.find(C);if(e.length)this._toggleGroup(e,b),c&&c.preventDefault();else{var f=a.find("> ."+u);f.length&&(c&&c.preventDefault(),f.is(N)?d._ajaxRequest(a,f,b):d._toggleGroup(f,b))}},_toggleGroup:function(a,b){var c=this,d=c.options.animation,f=d.expand,g=e({},d.collapse),h=g&&"effects"in g;a.is(M)==b&&(a.parent().toggleClass(L,b).toggleClass(B.substr(1),!b).find("> .k-link > .k-icon").toggleClass("k-i-arrow-n",!b).toggleClass("k-panelbar-collapse",!b).toggleClass("k-i-arrow-s",b).toggleClass("k-panelbar-expand",b),b?f=e(h?g:e({reverse:!0},f),{show:!1,hide:!0}):f=e({complete:function(a){c._triggerEvent(v,a.closest(p))}},f),a.kendoStop(!0,!0).kendoAnimate(f))},_collapseAllExpanded:function(b){var c=this,d,e=!1;if(b.find("> ."+m).hasClass("k-header")){var f=b.find(C).add(b.find(D));f.is(M)&&(e=!0),!f.is(M)&&f.length!==0&&(d=a(c.element).children(),d.find(C).add(d.find(D)).filter(function(){return a(this).is(M)}).each(function(b,d){d=a(d),e=c._triggerEvent(w,d.closest(p)),e||c._toggleGroup(d,!0)}));return e}},_ajaxRequest:function(b,c,d){var e=this,f=b.find(".k-panelbar-collapse, .k-panelbar-expand"),g=b.find("."+m),h=setTimeout(function(){f.addClass("k-loading")},100),i={};a.ajax({type:"GET",cache:!1,url:g.data(x)||g.attr(k),dataType:"html",data:i,error:function(a,b){f.removeClass("k-loading"),e.trigger(n,{xhr:a,status:b})&&this.complete()},complete:function(){clearTimeout(h),f.removeClass("k-loading")},success:function(a,f){c.html(a),e._toggleGroup(c,d),e.trigger(A,{item:b[0],contentElement:c[0]})}})},_triggerEvent:function(a,b){var c=this;return c.trigger(a,{item:b[0]})}});e(V,{renderItem:function(a){a=e({panelBar:{},group:{}},a);var b=P.empty,c=a.item;return P.item(e(a,{image:c.imageUrl?P.image:b,sprite:c.spriteCssClass?P.sprite:b,itemWrapper:P.itemWrapper,arrow:c.items||c.content||c.contentUrl?P.arrow:b,subGroup:V.renderGroup},Q))},renderGroup:function(a){return P.group(e({renderItems:function(a){var b="",c=0,d=a.items,f=d?d.length:0,g=e({length:f},a.group);for(;c<f;c++)b+=V.renderItem(e(a,{group:g,item:e({index:c},d[c])}));return b}},a,Q))},renderContent:function(a){return P.content(e(a,Q))}}),c.ui.plugin(V)}(jQuery),function(a,b){function M(a){var b=a.children(".k-item");b.filter(".k-first:not(:first-child)").removeClass(t),b.filter(".k-last:not(:last-child)").removeClass(o),b.filter(":first-child").addClass(t),b.filter(":last-child").addClass(o)}function L(b){b.children(l).addClass(s),b.children("a").addClass(n).children(l).addClass(s),b.filter(":not([disabled]):not([class*=k-state-disabled])").addClass(F),b.filter("li[disabled]").addClass(E).removeAttr("disabled"),b.filter(":not([class*=k-state])").children("a").filter(":focus").parent().addClass(G+" "+I),b.each(function(){var b=a(this);b.children("."+n).length||b.contents().filter(function(){return!this.nodeName.match(k)&&(this.nodeType!=3||!!g(this.nodeValue))}).wrapAll("<a class='"+n+"'/>")})}var c=window.kendo,d=c.ui,e=a.map,f=a.each,g=a.trim,h=a.extend,i=c.template,j=d.Widget,k=/^(a|div)$/i,l="img",m="href",n="k-link",o="k-last",p="click",q="error",r=":empty",s="k-image",t="k-first",u="select",v="activate",w="k-content",x="contentUrl",y="mouseenter",z="mouseleave",A="contentLoad",B=".k-tabstrip-items > .k-item:not(.k-state-disabled)",C=".k-tabstrip-items > .k-item:not(.k-state-disabled):not(.k-state-active)",D=".k-tabstrip-items > .k-state-disabled .k-link",E="k-state-disabled",F="k-state-default",G="k-state-active",H="k-state-hover",I="k-tab-on-top",J={content:i("<div class='k-content'#= contentAttributes(data) #>#= content(item) #</div>"),itemWrapper:i("<#= tag(item) # class='k-link'#= contentUrl(item) ##= textAttributes(item) #>#= image(item) ##= sprite(item) ##= text(item) #</#= tag(item) #>"),item:i("<li class='#= wrapperCssClass(group, item) #'>#= itemWrapper(data) #</li>"),image:i("<img class='k-image' alt='' src='#= imageUrl #' />"),sprite:i("<span class='k-sprite #= spriteCssClass #'></span>"),empty:i("")},K={wrapperCssClass:function(a,b){var c="k-item",d=b.index;b.enabled===!1?c+=" k-state-disabled":c+=" k-state-default",d===0&&(c+=" k-first"),d==a.length-1&&(c+=" k-last");return c},textAttributes:function(a){return a.url?" href='"+a.url+"'":""},text:function(a){return a.encoded===!1?a.text:c.htmlEncode(a.text)},tag:function(a){return a.url?"a":"span"},contentAttributes:function(a){return a.active!==!0?" style='display:none'":""},content:function(a){return a.content?a.content:a.contentUrl?"":" "},contentUrl:function(a){return a.contentUrl?c.attr("content-url")+'="'+a.contentUrl+'"':""}},N=j.extend({init:function(b,d){var e=this;e._animations(d),j.fn.init.call(e,b,d),e.element.is("ul")?e.wrapper=e.element.wrapAll("<div />").parent():e.wrapper=e.element,d=e.options,e.wrapper.delegate(B,p,a.proxy(e._click,e)).delegate(C,y+" "+z,e._toggleHover).delegate(D,p,!1),e._updateClasses(),e._dataSource(),d.dataSource&&e.dataSource.fetch(),e.options.contentUrls&&e.wrapper.find(".k-tabstrip-items > .k-item").each(function(b,c){a(c).find(">."+n).data(x,e.options.contentUrls[b])});var f=e.wrapper.find("li."+G),g=a(e.contentElement(f.parent().children().index(f)));g.length>0&&g[0].childNodes.length===0&&e.activateTab(f.eq(0)),c.notify(e)},_dataSource:function(){var b=this;b.dataSource&&b._refreshHandler?b.dataSource.unbind("change",b._refreshHandler):b._refreshHandler=a.proxy(b.refresh,b),b.dataSource=c.data.DataSource.create(b.options.dataSource).bind("change",b._refreshHandler)},setDataSource:function(a){this.options.dataSource=a,this._dataSource(),a.fetch()},_animations:function(a){a&&"animation"in a&&!a.animation&&(a.animation={open:{effects:{},show:!0},close:{effects:{}}})},refresh:function(a){var b=this,d=b.options,e=c.getter(d.dataTextField),f=c.getter(d.dataContentField),g=c.getter(d.dataContentUrlField),h=c.getter(d.dataImageUrlField),i=c.getter(d.dataUrlField),j=c.getter(d.dataSpriteCssClass),k,l=[],m,n,o=b.dataSource.view(),p;a=a||{},n=a.action,n&&(o=a.items);for(k=0,p=o.length;k<p;k++)m={text:e(o[k])},d.dataContentField&&(m.content=f(o[k])),d.dataContentUrlField&&(m.contentUrl=g(o[k])),d.dataUrlField&&(m.url=i(o[k])),d.dataImageUrlField&&(m.imageUrl=h(o[k])),d.dataSpriteCssClass&&(m.spriteCssClass=j(o[k])),l[k]=m;if(a.action=="add")a.index<b.tabGroup.children().length?b.insertBefore(l,b.tabGroup.children().eq(a.index)):b.append(l);else if(a.action=="remove")for(k=0;k<o.length;k++)b.remove(a.index);else a.action=="itemchange"?(k=b.dataSource.view().indexOf(o[0]),a.field===d.dataTextField&&b.tabGroup.children().eq(k).find(".k-link").text(o[0].get(a.field))):(b.trigger("dataBinding"),b.append(l),b.trigger("dataBound"))},value:function(c){var d=this;if(c!==b)c!=d.value()&&d.tabGroup.children().each(function(){a.trim(a(this).text())==c&&d.select(this)});else return d.select().text()},items:function(){return this.tabGroup[0].children},setOptions:function(a){var b=this.options.animation;this._animations(a),a.animation=h(!0,b,a.animation),j.fn.setOptions.call(this,a)},events:[u,v,q,A,"change","dataBinding","dataBound"],options:{name:"TabStrip",dataTextField:"",dataContentField:"",dataImageUrlField:"",dataUrlField:"",dataSpriteCssClass:"",dataContentUrlField:"",animation:{open:{effects:"expand:vertical fadeIn",duration:200,show:!0},close:{duration:200}},collapsible:!1},select:function(b){var c=this;if(arguments.length===0)return c.wrapper.find("li."+G);isNaN(b)||(b=c.tabGroup.children().get(b)),b=c.element.find(b),a(b).each(function(b,d){d=a(d),!d.hasClass(G)&&!c.trigger(u,{item:d[0],contentElement:c.contentElement(d.index())})&&c.activateTab(d)});return c},enable:function(a,b){this._toggleDisabled(a,b!==!1);return this},disable:function(a){this._toggleDisabled(a,!1);return this},reload:function(b){b=this.tabGroup.find(b);var c=this;b.each(function(){var b=a(this),d=b.find("."+n).data(x);d&&c.ajaxRequest(b,a(c.contentElement(b.index())),null,d)});return c},append:function(a){var b=this,c=b._create(a);f(c.tabs,function(a){b.tabGroup.append(this),b.wrapper.append(c.contents[a])}),M(b.tabGroup),b._updateContentElements();return b},insertBefore:function(b,c){var d=this,e=d._create(b),g=a(d.contentElement(c.index()));f(e.tabs,function(a){c.before(this),g.before(e.contents[a])}),M(d.tabGroup),d._updateContentElements();return d},insertAfter:function(b,c){var d=this,e=d._create(b),g=a(d.contentElement(c.index()));f(e.tabs,function(a){c.after(this),g.after(e.contents[a])}),M(d.tabGroup),d._updateContentElements();return d},remove:function(b){var c=this,d=typeof b,e;d==="string"?b=c.tabGroup.find(b):d==="number"&&(b=c.tabGroup.children().eq(b)),e=a(c.contentElement(b.index())),e.remove(),b.remove(),c._updateContentElements();return c},_create:function(b){var c=a.isPlainObject(b),d=this,f,g;c||a.isArray(b)?(b=a.isArray(b)?b:[b],f=e(b,function(b,c){return a(N.renderItem({group:d.tabGroup,item:h(b,{index:c})}))}),g=e(b,function(b,c){if(b.content||b.contentUrl)return a(N.renderContent({item:h(b,{index:c})}))})):(f=a(b),g=a("<div class='"+w+"'/>"),L(f));return{tabs:f,contents:g}},_toggleDisabled:function(b,c){b=this.tabGroup.find(b),b.each(function(){a(this).toggleClass(F,c).toggleClass(E,!c)})},_updateClasses:function(){var c=this,d,e,f;c.wrapper.addClass("k-widget k-header k-tabstrip"),c.tabGroup=c.wrapper.children("ul").addClass("k-tabstrip-items k-reset"),c.tabGroup[0]||(c.tabGroup=a("<ul class='k-tabstrip-items k-reset'/>").appendTo(c.wrapper)),d=c.tabGroup.find("li").addClass("k-item"),d.length&&(e=d.filter("."+G).index(),f=e>=0?e:b,c.tabGroup.contents().filter(function(){return this.nodeType==3&&!g(this.nodeValue)}).remove()),d.eq(e).addClass(I),c.contentElements=c.wrapper.children("div"),c.contentElements.addClass(w).eq(f).addClass(G).css({display:"block"}),d.length&&(L(d),M(c.tabGroup),c._updateContentElements())},_updateContentElements:function(){var b=this,d=b.options.contentUrls||[],e=b.element.attr("id"),f=b.wrapper.children("div");b.tabGroup.find(".k-item").each(function(c){var g=f.eq(c),h=e+"-"+(c+1);!g.length&&d[c]?a("<div id='"+h+"' class='"+w+"'/>").appendTo(b.wrapper):g.attr("id",h)}),b.contentElements=b.contentAnimators=b.wrapper.children("div"),c.support.touch&&c.mobile.ui.Scroller&&(c.touchScroller(b.contentElements),b.contentElements=b.contentElements.children(".km-scroll-container"))},_toggleHover:function(b){a(b.currentTarget).toggleClass(H,b.type==y)},_click:function(b){var c=this,d=a(b.currentTarget),e=d.find("."+n),f=e.attr(m),g=c.options.collapsible,h=a(c.contentElement(d.index()));if(d.closest(".k-widget")[0]==c.wrapper[0]){if(d.is("."+E+(g?"":",."+G))){b.preventDefault();return}if(c.tabGroup.children("[data-animating], [data-in-request]").length)return;if(c.trigger(u,{item:d[0],contentElement:h[0]}))b.preventDefault();else{var i=e.data(x)||f&&(f.charAt(f.length-1)=="#"||f.indexOf("#"+c.element[0].id+"-")!=-1);if(!f||i)b.preventDefault();else return;if(g&&d.is("."+G)){c.deactivateTab(d),b.preventDefault();return}c.activateTab(d)&&b.preventDefault()}}},deactivateTab:function(a){var b=this,d=b.options.animation,e=d.open,f=h({},d.close),g=f&&"effects"in f;a=b.tabGroup.find(a),f=h(g?f:h({reverse:!0},e),{show:!1,hide:!0}),c.size(e.effects)?(a.kendoAddClass(F,{duration:e.duration}),a.kendoRemoveClass(G,{duration:e.duration})):(a.addClass(F),a.removeClass(G)),b.contentAnimators.filter("."+G).kendoStop(!0,!0).kendoAnimate(f).removeClass(G)},activateTab:function(b){b=this.tabGroup.find(b);var d=this,e=d.options.animation,f=e.open,g=h({},e.close),i=g&&"effects"in g,j=b.parent().children(),k=j.filter("."+G),l=j.index(b);g=h(i?g:h({reverse:!0},f),{show:!1,hide:!0}),c.size(f.effects)?(k.kendoRemoveClass(G,{duration:g.duration}),b.kendoRemoveClass(H,{duration:g.duration})):(k.removeClass(G),b.removeClass(H));var m=d.contentAnimators;if(m.length===0){k.removeClass(I),b.addClass(I).css("z-index"),b.addClass(G),d.trigger("change");return!1}var o=m.filter("."+G),p=a(d.contentElement(l));if(p.length===0){o.removeClass(G).kendoStop(!0,!0).kendoAnimate(g);return!1}b.attr("data-animating",!0);var q=(b.children("."+n).data(x)||!1)&&p.is(r),s=function(){k.removeClass(I),b.addClass(I).css("z-index"),c.size(f.effects)?(k.kendoAddClass(F,{duration:f.duration}),b.kendoAddClass(G,{duration:f.duration})):(k.addClass(F),b.addClass(G)),p.closest(".k-content").addClass(G).kendoStop(!0,!0).kendoAnimate(h({init:function(){d.trigger(v,{item:b[0],contentElement:p[0]})}},f,{complete:function(){b.removeAttr("data-animating")}}))},t=function(){q?d.ajaxRequest(b,p,function(){s(),d.trigger("change")}):(s(),d.trigger("change"))};o.removeClass(G),o.length?o.kendoStop(!0,!0).kendoAnimate(h({complete:t},g)):t();return!0},contentElement:function(a){if(!isNaN(a-0)){var b=this.contentElements,c=new RegExp("-"+(a+1)+"$");for(var d=0,e=b.length;d<e;d++)if(c.test(b.closest(".k-content")[d].id))return b[d]}},ajaxRequest:function(b,c,d,e){b=this.tabGroup.find(b);if(!b.find(".k-loading").length){var f=this,g=b.find("."+n),h={},i=null,j=setTimeout(function(){i=a("<span class='k-icon k-loading'/>").prependTo(g)},100);b.attr("data-in-request",!0),a.ajax({type:"GET",cache:!1,url:e||g.data(x)||g.attr(m),dataType:"html",data:h,error:function(a,c){b.removeAttr("data-animating"),f.trigger("error",{xhr:a,status:c})&&this.complete()},complete:function(){b.removeAttr("data-in-request"),clearTimeout(j),i!==null&&i.remove()},success:function(a,e){c.html(a),d&&d.call(f,c),f.trigger(A,{item:b[0],contentElement:c[0]})}})}}});h(N,{renderItem:function(a){a=h({tabStrip:{},group:{}},a);var b=J.empty,c=a.item;return J.item(h(a,{image:c.imageUrl?J.image:b,sprite:c.spriteCssClass?J.sprite:b,itemWrapper:J.itemWrapper},K))},renderContent:function(a){return J.content(h(a,K))}}),c.ui.plugin(N)}(jQuery),function(a,b){function K(a){a.preventDefault()}function J(a){var b=a.parseFormats;a.format=f(a.format||c.getCulture(a.culture).calendars.standard.patterns.t),b=y(b)?b:[b],b.splice(0,0,a.format),a.parseFormats=b}function H(a,b,c){var d=G(b),e=G(c),f;if(!a||d==e)return!0;f=G(a),d>f&&(f+=v),e<d&&(e+=v);return f>=d&&f<=e}function G(a){return a.getHours()*60*u+a.getMinutes()*u+a.getSeconds()*1e3+a.getMilliseconds()}function F(){var a=new B,b=new B(a.getFullYear(),a.getMonth(),a.getDate(),0,0,0),c=new B(a.getFullYear(),a.getMonth(),a.getDate(),12,0,0);return-1*(b.getTimezoneOffset()-c.getTimezoneOffset())}function E(a,b,c){var d=a.getTimezoneOffset(),e;a.setTime(a.getTime()+b),c||(e=a.getTimezoneOffset()-d,a.setTime(a.getTime()+e*u))}var c=window.kendo,d=c.support.touch,e=c.keys,f=c._extractFormat,g=c.ui,h=g.Widget,i="open",j="close",k="change",l=d?"touchend":"click",m="k-state-default",n="disabled",o="li",p="<span/>",q="k-state-focused",r="k-state-hover",s="mouseenter mouseleave",t="mousedown",u=6e4,v=864e5,w="k-state-selected",x="k-state-disabled",y=a.isArray,z=a.extend,A=a.proxy,B=Date,C=new B;C=new B(C.getFullYear(),C.getMonth(),C.getDate(),0,0,0);var D=function(b){var d=this;d.options=b,d.ul=a('<ul unselectable="on" class="k-list k-reset"/>').css({overflow:c.support.touch?"":"auto"}).delegate(o,l,A(d._click,d)).delegate(o,"mouseenter",function(){a(this).addClass(r)}).delegate(o,"mouseleave",function(){a(this).removeClass(r)}),d.list=a("<div class='k-list-container'/>").append(d.ul).mousedown(K),d._popup(),d.template=c.template('<li class="k-item" unselectable="on">#=data#</li>',{useWithBlock:!1})};D.prototype={current:function(c){var d=this;if(c!==b)d._current&&d._current.removeClass(w),c&&(c=a(c),c.addClass(w),d.scroll(c[0])),d._current=c;else return d._current},close:function(){this.popup.close()},open:function(){var a=this;a.ul[0].firstChild||a.bind(),a.popup.open(),a._current&&a.scroll(a._current[0])},dataBind:function(a){var b=this,d=b.options,e=d.format,f=c.toString,g=b.template,h=a.length,i=0,j,k="";for(;i<h;i++)j=a[i],H(j,d.min,d.max)&&(k+=g(f(j,e,d.culture)));b._html(k,h)},refresh:function(){var a=this,b=a.options,d=b.format,e=F(),f=e<0,g=b.min,h=b.max,i=G(g),j=G(h),k=b.interval*u,l=c.toString,m=a.template,n=new B(g),o=0,p,q="";f?p=(v+e*u)/k:p=v/k,i!=j&&(i>j&&(j+=v),p=(j-i)/k+1);for(;o<p;o++)o&&E(n,k,f),j&&G(n)>j&&(n=new B(h)),q+=m(l(n,d,b.culture));a._html(q,p)},bind:function(){var a=this,b=a.options.dates;b&&b[0]?a.dataBind(b):a.refresh()},_html:function(a,b){var c=this;c.ul[0].innerHTML=a,c._height(b),c.current(null),c.select(c._value)},scroll:function(a){if(!!a){var b=this.ul[0],c=a.offsetTop,d=a.offsetHeight,e=b.scrollTop,f=b.clientHeight,g=c+d;b.scrollTop=e>c?c:g>e+f?g-f:e}},select:function(b){var d=this,e=d.options,f=d._current;b instanceof Date&&(b=c.toString(b,e.format,e.culture)),typeof b=="string"&&(!f||f.text()!==b?(b=a.grep(d.ul[0].childNodes,function(a){return(a.textContent||a.innerText)==b}),b=b[0]?b:null):b=f),d.current(b)},toggle:function(){var a=this;a.popup.visible()?a.close():a.open()},value:function(a){var b=this;b._value=a,b.ul[0].firstChild&&b.select(a)},_click:function(b){var c=this,d=a(b.currentTarget);b.isDefaultPrevented()||(c.select(d),c.options.change(d.text(),!0),c.close())},_height:function(a){if(a){var b=this,c=b.list,d=c.parent(".k-animation-container"),e=b.options.height;c.add(d).show().height(b.ul[0].scrollHeight>e?e:"auto").hide()}},_parse:function(a){var b=this,d=b.options,e=b._value||C;if(a instanceof B)return a;a=c.parseDate(a,d.parseFormats,d.culture),a&&(a=new B(e.getFullYear(),e.getMonth(),e.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return a},_popup:function(){var a=this,b=a.list,d=a.options,e=d.anchor,f;a.popup=new g.Popup(b,z(d.popup,{anchor:e,open:d.open,close:d.close,animation:d.animation})),f=e.outerWidth()-(b.outerWidth()-b.width()),b.css({fontFamily:e.css("font-family"),width:f}),c.touchScroller(a.popup.element)},move:function(a){var b=this,c=a.keyCode,d=b.ul[0],f=b._current,g=c===e.DOWN;if(c===e.UP||g){if(a.altKey){b.toggle(g);return}g?f=f?f[0].nextSibling:d.firstChild:f=f?f[0].previousSibling:d.lastChild,f&&b.select(f),b.options.change(b._current.text()),a.preventDefault()}else if(c===e.ENTER||c===e.TAB||c===e.ESC)a.preventDefault(),f&&b.options.change(f.text(),!0),b.close()}},D.getMilliseconds=G,c.TimeView=D;var I=h.extend({init:function(a,b){var e=this;h.fn.init.call(e,a,b),a=e.element,b=e.options,J(b),e._wrapper(),e.timeView=new D(z({},b,{anchor:e.wrapper,format:b.format,change:function(b,c){c?e._change(b):a.val(b)},open:function(a){e.trigger(i)&&a.preventDefault()},close:function(a){e.trigger(j)&&a.preventDefault()}})),e._icon(),d||(a[0].type="text"),a.addClass("k-input").bind({keydown:A(e._keydown,e),focus:function(a){e._inputWrapper.addClass(q)},blur:A(e._blur,e)}).closest("form").bind("reset",function(){e.value(a[0].defaultValue)}),e.enable(!a.is("[disabled]")),e.value(b.value||a.val()),c.notify(e)},options:{name:"TimePicker",min:C,max:C,format:"",dates:[],parseFormats:[],value:null,interval:30,height:200,animation:{}},events:[i,j,k],setOptions:function(a){var b=this;h.fn.setOptions.call(b,a),J(b.options),z(b.timeView.options,b.options),b.timeView.ul[0].innerHTML=""},dataBind:function(a){y(a)&&this.timeView.dataBind(a)},enable:function(a){var b=this,c=b.element,d=b._arrow.unbind(l+" "+t),e=b._inputWrapper.unbind(s);a===!1?(e.removeClass(m).addClass(x),c.attr(n,n)):(e.removeClass(x).addClass(m).bind(s,b._toggleHover),c.removeAttr(n),d.bind(l,A(b._click,b)).bind(t,K))},close:function(){this.timeView.close()},open:function(){this.timeView.open()},min:function(a){return this._option("min",a)},max:function(a){return this._option("max",a)},value:function(a){var c=this;if(a===b)return c._value;c._old=c._update(a)},_blur:function(){var a=this;a.close(),a._change(a.element.val()),a._inputWrapper.removeClass(q)},_click:function(){var a=this,b=a.element;a.timeView.toggle(),!d&&b[0]!==document.activeElement&&b.focus()},_change:function(a){var b=this;a=b._update(a),+b._old!=+a&&(b._old=a,b.trigger(k),b.element.trigger(k))},_icon:function(){var b=this,c=b.element,d;d=c.next("span.k-select"),d[0]||(d=a('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-clock">select</span></span>').insertAfter(c)),b._arrow=d},_keydown:function(a){var b=this,c=a.keyCode,d=b.timeView;d.popup.visible()||a.altKey?d.move(a):c===e.ENTER&&b._change(b.element.val())},_option:function(a,c){var d=this,e=d.options;if(c===b)return e[a];c=d.timeView._parse(c);!c||(c=new B(c),e[a]=c,d.timeView.options[a]=c,d.timeView.bind())},_toggleHover:function(b){d||a(b.currentTarget).toggleClass(r,b.type==="mouseenter")},_update:function(a){var b=this,d=b.options,e=b.timeView._parse(a);H(e,d.min,d.max)||(e=null),b._value=e,b.element.val(e?c.toString(e,d.format,d.culture):a),b.timeView.value(e);return e},_wrapper:function(){var b=this,c=b.element,d;d=c.parents(".k-timepicker"),d[0]||(d=c.wrap(p).parent().addClass("k-picker-wrap k-state-default"),d=d.wrap(p).parent()),d[0].style.cssText=c[0].style.cssText,c.css({width:"100%",height:c[0].style.height}),b.wrapper=d.addClass("k-widget k-timepicker k-header"),b._inputWrapper=a(d[0].firstChild)}});g.plugin(I)}(jQuery),function(a,b){function K(a){var b=c.getCulture(a.culture).calendars.standard.patterns;a.format=g(a.format||b.g),a.timeFormat=g(a.timeFormat||b.t),c.DateView.normalize(a),a.parseFormats.splice(1,0,a.timeFormat)}function J(a){a.preventDefault()}var c=window.kendo,d=c.TimeView,e=c.support.touch,f=c.parseDate,g=c._extractFormat,h=c.calendar,i=h.isInRange,j=h.restrictValue,k=h.isEqualDatePart,l=d.getMilliseconds,m=c.ui,n=m.Widget,o="open",p="close",q="change",r=e?"touchend":"click",s="disabled",t="k-state-default",u="k-state-focused",v="k-state-hover",w="k-state-disabled",x="mouseenter mouseleave",y=e?"touchstart":"mousedown",z=r+" "+y,A="month",B="<span/>",C=Date,D=new C(1900,0,1),E=new C(2099,11,31),F={view:"date"},G={view:"time"},H=a.extend,I=n.extend({init:function(b,d){var f=this;n.fn.init.call(f,b,d),b=f.element,d=f.options,K(d),f._wrapper(),f._icons(),f._views(),e||(b[0].type="text"),b.addClass("k-input").bind({keydown:a.proxy(f._keydown,f),focus:function(){f._inputWrapper.addClass(u)},blur:function(){f._inputWrapper.removeClass(u),f._change(b.val()),f.close("date"),f.close("time")}}).closest("form").bind("reset",function(){f.value(b[0].defaultValue)}),f._midnight=l(d.min)+l(d.max)===0,f.enable(!b.is("[disabled]")),f.value(d.value||b.val()),c.notify(f)},options:{name:"DateTimePicker",value:null,format:"",timeFormat:"",culture:"",parseFormats:[],dates:[],min:new C(D),max:new C(E),interval:30,height:200,footer:"",start:A,depth:A,animation:{},month:{}},events:[o,p,q],setOptions:function(a){var b=this;n.fn.setOptions.call(b,a),K(b.options),H(b.dateView.options,b.options),H(b.timeView.options,b.options),b.timeView.ul[0].innerHTML=""},enable:function(a){var b=this,c=b._dateIcon.unbind(z),d=b._timeIcon.unbind(z),f=b._inputWrapper.unbind(x),g=b.element;a===!1?(f.removeClass(t).addClass(w),g.attr(s,s)):(f.addClass(t).removeClass(w).bind(x,b._toggleHover),g.removeAttr(s),c.bind({click:function(){b.toggle("date"),!e&&g[0]!==document.activeElement&&g.focus()},mousedown:J}),d.bind({click:function(){b.toggle("time"),!e&&g[0]!==document.activeElement&&g.focus()},mousedown:J}))},close:function(a){a!=="time"&&(a="date"),this[a+"View"].close()},open:function(a){a!=="time"&&(a="date"),this[a+"View"].open()},min:function(a){return this._option("min",a)},max:function(a){return this._option("max",a)},toggle:function(a){var b="timeView";a!=="time"?a="date":b="dateView",this[a+"View"].toggle(),this[b].close()},value:function(a){var c=this;if(a===b)return c._value;c._old=c._update(a)},_change:function(a){var b=this;a=b._update(a),+b._old!=+a&&(b._old=a,b.trigger(q),b.element.trigger(q))},_option:function(a,c){var d=this,e=d.options,g=d.timeView,h=g.options,i=d._value||d._old;if(c===b)return e[a];c=f(c,e.parseFormats,e.culture);if(!!c){e[a]=new C(c),d.dateView[a](c),d._midnight=l(e.min)+l(e.max)===0;if(i&&k(c,i)){if(d._midnight&&a=="max"){h[a]=E,g.dataBind([E]);return}h[a]=c}else h.max=E,h.min=D;g.bind()}},_toggleHover:function(b){e||a(b.currentTarget).toggleClass(v,b.type==="mouseenter")},_update:function(a){var b=this,d=b.options,e=d.min,g=d.max,h=b.timeView,l=f(a,d.parseFormats,d.culture),m,n,o,p;if(+l===+b._value)return l;l!==null&&k(l,e)?l=j(l,e,g):i(l,e,g)||(l=null),b._value=l,h.value(l),b.dateView.value(l),l&&(o=b._old,n=h.options,k(l,e)&&(n.min=e,n.max=E,m=!0),k(l,g)&&(b._midnight?(h.dataBind([E]),p=!0):(n.max=g,m||(n.min=D),m=!0)),!p&&(!o&&m||o&&!k(o,l))&&(m||(n.max=E,n.min=D),h.bind())),b.element.val(l?c.toString(l,d.format,d.culture):a);return l},_keydown:function(a){var b=this,d=b.dateView,e=b.timeView,f=d.popup.visible();a.altKey&&a.keyCode===c.keys.DOWN?b.toggle(f?"time":"date"):f?d.move(a):e.popup.visible()?e.move(a):a.keyCode===c.keys.ENTER&&b._change(b.element.val())},_views:function(){var a=this,b=a.options;a.dateView=new c.DateView(H({},b,{anchor:a.wrapper,change:function(){var c=this.value(),d=+c,e=+b.min,f=+b.max,g;if(d===e||d===f)g=new C(a._value),g.setFullYear(c.getFullYear()),g.setMonth(c.getMonth()),g.setDate(c.getDate()),i(g,e,f)&&(c=g);a._change(c),a.close("date")},close:function(b){a.trigger(p,F)&&b.preventDefault()},open:function(b){a.trigger(o,F)&&b.preventDefault()}})),a.timeView=new d({anchor:a.wrapper,animation:b.animation,dates:b.dates,format:b.timeFormat,culture:b.culture,height:b.height,interval:b.interval,min:new C(D),max:new C(E),parseFormats:b.parseFormats,value:b.value,change:function(d,e){d=a.timeView._parse(d),d<b.min?(d=new C(b.min),a.timeView.options.min=d):d>b.max&&(d=new C(b.max),a.timeView.options.max=d),e?(a._timeSelected=!0,a._change(d)):a.element.val(c.toString(d,b.format,b.culture))},close:function(b){a.trigger(p,G)&&b.preventDefault()},open:function(b){a.trigger(o,G)&&b.preventDefault()}})},_icons:function(){var b=this,c=b.element,d;d=c.next("span.k-select"),d[0]||(d=a('<span unselectable="on" class="k-select"><span unselectable="on" class="k-icon k-i-calendar">select</span><span unselectable="on" class="k-icon k-i-clock">select</span></span>').insertAfter(c),d=d.children()),b._dateIcon=d.eq(0),b._timeIcon=d.eq(1)},_wrapper:function(){var b=this,c=b.element,d;d=c.parents(".k-datetimepicker"),d[0]||(d=c.wrap(B).parent().addClass("k-picker-wrap k-state-default"),d=d.wrap(B).parent()),d[0].style.cssText=c[0].style.cssText,c.css({width:"100%",height:c[0].style.height}),b.wrapper=d.addClass("k-widget k-datetimepicker k-header"),b._inputWrapper=a(d[0].firstChild)}});m.plugin(I)}(jQuery),function(a,b){function K(a){var b=this;b.treeview=a,b._draggable=new d.Draggable(a.element,{filter:"div:not(.k-state-disabled) .k-in",hint:function(a){return z.dragClue({text:a.text()})},cursorOffset:{left:10,top:c.support.touch?-40/c.support.zoomLevel():10},dragstart:k(b.dragstart,b),dragcancel:k(b.dragcancel,b),drag:k(b.drag,b),dragend:k(b.dragend,b)})}function J(a,b,c){var d=a.children("div"),e=a.children("ul");a.hasClass("k-treeview")||(c=f({expanded:e.css("display")!="none",index:a.index(),enabled:!d.children(".k-in").hasClass("k-state-disabled")},c),b=f({firstLevel:a.parent().parent().hasClass(w),length:a.parent().children().length},b),a.removeClass("k-first k-last").addClass(A.wrapperCssClass(b,c)),d.removeClass("k-top k-mid k-bot").addClass(A.cssClass(b,c)),d.children(".k-in").removeClass("k-in k-state-default k-state-disabled").addClass(A.textClass(c)),e.length&&(d.children(".k-icon").removeClass("k-plus k-minus k-plus-disabled k-minus-disabled").addClass(A.toggleButtonClass(c)),e.addClass("k-group")))}function I(b){var c=b.children("div"),d=b.children("ul"),e=c.children(".k-icon"),f=c.children(".k-in"),g,h;if(!b.hasClass("k-treeview")){c.length||(c=a("<div />").prependTo(b));if(!e.length&&d.length)e=a("<span class='k-icon' />").prependTo(c);else if(!d.length||!d.children().length)e.remove(),d.remove();if(!f.length){f=a("<span class='k-in' />").appendTo(c)[0],g=c[0].nextSibling,f=c.find(".k-in")[0];while(g&&g.nodeName.toLowerCase()!="ul")h=g,g=g.nextSibling,h.nodeType==3&&(h.nodeValue=a.trim(h.nodeValue)),f.appendChild(h)}}}function H(b){return a(b).closest("[data-role=treeview]").data("kendoTreeView")}function G(a){return function(b){var c=b.children(".k-animation-container");c.length||(c=b);return c.children(a)}}var c=window.kendo,d=c.ui,e=c.data,f=a.extend,g=c.template,h=a.isArray,i=d.Widget,j=e.HierarchicalDataSource,k=a.proxy,l="select",m="expand",n="change",o="collapse",p="dragstart",q="drag",r="drop",s="dragend",t="click",u="visibility",v="k-state-hover",w="k-treeview",x=":visible",y=".k-item",z,A,B,C,D,E={text:"dataTextField",url:"dataUrlField",spriteCssClass:"dataSpriteCssClassField",imageUrl:"dataImageUrlField"},F=function(a){return typeof HTMLElement=="object"?a instanceof HTMLElement:a&&typeof a=="object"&&a.nodeType===1&&typeof a.nodeName=="string"};C=G(".k-group"),D=G(".k-group,.k-content"),z={dragClue:g("<div class='k-header k-drag-clue'><span class='k-icon k-drag-status'></span>#= text #</div>"),group:g("<ul class='#= r.groupCssClass(group) #'#= r.groupAttributes(group) #>#= renderItems(data) #</ul>")},B=i.extend({init:function(b,c){var d=this,e=".k-in:not(.k-state-selected,.k-state-disabled)",f="mouseenter",j,l=!1;h(c)&&(j=!0,c={dataSource:c}),c&&typeof c.loadOnDemand=="undefined"&&h(c.dataSource)&&(c.loadOnDemand=!1),i.prototype.init.call(d,b,c),b=d.element,c=d.options,l=b.is("ul")||b.hasClass(w),l&&(c.dataSource.list=b.is("ul")?b:b.children("ul")),d._animation(),d._accessors(),c.template&&typeof c.template=="string"?c.template=g(c.template):c.template||(c.template=d._textTemplate()),c.checkboxTemplate&&typeof c.checkboxTemplate=="string"&&(c.checkboxTemplate=g(c.checkboxTemplate)),d.templates={item:d._itemTemplate(),loading:d._loadingTemplate()},b.hasClass(w)?(d.wrapper=b,d.root=b.children("ul").eq(0)):(d._wrapper(),l&&(d.root=b,d._group(d.wrapper))),d._dataSource(l),d.wrapper.on(f,".k-in.k-state-selected",function(a){a.preventDefault()}).on(f,e,function(){a(this).addClass(v)}).on("mouseleave",e,function(){a(this).removeClass(v)}).on(t,e,k(d._nodeClick,d)).on("dblclick","div:not(.k-state-disabled) .k-in",k(d._toggleButtonClick,d)).on(t,".k-plus,.k-minus",k(d._toggleButtonClick,d)),c.dragAndDrop&&(d.dragging=new K(d)),l?d._attachUids():c.autoBind&&(d._progress(!0),d.dataSource.read())},_attachUids:function(b,d){var e=this,f,g=c.attr("uid");b=b||e.root,d=d||e.dataSource,f=d.view(),b.children("li").each(function(b,c){c=a(c).attr(g,f[b].uid),e._attachUids(c.children("ul"),f[b].children)})},_animation:function(){var a=this.options;a.animation===!1&&(a.animation={expand:{show:!0,effects:{}},collapse:{hide:!0,effects:{}}})},_dataSource:function(a){function e(a){for(var b=0;b<a.length;b++)a[b].children.read(),e(a[b].children.view())}var b=this,c=b.options,d=c.dataSource;d=h(d)?{data:d}:d,b.dataSource&&b._refreshHandler?b.dataSource.unbind(n,b._refreshHandler):b._refreshHandler=k(b.refresh,b),d.fields||(d.fields=[{field:"text"},{field:"url"},{field:"spriteCssClass"},{field:"imageUrl"}]),b.dataSource=j.create(d),a&&(b.dataSource.read(),e(b.dataSource.view())),b.dataSource.bind(n,b._refreshHandler)},events:[p,q,r,s,m,o,l],options:{name:"TreeView",dataSource:{},animation:{expand:{effects:"expand:vertical",duration:200,show:!0},collapse:{duration:100}},dragAndDrop:!1,autoBind:!0,loadOnDemand:!0},_accessors:function(){var a=this,b=a.options,d,e,f,g=a.element;for(d in E)e=b[E[d]],f=g.attr(c.attr(d+"-field")),f&&(e=f),e||(e=d),h(e)||(e=[e]),b[E[d]]=e},_fieldFor:function(a){var b=this.options[E[a]],c=b.length;return c===0?"'"+a+"'":c==1?"'"+b[0]+"'":"['"+b.join("','")+"']"+"[item.level() < "+c+" ? item.level() : "+(c-1)+"]"},_textTemplate:function(){var a=this,b=function(b){return"item["+a._fieldFor(b)+"]"},c="# var text = "+b("text")+"; #"+"# if (typeof item.encoded != 'undefined' && item.encoded === false) {#"+"#= text #"+"# } else { #"+"#: text #"+"# } #";return g(c)},_loadingTemplate:function(){return g("<div class='k-icon k-loading' /> Loading...")},_itemTemplate:function(){var a=this,b=function(b){return"item["+a._fieldFor(b)+"]"},d="<li class='#= r.wrapperCssClass(group, item) #' "+c.attr("uid")+"='#= item.uid #'"+">"+"<div class='#= r.cssClass(group, item) #'>"+"# if (item.hasChildren) { #"+"<span class='#= r.toggleButtonClass(item) #'></span>"+"# } #"+"# if (treeview.checkboxTemplate) { #"+"<span class='k-checkbox'>"+"#= treeview.checkboxTemplate(data) #"+"</span>"+"# } #"+"# var url = "+b("url")+"; #"+"# var tag = url ? 'a' : 'span'; #"+"# var textAttr = url ? ' href=\\'' + url + '\\'' : ''; #"+"<#=tag# class='#= r.textClass(item) #'#= textAttr #>"+"# var imageUrl = "+b("imageUrl")+"; #"+"# if (imageUrl) { #"+"<img class='k-image' alt='' src='#= imageUrl #'>"+"# } #"+"# var spriteCssClass = "+b("spriteCssClass")+"; #"+"# if (spriteCssClass) { #"+"<span class='k-sprite #= spriteCssClass #'></span>"+"# } #"+"#= treeview.template(data) #"+"</#=tag#>"+"</div>"+"</li>";return g(d)},setOptions:function(a){var b=this;"dragAndDrop"in a&&a.dragAndDrop&&!b.options.dragAndDrop&&(b.dragging=new K(b)),i.fn.setOptions.call(b,a),b._animation()},_trigger:function(a,b){return this.trigger(a,{node:b.closest(y)[0]})},_toggleButtonClick:function(b){this.toggle(a(b.target).closest(y))},_nodeClick:function(b){var c=this,d=a(b.target),e=D(d.closest(y)),f=d.attr("href"),g;f?g=f=="#"||f.indexOf("#"+this.element.id+"-")>=0:g=e.length&&!e.children().length,g&&b.preventDefault(),!d.hasClass(".k-state-selected")&&!c._trigger("select",d)&&c.select(d)},_wrapper:function(){var a=this,b=a.element,c,d,e="k-widget k-treeview k-reset";b.is("div")?(c=b,d=c.children("ul").eq(0)):(c=b.wrap("<div />").parent(),d=b),a.wrapper=c.addClass(e),a.root=d},_group:function(a){var b=this,c=a.hasClass(w),d={firstLevel:c,expanded:c||b._expanded(a)},e=a.children("ul");e.addClass(A.groupCssClass(d)).css("display",d.expanded?"":"none"),b._nodes(e,d)},_nodes:function(b,c){var d=this,e=b.children("li"),g;c=f({length:e.length},c),e.each(function(b,e){e=a(e),g={index:b,expanded:d._expanded(e)},I(e),J(e,c,g),d._group(e)})},_processNodes:function(b,c){var d=this;d.element.find(b).each(function(b,e){c.call(d,b,a(e).closest(y))})},dataItem:function(b){var d=a(b).closest(y).attr(c.attr("uid")),e=this.dataSource;return e&&e.getByUid(d)},_insertNode:function(b,c,d,e,f){var g=this,h=C(d),i=h.children().length+1,j,k={firstLevel:d.hasClass(w),expanded:!f,length:i},l,m,n,o="",p=function(a,b){a.appendTo(b)};for(m=0;m<b.length;m++)n=b[m],n.index=c+m,o+=g._renderItem({group:k,item:n});l=a(o);if(!!l.length){h.length||(h=a(g._renderGroup({group:k})).appendTo(d)),e(l,h),d.hasClass("k-item")&&(I(d),J(d)),J(l.prev()),J(l.next());for(m=0;m<b.length;m++)n=b[m],j=n.children.data(),j.length&&g._insertNode(j,n.index,l.eq(m),p,!g._expanded(l.eq(m)));return l}},refresh:function(a){function j(a,c,d){var e=C(c),f=e.children();typeof g=="undefined"&&(g=f.length),b._insertNode(a,g,c,function(a,b){g==f.length?a.appendTo(b):a.insertBefore(f.eq(g))},d)}var b=this,c=b.wrapper,d=a.node,e=a.action,f=a.items,g=a.index,h=b.options.loadOnDemand,i;if(!a.field){d&&(c=b.findByUid(d.uid),b._progress(c,!1)),e=="add"?j(f,c):e=="remove"?b._remove(b.findByUid(f[0].uid),!1):d?(C(c).empty(),j(f,c,!0),b._expanded(c)&&(J(c,{},{expanded:!0}),C(c).css("display","block"))):b.root=b.wrapper.html(b._renderGroup({items:f,group:{firstLevel:!0,expanded:!0}})).children("ul");if(!h)for(i=0;i<f.length;i++)f[i].load()}},expand:function(a){this._processNodes(a,function(a,b){var c=D(b);c.length>0&&!c.is(x)&&this.toggle(b)})},collapse:function(a){this._processNodes(a,function(a,b){var c=D(b);c.length>0&&c.is(x)&&this.toggle(b)})},enable:function(a,b){b=arguments.length==2?!!b:!0,this._processNodes(a,function(a,c){var d=!D(c).is(x);b||(this.collapse(c),d=!0),J(c,{},{enabled:b,expanded:!d})})},select:function(b){var c=this.element;if(!arguments.length)return c.find(".k-state-selected").closest(y);b=a(b,c).closest(y),b.length&&(c.find(".k-in").removeClass("k-state-hover k-state-selected"),b.find(".k-in:first").addClass("k-state-selected"))},toggle:function(b){b=a(b);if(!!b.find(">div>.k-icon").is(".k-minus,.k-plus,.k-minus-disabled,.k-plus-disabled")){var c=this,d=D(b),e=!d.is(x),g=c.options,h=g.animation||{},i=h.expand,j=f({},h.collapse),k=j&&"effects"in j,l=c.dataItem(b);if(d.data("animating"))return;e||(i=f(k?j:f({reverse:!0},i),{show:!1,hide:!0})),c._trigger(e?"expand":"collapse",b)||(c._expanded(b,e),d.children().length>0?(J(b,{},{expanded:e}),e||d.css("height",d.height()).css("height"),d.kendoStop(!0,!0).kendoAnimate(f(i,{complete:function(){e&&d.css("height","")}}))):l&&(g.loadOnDemand&&c._progress(b,!0),l.load()))}},_expanded:function(a,b){var d=c.attr("expanded"),e=this.dataItem(a);if(arguments.length==1)return a.attr(d)==="true"||e&&e.expanded;e&&e.set("expanded",b),b?a.attr(d,"true"):a.removeAttr(d)},_progress:function(a,b){var c=this.element;arguments.length==1?(b=a,b?c.html(this.templates.loading):c.empty()):a.find("> div > .k-icon").toggleClass("k-loading",b)},text:function(b){return a(b).closest(y).find(">div>.k-in").text()},_dataSourceMove:function(b,d,f,g){var i=this,j=H(b),k,l,m,n,o=H(f||d),p=o.dataSource;f&&(m=o.dataItem(f),m.loaded()||(m.load(),i._expanded(f,!0)),f!=i.root&&(p=m.children));if(b instanceof a||F(b))b=a(b),k=j.dataSource,l=k.getByUid(b.attr(c.attr("uid"))),l=k.remove(l),l=g(p,l);else if(h(b)||b instanceof e.ObservableArray)for(n=0;n<b.length;n++)l=g(p,b[n]);else l=g(p,b);return i.findByUid(l.uid)},insertAfter:function(a,b){var c=b.parent(),d;c.parent().is("li")&&(d=c.parent());return this._dataSourceMove(a,c,d,function(a,c){return a.insert(b.index()+1,c)})},insertBefore:function(a,b){var c=b.parent(),d;c.parent().is("li")&&(d=c.parent());return this._dataSourceMove(a,c,d,function(a,c){return a.insert(b.index(),c)})},append:function(a,b){var c=this,d=c.root;b&&(d=C(b));return c._dataSourceMove(a,d,b,function(a,d){b&&c._expanded(b,!0);return a.add(d)})},_remove:function(b,c){var d,e,f;b=a(b,this.element),d=b.parent().parent(),e=b.prev(),f=b.next(),b[c?"detach":"remove"](),d.hasClass("k-item")&&(I(d),J(d)),J(e),J(f);return b},remove:function(a){var b=this.dataItem(a);b&&this.dataSource.remove(b)},detach:function(a){return this._remove(a,!0)},findByText:function(b){return a(this.element).find(".k-in").filter(function(c,d){return a(d).text()==b}).closest(y)},findByUid:function(a){return this.element.find(".k-item["+c.attr("uid")+"="+a+"]")},_renderItem:function(a){a.group||(a.group={}),a.treeview=this.options,a.r=A;return this.templates.item(a)},_renderGroup:function(a){var b=this;a.renderItems=function(a){var c="",d=0,e=a.items,f=e?e.length:0,g=a.group;g.length=f;for(;d<f;d++)a.group=g,a.item=e[d],a.item.index=d,c+=b._renderItem(a);return c},a.r=A;return z.group(a)}}),K.prototype={_hintStatus:function(b){var c=this._draggable.hint.find(".k-drag-status")[0];if(b)c.className="k-icon k-drag-status "+b;else return a.trim(c.className.replace(/k-(icon|drag-status)/g,""))},dragstart:function(b){var c=this,d=c.treeview,e=c.sourceNode=b.currentTarget.closest(y);d.trigger(p,{sourceNode:e[0]})&&b.preventDefault(),c.dropHint=a("<div class='k-drop-hint' />").css(u,"hidden").appendTo(d.element)},drag:function(b){var d=this,e=d.treeview,f=d.sourceNode,g=d.dropTarget=a(c.eventTarget(b)),h,i,j,k,l,m,n,o,p,r;g.closest(".k-treeview").length?a.contains(f[0],g[0])?h="k-denied":(h="k-insert-middle",d.dropHint.css(u,"visible"),i=g.closest(".k-top,.k-mid,.k-bot"),i.length>0?(k=i.outerHeight(),l=i.offset().top,m=g.closest(".k-in"),n=k/(m.length>0?4:2),o=b.pageY<l+n,p=l+k-n<b.pageY,r=m.length>0&&!o&&!p,m.toggleClass(v,r),d.dropHint.css(u,r?"hidden":"visible"),r?h="k-add":(j=i.position(),j.top+=o?0:k,d.dropHint.css(j)[o?"prependTo":"appendTo"](g.closest(y).children("div:first")),o&&i.hasClass("k-top")&&(h="k-insert-top"),p&&i.hasClass("k-bot")&&(h="k-insert-bottom"))):g[0]!=d.dropHint[0]&&(h="k-denied")):h="k-denied",e.trigger(q,{sourceNode:f[0],dropTarget:g[0],pageY:b.pageY,pageX:b.pageX,statusClass:h.substring(2),setStatusClass:function(a){h=a}}),h.indexOf("k-insert")!==0&&d.dropHint.css(u,"hidden"),d._hintStatus(h)},dragcancel:function(a){this.dropHint.remove()},dragend:function(a){var b=this,c=b.treeview,d="over",e=b.sourceNode,f,g=b.dropHint,h,i;g.css(u)=="visible"?(d=g.prevAll(".k-in").length>0?"after":"before",f=g.closest(y)):b.dropTarget&&(f=b.dropTarget.closest(y)),h=b._hintStatus()!="k-denied",i=c.trigger(r,{sourceNode:e[0],destinationNode:f[0],valid:h,setValid:function(a){h=a},dropTarget:a.target,dropPosition:d}),g.remove();!h||i?b._draggable.dropped=h:(b._draggable.dropped=!0,d=="over"?(c.append(e,f),c.expand(f)):d=="before"?c.insertBefore(e,f):d=="after"&&c.insertAfter(e,f),c.trigger(s,{sourceNode:e[0],destinationNode:f[0],dropPosition:d}))}},A={wrapperCssClass:function(a,b){var c="k-item",d=b.index;a.firstLevel&&d===0&&(c+=" k-first"),d==a.length-1&&(c+=" k-last");return c},cssClass:function(a,b){var c="",d=b.index,e=a.length-1;a.firstLevel&&d===0&&(c+="k-top "),d===0&&d!=e?c+="k-top":d==e?c+="k-bot":c+="k-mid";return c},textClass:function(a){var b="k-in";a.enabled===!1&&(b+=" k-state-disabled"),a.selected===!0&&(b+=" k-state-selected");return b},toggleButtonClass:function(a){var b="k-icon";a.expanded!==!0?b+=" k-plus":b+=" k-minus",a.enabled===!1&&(b+="-disabled");return b},groupAttributes:function(a){return a.expanded!==!0?" style='display:none'":""},groupCssClass:function(a){var b="k-group";a.firstLevel&&(b+=" k-treeview-lines");return b}},d.plugin(B)}(jQuery),function(a,b){function R(a){return typeof a!==F}function P(a,c){var d=h(a.getAttribute(c));d===null&&(d=b);return d}function O(a){a=parseFloat(a,10);var b=k.pow(10,D||0);return k.round(a*b)/b}function N(a){return(a+"").replace(".",c.cultures.current.numberFormat["."])}function M(a){return function(){return a}}function L(a){return function(b){return b+a}}function K(a){var b=a.is("input")?1:2;return"<div class='k-slider-track'><div class='k-slider-selection'><!-- --></div><a href='#' class='k-draghandle' title='Drag'>Drag</a>"+(b>1?"<a href='#' class='k-draghandle' title='Drag'>Drag</a>":"")+"</div>"}function J(a,b){var c="<ul class='k-reset k-slider-items'>",d=k.floor(O(b/a.smallStep))+1,e;for(e=0;e<d;e++)c+="<li class='k-tick'> </li>";c+="</ul>";return c}function I(a,b,c){var d="";b=="increase"?d=c?"k-i-arrow-e":"k-i-arrow-n":d=c?"k-i-arrow-w":"k-i-arrow-s";return"<a class='k-button k-button-"+b+"'><span class='k-icon "+d+"' title='"+a[b+"ButtonTitle"]+"'>"+a[b+"ButtonTitle"]+"</span></a>"}function H(a,b,c){var d=c?" k-slider-horizontal":" k-slider-vertical",e=a.style?a.style:b.attr("style"),f=b.attr("class")?" "+b.attr("class"):"",g="";a.tickPlacement=="bottomRight"?g=" k-slider-bottomright":a.tickPlacement=="topLeft"&&(g=" k-slider-topleft"),e=e?" style='"+e+"'":"";return"<div class='k-widget k-slider"+d+f+"'"+e+">"+"<div class='k-slider-wrap"+(a.showButtons?" k-slider-buttons":"")+g+"'></div></div>"}var c=window.kendo,d=c.ui.Widget,e=c.ui.Draggable,f=a.extend,g=c.format,h=c.parseFloat,i=a.proxy,j=a.isArray,k=Math,l=c.support,m=l.touch,n=l.pointers,o="change",p="slide",q=m?"touchstart":"mousedown",r=m?"touchstart":n?"MSPointerDown":"mousedown",s=m?"touchend":"mouseup",t="moveSelection",u="keydown",v="click",w="mouseover",x=".k-draghandle",y=".k-slider-track",z=".k-tick",A="k-state-selected",B="k-state-default",C="k-state-disabled",D=3,E="disabled",F="undefined",G=d.extend({init:function(a,b){var e=this;d.fn.init.call(e,a,b),b=e.options,e._distance=b.max-b.min,e._isHorizontal=b.orientation=="horizontal",e._position=e._isHorizontal?"left":"bottom",e._size=e._isHorizontal?"width":"height",e._outerSize=e._isHorizontal?"outerWidth":"outerHeight",b.tooltip.format=b.tooltip.enabled?b.tooltip.format||"{0}":"{0}",e._createHtml(),e.wrapper=e.element.closest(".k-slider"),e._trackDiv=e.wrapper.find(y),e._setTrackDivWidth(),e._maxSelection=e._trackDiv[e._size]();var f=e._maxSelection/((b.max-b.min)/b.smallStep),g=e._calculateItemsWidth(k.floor(e._distance/b.smallStep));b.tickPlacement!="none"&&f>=2&&(e._trackDiv.before(J(b,e._distance)),e._setItemsWidth(g),e._setItemsTitle(),e._setItemsLargeTick()),e._calculateSteps(g),e[b.enabled?"enable":"disable"](),e._keyMap={37:L(-b.smallStep),40:L(-b.smallStep),39:L(+b.smallStep),38:L(+b.smallStep),35:M(b.max),36:M(b.min),33:L(+b.largeStep),34:L(-b.largeStep)},c.notify(e)},events:[o,p],options:{enabled:!0,min:0,max:10,smallStep:1,largeStep:5,orientation:"horizontal",tickPlacement:"both",tooltip:{enabled:!0,format:"{0}"}},_setTrackDivWidth:function(){var a=this,b=parseFloat(a._trackDiv.css(a._position),10)*2;a._trackDiv[a._size](a.wrapper[a._size]()-2-b)},_setItemsWidth:function(b){var c=this,d=c.options,e=0,f=b.length-1,g=c.wrapper.find(z),h,i=0,j=2,k=g.length,l=0;for(h=0;h<k-2;h++)a(g[h+1])[c._size](b[h]);c._isHorizontal?(a(g[e]).addClass("k-first")[c._size](b[f-1]),a(g[f]).addClass("k-last")[c._size](b[f])):(a(g[f]).addClass("k-first")[c._size](b[f]),a(g[e]).addClass("k-last")[c._size](b[f-1]));if(c._distance%d.smallStep!==0&&!c._isHorizontal){for(h=0;h<b.length;h++)l+=b[h];i=c._maxSelection-l,i+=parseFloat(c._trackDiv.css(c._position),10)+j,c.wrapper.find(".k-slider-items").css("padding-top",i)}},_setItemsTitle:function(){var b=this,c=b.options,d=b.wrapper.find(z),e=c.min,f=d.length,h=b._isHorizontal?0:f-1,i=b._isHorizontal?f:-1,j=b._isHorizontal?1:-1;for(;h-i!==0;h+=j)a(d[h]).attr("title",g(c.tooltip.format,O(e))),e+=c.smallStep},_setItemsLargeTick:function(){var b=this,c=b.options,d,e=b.wrapper.find(z),f={},g=O(c.largeStep/c.smallStep);if(1e3*c.largeStep%(1e3*c.smallStep)===0)if(b._isHorizontal)for(d=0;d<e.length;d=O(d+g))f=a(e[d]),f.addClass("k-tick-large").html("<span class='k-label'>"+f.attr("title")+"</span>");else for(d=e.length-1;d>=0;d=O(d-g))f=a(e[d]),f.addClass("k-tick-large").html("<span class='k-label'>"+f.attr("title")+"</span>"),d!==0&&d!==e.length-1&&f.css("line-height",f[b._size]()+"px")},_calculateItemsWidth:function(a){var b=this,c=b.options,d=parseFloat(b._trackDiv.css(b._size))+1,e=d/b._distance,f,g,h;b._distance/c.smallStep-k.floor(b._distance/c.smallStep)>0&&(d-=b._distance%c.smallStep*e),f=d/a,g=[];for(h=0;h<a-1;h++)g[h]=f;g[a-1]=g[a]=f/2;return b._roundWidths(g)},_roundWidths:function(a){var b=0,c=a.length,d;for(d=0;d<c;d++)b+=a[d]-k.floor(a[d]),a[d]=k.floor(a[d]);b=k.round(b);return this._addAdditionalSize(b,a)},_addAdditionalSize:function(a,b){if(a===0)return b;var c=parseFloat(b.length-1)/parseFloat(a==1?a:a-1),d;for(d=0;d<a;d++)b[parseInt(k.round(c*d),10)]+=1;return b},_calculateSteps:function(a){var b=this,c=b.options,d=c.min,e=0,f=k.ceil(b._distance/c.smallStep),g=1,h;f+=b._distance/c.smallStep%1===0?1:0,a.splice(0,0,a[f-2]*2),a.splice(f-1,1,a.pop()*2),b._pixelSteps=[e],b._values=[d];if(f!==0){while(g<f)e+=(a[g-1]+a[g])/2,b._pixelSteps[g]=e,b._values[g]=d+=c.smallStep,g++;h=b._distance%c.smallStep===0?f-1:f,b._pixelSteps[h]=b._maxSelection,b._values[h]=c.max}},_getValueFromPosition:function(a,b){var c=this,d=c.options,e=k.max(d.smallStep*(c._maxSelection/c._distance),0),f=0,g=e/2,h;c._isHorizontal?f=a-b.startPoint:f=b.startPoint-a;if(c._maxSelection-(parseInt(c._maxSelection%e,10)-3)/2<f)return d.max;for(h=0;h<c._pixelSteps.length;h++)if(k.abs(c._pixelSteps[h]-f)-1<=g)return O(c._values[h])},_getDragableArea:function(){var a=this,b=a._trackDiv.offset().left,c=a._trackDiv.offset().top;return{startPoint:a._isHorizontal?b:c+a._maxSelection,endPoint:a._isHorizontal?b+a._maxSelection:c}},_createHtml:function(){var a=this,b=a.element,c=a.options,d=b.find("input");d.length==2?(d.eq(0).val(c.selectionStart),d.eq(1).val(c.selectionEnd)):b.val(c.value),b.wrap(H(c,b,a._isHorizontal)).hide(),c.showButtons&&b.before(I(c,"increase",a._isHorizontal)).before(I(c,"decrease",a._isHorizontal)),b.before(K(b))}}),Q=function(a){return{idx:0,x:a.pageX,y:a.pageY}};l.pointers&&(Q=function(a){return{idx:0,x:a.originalEvent.clientX,y:a.originalEvent.clientY}}),l.touch&&(Q=function(b,c){var d=b.changedTouches||b.originalEvent.changedTouches;if(c){var e=null;a.each(d,function(a,b){c==b.identifier&&(e={idx:b.identifier,x:b.pageX,y:b.pageY})});return e}return{idx:d[0].identifier,x:d[0].pageX,y:d[0].pageY}});var S=G.extend({init:function(c,d){var e=this,g;c.type="text",d=f({},{value:P(c,"value"),min:P(c,"min"),max:P(c,"max"),smallStep:P(c,"step")},d),c=a(c),d&&d.enabled===b&&(d.enabled=!c.is("[disabled]")),G.fn.init.call(e,c,d),d=e.options,R(d.value)||(d.value=d.min,c.val(d.min)),g=e.wrapper.find(x),new S.Selection(g,e,d),e._drag=new S.Drag(g,"",e,d)},options:{name:"Slider",showButtons:!0,increaseButtonTitle:"Increase",decreaseButtonTitle:"Decrease",tooltip:{format:"{0}"}},enable:function(b){var d=this,e=d.options,f,g;d.disable();if(b!==!1){d.wrapper.removeClass(C).addClass(B),d.wrapper.find("input").removeAttr(E),f=function(b){var c=Q(b),e=d._isHorizontal?c.x:c.y,f=d._getDragableArea(),g=a(b.target);g.hasClass("k-draghandle")?g.addClass(A):(d._update(d._getValueFromPosition(e,f)),d._drag.dragstart(b))},d.wrapper.find(z+", "+y).bind(r,f).end().bind(r,function(){a(document.documentElement).one("selectstart",c.preventDefault)}),d.wrapper.find(x).bind(s,function(b){a(b.target).removeClass(A)}).bind(v,function(a){a.preventDefault()}),g=i(function(a){d._setValueInRange(d._nextValueByIndex(d._valueIndex+a*1))},d);if(e.showButtons){var h=i(function(a,b){if(a.which===1||m&&a.which===0)g(b),this.timeout=setTimeout(i(function(){this.timer=setInterval(function(){g(b)},60)},this),200)},d);d.wrapper.find(".k-button").bind(s,i(function(a){this._clearTimer()},d)).bind(w,function(b){a(b.currentTarget).addClass("k-state-hover")}).bind("mouseout",i(function(b){a(b.currentTarget).removeClass("k-state-hover"),this._clearTimer()},d)).eq(0).bind(q,i(function(a){h(a,1)},d)).click(!1).end().eq(1).bind(q,i(function(a){h(a,-1)},d)).click(!1)}d.wrapper.find(x).bind(u,i(this._keydown,d)),e.enabled=!0}},disable:function(){var b=this;b.wrapper.removeClass(B).addClass(C),a(b.element).attr(E,E),b.wrapper.find(".k-button").unbind(q).bind(q,c.preventDefault).unbind(s).bind(s,c.preventDefault).unbind("mouseleave").bind("mouseleave",c.preventDefault).unbind(w).bind(w,c.preventDefault),b.wrapper.find(z+", "+y).unbind(r),b.wrapper.find(x).unbind(s).unbind(u).unbind(v).bind(u,!1),b.options.enabled=!1},_update:function(a){var b=this,c=b.value()!=a;b.value(a),c&&b.trigger(o,{value:b.options.value})},value:function(a){var b=this,c=b.options;a=O(a);if(isNaN(a))return c.value;a>=c.min&&a<=c.max&&c.value!=a&&(b.element.attr("value",N(a)),c.value=a,b._refresh())},_refresh:function(){this.trigger(t,{value:this.options.value})},_clearTimer:function(a){clearTimeout(this.timeout),clearInterval(this.timer)},_keydown:function(a){var b=this;a.keyCode in b._keyMap&&(b._setValueInRange(b._keyMap[a.keyCode](b.options.value)),a.preventDefault())},_setValueInRange:function(a){var b=this,c=b.options;a=O(a);isNaN(a)?b._update(c.min):(a=k.max(k.min(a,c.max),c.min),b._update(a))},_nextValueByIndex:function(a){var b=this._values.length;return this._values[k.max(0,k.min(a,b-1))]}});S.Selection=function(a,b,c){function d(d){var e=d-c.min,f=b._valueIndex=k.ceil(O(e/c.smallStep)),g=parseInt(b._pixelSteps[f],10),h=b._trackDiv.find(".k-slider-selection"),i=parseInt(a[b._outerSize]()/2,10);h[b._size](g),a.css(b._position,g-i)}d(c.value),b.bind([o,p,t],function(a){d(parseFloat(a.value,10))})},S.Drag=function(a,b,c,d){var f=this;f.owner=c,f.options=d,f.dragHandle=a,f.dragHandleSize=a[c._outerSize](),f.type=b,f.draggable=new e(a,{threshold:0,dragstart:i(f._dragstart,f),drag:i(f.drag,f),dragend:i(f.dragend,f),dragcancel:i(f.dragcancel,f)}),a.click(!1)},S.Drag.prototype={dragstart:function(a){this.draggable.drag._start(a)},_dragstart:function(b){var d=this,e=d.owner,f=d.options,h=f.tooltip,i="",j,l,m;f.enabled?(e.element.unbind(w),d.dragHandle.addClass(A),d.dragableArea=e._getDragableArea(),d.step=k.max(f.smallStep*(e._maxSelection/e._distance),0),d.type?(d.selectionStart=f.selectionStart,d.selectionEnd=f.selectionEnd,e._setZIndex(d.type)):d.oldVal=d.val=f.value,h.enabled&&(h.template&&(j=d.tooltipTemplate=c.template(h.template)),d.tooltipDiv=a("<div class='k-widget k-tooltip'><!-- --></div>").appendTo(document.body),d.type?d.tooltipTemplate?i=j({selectionStart:d.selectionStart,selectionEnd:d.selectionEnd}):(l=g(h.format,d.selectionStart),m=g(h.format,d.selectionEnd),i=l+" - "+m):(d.tooltipInnerDiv="<div class='k-callout k-callout-"+(e._isHorizontal?"s":"e")+"'><!-- --></div>",d.tooltipTemplate?i=j({value:d.val}):i=g(h.format,d.val),i+=d.tooltipInnerDiv),d.tooltipDiv.html(i),d.moveTooltip())):b.preventDefault()},drag:function(a){var b=this,c=b.owner,d=b.options,e=a.x.location,f=a.y.location,h=b.dragableArea.startPoint,i=b.dragableArea.endPoint,j=d.tooltip,k="",l=b.tooltipTemplate,m,n,o;a.preventDefault(),c._isHorizontal?b.val=b.constrainValue(e,h,i,e>=i):b.val=b.constrainValue(f,i,h,f<=i),b.oldVal!=b.val&&(b.oldVal=b.val,b.type?(b.type=="firstHandle"?b.val<b.selectionEnd?b.selectionStart=b.val:b.selectionStart=b.selectionEnd=b.val:b.val>b.selectionStart?b.selectionEnd=b.val:b.selectionStart=b.selectionEnd=b.val,m={values:[b.selectionStart,b.selectionEnd],value:[b.selectionStart,b.selectionEnd]}):m={value:b.val},c.trigger(p,m),j.enabled&&(b.type?b.tooltipTemplate?k=l({selectionStart:b.selectionStart,selectionEnd:b.selectionEnd}):(n=g(j.format,b.selectionStart),o=g(j.format,b.selectionEnd),k=n+" - "+o):(b.tooltipTemplate?k=l({value:b.val}):k=g(j.format,b.val),k+=b.tooltipInnerDiv),b.tooltipDiv.html(k),b.moveTooltip()))},dragcancel:function(a){this.owner._refresh();return this._end()},dragend:function(a){var b=this,c=b.owner;b.type?c._update(b.selectionStart,b.selectionEnd):c._update(b.val);return b._end()},_end:function(){var a=this,b=a.owner;b.options.tooltip.enabled&&b.options.enabled&&a.tooltipDiv.remove(),a.dragHandle.removeClass(A),b.element.bind(w);return!1},moveTooltip:function(){var a=this,b=a.owner,c=0,d=0,e=a.dragHandle.offset(),f=4,g=a.tooltipDiv.find(".k-callout"),h,i,j;a.type?(h=b.wrapper.find(x),i=h.eq(0).offset(),j=h.eq(1).offset(),b._isHorizontal?(c=j.top,d=i.left+(j.left-i.left)/2):(c=i.top+(j.top-i.top)/2,d=j.left)):(c=e.top,d=e.left),b._isHorizontal?(d-=parseInt((a.tooltipDiv.outerWidth()-a.dragHandle[b._outerSize]())/2,10),c-=a.tooltipDiv.outerHeight()+g.height()+f):(c-=parseInt((a.tooltipDiv.outerHeight()-a.dragHandle[b._outerSize]())/2,10),d-=a.tooltipDiv.outerWidth()+g.width()+f),a.tooltipDiv.css({top:c,left:d})},constrainValue:function(a,b,c,d){var e=this,f=0;b<a&&a<c?f=e.owner._getValueFromPosition(a,e.dragableArea):d?f=e.options.max:f=e.options.min;return f}},c.ui.plugin(S);var T=G.extend({init:function(c,d){var e=this,g=a(c).find("input"),h=g.eq(0)[0],i=g.eq(1)[0];h.type="text",i.type="text",d=f({},{selectionStart:P(h,"value"),min:P(h,"min"),max:P(h,"max"),smallStep:P(h,"step")},{selectionEnd:P(i,"value"),min:P(i,"min"),max:P(i,"max"),smallStep:P(i,"step")},d),d&&d.enabled===b&&(d.enabled=!g.is("[disabled]")),G.fn.init.call(e,c,d),d=e.options,R(d.selectionStart)||(d.selectionStart=d.min,g.eq(0).val(d.min)),R(d.selectionEnd)||(d.selectionEnd=d.max,g.eq(1).val(d.max));var j=e.wrapper.find(x);new T.Selection(j,e,d),e._firstHandleDrag=new S.Drag(j.eq(0),"firstHandle",e,d),e._lastHandleDrag=new S.Drag(j.eq(1),"lastHandle",e,d)},options:{name:"RangeSlider",tooltip:{format:"{0}"}},enable:function(b){var d=this,e=d.options,f;d.disable();b!==!1&&(d.wrapper.removeClass(C).addClass(B),d.wrapper.find("input").removeAttr(E),f=function(b){var c=Q(b),f=d._isHorizontal?c.x:c.y,g=d._getDragableArea(),h=d._getValueFromPosition(f,g),i=a(b.target);i.hasClass("k-draghandle")?i.addClass(A):h<e.selectionStart?(d._setValueInRange(h,e.selectionEnd),d._firstHandleDrag.dragstart(b)):h>d.selectionEnd?(d._setValueInRange(e.selectionStart,h),d._lastHandleDrag.dragstart(b)):h-e.selectionStart<=e.selectionEnd-h?(d._setValueInRange(h,e.selectionEnd),d._firstHandleDrag.dragstart(b)):(d._setValueInRange(e.selectionStart,h),d._lastHandleDrag.dragstart(b))},d.wrapper.find(z+", "+y).bind(r,f).end().bind(r,function(){a(document.documentElement).one("selectstart",c.preventDefault)}),d.wrapper.find(x).bind(s,function(b){a(b.target).removeClass(A)}).bind(v,function(a){a.preventDefault()}),d.wrapper.find(x).eq(0).bind(u,i(function(a){this._keydown(a,"firstHandle")},d)).end().eq(1).bind(u,i(function(a){this._keydown(a,"lastHandle")},d)),d.options.enabled=!0)},disable:function(){var a=this;a.wrapper.removeClass(B).addClass(C),a.wrapper.find("input").attr(E,E),a.wrapper.find(z+", "+y).unbind(r),a.wrapper.find(x).unbind(s).unbind(u).unbind(v).bind(u,c.preventDefault),a.options.enabled=!1},_keydown:function(a,b){var c=this,d=c.options.selectionStart,e=c.options.selectionEnd;a.keyCode in c._keyMap&&(b=="firstHandle"?(d=c._keyMap[a.keyCode](d),d>e&&(e=d)):(e=c._keyMap[a.keyCode](e),d>e&&(d=e)),c._setValueInRange(d,e),a.preventDefault())},_update:function(a,b){var c=this,d=c.value(),e=d[0]!=a||d[1]!=b;c.value([a,b]),e&&c.trigger(o,{values:[a,b],value:[a,b]})},value:function(a){return a&&a.length?this._value(a[0],a[1]):this._value()},_value:function(a,b){var c=this,d=c.options,e=d.selectionStart,f=d.selectionEnd;if(isNaN(a)&&isNaN(b))return[e,f];a=O(a),b=O(b),a>=d.min&&a<=d.max&&b>=d.min&&b<=d.max&&a<=b&&(e!=a||f!=b)&&(c.element.find("input").eq(0).attr("value",N(a)).end().eq(1).attr("value",N(b)),d.selectionStart=a,d.selectionEnd=b,c._refresh())},values:function(a,b){return j(a)?this._value(a[0],a[1]):this._value(a,b)},_refresh:function(){var a=this,b=a.options;a.trigger(t,{values:[b.selectionStart,b.selectionEnd],value:[b.selectionStart,b.selectionEnd]}),b.selectionStart==b.max&&b.selectionEnd==b.max&&a._setZIndex("firstHandle")},_setValueInRange:function(a,b){var c=this.options;a=k.max(k.min(a,c.max),c.min),b=k.max(k.min(b,c.max),c.min),a==c.max&&b==c.max&&this._setZIndex("firstHandle"),this._update(k.min(a,b),k.max(a,b))},_setZIndex:function(b){this.wrapper.find(x).each(function(c){a(this).css("z-index",b=="firstHandle"?1-c:c)})}});T.Selection=function(a,b,c){function e(a,c){var d=0,e=0,f=b._trackDiv.find(".k-slider-selection");d=k.abs(a-c),e=a<c?a:c,f[b._size](d),f.css(b._position,e-1)}function d(d){d=d||[];var f=d[0]-c.min,g=d[1]-c.min,h=k.ceil(O(f/c.smallStep)),i=k.ceil(O(g/c.smallStep)),j=b._pixelSteps[h],l=b._pixelSteps[i],m=parseInt(a.eq(0)[b._outerSize]()/2,10);a.eq(0).css(b._position,j-m).end().eq(1).css(b._position,l-m),e(j,l)}d(b.value()),b.bind([o,p,t],function(a){d(a.values)})},c.ui.plugin(T)}(jQuery),function(a,b){function D(a){var b=this,d=a.orientation;b.owner=a,b._element=a.element,b.orientation=d,e(b,d===o?C:B),b._resizable=new c.ui.Resizable(a.element,{orientation:d,handle:a.element.children(".k-splitbar-draggable-"+d),hint:f(b._createHint,b),start:f(b._start,b),max:f(b._max,b),min:f(b._min,b),invalidClass:"k-restricted-size-"+d,resizeend:f(b._stop,b)})}function z(b,c){return function(d,e){var f=a(d).data(s);if(arguments.length==1)return f[b];f[b]=e;if(c){var g=this.element.data("kendoSplitter");g.trigger(m)}}}function y(a){return!w(a)&&!x(a)}function x(a){return h.test(a)}function w(a){return i.test(a)}var c=window.kendo,d=c.ui,e=a.extend,f=a.proxy,g=d.Widget,h=/^\d+(\.\d+)?px$/i,i=/^\d+(\.\d+)?%$/i,j="expand",k="collapse",l="contentLoad",m="resize",n="layoutChange",o="horizontal",p="vertical",q="mouseenter",r="click",s="pane",t="mouseleave",u="k-"+s,v="."+u,A=g.extend({init:function(b,c){var d=this,e=function(){d.trigger(m)};g.fn.init.call(d,b,c),d.wrapper=d.element,d.orientation=d.options.orientation.toLowerCase()!=p?o:p,d.bind(m,f(d._resize,d)),d._initPanes(),d._attachEvents(),a(window).resize(e),d.resizing=new D(d),d.element.triggerHandler("init.kendoSplitter")},events:[j,k,l,m,n],_attachEvents:function(){var b=this,c=b.options.orientation,d=".k-splitbar-draggable-"+c,e=".k-splitbar .k-icon:not(.k-resize-handle)",g=function(){b.trigger(m)};b.element.delegate(d,q,function(){a(this).addClass("k-splitbar-"+b.orientation+"-hover")}).delegate(d,t,function(){a(this).removeClass("k-splitbar-"+b.orientation+"-hover")}).delegate(d,"mousedown",function(){b._contentFrames(this).after("<div class='k-overlay' />")}).delegate(d,"mouseup",function(){b._contentFrames(this).next(".k-overlay").remove()}).delegate(e,q,function(){a(this).addClass("k-state-hover")}).delegate(e,t,function(){a(this).removeClass("k-state-hover")}).delegate(".k-splitbar .k-collapse-next, .k-splitbar .k-collapse-prev",r,b._arrowClick(k)).delegate(".k-splitbar .k-expand-next, .k-splitbar .k-expand-prev",r,b._arrowClick(j)).delegate(".k-splitbar","dblclick",f(b._dbclick,b)).parent().closest(".k-splitter").each(function(){var b=a(this),c=b.data("kendoSplitter");c?c.bind(m,g):b.one("init.kendoSplitter",function(){a(this).data("kendoSplitter").bind(m,g),g()})})},options:{name:"Splitter",orientation:o},_initPanes:function(){var b=this,c=b.options.panes||[];b.element.addClass("k-widget").addClass("k-splitter").children().addClass(u).each(function(d,e){var f=c&&c[d];e=a(e),e.data(s,f?f:{}).toggleClass("k-scrollable",f?f.scrollable!==!1:!0),b.ajaxRequest(e)}).end(),b.trigger(m)},ajaxRequest:function(b,d,e){b=a(b);var f=this,g=b.data(s);d=d||g.contentUrl,d&&(b.append("<span class='k-icon k-loading k-pane-loading' />"),c.isLocalUrl(d)?a.ajax({url:d,data:e||{},type:"GET",dataType:"html",success:function(a){b.html(a),f.trigger(l,{pane:b[0]})}}):b.removeClass("k-scrollable").html("<iframe src='"+d+"' frameborder='0' class='k-content-frame'>"+"This page requires frames in order to show content"+"</iframe>"))},_triggerAction:function(a,b){this.trigger(a,{pane:b[0]})||this[a](b[0])},_dbclick:function(b){var c=this,d=a(b.target),e;if(d.closest(".k-splitter")[0]==c.element[0]){e=d.children(".k-icon:not(.k-resize-handle)");if(e.length!==1)return;e.is(".k-collapse-prev")?c._triggerAction(k,d.prev()):e.is(".k-collapse-next")?c._triggerAction(k,d.next()):e.is(".k-expand-prev")?c._triggerAction(j,d.prev()):e.is(".k-expand-next")&&c._triggerAction(j,d.next())}},_arrowClick:function(b){var c=this;return function(d){var e=a(d.target),f;e.closest(".k-splitter")[0]==c.element[0]&&(e.is(".k-"+b+"-prev")?f=e.parent().prev():f=e.parent().next(),c._triggerAction(b,f))}},_updateSplitBar:function(a,b,c){var d=function(a,b){return b?"<div class='k-icon "+a+"' />":""},e=this.orientation,f=b.resizable!==!1&&c.resizable!==!1,g=b.collapsible,h=b.collapsed,i=c.collapsible,j=c.collapsed;a.addClass("k-splitbar k-state-default k-splitbar-"+e).removeClass("k-splitbar-"+e+"-hover").toggleClass("k-splitbar-draggable-"+e,f&&!h&&!j).toggleClass("k-splitbar-static-"+e,!f&&!g&&!i).html(d("k-collapse-prev",g&&!h&&!j)+d("k-expand-prev",g&&h&&!j)+d("k-resize-handle",f)+d("k-collapse-next",i&&!j&&!h)+d("k-expand-next",i&&j&&!h))},_updateSplitBars:function(){var b=this;this.element.children(".k-splitbar").each(function(){var c=a(this),d=c.prev(v).data(s),e=c.next(v).data(s);!e||b._updateSplitBar(c,d,e)})},_contentFrames:function(b){return a(b).siblings(v).find("> .k-content-frame")},_resize:function(){var b=this,c=b.element,d=c.children(":not(.k-splitbar)"),e=b.orientation==o,f=c.children(".k-splitbar"),g=f.length,h=e?"width":"height",i=c[h]();g===0?(g=d.length-1,d.slice(0,g).after("<div class='k-splitbar' />"),b._updateSplitBars(),f=c.children(".k-splitbar")):b._updateSplitBars(),f.each(function(){i-=this[e?"offsetWidth":"offsetHeight"]});var j=0,k=0,l=a();d.css({position:"absolute",top:0})[h](function(){var b=a(this).data(s)||{},c;if(b.collapsed)c=0,a(this).css("overflow","hidden");else{if(y(b.size)){l=l.add(this);return}c=parseInt(b.size,10),w(b.size)&&(c=Math.floor(c*i/100))}k++,j+=c;return c}),i-=j;var m=l.length,p=Math.floor(i/m);l.slice(0,m-1).css(h,p).end().eq(m-1).css(h,i-(m-1)*p);var q=0,r=e?"height":"width",t=e?"left":"top",u=e?"offsetWidth":"offsetHeight";if(m===0){var v=d.filter(function(){return!(a(this).data(s)||{}).collapsed}).last();v[h](i+v[0][u])}c.children().css(r,c[r]()).each(function(a,b){b.style[t]=Math.floor(q)+"px",q+=b[u]}),b.trigger(n)},toggle:function(c,d){var e;c=a(c),e=c.data(s),arguments.length==1&&(d=e.collapsed===b?!1:e.collapsed),e.collapsed=!d,e.collapsed?c.css("overflow","hidden"):c.css("overflow",""),this.trigger(m)},collapse:function(a){this.toggle(a,!1)},expand:function(a){this.toggle(a,!0)},size:z("size",!0),min:z("min"),max:z("max")});d.plugin(A);var B={sizingProperty:"height",sizingDomProperty:"offsetHeight",alternateSizingProperty:"width",positioningProperty:"top",mousePositioningProperty:"pageY"},C={sizingProperty:"width",sizingDomProperty:"offsetWidth",alternateSizingProperty:"height",positioningProperty:"left",mousePositioningProperty:"pageX"};D.prototype={_createHint:function(b){var c=this;return a("<div class='k-ghost-splitbar k-ghost-splitbar-"+c.orientation+" k-state-default' />").css(c.alternateSizingProperty,b[c.alternateSizingProperty]())},_start:function(b){var c=this,d=a(b.currentTarget),e=d.prev(),f=d.next(),g=e.data(s),h=f.data(s),i=parseInt(e[0].style[c.positioningProperty],10),j=parseInt(f[0].style[c.positioningProperty],10)+f[0][c.sizingDomProperty]-d[0][c.sizingDomProperty],k=c._element.css(c.sizingProperty),l=function(a){var b=parseInt(a,10);return(x(a)?b:k*b/100)||0},m=l(g.min),n=l(g.max)||j-i,o=l(h.min),p=l(h.max)||j-i;c.previousPane=e,c.nextPane=f,c._maxPosition=Math.min(j-o,i+n),c._minPosition=Math.max(i+m,j-p)},_max:function(a){return this._maxPosition},_min:function(a){return this._minPosition},_stop:function(b){var d=this,e=a(b.currentTarget),f=d.owner;f._contentFrames(e).next(".k-overlay").remove();if(b.keyCode!==c.keys.ESC){var g=b.position,h=e.prev(),i=e.next(),j=h.data(s),k=i.data(s),l=g-parseInt(h[0].style[d.positioningProperty],10),n=parseInt(i[0].style[d.positioningProperty],10)+i[0][d.sizingDomProperty]-g-e[0][d.sizingDomProperty],o=d._element.children(v).filter(function(){return y(a(this).data(s).size)}).length;if(!y(j.size)||o>1)y(j.size)&&o--,j.size=l+"px";if(!y(k.size)||o>1)k.size=n+"px";f.trigger(m)}return!1}}}(jQuery),function(a,b){function F(){var c={},d=a("meta[name=csrf-token]").attr("content"),e=a("meta[name=csrf-param]").attr("content");a("input[name^='__RequestVerificationToken']").each(function(){c[this.name]=this.value}),e!==b&&d!==b&&(c[e]=d);return c}function E(b){return a(b.target).closest(".k-file")}function D(a){return a.children(".k-icon").is(".k-loading, .k-success, .k-fail")}function C(a,b,c){var d,e;a.bind("dragenter",function(a){b(),e=new Date,d||(d=setInterval(function(){var a=new Date-e;a>100&&(c(),clearInterval(d),d=null)},100))}).bind("dragover",function(a){e=new Date})}function B(a){a.stopPropagation(),a.preventDefault()}function A(b,c,d){var e=!1,f="";try{f=a.parseJSON(b),e=!0}catch(g){d()}e&&c(f)}function z(b,c,d){if(!!c._supportsRemove()){var f=b.data("fileNames"),g=a.map(f,function(a){return a.name});c._submitRemove(g,d,function(a,d,e){c._removeFileEntry(b),c.trigger(i,{operation:"remove",files:f,response:a,XMLHttpRequest:e})},function(a,b,b){var d=c.trigger(j,{operation:"remove",files:f,XMLHttpRequest:a});e("Server response: "+a.responseText)})}}function y(a){var b=a.lastIndexOf("\\");return b!=-1?a.substr(b+1):a}function x(a){var b=a.match(f);return b?b[0]:""}function w(a){var b=a.name||a.fileName;return{name:b,extension:x(b),size:a.size||a.fileSize,rawFile:a}}function v(b){return a.map(b,function(a){return w(a)})}function u(a){var b=a[0];return b.files?v(b.files):[{name:y(b.value),extension:x(b.value),size:null}]}function t(b){return a.map(u(b),function(a){return a.name}).join(", ")}var c=window.kendo,d=c.ui.Widget,e=c.logToConsole,f=/\.([^\.]+)$/,g="select",h="upload",i="success",j="error",k="complete",l="cancel",m="load",n="progress",o="remove",p=d.extend({init:function(c,e){var f=this;d.fn.init.call(f,c,e),f.name=c.name,f.multiple=f.options.multiple,f.localization=f.options.localization;var g=f.element;f.wrapper=g.closest(".k-upload"),f.wrapper.length==0&&(f.wrapper=f._wrapInput(g)),f._activeInput(g),f.toggle(f.options.enabled),g.closest("form").bind({submit:a.proxy(f._onParentFormSubmit,f),reset:a.proxy(f._onParentFormReset,f)}),f.options.async.saveUrl!=b?(f._module=f._supportsFormData()?new s(f):new r(f),f._async=!0):f._module=new q(f),f._supportsDrop()&&f._setupDropZone(),f.wrapper.delegate(".k-upload-action","click",a.proxy(f._onFileAction,f)).delegate(".k-upload-selected","click",a.proxy(f._onUploadSelected,f)).delegate(".k-file","t:progress",a.proxy(f._onFileProgress,f)).delegate(".k-file","t:upload-success",a.proxy(f._onUploadSuccess,f)).delegate(".k-file","t:upload-error",a.proxy(f._onUploadError,f))},events:[g,h,i,j,k,l,n,o],options:{name:"Upload",enabled:!0,multiple:!0,showFileList:!0,async:{removeVerb:"POST",autoUpload:!0},localization:{select:"Select...",cancel:"Cancel",retry:"Retry",remove:"Remove",uploadSelectedFiles:"Upload files",dropFilesHere:"drop files here to upload",statusUploading:"uploading",statusUploaded:"uploaded",statusFailed:"failed"}},setOptions:function(a){var b=this,c=b.element;d.fn.setOptions.call(b,a),b.multiple=b.options.multiple,c.attr("multiple",b._supportsMultiple()?b.multiple:!1),b.toggle(b.options.enabled)},enable:function(a){a=typeof a=="undefined"?!0:a,this.toggle(a)},disable:function(){this.toggle(!1)},toggle:function(a){a=typeof a=="undefined"?a:!a,this.wrapper.toggleClass("k-state-disabled",a)},_addInput:function(b){var c=this;b.insertAfter(c.element).data("kendoUpload",c),a(c.element).hide().removeAttr("id"),c._activeInput(b)},_activeInput:function(b){var c=this,d=c.wrapper;c.element=b,b.attr("multiple",c._supportsMultiple()?c.multiple:!1).attr("autocomplete","off").click(function(a){d.hasClass("k-state-disabled")&&a.preventDefault()}).change(a.proxy(c._onInputChange,c))},_onInputChange:function(b){var c=this,d=a(b.target),e=c.trigger(g,{files:u(d)});e?(c._addInput(d.clone().val("")),d.remove()):d.trigger("t:select")},_onDrop:function(b){var c=b.originalEvent.dataTransfer,d=this,e=c.files;B(b);if(e.length>0){var f=d.trigger(g,{files:v(e)});f||a(".k-dropzone",d.wrapper).trigger("t:select",[e])}},_enqueueFile:function(b,c){var d=this,e,f,g=a(".k-upload-files",d.wrapper);g.length==0&&(g=a("<ul class='k-upload-files k-reset'></ul>").appendTo(d.wrapper),d.options.showFileList||g.hide()),e=a(".k-file",g),f=a("<li class='k-file'><span class='k-filename' title='"+b+"'>"+b+"</span></li>").appendTo(g).data(c),d._async&&f.prepend("<span class='k-icon'></span>"),d.multiple||e.trigger("t:remove");return f},_removeFileEntry:function(b){var c=b.closest(".k-upload-files"),d;b.remove(),d=a(".k-file",c),d.find("> .k-fail").length===d.length&&this._hideUploadButton(),d.length==0&&c.remove()},_fileAction:function(a,b){var c={remove:"k-delete",cancel:"k-cancel",retry:"k-retry"};!c.hasOwnProperty(b)||(this._clearFileAction(a),a.append(this._renderAction(c[b],this.localization[b]).addClass("k-upload-action")))},_fileState:function(a,b){var c=this.localization,d={uploading:{cssClass:"k-loading",text:c.statusUploading},uploaded:{cssClass:"k-success",text:c.statusUploaded},failed:{cssClass:"k-fail",text:c.statusFailed}},e=d[b];if(e){var f=a.children(".k-icon").text(e.text);f[0].className="k-icon "+e.cssClass}},_renderAction:function(b,c){return b!=""?a("<button type='button' class='k-button k-button-icontext'><span class='k-icon "+b+"'></span>"+c+"</button>"):a("<button type='button' class='k-button'>"+c+"</button>")},_clearFileAction:function(a){a.find(".k-upload-action").remove()},_onFileAction:function(b){var c=this;if(!c.wrapper.hasClass("k-state-disabled")){var d=a(b.target).closest(".k-upload-action"),e=d.find(".k-icon"),f=d.closest(".k-file"),g={files:f.data("fileNames")};e.hasClass("k-delete")?c.trigger(o,g)||f.trigger("t:remove",g.data):e.hasClass("k-cancel")?(c.trigger(l,g),f.trigger("t:cancel"),this._checkAllComplete()):e.hasClass("k-retry")&&f.trigger("t:retry")}return!1},_onUploadSelected:function(){this.wrapper.trigger("t:saveSelected");return!1},_onFileProgress:function(b,c){var d=a(".k-progress-status",b.target);d.length==0&&(d=a("<span class='k-progress'><span class='k-state-selected k-progress-status' style='width: 0;'></span></span>").appendTo(a(".k-filename",b.target)).find(".k-progress-status")),d.width(c+"%"),this.trigger(n,{files:E(b).data("fileNames"),percentComplete:c})},_onUploadSuccess:function(a,b,c){var d=E(a);this._fileState(d,"uploaded"),this.trigger(i,{files:d.data("fileNames"),response:b,operation:"upload",XMLHttpRequest:c}),this._supportsRemove()?this._fileAction(d,o):this._clearFileAction(d),this._checkAllComplete()},_onUploadError:function(a,b){var c=E(a);this._fileState(c,"failed"),this._fileAction(c,"retry");var d=this.trigger(j,{operation:"upload",files:c.data("fileNames"),XMLHttpRequest:b});e("Server response: "+b.responseText),this._checkAllComplete()},_showUploadButton:function(){var b=a(".k-upload-selected",this.wrapper);b.length==0&&(b=this._renderAction("",this.localization.uploadSelectedFiles).addClass("k-upload-selected")),this.wrapper.append(b)},_hideUploadButton:function(){a(".k-upload-selected",this.wrapper).remove()},_onParentFormSubmit:function(){var b=this,c=b.element;c.trigger("t:abort");if(!c.value){var d=a(c);d.attr("disabled","disabled"),window.setTimeout(function(){d.removeAttr("disabled")},0)}},_onParentFormReset:function(){a(".k-upload-files",this.wrapper).remove()},_supportsFormData:function(){return typeof FormData!="undefined"},_supportsMultiple:function(){return!a.browser.opera},_supportsDrop:function(){var a=this._userAgent().toLowerCase(),c=/chrome/.test(a),d=!c&&/safari/.test(a),e=d&&/windows/.test(a);return!e&&this._supportsFormData()&&this.options.async.saveUrl!=b},_userAgent:function(){return navigator.userAgent},_setupDropZone:function(){a(".k-upload-button",this.wrapper).wrap("<div class='k-dropzone'></div>");var b=a(".k-dropzone",this.wrapper).append(a("<em>"+this.localization.dropFilesHere+"</em>")).bind({dragenter:B,dragover:function(a){a.preventDefault()},drop:a.proxy(this._onDrop,this)});C(b,function(){b.addClass("k-dropzone-hovered")},function(){b.removeClass("k-dropzone-hovered")}),C(a(document),function(){b.addClass("k-dropzone-active")},function(){b.removeClass("k-dropzone-active")})},_supportsRemove:function(){return this.options.async.removeUrl!=b},_submitRemove:function(b,c,d,e){var f=this,g=f.options.async.removeField||"fileNames",h=a.extend(c,F());h[g]=b,a.ajax({type:this.options.async.removeVerb,dataType:"json",url:this.options.async.removeUrl,traditional:!0,data:h,success:d,error:e})},_wrapInput:function(a){a.wrap("<div class='k-widget k-upload'><div class='k-button k-upload-button'></div></div>"),a.closest(".k-button").append("<span>"+this.localization.select+"</span>");return a.closest(".k-upload")},_checkAllComplete:function(){a(".k-file .k-icon.k-loading",this.wrapper).length==0&&this.trigger(k)}}),q=function(b){this.name="syncUploadModule",this.element=b.wrapper,this.upload=b,this.element.bind("t:select",a.proxy(this.onSelect,this)).bind("t:remove",a.proxy(this.onRemove,this)).closest("form").attr("enctype","multipart/form-data").attr("encoding","multipart/form-data")};q.prototype={onSelect:function(b){var c=this.upload,d=a(b.target);c._addInput(d.clone().val(""));var e=c._enqueueFile(t(d),{relatedInput:d,fileNames:u(d)});c._fileAction(e,o)},onRemove:function(a){var b=E(a);b.data("relatedInput").remove(),this.upload._removeFileEntry(b)}};var r=function(b){this.name="iframeUploadModule",this.element=b.wrapper,this.upload=b,this.iframes=[],this.element.bind("t:select",a.proxy(this.onSelect,this)).bind("t:cancel",a.proxy(this.onCancel,this)).bind("t:retry",a.proxy(this.onRetry,this)).bind("t:remove",a.proxy(this.onRemove,this)).bind("t:saveSelected",a.proxy(this.onSaveSelected,this)).bind("t:abort",a.proxy(this.onAbort,this))};p._frameId=0,r.prototype={onSelect:function(b){var c=this.upload,d=a(b.target),e=this.prepareUpload(d);c.options.async.autoUpload?this.performUpload(e):(c._supportsRemove()&&this.upload._fileAction(e,o),c._showUploadButton())},prepareUpload:function(b){var c=this.upload,d=a(c.element),e=c.options.async.saveField||b.attr("name");c._addInput(b.clone().val("")),b.attr("name",e);var f=this.createFrame(c.name+"_"+p._frameId++);this.registerFrame(f);var g=this.createForm(c.options.async.saveUrl,f.attr("name")).append(d),h=c._enqueueFile(t(b),{frame:f,relatedInput:d,fileNames:u(b)});f.data({form:g,file:h});return h},performUpload:function(b){var c={files:b.data("fileNames")},d=b.data("frame"),e=this.upload;if(!e.trigger(h,c)){e._hideUploadButton(),d.appendTo(document.body);var f=d.data("form").appendTo(document.body);c.data=a.extend({},c.data,F());for(var g in c.data){var i=f.find("input[name='"+g+"']");i.length==0&&(i=a("<input>",{type:"hidden",name:g}).appendTo(f)),i.val(c.data[g])}e._fileAction(b,l),e._fileState(b,"uploading"),d.one("load",a.proxy(this.onIframeLoad,this)),f[0].submit()}else e._removeFileEntry(d.data("file")),this.cleanupFrame(d),this.unregisterFrame(d)},onSaveSelected:function(b){var c=this;a(".k-file",this.element).each(function(){var b=a(this),d=D(b);d||c.performUpload(b)})},onIframeLoad:function(b){var c=a(b.target);try{var d=c.contents().text()}catch(b){d="Error trying to get server response: "+b}this.processResponse(c,d)},processResponse:function(b,c){var d=b.data("file"),e=this,f={responseText:c};A(c,function(c){a.extend(f,{statusText:"OK",status:"200"}),d.trigger("t:progress",[100]),d.trigger("t:upload-success",[c,f]),e.cleanupFrame(b),e.unregisterFrame(b)},function(){a.extend(f,{statusText:"error",status:"500"}),d.trigger("t:upload-error",[f])})},onCancel:function(b){var c=a(b.target).data("frame");this.stopFrameSubmit(c),this.cleanupFrame(c),this.unregisterFrame(c),this.upload._removeFileEntry(c.data("file"))},onRetry:function(a){var b=E(a);this.performUpload(b)},onRemove:function(a,b){var c=E(a),d=c.data("frame");d?(this.unregisterFrame(d),this.upload._removeFileEntry(c),this.cleanupFrame(d)):z(c,this.upload,b)},onAbort:function(){var b=this.element,c=this;a.each(this.iframes,function(){a("input",this.data("form")).appendTo(b),c.stopFrameSubmit(this[0]),this.data("form").remove(),this.remove()}),this.iframes=[]},createFrame:function(b){return a("<iframe name='"+b+"'"+" id='"+b+"'"+" style='display:none;' />")},createForm:function(b,c){return a("<form enctype='multipart/form-data' method='POST' action='"+b+"'"+" target='"+c+"'"+"/>")},stopFrameSubmit:function(a){typeof a.stop!="undefined"?a.stop():a.document&&(a.document.execCommand("Stop"),a.contentWindow.location.href=a.contentWindow.location.href)},registerFrame:function(a){this.iframes.push(a)},unregisterFrame:function(b){this.iframes=a.grep(this.iframes,function(a){return a.attr("name")!=b.attr("name")})},cleanupFrame:function(a){var b=a.data("form");a.data("file").data("frame",null),setTimeout(function(){b.remove(),a.remove()},1)}};var s=function(b){this.name="formDataUploadModule",this.element=b.wrapper,this.upload=b,this.element.bind("t:select",a.proxy(this.onSelect,this)).bind("t:cancel",a.proxy(this.onCancel,this)).bind("t:remove",a.proxy(this.onRemove,this)).bind("t:retry",a.proxy(this.onRetry,this)).bind("t:saveSelected",a.proxy(this.onSaveSelected,this)).bind("t:abort",a.proxy(this.onAbort,this))};s.prototype={onSelect:function(b,c){var d=this.upload,e=this,f=a(b.target),g=c?v(c):this.inputFiles(f),h=this.prepareUpload(f,g);a.each(h,function(){d.options.async.autoUpload?e.performUpload(this):(d._supportsRemove()&&d._fileAction(this,o),d._showUploadButton())})},prepareUpload:function(b,c){var d=this.enqueueFiles(c);b.is("input")&&(a.each(d,function(){a(this).data("relatedInput",b)}),b.data("relatedFileEntries",d),this.upload._addInput(b.clone().val("")));return d},enqueueFiles:function(a){var b=this.upload;fileEntries=[];for(var c=0;c<a.length;c++){var d=a[c],e=d.name,f=b._enqueueFile(e,{fileNames:[d]});f.data("file",d),fileEntries.push(f)}return fileEntries},inputFiles:function(a){return u(a)},performUpload:function(b){var c=this.upload,d=this.createFormData(b.data("file")),e={files:b.data("fileNames")};if(!c.trigger(h,e)){c._fileAction(b,l),c._hideUploadButton(),e.data=a.extend({},e.data,F());for(var f in e.data)d.append(f,e.data[f]);c._fileState(b,"uploading"),this.postFormData(this.upload.options.async.saveUrl,d,b)}else this.removeFileEntry(b)},onSaveSelected:function(b){var c=this;a(".k-file",this.element).each(function(){var b=a(this),d=D(b);d||c.performUpload(b)})},onCancel:function(a){var b=E(a);this.stopUploadRequest(b),this.removeFileEntry(b)},onRetry:function(a){var b=E(a);this.performUpload(b)},onRemove:function(a,b){var c=E(a);c.children(".k-icon").is(".k-success")?z(c,this.upload,b):this.removeFileEntry(c)},postFormData:function(a,b,c){var d=new XMLHttpRequest,e=this;c.data("request",d),d.addEventListener("load",function(a){e.onRequestSuccess.call(e,a,c)},!1),d.addEventListener(j,function(a){e.onRequestError.call(e,a,c)},!1),d.upload.addEventListener("progress",function(a){e.onRequestProgress.call(e,a,c)},!1),d.open("POST",a),d.withCredentials="true",d.send(b)},createFormData:function(a){var b=new FormData,c=this.upload;b.append(c.options.async.saveField||c.name,a.rawFile);return b},onRequestSuccess:function(a,b){function e(){b.trigger("t:upload-error",[c])}var c=a.target,d=this;c.status>=200&&c.status<=299?A(c.responseText,function(a){b.trigger("t:progress",[100]),b.trigger("t:upload-success",[a,c]),d.cleanupFileEntry(b)},e):e()},onRequestError:function(a,b){var c=a.target;b.trigger("t:upload-error",[c])},cleanupFileEntry:function(b){var c=b.data("relatedInput"),d=!0;c&&(a.each(c.data("relatedFileEntries")||[],function(){this.parent().length>0&&this[0]!=b[0]&&(d=d&&this.children(".k-icon").is(".k-success"))}),d&&c.remove())},removeFileEntry:function(a){this.cleanupFileEntry(a),this.upload._removeFileEntry(a)},onRequestProgress:function(a,b){var c=Math.round(a.loaded*100/a.total);b.trigger("t:progress",[c])},stopUploadRequest:function(a){a.data("request").abort()}},c.ui.plugin(p)}(jQuery),function(a,b){function Q(a){var b=this;b.owner=a,b._draggable=new e(a.wrapper,{filter:n,group:a.wrapper.id+"-moving",dragstart:g(b.dragstart,b),drag:g(b.drag,b),dragend:g(b.dragend,b),dragcancel:g(b.dragcancel,b)})}function P(a){var b=this;b.owner=a,b._draggable=new e(a.wrapper,{filter:p,group:a.wrapper.id+"-resizing",dragstart:g(b.dragstart,b),drag:g(b.drag,b),dragend:g(b.dragend,b)})}function N(a,b){return function(){var a=this,c=a.wrapper,d=c[0].style,e=a.options;if(!e.isMaximized&&!e.isMinimized){a.restoreOptions={width:d.width,height:d.height},c.find(p).hide().end().find(I).parent().hide().eq(0).before(l.action({name:"Restore"})),b.call(a);return a}}}function M(){return a(m).filter(function(){var b=a(this);return b.is(u)&&L(b).options.modal}).sort(function(b,c){return+a(b).css("zIndex")- +a(c).css("zIndex")})}function L(a){return a.children(o).data("kendoWindow")}function K(a,b,c){return Math.max(Math.min(a,c),b)}var c=window.kendo,d=c.ui.Widget,e=c.ui.Draggable,f=a.isPlainObject,g=a.proxy,h=a.extend,i=a.each,j=c.template,k="body",l,m=".k-window",n=".k-window-titlebar",o=".k-window-content",p=".k-resize-handle",q=".k-overlay",r="k-content-frame",s="k-loading",t="k-state-hover",u=":visible",v="hidden",w="cursor",x="open",y="activate",z="deactivate",A="close",B="refresh",C="resize",D="dragstart",E="dragend",F="error",G="overflow",H="zIndex",I=".k-window-actions .k-i-minimize,.k-window-actions .k-i-maximize",J=c.isLocalUrl,O=d.extend({init:function(b,e){var h=this,j,k,o,p,q=!1,r;d.fn.init.call(h,b,e),e=h.options,b=h.element,r=e.content,h.appendTo=a(e.appendTo||document.body),h._animations(),f(r)||(r=e.content={url:r}),b.parent().is(h.appendTo)||(b.is(u)?(k=b.offset(),q=!0):(o=b.css("visibility"),p=b.css("display"),b.css({visibility:v,display:""}),k=b.offset(),b.css({visibility:o,display:p}))),typeof e.visible=="undefined"&&(e.visible=b.is(u)),j=h.wrapper=b.closest(m);if(!b.is(".k-content")||!j[0])b.addClass("k-window-content k-content"),h._createWindow(b,e),j=h.wrapper=b.closest(m),h._dimensions();k&&j.css({top:k.top,left:k.left}),r&&h.refresh(r),h.toFront(),e.visible&&e.modal&&h._overlay(j.is(u)).css({opacity:.5}),j.on({mouseenter:function(){a(this).addClass(t)},mouseleave:function(){a(this).removeClass(t)},click:g(h._windowActionHandler,h)},".k-window-titlebar .k-window-action"),e.resizable&&(j.on("dblclick",n,g(h.toggleMaximization,h)),i("n e s w se sw ne nw".split(" "),function(a,b){j.append(l.resizeHandle(b))}),h.resizing=new P(h)),e.draggable&&(h.dragging=new Q(h)),j.add(j.find(".k-resize-handle,.k-window-titlebar")).on("mousedown",g(h.toFront,h)),h.touchScroller=c.touchScroller(b),a(window).resize(g(h._onDocumentResize,h)),e.visible&&(h.trigger(x),h.trigger(y)),c.notify(h)},_dimensions:function(){var a=this,b=a.wrapper,c=a.element,d=a.options;a.title(d.title),d.width&&b.width(d.width),d.height&&b.height(d.height),i(["minWidth","minHeight","maxWidth","maxHeight"],function(a,b){var e=d[b];e&&e!=Infinity&&c.css(b,e)}),d.visible||b.hide()},_animations:function(){var a=this.options;a.animation===!1&&(a.animation={open:{show:!0,effects:{}},close:{hide:!0,effects:{}}})},setOptions:function(a){d.fn.setOptions.call(this,a),this._animations(),this._dimensions()},events:[x,y,z,A,B,C,D,E,F],options:{name:"Window",animation:{open:{effects:{zoom:{direction:"in"},fade:{direction:"in"}},duration:350,show:!0},close:{effects:{zoom:{direction:"out",properties:{scale:.7}},fade:{direction:"out"}},duration:350,hide:!0}},title:"",actions:["Close"],modal:!1,resizable:!0,draggable:!0,minWidth:90,minHeight:50,maxWidth:Infinity,maxHeight:Infinity},_overlay:function(b){var c=this.appendTo.children(".k-overlay"),d=this.wrapper;c.length||(c=a("<div class='k-overlay' />")),c.insertBefore(d[0]).toggle(b).css(H,parseInt(d.css(H),10)-1);return c},_windowActionHandler:function(b){var c=a(b.target).closest(".k-window-action").find(".k-icon"),d=this;i({"k-i-close":d.close,"k-i-maximize":d.maximize,"k-i-minimize":d.minimize,"k-i-restore":d.restore,"k-i-refresh":d.refresh},function(a,e){if(c.hasClass(a)){b.preventDefault(),e.call(d);return!1}})},center:function(){var b=this.wrapper,c=a(window);b.css({left:c.scrollLeft()+Math.max(0,(c.width()-b.width())/2),top:c.scrollTop()+Math.max(0,(c.height()-b.height())/2)});return this},title:function(a){var b=this,c=b.wrapper,d=b.options,e=c.find(n),f=e.children(".k-window-title"),g=e.outerHeight();if(!arguments.length)return f.text();a===!1?(c.addClass("k-window-titleless"),e.remove()):(e.length||c.prepend(l.titlebar(h(l,d))),c.css("padding-top",g),e.css("margin-top",-g)),f.text(a);return b},content:function(a){var b=this.wrapper.children(o);if(!a)return b.html();b.html(a);return this},open:function(){var b=this,c=b.wrapper,d=b.options,e=d.animation.open,f=c.children(o),g=f.css(G),h;b.trigger(x)||(b.toFront(),d.visible=!0,d.modal&&(h=b._overlay(!1),e.duration?h.kendoStop().kendoAnimate({effects:{fade:{direction:"out",properties:{opacity:.5}}},duration:e.duration,show:!0}):h.css("opacity",.5).show()),c.is(u)||(f.css(G,v),c.show().kendoStop().kendoAnimate({effects:e.effects,duration:e.duration,complete:function(){b.trigger(y),f.css(G,g)}}))),d.isMaximized&&(b._documentScrollTop=a(document).scrollTop(),a("html, body").css(G,v));return b},close:function(){var c=this,d=c.wrapper,e=c.options,f=e.animation.open,g=e.animation.close,h,i,j;d.is(u)&&!c.trigger(A)&&(e.visible=!1,h=M(),i=e.modal&&h.length==1,j=e.modal?c._overlay(!0):a(b),i?g.duration?j.kendoStop().kendoAnimate({effects:{fadeOut:{properties:{opacity:0}}},duration:g.duration,hide:!0}):j.hide():h.length&&L(h.eq(h.length-2))._overlay(!0),d.kendoStop().kendoAnimate({effects:g.effects||f.effects,reverse:g.reverse===!0,duration:g.duration,complete:function(){d.hide(),c.trigger(z)}})),c.options.isMaximized&&(a("html, body").css(G,""),this._documentScrollTop&&this._documentScrollTop>0&&a(document).scrollTop(this._documentScrollTop));return c},toFront:function(){var b=this,c=b.wrapper,d=c[0],e=+c.css(H),f=e;a(m).each(function(b,c){var f=a(c),g=f.css(H),h=f.find(o);isNaN(g)||(e=Math.max(+g,e)),c!=d&&h.find("> ."+r).length>0&&h.append(l.overlay)});if(e==10001||f<e)c.css(H,e+2),b.element.find("> .k-overlay").remove();return b},toggleMaximization:function(){return this[this.options.isMaximized?"restore":"maximize"]()},restore:function(){var b=this,c=b.options,d=b.restoreOptions;if(!!c.isMaximized||!!c.isMinimized){b.wrapper.css({position:"absolute",left:d.left,top:d.top,width:d.width,height:d.height}).find(".k-window-content,.k-resize-handle").show().end().find(".k-window-titlebar .k-i-restore").parent().remove().end().end().find(I).parent().show(),a("html, body").css(G,""),this._documentScrollTop&&this._documentScrollTop>0&&a(document).scrollTop(this._documentScrollTop),c.isMaximized=c.isMinimized=!1,b.trigger(C);return b}},maximize:N("maximize",function(){var b=this,c=b.wrapper,d=c.position();h(b.restoreOptions,{left:d.left,top:d.top}),c.css({left:0,top:0,position:"fixed"}),this._documentScrollTop=a(document).scrollTop(),a("html, body").css(G,v),b.options.isMaximized=!0,b._onDocumentResize()}),minimize:N("minimize",function(){var a=this;a.wrapper.css("height",""),a.element.hide(),a.options.isMinimized=!0}),_onDocumentResize:function(){var b=this,c=b.wrapper,d=a(window);!b.options.isMaximized||(c.css({width:d.width(),height:d.height()-parseInt(c.css("padding-top"),10)}),b.trigger(C))},refresh:function(b){var c=this,d=c.options,e=a(c.element),g,i=d.iframe,k;f(b)||(b={url:b}),b=h({},d.content,b),k=b.url,k?(typeof i=="undefined"&&(i=!J(k)),i?(g=e.find("."+r)[0],g?g.src=k||g.src:e.html(l.contentFrame(h({},d,{content:b})))):c._ajaxRequest(b)):b.template&&c.content(j(b.template)({}));return c},_ajaxRequest:function(b){var c=this,d=b.template,e=c.wrapper.find(".k-window-titlebar .k-i-refresh"),f=setTimeout(function(){e.addClass(s)},100);a.ajax(h({type:"GET",dataType:"html",cache:!1,error:g(function(a,b){c.trigger(F)},c),complete:function(){clearTimeout(f),e.removeClass(s)},success:g(function(a,b){d&&(a=j(d)(a||{})),c.element.html(a),c.trigger(B)},c)},b))},destroy:function(){var a=this,b,c;a.wrapper.remove(),b=M(),c=a.options.modal&&!b.length,c?a._overlay(!1).remove():b.length>0&&L(b.eq(b.length-2))._overlay(!0)},_createWindow:function(){var b=this,c=b.element,d=b.options,e,f;d.scrollable===!1&&c.attr("style","overflow:hidden;"),d.iframe&&c.html(l.contentFrame(d)),f=a(l.wrapper(d)),d.title!==!1&&f.append(l.titlebar(h(l,d))),f.toggleClass("k-rtl",!!b.element.closest(".k-rtl").length),e=c.find("iframe").map(function(a){var b=this.getAttribute("src");this.src="";return b}),f.appendTo(b.appendTo).append(c).find("iframe").each(function(a){this.src=e[a]}),c.show()}});l={wrapper:j("<div class='k-widget k-window' />"),action:j("<a href='\\#' class='k-window-action k-link'><span class='k-icon k-i-#= name.toLowerCase() #'>#= name #</span></a>"),titlebar:j("<div class='k-window-titlebar k-header'> <span class='k-window-title'>#= title #</span><div class='k-window-actions k-header'># for (var i = 0; i < actions.length; i++) { ##= action({ name: actions[i] }) ## } #</div></div>"),overlay:"<div class='k-overlay' />",contentFrame:j("<iframe src='#= content.url #' title='#= title #' frameborder='0' class='"+r+"'>"+"This page requires frames in order to show content"+"</iframe>"),resizeHandle:j("<div class='k-resize-handle k-resize-#= data #'></div>")},P.prototype={dragstart:function(b){var c=this,d=c.owner,e=d.wrapper;c.elementPadding=parseInt(d.wrapper.css("padding-top"),10),c.initialCursorPosition=e.offset(),c.resizeDirection=b.currentTarget.prop("className").replace("k-resize-handle k-resize-",""),c.initialSize={width:e.width(),height:e.height()},c.containerOffset=d.appendTo.offset(),e.append(l.overlay).find(p).not(b.currentTarget).hide(),a(k).css(w,b.currentTarget.css(w))},drag:function(a){var b=this,c=b.owner,d=c.wrapper,e=c.options,f=b.resizeDirection,g=b.containerOffset,h=b.initialCursorPosition,i=b.initialSize,j,k,l,m,n=a.x.location,o=a.y.location;f.indexOf("e")>=0?(j=n-h.left,d.width(K(j,e.minWidth,e.maxWidth))):f.indexOf("w")>=0&&(m=h.left+i.width,j=K(m-n,e.minWidth,e.maxWidth),d.css({left:m-j-g.left,width:j})),f.indexOf("s")>=0?(k=o-h.top-b.elementPadding,d.height(K(k,e.minHeight,e.maxHeight))):f.indexOf("n")>=0&&(l=h.top+i.height,k=K(l-o,e.minHeight,e.maxHeight),d.css({top:l-k-g.top,height:k})),c.trigger(C)},dragend:function(b){var c=this,d=c.owner,e=d.wrapper;e.find(q).remove().end().find(p).not(b.currentTarget).show(),a(k).css(w,""),d.touchScroller&&d.touchScroller.reset(),b.keyCode==27&&e.css(c.initialCursorPosition).css(c.initialSize);return!1}},Q.prototype={dragstart:function(b){var c=this.owner,d=c.element,e=d.find(".k-window-actions"),f=c.appendTo.offset();c.trigger(D),c.initialWindowPosition=c.wrapper.position(),c.startPosition={left:b.x.client-c.initialWindowPosition.left,top:b.y.client-c.initialWindowPosition.top},e.length>0?c.minLeftPosition=e.outerWidth()+parseInt(e.css("right"),10)-d.outerWidth():c.minLeftPosition=20-d.outerWidth(),c.minLeftPosition-=f.left,c.minTopPosition=-f.top,c.wrapper.append(l.overlay).find(p).hide(),a(k).css(w,b.currentTarget.css(w))},drag:function(b){var c=this.owner,d={left:Math.max(b.x.client-c.startPosition.left,c.minLeftPosition),top:Math.max(b.y.client-c.startPosition.top,c.minTopPosition)};a(c.wrapper).css(d)},dragcancel:function(b){var c=this.owner;c.wrapper.find(p).show().end().find(q).remove(),a(k).css(w,""),b.currentTarget.closest(m).css(c.initialWindowPosition)},dragend:function(b){var c=this.owner;c.wrapper.find(p).show().end().find(q).remove(),a(k).css(w,""),c.trigger(E);return!1}},c.ui.plugin(O)}(jQuery);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
|
+
* Copyright 2012 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3.
|
8
|
+
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
;(function(a,b){function Q(a){var b=this;b.owner=a,b._draggable=new e(a.wrapper,{filter:n,group:a.wrapper.id+"-moving",dragstart:g(b.dragstart,b),drag:g(b.drag,b),dragend:g(b.dragend,b),dragcancel:g(b.dragcancel,b)})}function P(a){var b=this;b.owner=a,b._draggable=new e(a.wrapper,{filter:p,group:a.wrapper.id+"-resizing",dragstart:g(b.dragstart,b),drag:g(b.drag,b),dragend:g(b.dragend,b)})}function N(a,b){return function(){var a=this,c=a.wrapper,d=c[0].style,e=a.options;if(!e.isMaximized&&!e.isMinimized){a.restoreOptions={width:d.width,height:d.height},c.find(p).hide().end().find(I).parent().hide().eq(0).before(l.action({name:"Restore"})),b.call(a);return a}}}function M(){return a(m).filter(function(){var b=a(this);return b.is(u)&&L(b).options.modal}).sort(function(b,c){return+a(b).css("zIndex")- +a(c).css("zIndex")})}function L(a){return a.children(o).data("kendoWindow")}function K(a,b,c){return Math.max(Math.min(a,c),b)}var c=window.kendo,d=c.ui.Widget,e=c.ui.Draggable,f=a.isPlainObject,g=a.proxy,h=a.extend,i=a.each,j=c.template,k="body",l,m=".k-window",n=".k-window-titlebar",o=".k-window-content",p=".k-resize-handle",q=".k-overlay",r="k-content-frame",s="k-loading",t="k-state-hover",u=":visible",v="hidden",w="cursor",x="open",y="activate",z="deactivate",A="close",B="refresh",C="resize",D="dragstart",E="dragend",F="error",G="overflow",H="zIndex",I=".k-window-actions .k-i-minimize,.k-window-actions .k-i-maximize",J=c.isLocalUrl,O=d.extend({init:function(b,e){var h=this,j,k,o,p,q=!1,r;d.fn.init.call(h,b,e),e=h.options,b=h.element,r=e.content,h.appendTo=a(e.appendTo||document.body),h._animations(),f(r)||(r=e.content={url:r}),b.parent().is(h.appendTo)||(b.is(u)?(k=b.offset(),q=!0):(o=b.css("visibility"),p=b.css("display"),b.css({visibility:v,display:""}),k=b.offset(),b.css({visibility:o,display:p}))),typeof e.visible=="undefined"&&(e.visible=b.is(u)),j=h.wrapper=b.closest(m);if(!b.is(".k-content")||!j[0])b.addClass("k-window-content k-content"),h._createWindow(b,e),j=h.wrapper=b.closest(m),h._dimensions();k&&j.css({top:k.top,left:k.left}),r&&h.refresh(r),h.toFront(),e.visible&&e.modal&&h._overlay(j.is(u)).css({opacity:.5}),j.on({mouseenter:function(){a(this).addClass(t)},mouseleave:function(){a(this).removeClass(t)},click:g(h._windowActionHandler,h)},".k-window-titlebar .k-window-action"),e.resizable&&(j.on("dblclick",n,g(h.toggleMaximization,h)),i("n e s w se sw ne nw".split(" "),function(a,b){j.append(l.resizeHandle(b))}),h.resizing=new P(h)),e.draggable&&(h.dragging=new Q(h)),j.add(j.find(".k-resize-handle,.k-window-titlebar")).on("mousedown",g(h.toFront,h)),h.touchScroller=c.touchScroller(b),a(window).resize(g(h._onDocumentResize,h)),e.visible&&(h.trigger(x),h.trigger(y)),c.notify(h)},_dimensions:function(){var a=this,b=a.wrapper,c=a.element,d=a.options;a.title(d.title),d.width&&b.width(d.width),d.height&&b.height(d.height),i(["minWidth","minHeight","maxWidth","maxHeight"],function(a,b){var e=d[b];e&&e!=Infinity&&c.css(b,e)}),d.visible||b.hide()},_animations:function(){var a=this.options;a.animation===!1&&(a.animation={open:{show:!0,effects:{}},close:{hide:!0,effects:{}}})},setOptions:function(a){d.fn.setOptions.call(this,a),this._animations(),this._dimensions()},events:[x,y,z,A,B,C,D,E,F],options:{name:"Window",animation:{open:{effects:{zoom:{direction:"in"},fade:{direction:"in"}},duration:350,show:!0},close:{effects:{zoom:{direction:"out",properties:{scale:.7}},fade:{direction:"out"}},duration:350,hide:!0}},title:"",actions:["Close"],modal:!1,resizable:!0,draggable:!0,minWidth:90,minHeight:50,maxWidth:Infinity,maxHeight:Infinity},_overlay:function(b){var c=this.appendTo.children(".k-overlay"),d=this.wrapper;c.length||(c=a("<div class='k-overlay' />")),c.insertBefore(d[0]).toggle(b).css(H,parseInt(d.css(H),10)-1);return c},_windowActionHandler:function(b){var c=a(b.target).closest(".k-window-action").find(".k-icon"),d=this;i({"k-i-close":d.close,"k-i-maximize":d.maximize,"k-i-minimize":d.minimize,"k-i-restore":d.restore,"k-i-refresh":d.refresh},function(a,e){if(c.hasClass(a)){b.preventDefault(),e.call(d);return!1}})},center:function(){var b=this.wrapper,c=a(window);b.css({left:c.scrollLeft()+Math.max(0,(c.width()-b.width())/2),top:c.scrollTop()+Math.max(0,(c.height()-b.height())/2)});return this},title:function(a){var b=this,c=b.wrapper,d=b.options,e=c.find(n),f=e.children(".k-window-title"),g=e.outerHeight();if(!arguments.length)return f.text();a===!1?(c.addClass("k-window-titleless"),e.remove()):(e.length||c.prepend(l.titlebar(h(l,d))),c.css("padding-top",g),e.css("margin-top",-g)),f.text(a);return b},content:function(a){var b=this.wrapper.children(o);if(!a)return b.html();b.html(a);return this},open:function(){var b=this,c=b.wrapper,d=b.options,e=d.animation.open,f=c.children(o),g=f.css(G),h;b.trigger(x)||(b.toFront(),d.visible=!0,d.modal&&(h=b._overlay(!1),e.duration?h.kendoStop().kendoAnimate({effects:{fade:{direction:"out",properties:{opacity:.5}}},duration:e.duration,show:!0}):h.css("opacity",.5).show()),c.is(u)||(f.css(G,v),c.show().kendoStop().kendoAnimate({effects:e.effects,duration:e.duration,complete:function(){b.trigger(y),f.css(G,g)}}))),d.isMaximized&&(b._documentScrollTop=a(document).scrollTop(),a("html, body").css(G,v));return b},close:function(){var c=this,d=c.wrapper,e=c.options,f=e.animation.open,g=e.animation.close,h,i,j;d.is(u)&&!c.trigger(A)&&(e.visible=!1,h=M(),i=e.modal&&h.length==1,j=e.modal?c._overlay(!0):a(b),i?g.duration?j.kendoStop().kendoAnimate({effects:{fadeOut:{properties:{opacity:0}}},duration:g.duration,hide:!0}):j.hide():h.length&&L(h.eq(h.length-2))._overlay(!0),d.kendoStop().kendoAnimate({effects:g.effects||f.effects,reverse:g.reverse===!0,duration:g.duration,complete:function(){d.hide(),c.trigger(z)}})),c.options.isMaximized&&(a("html, body").css(G,""),this._documentScrollTop&&this._documentScrollTop>0&&a(document).scrollTop(this._documentScrollTop));return c},toFront:function(){var b=this,c=b.wrapper,d=c[0],e=+c.css(H),f=e;a(m).each(function(b,c){var f=a(c),g=f.css(H),h=f.find(o);isNaN(g)||(e=Math.max(+g,e)),c!=d&&h.find("> ."+r).length>0&&h.append(l.overlay)});if(e==10001||f<e)c.css(H,e+2),b.element.find("> .k-overlay").remove();return b},toggleMaximization:function(){return this[this.options.isMaximized?"restore":"maximize"]()},restore:function(){var b=this,c=b.options,d=b.restoreOptions;if(!!c.isMaximized||!!c.isMinimized){b.wrapper.css({position:"absolute",left:d.left,top:d.top,width:d.width,height:d.height}).find(".k-window-content,.k-resize-handle").show().end().find(".k-window-titlebar .k-i-restore").parent().remove().end().end().find(I).parent().show(),a("html, body").css(G,""),this._documentScrollTop&&this._documentScrollTop>0&&a(document).scrollTop(this._documentScrollTop),c.isMaximized=c.isMinimized=!1,b.trigger(C);return b}},maximize:N("maximize",function(){var b=this,c=b.wrapper,d=c.position();h(b.restoreOptions,{left:d.left,top:d.top}),c.css({left:0,top:0,position:"fixed"}),this._documentScrollTop=a(document).scrollTop(),a("html, body").css(G,v),b.options.isMaximized=!0,b._onDocumentResize()}),minimize:N("minimize",function(){var a=this;a.wrapper.css("height",""),a.element.hide(),a.options.isMinimized=!0}),_onDocumentResize:function(){var b=this,c=b.wrapper,d=a(window);!b.options.isMaximized||(c.css({width:d.width(),height:d.height()-parseInt(c.css("padding-top"),10)}),b.trigger(C))},refresh:function(b){var c=this,d=c.options,e=a(c.element),g,i=d.iframe,k;f(b)||(b={url:b}),b=h({},d.content,b),k=b.url,k?(typeof i=="undefined"&&(i=!J(k)),i?(g=e.find("."+r)[0],g?g.src=k||g.src:e.html(l.contentFrame(h({},d,{content:b})))):c._ajaxRequest(b)):b.template&&c.content(j(b.template)({}));return c},_ajaxRequest:function(b){var c=this,d=b.template,e=c.wrapper.find(".k-window-titlebar .k-i-refresh"),f=setTimeout(function(){e.addClass(s)},100);a.ajax(h({type:"GET",dataType:"html",cache:!1,error:g(function(a,b){c.trigger(F)},c),complete:function(){clearTimeout(f),e.removeClass(s)},success:g(function(a,b){d&&(a=j(d)(a||{})),c.element.html(a),c.trigger(B)},c)},b))},destroy:function(){var a=this,b,c;a.wrapper.remove(),b=M(),c=a.options.modal&&!b.length,c?a._overlay(!1).remove():b.length>0&&L(b.eq(b.length-2))._overlay(!0)},_createWindow:function(){var b=this,c=b.element,d=b.options,e,f;d.scrollable===!1&&c.attr("style","overflow:hidden;"),d.iframe&&c.html(l.contentFrame(d)),f=a(l.wrapper(d)),d.title!==!1&&f.append(l.titlebar(h(l,d))),f.toggleClass("k-rtl",!!b.element.closest(".k-rtl").length),e=c.find("iframe").map(function(a){var b=this.getAttribute("src");this.src="";return b}),f.appendTo(b.appendTo).append(c).find("iframe").each(function(a){this.src=e[a]}),c.show()}});l={wrapper:j("<div class='k-widget k-window' />"),action:j("<a href='\\#' class='k-window-action k-link'><span class='k-icon k-i-#= name.toLowerCase() #'>#= name #</span></a>"),titlebar:j("<div class='k-window-titlebar k-header'> <span class='k-window-title'>#= title #</span><div class='k-window-actions k-header'># for (var i = 0; i < actions.length; i++) { ##= action({ name: actions[i] }) ## } #</div></div>"),overlay:"<div class='k-overlay' />",contentFrame:j("<iframe src='#= content.url #' title='#= title #' frameborder='0' class='"+r+"'>"+"This page requires frames in order to show content"+"</iframe>"),resizeHandle:j("<div class='k-resize-handle k-resize-#= data #'></div>")},P.prototype={dragstart:function(b){var c=this,d=c.owner,e=d.wrapper;c.elementPadding=parseInt(d.wrapper.css("padding-top"),10),c.initialCursorPosition=e.offset(),c.resizeDirection=b.currentTarget.prop("className").replace("k-resize-handle k-resize-",""),c.initialSize={width:e.width(),height:e.height()},c.containerOffset=d.appendTo.offset(),e.append(l.overlay).find(p).not(b.currentTarget).hide(),a(k).css(w,b.currentTarget.css(w))},drag:function(a){var b=this,c=b.owner,d=c.wrapper,e=c.options,f=b.resizeDirection,g=b.containerOffset,h=b.initialCursorPosition,i=b.initialSize,j,k,l,m,n=a.x.location,o=a.y.location;f.indexOf("e")>=0?(j=n-h.left,d.width(K(j,e.minWidth,e.maxWidth))):f.indexOf("w")>=0&&(m=h.left+i.width,j=K(m-n,e.minWidth,e.maxWidth),d.css({left:m-j-g.left,width:j})),f.indexOf("s")>=0?(k=o-h.top-b.elementPadding,d.height(K(k,e.minHeight,e.maxHeight))):f.indexOf("n")>=0&&(l=h.top+i.height,k=K(l-o,e.minHeight,e.maxHeight),d.css({top:l-k-g.top,height:k})),c.trigger(C)},dragend:function(b){var c=this,d=c.owner,e=d.wrapper;e.find(q).remove().end().find(p).not(b.currentTarget).show(),a(k).css(w,""),d.touchScroller&&d.touchScroller.reset(),b.keyCode==27&&e.css(c.initialCursorPosition).css(c.initialSize);return!1}},Q.prototype={dragstart:function(b){var c=this.owner,d=c.element,e=d.find(".k-window-actions"),f=c.appendTo.offset();c.trigger(D),c.initialWindowPosition=c.wrapper.position(),c.startPosition={left:b.x.client-c.initialWindowPosition.left,top:b.y.client-c.initialWindowPosition.top},e.length>0?c.minLeftPosition=e.outerWidth()+parseInt(e.css("right"),10)-d.outerWidth():c.minLeftPosition=20-d.outerWidth(),c.minLeftPosition-=f.left,c.minTopPosition=-f.top,c.wrapper.append(l.overlay).find(p).hide(),a(k).css(w,b.currentTarget.css(w))},drag:function(b){var c=this.owner,d={left:Math.max(b.x.client-c.startPosition.left,c.minLeftPosition),top:Math.max(b.y.client-c.startPosition.top,c.minTopPosition)};a(c.wrapper).css(d)},dragcancel:function(b){var c=this.owner;c.wrapper.find(p).show().end().find(q).remove(),a(k).css(w,""),b.currentTarget.closest(m).css(c.initialWindowPosition)},dragend:function(b){var c=this.owner;c.wrapper.find(p).show().end().find(q).remove(),a(k).css(w,""),c.trigger(E);return!1}},c.ui.plugin(O)})(jQuery);
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
.k-widget{background-color:#4d4d4d}.k-widget,.k-input,.k-textbox,.k-group,.k-content,.k-header,.k-editable-area,.k-separator,.k-colorpicker .k-arrow-
|
10
|
+
.k-block,.k-widget{background-color:#4d4d4d}.k-block,.k-widget,.k-input,.k-textbox,.k-group,.k-content,.k-header,.k-editable-area,.k-separator,.k-colorpicker .k-i-arrow-s,.k-textbox>input,.k-autocomplete,.k-dropdown-wrap,.k-toolbar,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-state-default,.k-state-default .k-select,.k-state-disabled,.k-grid-header-wrap,.k-grid-header,.k-grid td,.k-grid-footer-wrap,.k-pager-wrap,.k-pager-wrap .k-link,.k-pager-refresh,.k-grouping-header,.k-grouping-header .k-group-indicator,.k-dropdown-wrap,.k-panelbar>.k-item>.k-link,.k-panel>.k-item>.k-link,.k-panelbar .k-panel,.k-panelbar .k-content,.k-calendar th,.k-slider-track,.k-splitbar,.k-dropzone-active,.k-upload-files,.k-tiles,.k-toolbar,.k-dropdown-wrap,.k-tooltip,.k-progress{border-color:#2e2e2e}.k-group,.k-toolbar,.k-grouping-header,.k-pager-wrap,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-widget .k-status,.k-grouping-row td,td.k-group-cell,.k-calendar th,.k-dropzone-hovered,.k-upload-files{background-color:#555}.k-list-container{border-color:#2e2e2e;background-color:#272727}.k-content,.k-editable-area,.k-panelbar>li.k-item,.k-panel>li.k-item,.k-tiles{background-color:#3d3d3d}.k-alt,.k-separator{background-color:#525252}.k-widget .k-dropdown-wrap,.k-widget .k-picker-wrap,.k-widget .k-numeric-wrap,.k-textbox,.k-autocomplete.k-header,.k-autocomplete.k-state-focused,div.k-dropdown-wrap.k-state-active,.k-dropdown-wrap.k-state-focused,.k-dropdown-wrap.k-state-focused:hover,div.k-picker-wrap.k-state-active,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-focused:hover,span.k-numeric-wrap.k-state-active,.k-numeric-wrap.k-state-focused,.k-numeric-wrap.k-state-focused:hover{border-color:#2e2e2e;background-color:#272727}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-autocomplete.k-state-focused .k-input,.k-dropdown-wrap.k-state-focused .k-input,.k-picker-wrap.k-state-focused .k-input,.k-numeric-wrap.k-state-focused .k-input{border-color:#2e2e2e}.k-input,input.k-textbox,textarea.k-textbox,input.k-textbox:hover,textarea.k-textbox:hover,.k-textbox>input{background-color:#fff;color:#181818}.k-block,.k-widget,.k-popup,.k-content,.k-dropdown .k-input{color:#fff}.k-link:link,.k-link:visited{color:#fff}.k-header{color:#fff}.k-header,.k-grid-header,.k-toolbar,.k-dropdown-wrap,.k-picker-wrap,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-button,.k-draghandle,.k-tile,.k-textbox,.k-autocomplete,.k-state-hover,.k-state-selected,.k-state-focused,.k-tabstrip-items .k-item{background-image:url("textures/glass.png")}.k-block,.k-header,.k-grid-header,.k-toolbar,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-button,.k-draghandle{background-color:#1d1d1d}.k-icon,.k-column-menu .k-sprite{opacity:.8}.k-icon:hover,.k-state-hover .k-icon,.k-state-selected .k-icon,.k-state-focused .k-icon,.k-column-menu .k-state-hover .k-sprite,.k-column-menu .k-state-active .k-sprite{opacity:1}.k-icon,.k-tool-icon,.k-grouping-dropclue,.k-drop-hint,.k-callout,.k-progress,.k-progress-status,.k-column-menu .k-sprite{background-image:url('Black/sprite.png')}.k-loading{background-image:url('Black/loading.gif')}.k-loading-image{background-image:url('Black/loading-image.gif')}.k-loading-color{background-color:#666}.k-button{color:#fff}.k-button,.k-button.k-state-disabled:hover,.k-state-disabled .k-button:hover,.k-draghandle{border-color:#2e2e2e;background-color:#1d1d1d}.k-button:hover,.k-draghandle:hover{border-color:#222;background-color:#474747}.k-state-active,.k-state-active:hover,.k-active-filter{background-color:#4d4d4d;border-color:#020202;color:#fff}.k-state-focused{color:#fff;background-color:#474747;border-color:#222}.k-state-selected,.k-list>.k-state-selected,.k-list>.k-state-focused,.k-panelbar>.k-state-selected,.k-panel>.k-state-selected,.k-button:active,.k-ghost-splitbar-vertical,.k-ghost-splitbar-horizontal,.k-draghandle.k-state-selected:hover{color:#fff;background-color:#0070e4;border-color:#004483}.k-state-selected.k-state-focused{background-color:#005cbb}.k-state-selected>.k-link{color:#fff}.k-state-hover,.k-state-hover:hover,.k-splitbar-horizontal-hover:hover,.k-splitbar-vertical-hover:hover,.k-list>.k-state-hover,.k-marquee,.k-pager-wrap .k-link:hover{color:#fff;background-color:#474747;border-color:#222}.k-state-hover>.k-link,.k-other-month.k-state-hover .k-link{color:#fff}.k-textbox:hover,.k-autocomplete.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-dropdown-wrap.k-state-hover{background-color:#4d4d4d;border-color:#2e2e2e}.k-calendar .k-state-selected.k-state-focused>.k-link{background-color:transparent}.k-dropdown .k-state-hover .k-input{color:#fff}.k-dropdown .k-state-focused .k-input{color:#fff}.k-state-error{border-color:#ff9b9b;background-color:#ff5252;color:#fff}.k-state-disabled{filter:alpha(opacity=70);opacity:.7}.k-state-disabled,.k-state-disabled .k-link,.k-state-disabled .k-button,.k-other-month .k-link,.k-dropzone em,.k-tile-empty strong,.k-slider .k-draghandle{color:#7e7e7e}.k-slider-track{background-color:#1d1d1d}.k-slider-selection{background-color:#0070e4}.k-slider-horizontal .k-tick{background-image:url('Black/slider-h.gif')}.k-slider-vertical .k-tick{background-image:url('Black/slider-v.gif')}.k-tooltip{border-color:#030303;background-color:#fff;color:#062430}.k-tooltip-validation{border-color:#ffe79e;background-color:#fff4c9;color:#635145}.k-splitbar{background-color:#4c4c4c}.k-restricted-size-vertical,.k-restricted-size-horizontal{background-color:#fff}.k-progress-status{border-color:#222 transparent}.k-tile{border-color:#3d3d3d}.k-textbox:hover,.k-tiles li.k-state-hover{border-color:#222}.k-tiles li.k-state-selected{border-color:#004483}.k-tile .k-folder{background-image:url('Black/imagebrowser.png')}.k-popup,.k-menu .k-group,.k-grid .k-filter-options,.k-time-popup,.k-datepicker-calendar,.k-autocomplete.k-state-border-down,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-active,.k-picker-wrap.k-state-active,.k-imagebrowser .k-image{box-shadow:0 2px 2px 0 rgba(0,0,0,0.3);-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,0.3)}.k-window{border-color:rgba(0,0,0,0.3);box-shadow:1px 1px 7px 1px rgba(0,0,0,0.3);-webkit-box-shadow:1px 1px 7px 1px rgba(0,0,0,0.3)}.k-textbox>input,.k-autocomplete .k-input,.k-combobox .k-input,.k-picker-wrap .k-input{box-shadow:inset 0 0 1px 1px #aaa;-webkit-box-shadow:inset 0 0 1px 1px #aaa}.k-shadow{box-shadow:0 1px 2px 0 rgba(0,0,0,0.3);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.3)}.k-inset{box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3)}.k-block,.k-button,.k-textbox,.k-drag-clue,.k-touch-scrollbar,.k-window,.k-window-titleless .k-window-content,.k-window-action,.k-inline-block,.k-grid .k-filter-options,.k-grouping-header .k-group-indicator,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap,.k-list-container,.k-calendar-container,.k-calendar td,.k-calendar .k-link,.k-treeview .k-state-hover,.k-treeview .k-state-selected,.k-editor-button .k-state-hover,.k-editor-button .k-state-active,.k-tooltip,.k-tile,.k-slider-track,.k-slider-selection{-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}.k-calendar-container.k-state-border-up,.k-list-container.k-state-border-up,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-border-up,.k-picker-wrap.k-state-border-up,.k-numeric-wrap.k-state-border-up,.k-window-content,.k-filter-menu{-moz-border-radius:0 0 4px 4px;-webkit-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.k-window-titlebar,.k-block>.k-header,.k-tabstrip-items .k-item,.k-panelbar .k-tabstrip-items .k-item,.k-tabstrip-items .k-link,.k-calendar-container.k-state-border-down,.k-list-container.k-state-border-down,.k-autocomplete.k-state-border-down,.k-dropdown-wrap.k-state-border-down,.k-picker-wrap.k-state-border-down,.k-numeric-wrap.k-state-border-down{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.k-dropdown-wrap .k-select,.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-datetimepicker .k-select+.k-select,.k-animation-container .k-calendar-container,.k-list-container.k-state-border-right{-moz-border-radius:0 4px 4px 0;-webkit-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-numeric-wrap .k-link,.k-colorpicker .k-selected-color,.k-progress,.k-progress-status{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.k-list .k-state-hover,.k-list .k-state-focused,.k-list .k-state-selected,.k-dropzone,.k-upload-files{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.k-slider .k-button,.k-grid .k-slider .k-button{-moz-border-radius:13px;-webkit-border-radius:13px;border-radius:13px}.k-draghandle{-moz-border-radius:7px;-webkit-border-radius:7px;border-radius:7px}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
.k-widget{background-color:#fff}.k-widget,.k-input,.k-textbox,.k-group,.k-content,.k-header,.k-editable-area,.k-separator,.k-colorpicker .k-arrow-
|
10
|
+
.k-block,.k-widget{background-color:#fff}.k-block,.k-widget,.k-input,.k-textbox,.k-group,.k-content,.k-header,.k-editable-area,.k-separator,.k-colorpicker .k-i-arrow-s,.k-textbox>input,.k-autocomplete,.k-dropdown-wrap,.k-toolbar,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-state-default,.k-state-default .k-select,.k-state-disabled,.k-grid-header-wrap,.k-grid-header,.k-grid td,.k-grid-footer-wrap,.k-pager-wrap,.k-pager-wrap .k-link,.k-pager-refresh,.k-grouping-header,.k-grouping-header .k-group-indicator,.k-dropdown-wrap,.k-panelbar>.k-item>.k-link,.k-panel>.k-item>.k-link,.k-panelbar .k-panel,.k-panelbar .k-content,.k-calendar th,.k-slider-track,.k-splitbar,.k-dropzone-active,.k-upload-files,.k-tiles,.k-toolbar,.k-dropdown-wrap,.k-tooltip,.k-progress{border-color:#94c0d2}.k-group,.k-toolbar,.k-grouping-header,.k-pager-wrap,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-widget .k-status,.k-grouping-row td,td.k-group-cell,.k-calendar th,.k-dropzone-hovered,.k-upload-files{background-color:#daecf4}.k-list-container{border-color:#94c0d2;background-color:#daecf4}.k-content,.k-editable-area,.k-panelbar>li.k-item,.k-panel>li.k-item,.k-tiles{background-color:#fff}.k-alt,.k-separator{background-color:#eaf4f9}.k-widget .k-dropdown-wrap,.k-widget .k-picker-wrap,.k-widget .k-numeric-wrap,.k-textbox,.k-autocomplete.k-header,.k-autocomplete.k-state-focused,div.k-dropdown-wrap.k-state-active,.k-dropdown-wrap.k-state-focused,.k-dropdown-wrap.k-state-focused:hover,div.k-picker-wrap.k-state-active,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-focused:hover,span.k-numeric-wrap.k-state-active,.k-numeric-wrap.k-state-focused,.k-numeric-wrap.k-state-focused:hover{border-color:#94c0d2;background-color:#daecf4}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-autocomplete.k-state-focused .k-input,.k-dropdown-wrap.k-state-focused .k-input,.k-picker-wrap.k-state-focused .k-input,.k-numeric-wrap.k-state-focused .k-input{border-color:#94c0d2}.k-input,input.k-textbox,textarea.k-textbox,input.k-textbox:hover,textarea.k-textbox:hover,.k-textbox>input{background-color:#fff;color:#293135}.k-block,.k-widget,.k-popup,.k-content,.k-dropdown .k-input{color:#293135}.k-link:link,.k-link:visited{color:#293135}.k-header{color:#293135}.k-header,.k-grid-header,.k-toolbar,.k-dropdown-wrap,.k-picker-wrap,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-button,.k-draghandle,.k-tile,.k-textbox,.k-autocomplete,.k-state-hover,.k-state-selected,.k-state-focused,.k-tabstrip-items .k-item{background-image:url("textures/highlight.png")}.k-block,.k-header,.k-grid-header,.k-toolbar,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-button,.k-draghandle{background-color:#daecf4}.k-icon,.k-column-menu .k-sprite{opacity:.8}.k-icon:hover,.k-state-hover .k-icon,.k-state-selected .k-icon,.k-state-focused .k-icon,.k-column-menu .k-state-hover .k-sprite,.k-column-menu .k-state-active .k-sprite{opacity:1}.k-icon,.k-tool-icon,.k-grouping-dropclue,.k-drop-hint,.k-callout,.k-progress,.k-progress-status,.k-column-menu .k-sprite{background-image:url('BlueOpal/sprite.png')}.k-loading{background-image:url('BlueOpal/loading.gif')}.k-loading-image{background-image:url('BlueOpal/loading-image.gif')}.k-loading-color{background-color:#fff}.k-button{color:#293135}.k-button,.k-button.k-state-disabled:hover,.k-state-disabled .k-button:hover,.k-draghandle{border-color:#94c0d2;background-color:#daecf4}.k-button:hover,.k-draghandle:hover{border-color:#7ec6e3;background-color:#7bd2f6}.k-state-active,.k-state-active:hover,.k-active-filter{background-color:#f5f7f8;border-color:#9aabb2;color:#293135}.k-state-focused{color:#005c83;background-color:#7bd2f6;border-color:#7ec6e3}.k-state-selected,.k-list>.k-state-selected,.k-list>.k-state-focused,.k-panelbar>.k-state-selected,.k-panel>.k-state-selected,.k-button:active,.k-ghost-splitbar-vertical,.k-ghost-splitbar-horizontal,.k-draghandle.k-state-selected:hover{color:#fff;background-color:#005c83;border-color:#005c83}.k-state-selected.k-state-focused{background-color:#003f5a}.k-state-selected>.k-link{color:#fff}.k-state-hover,.k-state-hover:hover,.k-splitbar-horizontal-hover:hover,.k-splitbar-vertical-hover:hover,.k-list>.k-state-hover,.k-marquee,.k-pager-wrap .k-link:hover{color:#005c83;background-color:#7bd2f6;border-color:#7ec6e3}.k-state-hover>.k-link,.k-other-month.k-state-hover .k-link{color:#005c83}.k-textbox:hover,.k-autocomplete.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-dropdown-wrap.k-state-hover{background-color:#7bd2f6;border-color:#7ec6e3}.k-calendar .k-state-selected.k-state-focused>.k-link{background-color:transparent}.k-dropdown .k-state-hover .k-input{color:#005c83}.k-dropdown .k-state-focused .k-input{color:#293135}.k-state-error{border-color:#f77;background-color:#fff1f1;color:#f60000}.k-state-disabled{filter:alpha(opacity=70);opacity:.7}.k-state-disabled,.k-state-disabled .k-link,.k-state-disabled .k-button,.k-other-month .k-link,.k-dropzone em,.k-tile-empty strong,.k-slider .k-draghandle{color:#8b9097}.k-slider-track{background-color:#daecf4}.k-slider-selection{background-color:#005c83}.k-slider-horizontal .k-tick{background-image:url('BlueOpal/slider-h.gif')}.k-slider-vertical .k-tick{background-image:url('BlueOpal/slider-v.gif')}.k-tooltip{border-color:#005c83;background-color:#fff;color:#293135}.k-tooltip-validation{border-color:#ffe79e;background-color:#fff4c9;color:#635145}.k-splitbar{background-color:#daecf4}.k-restricted-size-vertical,.k-restricted-size-horizontal{background-color:#f60000}.k-progress-status{border-color:#7ec6e3 transparent}.k-tile{border-color:#fff}.k-textbox:hover,.k-tiles li.k-state-hover{border-color:#7ec6e3}.k-tiles li.k-state-selected{border-color:#005c83}.k-tile .k-folder{background-image:url('BlueOpal/imagebrowser.png')}.k-popup,.k-menu .k-group,.k-grid .k-filter-options,.k-time-popup,.k-datepicker-calendar,.k-autocomplete.k-state-border-down,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-active,.k-picker-wrap.k-state-active,.k-imagebrowser .k-image{box-shadow:0 2px 2px 0 rgba(0,0,0,0.3);-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,0.3)}.k-window{border-color:rgba(0,0,0,0.3);box-shadow:1px 1px 7px 1px rgba(0,0,0,0.3);-webkit-box-shadow:1px 1px 7px 1px rgba(0,0,0,0.3)}.k-textbox>input,.k-autocomplete .k-input,.k-combobox .k-input,.k-picker-wrap .k-input{box-shadow:inset 0 0 1px 1px #b4d5e2;-webkit-box-shadow:inset 0 0 1px 1px #b4d5e2}.k-shadow{box-shadow:0 1px 2px 0 rgba(0,0,0,0.3);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.3)}.k-inset{box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3)}.k-block,.k-button,.k-textbox,.k-drag-clue,.k-touch-scrollbar,.k-window,.k-window-titleless .k-window-content,.k-window-action,.k-inline-block,.k-grid .k-filter-options,.k-grouping-header .k-group-indicator,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap,.k-list-container,.k-calendar-container,.k-calendar td,.k-calendar .k-link,.k-treeview .k-state-hover,.k-treeview .k-state-selected,.k-editor-button .k-state-hover,.k-editor-button .k-state-active,.k-tooltip,.k-tile,.k-slider-track,.k-slider-selection{-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}.k-calendar-container.k-state-border-up,.k-list-container.k-state-border-up,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-border-up,.k-picker-wrap.k-state-border-up,.k-numeric-wrap.k-state-border-up,.k-window-content,.k-filter-menu{-moz-border-radius:0 0 4px 4px;-webkit-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.k-window-titlebar,.k-block>.k-header,.k-tabstrip-items .k-item,.k-panelbar .k-tabstrip-items .k-item,.k-tabstrip-items .k-link,.k-calendar-container.k-state-border-down,.k-list-container.k-state-border-down,.k-autocomplete.k-state-border-down,.k-dropdown-wrap.k-state-border-down,.k-picker-wrap.k-state-border-down,.k-numeric-wrap.k-state-border-down{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.k-dropdown-wrap .k-select,.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-datetimepicker .k-select+.k-select,.k-animation-container .k-calendar-container,.k-list-container.k-state-border-right{-moz-border-radius:0 4px 4px 0;-webkit-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-numeric-wrap .k-link,.k-colorpicker .k-selected-color,.k-progress,.k-progress-status{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.k-list .k-state-hover,.k-list .k-state-focused,.k-list .k-state-selected,.k-dropzone,.k-upload-files{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.k-slider .k-button,.k-grid .k-slider .k-button{-moz-border-radius:13px;-webkit-border-radius:13px;border-radius:13px}.k-draghandle{-moz-border-radius:7px;-webkit-border-radius:7px;border-radius:7px}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
.fake{color:red}.k-reset{margin:0;padding:0;border:0;outline:0;text-decoration:none;font-size:100%;list-style:none}.k-floatwrap:after,.k-slider-items:after,.k-grid-toolbar:after{content:"";display:block;clear:both;visibility:hidden;height:0;overflow:hidden}.k-floatwrap,.k-slider-items,.k-grid-toolbar{display:inline-block}.k-floatwrap,.k-slider-items,.k-grid-toolbar{display:block}.k-button,.k-header,.k-grid-header,.k-toolbar,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-tabstrip-items .k-item,.k-link.k-state-hover,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap,.k-autocomplete.k-state-hover,.k-dropdown-wrap.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-draghandle{background-repeat:repeat-x;background-position:0 center}.k-tabstrip,.k-menu-vertical,.k-editor,.k-tooltip,.k-state-hover,.k-state-focused,.k-state-selected{background-position:0 -258px}.k-widget,.k-input[type="text"],.k-input[type="number"],.k-textbox,.k-picker-wrap .k-input,.k-button,.k-draghandle{font-size:100%;font-family:inherit;border-style:solid;border-width:1px;-webkit-appearance:none}.k-widget{line-height:normal}.k-button{display:inline-block;margin:0;padding:2px 7px 2px;font-family:inherit;line-height:1.66em;text-align:center;cursor:pointer;outline:0;text-decoration:none}a.k-button{-webkit-user-select:none;-moz-user-select:none;user-select:none}:-moz-any(input[type="submit"],input[type="button"],input[type="reset"]){padding-bottom:.37em;padding-top:.37em}*+html .k-button{overflow:visible;margin-right:4px}*+html a.k-button{line-height:1.6;padding-left:7px;padding-right:7px}*+html .k-button-expand{margin-left:0;margin-right:0}button.k-button::-moz-focus-inner,input.k-button::-moz-focus-inner{padding:0;border:0}a.k-button-expand{display:block}button.k-button-expand,input[type="submit"].k-button-expand,input[type="button"].k-button-expand,input[type="reset"].k-button-expand{width:100%}body .k-button-icon{padding-left:4px;padding-right:4px}*+html a.k-button-icon{padding-left:5px;padding-right:5px}.k-button-icontext{padding-right:8px;overflow:visible}.k-button-icontext .k-icon{margin:0 3px 0 -3px;vertical-align:text-top}*+html .k-button-icontext .k-icon{margin-right:4px}html body .k-button-bare{background:none!important;border-width:0}.k-link{cursor:pointer;outline:0;text-decoration:none}.k-grid-header span.k-link{cursor:default}.k-state-disabled,.k-state-disabled .k-link,.k-state-disabled .k-picker-wrap .k-icon,.k-state-disabled .k-button,.k-state-disabled .k-draghandle,.k-state-disabled .k-slider .k-icon,.k-state-disabled .k-upload-button input{cursor:default;outline:0}.k-state-error{border-style:ridge}.k-state-empty{font-style:italic}.k-icon,.k-sprite,.k-editor-button .k-tool-icon{display:inline-block;width:16px;height:16px;overflow:hidden;background-color:transparent;background-repeat:no-repeat;font-size:0;line-height:0;text-indent:-3333px;text-align:center;vertical-align:middle}*+html .k-icon,*+html .k-sprite{text-indent:0}.k-arrow-up{background-position:0 0}.k-numerictextbox .k-arrow-up{background-position:0 -2px}.k-arrow-down{background-position:0 -32px}.k-numerictextbox .k-arrow-down{background-position:0 -35px}.k-state-selected .k-arrow-up{background-position:-16px 0}.k-numerictextbox .k-state-selected .k-arrow-up{background-position:-16px -2px}.k-state-selected .k-arrow-down{background-position:-16px -32px}.k-numerictextbox .k-state-selected .k-arrow-down{background-position:-16px -35px}.k-arrow-first{background-position:0 -112px}.k-arrow-prev{background-position:0 -48px}.k-arrow-next{background-position:0 -16px}.k-arrow-last{background-position:0 -80px}.k-arrow-up-small{background-position:0 -130px}.k-arrow-down-small{background-position:0 -160px}.k-expand,.k-plus{background-position:0 -192px}.k-rtl .k-expand,.k-rtl .k-plus{background-position:0 -208px}.k-collapse,.k-minus{background-position:0 -226px}.k-rtl .k-collapse,.k-rtl .k-minus{background-position:0 -240px}.k-edit{background-position:-32px 0}.k-delete,.k-group-delete,.k-close{background-position:-32px -16px}.k-insert,.k-update{background-position:-32px -32px}.k-cancel,.k-denied{background-position:-32px -48px}.k-add{background-position:-32px -64px}.k-filter{background-position:-32px -80px}.k-clear-filter{background-position:-32px -96px}.k-refresh{background-position:-32px -112px}.k-restore{background-position:-32px -128px}.k-maximize{background-position:-32px -144px}.k-minimize{background-position:-64px -288px}.k-resize-se{background-position:-32px -160px}.k-icon-calendar{background-position:-32px -176px}.k-icon-clock{background-position:-32px -192px}.k-search{background-position:-32px -240px}.k-custom{background-position:-115px -113px}.k-editor .k-custom{background-position:-112px -110px}.k-insert-top{background-position:-160px -32px}.k-insert-middle{background-position:-160px -48px}.k-insert-bottom{background-position:-160px -64px}.k-drop-hint{background-position:0 -326px}.k-warning{background-position:-160px -240px}.k-image{border:0}.k-loading,.k-loading-image{background-color:transparent;background-repeat:no-repeat;background-position:center center}.k-loading-mask,.k-loading-image,.k-loading-text{position:absolute}.k-loading-text{top:-4000px;left:-4000px}.k-loading-image,.k-loading-color{width:100%;height:100%}.k-loading-image{top:0;left:0;z-index:2}.k-loading-color{filter:alpha(opacity=30);opacity:.3}.k-content-frame{border:0;width:100%;height:100%}.k-content-frame+.k-overlay{filter:alpha(opacity=0);opacity:0;position:absolute}.k-drag-clue{position:absolute;z-index:10003;border-style:solid;border-width:1px;font-size:.9em;padding:.2em .4em;white-space:nowrap;cursor:default}.k-drag-status{margin-top:-1px;margin-right:4px;vertical-align:top}.k-reorder-cue{position:absolute;width:1px;overflow:visible}.k-reorder-cue .k-icon{position:absolute;left:-4px;width:8px;height:4px}.k-reorder-cue .k-arrow-down{top:-4px;background-position:-4px -166px}.k-reorder-cue .k-arrow-up{bottom:-4px;background-position:-4px -134px}.k-scrollbar{position:absolute;overflow:scroll}.k-scrollbar-vertical{top:0;right:0;width:17px;height:100%;overflow-x:hidden}.k-touch-scrollbar{display:none;position:absolute;z-index:200000;height:8px;width:8px;border:1px solid #8a8a8a;background-color:#858585}@media only screen and (-webkit-min-device-pixel-ratio:2){body .k-touch-scrollbar{height:12px;width:12px;-webkit-border-radius:7px}}div.k-window{display:inline-block;position:absolute;z-index:10001;border-style:solid;border-width:1px;padding-top:2em}.k-window-titlebar{position:absolute;width:100%;height:1.1em;border-bottom-style:solid;border-bottom-width:1px;margin-top:-2em;padding:.4em 0;font-size:1.2em;white-space:nowrap}.k-window-title{position:absolute;left:.44em;right:.44em;overflow:hidden;cursor:default;text-overflow:ellipsis}.k-window-title .k-image{margin:0 5px 0 0;vertical-align:middle}div.k-window-titleless{padding-top:0}div.k-window-content{position:relative;z-index:-1;height:100%;padding:.58em;overflow:auto;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.k-window-titlebar .k-window-actions{position:absolute;top:0;right:.5em;padding-top:.3em;white-space:nowrap}.k-window-titlebar .k-window-action{display:inline-block;width:16px;height:16px;padding:2px;text-decoration:none;vertical-align:middle;filter:alpha(opacity=70);opacity:.7}.k-window-titlebar .k-state-hover{border-style:solid;border-width:1px;padding:1px;filter:alpha(opacity=100);opacity:1}.k-window-action .k-icon{margin:0;vertical-align:top}.k-window .k-resize-handle{position:absolute;z-index:1;background-color:#fff;font-size:0;line-height:6px;filter:alpha(opacity=0);opacity:0;zoom:1}.k-resize-n{top:-3px;left:0;width:100%;height:6px;cursor:n-resize}.k-resize-e{top:0;right:-3px;width:6px;height:100%;cursor:e-resize}.k-resize-s{bottom:-3px;left:0;width:100%;height:6px;cursor:s-resize}.k-resize-w{top:0;left:-3px;width:6px;height:100%;cursor:w-resize}.k-resize-se{bottom:-3px;right:-3px;width:16px;height:16px;cursor:se-resize}.k-resize-sw{bottom:-3px;left:-3px;width:6px;height:6px;cursor:sw-resize}.k-resize-ne{top:-3px;right:-3px;width:6px;height:6px;cursor:ne-resize}.k-resize-nw{top:-3px;left:-3px;width:6px;height:6px;cursor:nw-resize}.k-overlay{position:fixed;top:0;left:0;z-index:10001;width:100%;height:100%;background-color:#000;filter:alpha(opacity=50);opacity:.5}.k-window .k-overlay{position:absolute;width:100%;height:100%;background-color:#fff;filter:alpha(opacity=0);opacity:0}.k-window .k-widget{z-index:10002}.k-tabstrip{margin:0;padding:0;zoom:1}.k-tabstrip .k-tabstrip-items{padding:.3em .3em 0}.k-tabstrip-items .k-item,.k-panelbar .k-tabstrip-items .k-item{list-style-type:none;display:inline-block;position:relative;border-style:solid;border-width:1px 1px 0;margin:0 -1px 0 0;padding:0;vertical-align:top}.k-tabstrip-items .k-tab-on-top,.k-tabstrip-items .k-state-active,.k-panelbar .k-tabstrip-items .k-state-active{margin-bottom:-1px;padding-bottom:1px}.k-tabstrip-items .k-tab-on-top{z-index:1}.k-tabstrip-items .k-link,.k-panelbar .k-tabstrip-items .k-link{display:inline-block;border-bottom-width:0;padding:.5em .92em;outline:0}.k-tabstrip-items .k-icon,.k-panelbar .k-tabstrip-items .k-icon{margin:-1px 4px 0 -3px;vertical-align:top}.k-tabstrip-items .k-item .k-image,.k-tabstrip-items .k-item .k-sprite,.k-panelbar .k-tabstrip-items .k-item .k-image,.k-panelbar .k-tabstrip-items .k-item .k-sprite{margin:-3px 3px 0 -6px;vertical-align:middle}*+html .k-tabstrip-items .k-item .k-image,*+html .k-tabstrip-items .k-item .k-sprite{margin-top:-1px;vertical-align:top}.k-tabstrip .k-content,.k-panelbar .k-tabstrip .k-content{position:static;border-style:solid;border-width:1px;margin:0 .3em .3em;padding:.3em .92em;zoom:1}.k-tabstrip>.k-content{display:none}.k-panelbar{zoom:1}.k-panelbar>.k-item,.k-panel>.k-item{list-style-type:none;display:block;border-width:0;margin:0;zoom:1;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.k-panelbar .k-image,.k-panelbar .k-sprite{float:left;margin-top:4px;margin-right:5px;vertical-align:middle}.k-panelbar>.k-item>.k-link,.k-panel>.k-item>.k-link{display:block;position:relative;border-bottom-style:solid;border-bottom-width:1px;padding:0 1em;line-height:2.34em;text-decoration:none;zoom:1}.k-panelbar-expand,.k-panelbar-collapse{position:absolute;top:5px;right:2px}.k-panelbar .k-panel,.k-panelbar .k-content{position:relative;border-bottom-style:solid;border-bottom-width:1px;margin:0;padding:0;zoom:1}.k-panel>.k-item>.k-link{border-bottom:0;font-size:.95em;line-height:2.2}.k-panel .k-arrow-up,.k-panel .k-arrow-down{top:4px}.k-panel .k-panel>.k-item>.k-link{padding-left:2em}.k-panelbar .k-last .k-link{border-bottom:0}.k-panel .k-panel{border-bottom:0}.k-menu{cursor:default}.k-menu,.k-menu .k-group{list-style:none;margin:0;padding:0;zoom:1}.k-menu .k-item{position:relative;float:left;border-style:solid;border-width:0 1px 0 0;vertical-align:top;zoom:1;box-sizing:content-box}.k-menu:after{content:'\A0';display:block;width:99%;height:0;overflow:hidden}.k-menu .k-item .k-item,.k-menu-vertical .k-item{display:block;float:none;border-width:0}*+html .k-menu .k-item .k-item,*+html .k-menu-vertical .k-item{zoom:normal}.k-menu .k-icon,.k-menu .k-image,.k-menu .k-sprite{margin:-2px 4px 0 -4px;vertical-align:middle}.k-menu .k-icon{margin:-2px 0 0}*+html .k-menu .k-icon,*+html .k-menu .k-image,*+html .k-menu .k-sprite{margin-top:0}.k-menu .k-link{display:block;padding:.5em .9em .4em;line-height:1.34em}.k-menu .k-group{display:none;border-style:solid;border-width:1px;overflow:visible;white-space:nowrap}.k-menu .k-group .k-item{display:block;border-width:0}.k-menu .k-group .k-link{padding:.28em 1.8em .38em .9em}*+html .k-menu .k-group .k-link{width:100%}.k-menu .k-arrow-down{margin-right:-8px}.k-menu .k-arrow-next{position:absolute;top:50%;margin-top:-8px;right:2px}.k-menu .k-animation-container{border:0}.k-menu .k-animation-container,.k-menu .k-group{position:absolute;left:0}.k-menu .k-animation-container .k-animation-container,.k-menu .k-group .k-group,.k-menu-vertical .k-animation-container,.k-menu-vertical .k-group{top:0;left:0}.k-menu .k-animation-container .k-group{top:auto;left:auto;margin-left:-1px}.k-menu .k-animation-container{margin-top:-1px;padding-left:1px}.k-menu .k-separator{padding:.25em 0;height:100%;width:1px;border-width:0 1px 0 0}.k-menu-vertical .k-separator,.k-menu .k-group .k-separator{padding:0;height:1px;width:100%;border-width:1px 0 0}.k-grid{position:relative;zoom:1}.k-grid table{width:100%;border-collapse:separate;empty-cells:show;border-width:0}.k-grid-header .k-header{text-align:left}.k-grid-header .k-header{overflow:hidden;border-style:solid;border-width:0 0 1px 1px;padding:.5em .6em .4em .6em;font-weight:normal;white-space:nowrap;text-overflow:ellipsis}.k-grid-header .k-header .k-link{display:block;min-height:18px;line-height:18px;margin:-.5em -.6em -.4em -.6em;padding:.5em .6em .4em .6em}.k-grid-header .k-filterable .k-link{padding-right:2.4em}.k-grid-header .k-header .k-icon{position:static}.k-grid-header .k-link>.k-icon{vertical-align:text-top}.k-grid .k-state-hover{cursor:pointer}.k-grid td{border-style:solid;border-width:0 0 0 1px;padding:.4em .6em;overflow:hidden;line-height:1.6em;vertical-align:middle;text-overflow:ellipsis}.k-grid .k-grouping-row td,.k-grid .k-hierarchy-cell{overflow:visible}.k-grid-edit-row td{text-overflow:clip}.k-grid-edit-row .k-textbox{margin-top:0;margin-bottom:0}.k-grid-header-wrap,.k-grid-footer-wrap{position:relative;width:100%;overflow:hidden;border-style:solid;border-width:0 1px 0 0;zoom:1}div.k-grid-header,div.k-grid-footer{padding-right:17px;border-bottom-style:solid;border-bottom-width:1px;zoom:1}div.k-grid-header .k-header{border-bottom-width:0}.k-grid{outline:0}.k-grid-content{position:relative;width:100%;overflow:auto;overflow-x:auto;overflow-y:scroll;zoom:1}.k-virtual-scrollable-wrap{height:100%;overflow-y:hidden}.k-grid-header table,.k-grid-content table,.k-grid-footer table{table-layout:fixed}*+html .k-grid-content table{width:auto}.k-grid-toolbar{border-style:solid;border-width:1px 0 0}.k-grid-header .k-header:first-child,.k-grid tbody td:first-child,.k-grid tfoot td:first-child{border-left-width:0}.k-pager-wrap{overflow:auto;border-style:solid;border-width:1px;padding:.4em .6em;line-height:1.8em}.k-grid-pager{border-width:1px 0 0}.k-grid-toolbar:first-child,.k-grouping-header+.k-grid-toolbar{border-width:0 0 1px}.k-grid .k-pager,.k-grid .k-status-text,.k-pager .k-numeric,.k-pager .k-page-i-of-n,.k-pager .k-link,.k-pager span,.k-pager input,.k-pager .k-page-size,.k-grouping-row p{display:inline-block;vertical-align:middle}.k-pager .k-page-size{line-height:1.2em}.k-pager li{display:inline}.k-footer-template td{border-style:solid;border-width:1px 0 0 1px}.k-group-footer td{border-style:solid;border-width:1px 0}.k-grid-footer{border-style:solid;border-width:1px 0 0}.k-grid-footer td{border-top-width:0}.k-grid .k-pager{float:left;cursor:default}.k-grid .k-status-text{float:right;margin-right:.2em}.k-pager .k-link{border-width:0;margin-top:.2em;padding:1px;line-height:16px;text-decoration:none}.k-pager .k-state-active,.k-pager .k-state-hover{border-style:solid;border-width:1px;padding:0}.k-pager span,.k-pager .k-link{vertical-align:top}.k-pager .k-numeric,.k-pager .k-page-i-of-n{margin:0 7px;vertical-align:top}.k-numeric .k-link,.k-numeric .k-state-active{margin-top:0;padding:0 5px;line-height:22px;vertical-align:top}.k-numeric .k-state-active,.k-numeric .k-state-hover{padding:0 4px;line-height:20px}.k-page-i-of-n input{width:2em;font-size:1em;vertical-align:baseline}.k-grid-filter{float:right;margin:-.5em -.6em -.4em;padding:.54em .2em}.k-grid-filter .k-icon{vertical-align:top}.k-grid .k-animation-container{position:absolute}.k-filter-menu{padding:.5em}.k-filter-menu .k-widget{display:block}.k-filter-help-text,.k-filter-menu .k-widget{margin:.3em 0 0}.k-filter-menu .k-filter-and{width:6em;margin:.6em 0 0}.k-filter-menu .k-button{width:48%;margin:.6em 4% 0 0}.k-filter-menu .k-button+.k-button{margin-right:0}.k-grouping-row .k-icon{margin:0 4px 0 0}.k-grouping-row p{margin-left:-.6em;padding:0 .6em}.k-grid .k-group-cell+td,.k-grid .k-hierarchy-cell+td{border-left-width:0}.k-grid .k-group-col,.k-grid .k-hierarchy-col{width:30px}.k-grouping-header{border-bottom-style:solid;border-bottom-width:1px}.k-grouping-header{line-height:2}.k-grouping-dropclue{position:absolute;width:6px;height:25px;background-repeat:no-repeat;background-position:-165px -148px}.k-grouping-header .k-group-indicator{display:inline-block;border-style:solid;border-width:1px;margin:0 3px;padding:.15em .15em .15em .4em;line-height:1.5em}.k-grouping-header .k-link{display:inline-block;border-width:0;padding:0;line-height:normal;text-decoration:none}.k-grouping-header .k-button{border:0;padding:0;background:transparent;line-height:1}.k-grouping-header .k-link .k-icon{margin:0 0 0 -3px}.k-grouping-header .k-button .k-icon{margin:0 0 0 3px}.k-grouping-header a,.k-grouping-header .k-button{display:inline-block;vertical-align:middle}.k-dirty{position:absolute;width:0;height:0;border-style:solid;border-width:3px;border-color:#f00 transparent transparent #f00;margin:-0.45em 0 0 -0.6em;padding:0;overflow:hidden;vertical-align:top}.k-grouping-header,.k-grid-toolbar{margin:0;padding:.2em .6em;cursor:default}.k-grid .k-edit-container{padding:0}.k-edit-form{margin:0;padding:0}.k-grid-edit-row .k-edit-form td{border-bottom-width:0}.k-edit-form-container{position:relative;width:400px}.k-edit-label,.k-edit-field{display:inline-block;padding-bottom:1em}.k-edit-label{width:30%;text-align:right;padding-right:3%}.k-edit-field{width:60%}.k-grid .field-validation-error{display:block}.k-grid .input-validation-error{border-style:ridge;border-color:#f00;background-color:#ffc0cb}.k-grid-toolbar .k-button{vertical-align:middle}.k-grid-actions{display:inline-block}*+html .k-grid-actions{vertical-align:bottom}.k-grid .k-button,.k-edit-form .k-button{margin:0 .2em}.k-grid tbody .k-button{min-width:64px}.k-grid tbody button.k-button,#ie8#skips{min-width:78px}*+html .k-grid tbody a.k-button{min-width:62px}html body .k-grid tbody .k-button-icon{width:auto;min-width:0}.k-detail-row{position:relative}.k-grid .k-detail-cell{overflow:visible}.k-grid .k-edit-cell{padding:0 .3em}.k-edit-cell .k-textbox,.k-edit-cell .k-widget,.k-grid-edit-row .k-textbox,.k-grid-edit-row .k-widget{width:100%}.k-edit-cell .k-widget,.k-grid-edit-row .k-widget{-moz-box-sizing:border-box;box-sizing:border-box}*+html .k-edit-cell .k-textbox,*+html .k-edit-cell .k-widget,*+html .k-grid-edit-row .k-textbox,*+html .k-grid-edit-row .k-widget{display:inline;width:90%}html .k-edit-cell .k-tooltip,html .k-grid-edit-row .k-tooltip{width:auto;max-width:300px}.k-edit-cell input[type="checkbox"]{margin-left:.6em}.k-grid tbody td>.k-grid-delete{margin-top:-.2em;margin-bottom:-.2em}.k-grid-resize-indicator{position:absolute;width:2px;background-color:#aaa}.k-grid .k-resize-handle{position:absolute;height:25px;cursor:col-resize}.k-marquee{position:absolute;filter:alpha(opacity=30);opacity:.3}span.k-datepicker,span.k-numerictextbox,span.k-combobox,span.k-dropdown{background:0}.k-autocomplete,.k-combobox,.k-datepicker,.k-timepicker,.k-datetimepicker,.k-numerictextbox,.k-dropdown,.k-selectbox{position:relative;display:inline-block;width:12.4em;overflow:visible;border-width:0;white-space:nowrap;vertical-align:middle}.k-datetimepicker{width:15em}.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap{position:relative;cursor:default}.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap{display:block}.k-calendar-container .k-header{background:0}.k-widget,.k-grid,.k-slider,.k-splitter,.k-treeview,.k-panelbar{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-list-container,.k-calendar-container{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);padding:2px;border:1px solid transparent}.k-list-container.k-state-border-up,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-border-up,.k-picker-wrap.k-state-border-up,.k-numeric-wrap.k-state-border-up{border-top:0;padding-top:3px}.k-dropdown-wrap.k-state-border-up .k-select,.k-picker-wrap.k-state-border-up .k-select{top:1px}.k-list-container.k-state-border-down,.k-autocomplete.k-state-border-down,.k-dropdown-wrap.k-state-border-down,.k-picker-wrap.k-state-border-down,.k-numeric-wrap.k-state-border-down{border-bottom:0;padding-bottom:3px}.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap{border-width:1px;border-style:solid;padding:2px 22px 2px 2px}.k-autocomplete{padding:2px}.k-autocomplete,.k-dropdown-wrap.k-state-focused,.k-dropdown-wrap.k-state-hover,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-focused,.k-numeric-wrap.k-state-hover{-webkit-transition:-webkit-box-shadow .15s ease-out;-moz-transition:-moz-box-shadow .15s ease-out;-o-transition:box-shadow .15s ease-out;-ms-transition:box-shadow .15s ease-out;transition:box-shadow .15s ease-out}.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-combobox .k-input{width:100%;vertical-align:top}.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-dropdown-wrap .k-input,.k-selectbox .k-input{font-family:inherit;border-width:0;outline:0}.k-dropdown{outline:0}.k-dropdown .k-input,.k-selectbox .k-input{background:transparent}*+html .k-picker-wrap .k-input,*+html .k-numeric-wrap .k-input,*+html .k-combobox .k-input{margin:-1px 0}.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-dropdown-wrap .k-select{position:absolute;top:0;right:0;display:inline-block;vertical-align:top;text-decoration:none;cursor:default}.k-combobox .k-select,.k-picker-wrap .k-select,.k-numeric-wrap .k-select{border-style:solid;border-width:0;border-color:inherit}.k-picker-wrap .k-select,.k-numeric-wrap .k-select{padding:0 2px}span.k-datetimepicker .k-select{right:21px}span.k-datetimepicker .k-select+.k-select{right:0}.k-autocomplete{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.k-autocomplete .k-input{display:block}.k-combobox .k-icon{margin-top:1px}.k-dropdown .k-select,.k-selectbox .k-select{overflow:hidden;border:0;text-decoration:none;font:inherit;color:inherit;cursor:default}.k-dropdown .k-input,.k-selectbox .k-input{display:block;overflow:hidden;text-overflow:ellipsis}.k-autocomplete .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-dropdown-wrap .k-input,.k-selectbox .k-input{height:1.31em;line-height:1.31em;padding:.18em 0;text-indent:4px;border:0;margin:0}*+html .k-autocomplete .k-input,*+html .k-picker-wrap .k-input,*+html .k-numeric-wrap .k-input,*+html .k-dropdown-wrap .k-input,*+html .k-selectbox .k-input{text-indent:0}.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-dropdown-wrap .k-select{min-height:1.3em;line-height:1.3em;vertical-align:middle;padding:3px}body .k-datetimepicker .k-select{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.k-popup{border-style:solid;border-width:1px}.k-popup .k-item{cursor:default}.k-popup .k-calendar{border:0}.k-list{height:100%}.k-list .k-item{padding:1px 5px 1px 5px;line-height:1.8em}.k-list .k-state-hover,.k-list .k-state-focused,.k-list .k-state-selected{padding:0 4px;border-width:1px;border-style:solid}.k-calendar{position:relative;display:inline-block;width:203px;overflow:hidden}.k-calendar td,.k-calendar .k-link{text-decoration:none}.k-calendar .k-action-link{text-decoration:underline}.k-calendar .k-header,.k-calendar .k-footer{position:relative;text-align:center;zoom:1}.k-calendar .k-nav-prev,.k-calendar .k-nav-next{position:absolute;top:.3em;padding:.22em}.k-calendar .k-nav-prev{left:1%}.k-calendar .k-nav-next{right:1%}.k-calendar .k-content{float:left;border-spacing:0;width:100%;height:166px;border-width:0;margin:0;table-layout:fixed;text-align:right}.k-calendar .k-animation-container .k-content{height:100%}.k-calendar .k-nav-fast{display:inline-block;width:75%;height:29px;line-height:29px}.k-calendar .k-nav-fast .k-icon{vertical-align:top}.k-calendar th{border-bottom-style:solid;border-bottom-width:1px;padding:.4em .45em .4em .1em;font-weight:normal;cursor:default}.k-calendar td{padding:1px;cursor:pointer}.k-calendar .k-state-focus{border-style:dotted;border-width:1px;padding:0}.k-calendar .k-content .k-link{display:block;overflow:hidden}.k-calendar .k-content .k-link{height:22px;line-height:22px;padding:0 .45em 0 .1em}.k-calendar .k-meta-view .k-link{padding:.25em 0 .3em;text-align:center}.k-calendar .k-footer{clear:both;padding:.5em 0}.k-calendar .k-nav-today:hover{text-decoration:underline}span.k-timepicker,span.k-datetimepicker,span.k-datepicker{background-color:transparent}.k-datetimepicker .k-picker-wrap{padding-right:44px}.k-picker-wrap .k-icon{cursor:pointer}.k-button,.k-textbox,.k-timepicker,.k-datepicker,.k-datetimepicker{display:inline-block;vertical-align:middle}.k-picker-wrap .k-input{margin:0}.k-time-popup .k-item{padding:1px 3px}div.k-treeview{border-width:0;background:0;overflow:auto;white-space:nowrap}.k-treeview .k-item{display:block;border-width:0;margin:0;padding:0 0 0 16px}.k-treeview .k-group,.k-treeview .k-content{margin:0;padding:0;background:0;list-style-type:none}.k-treeview .k-animation-container{height:auto!important}.k-treeview .k-icon,.k-treeview .k-image,.k-treeview .k-sprite,.k-treeview .k-checkbox,.k-treeview .k-in{display:inline-block;vertical-align:top}.k-treeview .k-plus,.k-treeview .k-minus,.k-treeview .k-plus-disabled,.k-treeview .k-minus-disabled{float:left;margin-top:3px;margin-left:-16px;cursor:pointer}.k-treeview .k-plus-disabled,.k-treeview .k-minus-disabled{cursor:default}.k-treeview .k-sprite,.k-treeview .k-image{margin-right:3px}.k-treeview .k-in{margin:1px 0 1px 2px;padding:2px 4px 2px 3px;line-height:16px;text-decoration:none}.k-treeview span.k-in{cursor:default}.k-treeview .k-state-hover,.k-treeview .k-state-selected{border-style:solid;border-width:1px;padding:1px 3px 1px 2px}.k-treeview .k-drop-hint{position:absolute;z-index:10000;visibility:hidden;width:80px;height:5px;margin-top:-3px;background-color:transparent;background-repeat:no-repeat}.k-input{padding:.25em 0;outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-textbox{outline:0;height:1.66em;line-height:1.66em;padding:2px 0;text-indent:.3em}*+html .k-textbox{padding:1px 0;text-indent:0}span.k-numerictextbox{background:transparent}.k-numerictextbox .k-input{margin:0}.k-numerictextbox .k-select{padding-top:1px;padding-bottom:1px}.k-numerictextbox .k-link{display:block;height:11px;line-height:11px;border-width:0;padding:0}.k-numerictextbox .k-icon{height:11px;vertical-align:top}.k-colorpicker{display:inline-block;vertical-align:middle}.k-colorpicker .k-tool-icon{display:inline-block;vertical-align:top;padding:2px 3px;font-size:0;line-height:0}.k-colorpicker .k-selected-color{display:block;height:16px;width:16px}.k-colorpicker .k-icon{margin-top:4px;vertical-align:middle}.k-colorpicker-popup{width:136px;line-height:0}.k-colorpicker-popup .k-reset{display:inline-block;margin:0;padding:.25em}.k-colorpicker-popup .k-item{display:block;float:left;width:12px;height:12px;overflow:hidden;font-size:0;margin:0 1px 1px 0;padding:0}.k-colorpicker-popup .k-item div{height:100%;margin:1px;width:100%}.k-editor{width:100%;height:250px;table-layout:fixed;border-style:solid;border-width:1px;border-collapse:separate;font-size:100%;vertical-align:top}.k-editor .k-editor-toolbar-wrap{border:0;padding:0}.k-editor-toolbar{margin:0;padding:.1em 0;list-style-type:none;line-height:1.3em;cursor:default}.k-editor-toolbar li{display:inline;vertical-align:middle}.k-editor-toolbar .k-editor-dropdown,.k-editor-toolbar .k-editor-combobox,.k-editor-toolbar .k-editor-selectbox,.k-editor-toolbar .k-editor-colorpicker{margin-right:2px}.k-editor-toolbar .k-separator{position:relative;top:1px;border-style:solid;border-width:0 1px 0 0;margin:0 .15em;padding:0 0 0 1px;font-size:1.3em}.k-editor-toolbar .k-break{display:block;height:1px;font-size:0;line-height:0}.k-editor-toolbar .k-dropdown,.k-editor-toolbar .k-combobox,.k-editor-toolbar .k-selectbox,.k-editor-toolbar .k-colorpicker{vertical-align:middle}.k-editor-button .k-tool-icon{width:22px;height:22px;margin:1px;vertical-align:middle}.k-editor-colorpicker .k-tool-icon{padding:17px 3px 2px}.k-editor-colorpicker .k-icon{border-style:solid;border-width:0 0 0 1px;border-color:#ccc}.k-editor-colorpicker .k-selected-color{height:3px}.k-bold{background-position:-64px 0}.k-italic{background-position:-64px -22px}.k-underline{background-position:-64px -44px}.k-strikethrough{background-position:-64px -66px}.k-foreColor .k-tool-icon{background-position:-64px -88px}.k-backColor .k-tool-icon{background-position:-64px -110px}.k-justifyLeft{background-position:-64px -132px}.k-justifyCenter{background-position:-64px -154px}.k-justifyRight{background-position:-64px -176px}.k-justifyFull{background-position:-64px -198px}.k-insertUnorderedList{background-position:-64px -242px}.k-insertOrderedList{background-position:-64px -264px}.k-indent{background-position:-112px 0}.k-outdent{background-position:-112px -22px}.k-createLink{background-position:-112px -44px}.k-unlink{background-position:-112px -66px}.k-insertImage{background-position:-112px -88px}.k-fontName{width:110px}.k-fontSize{width:124px}.k-formatBlock{width:147px}.k-editor-button .k-state-hover,.k-editor-button .k-state-active{border-style:solid;border-width:1px;margin:0;vertical-align:middle}.k-editor-button .k-state-disabled{filter:alpha(opacity=30);opacity:.3}.k-editor .k-editable-area{width:100%;height:100%;border-style:solid;border-width:1px;outline:0}.k-editor .k-content{display:block;width:100%;height:100%;border:0;margin:0;padding:0}.k-editor iframe.k-content{display:inline;vertical-align:top}.k-editor .k-raw-content{border:0;margin:0;padding:0;font-size:inherit;font-family:consolas,"courier new",monospace}.k-editor-dialog{padding:1em}.k-editor-dialog ol{margin:0;padding:1em 0 0;list-style:none}.k-form-text-row,.k-form-checkbox-row{padding-bottom:.3em}.k-form-text-row input{margin-right:1em}.k-form-text-row label{display:inline-block;width:7em;padding-right:.5em;text-align:right}.k-form-checkbox-row input{margin-left:7.5em;padding:0;font-size:inherit}.k-form-checkbox-row label{padding-left:.3em}.k-form-checkbox-row input,.k-form-checkbox-row label,.k-form-text-row label .k-form-text-row input,.k-form-text-row select{vertical-align:middle}.k-form-text-row input,.k-form-text-row select{width:20em}.k-editor-dialog .k-form-text-row label,.k-editor-dialog .k-button{display:inline-block}.k-editor-dialog .k-button-wrapper{padding:1em;text-align:right}.k-editor-dialog .k-button-wrapper button{vertical-align:baseline}.k-button-wrapper .k-link:hover{text-decoration:underline}div.k-slider{position:relative;border-width:0;background-color:transparent;-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.k-slider-vertical{width:26px;height:200px}.k-slider-horizontal{display:inline-block;width:200px;height:26px}.k-slider-wrap{width:100%;height:100%}.k-slider .k-button,.k-grid .k-slider .k-button{position:absolute;top:0;width:24px;min-width:0;height:24px;margin:0;padding:0;outline:0}.k-slider .k-button .k-icon{margin-top:4px;vertical-align:top}.k-state-disabled .k-slider-wrap{filter:alpha(opacity=60);opacity:.6}.k-state-disabled .k-slider-wrap .k-slider-items{color:#333}.k-slider .k-button-decrease{left:0}.k-slider-vertical .k-button-decrease,.k-grid .k-slider-vertical .k-button-decrease{top:auto;bottom:0}.k-slider .k-button-increase{right:0}.k-slider .k-icon{cursor:pointer}*+html .k-slider .k-icon{margin-top:2px}.k-slider-track,.k-slider-selection{position:absolute;margin:0;padding:0}.k-slider-horizontal .k-slider-track,.k-slider-horizontal .k-slider-selection{top:50%;left:0;height:8px;margin-top:-4px;background-repeat:repeat-x}.k-slider-horizontal .k-slider-buttons .k-slider-track{left:34px}.k-slider-vertical .k-slider-track,.k-slider-vertical .k-slider-selection{left:50%;bottom:0;width:8px;margin-left:-4px;background-repeat:repeat-y}.k-slider-vertical .k-slider-buttons .k-slider-track{bottom:34px}.k-draghandle{position:absolute;background-repeat:no-repeat;background-color:transparent;text-indent:-3333px;overflow:hidden;text-decoration:none;text-align:center;cursor:pointer}.k-slider-horizontal .k-draghandle{top:-4px;width:13px;height:14px}.k-slider-vertical .k-draghandle{left:-4px;width:14px;height:13px}.k-slider-buttons .k-slider-items{margin-left:34px}.k-slider-horizontal .k-slider-items{height:100%}.k-slider-vertical .k-slider-items{padding-top:1px}.k-slider-vertical .k-slider-buttons .k-slider-items{padding-top:0}.k-slider-vertical .k-slider-buttons .k-slider-items{margin:0;padding-top:35px}.k-slider .k-tick{position:relative;margin:0;padding:0;background-color:transparent;background-repeat:no-repeat;background-position:center center;cursor:default}.k-slider-horizontal .k-tick{float:left;height:100%;text-align:center}*+html .k-slider-vertical .k-tick{float:left;clear:left;width:100%}.k-slider-horizontal .k-tick{background-position:center -92px}.k-slider-horizontal .k-slider-topleft .k-tick{background-position:center -122px}.k-slider-horizontal .k-slider-bottomright .k-tick{background-position:center -152px}.k-slider-horizontal .k-tick-large{background-position:center -2px}.k-slider-horizontal .k-slider-topleft .k-tick-large{background-position:center -32px}.k-slider-horizontal .k-slider-bottomright .k-tick-large{background-position:center -62px}.k-slider-vertical .k-tick{background-position:-92px center}.k-slider-vertical .k-slider-topleft .k-tick{background-position:-122px center}.k-slider-vertical .k-slider-bottomright .k-tick{background-position:-152px center}.k-slider-vertical .k-tick-large{background-position:-2px center}.k-slider-vertical .k-slider-topleft .k-tick-large{background-position:-32px center}.k-slider-vertical .k-slider-bottomright .k-tick-large{background-position:-62px center}.k-slider-horizontal .k-first{background-position:0 -92px}.k-slider-horizontal .k-tick-large.k-first{background-position:0 -2px}.k-slider-horizontal .k-slider-topleft .k-first{background-position:0 -122px}.k-slider-horizontal .k-slider-topleft .k-tick-large.k-first{background-position:0 -32px}.k-slider-horizontal .k-slider-bottomright .k-first{background-position:0 -152px}.k-slider-horizontal .k-slider-bottomright .k-tick-large.k-first{background-position:0 -62px}.k-slider-horizontal .k-last{background-position:100% -92px}.k-slider-horizontal .k-tick-large.k-last{background-position:100% -2px}.k-slider-horizontal .k-slider-topleft .k-last{background-position:100% -122px}.k-slider-horizontal .k-slider-topleft .k-tick-large.k-last{background-position:100% -32px}.k-slider-horizontal .k-slider-bottomright .k-last{background-position:100% -152px}.k-slider-horizontal .k-slider-bottomright .k-tick-large.k-last{background-position:100% -62px}.k-slider-vertical .k-first{background-position:-92px 100%}.k-slider-vertical .k-tick-large.k-first{background-position:-2px 100%}.k-slider-vertical .k-slider-topleft .k-first{background-position:-122px 100%}.k-slider-vertical .k-slider-topleft .k-tick-large.k-first{background-position:-32px 100%}.k-slider-vertical .k-slider-bottomright .k-first{background-position:-152px 100%}.k-slider-vertical .k-slider-bottomright .k-tick-large.k-first{background-position:-62px 100%}.k-slider-vertical .k-last{background-position:-92px 0}.k-slider-vertical .k-tick-large.k-last{background-position:-2px 0}.k-slider-vertical .k-slider-topleft .k-last{background-position:-122px 0}.k-slider-vertical .k-slider-topleft .k-tick-large.k-last{background-position:-32px 0}.k-slider-vertical .k-slider-bottomright .k-last{background-position:-152px 0}.k-slider-vertical .k-slider-bottomright .k-tick-large.k-last{background-position:-62px 0}.k-slider-vertical .k-tick{text-align:right}.k-slider-vertical .k-slider-topleft .k-tick{text-align:left}.k-slider .k-label{position:absolute;white-space:nowrap;font-size:.92em}.k-slider-horizontal .k-label{left:0;width:100%;line-height:1}.k-slider-horizontal .k-first .k-label{left:-50%}.k-slider-horizontal .k-last .k-label{left:auto;right:-50%}.k-slider-horizontal .k-label{bottom:-1.2em}.k-slider-horizontal .k-slider-topleft .k-label{top:-1.2em}.k-slider-vertical .k-label{left:120%;display:block;text-align:left}.k-slider-vertical .k-last .k-label{top:-0.5em}.k-slider-vertical .k-first .k-label{bottom:-0.5em}.k-slider-vertical .k-slider-topleft .k-label{left:auto;right:120%}.k-tooltip{position:absolute;z-index:10002;border-style:solid;border-width:2px;padding:4px 5px 4px 6px;background-repeat:repeat-x;min-width:10px;text-align:center;filter:alpha(opacity=90);opacity:.9}span.k-tooltip{position:static;display:inline-block;border-width:1px;padding:2px 5px 1px 6px}.k-invalid-msg{display:none}.k-callout{position:absolute}.k-callout-n,.k-callout-s{width:11px;height:6px}.k-callout-w,.k-callout-e{width:6px;height:11px}.k-callout-n{top:-7px;left:49%;margin-left:-5px;background-position:-162px -181px}.k-tooltip-validation .k-callout-n{background-position:-178px -181px}.k-callout-w{top:49%;left:-7px;margin-top:-5px;background-position:-165px -226px}.k-tooltip-validation .k-callout-w{background-position:-181px -226px}.k-callout-s{top:100%;left:49%;margin-top:2px;margin-left:-5px;background-position:-162px -213px}.k-tooltip-validation .k-callout-s{background-position:-178px -213px}.k-callout-e{top:49%;left:100%;margin-top:-5px;margin-left:2px;background-position:-165px -194px}.k-tooltip-validation .k-callout-e{background-position:-181px -194px}.k-tooltip-validation .k-warning{vertical-align:text-top;margin-right:3px}.k-window .k-tooltip-validation{z-index:10010}.k-splitter{position:relative;height:300px}.k-pane>.k-splitter{border-width:0;overflow:hidden}.k-splitter .k-pane{overflow:hidden}.k-splitter .k-scrollable{overflow:auto}.k-splitter .k-pane-loading{position:absolute;top:50%;left:50%;margin:-8px 0 0 -8px}.k-ghost-splitbar,.k-splitbar{position:absolute;border-style:solid;font-size:0}.k-splitter .k-ghost-splitbar-horizontal,.k-splitter .k-splitbar-horizontal{top:0;width:5px;border-width:0 1px;background-repeat:repeat-y}.k-ghost-splitbar-vertical,.k-splitbar-vertical{left:0;height:5px;border-width:1px 0;background-repeat:repeat-x}.k-splitbar-draggable-horizontal{cursor:w-resize}.k-splitbar-draggable-vertical{cursor:n-resize}.k-splitbar .k-resize-handle{display:none}.k-restricted-size-horizontal,.k-restricted-size-vertical{background-color:#f00}.k-splitbar-horizontal .k-icon{position:absolute;top:50%;width:5px;height:20px;margin-top:-10px}.k-collapse-prev,.k-collapse-next,.k-expand-prev,.k-expand-next{cursor:pointer}.k-splitbar-horizontal .k-collapse-prev{margin-top:-31px}.k-splitbar-horizontal .k-collapse-next{margin-top:11px}.k-splitbar-static-horizontal{width:1px}.k-splitbar-static-vertical{height:1px}.k-splitbar-vertical .k-icon{position:absolute;left:50%;width:20px;height:5px;margin-left:-10px}.k-splitbar-vertical .k-collapse-prev{margin-left:-31px}.k-splitbar-vertical .k-collapse-next{margin-left:11px}.k-splitbar-draggable-vertical .k-resize-handle,.k-splitbar-draggable-horizontal .k-resize-handle{display:inline-block}.k-splitbar-horizontal .k-resize-handle{background-position:-165px -6px}.k-splitbar-horizontal .k-collapse-prev,.k-splitbar-horizontal .k-expand-next{background-position:-6px -174px}.k-splitbar-horizontal .k-collapse-next,.k-splitbar-horizontal .k-expand-prev{background-position:-5px -142px}.k-splitbar-vertical .k-resize-handle{background-position:-38px -309px}.k-splitbar-vertical .k-collapse-prev,.k-splitbar-vertical .k-expand-next{background-position:2px -134px}.k-splitbar-vertical .k-collapse-next,.k-splitbar-vertical .k-expand-prev{background-position:2px -165px}html .k-upload{position:relative;border-width:0;background:0}.k-dropzone em,.k-upload-button{vertical-align:middle}*+html .k-dropzone em,*+html .k-upload-button{vertical-align:baseline}.k-dropzone{border-style:solid;border-width:0;padding:4px;background-color:transparent}.k-dropzone em{visibility:hidden;margin-left:.6em}.k-dropzone-active{border-width:1px;padding:3px}.k-dropzone-active em{visibility:visible}.k-upload-button{position:relative;width:86px;overflow:hidden!important;direction:ltr}.k-upload-button input{position:absolute;top:0;right:0;z-index:1;font:200px monospace!important;filter:alpha(opacity=0);opacity:0;margin:0;padding:0;cursor:pointer}.k-upload-files{border-style:solid;border-width:1px;margin:.2em 0 0;padding:.3em .7em .5em;line-height:1.9em}.k-upload-files .k-button{position:relative;top:1px;margin-left:8px;padding-top:0;padding-bottom:0;font-size:84%}*+html .k-upload-files .k-button{line-height:1}.k-upload .k-upload-action .k-icon{width:8px;height:8px;vertical-align:baseline}.k-upload .k-delete,.k-upload .k-cancel,.k-upload .k-fail{background-position:-164px -116px}.k-retry{background-position:-164px -132px}.k-success{background-position:-160px -96px}.k-filename{position:relative;display:inline-block;min-width:120px;max-width:200px;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;-o-text-overflow:ellipsis;white-space:nowrap}.k-progress,.k-progress-status{position:absolute;bottom:-2px;left:0;width:118px;height:2px;border-style:solid;border-width:1px;background-repeat:repeat-x}.k-progress-status{left:-1px;bottom:-1px;width:50%}.k-upload-selected{min-width:86px;margin:3px 0 0;-moz-box-sizing:content-box;-ms-box-sizing:content-box;box-sizing:content-box}*+html .k-upload-selected{min-width:100px}.k-toolbar-wrap .k-dropzone em,.k-toolbar-wrap .k-upload-files{display:none}.k-toolbar-wrap .k-dropzone{border:0;padding:0;background-color:transparent}.k-search-wrap{position:relative;float:right;width:auto;padding:0}.k-search-wrap label{position:absolute;top:0;left:4px;line-height:20px;font-style:italic}.k-search-wrap input.k-input{width:158px;padding-left:0;padding-right:0}.k-search{background-position:-32px -240px}.k-search-wrap .k-search{position:absolute;top:1px;right:2px}.k-breadcrumbs{position:relative;float:left;width:560px}.k-breadcrumbs-wrap{position:absolute;top:0;left:0;z-index:1;padding-left:5px;line-height:18px}html input.k-breadcrumbs-input{width:100%;padding-left:2px;font-family:inherit}.k-breadcrumbs .k-link,.k-breadcrumbs-wrap .k-icon{margin-top:0;text-decoration:none;vertical-align:middle}.k-breadcrumbs .k-link:hover{text-decoration:underline}.k-imagebrowser .k-breadcrumbs .k-first{text-decoration:none;cursor:default}.k-imagebrowser .k-toolbar{clear:both;border-style:solid;border-width:1px;margin:8px 0 0;padding:2px 0 3px;background-repeat:repeat-x;line-height:23px;white-space:nowrap}.k-imagebrowser .k-upload{float:left}.k-imagebrowser .k-upload-button{width:auto;vertical-align:top}.k-imagebrowser .k-upload .k-icon{vertical-align:bottom}*+html .k-imagebrowser .k-upload-button,*+html .k-imagebrowser .k-upload .k-icon{vertical-align:baseline;position:relative;top:1px}*+html .k-imagebrowser .k-upload .k-icon{top:2px}*+html .k-imagebrowser .k-toolbar .k-button-icon{vertical-align:middle}.k-addfolder{background-position:-32px -272px}.k-goup{background-position:-32px -288px}.k-toolbar .k-state-disabled{filter:alpha(opacity=50);opacity:.5}.k-toolbar-wrap{float:left}.k-tiles-arrange{float:right}.k-tiles-arrange .k-arrow-down{margin:0 2px 0 3px}.k-tiles-arrange a{text-decoration:none}.k-tiles{clear:both;height:390px;border-style:solid;border-width:1px;border-top-width:0;margin:0 0 1.4em;padding:9px;overflow:auto;line-height:1.2}.k-tile{float:left;width:223px;height:88px;overflow:hidden;border-style:solid;border-width:1px;margin:1px;padding:0 0 4px;background-position:0 100px;background-repeat:repeat-x;cursor:pointer}.k-tiles li.k-state-hover,.k-tiles li.k-state-selected{background-position:0 center}.k-imagebrowser .k-thumb{float:left;display:inline;width:86px;height:86px;margin:4px 10px 0 4px;-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.k-imagebrowser .k-image{margin:2px 0 0 2px}.k-imagebrowser .k-folder{width:80px;height:80px;background-position:0 -200px;background-repeat:no-repeat}.k-imagebrowser .k-loading{margin:35px 0 0 33px}.k-tile strong,.k-tile input{margin:10px 0 4px;font-weight:normal}.k-tile strong{float:left;width:120px;overflow:hidden;text-overflow:ellipsis}.k-tile input{width:100px}.k-tile em,.k-tile .k-filesize{clear:left;font-weight:normal;font-style:normal}.k-tile strong,.k-tile input,.k-tile em,.k-tile .k-filesize{display:block}.k-imagebrowser .k-form-text-row input{width:628px}.k-tile-empty{margin:160px 0 0}.k-tile-empty .k-dialog-upload{font-weight:bold;font-size:120%}.k-tile-empty strong{display:block;margin:0 0 .2em;font-size:3em;font-weight:normal}.k-tile-empty,.k-tile-empty .k-button-wrapper{text-align:center}*+html .k-button,*+html .k-grid-filter,*+html .k-grid .k-pager,*+html .k-grid .k-status-text,*+html .k-pager .k-numeric,*+html .k-pager .k-page-i-of-n,*+html .k-pager .k-link,*+html .k-pager span,*+html .k-pager input,*+html .k-pager .k-page-size,*+html .k-grouping-row p,*+html .k-grouping-header a,*+html .k-grouping-header .k-group-indicator,*+html .k-grouping-header .k-link,*+html .k-grouping-header .k-button,*+html .k-grid-actions,*+html .k-combobox,*+html .k-dropdown,*+html .k-selectbox,*+html .k-picker-wrap .k-select,*+html .k-dropdown-wrap .k-select,*+html .k-numerictextbox,*+html .k-timepicker,*+html .k-datepicker,*+html .k-datetimepicker,*+html .k-calendar,*+html .k-calendar .k-nav-fast,*+html .k-treeview .k-icon,*+html .k-treeview .k-image,*+html .k-treeview .k-sprite,*+html .k-treeview .k-in,*+html .k-colorpicker,*+html .k-colorpicker .k-tool-icon,*+html .k-colorpicker-popup .k-reset,*+html .k-editor-dialog .k-button,.k-form-text-row label,*+html .k-tabstrip-items .k-item,*+html .k-tabstrip-items .k-link,*+html .k-slider-horizontal,*+html .k-splitbar-draggable-vertical .k-resize-handle,*+html .k-splitbar-draggable-horizontal .k-resize-handle,*+html .t-filename,*+html div.k-window,*+html .k-window-titlebar .k-window-action{display:inline;zoom:1}.km-scroll-container{-moz-user-select:-moz-none;-webkit-user-select:none;user-select:none;-webkit-margin-collapse:separate;-webkit-transform:translatez(0)}.k-widget .km-scroll-wrapper{position:relative;padding-bottom:0}.km-touch-scrollbar{position:absolute;visibility:hidden;z-index:200000;height:.3em;width:.3em;background-color:rgba(0,0,0,.7);opacity:0;-webkit-transition:opacity .3s linear;-moz-transition:opacity .3s linear;-ms-transition:opacity .3s linear;-o-transition:opacity .3s linear}.km-vertical-scrollbar{height:100%;right:2px;top:2px}.km-horizontal-scrollbar{width:100%;left:2px;bottom:2px}
|
10
|
+
.fake{color:red}.k-reset{margin:0;padding:0;border:0;outline:0;text-decoration:none;font-size:100%;list-style:none}.k-floatwrap:after,.k-slider-items:after,.k-grid-toolbar:after{content:"";display:block;clear:both;visibility:hidden;height:0;overflow:hidden}.k-floatwrap,.k-slider-items,.k-grid-toolbar{display:inline-block}.k-floatwrap,.k-slider-items,.k-grid-toolbar{display:block}.k-block,.k-button,.k-header,.k-grid-header,.k-toolbar,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-tabstrip-items .k-item,.k-link.k-state-hover,.k-textbox,.k-textbox:hover,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap,.k-autocomplete.k-state-hover,.k-dropdown-wrap.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-draghandle{background-repeat:repeat-x;background-position:0 center}.k-tabstrip,.k-menu-vertical,.k-editor,.k-tooltip,.k-state-hover,.k-state-focused,.k-state-selected{background-position:0 -258px}.k-block,.k-widget,.k-inline-block,.k-textbox>input,.k-input[type="text"],.k-input[type="number"],.k-textbox,.k-picker-wrap .k-input,.k-button,.k-draghandle{font-size:100%;font-family:inherit;border-style:solid;border-width:1px;-webkit-appearance:none}.k-block,.k-widget{line-height:normal}.k-block{width:200px;height:100px;padding:2px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.k-button{display:inline-block;margin:0;padding:2px 7px 2px;font-family:inherit;line-height:1.66em;text-align:center;cursor:pointer;outline:0;text-decoration:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}a.k-button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.k-button:-moz-any(input){padding-bottom:.37em;padding-top:.37em}*+html .k-button{overflow:visible;margin-right:4px}*+html a.k-button{line-height:1.6;padding-left:7px;padding-right:7px}*+html .k-button-expand{margin-left:0;margin-right:0}button.k-button::-moz-focus-inner,input.k-button::-moz-focus-inner{padding:0;border:0}a.k-button-expand{display:block}button.k-button-expand,input[type="submit"].k-button-expand,input[type="button"].k-button-expand,input[type="reset"].k-button-expand{width:100%}body .k-button-icon{padding-left:4px;padding-right:4px}*+html a.k-button-icon{padding-left:5px;padding-right:5px}.k-button-icontext{padding-right:8px;overflow:visible}.k-button-icontext .k-icon{margin:0 3px 0 -3px;vertical-align:text-top}*+html .k-button-icontext .k-icon{margin-right:4px}html body .k-button-bare{background:none!important;border-width:0}.k-link{cursor:pointer;outline:0;text-decoration:none}.k-grid-header span.k-link{cursor:default}.k-state-disabled,.k-state-disabled .k-link,.k-state-disabled .k-picker-wrap .k-icon,.k-state-disabled .k-button,.k-state-disabled .k-draghandle,.k-state-disabled .k-slider .k-icon,.k-state-disabled .k-upload-button input{cursor:default;outline:0}.k-state-error{border-style:ridge}.k-state-empty{font-style:italic}.k-icon,.k-sprite,.k-editor-button .k-tool-icon{display:inline-block;width:16px;height:16px;overflow:hidden;background-color:transparent;background-repeat:no-repeat;font-size:0;line-height:0;text-indent:-3333px;text-align:center;vertical-align:middle}*+html .k-icon,*+html .k-sprite{text-indent:0}.k-numerictextbox .k-i-arrow-n{background-position:0 -2px}.k-numerictextbox .k-i-arrow-s{background-position:0 -35px}.k-state-selected .k-i-arrow-n{background-position:-16px 0}.k-numerictextbox .k-state-selected .k-i-arrow-n{background-position:-16px -2px}.k-state-selected .k-i-arrow-s{background-position:-16px -32px}.k-numerictextbox .k-state-selected .k-i-arrow-s{background-position:-16px -35px}.k-i-arrow-n{background-position:0 0}.k-i-arrow-e{background-position:0 -16px}.k-i-arrow-s{background-position:0 -32px}.k-i-arrow-w{background-position:0 -48px}.k-i-seek-n{background-position:0 -64px}.k-i-seek-e{background-position:0 -80px}.k-i-seek-s{background-position:0 -96px}.k-i-seek-w{background-position:0 -112px}.k-si-arrow-n{background-position:0 -129px}.k-si-arrow-e{background-position:0 -144px}.k-si-arrow-s{background-position:0 -159px}.k-si-arrow-w{background-position:0 -176px}.k-i-arrowhead-n{background-position:0 -256px}.k-i-arrowhead-e{background-position:0 -272px}.k-i-arrowhead-s{background-position:0 -288px}.k-i-arrowhead-w{background-position:0 -304px}.k-i-expand,.k-plus{background-position:0 -192px}.k-i-expand-w,.k-rtl .k-i-expand,.k-rtl .k-plus{background-position:0 -208px}.k-i-collapse,.k-minus{background-position:0 -226px}.k-i-collapse-w,.k-rtl .k-i-collapse,.k-rtl .k-minus{background-position:0 -240px}.k-i-pencil,.k-edit{background-position:-32px 0}.k-i-close,.k-delete,.k-group-delete{background-position:-32px -16px}.k-i-tick,.k-insert,.k-update{background-position:-32px -32px}.k-i-cancel,.k-cancel,.k-denied{background-position:-32px -48px}.k-i-plus,.k-add{background-position:-32px -64px}.k-i-funnel,.k-filter{background-position:-32px -80px}.k-i-funnel-clear,.k-clear-filter{background-position:-32px -96px}.k-i-refresh{background-position:-32px -112px}.k-i-restore{background-position:-32px -128px}.k-i-maximize{background-position:-32px -144px}.k-i-minimize{background-position:-64px -288px}.k-resize-se{background-position:-32px -160px}.k-i-calendar{background-position:-32px -176px}.k-i-clock{background-position:-32px -192px}.k-si-plus{background-position:-32px -208px}.k-si-minus{background-position:-32px -224px}.k-i-search{background-position:-32px -240px}.k-i-custom{background-position:-115px -113px}.k-editor .k-i-custom{background-position:-112px -110px}.k-viewHtml{background-position:-112px -132px}.k-i-insert-n,.k-insert-top{background-position:-160px -32px}.k-i-insert-m,.k-insert-middle{background-position:-160px -48px}.k-i-insert-s,.k-insert-bottom{background-position:-160px -64px}.k-drop-hint{background-position:0 -326px}.k-i-note,.k-warning{background-position:-160px -240px}.k-i-sort-asc{background-position:-112px -240px}.k-i-sort-desc{background-position:-112px -256px}.k-i-group{background-position:-112px -272px}.k-i-ungroup{background-position:-112px -288px}.k-i-columns{background-position:-112px -304px}.k-image{border:0}html .k-success-colored{color:#507f50;border-color:#d0dfd0;background-color:#f0fff0}html .k-info-colored{color:#50607f;border-color:#d0d9df;background-color:#f0f9ff}html .k-error-colored{color:#7f5050;border-color:#dfd0d0;background-color:#fff0f0}.k-inline-block{padding:0 2px}.k-loading,.k-loading-image{background-color:transparent;background-repeat:no-repeat;background-position:center center}.k-loading-mask,.k-loading-image,.k-loading-text{position:absolute}.k-loading-text{top:-4000px;left:-4000px}.k-loading-image,.k-loading-color{width:100%;height:100%}.k-loading-image{top:0;left:0;z-index:2}.k-loading-color{filter:alpha(opacity=30);opacity:.3}.k-content-frame{border:0;width:100%;height:100%}.k-content-frame+.k-overlay{filter:alpha(opacity=0);opacity:0;position:absolute}.k-drag-clue{position:absolute;z-index:10003;border-style:solid;border-width:1px;font-size:.9em;padding:.2em .4em;white-space:nowrap;cursor:default}.k-drag-status{margin-top:-3px;margin-right:4px;vertical-align:middle}.k-reorder-cue{position:absolute;width:1px;overflow:visible}.k-reorder-cue .k-icon{position:absolute;left:-4px;width:8px;height:4px}.k-reorder-cue .k-i-arrow-s{top:-4px;background-position:-4px -166px}.k-reorder-cue .k-i-arrow-n{bottom:-4px;background-position:-4px -134px}.k-scrollbar{position:absolute;overflow:scroll}.k-scrollbar-vertical{top:0;right:0;width:17px;height:100%;overflow-x:hidden}.k-touch-scrollbar{display:none;position:absolute;z-index:200000;height:8px;width:8px;border:1px solid #8a8a8a;background-color:#858585}@media only screen and (-webkit-min-device-pixel-ratio:2){body .k-touch-scrollbar{height:12px;width:12px;-webkit-border-radius:7px}}div.k-window{display:inline-block;position:absolute;z-index:10001;border-style:solid;border-width:1px;padding-top:2em}.k-block>.k-header,.k-window-titlebar{position:absolute;width:100%;height:1.1em;line-height:1.1em;border-bottom-style:solid;border-bottom-width:1px;margin-top:-2em;padding:.4em 0;font-size:1.2em;white-space:nowrap;min-height:16px}.k-block>.k-header{position:relative;margin:-2px 0 0 -2px;padding:.3em 2px}.k-window-title{position:absolute;left:.44em;right:.44em;overflow:hidden;cursor:default;text-overflow:ellipsis}.k-window-title .k-image{margin:0 5px 0 0;vertical-align:middle}div.k-window-titleless{padding-top:0}div.k-window-content{position:relative;z-index:-1;height:100%;padding:.58em;overflow:auto;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}*+html .k-window{padding-bottom:1.16em}.k-window-titlebar .k-window-actions{position:absolute;top:0;right:.5em;padding-top:.3em;white-space:nowrap}.k-window-titlebar .k-window-action{display:inline-block;width:16px;height:16px;padding:2px;text-decoration:none;vertical-align:middle;filter:alpha(opacity=70);opacity:.7}.k-window-titlebar .k-state-hover{border-style:solid;border-width:1px;padding:1px;filter:alpha(opacity=100);opacity:1}.k-window-action .k-icon{margin:0;vertical-align:top}.k-window .k-resize-handle{position:absolute;z-index:1;background-color:#fff;font-size:0;line-height:6px;filter:alpha(opacity=0);opacity:0;zoom:1}.k-resize-n{top:-3px;left:0;width:100%;height:6px;cursor:n-resize}.k-resize-e{top:0;right:-3px;width:6px;height:100%;cursor:e-resize}.k-resize-s{bottom:-3px;left:0;width:100%;height:6px;cursor:s-resize}.k-resize-w{top:0;left:-3px;width:6px;height:100%;cursor:w-resize}.k-resize-se{bottom:-3px;right:-3px;width:16px;height:16px;cursor:se-resize}.k-resize-sw{bottom:-3px;left:-3px;width:6px;height:6px;cursor:sw-resize}.k-resize-ne{top:-3px;right:-3px;width:6px;height:6px;cursor:ne-resize}.k-resize-nw{top:-3px;left:-3px;width:6px;height:6px;cursor:nw-resize}.k-overlay{position:fixed;top:0;left:0;z-index:10001;width:100%;height:100%;background-color:#000;filter:alpha(opacity=50);opacity:.5}.k-window .k-overlay{position:absolute;width:100%;height:100%;background-color:#fff;filter:alpha(opacity=0);opacity:0}.k-window .k-widget{z-index:10002}.k-tabstrip{margin:0;padding:0;zoom:1}.k-tabstrip .k-tabstrip-items{padding:.3em .3em 0}.k-tabstrip-items .k-item,.k-panelbar .k-tabstrip-items .k-item{list-style-type:none;display:inline-block;position:relative;border-style:solid;border-width:1px 1px 0;margin:0 -1px 0 0;padding:0;vertical-align:top}.k-tabstrip-items .k-tab-on-top,.k-tabstrip-items .k-state-active,.k-panelbar .k-tabstrip-items .k-state-active{margin-bottom:-1px;padding-bottom:1px}.k-tabstrip-items .k-tab-on-top{z-index:1}.k-tabstrip-items .k-link,.k-panelbar .k-tabstrip-items .k-link{display:inline-block;border-bottom-width:0;padding:.5em .92em;outline:0}.k-tabstrip-items .k-icon,.k-panelbar .k-tabstrip-items .k-icon{margin:-1px 4px 0 -3px;vertical-align:top}.k-tabstrip-items .k-item .k-image,.k-tabstrip-items .k-item .k-sprite,.k-panelbar .k-tabstrip-items .k-item .k-image,.k-panelbar .k-tabstrip-items .k-item .k-sprite{margin:-3px 3px 0 -6px;vertical-align:middle}*+html .k-tabstrip-items .k-item .k-image,*+html .k-tabstrip-items .k-item .k-sprite{margin-top:-1px;vertical-align:top}.k-tabstrip .k-content,.k-panelbar .k-tabstrip .k-content{position:static;border-style:solid;border-width:1px;margin:0 .3em .3em;padding:.3em .92em;zoom:1}.k-tabstrip>.k-content{display:none}.k-panelbar{zoom:1}.k-panelbar>.k-item,.k-panel>.k-item{list-style-type:none;display:block;border-width:0;margin:0;zoom:1;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.k-panelbar .k-image,.k-panelbar .k-sprite{float:left;margin-top:4px;margin-right:5px;vertical-align:middle}.k-panelbar>.k-item>.k-link,.k-panel>.k-item>.k-link{display:block;position:relative;border-bottom-style:solid;border-bottom-width:1px;padding:0 1em;line-height:2.34em;text-decoration:none;zoom:1}.k-panelbar-expand,.k-panelbar-collapse{position:absolute;top:5px;right:2px}.k-panelbar .k-panel,.k-panelbar .k-content{position:relative;border-bottom-style:solid;border-bottom-width:1px;margin:0;padding:0;zoom:1}.k-panel>.k-item>.k-link{border-bottom:0;font-size:.95em;line-height:2.2}.k-panel .k-i-arrow-n,.k-panel .k-i-arrow-s{top:4px}.k-panel .k-panel>.k-item>.k-link{padding-left:2em}.k-panelbar .k-i-seek-e .k-link{border-bottom:0}.k-panel .k-panel{border-bottom:0}.k-menu{cursor:default}.k-menu,.k-menu .k-group{list-style:none;margin:0;padding:0;zoom:1}.k-menu:after{content:'\A0';display:block;width:99%;height:0;overflow:hidden}.k-menu .k-item .k-item,ul.k-menu-vertical>.k-item{display:block;float:none;border-width:0}*+html .k-menu .k-item .k-item{zoom:normal}.k-menu .k-item>.k-link>.k-icon,.k-menu .k-image,.k-menu .k-sprite{margin:-2px 4px 0 -4px;vertical-align:middle}.k-menu .k-item>.k-link>.k-icon{margin:-2px 0 0}*+html .k-menu .k-item>.k-link>.k-i-arrow-s,*+html .k-menu .k-image,*+html .k-menu .k-sprite{margin-top:0}.k-menu .k-item>.k-link{display:block;padding:.5em .9em .4em;line-height:1.34em}.k-menu .k-group{display:none;border-style:solid;border-width:1px;overflow:visible;white-space:nowrap}.k-menu .k-group .k-item{display:block;border-width:0}.k-menu .k-item,.k-widget.k-menu-horizontal>.k-item{position:relative;float:left;border-style:solid;border-width:0 1px 0 0;vertical-align:top;zoom:1;box-sizing:content-box}.k-menu .k-group .k-item>.k-link{padding:.28em 1.8em .38em .9em}*+html .k-menu .k-group .k-link{width:100%}.k-menu .k-item>.k-link>.k-i-arrow-s{margin-right:-8px}.k-menu .k-item>.k-link>.k-i-arrow-e{position:absolute;top:50%;margin-top:-8px;right:2px}.k-menu .k-animation-container{border:0}.k-menu .k-animation-container,.k-menu .k-group{position:absolute;left:0}.k-menu .k-animation-container .k-animation-container,.k-menu .k-group .k-group,.k-menu-vertical .k-animation-container,.k-menu-vertical .k-group{top:0;left:0}.k-menu .k-animation-container .k-group{top:auto;left:auto;margin-left:-1px}.k-menu .k-animation-container,.k-popup .k-animation-container{margin-top:-1px;padding-left:1px}.k-popup .k-animation-container .k-popup{margin-left:-1px}ul.k-menu .k-separator{padding:.25em 0;height:100%;width:1px;font-size:0;line-height:0;border-width:0 1px 0 0}ul.k-menu-vertical .k-separator,.k-menu .k-group .k-separator{padding:0;height:1px;width:100%;border-width:1px 0 0}.k-grid,.k-listview{position:relative;zoom:1}.k-grid table{width:100%;border-collapse:separate;empty-cells:show;border-width:0}.k-grid-header .k-header{text-align:left}.k-grid-header .k-header{overflow:hidden;border-style:solid;border-width:0 0 1px 1px;padding:.5em .6em .4em .6em;font-weight:normal;white-space:nowrap;text-overflow:ellipsis}.k-grid-header .k-header .k-link{display:block;min-height:18px;line-height:18px;margin:-.5em -.6em -.4em -.6em;padding:.5em .6em .4em .6em}.k-grid-header .k-filterable .k-link{padding-right:2.4em}.k-grid-header .k-header .k-icon{position:static}.k-grid-header .k-link>.k-icon{vertical-align:text-top}.k-grid .k-state-hover{cursor:pointer}.k-grid td{border-style:solid;border-width:0 0 0 1px;padding:.4em .6em;overflow:hidden;line-height:1.6em;vertical-align:middle;text-overflow:ellipsis}.k-grid .k-grouping-row td,.k-grid .k-hierarchy-cell{overflow:visible}.k-grid-edit-row td{text-overflow:clip}.k-grid-edit-row .k-textbox{margin-top:0;margin-bottom:0}.k-grid-header-wrap,.k-grid-footer-wrap{position:relative;width:100%;overflow:hidden;border-style:solid;border-width:0 1px 0 0;zoom:1}div.k-grid-header,div.k-grid-footer{padding-right:17px;border-bottom-style:solid;border-bottom-width:1px;zoom:1}div.k-grid-header .k-header{border-bottom-width:0}.k-grid{outline:0}.k-grid-content{position:relative;width:100%;overflow:auto;overflow-x:auto;overflow-y:scroll;zoom:1}@media print{.k-grid{height:auto!important}.k-grid-header{padding:0!important}.k-grid-content{overflow:visible;height:auto!important}}.k-virtual-scrollable-wrap{height:100%;overflow-y:hidden;position:relative}.k-grid-header table,.k-grid-content table,.k-grid-footer table{table-layout:fixed}*+html .k-grid-content table{width:auto}.k-grid-toolbar{border-style:solid;border-width:1px 0 0}.k-grid-header .k-header:first-child,.k-grid tbody td:first-child,.k-grid tfoot td:first-child{border-left-width:0}.k-grid-toolbar:first-child,.k-grouping-header+.k-grid-toolbar{border-width:0 0 1px}.k-footer-template td{border-style:solid;border-width:1px 0 0 1px}.k-group-footer td{border-style:solid;border-width:1px 0}.k-grid-footer{border-style:solid;border-width:1px 0 0}.k-grid-footer td{border-top-width:0}.k-pager-wrap{overflow:auto;border-style:solid;border-width:1px;line-height:24px;padding:4px 0 4px 3px}.k-grid-pager{border-width:1px 0 0}.k-grid .k-pager-numbers,.k-pager-numbers .k-link,.k-pager-numbers .k-state-selected{display:inline-block;vertical-align:top}.k-pager-numbers{margin:0 2px}.k-pager-numbers .k-state-selected{vertical-align:top}.k-pager-numbers li,.k-pager-input{float:left}.k-grid .k-pager-numbers{float:left;cursor:default}.k-pager-info{float:right;padding:0 16px}.k-pager-numbers .k-link{text-decoration:none}.k-pager-wrap>.k-link{float:left;margin:0 1px;padding:0 3px;height:22px;line-height:22px;border-radius:13px;cursor:pointer}.k-pager-wrap>a.k-state-disabled:hover{background:0;cursor:default}.k-pager-wrap>.k-link .k-icon{vertical-align:top;margin-top:3px}.k-pager-numbers .k-link{padding:0 8px;border-radius:13px}.k-pager-numbers .k-link:hover{padding:0 7px;border-style:solid;border-width:1px;line-height:22px}.k-pager-wrap>.k-link{border-style:solid;border-width:1px}.k-pager-wrap .k-pager-refresh{float:right;margin-right:6px;border-width:0;border-radius:0}.k-pager-numbers .k-state-selected{border-style:solid;border-width:1px;line-height:22px;padding:0 7px;border-radius:13px}.k-pager-wrap .k-textbox{width:40px}*+html .k-pager-wrap .k-textbox{height:16px;margin-top:2px}.k-pager-wrap .k-dropdown{width:50px}.k-pager-refresh{float:right}.k-pager-input,.k-pager-sizes{padding:0 17px}*+html .k-pager-sizes{float:left}.k-pager-wrap .k-textbox,.k-pager-wrap .k-widget{margin:-.3em .4em 0}.k-grid-filter,.k-header-column-menu{float:right;margin:-.5em -.6em -.4em;padding:.5em .2em .4em}.k-grid .k-animation-container{position:absolute}.k-filter-menu{padding:.5em}.k-filter-menu .k-widget,.k-filter-menu .k-textbox{display:block}.k-filter-help-text,.k-filter-menu .k-widget{margin:.3em 0 0}.k-filter-menu .k-filter-and{width:6em;margin:.6em 0 0}.k-filter-menu .k-button{width:48%;margin:.6em 4% 0 0}.k-filter-menu .k-button+.k-button{margin-right:0}.k-grouping-row .k-icon{margin:0 4px 0 0}.k-grouping-row p{display:inline-block;vertical-align:middle;margin-left:-.6em;padding:0 .6em}.k-grid .k-group-cell+td,.k-grid .k-hierarchy-cell+td{border-left-width:0}.k-grid .k-group-col,.k-grid .k-hierarchy-col{width:30px}.k-grouping-header{border-bottom-style:solid;border-bottom-width:1px}.k-grouping-header{line-height:2}.k-grouping-dropclue{position:absolute;width:6px;height:25px;background-repeat:no-repeat;background-position:-165px -148px}.k-grouping-header .k-group-indicator{display:inline-block;border-style:solid;border-width:1px;margin:0 3px;padding:.15em .15em .15em .4em;line-height:1.5em}.k-grouping-header .k-link{display:inline-block;border-width:0;padding:0;line-height:normal;text-decoration:none}.k-grouping-header .k-button{border:0;padding:0;background:transparent;line-height:1}.k-grouping-header .k-link .k-icon{margin:0 0 0 -3px}.k-grouping-header .k-button .k-icon{margin:0 0 0 3px}.k-grouping-header a,.k-grouping-header .k-button{display:inline-block;vertical-align:middle}.k-dirty{position:absolute;width:0;height:0;border-style:solid;border-width:3px;border-color:#f00 transparent transparent #f00;margin:-0.45em 0 0 -0.6em;padding:0;overflow:hidden;vertical-align:top}.k-grouping-header,.k-grid-toolbar{margin:0;padding:.2em .6em;cursor:default}.k-grid .k-edit-container{padding:0}.k-edit-form{margin:0;padding:0}.k-grid-edit-row .k-edit-form td{border-bottom-width:0}.k-edit-form-container{position:relative;width:400px}.k-edit-label,.k-edit-field,.editor-label,.editor-field{display:inline-block;padding-bottom:1em}.k-edit-label,.editor-label{width:30%;text-align:right;padding-right:3%}.k-edit-field,.editor-field{width:60%}.k-grid .field-validation-error{display:block}.k-grid .input-validation-error{border-style:ridge;border-color:#f00;background-color:#ffc0cb}.k-grid-toolbar .k-button{vertical-align:middle}.k-grid-actions{display:inline-block}*+html .k-grid-actions{vertical-align:bottom}.k-grid .k-button,.k-edit-form-container .k-button{margin:0 .2em}.k-grid tbody .k-button{min-width:64px}.k-grid tbody button.k-button,#ie8#skips{min-width:78px}*+html .k-grid tbody a.k-button{min-width:62px}html body .k-grid tbody .k-button-icon{width:auto;min-width:0}.k-detail-row{position:relative}.k-grid .k-detail-cell{overflow:visible}.k-grid .k-edit-cell{padding:0 .3em}.k-edit-cell .k-textbox,.k-edit-cell .k-widget,.k-grid-edit-row .k-textbox,.k-grid-edit-row .k-widget{width:100%}.k-edit-cell .k-widget,.k-grid-edit-row .k-widget{-moz-box-sizing:border-box;box-sizing:border-box}*+html .k-edit-cell .k-textbox,*+html .k-edit-cell .k-widget,*+html .k-grid-edit-row .k-textbox,*+html .k-grid-edit-row .k-widget{display:inline;width:90%}html .k-edit-cell .k-tooltip,html .k-grid-edit-row .k-tooltip{width:auto;max-width:300px}.k-edit-cell input[type="checkbox"]{margin-left:.6em}.k-grid tbody td>.k-grid-delete{margin-top:-.2em;margin-bottom:-.2em}.k-grid-resize-indicator{position:absolute;width:2px;background-color:#aaa}.k-grid .k-resize-handle{position:absolute;height:25px;cursor:col-resize}.k-marquee{position:absolute;filter:alpha(opacity=30);opacity:.3}.k-column-menu .k-sprite{margin-right:10px}span.k-datepicker,span.k-numerictextbox,span.k-combobox,span.k-dropdown{background:0}.k-autocomplete,.k-combobox,.k-datepicker,.k-timepicker,.k-datetimepicker,.k-numerictextbox,.k-dropdown,.k-selectbox,.k-textbox{position:relative;display:inline-block;width:12.4em;overflow:visible;border-width:0;white-space:nowrap;vertical-align:middle}.k-datetimepicker{width:15em}.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap{position:relative;cursor:default}.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap{display:block}.k-calendar-container .k-header{background:0}.k-block,.k-widget,.k-grid,.k-slider,.k-splitter,.k-treeview,.k-panelbar{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-popup.k-list-container,.k-popup.k-calendar-container{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);padding:2px;border-width:1px;border-style:solid}.k-list-container.k-state-border-up,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-border-up,.k-picker-wrap.k-state-border-up,.k-numeric-wrap.k-state-border-up{border-top:0;padding-top:3px}.k-dropdown-wrap.k-state-border-up .k-select,.k-picker-wrap.k-state-border-up .k-select{top:1px}.k-list-container.k-state-border-down,.k-autocomplete.k-state-border-down,.k-dropdown-wrap.k-state-border-down,.k-picker-wrap.k-state-border-down,.k-numeric-wrap.k-state-border-down{border-bottom:0;padding-bottom:3px}.k-textbox,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap{border-width:1px;border-style:solid;padding:2px 22px 2px 2px}.k-numeric-wrap.k-expand-padding{padding-right:2px}.k-textbox,.k-autocomplete{padding:2px}.k-textbox.k-space-left{padding-left:22px}.k-textbox.k-space-right{padding-right:22px}.k-textbox .k-icon{font-size:inherit;top:50%;margin:-8px 0 0;position:absolute}.k-space-left .k-icon{left:3px}.k-space-right .k-icon{right:3px}.k-autocomplete,.k-dropdown-wrap.k-state-focused,.k-dropdown-wrap.k-state-hover,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-focused,.k-numeric-wrap.k-state-hover{-webkit-transition:-webkit-box-shadow .15s ease-out;-moz-transition:-moz-box-shadow .15s ease-out;-o-transition:box-shadow .15s ease-out;-ms-transition:box-shadow .15s ease-out;transition:box-shadow .15s ease-out}.k-textbox>input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-combobox .k-input{width:100%;vertical-align:top}.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-dropdown-wrap .k-input,.k-selectbox .k-input{font-family:inherit;border-width:0;outline:0}.k-dropdown{outline:0}.k-dropdown .k-input,.k-selectbox .k-input{background:transparent}*+html .k-picker-wrap .k-input,*+html .k-numeric-wrap .k-input,*+html .k-combobox .k-input{margin:-1px 0}.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-dropdown-wrap .k-select{position:absolute;top:0;right:0;display:inline-block;vertical-align:top;text-decoration:none;cursor:default}.k-combobox .k-select,.k-picker-wrap .k-select,.k-numeric-wrap .k-select{border-style:solid;border-width:0;border-color:inherit}.k-picker-wrap .k-select,.k-numeric-wrap .k-select{padding:0 2px}span.k-datetimepicker .k-select,span.k-datetimepicker .k-select+.k-select{right:0}.k-textbox,.k-autocomplete{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.k-textbox>input,.k-autocomplete .k-input{display:block}.k-combobox .k-icon{margin-top:1px}.k-dropdown .k-select,.k-selectbox .k-select{overflow:hidden;border:0;text-decoration:none;font:inherit;color:inherit;cursor:default}.k-dropdown .k-input,.k-selectbox .k-input{display:block;overflow:hidden;text-overflow:ellipsis}.k-textbox>input,.k-autocomplete .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-dropdown-wrap .k-input,.k-selectbox .k-input{height:1.31em;line-height:1.31em;padding:.18em 0;text-indent:4px;border:0;margin:0}*+html .k-autocomplete .k-input,*+html .k-picker-wrap .k-input,*+html .k-numeric-wrap .k-input,*+html .k-dropdown-wrap .k-input,*+html .k-selectbox .k-input{text-indent:0}.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-dropdown-wrap .k-select{min-height:1.3em;line-height:1.3em;vertical-align:middle;padding:3px}body .k-datetimepicker .k-select{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.k-popup{border-style:solid;border-width:1px}.k-popup .k-item{cursor:default}.k-popup .k-calendar{border:0}.k-list{height:100%}.k-popup .k-list .k-item{padding:1px 5px 1px 5px;line-height:1.8em}.k-popup .k-list .k-state-hover,.k-popup .k-list .k-state-focused,.k-popup .k-list .k-state-selected{padding:0 4px;border-width:1px;border-style:solid}.k-calendar{position:relative;display:inline-block;width:203px;overflow:hidden}.k-calendar td,.k-calendar .k-link{text-decoration:none}.k-calendar .k-action-link{text-decoration:underline}.k-calendar .k-header,.k-calendar .k-footer{position:relative;text-align:center;zoom:1}.k-widget.k-calendar .k-nav-prev,.k-widget.k-calendar .k-nav-next{position:absolute;top:.3em;padding:.22em}.k-widget.k-calendar .k-nav-prev{left:1%}.k-widget.k-calendar .k-nav-next{right:1%}.k-calendar .k-content{float:left;border-spacing:0;width:100%;height:166px;border-width:0;margin:0;table-layout:fixed;text-align:right}.k-calendar .k-animation-container .k-content{height:100%}.k-widget.k-calendar .k-nav-fast{display:inline-block;width:75%;height:29px;line-height:29px}.k-calendar .k-nav-fast .k-icon{vertical-align:top}.k-calendar th{border-bottom-style:solid;border-bottom-width:1px;padding:.4em .45em .4em .1em;font-weight:normal;cursor:default}.k-calendar td{padding:1px;cursor:pointer}.k-calendar .k-state-focus{border-style:dotted;border-width:1px;padding:0}.k-calendar .k-content .k-link{display:block;overflow:hidden;min-height:22px;line-height:22px;padding:0 .45em 0 .1em}.k-calendar .k-meta-view .k-link{padding:.25em 0 .3em;text-align:center}.k-calendar .k-footer{clear:both;padding:.5em 0}.k-calendar .k-nav-today:hover{text-decoration:underline}span.k-timepicker,span.k-datetimepicker,span.k-datepicker{background-color:transparent}.k-datetimepicker .k-picker-wrap{padding-right:42px}.k-datetimepicker .k-picker-wrap .k-icon{margin-left:3px}.k-picker-wrap .k-icon{cursor:pointer}.k-button,.k-textbox,.k-timepicker,.k-datepicker,.k-datetimepicker{display:inline-block;vertical-align:middle}.k-picker-wrap .k-input{margin:0}.k-time-popup .k-item{padding:1px 3px}div.k-treeview{border-width:0;background:0;overflow:auto;white-space:nowrap}.k-treeview .k-item{display:block;border-width:0;margin:0;padding:0 0 0 16px}.k-treeview .k-group,.k-treeview .k-content{margin:0;padding:0;background:0;list-style-type:none}.k-treeview .k-animation-container{height:auto!important}.k-treeview .k-icon,.k-treeview .k-image,.k-treeview .k-sprite,.k-treeview .k-checkbox,.k-treeview .k-in{display:inline-block;vertical-align:top}.k-treeview .k-plus,.k-treeview .k-minus,.k-treeview .k-plus-disabled,.k-treeview .k-minus-disabled{float:left;margin-top:3px;margin-left:-16px;cursor:pointer}.k-treeview .k-plus-disabled,.k-treeview .k-minus-disabled{cursor:default}.k-treeview .k-sprite,.k-treeview .k-image{margin-right:3px}.k-treeview .k-in{margin:1px 0 1px 2px;padding:2px 4px 2px 3px;line-height:16px;text-decoration:none}.k-treeview span.k-in{cursor:default}.k-treeview .k-state-hover,.k-treeview .k-state-selected{border-style:solid;border-width:1px;padding:1px 3px 1px 2px}.k-treeview .k-drop-hint{position:absolute;z-index:10000;visibility:hidden;width:80px;height:5px;margin-top:-3px;background-color:transparent;background-repeat:no-repeat}.k-input{padding:.25em 0}.k-input,.k-textbox>input{outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.k-textbox{outline:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;text-indent:2px\9;width:12.4em}input.k-textbox{padding:2px .3em;height:2.12em;line-height:1.6em}textarea.k-textbox{height:auto}*+html .k-textbox{padding:1px 0;text-indent:0}span.k-numerictextbox{background:transparent}.k-numerictextbox .k-input{margin:0}.k-numerictextbox .k-select{padding-top:1px;padding-bottom:1px}.k-numerictextbox .k-link{display:block;height:11px;line-height:11px;border-width:0;padding:0}.k-numerictextbox .k-icon{height:11px;vertical-align:top}.k-colorpicker{display:inline-block;vertical-align:middle}.k-colorpicker .k-tool-icon{display:inline-block;vertical-align:top;padding:2px 3px;font-size:0;line-height:0}.k-colorpicker .k-selected-color{display:block;height:16px;width:16px}.k-colorpicker .k-icon{margin-top:4px;vertical-align:middle}.k-colorpicker-popup{width:136px;line-height:0}.k-colorpicker-popup .k-reset{display:inline-block;margin:0;padding:.25em}.k-colorpicker-popup .k-item{display:block;float:left;width:12px;height:12px;overflow:hidden;font-size:0;margin:0 1px 1px 0;padding:0}.k-colorpicker-popup .k-item div{height:100%;margin:1px;width:100%}.k-editor{width:100%;height:250px;table-layout:fixed;border-style:solid;border-width:1px;border-collapse:separate;font-size:100%;vertical-align:top}.k-editor .k-editor-toolbar-wrap{border:0;padding:0}.k-editor-toolbar{margin:0;padding:.1em 0;list-style-type:none;line-height:1.3em;cursor:default}.k-editor-toolbar li{display:inline;vertical-align:middle}.k-editor-toolbar .k-editor-dropdown,.k-editor-toolbar .k-editor-combobox,.k-editor-toolbar .k-editor-selectbox,.k-editor-toolbar .k-editor-colorpicker{margin-right:2px}.k-editor-toolbar .k-separator{position:relative;top:1px;border-style:solid;border-width:0 1px 0 0;margin:0 .15em;padding:0 0 0 1px;font-size:1.3em}.k-editor-toolbar .k-break{display:block;height:1px;font-size:0;line-height:0}.k-editor-toolbar .k-dropdown,.k-editor-toolbar .k-combobox,.k-editor-toolbar .k-selectbox,.k-editor-toolbar .k-colorpicker{vertical-align:middle}.k-editor-button .k-tool-icon{width:22px;height:22px;margin:1px;vertical-align:middle}.k-editor-colorpicker .k-tool-icon{padding:17px 3px 2px}.k-editor-colorpicker .k-icon{border-style:solid;border-width:0 0 0 1px;border-color:#ccc}.k-editor-colorpicker .k-selected-color{height:3px}.k-bold{background-position:-64px 0}.k-italic{background-position:-64px -22px}.k-underline{background-position:-64px -44px}.k-strikethrough{background-position:-64px -66px}.k-foreColor .k-tool-icon{background-position:-64px -88px}.k-backColor .k-tool-icon{background-position:-64px -110px}.k-justifyLeft{background-position:-64px -132px}.k-justifyCenter{background-position:-64px -154px}.k-justifyRight{background-position:-64px -176px}.k-justifyFull{background-position:-64px -198px}.k-insertUnorderedList{background-position:-64px -242px}.k-insertOrderedList{background-position:-64px -264px}.k-indent{background-position:-112px 0}.k-outdent{background-position:-112px -22px}.k-createLink{background-position:-112px -44px}.k-unlink{background-position:-112px -66px}.k-insertImage{background-position:-112px -88px}.k-subscript{background-position:-112px -154px}.k-superscript{background-position:-112px -176px}.k-fontName{width:110px}.k-fontSize{width:124px}.k-formatBlock{width:147px}.k-editor-button .k-state-hover,.k-editor-button .k-state-active{border-style:solid;border-width:1px;margin:0;vertical-align:middle}.k-editor-button .k-state-disabled{filter:alpha(opacity=30);opacity:.3}.k-editor .k-editable-area{width:100%;height:100%;border-style:solid;border-width:1px;outline:0}.k-editor .k-content{display:block;width:100%;height:100%;border:0;margin:0;padding:0}.k-editor iframe.k-content{display:inline;vertical-align:top}.k-editor .k-raw-content{border:0;margin:0;padding:0}.k-editor .k-raw-content,.k-editor-dialog .k-editor-textarea{font-size:inherit;font-family:consolas,"courier new",monospace}.k-editor-dialog{padding:1em}.k-editor-dialog ol{margin:0;padding:1em 0 0;list-style:none}.k-form-text-row,.k-form-checkbox-row{padding-bottom:.3em}.k-form-text-row input{margin-right:1em}.k-form-text-row label{display:inline-block;width:7em;padding-right:.5em;text-align:right}.k-form-checkbox-row input{margin-left:7.5em;padding:0;font-size:inherit}.k-form-checkbox-row label{padding-left:.3em}.k-form-checkbox-row input,.k-form-checkbox-row label,.k-form-text-row label .k-form-text-row input,.k-form-text-row select{vertical-align:middle}.k-form-text-row input,.k-form-text-row select{width:20em}.k-editor-dialog .k-form-text-row label,.k-editor-dialog .k-button{display:inline-block}.k-editor-dialog .k-button-wrapper{padding:1em;text-align:right}.k-editor-dialog .k-button-wrapper button{vertical-align:baseline}.k-editor-dialog .k-editor-textarea{width:600px;height:350px;padding:.2em .2em .2em .4em;border-width:1px;border-style:solid;overflow:auto}.k-button-wrapper .k-link:hover{text-decoration:underline}div.k-slider{position:relative;border-width:0;background-color:transparent;-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.k-slider-vertical{width:26px;height:200px}.k-slider-horizontal{display:inline-block;width:200px;height:26px}.k-slider-wrap{width:100%;height:100%}.k-slider .k-button,.k-grid .k-slider .k-button{position:absolute;top:0;width:24px;min-width:0;height:24px;margin:0;padding:0;outline:0}.k-slider .k-button .k-icon{margin-top:4px;vertical-align:top}.k-state-disabled .k-slider-wrap{filter:alpha(opacity=60);opacity:.6}.k-state-disabled .k-slider-wrap .k-slider-items{color:#333}.k-slider .k-button-decrease{left:0}.k-slider-vertical .k-button-decrease,.k-grid .k-slider-vertical .k-button-decrease{top:auto;bottom:0}.k-slider .k-button-increase{right:0}.k-slider .k-icon{cursor:pointer}*+html .k-slider .k-icon{margin-top:2px}.k-slider-track,.k-slider-selection{position:absolute;margin:0;padding:0}.k-slider-horizontal .k-slider-track,.k-slider-horizontal .k-slider-selection{top:50%;left:0;height:8px;margin-top:-4px;background-repeat:repeat-x}.k-slider-horizontal .k-slider-buttons .k-slider-track{left:34px}.k-slider-vertical .k-slider-track,.k-slider-vertical .k-slider-selection{left:50%;bottom:0;width:8px;margin-left:-4px;background-repeat:repeat-y}.k-slider-vertical .k-slider-buttons .k-slider-track{bottom:34px}.k-draghandle{position:absolute;background-repeat:no-repeat;background-color:transparent;text-indent:-3333px;overflow:hidden;text-decoration:none;text-align:center;cursor:pointer}.k-slider-horizontal .k-draghandle{top:-4px;width:13px;height:14px}.k-slider-vertical .k-draghandle{left:-4px;width:14px;height:13px}.k-slider-buttons .k-slider-items{margin-left:34px}.k-slider-horizontal .k-slider-items{height:100%}.k-slider-vertical .k-slider-items{padding-top:1px}.k-slider-vertical .k-slider-buttons .k-slider-items{padding-top:0}.k-slider-vertical .k-slider-buttons .k-slider-items{margin:0;padding-top:35px}.k-slider .k-tick{position:relative;margin:0;padding:0;background-color:transparent;background-repeat:no-repeat;background-position:center center;cursor:default}.k-slider-horizontal .k-tick{float:left;height:100%;text-align:center}*+html .k-slider-vertical .k-tick{float:left;clear:left;width:100%}.k-slider-horizontal .k-tick{background-position:center -92px}.k-slider-horizontal .k-slider-topleft .k-tick{background-position:center -122px}.k-slider-horizontal .k-slider-bottomright .k-tick{background-position:center -152px}.k-slider-horizontal .k-tick-large{background-position:center -2px}.k-slider-horizontal .k-slider-topleft .k-tick-large{background-position:center -32px}.k-slider-horizontal .k-slider-bottomright .k-tick-large{background-position:center -62px}.k-slider-vertical .k-tick{background-position:-92px center}.k-slider-vertical .k-slider-topleft .k-tick{background-position:-122px center}.k-slider-vertical .k-slider-bottomright .k-tick{background-position:-152px center}.k-slider-vertical .k-tick-large{background-position:-2px center}.k-slider-vertical .k-slider-topleft .k-tick-large{background-position:-32px center}.k-slider-vertical .k-slider-bottomright .k-tick-large{background-position:-62px center}.k-slider-horizontal .k-first{background-position:0 -92px}.k-slider-horizontal .k-tick-large.k-first{background-position:0 -2px}.k-slider-horizontal .k-slider-topleft .k-first{background-position:0 -122px}.k-slider-horizontal .k-slider-topleft .k-tick-large.k-first{background-position:0 -32px}.k-slider-horizontal .k-slider-bottomright .k-first{background-position:0 -152px}.k-slider-horizontal .k-slider-bottomright .k-tick-large.k-first{background-position:0 -62px}.k-slider-horizontal .k-last{background-position:100% -92px}.k-slider-horizontal .k-tick-large.k-last{background-position:100% -2px}.k-slider-horizontal .k-slider-topleft .k-last{background-position:100% -122px}.k-slider-horizontal .k-slider-topleft .k-tick-large.k-last{background-position:100% -32px}.k-slider-horizontal .k-slider-bottomright .k-last{background-position:100% -152px}.k-slider-horizontal .k-slider-bottomright .k-tick-large.k-last{background-position:100% -62px}.k-slider-vertical .k-first{background-position:-92px 100%}.k-slider-vertical .k-tick-large.k-first{background-position:-2px 100%}.k-slider-vertical .k-slider-topleft .k-first{background-position:-122px 100%}.k-slider-vertical .k-slider-topleft .k-tick-large.k-first{background-position:-32px 100%}.k-slider-vertical .k-slider-bottomright .k-first{background-position:-152px 100%}.k-slider-vertical .k-slider-bottomright .k-tick-large.k-first{background-position:-62px 100%}.k-slider-vertical .k-last{background-position:-92px 0}.k-slider-vertical .k-tick-large.k-last{background-position:-2px 0}.k-slider-vertical .k-slider-topleft .k-last{background-position:-122px 0}.k-slider-vertical .k-slider-topleft .k-tick-large.k-last{background-position:-32px 0}.k-slider-vertical .k-slider-bottomright .k-last{background-position:-152px 0}.k-slider-vertical .k-slider-bottomright .k-tick-large.k-last{background-position:-62px 0}.k-slider-vertical .k-tick{text-align:right}.k-slider-vertical .k-slider-topleft .k-tick{text-align:left}.k-slider .k-label{position:absolute;white-space:nowrap;font-size:.92em}.k-slider-horizontal .k-label{left:0;width:100%;line-height:1}.k-slider-horizontal .k-first .k-label{left:-50%}.k-slider-horizontal .k-last .k-label{left:auto;right:-50%}.k-slider-horizontal .k-label{bottom:-1.2em}.k-slider-horizontal .k-slider-topleft .k-label{top:-1.2em}.k-slider-vertical .k-label{left:120%;display:block;text-align:left}.k-slider-vertical .k-last .k-label{top:-0.5em}.k-slider-vertical .k-first .k-label{bottom:-0.5em}.k-slider-vertical .k-slider-topleft .k-label{left:auto;right:120%}.k-tooltip{position:absolute;z-index:20000;border-style:solid;border-width:2px;padding:4px 5px 4px 6px;background-repeat:repeat-x;min-width:10px;text-align:center;filter:alpha(opacity=90);opacity:.9}span.k-tooltip{position:static;display:inline-block;border-width:1px;padding:2px 5px 1px 6px}.k-invalid-msg{display:none}.k-callout{position:absolute}.k-callout-n,.k-callout-s{width:11px;height:6px}.k-callout-w,.k-callout-e{width:6px;height:11px}.k-callout-n{top:-7px;left:49%;margin-left:-5px;background-position:-162px -181px}.k-tooltip-validation .k-callout-n{background-position:-178px -181px}.k-callout-w{top:49%;left:-7px;margin-top:-5px;background-position:-165px -226px}.k-tooltip-validation .k-callout-w{background-position:-181px -226px}.k-callout-s{top:100%;left:49%;margin-top:2px;margin-left:-5px;background-position:-162px -213px}.k-tooltip-validation .k-callout-s{background-position:-178px -213px}.k-callout-e{top:49%;left:100%;margin-top:-5px;margin-left:2px;background-position:-165px -194px}.k-tooltip-validation .k-callout-e{background-position:-181px -194px}.k-tooltip-validation .k-warning{vertical-align:text-top;margin-right:3px}.k-window .k-tooltip-validation{z-index:10010}.k-splitter{position:relative;height:300px}.k-pane>.k-splitter{border-width:0;overflow:hidden}.k-splitter .k-pane{overflow:hidden}.k-splitter .k-scrollable{overflow:auto}.k-splitter .k-pane-loading{position:absolute;top:50%;left:50%;margin:-8px 0 0 -8px}.k-ghost-splitbar,.k-splitbar{position:absolute;border-style:solid;font-size:0}.k-splitter .k-ghost-splitbar-horizontal,.k-splitter .k-splitbar-horizontal{top:0;width:5px;border-width:0 1px;background-repeat:repeat-y}.k-ghost-splitbar-vertical,.k-splitbar-vertical{left:0;height:5px;border-width:1px 0;background-repeat:repeat-x}.k-splitbar-draggable-horizontal{cursor:w-resize}.k-splitbar-draggable-vertical{cursor:n-resize}.k-splitbar .k-resize-handle{display:none}.k-restricted-size-horizontal,.k-restricted-size-vertical{background-color:#f00}.k-splitbar-horizontal .k-icon{position:absolute;top:50%;width:5px;height:20px;margin-top:-10px}.k-collapse-prev,.k-collapse-next,.k-expand-prev,.k-expand-next{cursor:pointer}.k-splitbar-horizontal .k-collapse-prev{margin-top:-31px}.k-splitbar-horizontal .k-collapse-next{margin-top:11px}.k-splitbar-static-horizontal{width:1px}.k-splitbar-static-vertical{height:1px}.k-splitbar-vertical .k-icon{position:absolute;left:50%;width:20px;height:5px;margin-left:-10px}.k-splitbar-vertical .k-collapse-prev{margin-left:-31px}.k-splitbar-vertical .k-collapse-next{margin-left:11px}.k-splitbar-draggable-vertical .k-resize-handle,.k-splitbar-draggable-horizontal .k-resize-handle{display:inline-block}.k-splitbar-horizontal .k-resize-handle{background-position:-165px -6px}.k-splitbar-horizontal .k-collapse-prev,.k-splitbar-horizontal .k-expand-next{background-position:-6px -174px}.k-splitbar-horizontal .k-collapse-next,.k-splitbar-horizontal .k-expand-prev{background-position:-5px -142px}.k-splitbar-vertical .k-resize-handle{background-position:-38px -309px}.k-splitbar-vertical .k-collapse-prev,.k-splitbar-vertical .k-expand-next{background-position:2px -134px}.k-splitbar-vertical .k-collapse-next,.k-splitbar-vertical .k-expand-prev{background-position:2px -165px}html .k-upload{position:relative;border-width:0;background:0}.k-dropzone em,.k-upload-button{vertical-align:middle}*+html .k-dropzone em,*+html .k-upload-button{vertical-align:baseline}.k-dropzone{border-style:solid;border-width:0;padding:4px;background-color:transparent}.k-dropzone em{visibility:hidden;margin-left:.6em}.k-dropzone-active{border-width:1px;padding:3px}.k-dropzone-active em{visibility:visible}.k-upload-button{position:relative;width:86px;overflow:hidden!important;direction:ltr}.k-upload-button input{position:absolute;top:0;right:0;z-index:1;font:200px monospace!important;filter:alpha(opacity=0);opacity:0;margin:0;padding:0;cursor:pointer}.k-upload-files{border-style:solid;border-width:1px;margin:.2em 0 0;padding:.3em .7em .5em;line-height:1.9em}.k-upload-files .k-button{position:relative;top:1px;margin-left:8px;padding-top:0;padding-bottom:0;font-size:84%}*+html .k-upload-files .k-button{line-height:1}.k-upload .k-upload-action .k-icon{width:8px;height:8px;vertical-align:baseline}.k-upload .k-delete,.k-upload .k-i-cancel{background-position:-164px -116px}.k-upload .k-fail{background-position:-161px -111px}.k-retry{background-position:-164px -132px}.k-si-refresh{background-position:-160px -128px}.k-si-tick,.k-success{background-position:-160px -96px}.k-si-cancel{background-position:-160px -112px}.k-filename{position:relative;display:inline-block;min-width:120px;max-width:200px;vertical-align:middle;padding-bottom:2px;overflow:hidden;text-overflow:ellipsis;-o-text-overflow:ellipsis;white-space:nowrap}.k-progress,.k-progress-status{position:absolute;bottom:0;left:0;width:118px;height:2px;border-style:solid;border-width:1px;background-repeat:repeat-x}.k-progress-status{left:-1px;bottom:-1px;width:50%}.k-upload-selected{min-width:86px;margin:3px 0 0;-moz-box-sizing:content-box;-ms-box-sizing:content-box;box-sizing:content-box}*+html .k-upload-selected{min-width:100px}.k-toolbar-wrap .k-dropzone em,.k-toolbar-wrap .k-upload-files{display:none}.k-toolbar-wrap .k-dropzone{border:0;padding:0;background-color:transparent}.k-search-wrap{position:relative;float:right;width:auto;padding:0}.k-search-wrap label{position:absolute;top:0;left:4px;line-height:20px;font-style:italic}.k-search-wrap input.k-input{width:158px;padding-left:0;padding-right:0}.k-search-wrap .k-search{position:absolute;top:1px;right:2px}.k-breadcrumbs{position:relative;float:left;width:560px}.k-breadcrumbs-wrap{position:absolute;top:0;left:0;z-index:1;padding-left:5px;line-height:18px}html input.k-breadcrumbs-input{width:100%;padding-left:2px;font-family:inherit}.k-breadcrumbs .k-link,.k-breadcrumbs-wrap .k-icon{margin-top:0;text-decoration:none;vertical-align:middle}.k-breadcrumbs .k-link:hover{text-decoration:underline}.k-imagebrowser .k-breadcrumbs .k-i-seek-w{text-decoration:none;cursor:default}.k-imagebrowser .k-toolbar{clear:both;border-style:solid;border-width:1px;margin:8px 0 0;padding:2px 0 3px;background-repeat:repeat-x;line-height:23px;white-space:nowrap}.k-imagebrowser .k-upload{float:left}.k-imagebrowser .k-upload-button{width:auto;vertical-align:top}.k-imagebrowser .k-upload .k-icon{vertical-align:bottom}*+html .k-imagebrowser .k-upload-button,*+html .k-imagebrowser .k-upload .k-icon{vertical-align:baseline;position:relative;top:1px}*+html .k-imagebrowser .k-upload .k-icon{top:2px}*+html .k-imagebrowser .k-toolbar .k-button-icon{vertical-align:middle}.k-i-folder-add,.k-addfolder{background-position:-32px -272px}.k-i-folder-up,.k-goup{background-position:-32px -288px}.k-toolbar .k-state-disabled{filter:alpha(opacity=50);opacity:.5}.k-toolbar-wrap{float:left}.k-tiles-arrange{float:right}.k-tiles-arrange .k-i-arrow-s{margin:0 2px 0 3px}.k-tiles-arrange a{text-decoration:none}.k-tiles{clear:both;height:390px;border-style:solid;border-width:1px;border-top-width:0;margin:0 0 1.4em;padding:9px;overflow:auto;line-height:1.2}.k-tile{float:left;width:223px;height:88px;overflow:hidden;border-style:solid;border-width:1px;margin:1px;padding:0 0 4px;background-position:0 100px;background-repeat:repeat-x;cursor:pointer}.k-tiles li.k-state-hover,.k-tiles li.k-state-selected{background-position:0 center}.k-imagebrowser .k-thumb{float:left;display:inline;width:86px;height:86px;margin:4px 10px 0 4px;-khtml-user-select:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.k-imagebrowser .k-image{margin:2px 0 0 2px}.k-imagebrowser .k-folder{width:80px;height:80px;background-position:0 -200px;background-repeat:no-repeat}.k-imagebrowser .k-loading{margin:35px 0 0 33px}.k-tile strong,.k-tile input{margin:10px 0 4px;font-weight:normal}.k-tile strong{float:left;width:120px;overflow:hidden;text-overflow:ellipsis}.k-tile input{width:100px}.k-tile em,.k-tile .k-filesize{clear:left;font-weight:normal;font-style:normal}.k-tile strong,.k-tile input,.k-tile em,.k-tile .k-filesize{display:block}.k-imagebrowser .k-form-text-row input{width:628px}.k-tile-empty{margin:160px 0 0}.k-tile-empty .k-dialog-upload{font-weight:bold;font-size:120%}.k-tile-empty strong{display:block;margin:0 0 .2em;font-size:3em;font-weight:normal}.k-tile-empty,.k-tile-empty .k-button-wrapper{text-align:center}*+html .k-button,*+html .k-grid-filter,*+html .k-header-column-menu,*+html .k-grid .k-pager-numbers,*+html .k-grid .k-status-text,*+html .k-pager-numbers .k-link,*+html .k-pager-numbers span,*+html .k-pager-numbers input,*+html .k-grouping-row p,*+html .k-grouping-header a,*+html .k-grouping-header .k-group-indicator,*+html .k-grouping-header .k-link,*+html .k-grouping-header .k-button,*+html .k-grid-actions,*+html .k-combobox,*+html .k-dropdown,*+html .k-selectbox,*+html .k-picker-wrap .k-select,*+html .k-dropdown-wrap .k-select,*+html .k-numerictextbox,*+html .k-timepicker,*+html .k-datepicker,*+html .k-datetimepicker,*+html .k-calendar,*+html .k-calendar .k-nav-fast,*+html .k-treeview .k-icon,*+html .k-treeview .k-image,*+html .k-treeview .k-sprite,*+html .k-treeview .k-in,*+html .k-colorpicker,*+html .k-colorpicker .k-tool-icon,*+html .k-colorpicker-popup .k-reset,*+html .k-editor-dialog .k-button,.k-form-text-row label,*+html .k-tabstrip-items .k-item,*+html .k-tabstrip-items .k-link,*+html .k-slider-horizontal,*+html .k-splitbar-draggable-vertical .k-resize-handle,*+html .k-splitbar-draggable-horizontal .k-resize-handle,*+html .t-filename,*+html div.k-window,*+html .k-window-titlebar .k-window-action{display:inline;zoom:1}.km-scroll-container{-moz-user-select:-moz-none;-webkit-user-select:none;user-select:none;-webkit-margin-collapse:separate;-webkit-transform:translatez(0)}.k-widget .km-scroll-wrapper{position:relative;padding-bottom:0}.km-touch-scrollbar{position:absolute;visibility:hidden;z-index:200000;height:.3em;width:.3em;background-color:rgba(0,0,0,.7);opacity:0;-webkit-transition:opacity .3s linear;-moz-transition:opacity .3s linear;-ms-transition:opacity .3s linear;-o-transition:opacity .3s linear}.km-vertical-scrollbar{height:100%;right:2px;top:2px}.km-horizontal-scrollbar{width:100%;left:2px;bottom:2px}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
.k-widget{background-color:#fff}.k-widget,.k-input,.k-textbox,.k-group,.k-content,.k-header,.k-editable-area,.k-separator,.k-colorpicker .k-arrow-
|
10
|
+
.k-block,.k-widget{background-color:#fff}.k-block,.k-widget,.k-input,.k-textbox,.k-group,.k-content,.k-header,.k-editable-area,.k-separator,.k-colorpicker .k-i-arrow-s,.k-textbox>input,.k-autocomplete,.k-dropdown-wrap,.k-toolbar,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-state-default,.k-state-default .k-select,.k-state-disabled,.k-grid-header-wrap,.k-grid-header,.k-grid td,.k-grid-footer-wrap,.k-pager-wrap,.k-pager-wrap .k-link,.k-pager-refresh,.k-grouping-header,.k-grouping-header .k-group-indicator,.k-dropdown-wrap,.k-panelbar>.k-item>.k-link,.k-panel>.k-item>.k-link,.k-panelbar .k-panel,.k-panelbar .k-content,.k-calendar th,.k-slider-track,.k-splitbar,.k-dropzone-active,.k-upload-files,.k-tiles,.k-toolbar,.k-dropdown-wrap,.k-tooltip,.k-progress{border-color:#c5c5c5}.k-group,.k-toolbar,.k-grouping-header,.k-pager-wrap,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-widget .k-status,.k-grouping-row td,td.k-group-cell,.k-calendar th,.k-dropzone-hovered,.k-upload-files{background-color:#ebebeb}.k-list-container{border-color:#c5c5c5;background-color:#e9e9e9}.k-content,.k-editable-area,.k-panelbar>li.k-item,.k-panel>li.k-item,.k-tiles{background-color:#fff}.k-alt,.k-separator{background-color:#f5f5f5}.k-widget .k-dropdown-wrap,.k-widget .k-picker-wrap,.k-widget .k-numeric-wrap,.k-textbox,.k-autocomplete.k-header,.k-autocomplete.k-state-focused,div.k-dropdown-wrap.k-state-active,.k-dropdown-wrap.k-state-focused,.k-dropdown-wrap.k-state-focused:hover,div.k-picker-wrap.k-state-active,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-focused:hover,span.k-numeric-wrap.k-state-active,.k-numeric-wrap.k-state-focused,.k-numeric-wrap.k-state-focused:hover{border-color:#c5c5c5;background-color:#e9e9e9}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-autocomplete.k-state-focused .k-input,.k-dropdown-wrap.k-state-focused .k-input,.k-picker-wrap.k-state-focused .k-input,.k-numeric-wrap.k-state-focused .k-input{border-color:#c5c5c5}.k-input,input.k-textbox,textarea.k-textbox,input.k-textbox:hover,textarea.k-textbox:hover,.k-textbox>input{background-color:#fff;color:#2e2e2e}.k-block,.k-widget,.k-popup,.k-content,.k-dropdown .k-input{color:#2e2e2e}.k-link:link,.k-link:visited{color:#2e2e2e}.k-header{color:#2e2e2e}.k-header,.k-grid-header,.k-toolbar,.k-dropdown-wrap,.k-picker-wrap,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-button,.k-draghandle,.k-tile,.k-textbox,.k-autocomplete,.k-state-hover,.k-state-selected,.k-state-focused,.k-tabstrip-items .k-item{background-image:url("textures/highlight.png")}.k-block,.k-header,.k-grid-header,.k-toolbar,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-button,.k-draghandle{background-color:#e3e3e3}.k-icon,.k-column-menu .k-sprite{opacity:.8}.k-icon:hover,.k-state-hover .k-icon,.k-state-selected .k-icon,.k-state-focused .k-icon,.k-column-menu .k-state-hover .k-sprite,.k-column-menu .k-state-active .k-sprite{opacity:1}.k-icon,.k-tool-icon,.k-grouping-dropclue,.k-drop-hint,.k-callout,.k-progress,.k-progress-status,.k-column-menu .k-sprite{background-image:url('Default/sprite.png')}.k-loading{background-image:url('Default/loading.gif')}.k-loading-image{background-image:url('Default/loading-image.gif')}.k-loading-color{background-color:#fff}.k-button{color:#2e2e2e}.k-button,.k-button.k-state-disabled:hover,.k-state-disabled .k-button:hover,.k-draghandle{border-color:#c5c5c5;background-color:#e3e3e3}.k-button:hover,.k-draghandle:hover{border-color:#a99f9a;background-color:#a99f9a}.k-state-active,.k-state-active:hover,.k-active-filter{background-color:#fff;border-color:#f0713a;color:#2e2e2e}.k-state-focused{color:#2e2e2e;background-color:#a99f9a;border-color:#a99f9a}.k-state-selected,.k-list>.k-state-selected,.k-list>.k-state-focused,.k-panelbar>.k-state-selected,.k-panel>.k-state-selected,.k-button:active,.k-ghost-splitbar-vertical,.k-ghost-splitbar-horizontal,.k-draghandle.k-state-selected:hover{color:#fff;background-color:#f0713a;border-color:#f0713a}.k-state-selected.k-state-focused{background-color:#ed5614}.k-state-selected>.k-link{color:#fff}.k-state-hover,.k-state-hover:hover,.k-splitbar-horizontal-hover:hover,.k-splitbar-vertical-hover:hover,.k-list>.k-state-hover,.k-marquee,.k-pager-wrap .k-link:hover{color:#2e2e2e;background-color:#a99f9a;border-color:#a99f9a}.k-state-hover>.k-link,.k-other-month.k-state-hover .k-link{color:#2e2e2e}.k-textbox:hover,.k-autocomplete.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-dropdown-wrap.k-state-hover{background-color:#a99f9a;border-color:#a99f9a}.k-calendar .k-state-selected.k-state-focused>.k-link{background-color:transparent}.k-dropdown .k-state-hover .k-input{color:#2e2e2e}.k-dropdown .k-state-focused .k-input{color:#2e2e2e}.k-state-error{border-color:#e20000;background-color:#ff5252;color:#fff}.k-state-disabled{filter:alpha(opacity=70);opacity:.7}.k-state-disabled,.k-state-disabled .k-link,.k-state-disabled .k-button,.k-other-month .k-link,.k-dropzone em,.k-tile-empty strong,.k-slider .k-draghandle{color:#9f9e9e}.k-slider-track{background-color:#e3e3e3}.k-slider-selection{background-color:#f0713a}.k-slider-horizontal .k-tick{background-image:url('Default/slider-h.gif')}.k-slider-vertical .k-tick{background-image:url('Default/slider-v.gif')}.k-tooltip{border-color:#a99f9a;background-color:#fff;color:#2e2e2e}.k-tooltip-validation{border-color:#ffe79e;background-color:#fff4c9;color:#635145}.k-splitbar{background-color:#e3e3e3}.k-restricted-size-vertical,.k-restricted-size-horizontal{background-color:#fff}.k-progress-status{border-color:#a99f9a transparent}.k-tile{border-color:#fff}.k-textbox:hover,.k-tiles li.k-state-hover{border-color:#a99f9a}.k-tiles li.k-state-selected{border-color:#f0713a}.k-tile .k-folder{background-image:url('Default/imagebrowser.png')}.k-popup,.k-menu .k-group,.k-grid .k-filter-options,.k-time-popup,.k-datepicker-calendar,.k-autocomplete.k-state-border-down,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-active,.k-picker-wrap.k-state-active,.k-imagebrowser .k-image{box-shadow:0 2px 2px 0 rgba(0,0,0,0.3);-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,0.3)}.k-window{border-color:rgba(0,0,0,0.3);box-shadow:1px 1px 7px 1px rgba(0,0,0,0.3);-webkit-box-shadow:1px 1px 7px 1px rgba(0,0,0,0.3)}.k-textbox>input,.k-autocomplete .k-input,.k-combobox .k-input,.k-picker-wrap .k-input{box-shadow:inset 0 0 1px 1px #ddd;-webkit-box-shadow:inset 0 0 1px 1px #ddd}.k-shadow{box-shadow:0 1px 2px 0 rgba(0,0,0,0.3);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.3)}.k-inset{box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3)}.k-block,.k-button,.k-textbox,.k-drag-clue,.k-touch-scrollbar,.k-window,.k-window-titleless .k-window-content,.k-window-action,.k-inline-block,.k-grid .k-filter-options,.k-grouping-header .k-group-indicator,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap,.k-list-container,.k-calendar-container,.k-calendar td,.k-calendar .k-link,.k-treeview .k-state-hover,.k-treeview .k-state-selected,.k-editor-button .k-state-hover,.k-editor-button .k-state-active,.k-tooltip,.k-tile,.k-slider-track,.k-slider-selection{-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}.k-calendar-container.k-state-border-up,.k-list-container.k-state-border-up,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-border-up,.k-picker-wrap.k-state-border-up,.k-numeric-wrap.k-state-border-up,.k-window-content,.k-filter-menu{-moz-border-radius:0 0 4px 4px;-webkit-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.k-window-titlebar,.k-block>.k-header,.k-tabstrip-items .k-item,.k-panelbar .k-tabstrip-items .k-item,.k-tabstrip-items .k-link,.k-calendar-container.k-state-border-down,.k-list-container.k-state-border-down,.k-autocomplete.k-state-border-down,.k-dropdown-wrap.k-state-border-down,.k-picker-wrap.k-state-border-down,.k-numeric-wrap.k-state-border-down{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.k-dropdown-wrap .k-select,.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-datetimepicker .k-select+.k-select,.k-animation-container .k-calendar-container,.k-list-container.k-state-border-right{-moz-border-radius:0 4px 4px 0;-webkit-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-numeric-wrap .k-link,.k-colorpicker .k-selected-color,.k-progress,.k-progress-status{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.k-list .k-state-hover,.k-list .k-state-focused,.k-list .k-state-selected,.k-dropzone,.k-upload-files{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.k-slider .k-button,.k-grid .k-slider .k-button{-moz-border-radius:13px;-webkit-border-radius:13px;border-radius:13px}.k-draghandle{-moz-border-radius:7px;-webkit-border-radius:7px;border-radius:7px}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI v2011.3.1129 (http://kendoui.com)
|
3
|
+
* Copyright 2011 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI commercial licenses may be obtained at http://kendoui.com/license.
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3. For GPL requirements, please
|
8
|
+
* review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
|
11
|
+
.k-widget{background-color:#fff}.k-widget,.k-input,.k-group,.k-content,.k-header,.k-editable-area,.k-separator,.k-colorpicker .k-arrow-down,.k-autocomplete,.k-dropdown-wrap,.k-toolbar,.k-grouping-header,.k-grid-pager,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-state-default,.k-state-default .k-select,.k-state-disabled,.k-panelbar .k-link,.k-grid-header-wrap,.k-grid-header,.k-grid td,.k-grid-footer-wrap,.k-grid-pager,.k-grouping-header,.k-grouping-header .k-group-indicator,.k-dropdown-wrap,.k-autocomplete,.k-panelbar .k-link,.k-panelbar .k-group,.k-panelbar .k-content,.k-calendar th,.k-slider-track,.k-splitbar,.k-dropzone-active,.k-upload-files,.k-tiles,.k-toolbar,.k-dropdown-wrap,.k-tooltip,.k-progress{border-color:#c5c5c5}.k-group,.k-toolbar,.k-grouping-header,.k-grid-pager,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-widget .k-status,.k-grouping-row td,td.k-group-cell,.k-calendar th,.k-dropzone-hovered,.k-upload-files{background-color:#ebebeb}.k-list-container{border-color:#c5c5c5;background-color:#e9e9e9}.k-content,.k-editable-area,.k-tiles{background-color:#fff}.k-alt,.k-separator{background-color:#f5f5f5}.k-widget .k-dropdown-wrap,.k-widget .k-picker-wrap,.k-widget .k-numeric-wrap,.k-autocomplete.k-header,.k-autocomplete.k-state-focused,div.k-dropdown-wrap.k-state-active,.k-dropdown-wrap.k-state-focused,.k-dropdown-wrap.k-state-focused:hover,div.k-picker-wrap.k-state-active,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-focused:hover,span.k-numeric-wrap.k-state-active,.k-numeric-wrap.k-state-focused,.k-numeric-wrap.k-state-focused:hover{border-color:#c5c5c5;background-color:#e9e9e9}.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-autocomplete.k-state-focused .k-input,.k-dropdown-wrap.k-state-focused .k-input,.k-picker-wrap.k-state-focused .k-input,.k-numeric-wrap.k-state-focused .k-input{border-color:#c5c5c5}.k-input{background-color:#fff}.k-widget,.k-input,.k-popup,.k-content{color:#2e2e2e}.k-combobox .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-autocomplete .k-input{color:#2e2e2e}.k-link:link,.k-link:visited{color:#2e2e2e}.k-header{color:#2e2e2e}.k-header,.k-grid-header,.k-toolbar,.k-dropdown-wrap,.k-picker-wrap,.k-grouping-header,.k-tooltip,.k-grid-pager,.k-button,.k-draghandle,.k-tile,.k-autocomplete,.k-state-hover,.k-state-selected,.k-state-focused,.k-tabstrip-items .k-item{background-image:url("textures/highlight.png")}.k-header,.k-grid-header,.k-toolbar,.k-grouping-header,.k-tooltip,.k-grid-pager,.k-button,.k-draghandle{background-color:#e3e3e3}.k-icon{opacity:.8}.k-icon:hover,.k-state-hover .k-icon,.k-state-selected .k-icon,.k-state-focused .k-icon{opacity:1}.k-icon,.k-tool-icon,.k-grouping-dropclue,.k-drop-hint,.k-callout,.k-progress,.k-progress-status{background-image:url('Hakama/sprite.png')}.k-loading{background-image:url('Hakama/loading.gif')}.k-loading-image{background-image:url('Hakama/loading-image.gif')}.k-loading-color{background-color:#fff}.k-button{color:#2e2e2e}.k-button,.k-button.k-state-disabled:hover,.k-state-disabled .k-button:hover,.k-draghandle{border-color:#c5c5c5;background-color:#e3e3e3}.k-button:hover,.k-draghandle:hover{border-color:#564942;background-color:#564942}.k-state-active,.k-state-active:hover,.k-active-filter{background-color:#fff;border-color:#f0713a;color:#2e2e2e}.k-state-selected,.k-list>.k-state-selected,.k-list>.k-state-focused,.k-panelbar .k-state-selected,.k-button:active{color:#fff;background-color:#f0713a;border-color:#f0713a}.k-state-selected>.k-link{color:#fff}.k-state-hover,.k-state-hover:hover,.k-list>.k-state-hover,.k-state-focused,.k-marquee{color:#fff;background-color:#564942;border-color:#564942}.k-state-hover>.k-link,.k-other-month.k-state-hover .k-link{color:#fff}.k-state-focused>.k-link,.k-autocomplete.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-dropdown-wrap.k-state-hover{background-color:#564942;border-color:#564942}.k-dropdown .k-state-hover .k-input{color:#fff}.k-dropdown .k-state-focused .k-input{color:#2e2e2e}.k-state-error{border-color:#e20000;background-color:#ff5252;color:#fff}.k-state-disabled{filter:alpha(opacity=70);opacity:.7}.k-state-disabled,.k-state-disabled .k-link,.k-state-disabled .k-button,.k-other-month .k-link,.k-dropzone em,.k-tile-empty strong,.k-slider .k-draghandle{color:#9f9e9e}.k-slider-track{background-color:#e3e3e3}.k-slider-selection{background-color:#f0713a}.k-slider-horizontal .k-tick{background-image:url('Hakama/slider-h.gif')}.k-slider-vertical .k-tick{background-image:url('Hakama/slider-v.gif')}.k-tooltip{border-color:#564942;background-color:#fff;color:#2e2e2e}.k-splitbar{background-color:#e3e3e3}.k-progress-status{border-color:#564942 transparent}.k-tile{border-color:#fff}.k-tiles li.k-state-hover{border-color:#564942}.k-tiles li.k-state-selected{border-color:#f0713a}.k-tile .k-folder{background-image:url('Hakama/imagebrowser.png')}.k-popup,.k-menu .k-group,.k-grid .k-filter-options,.k-time-popup,.k-datepicker-calendar,.k-autocomplete:hover,.k-autocomplete.k-state-focused,.k-dropdown-wrap.k-state-focused,.k-dropdown-wrap.k-state-hover,.k-dropdown-wrap.k-state-active,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-hover,.k-picker-wrap.k-state-active,.k-imagebrowser .k-image{box-shadow:2px 2px 2px 0 #aaa;-webkit-box-shadow:2px 2px 2px 0 #aaa}.k-window{border-color:#aaa;box-shadow:1px 1px 7px 1px #aaa;-webkit-box-shadow:1px 1px 7px 1px #aaa}.k-autocomplete .k-input,.k-combobox .k-input,.k-picker-wrap .k-input{box-shadow:inset 0 0 1px 1px #ddd;-webkit-box-shadow:inset 0 0 1px 1px #ddd}.k-button,.k-drag-clue,.k-touch-scrollbar,.k-window,.k-window-action,.k-pager .k-state-active,.k-pager .k-state-hover,.k-grid .k-filter-options,.k-grouping-header .k-group-indicator,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap,.k-list-container,.k-calendar-container,.k-calendar td,.k-calendar .k-link,.k-treeview .k-state-hover,.k-treeview .k-state-selected,.k-editor-button .k-state-hover,.k-editor-button .k-state-active,.k-tooltip,.k-tile{-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}.k-calendar-container.k-state-border-up,.k-list-container.k-state-border-up,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-border-up,.k-picker-wrap.k-state-border-up,.k-numeric-wrap.k-state-border-up{-moz-border-radius:0 0 4px 4px;-webkit-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.k-window-titlebar,.k-tabstrip-items .k-item,.k-panelbar .k-tabstrip-items .k-item,.k-tabstrip-items .k-link,.k-calendar-container.k-state-border-down,.k-list-container.k-state-border-down,.k-autocomplete.k-state-border-down,.k-dropdown-wrap.k-state-border-down,.k-picker-wrap.k-state-border-down,.k-numeric-wrap.k-state-border-down{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.k-dropdown-wrap .k-select,.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-datetimepicker .k-select+.k-select,.k-animation-container .k-calendar-container,.k-list-container.k-state-border-right{-moz-border-radius:0 4px 4px 0;-webkit-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-numeric-wrap .k-link,.k-colorpicker .k-selected-color,.k-progress,.k-progress-status{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.k-list .k-state-hover,.k-list .k-state-focused,.k-list .k-state-selected,.k-dropzone,.k-upload-files{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.k-slider .k-button,.k-grid .k-slider .k-button{-moz-border-radius:13px;-webkit-border-radius:13px;border-radius:13px}.k-draghandle{-moz-border-radius:7px;-webkit-border-radius:7px;border-radius:7px}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/*
|
2
|
+
* Kendo UI v2011.3.1129 (http://kendoui.com)
|
3
|
+
* Copyright 2011 Telerik AD. All rights reserved.
|
4
|
+
*
|
5
|
+
* Kendo UI commercial licenses may be obtained at http://kendoui.com/license.
|
6
|
+
* If you do not own a commercial license, this file shall be governed by the
|
7
|
+
* GNU General Public License (GPL) version 3. For GPL requirements, please
|
8
|
+
* review: http://www.gnu.org/copyleft/gpl.html
|
9
|
+
*/
|
10
|
+
|
11
|
+
.k-widget{background-color:#fff}.k-widget,.k-input,.k-group,.k-content,.k-header,.k-editable-area,.k-separator,.k-colorpicker .k-arrow-down,.k-autocomplete,.k-dropdown-wrap,.k-toolbar,.k-grouping-header,.k-grid-pager,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-state-default,.k-state-default .k-select,.k-state-disabled,.k-panelbar .k-link,.k-grid-header-wrap,.k-grid-header,.k-grid td,.k-grid-footer-wrap,.k-grid-pager,.k-grouping-header,.k-grouping-header .k-group-indicator,.k-dropdown-wrap,.k-autocomplete,.k-panelbar .k-link,.k-panelbar .k-group,.k-panelbar .k-content,.k-calendar th,.k-slider-track,.k-splitbar,.k-dropzone-active,.k-upload-files,.k-tiles,.k-toolbar,.k-dropdown-wrap,.k-tooltip,.k-progress{border-color:#c5c5c5}.k-group,.k-toolbar,.k-grouping-header,.k-grid-pager,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-widget .k-status,.k-grouping-row td,td.k-group-cell,.k-calendar th,.k-dropzone-hovered,.k-upload-files{background-color:#ebebeb}.k-list-container{border-color:#c5c5c5;background-color:#e9e9e9}.k-content,.k-editable-area,.k-tiles{background-color:#fff}.k-alt,.k-separator{background-color:#f5f5f5}.k-widget .k-dropdown-wrap,.k-widget .k-picker-wrap,.k-autocomplete.k-header,.k-autocomplete.k-state-focused,div.k-dropdown-wrap.k-state-active,.k-dropdown-wrap.k-state-focused,.k-dropdown-wrap.k-state-focused:hover,div.k-picker-wrap.k-state-active,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-focused:hover{border-color:#c5c5c5;background-color:#e9e9e9}.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-autocomplete.k-state-focused .k-input,.k-dropdown-wrap.k-state-focused .k-input,.k-picker-wrap.k-state-focused .k-input{border-color:#c5c5c5}.k-input{background-color:#fff}.k-widget,.k-input,.k-popup,.k-content{color:#2e2e2e}.k-combobox .k-input,.k-picker-wrap .k-input,.k-autocomplete .k-input{color:#2e2e2e}.k-link:link,.k-link:visited{color:#2e2e2e}.k-header{color:#2e2e2e}.k-header,.k-grid-header,.k-toolbar,.k-dropdown-wrap,.k-picker-wrap,.k-grouping-header,.k-tooltip,.k-grid-pager,.k-button,.k-autocomplete,.k-state-hover,.k-state-selected,.k-state-focused,.k-tabstrip-items .k-item{background-image:url('Kendo/gradient.png')}.k-header,.k-grid-header,.k-toolbar,.k-grouping-header,.k-tooltip,.k-grid-pager,.k-button{background-color:#e3e3e3}.k-icon,.k-grouping-dropclue,.k-treeview .k-drop-hint,.k-slider .k-draghandle,.k-slider-horizontal .k-slider-track,.k-slider-horizontal .k-slider-selection,.k-callout,.k-splitbar-vertical,.k-ghost-splitbar-vertical,.k-progress,.k-progress-status{background-image:url('Kendo/sprite.png')}.k-slider-vertical .k-slider-track,.k-slider-vertical .k-slider-selection,.k-splitbar-horizontal,.k-ghost-splitbar-horizontal{background-image:url('Kendo/sprite-vertical.png')}.k-editor .k-tool-icon{background-image:url('Kendo/editor.png')}.k-loading{background-image:url('Kendo/loading.gif')}.k-loading-image{background-image:url('Kendo/loading-image.gif')}.k-loading-color{background-color:#fff}.k-button{color:#2e2e2e}.k-button,.k-button.k-state-disabled:hover,.k-state-disabled .k-button:hover{border-color:#c5c5c5;background-color:#e3e3e3}.k-button:hover{border-color:#f0713a;background-color:#f0713a}.k-state-active,.k-state-active:hover,.k-active-filter{background-color:#fff;border-color:#f0713a}.k-state-hover,.k-state-hover:hover,.k-list>.k-state-hover,.k-list>.k-state-focused,.k-state-focused,.k-marquee{color:#fff;background-color:#f0713a;border-color:#f0713a}.k-state-hover>.k-link,.k-state-focused>.k-link,.k-other-month.k-state-hover .k-link{color:#fff}.k-autocomplete.k-state-hover,.k-picker-wrap.k-state-hover,.k-dropdown-wrap.k-state-hover{background-color:#f0713a;border-color:#f0713a}.k-dropdown .k-state-hover .k-input{color:#fff}.k-dropdown .k-state-focused .k-input{color:#2e2e2e}.k-state-selected,.k-list>.k-state-selected,.k-panelbar .k-state-selected,.k-button:active{color:#fff;background-color:#564942;border-color:#564942}.k-state-selected>.k-link{color:#fff}.k-state-error{border-color:#e20000;background-color:#ff5252;color:#fff}.k-state-disabled,.k-state-disabled .k-link,.k-state-disabled .k-button,.k-other-month .k-link,.k-dropzone em,.k-tile-empty strong,.k-slider .k-draghandle{color:#9f9e9e}.k-slider-horizontal .k-tick{background-image:url('Kendo/slider-h.gif')}.k-slider-vertical .k-tick{background-image:url('Kendo/slider-v.gif')}.k-tooltip{border-color:#564942;background-color:#564942;color:#fff}.k-splitbar{background-color:#e3e3e3}.k-progress-status{border-color:#f0713a transparent}.k-tile{border-color:#fff;background-image:url('Kendo/gradient.png')}.k-tiles li.k-state-hover{border-color:#f0713a}.k-tiles li.k-state-selected{border-color:#564942}.k-tile .k-folder{background-image:url('Kendo/imagebrowser.png')}.k-popup,.k-menu .k-group,.k-grid .k-filter-options,.k-time-popup,.k-datepicker-calendar,.k-autocomplete:hover,.k-autocomplete.k-state-focused,.k-dropdown-wrap.k-state-focused,.k-dropdown-wrap.k-state-hover,.k-dropdown-wrap.k-state-active,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-hover,.k-picker-wrap.k-state-active,.k-imagebrowser .k-image{box-shadow:2px 2px 2px 0 #aaa;-webkit-box-shadow:2px 2px 2px 0 #aaa}.k-window{border-color:#aaa;box-shadow:1px 1px 7px 1px #aaa;-webkit-box-shadow:1px 1px 7px 1px #aaa}.k-autocomplete .k-input,.k-combobox .k-input,.k-picker-wrap .k-input{box-shadow:inset 0 0 1px 1px #ddd;-webkit-box-shadow:inset 0 0 1px 1px #ddd}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
.k-widget{background-color:#fff}.k-widget,.k-input,.k-textbox,.k-group,.k-content,.k-header,.k-editable-area,.k-separator,.k-colorpicker .k-arrow-
|
10
|
+
.k-block,.k-widget{background-color:#fff}.k-block,.k-widget,.k-input,.k-textbox,.k-group,.k-content,.k-header,.k-editable-area,.k-separator,.k-colorpicker .k-i-arrow-s,.k-textbox>input,.k-autocomplete,.k-dropdown-wrap,.k-toolbar,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-state-default,.k-state-default .k-select,.k-state-disabled,.k-grid-header-wrap,.k-grid-header,.k-grid td,.k-grid-footer-wrap,.k-pager-wrap,.k-pager-wrap .k-link,.k-pager-refresh,.k-grouping-header,.k-grouping-header .k-group-indicator,.k-dropdown-wrap,.k-panelbar>.k-item>.k-link,.k-panel>.k-item>.k-link,.k-panelbar .k-panel,.k-panelbar .k-content,.k-calendar th,.k-slider-track,.k-splitbar,.k-dropzone-active,.k-upload-files,.k-tiles,.k-toolbar,.k-dropdown-wrap,.k-tooltip,.k-progress{border-color:#dadada}.k-group,.k-toolbar,.k-grouping-header,.k-pager-wrap,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-widget .k-status,.k-grouping-row td,td.k-group-cell,.k-calendar th,.k-dropzone-hovered,.k-upload-files{background-color:#fff}.k-list-container{border-color:#dadada;background-color:#fff}.k-content,.k-editable-area,.k-panelbar>li.k-item,.k-panel>li.k-item,.k-tiles{background-color:#fff}.k-alt,.k-separator{background-color:#f5f5f5}.k-widget .k-dropdown-wrap,.k-widget .k-picker-wrap,.k-widget .k-numeric-wrap,.k-textbox,.k-autocomplete.k-header,.k-autocomplete.k-state-focused,div.k-dropdown-wrap.k-state-active,.k-dropdown-wrap.k-state-focused,.k-dropdown-wrap.k-state-focused:hover,div.k-picker-wrap.k-state-active,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-focused:hover,span.k-numeric-wrap.k-state-active,.k-numeric-wrap.k-state-focused,.k-numeric-wrap.k-state-focused:hover{border-color:#dadada;background-color:#fff}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-autocomplete.k-state-focused .k-input,.k-dropdown-wrap.k-state-focused .k-input,.k-picker-wrap.k-state-focused .k-input,.k-numeric-wrap.k-state-focused .k-input{border-color:#dadada}.k-input,input.k-textbox,textarea.k-textbox,input.k-textbox:hover,textarea.k-textbox:hover,.k-textbox>input{background-color:#fff;color:#777}.k-block,.k-widget,.k-popup,.k-content,.k-dropdown .k-input{color:#777}.k-link:link,.k-link:visited{color:#777}.k-header{color:#777}.k-header,.k-grid-header,.k-toolbar,.k-dropdown-wrap,.k-picker-wrap,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-button,.k-draghandle,.k-tile,.k-textbox,.k-autocomplete,.k-state-hover,.k-state-selected,.k-state-focused,.k-tabstrip-items .k-item{background-image:none}.k-block,.k-header,.k-grid-header,.k-toolbar,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-button,.k-draghandle{background-color:#fff}.k-icon,.k-column-menu .k-sprite{opacity:.8}.k-icon:hover,.k-state-hover .k-icon,.k-state-selected .k-icon,.k-state-focused .k-icon,.k-column-menu .k-state-hover .k-sprite,.k-column-menu .k-state-active .k-sprite{opacity:1}.k-icon,.k-tool-icon,.k-grouping-dropclue,.k-drop-hint,.k-callout,.k-progress,.k-progress-status,.k-column-menu .k-sprite{background-image:url('Metro/sprite.png')}.k-loading{background-image:url('Metro/loading.gif')}.k-loading-image{background-image:url('Metro/loading-image.gif')}.k-loading-color{background-color:#fff}.k-button{color:#777}.k-button,.k-button.k-state-disabled:hover,.k-state-disabled .k-button:hover,.k-draghandle{border-color:#dadada;background-color:#fff}.k-button:hover,.k-draghandle:hover{border-color:#e6e6e6;background-color:#e6e6e6}.k-state-active,.k-state-active:hover,.k-active-filter{background-color:#fff;border-color:#8ebc00;color:#000}.k-state-focused{color:#000;background-color:#e6e6e6;border-color:#e6e6e6}.k-state-selected,.k-list>.k-state-selected,.k-list>.k-state-focused,.k-panelbar>.k-state-selected,.k-panel>.k-state-selected,.k-button:active,.k-ghost-splitbar-vertical,.k-ghost-splitbar-horizontal,.k-draghandle.k-state-selected:hover{color:#fff;background-color:#8ebc00;border-color:#8ebc00}.k-state-selected.k-state-focused{background-color:#6f9300}.k-state-selected>.k-link{color:#fff}.k-state-hover,.k-state-hover:hover,.k-splitbar-horizontal-hover:hover,.k-splitbar-vertical-hover:hover,.k-list>.k-state-hover,.k-marquee,.k-pager-wrap .k-link:hover{color:#000;background-color:#e6e6e6;border-color:#e6e6e6}.k-state-hover>.k-link,.k-other-month.k-state-hover .k-link{color:#000}.k-textbox:hover,.k-autocomplete.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-dropdown-wrap.k-state-hover{background-color:#e6e6e6;border-color:#dadada}.k-calendar .k-state-selected.k-state-focused>.k-link{background-color:transparent}.k-dropdown .k-state-hover .k-input{color:#000}.k-dropdown .k-state-focused .k-input{color:#777}.k-state-error{border-color:#e20000;background-color:#fff;color:#e20000}.k-state-disabled{filter:alpha(opacity=70);opacity:.7}.k-state-disabled,.k-state-disabled .k-link,.k-state-disabled .k-button,.k-other-month .k-link,.k-dropzone em,.k-tile-empty strong,.k-slider .k-draghandle{color:#dadada}.k-slider-track{background-color:#fff}.k-slider-selection{background-color:#8ebc00}.k-slider-horizontal .k-tick{background-image:url('Metro/slider-h.gif')}.k-slider-vertical .k-tick{background-image:url('Metro/slider-v.gif')}.k-tooltip{border-color:#8ebc00;background-color:#8ebc00;color:#fff}.k-tooltip-validation{border-color:#ffe68e;background-color:#ffe68e;color:#000}.k-splitbar{background-color:#dadada}.k-restricted-size-vertical,.k-restricted-size-horizontal{background-color:#e20000}.k-progress-status{border-color:#e6e6e6 transparent}.k-tile{border-color:#fff}.k-textbox:hover,.k-tiles li.k-state-hover{border-color:#e6e6e6}.k-tiles li.k-state-selected{border-color:#8ebc00}.k-tile .k-folder{background-image:url('Metro/imagebrowser.png')}.k-popup,.k-menu .k-group,.k-grid .k-filter-options,.k-time-popup,.k-datepicker-calendar,.k-autocomplete.k-state-border-down,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-active,.k-picker-wrap.k-state-active,.k-imagebrowser .k-image{box-shadow:0 2px 2px 0 transparent;-webkit-box-shadow:0 2px 2px 0 transparent}.k-window{border-color:#dadada}.k-textbox>input,.k-autocomplete .k-input,.k-combobox .k-input,.k-picker-wrap .k-input{box-shadow:inset 0 0 1px 1px transparent;-webkit-box-shadow:inset 0 0 1px 1px transparent}.k-shadow{box-shadow:0 1px 2px 0 transparent;-webkit-box-shadow:0 1px 2px 0 transparent}.k-inset{box-shadow:inset 0 1px 1px transparent;-webkit-box-shadow:inset 0 1px 1px transparent}.k-block,.k-button,.k-textbox,.k-drag-clue,.k-touch-scrollbar,.k-window,.k-window-titleless .k-window-content,.k-window-action,.k-inline-block,.k-grid .k-filter-options,.k-grouping-header .k-group-indicator,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap,.k-list-container,.k-calendar-container,.k-calendar td,.k-calendar .k-link,.k-treeview .k-state-hover,.k-treeview .k-state-selected,.k-editor-button .k-state-hover,.k-editor-button .k-state-active,.k-tooltip,.k-tile,.k-slider-track,.k-slider-selection{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.k-calendar-container.k-state-border-up,.k-list-container.k-state-border-up,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-border-up,.k-picker-wrap.k-state-border-up,.k-numeric-wrap.k-state-border-up,.k-window-content,.k-filter-menu{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.k-window-titlebar,.k-block>.k-header,.k-tabstrip-items .k-item,.k-panelbar .k-tabstrip-items .k-item,.k-tabstrip-items .k-link,.k-calendar-container.k-state-border-down,.k-list-container.k-state-border-down,.k-autocomplete.k-state-border-down,.k-dropdown-wrap.k-state-border-down,.k-picker-wrap.k-state-border-down,.k-numeric-wrap.k-state-border-down{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.k-dropdown-wrap .k-select,.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-datetimepicker .k-select+.k-select,.k-animation-container .k-calendar-container,.k-list-container.k-state-border-right{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-numeric-wrap .k-link,.k-colorpicker .k-selected-color,.k-progress,.k-progress-status{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.k-list .k-state-hover,.k-list .k-state-focused,.k-list .k-state-selected,.k-dropzone,.k-upload-files{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.k-slider .k-button,.k-grid .k-slider .k-button{-moz-border-radius:13px;-webkit-border-radius:13px;border-radius:13px}.k-draghandle{-moz-border-radius:7px;-webkit-border-radius:7px;border-radius:7px}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Kendo UI Web v2012.
|
2
|
+
* Kendo UI Web v2012.2.710 (http://kendoui.com)
|
3
3
|
* Copyright 2012 Telerik AD. All rights reserved.
|
4
4
|
*
|
5
5
|
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
|
@@ -7,4 +7,4 @@
|
|
7
7
|
* GNU General Public License (GPL) version 3.
|
8
8
|
* For GPL requirements, please review: http://www.gnu.org/copyleft/gpl.html
|
9
9
|
*/
|
10
|
-
.k-widget{background-color:#eaeaec}.k-widget,.k-input,.k-textbox,.k-group,.k-content,.k-header,.k-editable-area,.k-separator,.k-colorpicker .k-arrow-
|
10
|
+
.k-block,.k-widget{background-color:#eaeaec}.k-block,.k-widget,.k-input,.k-textbox,.k-group,.k-content,.k-header,.k-editable-area,.k-separator,.k-colorpicker .k-i-arrow-s,.k-textbox>input,.k-autocomplete,.k-dropdown-wrap,.k-toolbar,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-state-default,.k-state-default .k-select,.k-state-disabled,.k-grid-header-wrap,.k-grid-header,.k-grid td,.k-grid-footer-wrap,.k-pager-wrap,.k-pager-wrap .k-link,.k-pager-refresh,.k-grouping-header,.k-grouping-header .k-group-indicator,.k-dropdown-wrap,.k-panelbar>.k-item>.k-link,.k-panel>.k-item>.k-link,.k-panelbar .k-panel,.k-panelbar .k-content,.k-calendar th,.k-slider-track,.k-splitbar,.k-dropzone-active,.k-upload-files,.k-tiles,.k-toolbar,.k-dropdown-wrap,.k-tooltip,.k-progress{border-color:#dbdbde}.k-group,.k-toolbar,.k-grouping-header,.k-pager-wrap,.k-group-footer td,.k-grid-footer,.k-footer-template td,.k-widget .k-status,.k-grouping-row td,td.k-group-cell,.k-calendar th,.k-dropzone-hovered,.k-upload-files{background-color:#eaeaec}.k-list-container{border-color:#dbdbde;background-color:#f3f3f4}.k-content,.k-editable-area,.k-panelbar>li.k-item,.k-panel>li.k-item,.k-tiles{background-color:#eaeaec}.k-alt,.k-separator{background-color:#f4f4f4}.k-widget .k-dropdown-wrap,.k-widget .k-picker-wrap,.k-widget .k-numeric-wrap,.k-textbox,.k-autocomplete.k-header,.k-autocomplete.k-state-focused,div.k-dropdown-wrap.k-state-active,.k-dropdown-wrap.k-state-focused,.k-dropdown-wrap.k-state-focused:hover,div.k-picker-wrap.k-state-active,.k-picker-wrap.k-state-focused,.k-picker-wrap.k-state-focused:hover,span.k-numeric-wrap.k-state-active,.k-numeric-wrap.k-state-focused,.k-numeric-wrap.k-state-focused:hover{border-color:#dbdbde;background-color:#f3f3f4}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-autocomplete.k-state-focused .k-input,.k-dropdown-wrap.k-state-focused .k-input,.k-picker-wrap.k-state-focused .k-input,.k-numeric-wrap.k-state-focused .k-input{border-color:#dbdbde}.k-input,input.k-textbox,textarea.k-textbox,input.k-textbox:hover,textarea.k-textbox:hover,.k-textbox>input{background-color:#fff;color:#515967}.k-block,.k-widget,.k-popup,.k-content,.k-dropdown .k-input{color:#515967}.k-link:link,.k-link:visited{color:#515967}.k-header{color:#515967}.k-header,.k-grid-header,.k-toolbar,.k-dropdown-wrap,.k-picker-wrap,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-button,.k-draghandle,.k-tile,.k-textbox,.k-autocomplete,.k-state-hover,.k-state-selected,.k-state-focused,.k-tabstrip-items .k-item{background-image:url("textures/highlight.png")}.k-block,.k-header,.k-grid-header,.k-toolbar,.k-grouping-header,.k-tooltip,.k-pager-wrap,.k-button,.k-draghandle{background-color:#f3f3f4}.k-icon,.k-column-menu .k-sprite{opacity:.8}.k-icon:hover,.k-state-hover .k-icon,.k-state-selected .k-icon,.k-state-focused .k-icon,.k-column-menu .k-state-hover .k-sprite,.k-column-menu .k-state-active .k-sprite{opacity:1}.k-icon,.k-tool-icon,.k-grouping-dropclue,.k-drop-hint,.k-callout,.k-progress,.k-progress-status,.k-column-menu .k-sprite{background-image:url('Silver/sprite.png')}.k-loading{background-image:url('Silver/loading.gif')}.k-loading-image{background-image:url('Silver/loading-image.gif')}.k-loading-color{background-color:#fff}.k-button{color:#515967}.k-button,.k-button.k-state-disabled:hover,.k-state-disabled .k-button:hover,.k-draghandle{border-color:#dbdbde;background-color:#f3f3f4}.k-button:hover,.k-draghandle:hover{border-color:#a6afbe;background-color:#a6afbe}.k-state-active,.k-state-active:hover,.k-active-filter{background-color:#fff;border-color:#0879c0;color:#515967}.k-state-focused{color:#263248;background-color:#a6afbe;border-color:#a6afbe}.k-state-selected,.k-list>.k-state-selected,.k-list>.k-state-focused,.k-panelbar>.k-state-selected,.k-panel>.k-state-selected,.k-button:active,.k-ghost-splitbar-vertical,.k-ghost-splitbar-horizontal,.k-draghandle.k-state-selected:hover{color:#fff;background-color:#0879c0;border-color:#0879c0}.k-state-selected.k-state-focused{background-color:#066099}.k-state-selected>.k-link{color:#fff}.k-state-hover,.k-state-hover:hover,.k-splitbar-horizontal-hover:hover,.k-splitbar-vertical-hover:hover,.k-list>.k-state-hover,.k-marquee,.k-pager-wrap .k-link:hover{color:#263248;background-color:#a6afbe;border-color:#a6afbe}.k-state-hover>.k-link,.k-other-month.k-state-hover .k-link{color:#263248}.k-textbox:hover,.k-autocomplete.k-state-hover,.k-picker-wrap.k-state-hover,.k-numeric-wrap.k-state-hover,.k-dropdown-wrap.k-state-hover{background-color:#a6afbe;border-color:#a6afbe}.k-calendar .k-state-selected.k-state-focused>.k-link{background-color:transparent}.k-dropdown .k-state-hover .k-input{color:#263248}.k-dropdown .k-state-focused .k-input{color:#515967}.k-state-error{border-color:#f00;background-color:#fff;color:#f00}.k-state-disabled{filter:alpha(opacity=70);opacity:.7}.k-state-disabled,.k-state-disabled .k-link,.k-state-disabled .k-button,.k-other-month .k-link,.k-dropzone em,.k-tile-empty strong,.k-slider .k-draghandle{color:#a6afbe}.k-slider-track{background-color:#f3f3f4}.k-slider-selection{background-color:#0879c0}.k-slider-horizontal .k-tick{background-image:url('Silver/slider-h.gif')}.k-slider-vertical .k-tick{background-image:url('Silver/slider-v.gif')}.k-tooltip{border-color:#0879c0;background-color:#fff;color:#515967}.k-tooltip-validation{border-color:#ffe79e;background-color:#fff4c9;color:#635145}.k-splitbar{background-color:#f3f3f4}.k-restricted-size-vertical,.k-restricted-size-horizontal{background-color:#f00}.k-progress-status{border-color:#a6afbe transparent}.k-tile{border-color:#eaeaec}.k-textbox:hover,.k-tiles li.k-state-hover{border-color:#a6afbe}.k-tiles li.k-state-selected{border-color:#0879c0}.k-tile .k-folder{background-image:url('Silver/imagebrowser.png')}.k-popup,.k-menu .k-group,.k-grid .k-filter-options,.k-time-popup,.k-datepicker-calendar,.k-autocomplete.k-state-border-down,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-active,.k-picker-wrap.k-state-active,.k-imagebrowser .k-image{box-shadow:0 2px 2px 0 rgba(0,0,0,0.3);-webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,0.3)}.k-window{border-color:rgba(0,0,0,0.3);box-shadow:1px 1px 7px 1px rgba(0,0,0,0.3);-webkit-box-shadow:1px 1px 7px 1px rgba(0,0,0,0.3)}.k-textbox>input,.k-autocomplete .k-input,.k-combobox .k-input,.k-picker-wrap .k-input{box-shadow:inset 0 0 1px 1px #8691a4;-webkit-box-shadow:inset 0 0 1px 1px #8691a4}.k-shadow{box-shadow:0 1px 2px 0 rgba(0,0,0,0.3);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.3)}.k-inset{box-shadow:inset 0 1px 1px rgba(0,0,0,0.3);-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,0.3)}.k-block,.k-button,.k-textbox,.k-drag-clue,.k-touch-scrollbar,.k-window,.k-window-titleless .k-window-content,.k-window-action,.k-inline-block,.k-grid .k-filter-options,.k-grouping-header .k-group-indicator,.k-autocomplete,.k-dropdown-wrap,.k-picker-wrap,.k-numeric-wrap,.k-list-container,.k-calendar-container,.k-calendar td,.k-calendar .k-link,.k-treeview .k-state-hover,.k-treeview .k-state-selected,.k-editor-button .k-state-hover,.k-editor-button .k-state-active,.k-tooltip,.k-tile,.k-slider-track,.k-slider-selection{-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px}.k-calendar-container.k-state-border-up,.k-list-container.k-state-border-up,.k-autocomplete.k-state-border-up,.k-dropdown-wrap.k-state-border-up,.k-picker-wrap.k-state-border-up,.k-numeric-wrap.k-state-border-up,.k-window-content,.k-filter-menu{-moz-border-radius:0 0 4px 4px;-webkit-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.k-window-titlebar,.k-block>.k-header,.k-tabstrip-items .k-item,.k-panelbar .k-tabstrip-items .k-item,.k-tabstrip-items .k-link,.k-calendar-container.k-state-border-down,.k-list-container.k-state-border-down,.k-autocomplete.k-state-border-down,.k-dropdown-wrap.k-state-border-down,.k-picker-wrap.k-state-border-down,.k-numeric-wrap.k-state-border-down{-moz-border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.k-dropdown-wrap .k-select,.k-picker-wrap .k-select,.k-numeric-wrap .k-select,.k-datetimepicker .k-select+.k-select,.k-animation-container .k-calendar-container,.k-list-container.k-state-border-right{-moz-border-radius:0 4px 4px 0;-webkit-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.k-textbox>input,.k-autocomplete .k-input,.k-dropdown-wrap .k-input,.k-picker-wrap .k-input,.k-numeric-wrap .k-input,.k-numeric-wrap .k-link,.k-colorpicker .k-selected-color,.k-progress,.k-progress-status{-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px}.k-list .k-state-hover,.k-list .k-state-focused,.k-list .k-state-selected,.k-dropzone,.k-upload-files{-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.k-slider .k-button,.k-grid .k-slider .k-button{-moz-border-radius:13px;-webkit-border-radius:13px;border-radius:13px}.k-draghandle{-moz-border-radius:7px;-webkit-border-radius:7px;border-radius:7px}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kendoui-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-07-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jquery-rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70201194625280 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70201194625280
|
25
25
|
description: Adds GPLv3 Portions of Kendo UI (http://kendoui.com) to javascripts and
|
26
26
|
styles folders
|
27
27
|
email:
|
@@ -44,6 +44,7 @@ files:
|
|
44
44
|
- lib/kendoui-rails.rb
|
45
45
|
- lib/kendoui-rails/version.rb
|
46
46
|
- lib/rails/generators/kendoui/install/install_generator.rb
|
47
|
+
- vendor/assets/changelog.html
|
47
48
|
- vendor/assets/javascripts/jquery.min.js
|
48
49
|
- vendor/assets/javascripts/kendo/cultures/kendo.culture.af-ZA.min.js
|
49
50
|
- vendor/assets/javascripts/kendo/cultures/kendo.culture.af.min.js
|
@@ -300,6 +301,7 @@ files:
|
|
300
301
|
- vendor/assets/javascripts/kendo/cultures/kendo.culture.ro-RO.min.js
|
301
302
|
- vendor/assets/javascripts/kendo/cultures/kendo.culture.ro.min.js
|
302
303
|
- vendor/assets/javascripts/kendo/cultures/kendo.culture.ru-RU.min.js
|
304
|
+
- vendor/assets/javascripts/kendo/cultures/kendo.culture.ru-UA.min.js
|
303
305
|
- vendor/assets/javascripts/kendo/cultures/kendo.culture.ru.min.js
|
304
306
|
- vendor/assets/javascripts/kendo/cultures/kendo.culture.rw-RW.min.js
|
305
307
|
- vendor/assets/javascripts/kendo/cultures/kendo.culture.rw.min.js
|
@@ -398,7 +400,46 @@ files:
|
|
398
400
|
- vendor/assets/javascripts/kendo/cultures/kendo.culture.zh.min.js
|
399
401
|
- vendor/assets/javascripts/kendo/cultures/kendo.culture.zu-ZA.min.js
|
400
402
|
- vendor/assets/javascripts/kendo/cultures/kendo.culture.zu.min.js
|
403
|
+
- vendor/assets/javascripts/kendo/kendo.autocomplete.min.js
|
404
|
+
- vendor/assets/javascripts/kendo/kendo.binder.min.js
|
405
|
+
- vendor/assets/javascripts/kendo/kendo.calendar.min.js
|
406
|
+
- vendor/assets/javascripts/kendo/kendo.columnmenu.min.js
|
407
|
+
- vendor/assets/javascripts/kendo/kendo.combobox.min.js
|
408
|
+
- vendor/assets/javascripts/kendo/kendo.core.min.js
|
409
|
+
- vendor/assets/javascripts/kendo/kendo.data.min.js
|
410
|
+
- vendor/assets/javascripts/kendo/kendo.data.odata.min.js
|
411
|
+
- vendor/assets/javascripts/kendo/kendo.data.xml.min.js
|
412
|
+
- vendor/assets/javascripts/kendo/kendo.datepicker.min.js
|
413
|
+
- vendor/assets/javascripts/kendo/kendo.datetimepicker.min.js
|
414
|
+
- vendor/assets/javascripts/kendo/kendo.draganddrop.min.js
|
415
|
+
- vendor/assets/javascripts/kendo/kendo.dropdownlist.min.js
|
416
|
+
- vendor/assets/javascripts/kendo/kendo.editable.min.js
|
417
|
+
- vendor/assets/javascripts/kendo/kendo.editor.min.js
|
418
|
+
- vendor/assets/javascripts/kendo/kendo.filtermenu.min.js
|
419
|
+
- vendor/assets/javascripts/kendo/kendo.fx.min.js
|
420
|
+
- vendor/assets/javascripts/kendo/kendo.grid.min.js
|
421
|
+
- vendor/assets/javascripts/kendo/kendo.groupable.min.js
|
422
|
+
- vendor/assets/javascripts/kendo/kendo.list.min.js
|
423
|
+
- vendor/assets/javascripts/kendo/kendo.listview.min.js
|
424
|
+
- vendor/assets/javascripts/kendo/kendo.menu.min.js
|
425
|
+
- vendor/assets/javascripts/kendo/kendo.mobile.scroller.min.js
|
426
|
+
- vendor/assets/javascripts/kendo/kendo.numerictextbox.min.js
|
427
|
+
- vendor/assets/javascripts/kendo/kendo.pager.min.js
|
428
|
+
- vendor/assets/javascripts/kendo/kendo.panelbar.min.js
|
429
|
+
- vendor/assets/javascripts/kendo/kendo.popup.min.js
|
430
|
+
- vendor/assets/javascripts/kendo/kendo.reorderable.min.js
|
431
|
+
- vendor/assets/javascripts/kendo/kendo.resizable.min.js
|
432
|
+
- vendor/assets/javascripts/kendo/kendo.selectable.min.js
|
433
|
+
- vendor/assets/javascripts/kendo/kendo.slider.min.js
|
434
|
+
- vendor/assets/javascripts/kendo/kendo.sortable.min.js
|
435
|
+
- vendor/assets/javascripts/kendo/kendo.splitter.min.js
|
436
|
+
- vendor/assets/javascripts/kendo/kendo.tabstrip.min.js
|
437
|
+
- vendor/assets/javascripts/kendo/kendo.timepicker.min.js
|
438
|
+
- vendor/assets/javascripts/kendo/kendo.treeview.min.js
|
439
|
+
- vendor/assets/javascripts/kendo/kendo.upload.min.js
|
440
|
+
- vendor/assets/javascripts/kendo/kendo.validator.min.js
|
401
441
|
- vendor/assets/javascripts/kendo/kendo.web.min.js
|
442
|
+
- vendor/assets/javascripts/kendo/kendo.window.min.js
|
402
443
|
- vendor/assets/stylesheets/kendo/Black/editor.png
|
403
444
|
- vendor/assets/stylesheets/kendo/Black/imagebrowser.png
|
404
445
|
- vendor/assets/stylesheets/kendo/Black/loading-image.gif
|
@@ -438,6 +479,8 @@ files:
|
|
438
479
|
- vendor/assets/stylesheets/kendo/kendo.blueopal.min.css
|
439
480
|
- vendor/assets/stylesheets/kendo/kendo.common.min.css
|
440
481
|
- vendor/assets/stylesheets/kendo/kendo.default.min.css
|
482
|
+
- vendor/assets/stylesheets/kendo/kendo.hakama.min.css
|
483
|
+
- vendor/assets/stylesheets/kendo/kendo.kendo.min.css
|
441
484
|
- vendor/assets/stylesheets/kendo/kendo.metro.min.css
|
442
485
|
- vendor/assets/stylesheets/kendo/kendo.silver.min.css
|
443
486
|
- vendor/assets/stylesheets/kendo/textures/glass.png
|